:root {
  --bg: #08111f;
  --bg-elevated: #0d1829;
  --bg-soft: #101e32;
  --panel: rgba(14, 27, 47, 0.82);
  --panel-strong: #111f35;
  --panel-hover: #152844;
  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f4f8ff;
  --text-soft: #c3cee0;
  --muted: #8391a8;
  --muted-2: #5e6c82;
  --primary: #4d8dff;
  --primary-strong: #2f6ee8;
  --primary-soft: rgba(77, 141, 255, 0.14);
  --success: #39d98a;
  --warning: #ffb84d;
  --danger: #ff6b7d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 16px 38px rgba(0, 0, 0, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar: 264px;
}

html[data-theme="light"] {
  --bg: #edf3fb;
  --bg-elevated: #f7faff;
  --bg-soft: #e6eef9;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --panel-hover: #f2f6fc;
  --border: rgba(51, 65, 85, 0.12);
  --border-strong: rgba(51, 65, 85, 0.22);
  --text: #102039;
  --text-soft: #3e4d63;
  --muted: #67768a;
  --muted-2: #98a4b4;
  --primary-soft: rgba(47, 110, 232, 0.1);
  --shadow: 0 24px 70px rgba(55, 72, 98, 0.14);
  --shadow-card: 0 14px 34px rgba(62, 79, 104, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 18px; top: -80px; z-index: 9999; padding: 10px 14px; border-radius: 10px; background: #fff; color: #111827; text-decoration: none; transition: top .2s ease; }
.skip-link:focus { top: 18px; }

.site-shell { min-height: 100vh; }
.site-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 200; width: var(--sidebar); padding: 20px 16px; display: flex; flex-direction: column; background: rgba(7, 16, 29, 0.92); border-right: 1px solid var(--border); backdrop-filter: blur(22px); }
html[data-theme="light"] .site-sidebar { background: rgba(246, 250, 255, 0.94); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: linear-gradient(145deg, #5a97ff, #5b61e9); color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 12px 28px rgba(75, 121, 255, .28), inset 0 1px 0 rgba(255,255,255,.28); }
.brand-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 16px; letter-spacing: .02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); color: var(--text-soft); cursor: pointer; }
.sidebar-close { display: none; font-size: 22px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar-label { margin: 18px 10px 7px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-link { min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; transition: .18s ease; }
.sidebar-link:hover { color: var(--text); background: var(--panel); border-color: var(--border); transform: translateX(2px); }
.sidebar-link.is-active { color: #e9f2ff; background: linear-gradient(90deg, rgba(77,141,255,.18), rgba(77,141,255,.06)); border-color: rgba(77,141,255,.22); }
html[data-theme="light"] .sidebar-link.is-active { color: #174a9f; }
.nav-icon { width: 22px; text-align: center; color: #7da8f8; font-size: 15px; }
.sidebar-link em { margin-left: auto; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: rgba(148,163,184,.12); color: var(--muted); font-size: 10px; font-style: normal; text-align: center; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 8px; }
.privacy-note { padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(57,217,138,.18); border-radius: 13px; background: rgba(57,217,138,.07); }
.privacy-note-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(57,217,138,.15); color: var(--success); font-weight: 900; }
.privacy-note div { display: flex; min-width: 0; flex-direction: column; }
.privacy-note strong { font-size: 11px; }
.privacy-note small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.sidebar-action { min-height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); color: var(--text-soft); font-size: 12px; font-weight: 750; text-decoration: none; }
.sidebar-action-primary { border-color: rgba(77,141,255,.28); background: linear-gradient(135deg, rgba(77,141,255,.22), rgba(91,97,233,.14)); color: #dcebff; }
html[data-theme="light"] .sidebar-action-primary { color: #1e4d9d; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }

.site-workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 120; height: 72px; padding: 0 clamp(20px, 3.5vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(8,17,31,.78); border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); }
html[data-theme="light"] .topbar { background: rgba(237,243,251,.82); }
.topbar-left { min-width: 0; flex: 1; display: flex; align-items: center; gap: 12px; }
.mobile-menu, .mobile-brand { display: none; }
.command-search { width: min(560px, 100%); min-height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); color: var(--muted); transition: .18s ease; }
.command-search:focus-within { border-color: rgba(77,141,255,.55); background: var(--panel-strong); box-shadow: 0 0 0 4px rgba(77,141,255,.09); }
.command-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.command-search input::placeholder { color: var(--muted); }
.command-search kbd { padding: 3px 7px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-soft); color: var(--muted); font-size: 9px; font-family: inherit; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-button { min-height: 39px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); color: var(--text-soft); font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; }
.topbar-button:hover { border-color: var(--border-strong); background: var(--panel-hover); color: var(--text); }

.main-content { width: min(100%, 1480px); margin: 0 auto; padding: 34px clamp(20px, 3.5vw, 52px) 70px; }
.dashboard-hero { position: relative; min-height: 430px; padding: clamp(30px, 4vw, 58px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: clamp(36px, 5vw, 82px); align-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: linear-gradient(135deg, rgba(22,40,68,.96), rgba(11,23,42,.93)); box-shadow: var(--shadow); }
html[data-theme="light"] .dashboard-hero { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,247,255,.94)); }
.dashboard-hero::before { content: ""; position: absolute; width: 540px; height: 540px; right: -150px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(77,141,255,.22), transparent 65%); pointer-events: none; }
.dashboard-hero::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(148,163,184,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.16) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent 18%, #000 100%); pointer-events: none; }
.hero-copy, .hero-console { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 9px; color: #8fb5ff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(57,217,138,.09); }
.hero-copy h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.06; letter-spacing: -.045em; }
.hero-copy h1 em { color: #84aefe; font-style: normal; }
.hero-lead { max-width: 640px; margin: 22px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.9; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 11px; }
.button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 13px; font-size: 13px; font-weight: 800; text-decoration: none; transition: .18s ease; }
.button-primary { background: linear-gradient(135deg, #4f91ff, #5a68eb); color: #fff; box-shadow: 0 14px 30px rgba(57,112,230,.28); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(57,112,230,.35); }
.button-secondary { border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); color: var(--text-soft); }
html[data-theme="light"] .button-secondary { background: rgba(255,255,255,.65); }
.button-secondary:hover { background: var(--panel-hover); color: var(--text); }
.hero-trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 10px; }
.hero-console { border: 1px solid rgba(148,163,184,.2); border-radius: 19px; background: rgba(4,11,22,.66); box-shadow: 0 25px 60px rgba(0,0,0,.24); overflow: hidden; }
html[data-theme="light"] .hero-console { background: rgba(255,255,255,.82); }
.console-head { height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.console-head em { margin-left: auto; color: var(--success); font-size: 8px; font-style: normal; }
.console-dots { display: flex; gap: 5px; }
.console-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b7d; }
.console-dots i:nth-child(2) { background: #ffb84d; }
.console-dots i:nth-child(3) { background: #39d98a; }
.console-body { padding: 13px; }
.console-command { padding: 8px 7px 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.console-command span { color: var(--success); }
.console-row { min-height: 61px; padding: 9px 10px; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; color: var(--text-soft); text-decoration: none; transition: .16s ease; }
.console-row + .console-row { margin-top: 3px; }
.console-row:hover, .console-row.is-featured { border-color: rgba(77,141,255,.22); background: rgba(77,141,255,.09); color: var(--text); }
.console-index { color: #6d8bb7; font-size: 9px; font-family: ui-monospace, monospace; }
.console-row > span:nth-child(2) { display: flex; flex-direction: column; }
.console-row b { font-size: 11px; }
.console-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.console-row em { padding: 3px 6px; border-radius: 999px; background: rgba(77,141,255,.12); color: #8fb5ff; font-size: 7px; font-style: normal; }
.console-status { height: 42px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); color: var(--muted); font-size: 8px; }
.console-status span:first-child { display: flex; align-items: center; gap: 6px; }
.console-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px rgba(57,217,138,.7); }

.metric-strip { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-strip article { min-height: 106px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-content: center; border: 1px solid var(--border); border-radius: 17px; background: var(--panel); box-shadow: var(--shadow-card); }
.metric-strip strong { grid-row: 1 / 3; align-self: center; color: #82adff; font-size: 26px; letter-spacing: -.04em; }
.metric-strip span { align-self: end; font-size: 12px; font-weight: 800; }
.metric-strip small { margin-top: 4px; color: var(--muted); font-size: 9px; }

.content-section { margin-top: 68px; scroll-margin-top: 92px; }
.section-heading { margin-bottom: 21px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-kicker { margin: 0 0 7px; color: #6f9df3; font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; }
.section-heading p:not(.section-kicker) { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.text-button { border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; }
.text-button:hover { color: var(--text); }
.category-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.category-tab { min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 10px; font-weight: 750; cursor: pointer; }
.category-tab:hover { border-color: var(--border-strong); color: var(--text-soft); }
.category-tab.is-active { border-color: rgba(77,141,255,.42); background: var(--primary-soft); color: #94b9ff; }
html[data-theme="light"] .category-tab.is-active { color: #2059b9; }

.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-card { position: relative; min-width: 0; min-height: 286px; overflow: hidden; border: 1px solid var(--border); border-radius: 19px; background: linear-gradient(155deg, rgba(18,33,56,.92), rgba(10,22,39,.9)); box-shadow: var(--shadow-card); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
html[data-theme="light"] .tool-card { background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(246,249,254,.96)); }
.tool-card::before { content: ""; position: absolute; width: 170px; height: 170px; right: -85px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(77,141,255,.12), transparent 68%); pointer-events: none; }
.tool-card:hover { transform: translateY(-4px); border-color: rgba(77,141,255,.35); box-shadow: 0 22px 48px rgba(0,0,0,.22); }
.tool-card-featured { grid-column: span 2; background: linear-gradient(145deg, rgba(23,48,84,.97), rgba(14,31,55,.94)); }
html[data-theme="light"] .tool-card-featured { background: linear-gradient(145deg, #f8fbff, #edf5ff); }
.tool-card-link { height: 100%; padding: 20px; display: flex; flex-direction: column; text-decoration: none; }
.favorite-button { position: absolute; z-index: 3; right: 14px; top: 14px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: rgba(8,17,31,.72); color: var(--muted); font-size: 18px; cursor: pointer; transition: .16s ease; }
html[data-theme="light"] .favorite-button { background: rgba(255,255,255,.82); }
.favorite-button:hover { color: #ffd166; border-color: rgba(255,209,102,.35); }
.favorite-button.is-favorite { color: #ffd166; background: rgba(255,209,102,.09); }
.tool-card-top { padding-right: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; }
.tool-icon svg { width: 23px; height: 23px; }
.icon-blue { color: #91baff; background: rgba(77,141,255,.14); }
.icon-indigo { color: #a6a8ff; background: rgba(91,97,233,.14); }
.icon-red { color: #ff8b98; background: rgba(255,107,125,.13); }
.icon-orange { color: #ffc16b; background: rgba(255,184,77,.13); }
.icon-green { color: #74e3aa; background: rgba(57,217,138,.13); }
.icon-rose { color: #ff9ab4; background: rgba(255,104,149,.13); }
.icon-cyan { color: #78dff2; background: rgba(66,203,225,.13); }
.icon-purple { color: #c6a2ff; background: rgba(154,104,255,.13); }
.tool-status { padding: 4px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 8px; font-weight: 800; }
.status-core { color: #8fb5ff; border-color: rgba(77,141,255,.25); background: rgba(77,141,255,.09); }
.status-new { color: #ff92a0; border-color: rgba(255,107,125,.25); background: rgba(255,107,125,.08); }
.status-local { color: #70dea7; border-color: rgba(57,217,138,.22); background: rgba(57,217,138,.07); }
.status-batch { color: #c3a1ff; border-color: rgba(154,104,255,.24); background: rgba(154,104,255,.08); }
.tool-card h3 { margin: 20px 0 0; font-size: 17px; letter-spacing: -.01em; }
.tool-card-featured h3 { font-size: 20px; }
.tool-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.tool-tags { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tags span { padding: 4px 7px; border-radius: 7px; background: rgba(148,163,184,.08); color: var(--muted); font-size: 8px; }
.tool-enter { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; color: var(--text-soft); font-size: 10px; font-weight: 800; }
.tool-enter b { color: #84adfb; font-size: 16px; transition: transform .18s ease; }
.tool-card:hover .tool-enter b { transform: translateX(4px); }
.tool-card.is-hidden { display: none; }
.tool-empty { min-height: 220px; padding: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--border-strong); border-radius: 18px; color: var(--muted); text-align: center; }
.tool-empty span { font-size: 32px; }
.tool-empty h3 { margin: 12px 0 0; color: var(--text-soft); font-size: 16px; }
.tool-empty p { margin: 8px 0 0; font-size: 11px; }

.recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.recent-item { min-height: 76px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); text-decoration: none; transition: .16s ease; }
.recent-item:hover { transform: translateY(-2px); border-color: rgba(77,141,255,.28); background: var(--panel-hover); }
.recent-item .tool-icon { width: 38px; height: 38px; border-radius: 11px; }
.recent-item .tool-icon svg { width: 18px; height: 18px; }
.recent-item div { min-width: 0; display: flex; flex-direction: column; }
.recent-item strong { overflow: hidden; color: var(--text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recent-item small { margin-top: 4px; color: var(--muted); font-size: 8px; }

.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.workflow-card { position: relative; overflow: hidden; min-height: 262px; padding: 21px; border: 1px solid var(--border); border-radius: 19px; background: var(--panel); box-shadow: var(--shadow-card); }
.workflow-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -95px; bottom: -100px; border-radius: 50%; background: var(--workflow-glow); filter: blur(2px); }
.workflow-blue { --workflow-glow: rgba(77,141,255,.16); }
.workflow-orange { --workflow-glow: rgba(255,184,77,.14); }
.workflow-purple { --workflow-glow: rgba(154,104,255,.15); }
.workflow-head { display: flex; align-items: center; gap: 12px; }
.workflow-head > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 13px; background: var(--bg-soft); color: #7da8f8; font-size: 10px; font-family: ui-monospace, monospace; }
.workflow-head div { display: flex; flex-direction: column; }
.workflow-head strong { font-size: 14px; }
.workflow-head small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.workflow-card ol { position: relative; z-index: 1; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.workflow-card li { counter-increment: flow; position: relative; padding: 0 0 14px 30px; color: var(--muted); font-size: 10px; }
.workflow-card li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 2px; width: 1px; background: var(--border-strong); }
.workflow-card li::before { content: counter(flow); position: absolute; left: 0; top: -1px; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--panel-strong); color: #7da8f8; font-size: 7px; }
.workflow-card a { color: var(--text-soft); text-decoration: none; }
.workflow-card a:hover { color: #8fb5ff; }

.assurance-section { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 20px; background: var(--panel); overflow: hidden; }
.assurance-section article { min-height: 150px; padding: 25px; display: flex; gap: 15px; }
.assurance-section article + article { border-left: 1px solid var(--border); }
.assurance-section article > span { color: #6f9df3; font-size: 9px; font-family: ui-monospace, monospace; }
.assurance-section h3 { margin: 0; font-size: 13px; }
.assurance-section p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }

.site-footer { min-height: 92px; padding: 0 clamp(20px, 3.5vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); color: var(--muted); }
.site-footer div { display: flex; flex-direction: column; }
.site-footer strong { color: var(--text-soft); font-size: 13px; }
.site-footer span, .site-footer p { margin: 4px 0 0; font-size: 9px; }

@media (max-width: 1220px) {
  .dashboard-hero { grid-template-columns: 1fr 430px; gap: 36px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-card-featured { grid-column: span 1; }
  .tool-card-featured h3 { font-size: 17px; }
  .recent-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1020px) {
  :root { --sidebar: 228px; }
  .dashboard-hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-console { max-width: 680px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-sidebar { transform: translateX(-105%); width: min(310px, 86vw); box-shadow: 20px 0 50px rgba(0,0,0,.28); transition: transform .22s ease; }
  .site-sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .site-workspace { margin-left: 0; }
  .topbar { height: 66px; padding: 0 16px; }
  .mobile-menu { display: grid; place-items: center; flex: 0 0 auto; }
  .mobile-brand { display: flex; align-items: center; gap: 6px; font-size: 12px; }
  .mobile-brand span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #4f91ff, #5a68eb); color: #fff; font-size: 9px; font-weight: 900; }
  .command-search { width: auto; flex: 1; }
  .command-search kbd { display: none; }
  .topbar-button-text { display: none; }
  .topbar-button { width: 39px; padding: 0; }
  .main-content { padding: 22px 16px 50px; }
  .dashboard-hero { padding: 30px 24px; border-radius: 22px; }
  .section-heading, .tools-heading { align-items: flex-start; flex-direction: column; }
  .category-tabs { justify-content: flex-start; }
  .assurance-section { grid-template-columns: 1fr; }
  .assurance-section article + article { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .mobile-brand strong { display: none; }
  .command-search { min-height: 40px; }
  .dashboard-hero { padding: 27px 20px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-lead { font-size: 13px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-trust { gap: 8px 12px; }
  .console-body { padding: 9px; }
  .metric-strip, .tool-grid, .recent-grid { grid-template-columns: 1fr; }
  .metric-strip article { min-height: 90px; }
  .content-section { margin-top: 50px; }
  .category-tabs { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); }
  .category-tab { width: 100%; }
  .tool-card { min-height: 270px; }
  .workflow-card { min-height: 250px; }
  .site-footer { padding: 22px 16px; align-items: flex-start; flex-direction: column; }
}

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