/* ============================================================================
   Pitlane portal — design system (suite shell v2).
   One persistent frame for every tool: sticky GlobalNav with department
   dropdowns, navy hero band, pill sub-tabs, footer. One Inter family +
   tabular-nums, sharp 3–4px controls / 6–9px panels, blue (#0077C0) the only
   primary, green reserved for success/ready. Tokens mirror the Claude Design
   bundle (bb-shell.jsx + hifi-tokens.jsx, 2026-06-06).
   ========================================================================== */

:root {
  /* Ink — body in ink2, headings/strong in ink (navy) */
  --ink:#0B1726; --ink2:#2C3540; --ink3:#5A6573; --ink4:#8E97A4;

  /* Surfaces */
  --paper:#FFFFFF; --paper-alt:#F5F7FA; --paper-deep:#E8EDF3;
  --rule:#D6DCE5; --rule-soft:#E8EDF3;

  /* Brand blue family — the only primary */
  --blue:#0077C0; --blue-light:#0091E6; --blue-hover:#0055A4; --blue-deep:#003D75;
  --blue-bg:#E1F0FA; --blue-rule:#A8D2EE;

  /* Status — meanings per the status-color semantics (green=ready/go,
     blue=informational, yellow→orange→red=exceptions, gray=neutral) */
  --green:#1F8A4C; --green-light:#2BA866; --green-bg:#E4F4EB; --green-rule:#9CD3B3;
  --red:#C42929; --red-light:#E04F4F; --red-bg:#FBE5E5; --red-rule:#E8A5A5;
  --amber:#8A5A00; --amber-bg:#FEF6D6; --amber-rule:#F0D67E;
  --orange:#E8630A; --yellow:#F5C518; --gold:#C08A1E;

  /* Brand extras */
  --navy:var(--ink); --logo-gray:#959595;

  /* derived UI */
  --line:var(--rule); --line-soft:var(--rule-soft); --surface:var(--paper);
  --accent:var(--blue);             /* single accent — blue */
  --mono:"Inter",system-ui,-apple-system,sans-serif;
  --radius:5px; --radius-sm:4px;
  /* ONE LOCKED SUITE WIDTH (Design Guide). Every piece of chrome and content
     reads --maxw, so the header is pixel-identical on every tool — it never
     jumps sideways when navigating. Sized for the most demanding tool (Tube
     Helper's side-by-side viewers); reading/form tools don't suffer from the
     room because they wrap their content in .reading-col instead of changing
     the frame. Width is the SAME everywhere; only what a tool does INSIDE the
     frame differs (fill it, or self-constrain). Do not override per tool. */
  --maxw:min(2100px, 95vw); --maxw-wide:min(2100px, 95vw);
  --gutter:28px;
  --shero-h:152px;                  /* LOCKED hero band height — see .shero-inner */

  /* ---- legacy aliases — keep tools that predate the system rendering ---- */
  --blue-dark:var(--blue-hover);
  --cool-50:var(--paper-alt); --cool-500:var(--ink3);
  --neutral-700:var(--ink2);
  --brand-blue:var(--blue);
  --brand-blue-dark:var(--blue-hover);
  --brand-blue-soft:var(--blue-bg);
  --text:var(--ink2);
  --text-muted:var(--ink3);
  --bg:var(--paper);
  --bg-muted:var(--paper-alt);
  --border:var(--rule);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Reserve the scrollbar gutter always, so centered content sits at the exact
   same x whether a page scrolls or not — without this, switching from a short
   page to a long one shifts the whole frame ~8px when the scrollbar appears. */
html { scrollbar-gutter: stable; }
body {
  font-family: "Inter", system-ui, Aptos, Calibri, sans-serif;
  background: var(--paper-alt);
  color: var(--ink2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.container-wide { max-width: var(--maxw-wide); }
/* Centered content columns INSIDE the standard container. The frame (and
   header) is one locked width portal-wide and never changes; what varies is
   the measure a tool's content takes inside it. All columns are CENTERED on
   purpose: the suite centers its content (Steve's call 2026-06-07, matching
   the Business Card page; deviates from the design bundle's left-aligned
   ReadingColumn default). Three measures:
     .reading-col — 1180px, single-column forms and queues (Quote Checker)
     .work-col    — 88% of the frame, dense work surfaces that need room
                    (Order Intake, Packing List results)
     .browse-col  — 75% of the frame, card/list browsing (Home)
   Use .reading-col-left only if a tool truly needs a column pinned under
   the hero title. */
.reading-col { max-width: 1180px; margin-left: auto; margin-right: auto; }
.work-col { max-width: 88%; margin-left: auto; margin-right: auto; }
.browse-col { max-width: 75%; margin-left: auto; margin-right: auto; }
.reading-col-left { margin-left: 0; margin-right: 0; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.content { flex: 1 1 auto; display: flex; flex-direction: column; width: 100%; }
.main { padding: 24px var(--gutter) 56px; flex: 1; }

/* ============ HEADER (GlobalNav) ============ */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.hdr-inner { height: 60px; display: flex; align-items: center; gap: 26px; }
.lockup { display: inline-flex; align-items: center; flex-shrink: 0; padding: 4px 6px; border-radius: 4px; margin-left: -6px; }
.lockup:hover { background: var(--paper-alt); }
.nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav-link {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--ink3);
  padding: 7px 11px; border-radius: var(--radius-sm); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--paper-alt); color: var(--ink); }
.nav-link.is-active { color: var(--ink); font-weight: 700; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px;
  height: 2.5px; background: var(--blue); border-radius: 2px;
}

/* Department dropdowns — each department name is a button opening a panel of
   that department's tools. Click (not hover); nav.js handles open/close. */
.nav-dd { position: relative; }
button.nav-link {
  background: none; border: 0; font: inherit; cursor: pointer;
  font-size: 14px; display: inline-flex; align-items: center; gap: 5px;
}
.nav-dd-caret { color: var(--ink4); transition: transform .15s; flex-shrink: 0; }
.nav-dd.is-open > .nav-link { background: var(--paper-alt); color: var(--ink); }
.nav-dd.is-open .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute; left: 0; top: calc(100% + 7px); z-index: 60;
  min-width: 320px; max-width: 400px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 7px;
  box-shadow: 0 12px 32px -12px rgba(11,23,38,0.28);
  padding: 6px;
}
.nav-dd-panel[hidden] { display: none; }
.nav-dd-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 10px; border-radius: 5px;
}
.nav-dd-item:hover { background: var(--paper-alt); }
.nav-dd-icon { color: var(--blue); flex-shrink: 0; display: flex; margin-top: 1px; }
.nav-dd-name { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.nav-dd-desc {
  display: block; font-size: 12px; line-height: 1.4; color: var(--ink3); margin-top: 1px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.hdr-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
/* Header user menu (usage v2): the email + badge is a dropdown button riding
   the nav-dd open/close machinery; its panel right-aligns to the header edge
   so it never overflows the viewport. */
.hdr-user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 8px; cursor: pointer; font: inherit; border-radius: 6px; }
.hdr-user-dd .nav-dd-panel { left: auto; right: 0; min-width: 260px; }
.hdr-user-group {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink4); padding: 8px 12px 2px;
}
.user-email { font-size: 13px; color: var(--ink3); }
.user-badge {
  width: 32px; height: 32px; border-radius: 5px;
  background: var(--blue-deep); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  display: grid; place-items: center; flex-shrink: 0;
}

