:root {
    --bg: #0b0e13;
    --bg-soft: #10141b;
    --surface: #141922;
    --surface-2: #191f2a;
    --line: #242b38;
    --text: #f3f6fb;
    --muted: #949eaf;
    --muted-2: #687486;
    --accent: #8a6cff;
    --accent-2: #b7a6ff;
    --green: #6fd3a8;
    --amber: #e7b66d;
    --red: #ef8181;
    --shadow: 0 22px 70px rgba(0, 0, 0, .28);
    --radius: 18px;
    --shell: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 80% -10%, rgba(138,108,255,.12), transparent 33rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; }

button, input, textarea, select {
    font: inherit;
}

button, a, input, textarea, select {
    outline-color: var(--accent);
    outline-offset: 3px;
}

button { cursor: pointer; }

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(36,43,56,.82);
    background: rgba(11,14,19,.82);
    backdrop-filter: blur(18px);
}

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #9d7cff, #6d55df);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(116,88,238,.24);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 14px;
    letter-spacing: -.01em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav > a {
    color: #b6c0cf;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13px;
}

.nav-group {
    position: relative;
}

.nav-group summary {
    list-style: none;
    color: #b6c0cf;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group summary span {
    margin-left: 4px;
    color: var(--muted-2);
    font-size: 11px;
}

.nav-group summary:hover {
    background: rgba(255,255,255,.04);
    color: #fff;
}

.nav-group-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    display: grid;
    gap: 3px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #0f141b;
    box-shadow: var(--shadow);
}

.nav-group-menu a {
    padding: 9px 10px;
    border-radius: 9px;
    color: #b6c0cf;
    font-size: 12px;
}

.nav-group-menu a:hover {
    background: rgba(255,255,255,.04);
    color: #fff;
}

.site-nav > a:hover {
    background: rgba(255,255,255,.04);
    color: #fff;
}

.site-nav .nav-cta {
    margin-left: 4px;
    padding-inline: 14px;
    color: #fff;
    background: rgba(138,108,255,.14);
    border: 1px solid rgba(138,108,255,.24);
}

.site-nav .nav-admin {
    color: var(--accent-2);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #dce2ec;
    border-radius: 2px;
}

.hero-shell {
    border-bottom: 1px solid rgba(36,43,56,.72);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
    gap: 72px;
    align-items: center;
    min-height: 610px;
    padding: 96px 0 92px;
}

