/* 墨览云：纸张质感、墨色文字与克制的靛蓝。零构建、零外部依赖。 */
:root {
  color-scheme: light;
  --primary: #3c4bb0;
  --primary-hover: #2e3c9a;
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --bg-soft: #f1f3f8;
  --border-soft: #e9ecf2;
  --border-input: #dfe3ec;
  --text-main: #20242e;
  --text-sub: #626c7c;
  --text-faint: #697487;
  --icon-bg: #eef0fb;
  --danger: #bd414a;
  --ok: #168368;
  --warn: #956319;
  --radius-card: 18px;
  --radius-input: 10px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(22, 28, 45, .025), 0 10px 30px -22px rgba(22, 28, 45, .22);
  --shadow-float: 0 18px 50px -20px rgba(22, 28, 45, .28);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", ui-monospace, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #a4aeff;
  --primary-hover: #c1c8ff;
  --bg-page: #12151c;
  --bg-card: #1b1f29;
  --bg-soft: #242935;
  --border-soft: #2d3340;
  --border-input: #3c4555;
  --text-main: #edf0f7;
  --text-sub: #b1b9c8;
  --text-faint: #99a4b7;
  --icon-bg: #2b3049;
  --danger: #ef959c;
  --ok: #72cbb1;
  --warn: #deb36d;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .15), 0 12px 30px -20px rgba(0, 0, 0, .65);
  --shadow-float: 0 18px 50px -20px rgba(0, 0, 0, .8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #a4aeff; --primary-hover: #c1c8ff;
    --bg-page: #12151c; --bg-card: #1b1f29; --bg-soft: #242935;
    --border-soft: #2d3340; --border-input: #3c4555;
    --text-main: #edf0f7; --text-sub: #b1b9c8; --text-faint: #99a4b7;
    --icon-bg: #2b3049; --danger: #ef959c; --ok: #72cbb1; --warn: #deb36d;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .15), 0 12px 30px -20px rgba(0, 0, 0, .65);
    --shadow-float: 0 18px 50px -20px rgba(0, 0, 0, .8);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans); background: var(--bg-page); color: var(--text-main);
  font-size: 15px; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img, svg { vertical-align: middle; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: -.025em; }
.muted { color: var(--text-sub); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 18px; background: var(--bg-card); border: 1px solid var(--border-input); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
/* 全站导航 */
.topbar {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg-page) 86%, transparent);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 680; font-size: 16px; color: var(--text-main); flex: none; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--text-main); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: #4657c5; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); }
.brand-mark .icon { width: 22px; height: 22px; }
.brand small { display: block; font-size: 10px; line-height: 1.3; letter-spacing: .09em; font-weight: 500; color: var(--text-faint); margin-top: 1px; }
.topnav { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; }
.topnav > .nav-spacer { display: block; }
.topnav > a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; font-size: 14px; border-radius: 9px; white-space: nowrap; transition: color .16s, background .16s; }
.topnav > a:not(.btn) { color: var(--text-sub); }
.topnav > a:not(.btn):hover { color: var(--text-main); background: var(--bg-soft); text-decoration: none; }
.topnav > a:not(.btn).on { color: var(--primary); background: var(--icon-bg); font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 10px; color: var(--text-sub); background: transparent; cursor: pointer; transition: color .16s, background .16s, border-color .16s; }
.icon-btn:hover { color: var(--text-main); background: var(--bg-soft); }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; max-width: 140px; color: var(--text-sub); font-size: 13px; padding: 4px; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; background: var(--icon-bg); color: var(--primary); border-radius: 50%; font-size: 12px; font-weight: 650; }
.nav-user-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-toggle { display: none; }
.announce { background: var(--icon-bg); color: var(--text-sub); text-align: center; padding: 9px 20px; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
/* 布局与卡片 */
.container { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 48px 32px 80px; }
.container:has(.auth-wrap) { display: flex; flex-direction: column; justify-content: center; }
.card { min-width: 0; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 26px; }
.card > h3:first-child { margin-bottom: 20px; font-size: 17px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 30px; }
.account-layout { --account-column: 280px; }
@media (max-width: 600px) { .account-head > .btn-primary { order: 3; } }
.page-heading h1 { font-size: 28px; margin: 0; }
/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: var(--radius-input); font-size: 14px; font-weight: 580; border: 1px solid transparent; cursor: pointer; background: #4657c5; color: #fff; transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s; white-space: nowrap; }
.btn .icon { width: 17px; height: 17px; }
.btn:hover:not(:disabled):not([aria-disabled="true"]) { background: #3546ab; text-decoration: none; color: #fff; }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: var(--bg-card); color: var(--text-main); border-color: var(--border-input); }
.btn-ghost:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--bg-soft); color: var(--text-main); border-color: var(--text-faint); box-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger); filter: brightness(.92); color: #fff; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-row.center { justify-content: center; }
/* 表单 */
.field { margin-bottom: 19px; min-width: 0; }
.field label { display: block; font-size: 13px; font-weight: 560; margin-bottom: 8px; color: var(--text-main); }
.field input, .field select, .field textarea { width: 100%; height: 46px; padding: 0 13px; border-radius: var(--radius-input); border: 1px solid var(--border-input); background: var(--bg-card); color: var(--text-main); font-size: 14px; transition: border-color .16s, box-shadow .16s; }
.field textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.field input::placeholder, textarea::placeholder, input::placeholder { color: var(--text-faint); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--icon-bg); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.form-msg { min-height: 20px; font-size: 13px; color: var(--danger); margin: 8px 0; }
.form-msg.ok { color: var(--ok); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 38px; height: 38px; }
.password-toggle .icon { width: 17px; height: 17px; }
/* 认证 */
.auth-wrap { width: 100%; max-width: 440px; margin: 20px auto; }
.auth-wrap .card { padding: 36px; border-radius: 22px; }
.auth-header { margin-bottom: 28px; }
.auth-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--icon-bg); color: var(--primary); margin-bottom: 20px; }
.auth-title { margin: 0 0 8px; font-size: 26px; font-weight: 660; color: var(--text-main); }
.auth-sub { margin: 0; font-size: 14px; color: var(--text-sub); }
.auth-footer { margin-top: 18px; font-size: 14px; color: var(--text-sub); }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 0; }
.divider-line { flex: 1; height: 1px; background: var(--border-soft); }
.divider-text { font-size: 12px; color: var(--text-faint); }
/* 首页 */
.home-page { padding-top: 0; }
.home-hero { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; min-height: 548px; padding: 66px 0 54px; }
.home-hero::before { content: ""; position: absolute; top: 20px; left: -100px; width: 420px; height: 420px; pointer-events: none; background: radial-gradient(circle, var(--icon-bg), transparent 68%); opacity: .65; z-index: -1; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; color: var(--primary); background: var(--icon-bg); border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent); border-radius: 999px; font-size: 12px; font-weight: 570; }
.home-eyebrow i { width: 5px; height: 5px; background: var(--primary); border-radius: 50%; }
.home-copy h1 { font-size: clamp(38px, 4.2vw, 58px); font-weight: 640; line-height: 1.18; letter-spacing: -.055em; margin: 22px 0 20px; }
.home-copy h1 span { color: var(--primary); }
.home-copy > p { color: var(--text-sub); font-size: 16px; line-height: 1.85; max-width: 30em; }
.home-cta { margin-top: 30px; }
.home-cta .btn { min-height: 46px; padding-left: 20px; padding-right: 20px; }
.home-cta-secondary { display: flex; gap: 22px; align-items: center; margin-top: 18px; }
.home-cta-secondary a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-sub); }
.home-cta-secondary a:hover { color: var(--primary); }
.home-cta-secondary .icon { width: 15px; height: 15px; }
.home-caption { display: flex; gap: 20px; margin-top: 22px; color: var(--text-faint); font-size: 12px; }
.home-caption span { display: inline-flex; gap: 6px; align-items: center; }
.home-caption .icon { width: 14px; height: 14px; }
.home-workspace { position: relative; padding: 22px 0; }
.home-workspace::before { content: ""; position: absolute; inset: 0 12px; border-radius: 28px; background: var(--icon-bg); transform: rotate(3deg); opacity: .75; }
.workspace-window { position: relative; overflow: hidden; border: 1px solid var(--border-input); background: var(--bg-card); border-radius: 16px; box-shadow: 0 26px 70px -30px rgba(35, 44, 92, .32); }
.workspace-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); }
.workspace-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-input); }
.workspace-bar span { margin-left: auto; color: var(--text-faint); font-size: 10px; letter-spacing: .04em; }
.workspace-body { display: grid; grid-template-columns: 110px 1fr; min-height: 285px; }
.workspace-side { padding: 24px 16px; border-right: 1px solid var(--border-soft); background: var(--bg-soft); }
.workspace-side b { display: block; margin: 0 0 15px 5px; font-size: 11px; color: var(--text-faint); font-weight: 550; }
.workspace-side span { display: flex; align-items: center; gap: 7px; padding: 8px; font-size: 10px; color: var(--text-sub); border-radius: 6px; margin-bottom: 3px; }
.workspace-side span.active { color: var(--primary); background: var(--icon-bg); }
.workspace-side .icon { width: 12px; height: 12px; }
.workspace-doc { padding: 30px 34px; }
.workspace-doc .doc-label { color: var(--primary); font-size: 10px; letter-spacing: .08em; }
.workspace-doc h2 { margin: 13px 0; font-family: Georgia, "Songti SC", SimSun, serif; font-size: 26px; font-weight: 500; letter-spacing: .02em; }
.workspace-doc p { font-family: Georgia, "Songti SC", SimSun, serif; color: var(--text-sub); font-size: 12px; line-height: 2.1; }
.workspace-doc hr { border: 0; border-top: 1px solid var(--border-soft); margin: 22px 0; }
.workspace-doc small { font-size: 10px; color: var(--text-faint); }
.workspace-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border-soft); padding: 10px 16px; color: var(--text-faint); font-size: 10px; }
.workspace-foot i { width: 5px; height: 5px; background: var(--ok); border-radius: 50%; }
.workspace-foot span:last-child { margin-left: auto; }
.home-trust { display: flex; gap: 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 22px 0; }
.home-trust > div { flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 13px; color: var(--text-sub); }
.home-trust > div + div { border-left: 1px solid var(--border-soft); }
.home-trust .icon { color: var(--primary); width: 18px; height: 18px; }
.home-section { padding-top: 78px; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.home-section-head h2 { margin: 0 0 6px; font-size: 27px; font-weight: 630; }
.home-section-head p { margin: 0; font-size: 13px; color: var(--text-sub); }
.home-section-head > a { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; white-space: nowrap; }
.home-section-head > a .icon { width: 15px; height: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 25px; position: relative; }
.feature-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--icon-bg); color: var(--primary); margin-bottom: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 620; }
.feature p { margin: 0; color: var(--text-sub); font-size: 13px; line-height: 1.85; }
.home-market { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.market-tile { display: flex; align-items: center; gap: 18px; padding: 23px; color: var(--text-main); }
.market-tile:hover { color: var(--text-main); text-decoration: none; border-color: var(--border-input); transform: translateY(-2px); box-shadow: var(--shadow-float); }
.market-tile .feature-icon { margin: 0; width: 42px; height: 42px; flex: none; }
.market-tile h3 { margin: 0 0 5px; font-size: 16px; }
.market-tile p { margin: 0; font-size: 12px; color: var(--text-sub); }
.market-tile > .icon { margin-left: auto; color: var(--text-faint); width: 16px; height: 16px; }
.home-cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 78px; padding: 32px; background: var(--bg-card); }
.home-cta-panel h2 { margin: 0 0 8px; font-size: 22px; }
.home-cta-panel p { margin: 0; font-size: 13px; color: var(--text-sub); }
/* 个人中心 */
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 30px; }
.account-identity { display: flex; align-items: center; gap: 16px; }
.account-identity .avatar { width: 52px; height: 52px; font-size: 19px; border-radius: 15px; }
.account-identity h1 { font-size: 27px; margin: 0 0 4px; }
.account-identity p { margin: 0; color: var(--text-sub); font-size: 13px; }
.account-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 20px; align-items: start; }
.account-side { padding: 24px; }
.account-side h2 { font-size: 14px; margin: 0 0 18px; }
.account-docs-count { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); margin-bottom: 20px; color: var(--text-sub); font-size: 12px; }
.account-docs-count strong { display: block; color: var(--text-main); font-size: 24px; font-weight: 600; line-height: 1.3; }
.quota-bar { height: 5px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; margin: 10px 0; }
.quota-bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.quota-text { font-size: 12px; color: var(--text-sub); margin-bottom: 20px; }
.quota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quota-grid div { min-width: 0; }
.quota-grid span { display: block; font-size: 11px; color: var(--text-faint); margin-bottom: 3px; }
.quota-grid strong { font-size: 13px; font-weight: 570; }
.account-content { display: grid; gap: 20px; min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { font-size: 17px; margin: 0; }
.section-heading > span { color: var(--text-faint); font-size: 12px; }
.table-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { padding: 13px 12px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: middle; }
table.grid th { color: var(--text-faint); font-weight: 520; font-size: 12px; white-space: nowrap; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid td.muted { color: var(--text-sub); }
.row-title { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.row-subtitle { display: block; color: var(--text-faint); font-size: 11px; margin-top: 4px; }
.share-actions { display: flex; gap: 4px; align-items: center; justify-content: end; }
.share-actions .icon { width: 15px; height: 15px; }
.share-actions .badge .icon { width: 11px; height: 11px; }
.share-revoke:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, transparent); }
.quota-warning { margin-bottom: 12px; }
.version-item { margin-bottom: 9px; }
.version-item .tag { margin-left: 6px; }
.profile-form { max-width: 600px; }
.profile-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-form-foot .form-msg { margin: 0; }
.empty { color: var(--text-faint); padding: 26px 10px; font-size: 13px; }
.empty .icon { display: block; margin: 0 auto 12px; width: 24px; height: 24px; }
/* 通用 */
.badge, .tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge-green, .tag-approved, .tag-active { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.badge-yellow, .tag-pending { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.badge-red, .tag-rejected, .tag-disabled { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.badge-gray { background: var(--bg-soft); color: var(--text-sub); }
.check-list { margin: 16px 0; }
.check-item { padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 14px; background: var(--bg-soft); }
.check-item span { display: inline-block; width: 22px; font-weight: 700; }
.check-item.ok span { color: var(--ok); }
.check-item.bad span { color: var(--danger); }
.install-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--text-faint); flex-wrap: wrap; }
.install-steps li { padding: 4px 10px; border-radius: 12px; background: var(--bg-soft); }
.install-steps li.on { color: #fff; background: #4657c5; }
.install-steps li.done { color: var(--ok); }
.db-choice { display: flex; gap: 10px; margin-bottom: 16px; }
.db-opt { flex: 1; border: 1px solid var(--border-input); border-radius: var(--radius-input); padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.db-opt.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.db-opt input { display: none; }
.db-opt span { font-size: 12px; color: var(--text-sub); }
.done-icon { font-size: 36px; margin: 8px 0; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 28px; font-size: 13px; color: var(--text-sub); }
.pager .pager-info { padding: 0 8px; }
code, pre { font-family: var(--font-mono); }
code { background: var(--bg-soft); padding: 2px 5px; border-radius: 4px; font-size: .92em; }
pre code { padding: 0; }
.footer { border-top: 1px solid var(--border-soft); padding: 26px 32px; color: var(--text-faint); font-size: 12px; }
.footer-inner { max-width: 1176px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-sub); }
.footer-brand .icon { width: 16px; height: 16px; color: var(--primary); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-sub); }
.footer-links a:hover { color: var(--primary); }
.mdv-toast { position: fixed; bottom: 28px; left: 50%; z-index: 100; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 10px; background: var(--text-main); color: var(--bg-card); box-shadow: var(--shadow-float); font-size: 13px; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.mdv-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1100px) { .nav-toggle { display: none !important; } }
@media (max-width: 1099px) {
  .topbar-inner { gap: 16px; }
  .topnav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; border: 1px solid var(--border-input); border-radius: 16px; background: var(--bg-card); box-shadow: var(--shadow-float); max-height: calc(100dvh - 104px); overflow-y: auto; }
  .topnav.is-open { display: flex; }
  .topnav > a { justify-content: flex-start; padding: 11px 13px; }
  .topnav > a.btn { justify-content: center; margin-top: 4px; }
  .topnav > .nav-spacer { display: none; }
  .nav-spacer { display: none; }
  .nav-tools { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .home-hero { gap: 36px; }
  .workspace-body { grid-template-columns: 90px 1fr; }
  .workspace-doc { padding: 24px; }
  .home-copy h1 { font-size: 43px; }
}
@media (max-width: 860px) {
  .container { padding: 32px 24px 60px; }
  .topbar-inner { height: 68px; padding: 0 24px; }
  .home-page { padding-top: 0; }
  .home-hero { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 34px; min-height: 0; }
  .home-copy { max-width: 550px; }
  .home-workspace { max-width: 650px; width: 100%; }
  .workspace-body { grid-template-columns: 110px 1fr; }
  .home-trust > div { font-size: 12px; gap: 7px; }
  .home-section { padding-top: 56px; }
  .home-market { grid-template-columns: 1fr; }
  .home-market .market-tile { padding: 18px 22px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .account-side h2 { grid-column: 1 / -1; margin: 0; }
  .account-docs-count { border: 0; padding: 0; margin: 0; }
  .footer { padding: 24px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .container { padding: 28px 20px 52px; }
  .topbar-inner { padding: 0 20px; }
  .brand small { display: none; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand { gap: 9px; font-size: 15px; }
  .nav-user { display: none; }
  .nav-tools { gap: 4px; }
  .nav-register { display: none; }
  .topnav .nav-register { display: inline-flex; }
  .nav-tools > .btn { padding: 6px 11px; }
  .nav-tools > .nav-register { display: none; }
  .home-hero { padding-top: 38px; gap: 26px; }
  .home-copy h1 { font-size: 38px; }
  .home-copy > p { font-size: 14px; }
  .home-caption { gap: 12px; font-size: 11px; }
  .home-workspace { padding: 12px 0; }
  .home-workspace::before { border-radius: 20px; }
  .workspace-body { grid-template-columns: 1fr; min-height: 245px; }
  .workspace-side { display: none; }
  .workspace-doc { padding: 28px; }
  .home-trust { flex-direction: column; gap: 14px; align-items: center; padding: 20px 0; }
  .home-trust > div { justify-content: flex-start; width: 180px; }
  .home-trust > div + div { border: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 36px 1fr; gap: 0 16px; padding: 20px; }
  .feature-icon { margin: 0; grid-row: span 2; }
  .feature h3 { margin: 1px 0 5px; }
  .home-section-head { align-items: start; }
  .home-section-head h2 { font-size: 24px; }
  .home-section-head p { font-size: 12px; }
  .home-section-head > a { margin-top: 6px; }
  .home-cta-panel { flex-direction: column; align-items: flex-start; padding: 24px; margin-top: 56px; gap: 20px; }
  .home-cta-panel h2 { font-size: 20px; }
  .auth-wrap { margin: 4px auto; }
  .auth-wrap .card { padding: 26px 22px; }
  .card { padding: 21px; }
  .account-head { align-items: flex-start; gap: 16px; }
  .account-head > .btn { padding: 7px 12px; font-size: 12px; }
  .account-identity { gap: 12px; }
  .account-identity .avatar { width: 44px; height: 44px; }
  .account-identity h1 { font-size: 23px; }
  .account-head { flex-wrap: wrap; }
  .account-head > .btn-primary { margin-left: 0; }
  .account-side { display: block; }
  .profile-form .field-row { flex-direction: column; gap: 0; }
  .account-side h2 { margin-bottom: 18px; }
  .account-docs-count { margin-bottom: 20px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { font-size: 25px; }
  .footer { padding: 22px 20px; }
  .footer-inner { gap: 15px; }
  .footer-links { justify-content: center; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
