:root {
    --paper: #f7efe6;
    --paper-strong: #fffaf5;
    --paper-soft: #efe4d6;
    --ink: #171210;
    --ink-soft: #4f433d;
    --muted: #77675f;
    --line: rgba(23, 18, 16, 0.1);
    --line-strong: rgba(23, 18, 16, 0.18);
    --accent: #b96243;
    --accent-deep: #7f3f28;
    --accent-soft: #edd3c6;
    --olive: #7d8463;
    --panel: rgba(255, 250, 245, 0.82);
    --panel-solid: #fff8f1;
    --panel-dark: #1f1916;
    --panel-dark-soft: #2b241f;
    --success: #557b5b;
    --warn: #b27d2c;
    --danger: #a34f4f;
    --shadow-lg: 0 28px 80px rgba(103, 74, 54, 0.12);
    --shadow-md: 0 20px 48px rgba(103, 74, 54, 0.09);
    --radius-xl: 36px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --container: 1260px;
    --font-body: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
    --font-head: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
    --font-code: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.72;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at top left, rgba(185, 98, 67, 0.11), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(125, 132, 99, 0.1), transparent 24%),
        linear-gradient(180deg, #fbf4ec 0%, #f5ecdf 48%, #f9f4ee 100%);
}

body.theme-admin,
body.theme-login {
    background:
        radial-gradient(circle at top left, rgba(185, 98, 67, 0.09), transparent 36%),
        linear-gradient(180deg, #fbf7f1 0%, #f2eadf 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

code,
pre,
.brand-mark {
    font-family: var(--font-code);
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.5;
}

.orb-a {
    top: -100px;
    left: -90px;
    width: 260px;
    height: 260px;
    background: rgba(185, 98, 67, 0.18);
}

.orb-b {
    top: 12%;
    right: -120px;
    width: 320px;
    height: 320px;
    background: rgba(125, 132, 99, 0.14);
}

.orb-c {
    bottom: 10%;
    right: 10%;
    width: 240px;
    height: 240px;
    background: rgba(185, 98, 67, 0.12);
}

.grid-noise {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(23, 18, 16, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 18, 16, 0.022) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 88%);
}

.site-shell {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    padding: 26px 0 68px;
}

.site-shell-admin {
    width: min(calc(100% - 32px), 1320px);
}

.home-stack,
.stack-20,
.stack-28,
.stack-32 {
    display: grid;
}

.home-stack {
    gap: 42px;
}

.home-stack-compact {
    gap: 24px;
    margin-top: 24px;
}

.stack-20 {
    gap: 20px;
}

.stack-28 {
    gap: 28px;
}

.stack-32 {
    gap: 32px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 250, 245, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 34px rgba(103, 74, 54, 0.08);
}

.topbar-floating {
    position: sticky;
    top: 16px;
    z-index: 30;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ink), #352c27);
    color: #fff9f4;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-copy strong {
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.84rem;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.topnav a {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
    background: rgba(185, 98, 67, 0.08);
    border-color: rgba(185, 98, 67, 0.12);
    color: var(--ink);
    transform: translateY(-1px);
    outline: none;
}

.topnav-cta {
    background: linear-gradient(135deg, var(--ink), #3a2f29);
    color: #fffaf6 !important;
}

.topnav-cta:hover,
.topnav-cta:focus-visible {
    background: linear-gradient(135deg, #2d2521, #4a3a32) !important;
}

.panel-panel {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(23, 18, 16, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
        var(--panel);
    box-shadow: var(--shadow-md);
}

.panel-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, rgba(185, 98, 67, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 25%);
}

.editorial-hero,
.curation-grid,
.comment-stage,
.console-hero,
.admin-dashboard-grid,
.hero-metrics,
.console-stats,
.grid-two,
.feature-band,
.node-grid,
.fleet-grid {
    display: grid;
    gap: 22px;
}

.editorial-hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    align-items: start;
}

.hero-download-first {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.88fr);
}

.hero-copy {
    min-height: 100%;
}

.hero-generator-stack {
    display: grid;
    gap: 12px;
    align-content: start;
    position: sticky;
    top: 100px;
}

.hero-copy h1,
.section-head h2,
.console-hero h1,
.login-panel h1,
.editorial-copy h3,
.floating-note h3 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.35rem, 4.8vw, 4.25rem);
}