.hero-copy {
    max-width: 730px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(48px, 7vw, 82px);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-lede {
    max-width: 680px;
    margin: 24px 0 0;
    color: #aab4c3;
    font-size: 19px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
}

.button.primary {
    background: linear-gradient(135deg, #9578ff, #7058df);
    color: #fff;
    box-shadow: 0 12px 30px rgba(112,88,223,.2);
}

.button.primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.button.secondary {
    background: #1a202b;
    border-color: #2a3240;
    color: #e9eef7;
}

.button.secondary:hover {
    color: #fff;
    background: #202735;
}

.button.ghost {
    background: transparent;
    border-color: var(--line);
    color: #c2ccdb;
}

.button.full { width: 100%; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
    color: var(--muted-2);
    font-size: 12px;
}

.hero-meta b { color: #d9e0eb; }

.hero-panel {
    min-height: 370px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(160deg, rgba(138,108,255,.10), transparent 55%),
        linear-gradient(180deg, #151a23, #11161e);
    box-shadow: var(--shadow);
}

.panel-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a6b0bf;
    font-size: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.signal {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(111,211,168,.08);
}

.panel-line {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding: 26px 0;
    border-bottom: 1px solid rgba(36,43,56,.7);
}

.panel-line span {
    color: var(--muted-2);
    font-size: 11px;
    letter-spacing: .08em;
}

.panel-line strong {
    font-size: 18px;
    letter-spacing: -.02em;
}

.hero-panel-foot {
    margin-top: 22px;
    color: var(--muted-2);
    font-size: 12px;
}

.section {
    padding-top: 92px;
    padding-bottom: 20px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2,
.placeholder-section h2,
.product-split h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.text-link {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 700;
}

.centered { display: inline-flex; justify-content: center; margin-inline: auto; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.post-card {
    display: flex;
    flex-direction: column;
    min-height: 265px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008));
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: #323b4a;
    background: rgba(255,255,255,.025);
}

.post-card-top,
.post-card-bottom,
.post-row-meta,
.post-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(138,108,255,.12);
    color: var(--accent-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-date,
.post-card-bottom,
.post-row-meta,
.post-row-bottom {
    color: var(--muted-2);
    font-size: 11px;
}

.post-card h3 {
    margin: 28px 0 12px;
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -.03em;
}

.post-card p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.post-card-bottom {
    margin-top: auto;
    padding-top: 24px;
}

.split-callout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
    padding-bottom: 100px;
}

.callout-card {
    padding: 30px;
    min-height: 270px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0, rgba(138,108,255,.1), transparent 18rem),
        var(--surface);
}

.callout-card.quiet {
    background: rgba(255,255,255,.015);
}

.callout-card h2 {
    max-width: 640px;
    margin: 6px 0 12px;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.callout-card p {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--muted);
}

.page-hero {
    padding: 100px 0 68px;
}

.page-hero.compact {
    padding-bottom: 46px;
}

.page-hero .hero-lede {
    margin-top: 18px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255,255,255,.018);
}

.filter-bar > label:not(.search-field) {
    min-width: 170px;
}

.search-field {
    flex: 1 1 300px;
}

input,
textarea,
select {
    width: 100%;
    color: #edf2f8;
    background: #111720;
    border: 1px solid #2a3240;
    border-radius: 11px;
    padding: 10px 12px;
}

input::placeholder,
textarea::placeholder {
    color: #5f6b7e;
}

select { min-height: 44px; }

textarea { resize: vertical; }

.post-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.post-row {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.post-row h2 {
    margin: 10px 0 9px;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.post-row p {
    max-width: 820px;
    margin: 0 0 15px;
    color: var(--muted);
}

.post-row-bottom { justify-content: flex-start; }

.pagination {
    display: flex;
    gap: 6px;
    margin-top: 28px;
}

.pagination a {
    min-width: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
}

.pagination a.active,
.pagination a:hover {
    color: #fff;
    border-color: #4b3f80;
    background: rgba(138,108,255,.12);
}

.empty-state {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 30px;
    border: 1px dashed #303948;
    border-radius: var(--radius);
    background: rgba(255,255,255,.012);
}

.empty-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 12px;
    background: rgba(138,108,255,.1);
    color: var(--accent-2);
    font-size: 24px;
}

.empty-state strong { display: block; font-size: 15px; }
.empty-state p { margin: 4px 0 0; color: var(--muted-2); font-size: 12px; }

.article-shell {
    padding-top: 40px;
    padding-bottom: 80px;
}

.breadcrumbs {
    display: flex;
    gap: 9px;
    color: var(--muted-2);
    font-size: 12px;
}

.article-header {
    max-width: 900px;
    padding: 54px 0 28px;
}

.article-header h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.article-abstract {
    margin: 24px 0 0;
    color: #adb7c6;
    font-size: 19px;
    line-height: 1.55;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    color: var(--muted-2);
    font-size: 12px;
}

.article-cover {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    margin: 10px 0 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 54px;
}

.content-paper {
    min-width: 0;
}

.side-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255,255,255,.016);
}

.side-card.sticky {
    position: sticky;
    top: 104px;
}

.side-label {
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.side-value {
    color: #dce4ee;
    font-size: 13px;
}

.side-card a {
    color: #bac4d2;
    font-size: 12px;
}

.markdown {
    max-width: 820px;
}

.markdown > *:first-child { margin-top: 0; }

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4 {
    color: #f8faff;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.markdown h2 { margin-top: 50px; font-size: 32px; }
.markdown h3 { margin-top: 38px; font-size: 24px; }
.markdown h4 { margin-top: 30px; font-size: 18px; }

.markdown p,
.markdown ul,
.markdown ol,
.markdown blockquote,
.markdown pre {
    margin: 18px 0;
}

.markdown p,
.markdown li {
    color: #c0c8d5;
    font-size: 17px;
}

.markdown ul,
.markdown ol { padding-left: 26px; }

.markdown a {
    color: var(--accent-2);
    text-decoration: underline;
    text-decoration-color: rgba(183,166,255,.28);
    text-underline-offset: 3px;
}

.markdown blockquote {
    padding: 4px 0 4px 20px;
    border-left: 2px solid #4d3d83;
    color: #abb5c4;
}

.markdown code {
    padding: 2px 6px;
    border-radius: 7px;
    background: #10151c;
    border: 1px solid #252e3b;
    color: #dcd4ff;
    font-size: .9em;
}

.markdown pre {
    overflow: auto;
    padding: 18px;
    border: 1px solid #242c38;
    border-radius: 15px;
    background: #0a0e13;
}

.markdown pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: #d2d9e4;
}

.markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.markdown th,
.markdown td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.markdown th { color: #e7ecf5; }
.markdown td { color: #b8c1cf; }

.markdown hr {
    margin: 38px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.product-hero {
    border-bottom: 1px solid var(--line);
}

.product-hero-grid {
    min-height: 600px;
    padding: 90px 0;
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 60px;
    align-items: center;
}

.product-hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(48px, 6.2vw, 74px);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-note {
    max-width: 620px;
    margin: 15px 0 0;
    color: var(--muted-2);
    font-size: 14px;
}

.product-terminal {
    border: 1px solid #2b3240;
    border-radius: 18px;
    overflow: hidden;
    background: #0a0e13;
    box-shadow: var(--shadow);
}

.terminal-chrome {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 1px solid #202735;
    color: var(--muted-2);
    font-size: 11px;
}

.terminal-chrome span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3a424f;
}

.terminal-chrome b {
    margin-left: 8px;
    font-weight: 500;
}

.product-terminal pre {
    margin: 0;
    padding: 25px;
    color: #cbd3df;
    font-size: 13px;
    line-height: 1.9;
    overflow: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.feature-card,
.safety-card,
.step {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.016);
}

.feature-card span,
.step > span {
    color: var(--muted-2);
    font-size: 11px;
    letter-spacing: .1em;
}

.feature-card h3,
.safety-card h2,
.step h2 {
    margin: 22px 0 10px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.feature-card p,
.safety-card p,
.step p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.product-split {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    padding-bottom: 100px;
}

.content-placeholder {
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.placeholder-lines {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.placeholder-lines span {
    height: 10px;
    display: block;
    border-radius: 999px;
    background: #1b222d;
}

.placeholder-lines span:nth-child(2) { width: 88%; }
.placeholder-lines span:nth-child(3) { width: 64%; }
.placeholder-lines span:nth-child(4) { width: 42%; }

.placeholder-section {
    min-height: 220px;
    padding-top: 76px;
    padding-bottom: 80px;
    border-top: 1px solid var(--line);
}

.placeholder-section h2 {
    min-height: 34px;
}

.placeholder-section p {
    min-height: 28px;
    color: var(--muted);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 54px;
    padding-bottom: 80px;
}

.auth-shell {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
    padding: 60px 0;
}

.auth-card {
    width: min(100%, 450px);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #141922, #11161e);
    box-shadow: var(--shadow);
}

.auth-brand {
    margin-bottom: 32px;
}

.auth-card h1 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -.04em;
}

.auth-note {
    margin: 7px 0 25px;
    color: var(--muted);
    font-size: 13px;
}

.stack-form {
    display: grid;
    gap: 16px;
}

.stack-form label,
.editor-card label,
.editor-main label {
    display: grid;
    gap: 7px;
    color: #cbd4e1;
    font-size: 12px;
    font-weight: 600;
}

.check-row {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.check-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

.validation,
.field-error {
    color: #ff9c9c;
    font-size: 12px;
}

.field-error:empty { display: none; }

.flash {
    margin-top: 16px;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(111,211,168,.2);
    background: rgba(111,211,168,.07);
    color: #b9efd9;
    font-size: 13px;
}

.admin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-actions form { margin: 0; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.016);
}

.stat-card span {
    display: block;
    color: var(--muted-2);
    font-size: 11px;
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.04em;
}

.admin-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.admin-table-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.7fr) .7fr .8fr 1.1fr .7fr;
    gap: 12px;
    align-items: center;
    padding: 15px 16px;
    border-top: 1px solid var(--line);
    color: #aeb8c7;
    font-size: 12px;
}

.admin-table-row.head {
    border-top: 0;
    color: var(--muted-2);
    background: #111720;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.table-title {
    overflow: hidden;
    color: #e9eef6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.row-actions form { margin: 0; }

.status-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.status-pill.published {
    background: rgba(111,211,168,.1);
    color: #8fdfbf;
}

.status-pill.draft {
    background: rgba(231,182,109,.1);
    color: #ecc589;
}

.danger-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #e98787;
    font-size: 12px;
}

.editor-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.editor-main {
    display: grid;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.012);
}

.field-large input {
    font-size: 24px;
    font-weight: 600;
}

.markdown-editor {
    min-height: 720px;
    resize: vertical;
    font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted-2);
    font-size: 11px;
}

.editor-side {
    display: grid;
    gap: 13px;
}

.editor-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.012);
}