/* ============ SHELL HERO BAND (opt-in via {% block hero %}) ============ */
.shero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.shero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.shero-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--blue); transform: skewX(-14deg); transform-origin: top;
}
.shero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: 20px var(--gutter) 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
/* LOCKED BAND HEIGHT (Steve, 2026-06-07): the hero is a fixed frame. Whatever a
   tool wants in the band must FIT in --shero-h — crumbs, title, a subtitle of at
   most two lines, and an informational right slot. The band never grows per-tool;
   overflow is clipped by .shero's overflow:hidden. If your content clips, shrink
   the content (shorter subtitle, move working controls down into the page) — do
   NOT change this height or override it per-tool. Released below 920px where the
   band stacks vertically for narrow screens. */
@media (min-width: 921px) {
  .shero-inner { height: var(--shero-h); }
  /* Home's landing hero (v1 .hero markup) locks to the same band height, so
     the navy band never changes size navigating Home <-> any tool. */
  .hero-inner { height: var(--shero-h); }
}
.shero-left { min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumb, .crumb-here {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.crumb { color: #7FC4EE; }
.crumb:hover { text-decoration: underline; }
.crumb-here { color: rgba(255,255,255,0.65); }
.crumb-sep { color: rgba(255,255,255,0.3); font-size: 11px; }
.shero-title {
  margin: 11px 0 0; font-size: 31px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.05; color: #fff;
}
.shero-note { margin-left: 12px; font-size: 20px; font-weight: 700; color: var(--logo-gray); }
.shero-sub {
  margin: 9px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.72);
  max-width: 720px; text-wrap: pretty; min-height: 3em; /* reserve two lines so tab switches don't reflow */
}
.shero-right { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.shero-src { font-size: 11px; letter-spacing: 0.4px; color: rgba(255,255,255,0.5); }
.shero-src b { color: rgba(255,255,255,0.78); font-weight: 600; }
.shero-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 5px; padding: 7px 13px;
}
.shero-btn:hover { background: rgba(255,255,255,0.18); }

/* ============ SHELL TAB BAR (opt-in via {% block tabbar %}) ============ */
.stabs {
  background: var(--paper-alt); border-bottom: 1px solid var(--rule);
  position: sticky; top: 60px; z-index: 30;
}
.stabs-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.stabs-tabs { display: flex; gap: 8px; }
.stab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 6px; text-decoration: none;
  font-size: 13px; font-weight: 700; background: var(--paper); color: var(--ink2);
  border: 1px solid var(--rule); white-space: nowrap;
}
.stab:hover { background: var(--paper-alt); }
.stab.is-active {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 1px 3px rgba(0,119,192,0.3);
}
.stab-n {
  padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: var(--paper-deep); color: var(--ink2); font-variant-numeric: tabular-nums;
}
.stab.is-active .stab-n { background: rgba(255,255,255,0.22); color: #fff; }
.stabs-right { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink3); }

/* ============ HERO (compact navy band) ============ */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-accent-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--accent); transform: skewX(-14deg); transform-origin: top;
}
.hero-inner {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  gap: 40px; padding: 26px var(--gutter) 28px;
}
.hero-left { min-width: 0; }
.hero-titleline { display: flex; align-items: baseline; gap: 16px; }
.hero-h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 0; color: #fff; }
.hero-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-meta b { color: var(--accent); font-weight: 700; }
.hero-meta-sep { margin: 0 5px; color: rgba(255,255,255,0.3); }
.hero-meta-dim { color: rgba(255,255,255,0.5); }
.hero-sub { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.72); margin: 8px 0 0; max-width: 560px; }

