/* =====================================================================
 * app-nav.css — branded workspace navigation (see shared/app-nav.js)
 * Navy + gold top bar on every surveyor page, bottom tab bar with a
 * raised gold "+ New" on phones, action sheets. Needs design-tokens.css.
 * Chrome 109 safe: no :has(), nesting, color-mix() or container queries.
 * ===================================================================== */

:root, [data-theme="dark"] {
  --an-h: 60px;
  --an-tab-h: 64px;
  --an-bar: linear-gradient(180deg, rgba(13, 29, 54, 0.97), rgba(8, 19, 36, 0.97));
  --an-bar-solid: #0b1a30;
  --an-ink: #eef3fb;
  --an-ink-2: rgba(222, 232, 246, 0.72);
  --an-ink-3: rgba(222, 232, 246, 0.5);
  --an-glass: rgba(255, 255, 255, 0.06);
  --an-glass-2: rgba(255, 255, 255, 0.11);
  --an-glass-bd: rgba(255, 255, 255, 0.12);
  --an-gold: #e4b04a;
  --an-gold-hi: #f3cd7c;
  --an-gold-ink: #1a1103;
  --an-gold-grad: linear-gradient(135deg, #f3cd7c 0%, #e4b04a 48%, #c98f2c 100%);
  --an-tabbar: rgba(9, 20, 37, 0.96);
  --an-tab-ink: #8d9bb2;
  --an-tab-on: #f0c268;
  --an-sheet: #0f1d33;
  --an-item: rgba(158, 178, 210, 0.05);
  --an-item-hover: rgba(228, 176, 74, 0.09);
}
[data-theme="light"] {
  --an-tabbar: rgba(255, 255, 255, 0.97);
  --an-tab-ink: #6b7588;
  --an-tab-on: #0b2545;
  --an-sheet: #ffffff;
  --an-item: #fbfaf7;
  --an-item-hover: #fff8e8;
}

.an-root { display: contents; }
body.an-on { --hub-topbar: var(--an-bar-solid); }

/* mini mode (editor pages that keep their own toolbar) */
.an-mini { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #eef3fb; }
.an-mini .an-brand { gap: 8px; }
.an-mini .an-logo { width: 30px; height: 30px; }
.an-mini .an-wm-name { font-size: 15px; }
.an-mini .an-wm-by { font-size: 8.5px; margin-top: 3px; }
.an-mini .an-ib { width: 34px; height: 34px; border-radius: 9px; }
@media (max-width: 899px) { .an-mini .an-wm { display: none; } }
@media (max-width: 600px) { .an-mini .an-menu { display: none; } .an-mini + script + .tb-sep { display: none; } }
@media print { .an-mini { display: none !important; } }

/* ---------------------------------------------------------------- top bar */
.an-top {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: var(--an-bar); color: var(--an-ink);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -18px rgba(3, 8, 16, 0.8);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}
.an-top *, .an-top *::before, .an-top *::after { box-sizing: border-box; }
.an-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(228, 176, 74, 0) 0%, #b8862b 18%, #f3cd7c 45%, #e4b04a 62%, rgba(228, 176, 74, 0) 100%); opacity: .85;
}
.an-top-in { display: flex; align-items: center; gap: 10px; height: var(--an-h); padding: 0 20px; max-width: 1480px; margin: 0 auto; min-width: 0; }
.an-top.compact { --an-h: 54px; }
.an-top.compact .an-top-in { max-width: none; padding: 0 14px; }

.an-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 0 auto; color: var(--an-ink); text-decoration: none; border-radius: 12px; }
.an-logo { width: 34px; height: 34px; flex: 0 0 auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }
.an-logo-ring { transform-box: fill-box; transform-origin: 50% 50%; animation: anSpin 12s linear infinite; }
@keyframes anSpin { to { transform: rotate(360deg); } }
.an-wm { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.an-wm-name { font: 700 17px/1 var(--font-display, 'Sora', sans-serif); letter-spacing: -0.3px; white-space: nowrap; color: #fff; }
.an-wm-name b { color: var(--an-gold); font-weight: 700; }
.an-wm-by { margin-top: 4px; font: 600 9.5px/1 var(--font-sans, sans-serif); letter-spacing: 1.1px; text-transform: uppercase; color: var(--an-ink-3); white-space: nowrap; }
.an-divider { width: 1px; height: 26px; background: linear-gradient(180deg, transparent, rgba(228, 176, 74, 0.5), transparent); flex: 0 0 auto; margin: 0 4px; }
.an-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; font-size: 13.5px; }
.an-crumb-p { color: var(--an-ink-2); text-decoration: none; font-weight: 600; white-space: nowrap; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; }
.an-crumb-p:hover { color: var(--an-gold-hi); }
.an-crumb-sep { display: inline-flex; color: var(--an-ink-3); }
.an-crumb-sep svg { width: 12px; height: 12px; }
.an-title { font: 700 14.5px/1.2 var(--font-display, 'Sora', sans-serif); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; letter-spacing: -0.1px; }
.an-spacer { flex: 1 1 auto; min-width: 4px; }

.an-links { display: none; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); flex: 0 0 auto; }
.an-link { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 9px; color: var(--an-ink-2); text-decoration: none; font: 600 12.5px/1 var(--font-sans, sans-serif); white-space: nowrap; transition: background .15s, color .15s; }
.an-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.an-link:hover { color: #fff; background: var(--an-glass); }
.an-link.on { color: var(--an-gold-ink); background: var(--an-gold-grad); box-shadow: 0 6px 16px -8px rgba(228, 176, 74, 0.9); }
@media (min-width: 1100px) { .an-links { display: flex; } }
@media (min-width: 1100px) and (max-width: 1299px) { .an-link span { display: none; } .an-link { width: 36px; padding: 0; justify-content: center; } .an-link.on { width: auto; padding: 0 11px; } .an-link.on span { display: inline; } }

.an-actions { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; }
.an-actions.empty { display: none; }
.an-slot { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; }
.an-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.an-bell.empty { display: none; }

/* Local-mode indicator (free / lifetime, device-only) — hidden for premium/admin */
.an-localbadge { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin: 0 4px; padding: 5px 10px; border-radius: 999px;
  font: 700 11.5px/1 var(--font-sans, sans-serif); white-space: nowrap;
  color: var(--an-gold-hi); background: rgba(228, 176, 74, 0.12); border: 1px solid rgba(228, 176, 74, 0.34); }
.an-localbadge svg { width: 14px; height: 14px; flex: 0 0 auto; }
.an-localbadge-t b { font-weight: 600; color: var(--an-ink-2); }
[data-theme="light"] .an-localbadge { color: #8a5a12; background: #fff6e4; border-color: rgba(228, 176, 74, 0.5); }
[data-theme="light"] .an-localbadge-t b { color: #6b7588; }
.an-mini .an-localbadge { margin-left: 8px; }
@media (max-width: 720px) { .an-localbadge-t b { display: none; } }
@media (max-width: 460px) { .an-localbadge-t { display: none; } .an-localbadge { padding: 6px; } }
@media print { .an-localbadge { display: none !important; } }
.an-bell { display: inline-flex; }
.an-bell > span:empty { display: none; }

/* icon buttons + page action buttons inside the navy bar */
.an-ib, .an-top .an-actions .hub-icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0;
  border-radius: 11px; border: 1px solid var(--an-glass-bd); background: var(--an-glass); color: var(--an-ink-2); cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.an-ib:hover, .an-top .an-actions .hub-icon-btn:hover { background: var(--an-glass-2); color: #fff; border-color: rgba(228, 176, 74, 0.45); }
.an-ib svg { width: 18px; height: 18px; }
.an-theme:hover svg { transform: rotate(18deg); transition: transform .25s; }
.an-new {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px 0 12px; border-radius: 11px; border: 0; cursor: pointer;
  background: var(--an-gold-grad); color: var(--an-gold-ink); font: 700 13px/1 var(--font-sans, sans-serif); white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(228, 176, 74, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4); transition: filter .15s, transform .15s;
}
.an-new:hover { filter: brightness(1.06); transform: translateY(-1px); }
.an-new svg { width: 16px; height: 16px; }
.an-new[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(228, 176, 74, 0.35); }

.an-top .an-actions a, .an-top .an-actions button, .an-top .an-actions label.an-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; height: 36px; padding: 0 12px; margin: 0;
  border-radius: 10px; border: 1px solid var(--an-glass-bd); background: var(--an-glass); color: var(--an-ink);
  font: 600 12.5px/1 var(--font-sans, sans-serif); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none; transform: none;
  transition: background .15s, border-color .15s, color .15s;
}
.an-top .an-actions a:hover, .an-top .an-actions button:hover { background: var(--an-glass-2); border-color: rgba(228, 176, 74, 0.45); color: #fff; transform: none; box-shadow: none; }
.an-top .an-actions svg { width: 16px; height: 16px; flex: 0 0 auto; }
.an-top .an-actions .primary, .an-top .an-actions .hub-btn-primary, .an-top .an-actions .tb-btn.primary {
  background: var(--an-gold-grad); border-color: transparent; color: var(--an-gold-ink); font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(228, 176, 74, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.an-top .an-actions .primary:hover, .an-top .an-actions .hub-btn-primary:hover { filter: brightness(1.06); background: var(--an-gold-grad); color: var(--an-gold-ink); }
.an-top .an-actions span, .an-top .an-actions small { color: inherit; }
.an-top .an-actions > .an-slot > span:not([class]) { color: var(--an-ink-2) !important; font-size: 12px !important; }
/* the notification bell (shared/push.js) on the navy bar */
.an-top .dpb-btn { width: 38px !important; height: 38px !important; border-radius: 11px !important; background: var(--an-glass) !important; border: 1px solid var(--an-glass-bd) !important; color: var(--an-ink-2) !important; box-shadow: none !important; }
.an-top .dpb-btn:hover { background: var(--an-glass-2) !important; color: #fff !important; }
.an-top .dpb-wrap:not(.float) .dpb-panel { top: 48px; }

.an-menu { display: inline-flex; }
.an-top:focus-within { z-index: 51; }
.an-top a:focus-visible, .an-top button:focus-visible, .an-tabs a:focus-visible, .an-tabs button:focus-visible, .an-ov a:focus-visible, .an-ov button:focus-visible {
  outline: 2px solid var(--an-gold); outline-offset: 2px;
}

@media (max-width: 899px) {
  .an-wm-by { display: none; }
  .an-top-in { padding: 0 14px; gap: 8px; }
}
/* phones: compact bar — mark · page title · page actions · bell · theme */
@media (max-width: 719px) {
  :root { --an-h: 56px; }
  .an-top.compact { --an-h: 52px; }
  .an-top-in { padding: 0 12px; gap: 8px; }
  .an-logo { width: 32px; height: 32px; }
  .an-brand { gap: 0; }
  .an-wm { display: none; }
  .an-divider { display: none; }
  .an-crumbs { flex-direction: column; align-items: flex-start; gap: 3px; margin-left: 2px; flex: 1 1 auto; }
  .an-crumbs::before { content: "DigiSurvey"; font: 700 9.5px/1 var(--font-sans, sans-serif); letter-spacing: 1.2px; text-transform: uppercase; color: var(--an-gold); }
  .an-crumb-p, .an-crumb-sep { display: none; }
  .an-title { font-size: 15px; max-width: 100%; }
  /* let the page title truncate so the right-side buttons (actions, bell,
     theme, verify badge) never get pushed over / under each other */
  .an-crumbs { min-width: 0; }
  .an-top-in > .an-actions, .an-top-in > .an-bell, .an-top-in > .an-theme, .an-top-in > .an-ib { flex: 0 0 auto; }
  .an-spacer { display: none; }
  .an-new, .an-web { display: none; }
  .an-ib, .an-top .an-actions .hub-icon-btn, .an-top .dpb-btn { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
  .an-top .an-actions a, .an-top .an-actions button { height: 34px; min-height: 34px; padding: 0 10px; font-size: 12px; }
  .an-top .an-actions .an-hide-sm { display: none !important; }
  body.an-tabs-on .an-menu { display: none; }
}
@media (max-width: 380px) {
  .an-top .an-actions .an-lbl-sm { display: none; }
}

/* ------------------------------------------------------------ bottom tabs */
.an-tabs { display: none; }
@media (max-width: 719px) {
  .an-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
    height: calc(var(--an-tab-h) + env(safe-area-inset-bottom, 0px)); padding: 0 6px env(safe-area-inset-bottom, 0px);
    background: var(--an-tabbar); border-top: 1px solid var(--border, rgba(158, 178, 210, 0.12));
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 -10px 30px -18px rgba(3, 8, 16, 0.55); font-family: var(--font-sans, sans-serif);
    transition: transform .25s var(--ease, ease), opacity .2s;
  }
  .an-tabs::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(228, 176, 74, 0.5), transparent); }
  body.an-tabs-off .an-tabs { transform: translateY(110%); opacity: 0; pointer-events: none; visibility: hidden; }
  body.an-tabs-on { padding-bottom: calc(var(--an-tab-h) + env(safe-area-inset-bottom, 0px)); }
  .an-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: var(--an-tab-h); min-width: 0;
    padding: 0 2px; border: 0; background: none; color: var(--an-tab-ink); text-decoration: none; cursor: pointer; font: 600 10.5px/1 var(--font-sans, sans-serif);
    -webkit-tap-highlight-color: transparent;
  }
  .an-tab-ic { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px; transition: background .2s, color .2s; }
  .an-tab-ic svg { width: 22px; height: 22px; }
  .an-tab-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; letter-spacing: .1px; }
  .an-tab.on { color: var(--an-tab-on); }
  .an-tab.on .an-tab-ic { background: rgba(228, 176, 74, 0.16); }
  .an-tab.on .an-tab-l { font-weight: 700; }
  .an-tab[aria-expanded="true"] { color: var(--an-tab-on); }
  .an-tab-new { justify-content: flex-end; padding-bottom: 9px; }
  .an-plus {
    position: absolute; left: 50%; top: -18px; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--an-gold-grad); color: var(--an-gold-ink); border: 4px solid var(--bg, #06101d);
    box-shadow: 0 12px 24px -8px rgba(228, 176, 74, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45); transition: transform .2s var(--ease, ease);
  }
  .an-plus svg { width: 26px; height: 26px; stroke-width: 2.4; transition: transform .25s var(--ease, ease); }
  .an-tab-new[aria-expanded="true"] .an-plus svg { transform: rotate(45deg); }
  .an-tab-new:active .an-plus { transform: scale(.94); }
  .an-tab-new .an-tab-l { color: var(--an-tab-on); font-weight: 700; }
  [data-theme="light"] .an-plus { border-color: #f7f5f0; }
  [data-theme="light"] .an-tab-new .an-tab-l { color: #8a5d0c; }

  /* page chrome that used to float over the same corner */
  body.an-tabs-on .hub-fab, body.an-tabs-on .hub-fab-pi { display: none !important; }
  body.an-tabs-on .hub-main { padding-bottom: 28px; }
  body.an-tabs-on .lk-toast, body.an-tabs-on .pim-toast, body.an-tabs-on .mp-toast, body.an-tabs-on .ws-toast, body.an-tabs-on .ent-toast, body.an-tabs-on .ss-toast, body.an-tabs-on .bu-toast {
    bottom: calc(var(--an-tab-h) + 14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.an-tabs-on .dpb-wrap.float { bottom: calc(var(--an-tab-h) + 14px + env(safe-area-inset-bottom, 0px)); }
  /* the site chat launcher/teaser/panel must sit ABOVE the bottom tab bar,
     never on top of the "More" tab */
  body.an-tabs-on .dsc-btn, body.an-tabs-on .dsc-teaser { bottom: calc(var(--an-tab-h) + 16px + env(safe-area-inset-bottom, 0px)) !important; }
  body.an-tabs-on .dsc-panel { bottom: calc(var(--an-tab-h) + 74px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ------------------------------------------------------------ sheets */
.an-ov {
  position: fixed; inset: 0; z-index: 9990; display: flex; align-items: flex-end; justify-content: center;
  background: var(--overlay, rgba(3, 8, 16, 0.7)); opacity: 0; transition: opacity .18s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-family: var(--font-sans, sans-serif);
}
.an-ov.in { opacity: 1; }
.an-ov *, .an-ov *::before, .an-ov *::after { box-sizing: border-box; }
.an-sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--an-sheet); color: var(--text-primary, #f1f4f9); border: 1px solid var(--border-strong, rgba(158, 178, 210, 0.22)); border-bottom: 0; border-radius: 24px 24px 0 0;
  box-shadow: 0 -24px 60px -12px rgba(3, 8, 16, 0.6); transform: translateY(24px); transition: transform .24s var(--ease, ease);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.an-ov.in .an-sheet { transform: none; }
.an-ov.drop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; display: block; }
.an-ov.drop .an-sheet { position: fixed; width: 380px; max-height: calc(100vh - 90px); border-radius: 18px; border-bottom: 1px solid var(--border-strong, rgba(158, 178, 210, 0.22)); box-shadow: 0 30px 70px -20px rgba(3, 8, 16, 0.6), 0 0 0 1px rgba(228, 176, 74, 0.12); transform: translateY(-6px); padding-bottom: 0; }
.an-ov.drop.in .an-sheet { transform: none; }
.an-sheet-h {
  position: relative; flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; padding: 20px 20px 16px; color: #fff; overflow: hidden;
  background: radial-gradient(320px 140px at 100% 0%, rgba(228, 176, 74, 0.24), transparent 70%), linear-gradient(135deg, #16305a 0%, #0d1f3a 60%, #0a172b 100%);
}
.an-sheet-h::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); }
.an-ov.drop .an-sheet-h::before { display: none; }
.an-sheet-h::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #b8862b, #f3cd7c 40%, rgba(228, 176, 74, 0)); }
.an-ov.drop .an-sheet-h { padding: 16px 18px 14px; }
.an-eyebrow { font: 700 10.5px/1 var(--font-sans, sans-serif); letter-spacing: 1.3px; text-transform: uppercase; color: var(--an-gold-hi); }
.an-sheet-h b { font: 700 18px/1.25 var(--font-display, 'Sora', sans-serif); letter-spacing: -0.3px; padding-right: 40px; }
.an-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: #dbe4f3; }
.an-x:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.an-sheet-b { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.an-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border-radius: 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--border, rgba(158, 178, 210, 0.12)); background: var(--an-item); color: var(--text-primary, #f1f4f9); text-decoration: none; font: inherit;
  transition: background .15s, border-color .15s, transform .15s;
}
.an-item:hover { background: var(--an-item-hover); border-color: rgba(228, 176, 74, 0.5); }
.an-item:active { transform: scale(.99); }
.an-item-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--an-gold); background: linear-gradient(145deg, #1b3f72, #0b2545); box-shadow: 0 8px 16px -10px rgba(11, 37, 69, 0.9), 0 0 0 1px rgba(228, 176, 74, 0.28) inset; }
.an-item-ic svg { width: 20px; height: 20px; }
.an-item.gold .an-item-ic { background: var(--an-gold-grad); color: var(--an-gold-ink); box-shadow: 0 8px 18px -10px rgba(228, 176, 74, 0.95); }
.an-item.live .an-item-ic { color: #ff7a7f; }
.an-item.danger .an-item-ic { background: var(--danger-bg, rgba(255, 90, 106, 0.14)); color: var(--danger, #ff5a6a); box-shadow: none; }
.an-item-t { flex: 1 1 auto; min-width: 0; }
.an-item-t b { display: block; font: 700 14px/1.25 var(--font-sans, sans-serif); }
.an-item-t small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--text-muted, #7f8ca3); }
.an-item-go { flex: 0 0 auto; color: var(--text-muted, #7f8ca3); display: inline-flex; }
.an-item-go svg { width: 16px; height: 16px; }
.an-item:hover .an-item-go { color: var(--an-gold); }
.an-item.danger .an-item-go { display: none; }
.an-item.danger b { color: var(--danger, #ff5a6a); }
.an-free { display: flex; align-items: center; gap: 7px; margin: 6px 4px 0; font-size: 12px; font-weight: 600; color: var(--text-muted, #7f8ca3); }
.an-free svg { color: var(--an-gold); flex: 0 0 auto; }
[data-theme="light"] .an-free svg, [data-theme="light"] .an-item:hover .an-item-go { color: #9a6a12; }
.an-sep-l { margin: 10px 4px 2px; font: 700 10.5px/1 var(--font-sans, sans-serif); letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-muted, #7f8ca3); }
.an-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.an-quick-i { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 12px; border: 1px solid var(--border, rgba(158, 178, 210, 0.12)); background: var(--an-item); color: var(--text-secondary, #9eabc0); text-decoration: none; font: 600 11px/1.1 var(--font-sans, sans-serif); text-align: center; }
.an-quick-i svg { width: 20px; height: 20px; color: var(--an-gold); }
[data-theme="light"] .an-quick-i svg { color: #9a6a12; }
.an-quick-i.on { border-color: rgba(228, 176, 74, 0.6); background: var(--an-item-hover); color: var(--text-primary); }
.an-quick-i span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .an-logo-ring { animation: none; }
  .an-tabs, .an-ov, .an-sheet, .an-plus, .an-plus svg, .an-new, .an-item { transition: none !important; }
}
@media print {
  .an-top, .an-tabs, .an-ov { display: none !important; }
  body.an-tabs-on { padding-bottom: 0 !important; }
}
