:root {
  --bg: #f6f8fc;
  --ink: #17233c;
  --muted: #66738b;
  --line: #dfe5ef;
  --brand: #2563eb;
  --brand-dark: #1745b6;
  --navy: #0b1731;
  --cyan: #19b7c9;
  --warning: #b45309;
  --warning-bg: #fff7ed;
  --surface: #ffffff;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(23, 35, 60, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); color: white; background: rgba(11, 23, 49, 0.96); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--cyan)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brand-mark::after { content: "API"; font-size: 10px; letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 30px; color: #c8d3e7; font-size: 14px; }
.nav a:hover, .nav a.active { color: white; }
.nav-cta { padding: 8px 15px; border: 1px solid #52637d; border-radius: 9px; }
.hero { overflow: hidden; position: relative; color: white; background: radial-gradient(circle at 78% 30%, rgba(25,183,201,.28), transparent 28%), linear-gradient(130deg, #0b1731 8%, #122f70 72%, #1745b6); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 88px 24px 84px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 16px; color: #8de4ef; font-weight: 700; letter-spacing: .12em; font-size: 13px; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.12; letter-spacing: -.035em; }
.hero-copy { max-width: 680px; margin: 24px 0 32px; color: #d2dbeb; font-size: 18px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button { border: 0; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px; color: white; background: var(--brand); font-weight: 700; }
.button:hover { background: var(--brand-dark); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button.secondary { color: var(--ink); background: white; }
.button.ghost { color: var(--brand); background: #edf3ff; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.button.danger { color: #b42318; background: #fff1f0; }
.hero-panel { padding: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(7, 18, 42, .55); box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.hero-panel code { color: #9ce7ef; }
.terminal-line { margin: 8px 0; color: #cbd5e6; font-family: Consolas, monospace; font-size: 13px; }
.terminal-line strong { color: #6ee7b7; }
.section { max-width: 1180px; margin: 0 auto; padding: 72px 24px; }
.section-header { max-width: 720px; margin-bottom: 34px; }
.section-header h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.02em; }
.section-header p { margin: 0; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.product-card h3 { margin: 18px 0 8px; font-size: 24px; }
.product-card p { color: var(--muted); }
.product-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: white; background: linear-gradient(135deg, var(--brand), var(--cyan)); font-weight: 800; }
.badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; color: #155e75; background: #cffafe; font-size: 12px; font-weight: 700; }
.feature-list { padding: 0; list-style: none; color: #44516a; }
.feature-list li { margin: 8px 0; }
.feature-list li::before { content: "✓"; margin-right: 9px; color: #0f9f6e; font-weight: 800; }
.notice { padding: 14px 16px; border: 1px solid #fed7aa; border-radius: 10px; color: var(--warning); background: var(--warning-bg); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 23px; border-top: 3px solid var(--brand); background: white; box-shadow: var(--shadow); }
.step-number { color: var(--brand); font-weight: 800; }
.step h3 { margin: 8px 0; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.site-footer { padding: 40px 24px; color: #aebad0; background: var(--navy); text-align: center; font-size: 13px; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 42px 24px 72px; }
.page-title { margin-bottom: 30px; }
.page-title h1 { color: var(--ink); font-size: 38px; }
.page-title p { color: var(--muted); }
.docs-page { max-width: 1280px; }
.docs-title { max-width: 880px; }
.docs-title h1 { max-width: 760px; }
.docs-title > p:not(.eyebrow) { max-width: 780px; font-size: 17px; }
.docs-eyebrow { color: var(--brand) !important; }
.docs-title-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 38px; }
.docs-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 105px); overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.docs-nav-title { margin: 14px 11px 5px; color: #8a96aa; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.docs-nav-title:first-child { margin-top: 2px; }
.docs-nav a { display: block; padding: 7px 11px; color: var(--muted); border-radius: 8px; font-size: 14px; }
.docs-nav a:hover, .docs-nav a.active { color: var(--brand); background: #eef4ff; }
.docs-content { min-width: 0; }
.docs-content section { margin-bottom: 62px; padding-bottom: 10px; scroll-margin-top: 90px; }
.docs-content h2 { margin: 0 0 14px; font-size: 29px; letter-spacing: -.02em; }
.docs-content h3 { margin-top: 28px; }
.docs-content p { color: #526078; }
.docs-content :not(pre) > code { padding: 2px 5px; border-radius: 5px; color: #1745b6; background: #eef4ff; font-family: Consolas, monospace; font-size: .92em; }
.section-kicker { margin: 0 0 8px !important; color: var(--brand) !important; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.doc-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin: 26px 0; }
.flow-card { padding: 18px 16px; border: 1px solid #cfdbed; border-radius: 12px; background: white; }
.flow-card span { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 11px; border-radius: 50%; color: white; background: var(--brand); font-size: 12px; font-weight: 800; }
.flow-card strong, .flow-card small { display: block; }
.flow-card small { margin-top: 6px; color: var(--muted); line-height: 1.45; }
.flow-arrow { display: grid; place-items: center; color: #9aabc4; font-size: 18px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.doc-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.doc-card h3 { margin: 7px 0 8px; }
.doc-card p { margin: 0; }
.doc-card-label { color: var(--brand); font-size: 12px; font-weight: 800; }
.callout { margin: 20px 0; padding: 15px 17px; border: 1px solid; border-radius: 11px; font-size: 14px; }
.callout.info { color: #164e63; border-color: #a5f3fc; background: #ecfeff; }
.callout.warning { color: #92400e; border-color: #fed7aa; background: #fff7ed; }
.code-card { overflow: hidden; margin: 16px 0 22px; border: 1px solid #223454; border-radius: 12px; background: #101b32; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; color: #aebddb; border-bottom: 1px solid #2d3d5a; background: #17233c; font-size: 12px; }
.copy-code { padding: 4px 9px; color: #dbe7ff; border: 1px solid #52637d; border-radius: 6px; background: transparent; cursor: pointer; font-size: 12px; }
.copy-code:hover { color: white; border-color: #8aa5d1; }
.code-block { overflow-x: auto; margin: 0; padding: 20px; border-radius: 0; color: #dbe7ff; background: #101b32; font: 13px/1.7 Consolas, monospace; white-space: pre; }
.code-block code { padding: 0; color: inherit; background: transparent; font-size: inherit; }
.method { display: inline-block; margin-right: 10px; padding: 3px 8px; color: white; background: #0f9f6e; border-radius: 6px; font-size: 12px; font-weight: 800; }
.method.get { background: #2563eb; }
.method.post { background: #0f9f6e; }
.method.header { background: #7c3aed; }
.endpoint { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; font-family: Consolas, monospace; }
.endpoint code { padding: 0; color: var(--ink); background: transparent; }
.endpoint-note { margin-left: auto; color: var(--muted); font-family: Inter, "Microsoft YaHei", sans-serif; font-size: 12px; }
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 10px; }
.doc-details { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.doc-details summary { padding: 14px 17px; color: var(--brand); cursor: pointer; font-weight: 700; }
.doc-details .code-card { margin: 0 15px 15px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-grid > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.field-grid span { color: var(--muted); font-size: 13px; }
.required { color: #b42318; font-weight: 800; }
.retention-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.retention-grid div { padding: 17px; border: 1px solid #cbd9ee; border-radius: 11px; background: #f8fbff; }
.retention-grid strong, .retention-grid span { display: block; }
.retention-grid span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.docs-checklist { padding: 0; list-style: none; }
.docs-checklist li { margin: 9px 0; padding-left: 27px; position: relative; color: #526078; }
.docs-checklist li::before { content: "✓"; position: absolute; left: 0; color: #0f9f6e; font-weight: 800; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 11px; background: white; }
.faq-list summary { padding: 15px 17px; cursor: pointer; font-weight: 700; }
.faq-list p { margin: 0; padding: 0 17px 17px; }
.docs-next-step { padding: 28px !important; border: 1px solid #c7d7f3; border-radius: 16px; background: linear-gradient(135deg, #f8fbff, #edf5ff); }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f3f6fb; }
.console-body { min-height: 100vh; background: radial-gradient(circle at 8% 12%, rgba(37, 99, 235, .08), transparent 28%), radial-gradient(circle at 92% 32%, rgba(25, 183, 201, .08), transparent 26%), #f5f7fb; }
.console-body .site-header { border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 35px rgba(8, 18, 42, .16); }
.console-shell { max-width: 1320px; padding-top: 28px; }
.console-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 26px; padding: 34px 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; color: white; background: radial-gradient(circle at 82% 20%, rgba(34, 211, 238, .28), transparent 27%), linear-gradient(125deg, #0b1731, #163c8c 64%, #155e75); box-shadow: 0 24px 55px rgba(15, 39, 85, .2); }
.console-hero::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(90deg, transparent 10%, #000); pointer-events: none; }
.console-hero-copy, .console-hero-tags { position: relative; z-index: 1; }
.console-eyebrow { margin: 0 0 9px; color: #8de4ef; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.console-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.console-hero-copy > p:last-child { max-width: 650px; margin: 12px 0 0; color: #d8e4f7; font-size: 15px; }
.console-hero-tags { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.console-hero-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: #e4edfa; background: rgba(5, 15, 38, .28); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; white-space: nowrap; }
.console-hero-tags i { width: 7px; height: 7px; border-radius: 50%; background: #5ee6a8; box-shadow: 0 0 0 4px rgba(94,230,168,.13); }
.console-hero-tags strong { font: inherit; }
.console-hero-tags .api-health.checking i { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.14); }
.console-hero-tags .api-health.degraded { color: #fef3c7; border-color: rgba(251,191,36,.3); background: rgba(120,53,15,.3); }
.console-hero-tags .api-health.degraded i { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.14); }
.console-hero-tags .api-health.offline { color: #ffe4e6; border-color: rgba(251,113,133,.3); background: rgba(127,29,29,.3); }
.console-hero-tags .api-health.offline i { background: #fb7185; box-shadow: 0 0 0 4px rgba(251,113,133,.15); }
.console-grid { display: grid; gap: 24px; }
.auth-grid { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); max-width: 1040px; margin: 0 auto; align-items: stretch; }
.dashboard-grid { grid-template-columns: minmax(360px, 410px) minmax(0, 1fr); align-items: start; }
.system-status-panel { margin-bottom: 24px; }
.system-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.system-status-card { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; }
.system-status-card .status-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.system-status-card strong { color: var(--ink); font-size: 14px; }
.system-status-card small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.45; }
.system-status-card .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.system-status-card.degraded .status-dot, .system-status-card.stalled .status-dot, .system-status-card.unknown .status-dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.12); }
.system-status-card.unavailable .status-dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.console-sidebar, .console-main { min-width: 0; }
.console-main { display: grid; gap: 20px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.console-main .panel + .panel { margin-top: 0; }
.console-body .panel { border-color: #e2e8f2; border-radius: 18px; box-shadow: 0 12px 34px rgba(34, 52, 84, .075); }
.console-body .console-panel { transition: border-color .2s ease, box-shadow .2s ease; }
.console-body .console-panel:hover { border-color: #cbd7e8; box-shadow: 0 16px 40px rgba(34, 52, 84, .1); }
.panel h2, .panel h3 { margin-top: 0; }
.panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.panel-heading.compact { align-items: flex-start; margin-bottom: 18px; }
.panel-heading > div { min-width: 0; }
.panel-heading h2, .panel-heading h3 { margin: 0; line-height: 1.3; }
.panel-heading h2 { font-size: 21px; letter-spacing: -.015em; }
.panel-heading h3 { font-size: 17px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.panel-heading .grow { flex: 1; }
.panel-icon { flex: 0 0 auto; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: white; background: linear-gradient(135deg, #2563eb, #1745b6); box-shadow: 0 8px 18px rgba(37,99,235,.22); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.panel-heading.compact .panel-icon { width: 38px; height: 38px; border-radius: 11px; }
.panel-icon.soft { color: #1d4ed8; background: #e8f0ff; box-shadow: none; }
.panel-icon.violet { background: linear-gradient(135deg, #7c3aed, #5b21b6); box-shadow: 0 8px 18px rgba(124,58,237,.2); }
.panel-icon.teal { background: linear-gradient(135deg, #0891b2, #0f766e); box-shadow: 0 8px 18px rgba(8,145,178,.2); }
.panel-tag { margin-left: auto; padding: 5px 9px; border-radius: 99px; color: #075985; background: #e0f2fe; font-size: 11px; font-weight: 800; white-space: nowrap; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 7px; color: #46536a; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd8e6; border-radius: 10px; color: var(--ink); background: #fbfcfe; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field textarea { min-height: 86px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aab9cf; background: white; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: #4f7ff0; background: white; box-shadow: 0 0 0 4px rgba(37,99,235,.11); }
.field input::placeholder, .field textarea::placeholder { color: #9aa6b7; }
.field-help { margin: -6px 0 16px; color: var(--muted); font-size: 12px; }
.field-note { display: block; margin: 6px 0 0 24px; color: #7a879b; font-size: 10px; line-height: 1.5; }
.check-label { display: flex !important; align-items: center; gap: 8px; }
.check-label input { width: auto; min-height: 0; accent-color: var(--brand); }
.inline-create-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.inline-create-form .field { margin-bottom: 0; }
.inline-create-form .button { min-height: 44px; }
.button { white-space: nowrap; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.console-body .button:not(.ghost):not(.danger) { background: linear-gradient(135deg, #2f6cf0, #1d4ed8); box-shadow: 0 7px 16px rgba(37,99,235,.18); }
.console-body .button:hover { transform: translateY(-1px); }
.console-body .button.ghost { color: #1d4ed8; background: #eef4ff; box-shadow: none; }
.console-body .button.danger { color: #b42318; background: #fff0ef; box-shadow: none; }
.console-body .button.danger:hover { color: white; background: #c9362b; }
.tabs { display: flex; gap: 7px; margin-bottom: 18px; }
.console-body .tabs { width: fit-content; padding: 4px; border: 1px solid #e1e7f0; border-radius: 11px; background: #f3f6fa; }
.tab { border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.tab:hover { color: var(--brand); }
.tab.active { color: white; background: var(--brand); box-shadow: 0 5px 12px rgba(37,99,235,.2); }
.auth-panel { padding: 32px; }
.auth-panel .tabs { margin: 4px 0 24px; }
.auth-form .field { margin-bottom: 17px; }
.auth-submit { width: 100%; justify-content: space-between; padding-inline: 18px; }
.auth-submit span { font-size: 18px; }
.auth-info-panel { padding: 32px; background: linear-gradient(145deg, #fff, #f8fbff); }
.console-feature-list { display: grid; gap: 9px; margin: 0 0 22px; }
.console-feature-list li { position: relative; margin: 0; padding: 10px 12px 10px 38px; border: 1px solid #e5ebf4; border-radius: 11px; background: rgba(255,255,255,.75); }
.console-feature-list li::before { position: absolute; left: 13px; top: 12px; }
.console-feature-list strong, .console-feature-list span { display: block; }
.console-feature-list strong { color: #29364d; font-size: 13px; }
.console-feature-list span { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.security-notice { display: grid; gap: 3px; border-color: #fde3be; }
.security-notice strong, .security-notice span { display: block; }
.security-notice span { font-size: 12px; line-height: 1.55; }
.hidden { display: none !important; }
.status { min-height: 24px; margin-top: 10px; color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.status:empty { display: none; }
.status.error:not(:empty), .status.success:not(:empty) { padding: 9px 11px; border-radius: 9px; }
.status.error { color: #b42318; }
.status.error:not(:empty) { background: #fff3f2; }
.status.success { color: #087f5b; }
.status.success:not(:empty) { background: #ecfdf5; }
.key-result { word-break: break-all; padding: 12px; border: 1px dashed #8fb5ff; border-radius: 9px; color: #163f95; background: #f2f7ff; font-family: Consolas, monospace; }
.secret-result:empty { display: none; }
.one-time-secret { display: grid; gap: 9px; margin-top: 14px; padding: 13px; border: 1px solid #b9cffb; border-radius: 12px; background: linear-gradient(145deg, #f4f8ff, #eef5ff); }
.one-time-secret .notice { padding: 9px 11px; font-size: 11px; line-height: 1.55; }
.one-time-secret-label { color: #344054; font-size: 11px; font-weight: 800; }
.secret-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.secret-copy-row code { overflow-wrap: anywhere; padding: 11px; border: 1px dashed #8fb5ff; border-radius: 9px; color: #163f95; background: white; font-size: 11px; line-height: 1.5; }
.one-time-secret-meta { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.one-time-secret-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.one-time-secret-feedback { color: #087f5b; font-size: 11px; }
.user-strip { display: flex; align-items: center; gap: 11px; margin: -4px -4px 22px; padding: 13px; border: 1px solid #dce6f6; border-radius: 13px; background: linear-gradient(135deg, #f2f7ff, #f7fbff); }
.user-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: white; background: linear-gradient(135deg, #172e60, #2563eb); font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.user-details { min-width: 0; flex: 1; }
.user-details small, .user-details strong { display: block; }
.user-details small { color: #7a879b; font-size: 10px; }
.user-details strong { overflow: hidden; margin-top: 1px; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.password-settings { margin: -8px 0 20px; padding: 11px 13px; border: 1px solid #e2e8f2; border-radius: 11px; background: #fbfcff; }
.password-settings summary { cursor: pointer; color: #344054; font-size: 12px; font-weight: 800; }
.password-settings[open] summary { margin-bottom: 14px; }
.password-settings .form-stack { display: grid; gap: 10px; }
.password-settings .field { margin: 0; }
.password-settings .button { justify-self: start; }
.record-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 23px 0 10px; padding-top: 18px; border-top: 1px solid #ebeff5; }
.record-header h3 { margin: 0; font-size: 14px; }
.record-header span { color: #8a96a8; font-size: 10px; white-space: nowrap; }
.secret-field { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid #ebeff5; }
.secret-field small { display: block; margin-top: 6px; color: #8a96a8; font-size: 10px; line-height: 1.5; }
.job-list { display: grid; gap: 12px; }
.interface-list { display: grid; gap: 9px; margin-top: 10px; }
.interface-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px; border: 1px solid #e1e7f0; border-radius: 12px; background: #fbfcff; transition: border-color .16s ease, background .16s ease; }
.interface-item:hover { border-color: #c6d3e5; background: white; }
.interface-item > div:first-child { min-width: 0; }
.interface-item strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.record-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; margin-left: auto; }
.record-actions { flex-wrap: wrap; justify-content: flex-end; }
.badge { align-items: center; white-space: nowrap; }
.badge.muted { color: #667085; background: #eef1f5; }
.invitation-status.pending { color: #92400e; background: #fef3c7; }
.invitation-status.active { color: #047857; background: #d1fae5; }
.invitation-status.rejected { color: #b42318; background: #fee2e2; }
.invitation-status.disabled { color: #667085; background: #eef1f5; }
.record-heading { margin-top: 22px; margin-bottom: 0; }
.job-item { padding: 16px; border: 1px solid #e0e7f1; border-radius: 13px; background: linear-gradient(145deg, #fff, #fbfcff); }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-meta { color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.job-option { display: inline-flex; margin: 8px 0; padding: 4px 8px; border-radius: 999px; color: #667085; background: #eef1f5; font-size: 10px; font-weight: 700; }
.job-option.enabled { color: #155e75; background: #cffafe; }
.job-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.status-badge { white-space: nowrap; }
.status-badge.queued, .status-badge.submitting { color: #92400e; background: #fef3c7; }
.status-badge.processing { color: #1d4ed8; background: #dbeafe; }
.status-badge.succeeded { color: #047857; background: #d1fae5; }
.status-badge.failed, .status-badge.cancelled { color: #b42318; background: #fee2e2; }
.status-badge.expired { color: #667085; background: #eef1f5; }
.progress { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #e8edf5; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #19b7c9); box-shadow: 0 0 12px rgba(25,183,201,.25); }
.primary-panel { min-height: 310px; }
.debug-tabs { margin-bottom: 16px !important; }
#debug-form-container > .field-help { margin: 0 0 13px; padding: 10px 12px; border-radius: 9px; color: #526078; background: #f4f7fb; }
#dynamic-debug-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 18px; border: 1px solid #e2e8f2; border-radius: 14px; background: #fbfcfe; }
#dynamic-debug-form .field:first-child { grid-column: 1 / -1; }
#dynamic-debug-form > .button { grid-column: 1 / -1; justify-self: start; margin-top: 3px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .nav a:not(.nav-cta) { display: none; } .hero-inner, .product-grid, .console-grid { grid-template-columns: 1fr; } .hero-panel { display: none; } .steps { grid-template-columns: 1fr 1fr; } .docs-layout { grid-template-columns: 1fr; } .docs-nav { position: static; max-height: none; } .doc-flow { grid-template-columns: 1fr 1fr; } .flow-arrow { display: none; } .retention-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps, .two-col, .comparison-grid, .doc-flow, .field-grid { grid-template-columns: 1fr; } .retention-grid { grid-template-columns: 1fr 1fr; } .field-grid > div { grid-template-columns: 1fr; } .hero-inner { padding-top: 60px; } h1 { font-size: 38px; } .docs-title h1 { font-size: 34px; } .endpoint-note { width: 100%; margin-left: 0; } }
@media (max-width: 860px) {
  .console-shell { padding-top: 20px; }
  .console-hero { align-items: flex-start; flex-direction: column; padding: 28px; }
  .console-hero-tags { justify-content: flex-start; }
  .auth-grid { max-width: 680px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .console-main { grid-row: 1; }
  .console-sidebar { grid-row: 2; }
  .system-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .console-body .site-header { height: 62px; padding-inline: 16px; }
  .console-body .brand { gap: 9px; font-size: 13px; }
  .console-body .brand-mark { width: 31px; height: 31px; }
  .console-body .nav-cta { padding: 7px 10px; font-size: 12px; }
  .console-shell { padding: 14px 14px 48px; }
  .console-hero { gap: 22px; margin-bottom: 16px; padding: 23px 20px; border-radius: 18px; }
  .console-hero h1 { font-size: 30px; }
  .console-hero-copy > p:last-child { font-size: 13px; }
  .console-hero-tags { gap: 6px; }
  .console-hero-tags span { padding: 6px 9px; font-size: 10px; }
  .console-body .panel, .auth-panel, .auth-info-panel { padding: 20px; border-radius: 15px; }
  .panel-heading { align-items: flex-start; flex-wrap: wrap; }
  .panel-tag { margin-left: 56px; margin-top: -12px; }
  .inline-create-form, #dynamic-debug-form { grid-template-columns: 1fr; }
  .inline-create-form .button { width: 100%; }
  #dynamic-debug-form .field:first-child, #dynamic-debug-form > .button { grid-column: 1; }
  #dynamic-debug-form > .button { width: 100%; }
  .interface-item { align-items: flex-start; flex-direction: column; }
  .record-actions { width: 100%; justify-content: flex-end; margin-left: 0; padding-top: 3px; }
  .record-actions .button { min-width: 72px; }
  .secret-copy-row { grid-template-columns: 1fr; }
  .job-row.panel-heading { align-items: center; flex-wrap: wrap; }
  .job-row.panel-heading .button { margin-left: 56px; }
  .tabs { max-width: 100%; overflow-x: auto; }
  .tab { flex: 0 0 auto; }
  .system-status-grid { grid-template-columns: 1fr; }
}

/* Meizhi Foods brand system */
:root {
  color-scheme: light;
  --bg: #f7f6f4;
  --ink: #25272d;
  --muted: #717781;
  --line: #e9e5e2;
  --border: #e9e5e2;
  --brand: #e7332a;
  --brand-dark: #b92921;
  --brand-soft: #fff0ec;
  --navy: #292c32;
  --cyan: #0f806c;
  --warning: #9a5b22;
  --warning-bg: #fff8ed;
  --surface: #fff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(69, 49, 44, .07);
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 0, rgba(255, 225, 216, .56), transparent 28%),
    var(--bg);
}

.site-header {
  height: 78px;
  color: var(--ink);
  border-bottom: 1px solid #eee7e4;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 26px rgba(44, 37, 35, .045);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #f18a4d 64%, #0f766e);
}
.brand { gap: 14px; min-width: 0; }
.brand-logo { display: block; width: 126px; height: 38px; object-fit: contain; }
.brand-divider { width: 1px; height: 27px; background: #e5dfdc; }
.brand-product { color: #494e57; font-size: 13px; font-weight: 800; white-space: nowrap; }
.brand-mark { display: none; }
.nav { color: #676d76; font-weight: 600; }
.nav a { transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav a:hover, .nav a.active { color: var(--brand-dark); }
.nav-cta {
  color: var(--brand-dark) !important;
  border-color: #f1c7c1;
  background: #fff7f4;
}
.nav-cta:hover, .nav-cta.active { border-color: #e9a49b; background: var(--brand-soft); }

.hero {
  color: var(--ink);
  border-bottom: 1px solid #f1ddd8;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, .9), transparent 26%),
    radial-gradient(circle at 72% 86%, rgba(15, 118, 110, .08), transparent 25%),
    linear-gradient(135deg, #fff8f5 0%, #ffede7 56%, #f9ded5 100%);
}
.hero::after {
  inset: auto -130px -280px auto;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(231, 51, 42, .13);
  border-radius: 50%;
  opacity: 1;
  background: transparent;
  box-shadow: 0 0 0 70px rgba(255,255,255,.16), 0 0 0 140px rgba(255,255,255,.13);
  mask-image: none;
}
.hero-inner { padding-top: 94px; padding-bottom: 94px; }
.hero .eyebrow { color: var(--brand-dark); }
.hero h1 { max-width: 720px; color: #25272d; }
.hero-copy { color: #675e5c; }
.button { background: var(--brand); box-shadow: 0 8px 18px rgba(231, 51, 42, .17); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { background: var(--brand-dark); box-shadow: 0 10px 22px rgba(185, 41, 33, .2); transform: translateY(-1px); }
.button.secondary { color: #45494f; border: 1px solid #e4d9d5; background: rgba(255,255,255,.82); box-shadow: none; }
.button.secondary:hover { color: var(--brand-dark); border-color: #e8b5ae; background: white; }
.button.ghost { color: var(--brand-dark); background: var(--brand-soft); box-shadow: none; }
.button.danger { color: #b42318; background: #fff1ef; box-shadow: none; }
.hero-panel {
  border-color: rgba(255,255,255,.09);
  background: linear-gradient(150deg, #2d2f35, #24262b);
  box-shadow: 0 28px 64px rgba(72, 38, 31, .18);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 17px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.09); color: #b8bbc3; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.hero-panel .live-dot { display: inline-flex; align-items: center; gap: 7px; color: #a8d8c4; letter-spacing: 0; }
.hero-panel .live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3dba87; box-shadow: 0 0 0 4px rgba(61,186,135,.12); }
.hero-panel code { color: #ff9d8f; }
.terminal-line { color: #d0d2d7; }

.section-label { display: block; margin-bottom: 8px; color: var(--brand-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.section-header h2 { color: #292b30; }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card { overflow: hidden; border-color: #ece5e2; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.product-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand), #f19b61); }
.product-card:hover { transform: translateY(-3px); border-color: #e7cbc6; box-shadow: 0 24px 58px rgba(82, 48, 41, .1); }
.product-icon { background: linear-gradient(135deg, var(--brand), #f06d4c); box-shadow: 0 8px 18px rgba(231,51,42,.17); }
.badge { color: #a83a30; background: #fff0ec; }
.step { border: 1px solid #ece6e3; border-top: 3px solid var(--brand); border-radius: 14px; background: rgba(255,255,255,.9); }
.step-number { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 27px; padding: 0 8px; border-radius: 8px; background: var(--brand-soft); }
.site-footer { color: #b9bcc2; background: #292c32; }

.docs-nav, .doc-card, .flow-card, .endpoint, .doc-details, .faq-list details, table { border-color: #e9e4e1; }
.docs-nav a:hover, .docs-nav a.active { color: var(--brand-dark); background: var(--brand-soft); }
.docs-content :not(pre) > code { color: var(--brand-dark); background: #fff1ed; }
.docs-next-step { border-color: #efd3cd; background: linear-gradient(135deg, #fffaf8, #fff0eb); }
.callout.info { color: #35685e; border-color: #cce3dc; background: #f1f9f6; }
.method.post { background: var(--brand); }
.method.delete { background: #a93a32; }
.method.patch { background: #c66a27; }
.method.admin { background: #45434a; }
.auth-matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 26px; }
.auth-matrix > div { display: grid; gap: 6px; padding: 17px; border: 1px solid #e9e4e1; border-radius: 12px; background: white; box-shadow: 0 10px 26px rgba(69,49,44,.045); }
.auth-matrix strong { color: #33363c; font-size: 14px; }
.auth-matrix small { color: var(--muted); line-height: 1.55; }
.auth-kind { justify-self: start; padding: 4px 8px; border-radius: 6px; font: 800 11px/1.2 Consolas, monospace; letter-spacing: .04em; }
.auth-kind.public { color: #5a5e66; background: #f1efed; }
.auth-kind.bearer { color: #8f3029; background: #fff0ec; }
.auth-kind.api-key { color: #216b5e; background: #eaf7f2; }
.code-card { border-color: #3f3d41; background: #24262b; box-shadow: 0 12px 30px rgba(38,31,30,.09); }
.code-toolbar { min-height: 42px; color: #d4d0cf; border-bottom-color: #454247; background: #302f33; }
.copy-code { color: #ffd5cf; border-color: #6b514e; background: rgba(231,51,42,.08); }
.copy-code:hover { color: white; border-color: #b86a63; background: rgba(231,51,42,.18); }
.code-block { padding: 22px 24px; color: #f3eff0; background: #24262b; line-height: 1.75; scrollbar-color: #6e6768 transparent; tab-size: 2; }
.docs-content .code-block code { padding: 0; color: inherit; background: transparent; font-size: inherit; }

.console-body {
  background:
    radial-gradient(circle at 7% 9%, rgba(255, 220, 211, .48), transparent 25%),
    radial-gradient(circle at 92% 27%, rgba(15, 118, 110, .06), transparent 24%),
    #f7f6f4;
}
.console-body .site-header { border-bottom-color: #eee7e4; box-shadow: 0 7px 26px rgba(44, 37, 35, .045); }
.console-hero {
  color: var(--ink);
  border-color: #f0d8d2;
  background:
    radial-gradient(circle at 84% 15%, rgba(255,255,255,.92), transparent 25%),
    linear-gradient(132deg, #fff8f5, #ffece5 62%, #f7ded5);
  box-shadow: 0 22px 52px rgba(101, 57, 48, .11);
}
.console-hero::after {
  inset: auto -80px -190px auto;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(231, 51, 42, .13);
  border-radius: 50%;
  opacity: 1;
  background: transparent;
  box-shadow: 0 0 0 48px rgba(255,255,255,.17), 0 0 0 96px rgba(255,255,255,.13);
  mask-image: none;
}
.console-eyebrow { color: var(--brand-dark); }
.console-hero-copy > p:last-child { color: #725f5b; }
.console-hero-tags span { color: #545861; border-color: rgba(185, 78, 65, .15); background: rgba(255,255,255,.7); }
.console-hero-tags .api-health.degraded { color: #8b5a15; border-color: #efd39f; background: #fff8e8; }
.console-hero-tags .api-health.offline { color: #aa2b2b; border-color: #efc3c0; background: #fff4f2; }
.panel { border-color: #e9e4e1; border-radius: 17px; box-shadow: var(--shadow); }
.panel-icon { background: linear-gradient(135deg, var(--brand), #c72b24); box-shadow: 0 8px 18px rgba(231,51,42,.18); }
.panel-icon.soft { color: var(--brand-dark); background: var(--brand-soft); }
.panel-icon.violet { background: linear-gradient(135deg, #e26042, #ba3429); box-shadow: 0 8px 18px rgba(195,61,45,.17); }
.panel-icon.teal { background: linear-gradient(135deg, #158575, #0f6c60); box-shadow: 0 8px 18px rgba(15,118,110,.16); }
.panel-tag { color: #9f332b; background: #fff0ec; }
.field label { color: #4f535b; }
.field input, .field select, .field textarea { border-color: #dedbd8; background: #fcfbfa; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc5c1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #e4776f; box-shadow: 0 0 0 4px rgba(231,51,42,.09); }
.tab.active { background: var(--brand); box-shadow: 0 5px 12px rgba(231,51,42,.18); }
.console-body .button:not(.ghost):not(.danger) { background: linear-gradient(135deg, var(--brand), #c72b24); box-shadow: 0 7px 16px rgba(231,51,42,.18); }
.console-body .button:not(.ghost):not(.danger):hover { background: linear-gradient(135deg, #d72f27, var(--brand-dark)); }
.console-body .button.ghost { color: var(--brand-dark); background: var(--brand-soft); box-shadow: none; }
.auth-info-panel { background: linear-gradient(145deg, #fff, #fff9f7); }
.console-feature-list li { border-color: #eee7e4; background: rgba(255,255,255,.82); }
.user-strip { border-color: #efddd8; background: linear-gradient(135deg, #fff7f4, #fffaf9); }
.user-avatar { background: linear-gradient(135deg, #37363a, var(--brand)); }
.password-settings, .interface-item, .job-item, #dynamic-debug-form, .system-status-card { border-color: #e9e4e1; background: #fcfbfa; }
.interface-item:hover { border-color: #e2c8c2; background: white; }
.key-result, .one-time-secret { border-color: #efb9b1; color: #9f332b; background: #fff5f2; }
.secret-copy-row code { border-color: #e9a9a0; color: #9f332b; background: white; }
.progress span { background: linear-gradient(90deg, var(--brand), #f08a4f); box-shadow: 0 0 12px rgba(231,51,42,.18); }
#debug-form-container > .field-help { color: #615d5b; background: #f7f3f1; }

@media (max-width: 860px) {
  .site-header { height: 72px; }
  .brand-logo { width: 112px; height: 34px; }
  .brand-product { font-size: 12px; }
  .hero-inner { padding-top: 70px; padding-bottom: 72px; }
  .product-grid { grid-template-columns: 1fr; }
  .auth-matrix { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .console-body .site-header, .site-header { height: 66px; padding-inline: 15px; }
  .brand { gap: 10px; }
  .brand-logo { width: 98px; height: 30px; }
  .brand-divider { height: 22px; }
  .brand-product { display: none; }
  .nav-cta { padding: 7px 10px; font-size: 12px; }
  .hero-inner { padding-top: 55px; padding-bottom: 58px; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .product-card { padding: 24px; }
  .docs-content .table-wrap { border: 1px solid #e9e4e1; background: white; scrollbar-color: #c9b9b5 transparent; }
  .docs-content .table-wrap table { min-width: 660px; }
  .docs-content .code-block { padding: 18px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* Developer console workspace */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.console-body.is-authenticated .console-shell { max-width: 1220px; padding-top: 20px; }
.console-body.is-authenticated .console-hero {
  align-items: center;
  min-height: 0;
  margin-bottom: 16px;
  padding: 21px 26px;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(101, 57, 48, .08);
}
.console-body.is-authenticated .console-hero h1 { font-size: 30px; }
.console-body.is-authenticated .console-hero-copy > p:last-child { margin-top: 6px; font-size: 13px; }
.console-body.is-authenticated .console-eyebrow { margin-bottom: 5px; }

.workspace-shell { display: grid; gap: 16px; }
.workspace-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid #e9e4e1;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(69, 49, 44, .055);
}
.workspace-user {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: end;
}
.workspace-user .user-avatar { width: 36px; height: 36px; border-radius: 10px; }
.workspace-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: flex-start;
  justify-self: start;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 3px;
  border-radius: 11px;
  background: #f7f4f2;
  scrollbar-width: none;
}
.workspace-nav::-webkit-scrollbar, .debug-tabs::-webkit-scrollbar { display: none; }
.workspace-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: #6c6b70;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.workspace-tab span { color: #a39b98; font: 700 9px/1 Consolas, monospace; }
.workspace-tab:hover { color: var(--brand-dark); background: rgba(255,255,255,.7); }
.workspace-tab.active {
  color: #992e27;
  background: white;
  box-shadow: 0 3px 10px rgba(80, 48, 42, .08), inset 0 0 0 1px #eadbd7;
}
.workspace-tab.active span { color: var(--brand); }
.workspace-logout {
  grid-column: 3;
  grid-row: 1;
  color: white;
  background: #34353a !important;
  box-shadow: none !important;
}
.workspace-logout:hover { background: #24252a !important; }

.workspace-pane { min-width: 0; }
.workspace-pane > .panel {
  min-height: 520px;
  margin: 0;
  padding: 30px;
  border-radius: 18px;
}
.console-body .workspace-pane .console-panel:hover {
  border-color: #e9e4e1;
  box-shadow: var(--shadow);
}
.workspace-pane .panel-heading { margin-bottom: 24px; }
.workspace-pane .panel-heading h2 { font-size: 22px; }
.workspace-pane .panel-heading p { font-size: 13px; }
.workspace-hint {
  margin: -6px 0 20px;
  padding: 10px 13px;
  border-left: 3px solid #e6aaa2;
  color: #716966;
  background: #fff9f7;
  font-size: 12px;
  line-height: 1.55;
}

.debug-key-strip {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid #e9e4e1;
  border-radius: 13px;
  background: #fcfaf9;
}
.debug-key-strip strong, .debug-key-strip small { display: block; }
.debug-key-strip strong { color: #35363b; font-size: 13px; }
.debug-key-strip small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.debug-key-strip .field { margin: 0; }
.debug-key-strip input { background: white; }

.key-management-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.key-create-card {
  padding: 21px;
  border: 1px solid #eadfdb;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffaf8, #fff5f1);
}
.key-create-card h3 { margin: 0 0 6px; font-size: 15px; }
.key-create-card > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.key-create-card .form-stack { display: grid; gap: 12px; }
.key-create-card .field { margin: 0; }
.key-create-card .button { justify-self: start; }
.key-records { min-width: 0; }
.key-records .record-header { margin-top: 0; padding-top: 0; border-top: 0; }

.account-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr); gap: 36px; max-width: 900px; }
.account-summary {
  display: grid;
  align-content: start;
  justify-items: start;
  padding: 24px;
  border: 1px solid #eadfdb;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff9f7, #fff3ef);
}
.account-summary .user-avatar.large { width: 50px; height: 50px; margin-bottom: 18px; border-radius: 14px; }
.account-summary small { color: #8a7e7a; font-size: 11px; }
.account-summary strong { margin-top: 3px; color: #323338; font-size: 17px; }
.account-summary p { margin: 18px 0 0; color: #766c69; font-size: 12px; line-height: 1.65; }
.password-form { display: grid; gap: 3px; align-content: start; }
.password-form .button { justify-self: start; }

.workspace-pane .system-status-panel { margin-bottom: 0; }
.workspace-pane .system-status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.workspace-pane .system-status-card { padding: 16px; background: #fcfbfa; }
.workspace-pane .system-status-card strong { font-size: 13px; }
.workspace-pane .system-status-card small { min-height: 38px; }

@media (max-width: 1080px) {
  .workspace-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .workspace-user { grid-column: 1; grid-row: 1; justify-self: end; }
  .workspace-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; justify-self: start; overflow-x: auto; }
  .workspace-logout { grid-column: 2; grid-row: 1; justify-self: end; }
  .workspace-pane .system-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .console-body.is-authenticated .console-hero { align-items: flex-start; padding: 20px 22px; }
  .debug-key-strip, .key-management-layout, .account-layout { grid-template-columns: 1fr; }
  .debug-key-strip { gap: 13px; }
  .workspace-pane .system-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .console-body.is-authenticated .console-shell { padding-top: 12px; }
  .console-body.is-authenticated .console-hero { gap: 14px; margin-bottom: 12px; padding: 18px; }
  .console-body.is-authenticated .console-hero h1 { font-size: 26px; }
  .console-body.is-authenticated .console-hero-copy > p:last-child { display: none; }
  .workspace-shell { gap: 12px; }
  .workspace-bar { gap: 10px; padding: 10px; border-radius: 14px; }
  .workspace-tab { padding: 0 11px; }
  .workspace-tab span { display: none; }
  .workspace-logout { min-height: 34px; padding-inline: 11px; font-size: 11px; }
  .workspace-pane > .panel { min-height: 0; padding: 20px; border-radius: 15px; }
  .workspace-pane .panel-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .workspace-pane .panel-heading h2 { font-size: 19px; }
  .workspace-pane .panel-heading p { font-size: 11px; }
  .workspace-pane .panel-tag { margin: 0; }
  .workspace-pane .job-row.panel-heading .button { margin-left: 0; }
  .debug-key-strip, .key-create-card, .account-summary { padding: 16px; }
  .workspace-pane .system-status-grid { grid-template-columns: 1fr; }
}

/* Console sign-in composition */
.console-body:not(.is-authenticated) .console-hero {
  align-items: center;
  margin-bottom: 20px;
  padding: 28px 38px;
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(101, 57, 48, .09);
}
.console-body:not(.is-authenticated) .console-hero h1 { font-size: 38px; }
.console-body:not(.is-authenticated) .console-hero-copy > p:last-child { margin-top: 8px; font-size: 14px; }

.console-body:not(.is-authenticated) .auth-grid {
  grid-template-columns: minmax(440px, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 20px;
  max-width: none;
  margin: 0;
}
.console-body:not(.is-authenticated) .auth-panel,
.console-body:not(.is-authenticated) .auth-info-panel {
  min-width: 0;
  padding: 30px 32px;
}
.console-body:not(.is-authenticated) .auth-panel .panel-heading,
.console-body:not(.is-authenticated) .auth-info-panel .panel-heading { margin-bottom: 18px; }
.console-body:not(.is-authenticated) .auth-panel .tabs { margin: 0 0 22px; }
.console-body:not(.is-authenticated) .auth-form { max-width: 520px; }
.console-body:not(.is-authenticated) .auth-info-panel {
  background:
    radial-gradient(circle at 94% 4%, rgba(231, 51, 42, .055), transparent 27%),
    linear-gradient(145deg, #fff, #fff9f7);
}
.console-body:not(.is-authenticated) .console-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}
.console-body:not(.is-authenticated) .console-feature-list li {
  display: grid;
  align-content: center;
  min-height: 78px;
  padding: 14px 15px 14px 43px;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
}
.console-body:not(.is-authenticated) .console-feature-list li::before { left: 16px; top: 18px; }
.console-body:not(.is-authenticated) .security-notice {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 14px 16px;
}
.console-body:not(.is-authenticated) .security-notice strong {
  padding-right: 16px;
  border-right: 1px solid #efd9b5;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .console-body:not(.is-authenticated) .auth-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 540px) {
  .console-body:not(.is-authenticated) .console-hero { align-items: flex-start; padding: 23px 20px; }
  .console-body:not(.is-authenticated) .console-hero h1 { font-size: 30px; }
  .console-body:not(.is-authenticated) .auth-panel,
  .console-body:not(.is-authenticated) .auth-info-panel { padding: 20px; }
  .console-body:not(.is-authenticated) .console-feature-list { grid-template-columns: 1fr; }
  .console-body:not(.is-authenticated) .security-notice { grid-template-columns: 1fr; gap: 5px; }
  .console-body:not(.is-authenticated) .security-notice strong { padding-right: 0; border-right: 0; }
}

/* Authenticated account controls live in the global header */
.header-actions { display: flex; align-items: center; gap: 18px; min-width: 0; }
.header-account {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid #e8dfdc;
}
.header-account .user-avatar { width: 34px; height: 34px; border-radius: 9px; }
.header-account .user-details { max-width: 150px; }
.header-account .user-details small { font-size: 9px; }
.header-account .user-details strong { color: #303238; font-size: 12px; }
.header-logout {
  min-height: 34px;
  padding-inline: 12px;
  color: white;
  background: #34353a !important;
  box-shadow: none !important;
  font-size: 11px;
}
.header-logout:hover { background: #24252a !important; }

.workspace-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 9px 12px;
}
.workspace-bar .workspace-nav { flex: 0 1 auto; }

@media (max-width: 860px) {
  .console-body.is-authenticated .header-actions > .nav { display: none; }
  .header-account { padding-left: 0; border-left: 0; }
}

@media (max-width: 540px) {
  .header-actions { gap: 8px; }
  .header-account { gap: 7px; }
  .header-account .user-avatar { display: none; }
  .header-account .user-details { max-width: 86px; }
  .header-account .user-details small { display: none; }
  .header-account .user-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-logout { min-height: 32px; padding-inline: 9px; }
}
