:root {
    --ink: #172033;
    --muted: #667285;
    --line: #d9e1eb;
    --paper: #ffffff;
    --wash: #f4f7fa;
    --concept-ink: #16324f;
    --concept-accent: #f6b73c;
    --concept-soft: #f4f7fb;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--wash);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(255,255,255,.86), rgba(244,247,250,.94)),
        repeating-linear-gradient(90deg, rgba(23,32,51,.035) 0 1px, transparent 1px 78px);
}

a {
    color: inherit;
}

.shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 42px;
}

.topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 19px;
    font-weight: 950;
}

.brand-lockup strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.brand-lockup span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-button,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.primary-button {
    min-height: 48px;
    padding: 0 20px;
    border-color: var(--concept-ink);
    background: var(--concept-ink);
    color: #fff;
}

.secondary-button {
    min-height: 48px;
    padding: 0 20px;
    border-color: rgba(23,32,51,.2);
    background: #fff;
}

.board-hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(320px, .58fr);
    gap: 28px;
    align-items: end;
    margin: 28px 0 26px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #425166;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 850px;
    margin-bottom: 16px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: .98;
    font-weight: 950;
}

.lead {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.58;
    font-weight: 650;
}

.share-note {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20,31,52,.06);
}

.share-note strong {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
}

.share-note p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}

.idea-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.idea-card {
    overflow: hidden;
    display: block;
    min-height: 366px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(20,31,52,.07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.idea-card:hover,
.idea-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--concept-accent);
    box-shadow: 0 20px 42px rgba(20,31,52,.12);
    outline: 0;
}

.snapshot {
    position: relative;
    min-height: 208px;
    padding: 12px;
    background:
        linear-gradient(135deg, var(--concept-soft) 0%, #fff 58%),
        repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 18px);
    border-bottom: 1px solid var(--line);
}

.mini-site {
    overflow: hidden;
    height: 184px;
    border: 1px solid rgba(23,32,51,.12);
    border-radius: 8px;
    background: #fff;
}

.mini-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(23,32,51,.1);
}

.mini-dot {
    width: 34px;
    height: 8px;
    border-radius: 8px;
    background: var(--concept-ink);
}

.mini-lines {
    display: flex;
    gap: 5px;
}

.mini-lines span {
    width: 18px;
    height: 5px;
    border-radius: 8px;
    background: rgba(23,32,51,.16);
}

.mini-body {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 9px;
    padding: 12px;
}

.mini-copy strong,
.mini-copy span {
    display: block;
    border-radius: 8px;
}

.mini-copy strong {
    width: 88%;
    height: 13px;
    margin-bottom: 8px;
    background: var(--concept-ink);
}

.mini-copy span {
    width: 100%;
    height: 7px;
    margin-bottom: 5px;
    background: rgba(23,32,51,.16);
}

.mini-copy span:nth-child(3) {
    width: 72%;
}

.mini-button {
    width: 68px;
    height: 17px;
    margin-top: 10px;
    border-radius: 8px;
    background: var(--concept-accent);
}

.mini-visual {
    display: grid;
    place-items: center;
    height: 116px;
    border-radius: 8px;
    background: var(--concept-soft);
}

.mini-visual svg {
    width: 100%;
    height: 116px;
    fill: none;
    stroke: var(--concept-ink);
}

.mini-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 0 12px 10px;
}

.mini-widget span {
    height: 13px;
    border-radius: 5px;
    background: rgba(23,32,51,.1);
}

.idea-body {
    padding: 15px;
}

.tag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.tag,
.domain-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.tag {
    background: var(--concept-soft);
    color: var(--concept-ink);
}

.domain-pill {
    border: 1px solid var(--line);
    color: #526176;
}

.idea-body h2 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.12;
    font-weight: 950;
}

.idea-body p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.idea-body blockquote {
    margin: 12px 0 0;
    padding: 10px 11px;
    border-left: 4px solid var(--concept-accent);
    border-radius: 0 8px 8px 0;
    background: var(--concept-soft);
    color: var(--concept-ink);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 850;
}