.section-head h2,
.console-hero h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.35rem);
}

.login-panel h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.45rem);
}

.hero-lead,
.section-head p,
.feedback-line,
.comment-placeholder p,
.feature-card p,
.node-meta,
.token-meta,
.login-copy,
.status-box p,
.toggle-card small,
.editorial-copy p,
.floating-note p {
    color: var(--muted);
    line-height: 1.74;
}

.hero-lead {
    max-width: 62ch;
    margin: 18px 0 0;
    font-size: 1.02rem;
    font-weight: 400;
}

.hero-inline-media {
    margin-top: 28px;
}

.eyebrow {
    margin-bottom: 12px;
    color: rgba(23, 18, 16, 0.56);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.signal-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.signal-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.56);
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-cta-row,
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 0.96rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), #cf7f5a);
    color: #fffaf6;
    box-shadow: 0 16px 36px rgba(185, 98, 67, 0.2);
}

.button-secondary,
.button-ghost {
    border-color: rgba(23, 18, 16, 0.09);
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink);
}

.button-secondary:hover,
.button-ghost:hover,
.button-secondary:focus-visible,
.button-ghost:focus-visible {
    border-color: rgba(23, 18, 16, 0.16);
    background: rgba(255, 255, 255, 0.92);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
}

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

.metric-card,
.stat-card,
.result-card,
.feature-card,
.node-card,
.token-item,
.comment-placeholder,
.stack-card,
.toggle-card,
.status-box,
.editorial-card,
.floating-note {
    border: 1px solid rgba(23, 18, 16, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 248, 0.85);
    box-shadow: 0 14px 34px rgba(103, 74, 54, 0.06);
}

.metric-card,
.stat-card,
.feature-card,
.node-card,
.token-item,
.comment-placeholder,
.stack-card,
.status-box,
.floating-note {
    padding: 20px;
}

.metric-kicker,
.stat-card span,
.result-label,
.feature-index {
    color: var(--muted);
}

.metric-card strong,
.stat-card strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-head);
    font-size: 1.38rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.metric-card small,
.stat-card span,
.result-label,
.field-label,
.toggle-card small,
.feedback-line {
    font-size: 0.92rem;
}

.terminal-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: var(--panel-dark);
    color: #f7f0e9;
    box-shadow: var(--shadow-md);
}

.terminal-header {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-header span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.terminal-header span:first-child {
    background: #f08866;
}

.terminal-header span:nth-child(2) {
    background: #d1ab5c;
}

.terminal-header span:nth-child(3) {
    background: #8ca17a;
}

.terminal-body {
    margin: 0;
    padding: 18px;
    overflow: auto;
    color: #f6ece2;
    line-height: 1.75;
    font-size: 0.88rem;
    font-family: var(--font-code);
}

.floating-terminal {
    width: min(92%, 470px);
    margin-left: auto;
}

.floating-note {
    position: absolute;
    right: -12px;
    bottom: 120px;
    width: min(76%, 310px);
    backdrop-filter: blur(12px);
}

.floating-note h3 {
    font-size: 1.28rem;
}

.floating-note p {
    margin: 10px 0 0;
}

.photo-card {
    margin: 0;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) + 2px);
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-lg);
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-card-main {
    border-top-left-radius: 140px;
}

.photo-card-inline {
    border-top-left-radius: 88px;
    max-width: 720px;
}

.photo-card-tall img {
    min-height: 100%;
    object-fit: cover;
}