.card-label {
    margin-bottom: -2px;
    color: #f0f4fa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.editor-card small {
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.5;
}

.admin-cover-preview {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 11px;
    border: 1px solid var(--line);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.status-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 999px;
}

.status-dot.green { background: var(--green); }
.status-dot.amber { background: var(--amber); }
.status-dot.red { background: var(--red); }

.source-table {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.source-row {
    display: grid;
    grid-template-columns: .7fr 1fr 1.2fr;
    gap: 18px;
    padding: 15px 16px;
    border-top: 1px solid var(--line);
    color: #aeb8c7;
    font-size: 12px;
}

.source-row:first-child { border-top: 0; }

.source-row.head {
    color: var(--muted-2);
    background: #111720;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
}

.site-footer {
    margin-top: 110px;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.012);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    padding: 44px 0 32px;
}

.brand-footer { margin-bottom: 15px; }

.footer-note {
    max-width: 520px;
    margin: 0;
    color: var(--muted-2);
    font-size: 12px;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-links a {
    color: #9aa5b4;
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0 23px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 10px;
    letter-spacing: .04em;
}

@media (max-width: 980px) {
    .site-nav {
        position: absolute;
        top: 76px;
        left: 20px;
        right: 20px;
        display: none;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #0f141b;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open { display: flex; }

    .site-nav > a,
    .nav-group summary { padding: 12px; }

    .nav-group {
        width: 100%;
    }

    .nav-group-menu {
        position: static;
        min-width: 0;
        padding: 0 0 4px 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-group-menu a {
        display: block;
        padding: 9px 12px;
    }

    .nav-toggle { display: block; }

    .hero,
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero { padding-top: 72px; }

    .hero-panel { max-width: 620px; }

    .feature-grid { grid-template-columns: repeat(2, 1fr); }

    .steps { grid-template-columns: repeat(2, 1fr); }

    .editor-form { grid-template-columns: 1fr; }

    .editor-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }

    .hero h1,
    .page-hero h1,
    .product-hero h1 { font-size: 48px; }

    .post-grid,
    .split-callout,
    .product-split,
    .content-layout,
    .article-layout,
    .feature-grid,
    .safety-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .section { padding-top: 68px; }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .admin-heading,
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .admin-actions { width: 100%; flex-wrap: wrap; }

    .admin-table-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .admin-table-row.head { display: none; }

    .editor-side { grid-template-columns: 1fr; }

    .markdown-editor { min-height: 560px; }

    .article-header { padding-top: 40px; }

    .article-abstract,
    .markdown p,
    .markdown li { font-size: 16px; }

    .source-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.download-shell{padding-bottom:100px}
.download-card{max-width:760px;padding:30px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,#141922,#11161e);box-shadow:var(--shadow)}
.download-detected{display:grid;gap:5px;margin-bottom:24px}.download-detected strong{font-size:34px;letter-spacing:-.04em}.download-action{width:100%;min-height:52px}.download-action.disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.download-status{min-height:40px;margin:12px 0 20px;color:var(--muted-2);font-size:12px}.download-alternatives{display:flex;gap:7px;flex-wrap:wrap}.download-alternatives button{border:1px solid var(--line);background:#111720;color:#aeb7c5;padding:8px 11px;border-radius:10px;font-size:11px}.download-alternatives button.selected{background:rgba(138,108,255,.12);border-color:#4b3f80;color:#e9e3ff}.placeholder-page,.legal-placeholder{padding-bottom:100px}.placeholder-block{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}.placeholder-block span{color:var(--muted-2);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.legal-placeholder{max-width:900px}.product-goals{display:grid;grid-template-columns:1fr 280px;gap:20px;padding-bottom:20px}.product-goals .content-paper{padding:30px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.012)}@media(max-width:980px){.product-goals{grid-template-columns:1fr}}@media(max-width:760px){.download-card{padding:22px}.download-detected strong{font-size:28px}}