.preview-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.7)),
        linear-gradient(90deg, var(--concept-soft), #fff);
}

body[data-template="dock-board"] .preview-shell {
    background:
        linear-gradient(90deg, rgba(255,255,255,.9) 0 56%, rgba(22,50,79,.08) 56% 100%),
        repeating-linear-gradient(0deg, rgba(22,50,79,.055) 0 1px, transparent 1px 34px),
        var(--concept-soft);
}

body[data-template="pilot-map"] .preview-shell {
    background:
        radial-gradient(circle at 72% 20%, rgba(217,120,61,.2), transparent 32%),
        linear-gradient(135deg, #fff 0 42%, var(--concept-soft) 42% 100%);
}

body[data-template="gallery-crate"] .preview-shell {
    background:
        linear-gradient(90deg, #fff 0 36%, var(--concept-soft) 36% 64%, #fff 64% 100%);
}

body[data-template="pond-card"] .preview-shell {
    background:
        radial-gradient(circle at 20% 24%, rgba(240,198,90,.28), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(14,95,103,.14), transparent 26%),
        linear-gradient(180deg, #fff, var(--concept-soft));
}

body[data-template="parts-counter"] .preview-shell {
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(243,246,248,.94)),
        repeating-linear-gradient(90deg, rgba(31,45,61,.07) 0 2px, transparent 2px 90px);
}

body[data-template="desk-console"] .preview-shell {
    background:
        linear-gradient(180deg, #263238 0 650px, #eef3f7 650px 100%);
}

body[data-template="flora-field"] .preview-shell {
    background:
        linear-gradient(180deg, rgba(255,255,255,.9) 0 52%, rgba(35,69,56,.08) 52% 100%),
        repeating-linear-gradient(45deg, rgba(35,69,56,.045) 0 1px, transparent 1px 32px),
        var(--concept-soft);
}

body[data-template="bench-note"] .preview-shell {
    background:
        linear-gradient(90deg, var(--concept-soft), #fff 30% 70%, var(--concept-soft));
}

body[data-template="forge-plate"] .preview-shell {
    background:
        linear-gradient(180deg, #252525 0 650px, #f2f2ef 650px 100%);
}

body[data-template="swift-route"] .preview-shell {
    background:
        linear-gradient(120deg, rgba(73,160,120,.18), transparent 38%),
        linear-gradient(300deg, rgba(23,64,87,.12), transparent 44%),
        #fff;
}

.preview-topline {
    border-color: rgba(23,32,51,.14);
}

.preview-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
    gap: 32px;
    align-items: center;
    min-height: 520px;
    padding: 28px 0 38px;
}

body[data-template="pilot-map"] .preview-hero,
body[data-template="swift-route"] .preview-hero {
    grid-template-columns: minmax(390px, .78fr) minmax(0, 1fr);
}

body[data-template="pilot-map"] .hero-art,
body[data-template="swift-route"] .hero-art {
    order: -1;
}

body[data-template="gallery-crate"] .preview-hero {
    grid-template-columns: minmax(0, .88fr) minmax(360px, .62fr);
    align-items: stretch;
}

body[data-template="parts-counter"] .preview-hero,
body[data-template="desk-console"] .preview-hero {
    grid-template-columns: minmax(0, .72fr) minmax(420px, 1fr);
}

body[data-template="bench-note"] .preview-hero {
    grid-template-columns: 1fr;
    gap: 20px;
}

body[data-template="bench-note"] .preview-copy {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

body[data-template="bench-note"] .preview-copy .lead,
body[data-template="bench-note"] .hero-quote {
    margin-left: auto;
    margin-right: auto;
}

body[data-template="bench-note"] .button-row {
    justify-content: center;
}

body[data-template="forge-plate"] .topline,
body[data-template="desk-console"] .topline {
    border-color: rgba(255,255,255,.22);
}

body[data-template="forge-plate"] .brand-lockup strong,
body[data-template="forge-plate"] .brand-lockup span,
body[data-template="desk-console"] .brand-lockup strong,
body[data-template="desk-console"] .brand-lockup span {
    color: #fff;
}

body[data-template="forge-plate"] .nav-button,
body[data-template="desk-console"] .nav-button {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.24);
    color: #fff;
}

body[data-template="forge-plate"] .preview-copy h1,
body[data-template="forge-plate"] .preview-copy .lead,
body[data-template="desk-console"] .preview-copy h1,
body[data-template="desk-console"] .preview-copy .lead {
    color: #fff;
}

body[data-template="forge-plate"] .preview-copy,
body[data-template="desk-console"] .preview-copy {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(0,0,0,.24);
    box-shadow: 0 22px 50px rgba(0,0,0,.18);
}

body[data-template="forge-plate"] .hero-quote,
body[data-template="desk-console"] .hero-quote {
    background: rgba(0,0,0,.22);
    color: #fff;
}

.preview-copy h1 {
    color: var(--concept-ink);
}

.preview-copy .lead {
    max-width: 680px;
}

.hero-quote {
    max-width: 620px;
    margin: 18px 0 0;
    padding: 16px 18px;
    border-left: 5px solid var(--concept-accent);
    border-radius: 0 8px 8px 0;
    background: rgba(255,255,255,.74);
    color: var(--concept-ink);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(20,31,52,.07);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-art {
    overflow: hidden;
    border: 1px solid rgba(23,32,51,.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 26px 58px rgba(20,31,52,.13);
}

body[data-template="dock-board"] .hero-art {
    border-radius: 8px 8px 38px 8px;
}

body[data-template="pilot-map"] .hero-art {
    border-radius: 36px 8px 36px 8px;
}

body[data-template="gallery-crate"] .hero-art {
    border-radius: 0;
    box-shadow: 18px 18px 0 var(--concept-accent), 0 22px 50px rgba(20,31,52,.12);
}

body[data-template="pond-card"] .hero-art {
    border-radius: 38px;
}

body[data-template="parts-counter"] .hero-art {
    border-radius: 8px;
    border-width: 2px;
    box-shadow: 0 10px 0 rgba(31,45,61,.12), 0 26px 58px rgba(20,31,52,.12);
}

body[data-template="desk-console"] .hero-art {
    border-radius: 8px;
    background: #111827;
    border-color: rgba(255,255,255,.16);
}

body[data-template="flora-field"] .hero-art {
    border-radius: 48px 48px 8px 8px;
}

body[data-template="bench-note"] .hero-art {
    width: min(980px, 100%);
    margin: 0 auto;
    border-radius: 8px;
}

body[data-template="forge-plate"] .hero-art {
    border-radius: 2px;
    border-color: rgba(37,37,37,.42);
    box-shadow: 12px 12px 0 var(--concept-accent), 0 26px 58px rgba(20,31,52,.2);
}

body[data-template="swift-route"] .hero-art {
    border-radius: 44px 8px 8px 44px;
}

.hero-art-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}

.hero-art-title {
    color: var(--concept-ink);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.hero-art-body {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
}

body[data-template="gallery-crate"] .hero-art-body,
body[data-template="desk-console"] .hero-art-body {
    grid-template-columns: 1fr;
}

body[data-template="parts-counter"] .hero-art-body {
    grid-template-columns: .9fr 1.1fr;
}

body[data-template="bench-note"] .hero-art-body {
    grid-template-columns: .74fr 1fr;
}

.large-icon {
    display: grid;
    place-items: center;
    min-height: 328px;
    border-radius: 8px;
    background: var(--concept-soft);
}

body[data-template="gallery-crate"] .large-icon {
    min-height: 390px;
    border-radius: 0;
}

body[data-template="pond-card"] .large-icon {
    border-radius: 34px;
}

body[data-template="desk-console"] .large-icon {
    min-height: 250px;
    background: rgba(255,255,255,.08);
}

body[data-template="forge-plate"] .large-icon {
    border-radius: 2px;
}

body[data-template="flora-field"] .large-icon {
    border-radius: 40px 40px 8px 8px;
}

.large-icon svg {
    width: 100%;
    height: auto;
}

.concept-story {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

body[data-template="pilot-map"] .concept-story,
body[data-template="swift-route"] .concept-story {
    border-radius: 28px 8px 28px 8px;
}

body[data-template="gallery-crate"] .concept-story {
    border-width: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
}

body[data-template="pond-card"] .concept-story {
    border-radius: 28px;
}

body[data-template="parts-counter"] .concept-story {
    border-left: 8px solid var(--concept-accent);
}

body[data-template="desk-console"] .concept-story {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.16);
}

body[data-template="desk-console"] .concept-story h2,
body[data-template="desk-console"] .concept-story p {
    color: #fff;
}

body[data-template="forge-plate"] .concept-story {
    border-radius: 2px;
    background: #252525;
}

body[data-template="forge-plate"] .concept-story h2,
body[data-template="forge-plate"] .concept-story p {
    color: #fff;
}

body[data-template="flora-field"] .concept-story {
    border-radius: 8px 8px 34px 34px;
}

.concept-story span {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--concept-soft);
    color: var(--concept-ink);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.concept-story h2 {
    margin-bottom: 12px;
    color: var(--concept-ink);
    font-size: 25px;
    line-height: 1.12;
    font-weight: 950;
}

.concept-story p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
}

.story-link {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 8px;
    background: var(--concept-accent);
    color: var(--concept-ink);
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
}

.embed-panel {
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #edf3f8;
    box-shadow: 0 24px 56px rgba(20,31,52,.11);
}

body[data-template="pilot-map"] .embed-panel {
    border-radius: 32px 8px 32px 8px;
}

body[data-template="gallery-crate"] .embed-panel,
body[data-template="forge-plate"] .embed-panel {
    border-radius: 2px;
}

body[data-template="pond-card"] .embed-panel {
    border-radius: 34px;
}

body[data-template="desk-console"] .embed-panel {
    border-color: rgba(17,24,39,.28);
}

body[data-template="flora-field"] .embed-panel {
    border-radius: 34px 34px 8px 8px;
}

body[data-template="swift-route"] .embed-panel {
    border-radius: 8px 34px 8px 34px;
}

.embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.embed-header h2 {
    margin-bottom: 7px;
    color: var(--concept-ink);
    font-size: 26px;
    line-height: 1.18;
    font-weight: 950;
}

.embed-header p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.48;
    font-weight: 700;
}

.embed-panel iframe {
    display: block;
    width: 100%;
    height: 680px;
    border: 0;
    background: #edf3f8;
}

.info-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

body[data-template="bench-note"] .info-band {
    grid-template-columns: 1.2fr .9fr .9fr;
}

body[data-template="gallery-crate"] .info-band {
    grid-template-columns: .8fr 1.1fr 1.1fr;
}

.info-box {
    min-height: 118px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

body[data-template="pilot-map"] .info-box,
body[data-template="swift-route"] .info-box {
    border-radius: 24px 8px 24px 8px;
}

body[data-template="pond-card"] .info-box {
    border-radius: 26px;
}

body[data-template="gallery-crate"] .info-box,
body[data-template="forge-plate"] .info-box {
    border-radius: 2px;
}

body[data-template="parts-counter"] .info-box {
    border-top: 6px solid var(--concept-accent);
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--concept-ink);
    font-size: 15px;
    font-weight: 950;
}

.info-box span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

@media (max-width: 1120px) {
    .idea-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .preview-hero,
    .board-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 22px, 1220px);
        padding-top: 16px;
    }

    .topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-actions {
        justify-content: flex-start;
    }

    h1 {
        font-size: 40px;
    }

    .lead {
        font-size: 16px;
    }

    .idea-grid,
    .info-band,
    .hero-art-body {
        grid-template-columns: 1fr;
    }

    .idea-card {
        min-height: 0;
    }

    .preview-hero {
        min-height: 0;
    }

    .embed-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .embed-panel iframe {
        height: 760px;
    }
}