.curation-stage,
.fleet-stage {
    display: grid;
    gap: 22px;
}

.section-head {
    margin-bottom: 0;
}

.section-head-wide {
    display: grid;
    gap: 12px;
}

.section-head p {
    max-width: 68ch;
    margin: 0;
}

.curation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-card {
    display: grid;
    overflow: hidden;
}

.editorial-card-terminal {
    background: transparent;
    box-shadow: none;
    border: 0;
}

.editorial-copy {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.editorial-copy h3 {
    font-size: 1.34rem;
    line-height: 1.32;
}

.editorial-copy p {
    margin: 0;
}

.comment-stage {
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
}

.focus-hero {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.focus-hero-head {
    display: grid;
    gap: 14px;
}

.focus-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.focus-title-block {
    display: grid;
    gap: 10px;
}

.focus-title-block h1 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.focus-title-block p {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.68;
}

.focus-chip-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 300px;
}

.focus-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

.focus-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 16px;
    align-items: start;
}

.focus-pane {
    border: 1px solid rgba(23, 18, 16, 0.08);
    border-radius: 30px;
    background: rgba(255, 252, 248, 0.78);
    box-shadow: 0 16px 34px rgba(103, 74, 54, 0.06);
}

.focus-pane-input {
    padding: 18px;
}

.focus-pane-output {
    padding: 18px;
}

.focus-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.mini-stat-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.76);
}

.mini-stat-card span {
    color: var(--muted);
    font-size: 0.8rem;
}

.mini-stat-card strong {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.compact-status-box {
    padding: 12px 14px;
}

.compact-panel-section {
    gap: 18px;
    padding: 22px;
}

.section-head-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.section-head-inline p {
    margin: 0;
    max-width: 28rem;
    text-align: right;
}

.fleet-stage .node-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-stage {
    display: grid;
    gap: 18px;
}

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

.sponsor-card {
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 82px;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(103, 74, 54, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(185, 98, 67, 0.18);
    box-shadow: 0 14px 28px rgba(103, 74, 54, 0.08);
    outline: none;
}

.sponsor-card img {
    display: block;
    width: 100%;
    max-height: 44px;
    object-fit: contain;
}

.sponsor-card-placeholder {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
}

.tool-actions-tight {
    margin-top: 12px;
}

.ad-preview-box {
    display: grid;
    place-items: center;
    min-height: 112px;
    padding: 14px;
    border-radius: 18px;
    border: 1px dashed rgba(23, 18, 16, 0.14);
    background: rgba(255, 255, 255, 0.65);
    color: var(--muted);
    text-align: center;
}

.ad-preview-box img {
    display: block;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.ad-admin-list {
    display: grid;
    gap: 14px;
}

.ad-admin-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 248, 0.86);
    box-shadow: 0 12px 28px rgba(103, 74, 54, 0.05);
}

.ad-admin-thumb {
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.ad-admin-thumb img {
    display: block;
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
}

.ad-admin-copy {
    display: grid;
    align-content: start;
    gap: 10px;
}

.ad-admin-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ad-admin-top h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
}

.ad-admin-top p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    word-break: break-all;
}

.ad-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.comments-inline-panel {
    display: grid;
    gap: 18px;
}

.comment-side {
    display: grid;
    gap: 22px;
}

.tool-card,
.result-card,
.form-card {
    padding: 24px;
}

.hero-tool-card,
.hero-result-card {
    padding: 18px;
}

.hero-card-head {
    margin-bottom: 10px;
}

.hero-card-head .eyebrow {
    margin-bottom: 6px;
}

.hero-card-head h2 {
    font-size: clamp(1.22rem, 1.7vw, 1.56rem);
    line-height: 1.24;
}

.hero-card-head p {
    margin-top: 4px;
    font-size: 0.87rem;
    line-height: 1.56;
}

.hero-form-stack {
    gap: 12px;
}