.search {
  position: relative; display: flex; align-items: center; width: 300px; flex-shrink: 0;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); height: 44px; padding: 0 13px;
  transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--blue-light); background: rgba(255,255,255,0.1); }
.search-icon { color: rgba(255,255,255,0.5); flex-shrink: 0; margin-right: 9px; }
.search-input {
  flex: 1; min-width: 0; background: none; border: none; outline: none; color: #fff;
  font-size: 14.5px; font-family: inherit;
}
.search-input::placeholder { color: rgba(255,255,255,0.42); }
.search-clear {
  background: none; border: none; color: rgba(255,255,255,0.55); font-size: 22px; line-height: 1;
  cursor: pointer; padding: 0 2px;
}
.search-clear:hover { color: #fff; }

/* ============ DEPARTMENTS ============ */
.dept { margin-bottom: 44px; }
.dept:last-child { margin-bottom: 0; }
.dept-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dept-name {
  position: relative; font-size: 23px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--navy); margin: 0; padding-left: 16px;
}
.dept-name::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px;
  background: var(--blue); transform: skewX(-14deg); border-radius: 1px;
}
.dept-count {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--logo-gray); white-space: nowrap;
}
.dept-blurb { font-size: 14px; line-height: 1.5; color: var(--cool-500); max-width: 660px; margin: 9px 0 20px 16px; }

/* department landing page — same marker language, page-title scale */
.department-page .dept-name { font-size: 30px; }
.department-page .dept-blurb { font-size: 15px; margin-bottom: 24px; }

/* shared tool bits */
.tool-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); margin: 0; }
.tool-desc { font-size: 13px; line-height: 1.5; color: var(--cool-500); margin: 0; text-wrap: pretty; }
.io { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--logo-gray); }
.io-k { text-transform: uppercase; }
.io-arrow { color: var(--blue); flex-shrink: 0; }

