:root {
  color-scheme: dark;
  --bg: #080d13 !important;
  --s1: #101720 !important;
  --s2: #141d28 !important;
  --panel: #101720 !important;
  --panel2: #141d28 !important;
  --surface: #101720;
  --surface-2: #141d28;
  --surface-3: #192431;
  --bdr: #243243 !important;
  --b: #243243 !important;
  --line: #243243 !important;
  --line-strong: #33465d;
  --tx: #edf4ff !important;
  --text: #edf4ff !important;
  --t2: #93a2b7 !important;
  --muted: #93a2b7 !important;
  --ac: #72a8ff !important;
  --blue: #4389ff !important;
  --gr: #35c97d !important;
  --green: #35c97d !important;
  --ye: #ffb44a !important;
  --yellow: #ffb44a !important;
  --pi: #ff7f79 !important;
  --red: #ff665f !important;
  --pu: #b596ff !important;
  --radius: 10px !important;
  --hb-font: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
}

[hidden] { display: none !important; }
.mi { width: 1em; height: 1em; display: inline-block; flex: 0 0 auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.14em; }
.mi > .mi-svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html { min-width: 320px; min-height: 100%; background: var(--bg) !important; }
body.hb-unified-shell {
  display: block !important;
  min-width: 320px !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--bg) !important;
  color: var(--tx) !important;
  font-family: var(--hb-font) !important;
  font-size: 13px;
}
body.hb-unified-shell *, body.hb-unified-shell *::before, body.hb-unified-shell *::after { box-sizing: border-box; }
body.hb-unified-shell button,
body.hb-unified-shell input,
body.hb-unified-shell select,
body.hb-unified-shell textarea { font: inherit; }
body.hb-unified-shell button:focus-visible,
body.hb-unified-shell a:focus-visible,
body.hb-unified-shell select:focus-visible,
body.hb-unified-shell input:focus-visible,
body.hb-unified-shell textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.hb-page-shell { display: grid; grid-template-columns: 170px minmax(0, 1fr); height: 100vh; background: var(--bg); }
.hb-sidebar { display: flex; min-width: 0; flex-direction: column; padding: 22px 10px 14px; border-right: 1px solid var(--line); background: #0b1119; }
.hb-brand { display: flex; align-items: center; padding: 0 12px 24px; color: #f0f5ff; text-decoration: none; }
.hb-brand-logo-frame { display: block; width: 126px; overflow: hidden; transition: width .2s ease; }
.hb-brand-logo { display: block; width: 126px; max-width: none; height: auto; }
.hb-brand-mark { display: none; width: 40px; height: 40px; object-fit: contain; }
.hb-brand strong { margin-right: 4px; color: #4b8cff; }
.hb-primary-nav { display: flex; flex-direction: column; gap: 7px; }
.hb-nav-item { position: relative; display: flex; min-height: 48px; align-items: center; gap: 13px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; color: #a9b6c8; text-decoration: none; transition: .16s ease; }
.hb-nav-item .mi { width: 24px; color: #b9c7dc; font-size: 19px; text-align: center; }
.hb-nav-item:hover { border-color: var(--line); background: var(--surface); color: var(--tx); }
.hb-nav-item.active { border-color: rgba(67,137,255,.08); background: rgba(67,137,255,.14); color: #72a8ff; }
.hb-nav-item.active::before { position: absolute; top: 8px; left: -11px; width: 3px; height: 32px; border-radius: 3px; background: var(--blue); content: ""; }
.hb-nav-item.active .mi { color: #72a8ff; }
.hb-remote-client [data-admin-only] { display: none !important; }
.hb-video-playback-disabled a[href^="/api/play/"],
.hb-video-playback-disabled [data-card-play],
.hb-video-playback-disabled [data-detail-preview] { display:none !important; }
.hb-sidebar-bottom { display: grid; gap: 4px; margin-top: auto; }
.hb-account { display:flex; align-items:center; gap:8px; padding:12px 8px 0; border-top:1px solid var(--line); }
.hb-account > span { display:grid; min-width:0; gap:3px; flex:1; }
.hb-account small { color:var(--muted); font-size:10px; }
.hb-account strong { overflow:hidden; color:#dce7f5; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.hb-account button { display:grid; width:30px; height:30px; place-items:center; border:1px solid var(--line); border-radius:7px; background:#0d141d; color:#9fb0c5; cursor:pointer; }
.hb-account button:hover { border-color:#506681; color:#fff; }
.hb-account button .mi { width:16px; }
.hb-side-status { display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px; border-top: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.hb-side-status > .mi { margin-top: 3px; color: #aebcd0; }
.hb-side-status > span:last-child { display: grid; min-width: 0; gap: 3px; }
.hb-side-status small { color: var(--muted); font-size: 11px; }
.hb-side-status strong { overflow: hidden; color: #c4cede; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.hb-status-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #66768d; }
.hb-status-dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(53,201,125,.12); }
.hb-status-dot.danger { background: var(--red); box-shadow: 0 0 0 3px rgba(255,102,95,.12); }

.hb-main-shell { display: grid; min-width: 0; height: 100vh; grid-template-columns:minmax(0,1fr); grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.hb-live-strip { display: flex; min-height: 70px; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #090f16; }
.hb-live-chip { display: inline-flex; height: 38px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #0d141d; color: #cbd6e5; text-decoration: none; white-space: nowrap; }
.hb-live-chip .mi { color: var(--muted); }
.hb-live-chip[data-state="warn"] { border-color: rgba(255,180,74,.32); color: #ffd08d; }
.hb-live-chip[data-state="danger"] { border-color: rgba(255,102,95,.35); color: #ff918b; }
.hb-live-chip[data-state="danger"] .mi { color: var(--red); }
.hb-capacity-alert { display: grid; min-width: 230px; max-width: 310px; min-height: 44px; align-content: center; gap: 2px; margin-left: auto; padding: 8px 13px; border: 1px solid rgba(255,102,95,.42); border-radius: 9px; background: rgba(101,30,27,.24); color: #ff9b94; text-decoration: none; }
.hb-capacity-alert strong { font-size: 12px; }
.hb-capacity-alert span { overflow: hidden; color: #f3b2ad; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.hb-page-heading { display: flex; width:100%; max-width:100%; min-width:0; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; overflow:hidden; padding: 17px 22px; border-bottom: 1px solid var(--line); background: #0b1119; }
.hb-page-heading h1 { margin: 0 0 5px !important; color: var(--tx) !important; font-size: 21px !important; font-weight: 680; letter-spacing: -.25px; }
.hb-page-heading p { margin: 0 !important; color: var(--muted) !important; font-size: 12px; }
.hb-heading-action { display: flex; width:auto; max-width:100%; min-width: 0; margin-left: auto; align-items: center; justify-content: flex-end; }
.hb-page-scroll { min-height: 0; padding: 18px 20px 36px; overflow: auto; scrollbar-color: #33465d transparent; }
.hb-page-content { width: min(1380px, 100%); margin: 0 auto; }
.hb-live-backup { display:flex; flex:0 0 190px; width:190px; min-width:190px; margin-left:0; }
.hb-live-backup .task-center-backup-card {
  display:flex;
  width:100%;
  max-width:none;
  min-width:0;
  height:36px;
  min-height:36px;
  align-items:center;
  gap:9px;
  overflow:hidden;
  margin:0;
  padding:3px 5px 3px 12px;
  border:1px solid rgba(255,255,255,.82);
  border-radius:999px;
  background:rgba(255,255,255,.54);
  box-shadow:var(--hb-shadow-soft);
  backdrop-filter:blur(22px) saturate(1.18);
  -webkit-backdrop-filter:blur(22px) saturate(1.18);
}
.hb-live-backup .task-center-backup-card .backup-copy { display:grid; min-width:0; flex:1; gap:1px; }
.hb-live-backup .task-center-backup-card .card-title { overflow:hidden; color:#172536; font-size:10px; font-weight:650; line-height:1.2; letter-spacing:.01em; text-overflow:ellipsis; white-space:nowrap; }
.hb-live-backup .task-center-backup-card .backup-meta { display:flex; min-width:0; align-items:center; gap:4px; font-size:9px; line-height:1.2; white-space:nowrap; }
.hb-live-backup .task-center-backup-card .backup-meta strong { color:#2b7eea; }
.hb-live-backup .task-center-backup-card #bkLatest { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hb-live-backup .task-center-backup-card #bkLatest[data-evidence-status="unverified"] { color:#8a641f; }
.hb-live-backup .task-center-backup-card #bkLatest[data-evidence-status="invalid"] { color:#b43347; }
.hb-live-backup .task-center-backup-card .backup-icon { width:15px; height:15px; flex:0 0 auto; fill:none; stroke:#2b7eea; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.hb-live-backup #createBackupButton {
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:3px 9px;
  border-radius:999px !important;
  border-color:rgba(43,126,234,.28) !important;
  background:#2b7eea !important;
  color:#fff !important;
  font:600 10px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  cursor:pointer;
  box-shadow:0 7px 18px rgba(43,126,234,.18), inset 0 1px 0 rgba(255,255,255,.30) !important;
}
.hb-live-backup #createBackupButton:disabled { cursor:wait; opacity:.68; }
@media (max-width: 1600px) {
  .hb-live-strip { flex-wrap:wrap; align-content:center; }
}

/* Suppress the old duplicated navigation while preserving each page's content and scripts. */
.hb-page-content > .google-bar,
.hb-page-content > header.top,
.hb-page-content > .top { display: none !important; }

/* Normalize the legacy pages into the selected graphite/navy design. */
.hb-page-content .content-wrap,
.hb-page-content .wrap { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.hb-page-content .panel,
.hb-page-content .card,
.hb-page-content .item,
.hb-page-content .drive,
.hb-page-content .table-wrap,
.hb-page-content .diag-card,
.hb-page-content .status-card,
.hb-page-content .task-card {
  border-color: var(--line) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}
.hb-page-content .panel,
.hb-page-content .card,
.hb-page-content .item,
.hb-page-content .drive { border-radius: 10px !important; }
.hb-page-content h1 { color: var(--tx) !important; }
.hb-page-content h2 { color: #cad6e6 !important; }
.hb-page-content h3 { color: #8fb8f8 !important; }
.hb-page-content table { border-color: var(--line) !important; background: var(--surface) !important; }
.hb-page-content th { border-color: var(--line) !important; background: #0d141d !important; color: var(--muted) !important; }
.hb-page-content td { border-color: var(--line) !important; }
.hb-page-content tr:hover { background: var(--surface-2) !important; }
.hb-page-content button { border-radius: 7px !important; }
.hb-page-content input,
.hb-page-content select,
.hb-page-content textarea { border-color: var(--line) !important; background: #0d141c !important; color: var(--tx) !important; }
.hb-page-content .primary,
.hb-page-content .save,
.hb-page-content .retry,
.hb-page-content .lookup-btn,
.hb-page-content .lookup-add { background: #2673ee !important; color: #fff !important; }
.hb-page-content .pbar-bg,
.hb-page-content .bar { background: #1b2734 !important; }
.hb-page-content .fill,
.hb-page-content .pbar-fill { background: linear-gradient(90deg,#4389ff,#35c97d) !important; }
.hb-page-content .back { display: none !important; }
body.hb-remote-client .hb-page-content .btn-open { display: none !important; }

/* The two compact progress pages become centered task cards within the workspace. */
.hb-page-content > main.card:only-of-type { width: min(620px, 100%); min-width: 0 !important; margin: 42px auto 0; padding: 30px 42px !important; }

@media (max-width: 1180px) {
  .hb-page-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .hb-brand { justify-content: flex-start; padding-inline: 12px; }
  .hb-brand-logo-frame { width: 26px; }
  .hb-brand span, .hb-nav-item span:last-child, .hb-side-status span:last-child { display: none; }
  .hb-nav-item { justify-content: center; padding: 0; }
  .hb-live-chip { padding-inline: 9px; }
  .hb-live-chip span:last-child { font-size: 11px; }
  .hb-capacity-alert { min-width: 190px; }
}

@media (max-width: 820px) {
  body.hb-unified-shell { overflow: auto !important; }
  .hb-page-shell { display: block; height: auto; min-height: 100vh; }
  .hb-sidebar { position: sticky; top: 0; z-index: 200; display: grid; grid-template-columns: auto minmax(0,1fr); padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hb-brand { padding: 4px 10px; }
  .hb-brand-logo-frame { width: 112px; }
  .hb-brand-logo { width: 112px; }
  .hb-brand span { display: inline; }
  .hb-primary-nav { flex-direction: row; justify-content: flex-end; gap: 3px; overflow-x: auto; }
  .hb-primary-nav, .hb-live-strip { scrollbar-width: none; -ms-overflow-style: none; }
  .hb-primary-nav::-webkit-scrollbar, .hb-live-strip::-webkit-scrollbar { display: none; }
  .hb-nav-item { min-width: 43px; min-height: 42px; padding: 0 10px; }
  .hb-nav-item span:last-child { display: none; }
  .hb-nav-item.active::before { top: auto; bottom: -10px; left: 8px; width: 27px; height: 3px; }
  .hb-sidebar-bottom { display: none; }
  .hb-main-shell { height: auto; min-height: calc(100vh - 61px); overflow: visible; }
  .hb-live-strip { min-height: 58px; padding: 9px 12px; overflow-x: auto; }
  .hb-live-chip { height: 35px; }
  .hb-capacity-alert { display: none !important; }
  .hb-page-heading { min-height: 76px; padding: 14px; }
  body.hb-task-center-page .hb-page-heading { flex-direction: column; align-items: stretch; gap: 10px; }
  body.hb-task-center-page .hb-heading-action { width: 100%; margin-left: 0; }
  .hb-page-scroll { padding: 14px; overflow: visible; }
  .hb-page-content .summary { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .hb-page-content .grid { grid-template-columns: minmax(0,1fr) !important; }
}

@media (max-width: 520px) {
  .hb-brand { padding-inline: 4px; }
  .hb-brand-logo-frame { width: 92px; }
  .hb-brand-logo { width: 92px; }
  .hb-brand span { display: none; }
  .hb-primary-nav { justify-content: flex-start; }
  .hb-nav-item { padding-inline: 8px; }
  .hb-live-strip { gap: 6px; }
  .hb-page-heading h1 { font-size: 18px !important; }
  .hb-page-content > main.card:only-of-type { margin-top: 12px; padding: 22px 18px !important; }
}

/* 2026 light Liquid Glass system: shared by every non-home workspace page. */
:root {
  color-scheme: light;
  --bg: #eaf3fb !important;
  --s1: rgba(255,255,255,.58) !important;
  --s2: rgba(247,251,255,.72) !important;
  --panel: rgba(255,255,255,.58) !important;
  --panel2: rgba(247,251,255,.72) !important;
  --surface: rgba(255,255,255,.56) !important;
  --surface-2: rgba(247,251,255,.74) !important;
  --surface-3: rgba(238,246,255,.82) !important;
  --bdr: rgba(56,83,112,.15) !important;
  --b: rgba(56,83,112,.15) !important;
  --line: rgba(56,83,112,.15) !important;
  --line-strong: rgba(48,77,109,.25) !important;
  --tx: #172536 !important;
  --text: #172536 !important;
  --t2: #607085 !important;
  --muted: #607085 !important;
  --ac: #2b7eea !important;
  --blue: #2b7eea !important;
  --gr: #168b5b !important;
  --green: #168b5b !important;
  --ye: #a96912 !important;
  --yellow: #a96912 !important;
  --pi: #c8444d !important;
  --red: #c8444d !important;
  --pu: #7355bd !important;
  --radius: 18px !important;
  --hb-glass: rgba(255,255,255,.55);
  --hb-glass-strong: rgba(255,255,255,.76);
  --hb-glass-edge: rgba(255,255,255,.84);
  --hb-shadow: 0 20px 54px rgba(55,87,126,.14), inset 0 1px 0 rgba(255,255,255,.9);
  --hb-shadow-soft: 0 10px 30px rgba(55,87,126,.10), inset 0 1px 0 rgba(255,255,255,.78);
}

html {
  background-color: var(--bg) !important;
  background-image: url("/ui/liquid-glass-bg.png") !important;
  background-position: center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

body.hb-unified-shell {
  background-color: transparent !important;
  background-image: url("/ui/liquid-glass-bg.png") !important;
  background-position: center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  color: var(--tx) !important;
}

.hb-page-shell { background: transparent; }
.hb-sidebar {
  z-index: 20;
  margin: 10px 0 10px 10px;
  padding: 20px 10px 14px;
  border: 1px solid var(--hb-glass-edge);
  border-radius: 26px;
  background: rgba(249,252,255,.60);
  box-shadow: var(--hb-shadow-soft);
  backdrop-filter: blur(30px) saturate(1.22);
  -webkit-backdrop-filter: blur(30px) saturate(1.22);
}
.hb-brand { color: #172536; }
.hb-brand strong { color: #2b7eea; }
.hb-nav-item { border-radius: 13px; color: #4e6074; }
.hb-nav-item .mi { color: #61738a; }
.hb-nav-item:hover {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.54);
  color: #172536;
  box-shadow: 0 8px 20px rgba(65,94,128,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
.hb-nav-item.active {
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.78);
  color: #195fae;
  box-shadow: 0 10px 24px rgba(65,94,128,.11), inset 0 1px 0 #fff;
}
.hb-nav-item.active::before { display: none; }
.hb-nav-item.active .mi { color: #2b7eea; }
.hb-account { border-color: rgba(56,83,112,.12); }
.hb-account small,
.hb-side-status small { color: #6a7889; }
.hb-account strong,
.hb-side-status strong { color: #304156; }
.hb-account button {
  border-color: rgba(56,83,112,.15);
  background: rgba(255,255,255,.54);
  color: #50657d;
}
.hb-side-status { border-color: rgba(56,83,112,.12); color: #607085; }
.hb-side-status > .mi { color: #607085; }

.hb-main-shell { background: transparent; }
.hb-live-strip {
  min-height: 64px;
  padding: 12px 22px 6px;
  border: 0;
  background: transparent;
}
.hb-live-chip {
  height: 36px;
  padding: 0 13px;
  border-color: rgba(255,255,255,.82);
  border-radius: 999px;
  background: rgba(255,255,255,.54);
  color: #34485f;
  box-shadow: var(--hb-shadow-soft);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}
.hb-live-chip .mi { color: #607085; }
.hb-live-chip[data-state="warn"] { border-color: rgba(190,126,30,.28); background: rgba(255,249,230,.70); color: #8f5d13; }
.hb-live-chip[data-state="danger"] { border-color: rgba(202,68,76,.28); background: rgba(255,240,241,.72); color: #a93640; }
.hb-capacity-alert {
  border-color: rgba(202,68,76,.26);
  border-radius: 15px;
  background: rgba(255,240,241,.74);
  color: #a93640;
  box-shadow: var(--hb-shadow-soft);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.hb-capacity-alert span { color: #a75158; }

.hb-page-heading {
  min-height: 88px;
  padding: 17px 26px;
  border: 0;
  background: transparent;
}
.hb-page-heading h1 {
  color: #172536 !important;
  font-size: 27px !important;
  font-weight: 710;
  letter-spacing: -.6px;
}
.hb-page-heading p { color: #607085 !important; }
.hb-page-scroll { padding: 12px 22px 42px; scrollbar-color: rgba(74,99,126,.28) transparent; }
.hb-page-content { width: min(1440px, 100%); }

/* Shared glass surfaces override legacy dark page styles without altering page logic. */
.hb-page-content .panel,
.hb-page-content .card,
.hb-page-content .item,
.hb-page-content .drive,
.hb-page-content .table-wrap,
.hb-page-content .diag-card,
.hb-page-content .status-card,
.hb-page-content .task-card,
.hb-page-content .stat-card,
.hb-page-content .drive-panel,
.hb-page-content .users-card,
.hb-page-content .health-panel,
.hb-page-content .scan-audit,
.hb-page-content .nas-storage-panel,
.hb-page-content .dedup-card,
.hb-page-content .auto-edit-panel,
.hb-page-content .workspace-panel {
  border: 1px solid var(--hb-glass-edge) !important;
  background: var(--hb-glass) !important;
  box-shadow: var(--hb-shadow-soft) !important;
  backdrop-filter: blur(26px) saturate(1.18);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
}
.hb-page-content .panel,
.hb-page-content .card,
.hb-page-content .item,
.hb-page-content .drive,
.hb-page-content .stat-card,
.hb-page-content .drive-panel,
.hb-page-content .users-card,
.hb-page-content .health-panel,
.hb-page-content .scan-audit,
.hb-page-content .nas-storage-panel,
.hb-page-content .dedup-card { border-radius: 18px !important; }
.hb-page-content h1,
.hb-page-content h2,
.hb-page-content h3,
.hb-page-content .card-title,
.hb-page-content .section-title { color: #172536 !important; }
.hb-page-content h3 { color: #285e96 !important; }
.hb-page-content table {
  border-color: rgba(56,83,112,.13) !important;
  background: rgba(255,255,255,.48) !important;
}
.hb-page-content th {
  border-color: rgba(56,83,112,.13) !important;
  background: rgba(241,247,253,.72) !important;
  color: #586b81 !important;
}
.hb-page-content td { border-color: rgba(56,83,112,.11) !important; color: #26394f; }
.hb-page-content tr:hover { background: rgba(255,255,255,.50) !important; }
.hb-page-content button,
.hb-page-content .btn,
.hb-page-content .g-tab,
.hb-page-content .tab,
.hb-page-content .chip {
  border-color: rgba(56,83,112,.16) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,.58) !important;
  color: #31465e !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
}
.hb-page-content button:hover,
.hb-page-content .btn:hover {
  border-color: rgba(43,126,234,.34) !important;
  background: rgba(255,255,255,.82) !important;
  color: #175fae !important;
}
.hb-page-content input,
.hb-page-content select,
.hb-page-content textarea {
  border-color: rgba(56,83,112,.16) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,.72) !important;
  color: #172536 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}
.hb-page-content input::placeholder,
.hb-page-content textarea::placeholder { color: #8995a3; }
.hb-page-content .primary,
.hb-page-content .save,
.hb-page-content .retry,
.hb-page-content .lookup-btn,
.hb-page-content .lookup-add,
.hb-page-content .btn.primary,
.hb-page-content #createBackupButton,
.hb-page-content #triggerNasScanButton {
  border-color: rgba(43,126,234,.28) !important;
  background: #2b7eea !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(43,126,234,.20), inset 0 1px 0 rgba(255,255,255,.30) !important;
}
.hb-page-content .pbar-bg,
.hb-page-content .bar,
.hb-page-content .bar-wrap { background: rgba(58,87,119,.12) !important; }
.hb-page-content .fill,
.hb-page-content .pbar-fill,
.hb-page-content .bar-fill { background: #2b7eea !important; }
.hb-page-content .bar-fill.ok { background: #19a66a !important; }
.hb-page-content .bar-fill.warn { background: #d18a22 !important; }
.hb-page-content .bar-fill.danger { background: #d64e57 !important; }

/* Task Center keeps dense operational truth, but groups it into calm glass sheets. */
body.hb-task-center-page .hb-page-scroll { padding-top: 12px; }
body.hb-task-center-page .hb-page-content > .content-wrap { display: grid; gap: 18px; }
body.hb-task-center-page .hb-page-content > .content-wrap > * { margin-top: 0 !important; margin-bottom: 0 !important; }
body.hb-task-center-page #healthPanel {
  order: -30;
  min-height: 220px;
  padding: 26px !important;
  background: rgba(255,255,255,.48) !important;
  box-shadow: var(--hb-shadow) !important;
}
body.hb-task-center-page .health-top { align-items: flex-start; }
body.hb-task-center-page #scanAuditHeadline {
  max-width: 920px;
  margin-top: 6px;
  color: #172536 !important;
  font-size: clamp(22px,1.7vw,30px) !important;
  font-weight: 700 !important;
  line-height: 1.18;
  letter-spacing: -.55px;
}
body.hb-task-center-page .health-metrics {
  gap: 10px;
  margin-top: 26px;
}
body.hb-task-center-page .health-metric {
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.42) !important;
}
body.hb-task-center-page .health-metric-value { color: #1f5f9f !important; }
body.hb-task-center-page .health-foot { border-color: rgba(56,83,112,.12) !important; }
body.hb-task-center-page .scan-process-grid {
  order: -29;
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 0 !important;
  padding: 12px 20px !important;
  border: 1px solid var(--hb-glass-edge) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.52) !important;
  box-shadow: var(--hb-shadow) !important;
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}
body.hb-task-center-page .scan-process-card {
  min-height: 154px;
  border: 0 !important;
  border-bottom: 1px solid rgba(56,83,112,.11) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.hb-task-center-page .scan-process-card:nth-last-child(-n+2) { border-bottom: 0 !important; }
body.hb-task-center-page .scan-process-card:nth-child(odd) { border-right: 1px solid rgba(56,83,112,.11) !important; }
body.hb-task-center-page .scan-process-state,
body.hb-task-center-page .scan-process-scope { border-radius: 999px !important; }
body.hb-task-center-page .scan-process-scope-line,
body.hb-task-center-page .scan-process-batch { background: rgba(255,255,255,.42) !important; }
body.hb-task-center-page #coreStatusGrid { gap: 14px !important; }
body.hb-task-center-page #scanAuditPanel,
body.hb-task-center-page #nasStoragePanel { padding: 0 !important; overflow: hidden; }
body.hb-task-center-page .scan-audit-top,
body.hb-task-center-page .nas-storage-head { background: rgba(255,255,255,.30) !important; }
body.hb-task-center-page #scanAuditPanel .scan-audit-top { padding:18px 20px 15px; gap:18px; }
body.hb-task-center-page #scanAuditPanel .scan-audit-controls { justify-content:flex-end; }
body.hb-task-center-page #scanAuditPanel .scan-audit-summary { margin-top:0; padding:12px 16px; gap:10px; }
body.hb-task-center-page #scanAuditPanel .scan-audit-table-wrap { margin:0 16px 16px; }
body.hb-task-center-page .drive-panel-compact,
body.hb-task-center-page .storage-event-card,
body.hb-task-center-page .dedup-header,
body.hb-task-center-page .scan-audit-metric {
  border-color: rgba(56,83,112,.13) !important;
  background: rgba(255,255,255,.42) !important;
}

/* Auto Edit uses its own component vocabulary, so bring it into the same glass system. */
.hb-page-content .project-panel,
.hb-page-content .brief-card,
.hb-page-content .plan-card {
  border: 1px solid var(--hb-glass-edge) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.54) !important;
  color: #172536 !important;
  box-shadow: var(--hb-shadow-soft) !important;
  backdrop-filter: blur(26px) saturate(1.18);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
}
.hb-page-content .project-item,
.hb-page-content .beat-card,
.hb-page-content .candidate,
.hb-page-content .script-import,
.hb-page-content .version-bar,
.hb-page-content .requirements-panel,
.hb-page-content .beat-review,
.hb-page-content .render-panel,
.hb-page-content .handoff-panel {
  border-color: rgba(56,83,112,.13) !important;
  background: rgba(255,255,255,.46) !important;
  color: #25384d !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.hb-page-content .project-item:hover,
.hb-page-content .beat-card:hover,
.hb-page-content .candidate:hover { background: rgba(255,255,255,.68) !important; }
.hb-page-content .project-item.active {
  border-color: rgba(43,126,234,.30) !important;
  background: rgba(225,239,255,.72) !important;
  box-shadow: inset 3px 0 0 #2b7eea, inset 0 1px 0 rgba(255,255,255,.82) !important;
}
.hb-page-content .project-item,
.hb-page-content .project-item strong,
.hb-page-content .beat-copy,
.hb-page-content .candidate-title,
.hb-page-content .script-import strong,
.hb-page-content .handoff-panel strong,
.hb-page-content .panel-heading,
.hb-page-content .section-title,
.hb-page-content .section-title h2 { color: #172536 !important; }
.hb-page-content .project-item small,
.hb-page-content .candidate-meta,
.hb-page-content .candidate-reason,
.hb-page-content .empty,
.hb-page-content .safety-note,
.hb-page-content .script-import-status,
.hb-page-content .requirements-panel,
.hb-page-content .beat-review,
.hb-page-content .trim-controls,
.hb-page-content .form-row label { color: #65758a !important; }
.hb-page-content .safety-note {
  border-color: rgba(43,126,234,.18) !important;
  background: rgba(230,242,255,.54) !important;
}
.hb-page-content .concepts span,
.hb-page-content .status-pill,
.hb-page-content .beat-index {
  border-color: rgba(43,126,234,.18) !important;
  background: rgba(229,241,255,.68) !important;
  color: #1e69b7 !important;
}
.hb-page-content .candidate { overflow: hidden; }
.hb-page-content .candidate-media {
  border-color: rgba(56,83,112,.13) !important;
  background: #172331 !important;
}
.hb-page-content .progress-track { background: rgba(58,87,119,.12) !important; }
.hb-page-content .progress-track > span { background: #2b7eea !important; }
.hb-page-content #previewVideo {
  border: 1px solid rgba(56,83,112,.14);
  border-radius: 14px;
  background: #101820;
}

/* Vocabulary and face-library cards keep strong hierarchy without the legacy dark islands. */
.hb-page-content .view-tabs,
.hb-page-content .tabs {
  border-color: rgba(56,83,112,.13) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.42) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}
.hb-page-content .view-tab,
.hb-page-content .tab { background: transparent !important; color: #607085 !important; box-shadow: none !important; }
.hb-page-content .view-tab.active,
.hb-page-content .tab.active {
  border-color: rgba(255,255,255,.76) !important;
  background: rgba(255,255,255,.82) !important;
  color: #1767bb !important;
  box-shadow: 0 5px 16px rgba(48,80,119,.12), inset 0 1px 0 #fff !important;
}
.hb-page-content .metric,
.hb-page-content .person-card,
.hb-page-content .detected-face-card {
  border: 1px solid var(--hb-glass-edge) !important;
  border-radius: 17px !important;
  background: rgba(255,255,255,.50) !important;
  color: #172536 !important;
  box-shadow: var(--hb-shadow-soft) !important;
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}
.hb-page-content .metric small,
.hb-page-content .person-stats span,
.hb-page-content .face-context span,
.hb-page-content .gallery-note,
.hb-page-content .claim-toolbar p,
.hb-page-content .name-mode { color: #68798e !important; }
.hb-page-content .metric strong,
.hb-page-content .person-card-title strong,
.hb-page-content .face-context strong { color: #172536 !important; }
.hb-page-content .person-stats span,
.hb-page-content .person-reference-row,
.hb-page-content .face-suggestion,
.hb-page-content .match-option,
.hb-page-content .preview-stats span,
.hb-page-content .pager {
  border-color: rgba(56,83,112,.12) !important;
  background: rgba(255,255,255,.42) !important;
}
.hb-page-content .person-reference-row span,
.hb-page-content .match-file,
.hb-page-content .pager span { color: #4b6078 !important; }
.hb-page-content .detected-face-body,
.hb-page-content .person-card-body { color: #25384d !important; }
.hb-page-content .face-search input,
.hb-page-content .claim-form input { background: rgba(255,255,255,.72) !important; color: #172536 !important; }
.hb-page-content .face-suggestion { color: #236eb9 !important; }
.hb-page-content .analysis-bar { background: rgba(58,87,119,.12) !important; }
.hb-page-content .analysis-bar span { background: #2b7eea !important; }
.hb-page-content .alias {
  border-color: rgba(56,83,112,.14) !important;
  background: rgba(255,255,255,.42);
  color: #4a637f !important;
}

/* Dialogs and overlays remain readable above the bright workspace. */
body.hb-unified-shell dialog,
body.hb-unified-shell .dialog,
body.hb-unified-shell .modal,
body.hb-unified-shell .modal-card,
body.hb-unified-shell .preview-dialog,
body.hb-unified-shell .preview-card {
  border-color: rgba(255,255,255,.88) !important;
  background: rgba(248,252,255,.92) !important;
  color: #172536 !important;
  box-shadow: 0 34px 90px rgba(33,55,82,.28) !important;
  backdrop-filter: blur(34px) saturate(1.15);
  -webkit-backdrop-filter: blur(34px) saturate(1.15);
}

/* Login shares the same atmosphere without mounting the authenticated app shell. */
body.hb-login-page { overflow: auto !important; }
body.hb-login-page .login-layout { min-height: 100vh; }
body.hb-login-page .login-card {
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 24px;
  background: rgba(255,255,255,.60);
  color: #172536;
  box-shadow: 0 30px 80px rgba(45,72,106,.20), inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
}
body.hb-login-page .login-brand { color: #172536; }
body.hb-login-page .login-brand-logo { display: block; width: 182px; height: auto; }
body.hb-login-page .login-brand strong { color: #2b7eea; }
body.hb-login-page p,
body.hb-login-page .privacy-note { color: #607085; }
body.hb-login-page .privacy-note { border-color: rgba(56,83,112,.12); }
body.hb-login-page .field label { color: #41556c; }
body.hb-login-page .field input,
body.hb-login-page .field select {
  border-color: rgba(56,83,112,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: #172536;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
body.hb-login-page .field input:focus,
body.hb-login-page .field select:focus { border-color: #2b7eea; box-shadow: 0 0 0 4px rgba(43,126,234,.11); }
body.hb-login-page .primary {
  border-radius: 12px;
  background: #2b7eea;
  color: #fff;
  box-shadow: 0 10px 24px rgba(43,126,234,.22), inset 0 1px 0 rgba(255,255,255,.3);
}

@media (max-width: 1180px) {
  .hb-sidebar { margin: 8px 0 8px 8px; }
  body.hb-task-center-page .scan-process-grid { grid-template-columns: minmax(0,1fr) !important; }
  body.hb-task-center-page .scan-process-card,
  body.hb-task-center-page .scan-process-card:nth-child(odd) { border-right: 0 !important; border-bottom: 1px solid rgba(56,83,112,.11) !important; }
  body.hb-task-center-page .scan-process-card:last-child { border-bottom: 0 !important; }
}

@media (max-width: 820px) {
  .hb-sidebar {
    margin: 8px;
    border-radius: 20px;
    border-bottom: 1px solid var(--hb-glass-edge);
  }
  .hb-page-heading { padding-inline: 16px; }
  .hb-page-scroll { padding: 10px 12px 28px; }
  body.hb-task-center-page #healthPanel { min-height: 0; padding: 20px !important; }
  body.hb-task-center-page #scanAuditHeadline { font-size: 22px !important; letter-spacing: -.35px; }
  body.hb-task-center-page .health-metrics { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.hb-task-center-page .scan-process-grid { padding: 8px 14px !important; }
  .hb-page-content .project-list { max-height: 310px; overflow: auto; overscroll-behavior: contain; }
}

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

/* Shared Apple-inspired readability pass for every non-home workspace. */
:root {
  --hb-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
}

body.hb-unified-shell {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -.006em;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hb-page-shell { grid-template-columns: clamp(182px, 14.5vw, 208px) minmax(0, 1fr); }
.hb-brand { min-width: 0; padding: 2px 10px 24px; }
.hb-brand-logo-frame { width: min(100%, 154px); max-width: 154px; }
.hb-brand-logo { width: 100%; max-width: 100%; height: auto; }
.hb-nav-item { min-height: 50px; font-size: 14px; font-weight: 500; }
.hb-account small,
.hb-side-status small { font-size: 12px; font-weight: 500; }
.hb-account strong,
.hb-side-status strong { font-size: 12px; font-weight: 600; }
.hb-live-chip { font-size: 13px; font-weight: 500; }
.hb-capacity-alert strong { font-size: 13px; font-weight: 650; }
.hb-capacity-alert span { font-size: 12px; font-weight: 500; }
.hb-page-heading p { font-size: 14px; font-weight: 450; }
.hb-page-content :is(button, input, select, textarea) { font-size: 14px; font-weight: 500; }
.hb-page-content :is(label, th) { font-size: 13px; font-weight: 600; }
.hb-page-content small { font-size: 12px; }

@media (min-width: 821px) and (max-width: 1180px) {
  .hb-sidebar :is(.hb-nav-item,.hb-side-status) { padding-inline: 0; }
  .hb-sidebar:is(:hover,:focus-within) :is(.hb-nav-item,.hb-side-status) { padding-inline: 14px; }
  .hb-page-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .hb-sidebar {
    position: relative;
    width: 68px;
    overflow: hidden;
    transition: width .2s ease, box-shadow .2s ease, background-color .2s ease;
  }
  .hb-brand-logo-frame { width: 32px; max-width: 32px; }
  .hb-brand-logo { width: 32px; max-width: none; }
  .hb-sidebar:hover,
  .hb-sidebar:focus-within { width: 204px; box-shadow: 18px 0 42px rgba(48,82,122,.18); }
  .hb-sidebar:hover .hb-brand-logo-frame,
  .hb-sidebar:focus-within .hb-brand-logo-frame { width: 150px; max-width: 150px; }
  .hb-sidebar:hover .hb-brand-logo,
  .hb-sidebar:focus-within .hb-brand-logo { width: 150px; }
  .hb-sidebar:hover .hb-brand span,
  .hb-sidebar:focus-within .hb-brand span,
  .hb-sidebar:hover .hb-nav-item span:last-child,
  .hb-sidebar:focus-within .hb-nav-item span:last-child,
  .hb-sidebar:hover .hb-side-status span:last-child,
  .hb-sidebar:focus-within .hb-side-status span:last-child { display: grid; }
  .hb-sidebar:hover .hb-nav-item,
  .hb-sidebar:focus-within .hb-nav-item,
  .hb-sidebar:hover .hb-side-status,
  .hb-sidebar:focus-within .hb-side-status { justify-content: flex-start; }
  .hb-sidebar:hover .hb-nav-item,
  .hb-sidebar:focus-within .hb-nav-item { padding-inline: 14px; }
}

@media (max-width: 820px) {
  .hb-page-shell { display: block; }
  .hb-brand-logo-frame,
  .hb-brand-logo { width: 112px; max-width: 112px; }
}

/* Apple.com-aligned typography: SF/PingFang-first, three stable weights,
   and no critical desktop information below a comfortably readable size. */
:root {
  --hb-font: "SF Pro SC", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
  --hb-font-display: "SF Pro SC", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

body.hb-unified-shell {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  font-kerning: normal;
  font-synthesis: none;
}

.hb-page-heading h1 {
  font-family: var(--hb-font-display) !important;
  font-size: 30px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}
.hb-page-heading p { font-size: 15px !important; font-weight: 400 !important; line-height: 1.45; letter-spacing: 0; }
.hb-nav-item { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.hb-nav-item.active { font-weight: 500; }
.hb-account small,
.hb-side-status small { font-size: 13px; font-weight: 400; }
.hb-account strong,
.hb-side-status strong { font-size: 13px; font-weight: 500; }
.hb-live-chip { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.hb-capacity-alert strong { font-size: 14px; font-weight: 600; }
.hb-capacity-alert span { font-size: 13px; font-weight: 400; }
.hb-live-backup .task-center-backup-card .card-title { font-size: 11px; font-weight: 600; }
.hb-live-backup .task-center-backup-card .backup-meta { font-size: 10px; font-weight: 400; }

.hb-page-content { font-size: 14px; line-height: 1.5; letter-spacing: 0; }
.hb-page-content :is(button, input, select, textarea) { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.hb-page-content :is(label, th) { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.hb-page-content :is(h1, h2, h3, h4, .card-title, .section-title, .panel-title, .nas-storage-title) {
  font-family: var(--hb-font-display);
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
.hb-page-content :is(h2, .section-title, .panel-title, .nas-storage-title) { font-size: 17px !important; line-height: 1.35; }
.hb-page-content :is(h3, .card-title) { font-size: 15px !important; line-height: 1.4; }
.hb-page-content :is(.lbl, .kv-val, .meta, .sub, .desc, td, p) { font-size: 13px; line-height: 1.5; }
.hb-page-content :is(.tag, .badge, small) { font-size: 12px; line-height: 1.35; }
.hb-page-content .num { font-family: var(--hb-font-display); font-weight: 600; letter-spacing: 0; }
.hb-page-content .g-tab { font-size: 14px; font-weight: 400; }
.hb-page-content :is(.scan-process-name, .health-title, .card-header .card-title) { font-size: 15px !important; font-weight: 600 !important; }
.hb-page-content :is(.scan-process-detail, .scan-process-current, .scan-process-foot, .scan-process-batch, .scan-process-scope-line) { font-size: 13px !important; line-height: 1.5; }

@media (min-width: 821px) {
  .hb-page-content [style*="font-size:10px"] { font-size: 12px !important; }
  .hb-page-content [style*="font-size:11px"] { font-size: 12px !important; }
  .hb-page-content [style*="font-size:12px"] { font-size: 13px !important; }
}

body.hb-task-center-page #scanAuditHeadline {
  font-family: var(--hb-font-display);
  font-size: clamp(22px,1.55vw,28px) !important;
  font-weight: 600 !important;
  line-height: 1.22;
  letter-spacing: 0 !important;
}

/* 2026-08 Sam reference pass: one calm, connected glass application window. */
:root {
  --hb-sam-ink: #171d2d;
  --hb-sam-copy: #556579;
  --hb-sam-line: rgba(255,255,255,.78);
  --hb-sam-glass: rgba(243,248,255,.54);
  --hb-sam-glass-strong: rgba(249,252,255,.76);
  --hb-sam-shadow: 0 26px 80px rgba(49,76,112,.18), inset 0 1px 0 rgba(255,255,255,.96);
  --hb-sam-shadow-soft: 0 14px 36px rgba(49,76,112,.11), inset 0 1px 0 rgba(255,255,255,.88);
  --hb-sam-primary: #171d2d;
  --hb-sam-primary-hover: #252d40;
}

body.hb-unified-shell:not(.hb-login-page) {
  padding: 14px !important;
  background-image: url("/ui/liquid-glass-bg.png") !important;
  background-position: center !important;
  background-size: cover !important;
}

.hb-page-shell {
  height: calc(100vh - 28px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--hb-sam-line);
  border-radius: 32px;
  background: rgba(238,246,255,.42);
  box-shadow: var(--hb-sam-shadow);
  backdrop-filter: blur(34px) saturate(1.18);
  -webkit-backdrop-filter: blur(34px) saturate(1.18);
}

.hb-sidebar {
  margin: 0;
  padding: 24px 12px 16px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.72);
  border-radius: 0;
  background: rgba(236,245,253,.48);
  box-shadow: none;
  backdrop-filter: blur(38px) saturate(1.12);
  -webkit-backdrop-filter: blur(38px) saturate(1.12);
}
.hb-brand { padding: 3px 12px 26px; }
.hb-primary-nav { gap: 8px; }
.hb-nav-item {
  min-height: 52px;
  gap: 12px;
  padding: 0 15px;
  border-color: transparent;
  border-radius: 17px;
  color: #596b80;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hb-nav-item .mi { color: #6b7e94; }
.hb-nav-item:hover {
  border-color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.48);
  color: var(--hb-sam-ink);
  box-shadow: var(--hb-sam-shadow-soft);
  transform: translateY(-1px);
}
.hb-nav-item.active {
  border-color: rgba(255,255,255,.92);
  background: rgba(247,251,255,.76);
  color: #216fc8;
  box-shadow: 0 12px 30px rgba(54,87,126,.13), inset 0 1px 0 #fff;
}
.hb-nav-item.active .mi { color: #2c80d8; }
.hb-sidebar-bottom { gap: 8px; }
.hb-side-status,
.hb-account {
  border-color: rgba(80,105,133,.11);
  border-radius: 15px;
  background: rgba(255,255,255,.26);
}
.hb-side-status { padding: 12px 10px; }
.hb-account { padding: 12px 9px; }
.hb-account button {
  width: 34px;
  height: 34px;
  border-color: rgba(255,255,255,.82);
  border-radius: 50%;
  background: rgba(255,255,255,.54);
  color: #536b84;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
}

.hb-main-shell { background: rgba(245,249,255,.20); }
.hb-live-strip {
  min-height: 72px;
  gap: 10px;
  padding: 15px 24px 11px;
  border-bottom: 1px solid rgba(255,255,255,.60);
  background: rgba(248,251,255,.18);
}
.hb-live-chip {
  height: 38px;
  padding: 0 14px;
  border-color: rgba(255,255,255,.82);
  background: rgba(250,252,255,.56);
  color: #3e536a;
  box-shadow: 0 8px 24px rgba(55,86,122,.08), inset 0 1px 0 #fff;
}
.hb-live-backup .task-center-backup-card {
  height: 38px;
  min-height: 38px;
  background: rgba(250,252,255,.58);
  box-shadow: 0 8px 24px rgba(55,86,122,.08), inset 0 1px 0 #fff;
}
.hb-live-backup #createBackupButton {
  border-color: rgba(23,29,45,.84) !important;
  background: var(--hb-sam-primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(23,29,45,.18), inset 0 1px 0 rgba(255,255,255,.14) !important;
}
.hb-capacity-alert {
  min-height: 46px;
  border-radius: 18px;
  background: rgba(255,244,245,.70);
  box-shadow: 0 10px 28px rgba(126,55,62,.10), inset 0 1px 0 rgba(255,255,255,.9);
}

.hb-page-heading {
  min-height: 104px;
  padding: 22px 30px 20px;
  border-bottom: 1px solid rgba(255,255,255,.54);
  background: rgba(248,251,255,.12);
}
.hb-page-heading h1 {
  color: var(--hb-sam-ink) !important;
  font-size: clamp(28px,2.2vw,34px) !important;
  line-height: 1.15 !important;
}
.hb-page-heading p { margin-top: 7px !important; color: var(--hb-sam-copy) !important; }
.hb-page-scroll { padding: 18px 24px 34px; }
.hb-page-content { width: min(1460px,100%); }

/* Recast legacy surfaces as broad, soft sheets instead of many small boxes. */
.hb-page-content .panel,
.hb-page-content .card,
.hb-page-content .item,
.hb-page-content .drive,
.hb-page-content .table-wrap,
.hb-page-content .diag-card,
.hb-page-content .status-card,
.hb-page-content .task-card,
.hb-page-content .stat-card,
.hb-page-content .drive-panel,
.hb-page-content .users-card,
.hb-page-content .health-panel,
.hb-page-content .scan-audit,
.hb-page-content .nas-storage-panel,
.hb-page-content .activity-leaderboard,
.hb-page-content .ai-query-audit,
.hb-page-content .project-panel,
.hb-page-content .brief-card,
.hb-page-content .plan-card {
  border: 1px solid rgba(255,255,255,.80) !important;
  border-radius: 24px !important;
  background: var(--hb-sam-glass) !important;
  box-shadow: var(--hb-sam-shadow-soft) !important;
  backdrop-filter: blur(30px) saturate(1.16);
  -webkit-backdrop-filter: blur(30px) saturate(1.16);
}
.hb-page-content :is(input,select,textarea) {
  min-height: 42px;
  border-color: rgba(79,104,133,.14) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.66) !important;
  color: var(--hb-sam-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94);
}
.hb-page-content :is(input,select,textarea):focus {
  border-color: rgba(53,128,210,.54) !important;
  box-shadow: 0 0 0 4px rgba(45,126,216,.10), inset 0 1px 0 #fff !important;
}
.hb-page-content button,
.hb-page-content .btn {
  min-height: 38px;
  border-color: rgba(255,255,255,.82) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.56) !important;
  color: #334960 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
  transition: background-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}
.hb-page-content button:hover:not(:disabled),
.hb-page-content .btn:hover:not(:disabled) {
  background: rgba(255,255,255,.78) !important;
  color: var(--hb-sam-ink) !important;
  box-shadow: 0 9px 24px rgba(55,86,122,.10), inset 0 1px 0 #fff !important;
  transform: translateY(-1px);
}
.hb-page-content .primary,
.hb-page-content .save,
.hb-page-content .retry,
.hb-page-content .lookup-btn,
.hb-page-content .lookup-add,
.hb-page-content .btn.primary,
.hb-page-content #triggerNasScanButton {
  border-color: rgba(23,29,45,.84) !important;
  background: var(--hb-sam-primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(23,29,45,.20), inset 0 1px 0 rgba(255,255,255,.14) !important;
}
.hb-page-content .primary:hover:not(:disabled),
.hb-page-content .save:hover:not(:disabled),
.hb-page-content .retry:hover:not(:disabled),
.hb-page-content .lookup-btn:hover:not(:disabled),
.hb-page-content .lookup-add:hover:not(:disabled),
.hb-page-content .btn.primary:hover:not(:disabled),
.hb-page-content #triggerNasScanButton:hover:not(:disabled) {
  background: var(--hb-sam-primary-hover) !important;
  color: #fff !important;
}
.hb-page-content table {
  overflow: hidden;
  border-color: rgba(79,104,133,.10) !important;
  border-radius: 18px;
  background: rgba(255,255,255,.25) !important;
}
.hb-page-content th {
  border-color: rgba(79,104,133,.10) !important;
  background: rgba(255,255,255,.34) !important;
  color: #52677e !important;
}
.hb-page-content td { border-color: rgba(79,104,133,.09) !important; }
.hb-page-content tr:hover { background: rgba(255,255,255,.34) !important; }

body.hb-task-center-page .scan-process-grid,
body.hb-task-center-page .asset-overview-panel {
  border: 1px solid rgba(255,255,255,.82) !important;
  border-radius: 26px !important;
  background: rgba(243,248,255,.50) !important;
  box-shadow: var(--hb-sam-shadow-soft) !important;
}
body.hb-task-center-page .scan-process-card { min-height: 166px; padding: 18px 20px !important; }

/* Login follows the centered welcome-card state from the reference. */
body.hb-login-page .login-layout { min-height: 100vh; padding: 34px 20px; }
body.hb-login-page .login-card {
  width: min(520px,100%);
  padding: 48px 52px 44px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 34px;
  background: rgba(244,248,255,.58);
  box-shadow: 0 34px 96px rgba(41,65,96,.23), inset 0 1px 0 rgba(255,255,255,.98);
  backdrop-filter: blur(38px) saturate(1.15);
  -webkit-backdrop-filter: blur(38px) saturate(1.15);
}
body.hb-login-page .login-card::before { display: none; }
body.hb-login-page .login-brand { justify-content: center; margin-bottom: 30px; }
body.hb-login-page .login-brand-logo { width: 210px; }
body.hb-login-page .login-kicker { display: block; color: #68788d; text-align: center; }
body.hb-login-page h1 { color: var(--hb-sam-ink); font-size: 30px; text-align: center; }
body.hb-login-page .login-card > p { max-width: 360px; margin-inline: auto; color: var(--hb-sam-copy); text-align: center; }
body.hb-login-page .field input {
  height: 52px;
  border-radius: 15px;
  background: rgba(255,255,255,.68);
}
body.hb-login-page .primary {
  height: 52px;
  border-color: rgba(23,29,45,.86);
  border-radius: 15px;
  background: var(--hb-sam-primary);
  box-shadow: 0 14px 32px rgba(23,29,45,.22), inset 0 1px 0 rgba(255,255,255,.14);
}
body.hb-login-page .primary:hover:not(:disabled) { background: var(--hb-sam-primary-hover); }

@media (max-width: 1180px) and (min-width: 821px) {
  .hb-page-shell { grid-template-columns: 76px minmax(0,1fr); }
  .hb-sidebar { width: 75px; }
  .hb-sidebar:hover,
  .hb-sidebar:focus-within {
    width: 218px;
    background: rgba(241,248,255,.90);
    box-shadow: 20px 0 52px rgba(48,82,122,.20);
  }
}

@media (max-width: 820px) {
  body.hb-unified-shell:not(.hb-login-page) { padding: 0 !important; }
  .hb-page-shell {
    height: auto;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hb-sidebar {
    margin: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 22px;
    background: rgba(244,249,255,.76);
    box-shadow: var(--hb-sam-shadow-soft);
  }
  .hb-live-strip { padding: 10px 12px; border-bottom: 0; }
  .hb-page-heading { min-height: 88px; padding: 18px 16px; }
  .hb-page-heading h1 { font-size: 26px !important; }
  .hb-page-scroll { padding: 10px 12px 26px; }
  body.hb-login-page .login-card { padding: 36px 26px 32px; border-radius: 28px; }
}

/* Keep the desktop sidebar footer inside the glass shell at short viewport heights. */
@media (min-width: 821px) {
  .hb-page-shell > .hb-main-shell {
    height: 100%;
    min-height: 0;
  }

  .hb-page-shell > .hb-sidebar {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .hb-sidebar > .hb-brand,
  .hb-sidebar > .hb-sidebar-bottom {
    flex: 0 0 auto;
  }

  .hb-sidebar > .hb-primary-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
    scrollbar-color: rgba(75, 105, 138, .28) transparent;
    scrollbar-width: thin;
  }

  .hb-sidebar > .hb-primary-nav::-webkit-scrollbar { width: 4px; }
  .hb-sidebar > .hb-primary-nav::-webkit-scrollbar-track { background: transparent; }
  .hb-sidebar > .hb-primary-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(75, 105, 138, .24);
  }

  .hb-sidebar .hb-side-status strong {
    overflow: visible;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (min-width: 821px) and (max-height: 980px) {
  .hb-sidebar { padding-top: 16px; padding-bottom: 12px; }
  .hb-sidebar > .hb-brand { padding-bottom: 14px; }
  .hb-sidebar > .hb-primary-nav { gap: 4px; }
  .hb-sidebar .hb-nav-item { min-height: 43px; }
  .hb-sidebar > .hb-sidebar-bottom { gap: 5px; }
  .hb-sidebar .hb-side-status { padding: 8px 10px; }
  .hb-sidebar .hb-account { padding: 8px 9px; }
}

/* Optional desktop sidebar collapse: the toggle stays quiet until the rail is hovered. */
.hb-sidebar-toggle { display: none; }

@media (min-width: 1181px) {
  .hb-page-shell {
    transition: grid-template-columns .22s cubic-bezier(.2,.8,.2,1);
  }

  .hb-page-shell > .hb-sidebar {
    position: relative;
    transition: background-color .2s ease, box-shadow .2s ease;
  }

  .hb-sidebar-toggle {
    display: flex;
    width: 100%;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 5px 0 7px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #60758c;
    box-shadow: none;
    cursor: pointer;
    font: 500 12px/1 var(--hb-font);
    opacity: .48;
    transition: opacity .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease;
  }

  .hb-sidebar-toggle .mi { width: 15px; height: 15px; }
  .hb-sidebar:hover .hb-sidebar-toggle,
  .hb-sidebar-toggle:focus-visible { opacity: .9; }
  .hb-sidebar-toggle:hover {
    border-color: rgba(255,255,255,.80);
    background: rgba(255,255,255,.44);
    color: #2478d4;
  }

  body.hb-sidebar-collapsed .hb-page-shell {
    grid-template-columns: 76px minmax(0,1fr);
  }
  body.hb-sidebar-collapsed .hb-sidebar-toggle {
    gap: 0;
    padding-inline: 0;
    opacity: .62;
  }
  body.hb-sidebar-collapsed .hb-sidebar-toggle span { display: none; }
  body.hb-sidebar-collapsed .hb-sidebar > .hb-brand {
    justify-content: center;
    padding-inline: 0;
  }
  body.hb-sidebar-collapsed .hb-brand-logo-frame {
    width: 40px;
    max-width: 40px;
  }
  body.hb-sidebar-collapsed .hb-brand-logo { display: none; }
  body.hb-sidebar-collapsed .hb-brand-mark { display: block; }
  body.hb-sidebar-collapsed .hb-nav-item span:last-child,
  body.hb-sidebar-collapsed .hb-side-status span:last-child,
  body.hb-sidebar-collapsed .hb-account > span {
    display: none;
  }
  body.hb-sidebar-collapsed .hb-nav-item,
  body.hb-sidebar-collapsed .hb-side-status {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
  }
  body.hb-sidebar-collapsed .hb-account {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding-inline: 4px;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .hb-sidebar .hb-brand-logo-frame { display: block; width: 40px; max-width: 40px; }
  .hb-sidebar .hb-brand-logo { display: none; }
  .hb-sidebar .hb-brand-mark { display: block; }
  .hb-sidebar:hover .hb-brand-logo-frame,
  .hb-sidebar:focus-within .hb-brand-logo-frame { width: 150px; max-width: 150px; }
  .hb-sidebar:hover .hb-brand-logo,
  .hb-sidebar:focus-within .hb-brand-logo { display: block; width: 100%; max-width: 100%; }
  .hb-sidebar:hover .hb-brand-mark,
  .hb-sidebar:focus-within .hb-brand-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-page-shell,
  .hb-page-shell > .hb-sidebar,
  .hb-sidebar-toggle { transition: none !important; }
}

/* Final shared legibility and narrow-screen status treatment. */
.hb-readable-small { font-size: 12px !important; line-height: 1.4 !important; }
.hb-live-backup { flex-basis: 220px; width: 220px; min-width: 220px; }
.hb-live-backup .task-center-backup-card .card-title { font-size: 12px; }
.hb-live-backup .task-center-backup-card .backup-meta,
.hb-live-backup #createBackupButton { font-size: 11px; }
body.hb-login-page .primary {
  border-color: rgba(23,29,45,.86) !important;
  background: var(--hb-sam-primary) !important;
  color: #fff !important;
}
body.hb-login-page .primary:hover:not(:disabled) { background: var(--hb-sam-primary-hover) !important; }
.hb-page-content #correctionsView th:nth-child(3) { min-width: 82px; white-space: nowrap; }

.mobile-task-details-toggle { display: none; }
.mobile-task-details-panel { display: contents; }

/* Shared secondary pages: one title, then one compact operational row. */
body.hb-focused-page .hb-page-heading {
  grid-row: 1;
  min-height: 86px;
  padding: 20px 24px 16px;
  border: 0;
  background: transparent;
}
body.hb-focused-page .hb-page-heading h1 { font-size: 28px !important; font-weight: 650 !important; }
body.hb-focused-page .hb-page-heading p { font-size: 14px !important; margin-top: 5px !important; }
body.hb-focused-page .hb-live-strip {
  grid-row: 2;
  min-height: 56px;
  margin: 0 22px;
  padding: 8px 12px;
  gap: 8px;
  flex-wrap: nowrap;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  background: rgba(249,252,255,.48);
}
body.hb-focused-page :is(#hbGpuChip,#hbTranscribeChip,#hbVisualChip):not([data-state="danger"]):not([data-state="warn"]) { display: none; }
body.hb-focused-page :is(#hbGpuChip,#hbTranscribeChip,#hbVisualChip) { flex: 0 0 auto; }
body.hb-focused-page .hb-live-strip { overflow-x: auto; }
body.hb-focused-page #hbNasChip { order: 0; flex-shrink: 0; }
body.hb-focused-page .hb-live-backup { order: 2; margin-left: auto; flex: 0 0 220px; }
body.hb-focused-page #hbCapacityChip { order: 3; }
body.hb-focused-page .hb-live-strip:has(.hb-capacity-alert:not([hidden])) #hbCapacityChip { display: none; }
body.hb-focused-page .hb-capacity-alert {
  order: 4;
  margin: 0;
  flex: 0 1 245px;
  min-width: 170px;
  min-height: 40px;
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: none;
}
body.hb-focused-page .hb-page-scroll { grid-row: 2; padding: 20px 24px 28px; }
body.hb-focused-page .hb-page-content { margin-inline: 0; }
.hb-page-content :is(button,a,input,select,textarea,summary):focus-visible {
  outline: 2px solid #216fc8;
  outline-offset: 3px;
}

@media (min-width: 821px) {
  .hb-page-shell { min-height: 0; }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .hb-sidebar .hb-account > span { display: none; }
  .hb-sidebar .hb-account { justify-content: center; flex-wrap: wrap; padding-inline: 4px; }
  .hb-sidebar:is(:hover,:focus-within) .hb-account { flex-wrap: nowrap; padding-inline: 9px; }
  .hb-sidebar:is(:hover,:focus-within) .hb-account > span { display: grid; }
}
@media (max-width: 820px) {
  body.hb-focused-page .hb-page-heading { padding: 16px 16px 12px; min-height: 80px; }
  body.hb-focused-page .hb-page-heading h1 { font-size: 25px !important; }
  body.hb-focused-page .hb-live-strip { margin: 0 12px; flex-wrap: wrap !important; overflow: visible; }
  body.hb-focused-page #hbNasChip { padding-inline: 8px; font-size: 12px; }
  body.hb-focused-page .hb-live-backup { flex: 1 1 180px; width: auto; min-width: 180px; }
  body.hb-focused-page .hb-page-scroll { padding: 14px 12px 24px; }
  body.hb-focused-page .hb-capacity-alert { flex: 1 1 100%; min-width: 0; }
  .hb-capacity-alert:not([hidden]) { display: flex !important; flex-direction: column; align-items: flex-start; max-width: none; }
}

@media (max-width: 820px) {
  .hb-live-strip {
    min-height: 58px;
    flex-wrap: nowrap !important;
    align-content: center;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(72,103,139,.34) transparent;
  }
  .hb-live-chip,
  .hb-live-backup,
  .hb-capacity-alert { flex: 0 0 auto; scroll-snap-align: start; }
  .hb-live-backup { width: 208px; min-width: 208px; }
  .hb-live-strip::-webkit-scrollbar { display: block; height: 4px; }
  .hb-live-strip::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(72,103,139,.34); }
  .hb-page-heading { min-height: 82px; }

  body.hb-task-center-page .mobile-task-details-toggle {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 16px;
    background: rgba(249,252,255,.64);
    color: #30465e;
    box-shadow: var(--hb-sam-shadow-soft);
    font: 600 13px/1.2 var(--hb-font);
  }
  body.hb-task-center-page .mobile-task-details-panel { display: none; }
  body.hb-task-center-page .mobile-task-details-panel.is-expanded { display: block; }
}

/* Telemetry stays in its dedicated pages, not in a repeated top status bar. */
body.hb-unified-shell .hb-live-strip { display: none !important; }

/* SHARED_SIDEBAR_START */
/* One navigation contract for the home/search shell and the secondary pages. */
:is(body.flow-home .sidebar, .hb-sidebar) { color: #172536; }
:is(body.flow-home .sidebar .brand, .hb-sidebar .hb-brand) { padding: 3px 12px 26px; }
:is(body.flow-home .sidebar .brand-logo-frame, .hb-sidebar .hb-brand-logo-frame) { display: block; width: 150px; max-width: 100%; overflow: hidden; }
:is(body.flow-home .sidebar .brand-logo, .hb-sidebar .hb-brand-logo) { display: block; width: 100%; max-width: 100%; height: auto; }
:is(body.flow-home .primary-nav, .hb-primary-nav) { gap: 8px; }
:is(body.flow-home .nav-item, .hb-nav-item) { min-height: 52px; padding: 0 15px; gap: 12px; border-radius: 17px; color: #596b80; font-size: 15px; font-weight: 400; }
:is(body.flow-home .nav-item, .hb-nav-item) .mi { width: 24px; height: 19px; font-size: 19px; color: #6b7e94; }
:is(body.flow-home .nav-item, .hb-nav-item):hover { border-color: rgba(255,255,255,.82); background: rgba(255,255,255,.48); color: #172536; }
:is(body.flow-home .nav-item, .hb-nav-item).active { border-color: rgba(255,255,255,.92); background: rgba(247,251,255,.76); color: #216fc8; font-weight: 500; box-shadow: 0 12px 30px rgba(54,87,126,.13), inset 0 1px 0 #fff; }
:is(body.flow-home .nav-item, .hb-nav-item).active .mi { color: #2c80d8; }
:is(body.flow-home .sidebar-bottom, .hb-sidebar-bottom) { gap: 8px; }
:is(body.flow-home .side-status, .hb-side-status, .search-sidebar-account, .hb-account) { border-color: rgba(80,105,133,.11); border-radius: 15px; background: rgba(255,255,255,.26); }
:is(body.flow-home .side-status, .hb-side-status) { padding: 12px 10px; }
:is(body.flow-home .side-status, .hb-side-status) strong { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
:is(.search-sidebar-account, .hb-account) { display: flex; align-items: center; gap: 8px; padding: 12px 9px; border-top: 1px solid rgba(80,105,133,.11); }
:is(.search-sidebar-account, .hb-account) > span { display: grid; min-width: 0; flex: 1; gap: 3px; }
:is(.search-sidebar-account, .hb-account) small { color: #607085; font-size: 12px; }
:is(.search-sidebar-account, .hb-account) strong { color: #172536; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.search-sidebar-account, .hb-account) button { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; background: rgba(255,255,255,.54); color: #536b84; cursor: pointer; }
:is(body.flow-home .search-sidebar-toggle, .hb-sidebar-toggle) { padding: 0 10px; border-color: transparent; background: transparent; font: 500 12px/1 "Segoe UI","Microsoft YaHei UI",sans-serif; opacity: .48; }
:is(body.flow-home .sidebar, .hb-sidebar):hover :is(.search-sidebar-toggle,.hb-sidebar-toggle),
:is(.search-sidebar-toggle,.hb-sidebar-toggle):focus-visible { opacity: .9; }

@media (min-width: 821px) {
  body.flow-home .app-shell { grid-template-columns: clamp(182px,14.5vw,208px) minmax(0,1fr); }
  body.flow-home .sidebar { padding: 24px 12px 16px; backdrop-filter: blur(38px) saturate(1.12); }
  body.flow-home .primary-nav { padding-right: 2px; scrollbar-color: rgba(75,105,138,.28) transparent; }
}
@media (min-width: 821px) and (max-height: 980px) {
  :is(body.flow-home .sidebar, .hb-sidebar) { padding-top: 16px; padding-bottom: 12px; }
  :is(body.flow-home .sidebar .brand, .hb-sidebar .hb-brand) { padding-bottom: 14px; }
  :is(body.flow-home .primary-nav, .hb-primary-nav) { gap: 4px; }
  :is(body.flow-home .nav-item, .hb-nav-item) { min-height: 43px; }
  :is(body.flow-home .sidebar-bottom, .hb-sidebar-bottom) { gap: 5px; }
  :is(body.flow-home .side-status, .hb-side-status) { padding: 8px 10px; }
  :is(.search-sidebar-account, .hb-account) { padding: 8px 9px; }
}
@media (min-width: 1181px) {
  body.hb-search-sidebar-collapsed.flow-home .app-shell { grid-template-columns: 76px minmax(0,1fr); }
  body.hb-sidebar-collapsed .hb-sidebar .hb-brand { justify-content: center; padding-inline: 0; }
  body.hb-sidebar-collapsed .hb-sidebar .hb-brand-logo-frame { width: 40px; max-width: 40px; }
  body.hb-sidebar-collapsed .hb-sidebar .hb-brand-logo { display: none; }
  body.hb-sidebar-collapsed .hb-sidebar .hb-brand-mark { display: block; }
  body.hb-search-sidebar-collapsed.flow-home .sidebar .brand { justify-content: center; padding-inline: 0; }
  body.hb-search-sidebar-collapsed.flow-home .sidebar .brand-logo-frame { width: 40px; max-width: 40px; }
  body.hb-search-sidebar-collapsed.flow-home .sidebar .brand-logo { display: none; }
  body.hb-search-sidebar-collapsed.flow-home .search-sidebar-account > span { display: none; }
  body.hb-search-sidebar-collapsed.flow-home .search-sidebar-account { flex-direction: column; gap: 5px; padding-inline: 4px; }
}
@media (min-width: 821px) and (max-width: 1180px) {
  body.flow-home .app-shell { grid-template-columns: 76px minmax(0,1fr); }
  body.flow-home .sidebar { width: 75px; z-index: 120; transition: width .2s ease; }
  body.flow-home .sidebar .brand-logo-frame { width: 40px; max-width: 40px; }
  body.flow-home .sidebar .brand-logo { display: none; }
  body.flow-home .sidebar .brand-mark { display: block; }
  body.flow-home .sidebar :is(.nav-item,.side-status) { justify-content: center; padding-inline: 0; }
  body.flow-home .sidebar :is(.nav-item,.side-status) > span:last-child,
  body.flow-home .search-sidebar-account > span { display: none; }
  body.flow-home .search-sidebar-account { flex-wrap: wrap; justify-content: center; padding-inline: 4px; }
  body.flow-home .search-sidebar-toggle { display: none; }
  body.flow-home .sidebar:is(:hover,:focus-within) { width: 218px; background: rgba(241,248,255,.9); box-shadow: 20px 0 52px rgba(48,82,122,.2); }
  body.flow-home .sidebar:is(:hover,:focus-within) .brand-logo-frame { width: 150px; max-width: 150px; }
  body.flow-home .sidebar:is(:hover,:focus-within) .brand-logo { display: block; }
  body.flow-home .sidebar:is(:hover,:focus-within) .brand-mark { display: none; }
  body.flow-home .sidebar:is(:hover,:focus-within) :is(.nav-item,.side-status) { justify-content: flex-start; padding-inline: 14px; }
  body.flow-home .sidebar:is(:hover,:focus-within) :is(.nav-item,.side-status) > span:last-child,
  body.flow-home .sidebar:is(:hover,:focus-within) .search-sidebar-account > span { display: grid; }
}
@media (max-width: 820px) {
  body.hb-search-experience.flow-home { padding: 0; }
  body.flow-home .app-shell { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); height: 100dvh; border: 0; border-radius: 0; }
  body.flow-home .sidebar { display: flex; position: relative; flex-direction: row; align-items: center; width: auto; margin: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.78); border-radius: 22px; background: rgba(244,249,255,.76); }
  body.flow-home .sidebar .brand { flex: 0 0 auto; padding: 0 12px 0 4px; }
  :is(body.flow-home .sidebar .brand-logo-frame,body.flow-home .sidebar .brand-logo,.hb-sidebar .hb-brand-logo-frame,.hb-sidebar .hb-brand-logo) { width: 112px; max-width: 112px; }
  :is(body.flow-home .sidebar .primary-nav,.hb-primary-nav) { flex: 1 1 auto; flex-direction: row; gap: 3px; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 0; }
  :is(body.flow-home .nav-item,.hb-nav-item) { min-width: 43px; min-height: 42px; padding: 0 10px; }
  body.flow-home .nav-item > span:last-child, body.flow-home .sidebar-bottom, body.flow-home .search-sidebar-toggle { display: none; }
}
/* SHARED_SIDEBAR_END */