.status-box {
    display: grid;
    gap: 8px;
    margin: 0;
    background: rgba(255, 250, 245, 0.72);
}

.status-box.subdued {
    background: rgba(255, 255, 255, 0.55);
}

.status-box strong {
    font-size: 0.98rem;
    font-weight: 700;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(23, 18, 16, 0.1);
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.66);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(185, 98, 67, 0.32);
    box-shadow: 0 0 0 4px rgba(185, 98, 67, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

input::placeholder,
textarea::placeholder {
    color: #8d7c74;
}

textarea {
    resize: vertical;
}

#github-url {
    min-height: 96px;
}

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

.sample-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sample-chip {
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sample-chip:hover,
.sample-chip:focus-visible {
    background: rgba(185, 98, 67, 0.08);
    border-color: rgba(185, 98, 67, 0.18);
    outline: none;
}

.feedback-line {
    margin: 14px 0 0;
}

.hero-form-stack .feedback-line {
    margin-top: 6px;
    font-size: 0.88rem;
}

.feedback-line.is-error {
    color: var(--danger);
}

.feedback-line.is-success {
    color: var(--success);
}

.result-head,
.node-top,
.token-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.result-card h3,
.feature-card h3,
.node-card h3,
.token-item h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.06rem;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 132, 99, 0.22);
    background: rgba(125, 132, 99, 0.12);
    color: #4d5d42;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
}

.badge.warn {
    border-color: rgba(178, 125, 44, 0.2);
    background: rgba(178, 125, 44, 0.12);
    color: #8b6526;
}

.badge.offline {
    border-color: rgba(163, 79, 79, 0.18);
    background: rgba(163, 79, 79, 0.1);
    color: #8d4444;
}

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

.result-block + .result-block,
.node-meta,
.token-meta {
    margin-top: 12px;
}

.result-block strong,
.result-block code,
.result-link {
    display: block;
    margin-top: 6px;
    word-break: break-all;
}

.hero-result-card .result-head {
    gap: 10px;
    margin-bottom: 2px;
}

.hero-result-card .result-label {
    font-size: 0.8rem;
}

.hero-result-card .result-block strong,
.hero-result-card .result-block code,
.hero-result-card .result-link {
    font-size: 0.89rem;
    line-height: 1.48;
}

.hero-result-card .status-box.subdued {
    gap: 6px;
    margin-top: 12px;
    padding: 12px 14px;
}

.hero-tool-card .field-label,
.hero-result-card .result-label {
    margin-bottom: 6px;
}

.hero-tool-card input,
.hero-tool-card textarea,
.hero-tool-card select {
    padding: 10px 12px;
    border-radius: 15px;
    font-size: 0.93rem;
}

.hero-tool-card .tool-actions {
    gap: 10px;
    margin-top: 14px;
}

.hero-generator-stack .button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.93rem;
}

.hero-result-card .badge {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.78rem;
}

.hero-result-card .result-grid {
    gap: 10px;
}

.hero-result-card .result-block + .result-block {
    margin-top: 10px;
}

.hero-result-card .status-box strong {
    font-size: 0.92rem;
}

.hero-result-card .status-box p {
    font-size: 0.86rem;
    line-height: 1.52;
}

.result-link {
    color: var(--accent-deep);
    line-height: 1.7;
}

.feature-band,
.node-grid,
.fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toggle-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
}

.toggle-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.toggle-card strong {
    display: block;
}

.toggle-card small {
    display: block;
    margin-top: 6px;
}

.comment-placeholder {
    display: grid;
    gap: 12px;
}

.comment-placeholder strong {
    font-size: 1rem;
    font-weight: 700;
}

.comment-placeholder p {
    margin: 0;
}

.comment-placeholder .button {
    width: fit-content;
}

.comment-surface {
    min-height: 100%;
}

.waline-shell {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.62);
    padding: 14px;
}