/* ---- TABLE list (the locked default) ---- */
.table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thead {
  display: grid; grid-template-columns: 62px 1.4fr 2fr 1fr 24px; align-items: center; gap: 18px;
  padding: 11px 18px; background: var(--cool-50); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--logo-gray);
}
.trow {
  display: grid; grid-template-columns: 62px 1.4fr 2fr 1fr 24px; align-items: center; gap: 18px;
  padding: 13px 18px; border-top: 1px solid var(--line-soft); transition: background .14s;
}
.trow:first-of-type { border-top: none; }
.trow:hover { background: var(--cool-50); }
.trow-code { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--logo-gray); }
.trow-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.trow-icon { color: var(--blue); flex-shrink: 0; display: flex; }
.trow-name .tool-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-desc { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trow-io { min-width: 0; }
.trow-chev { color: var(--logo-gray); justify-self: end; display: flex; }
.trow:hover .trow-chev { color: var(--blue); }
@media (max-width: 860px) {
  .thead { display: none; }
  .trow { grid-template-columns: 1fr 24px; gap: 10px 14px; grid-template-areas: "name chev" "desc desc"; }
  .trow-code { display: none; }
  .trow-name { grid-area: name; }
  .trow-desc { grid-area: desc; }
  .trow-io { display: none; }
  .trow-chev { grid-area: chev; }
}

.no-results { font-size: 15px; color: var(--cool-500); padding: 8px 0; }

/* ============ FOOTER ============ */
.ftr { border-top: 1px solid var(--rule); background: var(--paper); margin-top: auto; }
.ftr-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); font-size: 13px; color: var(--ink3); }
.ftr-left strong { color: var(--ink); font-weight: 700; }
.ftr-dot { margin: 0 8px; color: var(--logo-gray); }
.ftr-url { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--logo-gray); }
.ftr-tq img { height: 18px; width: auto; display: block; opacity: 0.95; flex-shrink: 0; }
/* The logo-as-button must look exactly like the plain logo did — no
   border, no hover chrome. The only tell is the pointer cursor. */
button.ftr-tq { background: none; border: 0; padding: 0; cursor: pointer; }

/* ============ FOOTER NOTES (the Technique-logo jot box) ============ */
.notes-pop {
  position: fixed; right: 24px; bottom: 64px; width: 420px; z-index: 1000;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(11, 23, 38, 0.18); padding: 12px;
}
.notes-pop-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.notes-pop-head strong { color: var(--navy); font-size: 13px; }
.notes-pop-all { font-size: 12px; color: var(--blue); text-decoration: none; }
.notes-pop-all:hover { text-decoration: underline; }
.notes-pop textarea {
  width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px;
}
.notes-pop textarea:focus { outline: 2px solid var(--brand-blue-soft); border-color: var(--blue); }
.notes-pop-opts { display: flex; gap: 16px; margin-top: 8px; }
.notes-opt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cool-500); cursor: pointer; }
.notes-opt input { margin: 0; cursor: pointer; }
.notes-pop-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.notes-saved { font-size: 12px; color: var(--green); font-weight: 600; }
.notes-save {
  background: var(--blue); color: #fff; border: 0; border-radius: var(--radius-sm);
  padding: 6px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.notes-save:hover { background: var(--blue-dark); }
.notes-save:disabled { opacity: 0.6; cursor: default; }
.notes-recent { list-style: none; margin: 8px 0 0; padding: 0; }
.notes-recent li {
  font-size: 12px; color: var(--cool-500); border-top: 1px solid var(--line-soft);
  padding: 6px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* /notes review page */
.notes-group { margin-bottom: 28px; }
.notes-group h2 { font-size: 15px; color: var(--navy); margin: 0 0 10px; }
.note-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 8px;
}
.note-row.is-processed { opacity: 0.55; }
.note-body { flex: 1; min-width: 0; }
.note-text { font-size: 14px; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.note-meta { font-size: 12px; color: var(--cool-500); margin-top: 4px; }
.note-meta a { color: var(--blue); text-decoration: none; }
.note-meta a:hover { text-decoration: underline; }
.note-done {
  background: #fff; color: var(--blue); border: 1px solid var(--blue);
  border-radius: var(--radius-sm); padding: 4px 12px; font: inherit; font-size: 12px;
  font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.note-done:hover { background: var(--brand-blue-soft); }
.notes-empty { color: var(--cool-500); font-size: 14px; padding: 24px 0; }

/* /notes attachments: opt-in screenshot + console log on a note row */
.note-attach { margin-top: 8px; }
.note-shot { display: inline-block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.note-shot img { display: block; max-width: 240px; max-height: 160px; height: auto; }
.note-attach details { margin-top: 6px; }
.note-attach summary { font-size: 12px; color: var(--blue); cursor: pointer; }
.note-attach pre {
  margin: 6px 0 0; padding: 8px; max-height: 240px; overflow: auto;
  background: var(--cool-50, #f4f6f9); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); font-size: 11px; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .hero-inner, .shero-inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .shero-inner { align-items: flex-start; }
  .search { width: 100%; }
  /* dropdown panels stack full-width rather than anchoring to the button */
  .nav-dd-panel { position: fixed; left: 12px; right: 12px; top: 62px; max-width: none; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .user-email { display: none; }
  .container, .main, .hero-inner, .shero-inner, .stabs-inner, .ftr-inner { padding-left: 20px; padding-right: 20px; }
}