.comments-panel .wl-editor,
.comments-panel .wl-panel,
.comments-panel .wl-card,
.comments-panel .wl-meta input,
.comments-panel .wl-input {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(23, 18, 16, 0.08) !important;
    color: var(--ink) !important;
}

.comments-panel .wl-meta input::placeholder,
.comments-panel .wl-input::placeholder {
    color: #8d7c74 !important;
}

.comments-panel .wl-btn.primary {
    background: linear-gradient(135deg, var(--accent), #cf7f5a) !important;
    border: 0 !important;
    color: #fffaf6 !important;
}

.comments-panel .wl-count,
.comments-panel .wl-header label,
.comments-panel .wl-empty,
.comments-panel .wl-sort li,
.comments-panel .wl-login-info {
    color: var(--muted) !important;
}

.comments-panel .wl-action,
.comments-panel .wl-like,
.comments-panel .wl-time {
    color: var(--ink-soft) !important;
}

.token-list {
    display: grid;
    gap: 14px;
}

.node-meta,
.token-meta {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.node-meta span,
.token-meta span {
    display: block;
}

.empty-state {
    color: var(--muted);
    text-align: center;
    display: grid;
    place-items: center;
    min-height: 120px;
}

.skeleton-card {
    display: grid;
    gap: 12px;
}

.skeleton-line {
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(23, 18, 16, 0.05), rgba(23, 18, 16, 0.12), rgba(23, 18, 16, 0.05));
    background-size: 240px 100%;
    animation: shimmer 1.4s linear infinite;
}

.skeleton-line.short {
    width: 52%;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li::before {
    content: ">";
    color: var(--accent);
    margin-right: 8px;
}

.console-hero,
.admin-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
}

.login-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.login-panel {
    width: min(100%, 560px);
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(23, 18, 16, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0)),
        rgba(255, 250, 245, 0.84);
    box-shadow: var(--shadow-lg);
}

.login-copy {
    margin: 16px 0 0;
    font-size: 0.96rem;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.login-button {
    margin-top: 8px;
}

.login-back {
    display: inline-flex;
    margin-top: 18px;
    color: var(--muted);
}

@keyframes shimmer {
    from {
        background-position: -240px 0;
    }

    to {
        background-position: 240px 0;
    }
}

@media (max-width: 1180px) {
    .editorial-hero,
    .comment-stage,
    .console-hero,
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .focus-workbench,
    .fleet-stage .node-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .focus-title-row,
    .section-head-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .focus-chip-group {
        justify-content: flex-start;
        max-width: none;
    }

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

    .hero-generator-stack {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-shell,
    .site-shell-admin {
        width: min(calc(100% - 20px), var(--container));
        padding-top: 14px;
    }

    .topbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
        border-radius: 28px;
    }

    .topnav {
        justify-content: flex-start;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .panel-panel,
    .login-panel {
        padding: 22px;
        border-radius: 26px;
    }

    .hero-metrics,
    .focus-mini-stats,
    .console-stats,
    .grid-two,
    .result-grid,
    .feature-band,
    .node-grid,
    .fleet-grid,
    .curation-grid {
        grid-template-columns: 1fr;
    }

    .button,
    .topnav a {
        width: 100%;
    }

    .focus-hero,
    .compact-panel-section {
        padding: 18px;
    }

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

    .ad-admin-card {
        grid-template-columns: 1fr;
    }
}

.brand-mark-image {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: auto;
    height: 48px;
    min-width: 0;
    max-width: 132px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    line-height: 0;
}

.brand-mark-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
}

.brand-login {
    margin-bottom: 24px;
}

.admin-app {
    width: min(calc(100% - 32px), 1380px);
    margin: 0 auto;
    padding: 18px 0 48px;
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-sidebar,
.admin-page-head {
    border: 1px solid rgba(23, 18, 16, 0.08);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0)),
        rgba(255, 249, 242, 0.9);
    box-shadow: 0 18px 42px rgba(103, 74, 54, 0.08);
}

.admin-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
    padding: 18px 16px 16px;
}

.brand-admin {
    gap: 12px;
    padding: 4px 2px 2px;
}

.brand-admin .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.84rem;
}

.brand-admin .brand-mark-image {
    height: 42px;
    max-width: 112px;
}

.brand-admin .brand-copy strong {
    font-size: 0.92rem;
}

.brand-admin .brand-copy small {
    font-size: 0.78rem;
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav-link {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid transparent;
    color: var(--ink-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
    border-color: rgba(185, 98, 67, 0.18);
    background: rgba(185, 98, 67, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.admin-nav-link.is-active {
    border-color: rgba(185, 98, 67, 0.2);
    background: linear-gradient(135deg, rgba(185, 98, 67, 0.13), rgba(255, 255, 255, 0.78));
    color: var(--ink);
}

.admin-nav-link strong {
    font-size: 0.89rem;
    font-weight: 700;
}

.admin-nav-link small {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.admin-sidebar-foot {
    display: grid;
    gap: 10px;
}

.logout-form {
    margin: 0;
}

.admin-sidebar-foot .button {
    width: 100%;
}

.admin-content,
.admin-page-body,
.admin-overview-grid,
.admin-insight-grid,
.admin-form-layout,
.admin-stat-grid,
.admin-shortcut-list,
.admin-kv-list {
    display: grid;
    gap: 16px;
}

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

.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.admin-page-copy h1 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.42rem, 2vw, 2rem);
    font-weight: 740;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.admin-page-copy p {
    margin: 8px 0 0;
    max-width: 44rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

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

.admin-user-chip {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.66);
}

.admin-user-chip span {
    color: var(--muted);
    font-size: 0.72rem;
}

.admin-user-chip strong {
    font-size: 0.88rem;
}

.admin-overview-grid,
.admin-form-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.settings-page-layout {
    display: grid;
    gap: 16px;
}

.settings-form-card {
    display: grid;
    gap: 22px;
}

.settings-workspace {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.settings-subnav,
.settings-panel-stack,
.settings-pane,
.settings-pane-head,
.settings-brand-upload {
    display: grid;
    gap: 14px;
}

.settings-subnav {
    position: sticky;
    top: 18px;
}

.settings-subnav-item {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-subnav-item:hover,
.settings-subnav-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(185, 98, 67, 0.18);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.settings-subnav-item.is-active {
    border-color: rgba(185, 98, 67, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 238, 0.96));
    box-shadow: 0 16px 30px rgba(185, 98, 67, 0.08);
}

.settings-subnav-item strong {
    font-size: 0.94rem;
    font-weight: 700;
}

.settings-subnav-item small,
.settings-save-hint {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.settings-subnav-note {
    margin-top: 2px;
}

.settings-pane {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.settings-pane[hidden] {
    display: none !important;
}

.settings-pane-head h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 700;
}

.settings-pane-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.58;
}

.settings-brand-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.settings-brand-preview {
    display: grid;
    gap: 14px;
}

.settings-savebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

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

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

.admin-stat-panel h2,
.admin-shortcuts-panel h2,
.admin-preview-panel h2,
.admin-security-summary h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.16rem;
    font-weight: 700;
}

.admin-shortcut-list {
    gap: 12px;
}

.admin-shortcut-card {
    display: grid;
    gap: 6px;
    padding: 13px 14px;
    border-radius: 18px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.admin-shortcut-card:hover,
.admin-shortcut-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(185, 98, 67, 0.18);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.admin-shortcut-card strong {
    font-size: 0.9rem;
}

.admin-shortcut-card span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.admin-grid-tight {
    align-items: stretch;
}

.admin-remove-toggle {
    margin-top: 24px;
}

.site-logo-preview-card {
    display: grid;
    place-items: center;
    min-height: 164px;
    padding: 20px 24px;
    border-radius: 24px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.86));
}

.site-logo-preview-card.has-image {
    min-height: 132px;
    padding: 10px 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.site-logo-preview-card img {
    display: block;
    width: auto;
    max-width: min(100%, 280px);
    max-height: 110px;
    object-fit: contain;
}

.site-logo-preview-fallback {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--ink), #352c27);
    color: #fffaf6;
    font-family: var(--font-code);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.admin-kv-list {
    gap: 12px;
}

.admin-kv-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.admin-kv-item span {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-kv-item strong {
    font-size: 0.88rem;
    text-align: right;
    word-break: break-word;
}

.download-guard-panel,
.download-guard-subsection {
    display: grid;
    gap: 14px;
}

.download-guard-panel {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.download-guard-toggle-grid,
.download-guard-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-guard-subsection {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(248, 250, 255, 0.86);
}

.download-guard-hint {
    margin: 0;
}

.nav-links-list {
    display: grid;
    gap: 12px;
}

.nav-link-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(23, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

.nav-link-card-main,
.nav-link-card-copy,
.nav-link-card-meta {
    display: grid;
    gap: 8px;
}

.nav-link-card-copy strong {
    font-size: 0.95rem;
}

.nav-link-card-copy code {
    word-break: break-all;
}

.nav-link-card-meta {
    grid-template-columns: repeat(auto-fit, minmax(96px, max-content));
    align-items: center;
}

.theme-admin .panel-panel,
.theme-admin .form-card,
.theme-admin .tool-card,
.theme-admin .result-card {
    padding: 22px;
}

.theme-admin .section-head .eyebrow,
.theme-admin .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}

.theme-admin .section-head p,
.theme-admin .feedback-line,
.theme-admin .toggle-card small,
.theme-admin .status-box p,
.theme-admin .node-meta,
.theme-admin .token-meta {
    font-size: 0.86rem;
    line-height: 1.55;
}

.theme-admin .field-label {
    margin-bottom: 6px;
    font-size: 0.84rem;
    font-weight: 600;
}

.theme-admin input,
.theme-admin textarea,
.theme-admin select {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.theme-admin .button {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 14px;
    font-size: 0.88rem;
}

.theme-admin .stat-card,
.theme-admin .node-card,
.theme-admin .token-item,
.theme-admin .status-box,
.theme-admin .toggle-card,
.theme-admin .stack-card {
    padding: 16px;
}

.theme-admin .stat-card span,
.theme-admin .result-label,
.theme-admin .metric-kicker {
    font-size: 0.8rem;
}

.theme-admin .stat-card strong {
    margin-top: 6px;
    font-size: 1.12rem;
}

.theme-admin .ad-admin-card {
    gap: 14px;
    padding: 14px;
}

.theme-admin .ad-admin-top h3,
.theme-admin .node-card h3,
.theme-admin .token-item h3 {
    font-size: 0.96rem;
}

.theme-admin .badge {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
}

@media (max-width: 1180px) {
    .admin-app,
    .admin-overview-grid,
    .admin-insight-grid,
    .admin-form-layout {
        grid-template-columns: 1fr;
    }

    .settings-workspace,
    .settings-brand-grid {
        grid-template-columns: 1fr;
    }

    .settings-subnav {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .settings-subnav-note {
        grid-column: 1 / -1;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .admin-app {
        width: min(calc(100% - 20px), 1380px);
        padding-top: 14px;
        gap: 16px;
    }

    .admin-sidebar,
    .admin-page-head {
        border-radius: 24px;
    }

    .admin-page-head,
    .admin-kv-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-head-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .download-guard-toggle-grid,
    .download-guard-grid {
        grid-template-columns: 1fr;
    }

    .settings-subnav {
        grid-template-columns: 1fr;
    }

    .settings-pane {
        padding: 18px;
    }

    .settings-savebar {
        align-items: stretch;
    }

    .admin-nav-link {
        padding: 12px 14px;
    }

    .site-logo-preview-card {
        min-height: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
