/* Hillyer Works™ Employee Portal — Hillyer Brand Guidelines v1.4 palette (BRAND2 2026-10-25; replaces the retired
   "Deep Forest / Emerald" SPEC §14.6 tokens). Only Bible colours: Forest, Forest Ground, Moss, Light Moss, Silver,
   Near Black, White, Paper, office neutrals Nantucket Dune + Garlic Clove; plus ONE amber and ONE red for signals. */
@font-face {
  font-family: "Jost";
  src: url("/brand/assets/fonts/Jost-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --forest: #1E432C;        /* headings, icon lobe */
  --ground: #173929;        /* Forest Ground: dark surfaces (rail, Hazel), flat */
  --moss: #708D59;          /* fields: active item, role chip, primary button (near-black lettering) */
  --lmoss: #8FA86E;         /* Light Moss: lettering/highlights on dark, focus rings — never body text */
  --silver: #D9DCE0;        /* header bar, disabled, dividers, chrome */
  --silver-dk: #C3C7C8;     /* 1 px rule under the Silver bar */
  --ink: #0B0B0B;           /* Near Black: body text on light */
  --white: #FFFFFF;
  --paper: #F4F3EF;         /* page */
  --paper-2: #FFFFFF;       /* panels */
  --dune: #CFC3B0;          /* Nantucket Dune (tints only) */
  --clove: #EEE6D8;         /* Garlic Clove (tints only) */
  --line: #D9DCE0;
  --muted: rgba(11, 11, 11, .62);
  --on-dark-dim: rgba(255, 255, 255, .72);
  --warn: #B45309;          /* the one UI amber */
  --warn-bg: #FEF3C7;
  --error: #B91C1C;         /* the one UI red */
  --radius: 10px;
  --shadow: 0 1px 3px rgba(11, 11, 11, .08), 0 6px 16px rgba(11, 11, 11, .05);
  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); font-weight: 400;
  background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
}
h1, h2, h3, h4 { font-weight: 600; }
button, input, select, textarea { font-family: inherit; }
button { font-weight: 500; }
:focus-visible { outline: 2px solid var(--lmoss); outline-offset: 2px; }

/* ── interface icons: Fluent line icons as CSS masks, coloured by currentColor ── */
.fi { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: -3px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.fi.sm { width: 13px; height: 13px; vertical-align: -2px; }
.fi.xs { width: 10px; height: 10px; vertical-align: 0; }
h2 .fi, h2 > .fi { width: 22px; height: 22px; vertical-align: -4px; margin-right: 4px; color: var(--forest); }

/* ── topbar: flat Silver, like the website (her ruling 25 Oct) ── */
#topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--silver); color: var(--ink); padding: 8px 18px;
  border-bottom: 1px solid var(--silver-dk);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .lockup { display: block; height: 60px; width: auto; }      /* HILLYER cap height ≈ 26 px */
.brand .title { color: var(--ground); font-weight: 600; letter-spacing: .02em; font-size: 16px;
  padding-left: 14px; border-left: 1px solid var(--silver-dk); line-height: 1.2; }
.brand .title em { font-style: normal; font-weight: 400; }
.welcome { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink); }
.clock { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip { background: var(--moss); color: var(--ink); padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.dev-login { font-size: 11px; letter-spacing: .08em; background: rgba(11,11,11,.06); padding: 4px 8px; border-radius: 6px; display: flex; gap: 6px; align-items: center; }
.dev-login select { background: var(--white); color: var(--ink); border: 1px solid var(--silver-dk); border-radius: 3px; padding: 2px 4px; font-size: 11px; }
/* ghost button on dark grounds (rail + Hazel toggles) */
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); color: inherit; border-radius: 3px; padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
/* the website's outlined button (Sign out) */
#topbar .btn-ghost, .btn-outline { font-family: var(--font); font-weight: 500; font-size: 14px; border-radius: 3px;
  border: 1px solid var(--forest); color: var(--forest); background: transparent; padding: 6px 14px; }
#topbar .btn-ghost:hover, .btn-outline:hover { background: var(--forest); color: var(--white); }

/* ── workspace (3-pane) ── */
#workspace { flex: 1; display: grid; grid-template-columns: 184px 1fr 340px; grid-template-areas: "rail main ai"; gap: 14px; padding: 14px; min-height: 0; }
body.ai-collapsed #workspace { grid-template-columns: 184px 1fr; grid-template-areas: "rail main"; } /* RULING 36: closed panel takes no space */
body.ai-collapsed #ai-panel { display: none; }
#hazel-open { display: inline-flex; align-items: center; gap: 6px; background: var(--moss); color: var(--ink); border: 1px solid var(--moss); border-radius: 3px; padding: 5px 12px; font: inherit; font-weight: 600; cursor: pointer; }
#hazel-open:hover { background: var(--lmoss); border-color: var(--lmoss); }
#hazel-open[hidden] { display: none; }
body.layout-mode-stacked #workspace { grid-template-columns: 184px 1fr; grid-template-rows: 1fr auto; grid-template-areas: "rail main" "rail ai"; }
body.layout-mode-multi #main-pane { outline: 2px dashed var(--moss); outline-offset: -2px; }
body.layout-mode-multi #ai-panel { outline: 2px dashed var(--moss); outline-offset: -2px; }

/* ── Departments rail (Forest Ground, flat) ── */
#odoo-rail { grid-area: rail; background: var(--ground); color: var(--white); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.rail-head { padding: 12px 14px; font-weight: 600; letter-spacing: .12em; font-size: 12px; color: var(--lmoss); border-bottom: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 8px; }
.rail-head .rail-mark { display: block; width: 18px; height: 18px; flex: none; }
#rail-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; overflow-y: auto; min-height: 0; }
.rail-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; color: var(--white); border: none; border-radius: 6px; padding: 9px 11px; cursor: pointer; font-size: 13.5px; font-weight: 400; font-family: inherit; }
.rail-btn:hover { background: rgba(255,255,255,.10); }
.rail-btn.active { background: var(--moss); color: var(--ink); font-weight: 600; }
.rail-ico { line-height: 1; width: 20px; display: inline-flex; justify-content: center; flex: none; }
.rail-ico .fi { color: var(--lmoss); }
.rail-btn.active .rail-ico .fi, .rail-money.active .rail-ico .fi { color: var(--ink); }
.rail-dept { padding: 10px 11px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--on-dark-dim); text-transform: uppercase; }
.rail-dept:first-child { padding-top: 4px; }
.rail-dept .dept-mark { width: 15px; height: 15px; color: var(--lmoss); margin-left: auto; }
.rail-name { flex: 1; }

#main-pane { grid-area: main; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; }
#system-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); align-items: center; }
.sysbtn, .modebtn { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 3px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.sysbtn:hover, .modebtn:hover { border-color: var(--moss); }
.sysbtn.active { background: var(--forest); color: var(--white); border-color: var(--forest); }
.layout-modes { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.modebtn { padding: 4px 9px; font-size: 12px; }
.modebtn.active { background: var(--moss); border-color: var(--moss); color: var(--ink); }

#system-content { padding: 18px; overflow: auto; }
.sys-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--white); }
.sys-card h2 { margin: 0 0 8px; font-size: 18px; color: var(--forest); }
.sys-card h3 { color: var(--forest); }
.deferred { background: var(--warn-bg); border: 1px solid rgba(180,83,9,.35); color: var(--warn); border-radius: 6px; padding: 12px 14px; font-size: 14px; }
.deferred b { color: var(--warn); }
.timeline-item { border-left: 3px solid var(--moss); padding: 6px 12px; margin: 8px 0; background: var(--paper); border-radius: 0 6px 6px 0; }
.timeline-item .meta { font-size: 12px; color: var(--muted); }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting-row.hot { background: var(--clove); border-radius: 6px; padding: 12px; border: 1px solid var(--dune); }
.tag-input { width: 100%; padding: 8px; border: 1px solid var(--silver-dk); border-radius: 3px; }
.tag-input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 2px rgba(143,168,110,.45); }
.switch { font-weight: 600; }
/* primary button: Moss field, near-black lettering (".btn-emerald" kept as an alias for pages not in this pass) */
.btn-primary, .btn-emerald { background: var(--moss); color: var(--ink); border: 1px solid var(--moss); border-radius: 3px; padding: 8px 16px; cursor: pointer; font-weight: 500; text-decoration: none; display: inline-block; }
.btn-primary:hover, .btn-emerald:hover { background: var(--lmoss); border-color: var(--lmoss); }
.btn-primary:disabled, .btn-emerald:disabled { background: var(--silver); border-color: var(--silver); color: var(--muted); cursor: not-allowed; }

/* ── Hazel panel (Forest Ground; head band = "silver on forest" halftone strip at native scale) ── */
#ai-panel { grid-area: ai; background: var(--ground); color: var(--white); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.ai-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; min-height: 52px;
  background: var(--ground) url("/brand/assets/halftones/Halftone-silver-on-forest-square.png") repeat left top; background-size: 646px auto; /* 25 Oct 09:40 her note: finer texture — the square tile at 50 % (dot pitch ~3.5 px) replaces the coarse strip top */
  border-bottom: 1px solid rgba(255,255,255,.12); }
.ai-title { color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: .04em; background: var(--ground); padding: 3px 10px; border-radius: 4px; } /* flat backing: texture never under lettering */
#ai-toggle { background: var(--ground); border-color: rgba(255,255,255,.55); color: var(--white); padding: 4px 8px; } /* 25 Oct her note: the close arrow was a transparent ghost on the texture — flat Forest-Ground backing, same rule as the title */
#ai-toggle:hover { background: var(--forest); }
#ai-toggle .fi { width: 18px; height: 18px; }
body.ai-collapsed #ai-body { display: none; }
body.ai-collapsed .ai-title { display: none; }
body.ai-collapsed .ai-head { padding: 12px 6px; justify-content: center; }
#ai-body { padding: 14px; overflow: auto; font-size: 14px; }
.ai-greeting { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.ai-narration { opacity: .92; line-height: 1.5; margin-bottom: 12px; white-space: pre-wrap; }
.ai-sec { margin: 10px 0; }
.ai-sec h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--lmoss); }
.ai-sec ul { margin: 4px 0; padding-left: 18px; }
.ai-sec .stub { color: var(--warn-bg); font-size: 13px; }
.ai-offer { margin-top: 14px; padding: 10px; background: rgba(143,168,110,.14); border-radius: 6px; font-size: 13px; line-height: 1.45; }

/* ── single sign-on login: "forest on moss" halftone field, flat white card carrying the lockup ── */
.login-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: var(--moss) url("/brand/assets/halftones/Halftone-forest-on-moss-square.png") repeat left top; }
.login-overlay[hidden] { display: none; }
.login-card { background: var(--white); border-radius: 4px; padding: 34px 32px 30px; width: 380px; max-width: 92vw; display: flex; flex-direction: column; gap: 12px; }
.login-lockup { display: block; width: 220px; height: auto; margin: 0 0 6px; }
.login-brand { color: var(--ground); font-weight: 600; letter-spacing: .02em; font-size: 15px; }
.login-card h1 { margin: 4px 0 0; font-size: 22px; color: var(--forest); }
.login-sub { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.login-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink); font-weight: 600; }
.login-card input { padding: 10px; border: 1px solid var(--silver-dk); border-radius: 3px; font-size: 14px; }
.login-card input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 2px rgba(143,168,110,.45); }
.login-error { color: var(--error); font-size: 13px; min-height: 16px; }
.login-held { margin: 8px 0 0; color: var(--ground); font-size: 14px; line-height: 1.5; } /* HILLYER WORKS GATE 2026-10-25 */
.btn-lg { font-size: 16px; padding: 12px 18px; width: 100%; margin-top: 4px; }
/* WHATS NEW 2026-11-05: notice under the sign-in buttons (Bible: Forest heading, Ground text, Silver rule) */
.login-news { margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--silver-dk); color: var(--ground); font-size: 13px; line-height: 1.45; }
.login-news h2 { margin: 0 0 6px; font-size: 14px; color: var(--forest); letter-spacing: .01em; }
.login-news ul { margin: 0 0 8px; padding-left: 18px; }
.login-news li { margin: 2px 0; }
.login-news p { margin: 0; color: var(--muted); }


/* ── embedded Odoo (same-origin proxy → single sign-on) ── */
#system-content.embed { padding: 0; flex: 1; display: flex; min-height: 0; }
.odoo-frame { flex: 1; width: 100%; height: 100%; min-height: 78vh; border: 0; display: block; }

/* ── Hazel chat ── */
.ai-chat { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ai-context { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--on-dark-dim); padding: 7px 9px; margin-bottom: 12px; background: rgba(255,255,255,.05); border-radius: 6px; }
.ai-context .ctx-loc { font-weight: 600; color: var(--lmoss); letter-spacing: .02em; }
.ai-context .ctx-time { font-variant-numeric: tabular-nums; }
.ai-context .fi { margin-right: 4px; }
.ai-messages { display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow-y: auto; }
.msg { padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.45; max-width: 92%; white-space: pre-wrap; word-wrap: break-word; }
.msg-user { align-self: flex-end; background: var(--moss); color: var(--ink); border-bottom-right-radius: 3px; }
.msg-hazel { align-self: flex-start; background: rgba(255,255,255,.10); color: var(--white); border-bottom-left-radius: 3px; }
.ai-form { display: flex; gap: 6px; }
.ai-input { flex: 1; padding: 10px 11px; border-radius: 6px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: var(--white); font-size: 13px; }
.ai-input::placeholder { color: rgba(255,255,255,.55); }
.ai-input:focus { outline: none; border-color: var(--lmoss); }
.ai-send { background: var(--moss); color: var(--ink); border: none; border-radius: 6px; padding: 0 13px; cursor: pointer; display: inline-flex; align-items: center; }
.ai-send:hover { background: var(--white); }

/* Microsoft 365 app launcher grid */
.m365-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.m365-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: inherit; transition: box-shadow .12s, transform .12s, border-color .12s; }
.m365-tile:hover { border-color: var(--moss); box-shadow: 0 4px 14px rgba(11,11,11,.08); transform: translateY(-2px); }
.m365-ico { line-height: 1; color: var(--forest); }
.m365-ico .fi { width: 28px; height: 28px; }
.m365-name { font-weight: 600; color: var(--forest); font-size: 15px; }
.m365-desc { font-size: 12px; color: var(--muted); }

/* ── responsive: phone + small tablet (2026-08-04, iPhone-first pass) ── */
html { -webkit-text-size-adjust: 100%; }

@media (max-width: 900px) {
  /* single column; flex overrides every grid variant incl. ai-collapsed/stacked */
  #workspace, body.ai-collapsed #workspace, body.layout-mode-stacked #workspace {
    display: flex; flex-direction: column; gap: 10px; padding: 10px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  #workspace > * { min-width: 0; max-width: 100%; }
  .msg, .timeline-item, .setting-row, .sys-card { overflow-wrap: anywhere; }

  #topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .brand .lockup { height: 44px; }
  .brand .title { font-size: 13px; padding-left: 10px; }
  .welcome { order: 3; width: 100%; justify-content: space-between; font-size: 13px; }

  /* Departments rail → horizontal scrollable chip row */
  #odoo-rail { flex-direction: row; align-items: center; }
  .rail-head { border-bottom: none; border-right: 1px solid rgba(255,255,255,.12); padding: 10px 12px; white-space: nowrap; }
  #rail-nav { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 6px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .rail-btn { width: auto; white-space: nowrap; min-height: 44px; padding: 9px 12px; }
  .rail-name { flex: none; }
  .rail-dept { display: none; }

  /* system tabs: one scrollable row, thumb-sized */
  #system-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .sysbtn { white-space: nowrap; min-height: 44px; }
  .layout-modes { display: none; }

  #system-content { padding: 12px; }
  .sys-card { padding: 14px; }
  .setting-row { flex-wrap: wrap; gap: 8px; }

  /* 16px inputs block iOS Safari focus auto-zoom */
  .login-card input, .tag-input, .ai-input { font-size: 16px; }

  #ai-panel { width: 100%; }
  .ai-messages { max-height: 38vh; max-height: 38svh; }
  .odoo-frame { min-height: 72vh; min-height: 72svh; }
  .m365-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
/* NOTE: breakpoint 900px is mirrored in app.js applyAiState — change both together. */

/* ── Hazel My Work (universal employee functions) ── */
#ai-mywork { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.mywork-head { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--lmoss); padding: 0 2px 6px; }
.mywork-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: rgba(255,255,255,.06); color: var(--white); border: none; border-radius: 6px; padding: 9px 11px; cursor: pointer; font-size: 13.5px; font-weight: 400; font-family: inherit; margin-bottom: 4px; }
.mywork-btn:hover { background: rgba(255,255,255,.14); }
.mywork-btn .rail-ico .fi { color: var(--lmoss); }

/* ── collapsible departments ── */
.rail-dept { display: flex; align-items: center; gap: 6px; width: 100%; background: transparent; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.dept-chev { width: 10px; display: inline-flex; align-items: center; }
.dept-items.collapsed { display: none; }
/* ── in-workspace mail ── */
.mail-card { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.mail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mail-list { overflow-y: auto; min-height: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.mail-row { display: grid; grid-template-columns: 180px 1fr 90px; grid-template-areas: "from subj when" "from prev when"; gap: 2px 12px; padding: 9px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mail-row:hover { background: rgba(11,11,11,.04); }
.mail-row.unread .mail-from, .mail-row.unread .mail-subj { font-weight: 600; }
.mail-from { grid-area: from; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-from .fi { color: var(--forest); }
.mail-subj { grid-area: subj; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-prev { grid-area: prev; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-when { grid-area: when; font-size: 12px; color: var(--muted); text-align: right; }
.mail-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

#ai-quicklinks { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
#ai-quicklinks a.mywork-btn { text-decoration: none; }

/* ── always-visible portal identity chip (return beacon; retired 24 Oct, style kept on brand) ── */
#portal-home-chip { position: fixed; top: 6px; left: 10px; z-index: 9999; background: var(--moss); color: var(--ink); font-weight: 600; font-size: 11px; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }
#portal-home-chip:hover { background: var(--lmoss); }

/* MONEY PASS 3 2026-09-16 — Money folded into the dashboard rail (Change 2). .rail-money
   reuses .rail-dept's layout but behaves like a single .rail-btn (no expand/collapse, no
   sub-items); shown only when the signed-in user's Money scope isn't 'none'. */
.rail-money { border-radius: 6px; padding: 9px 11px; font-size: 13.5px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--white); margin-bottom: 4px; gap: 10px; }
.rail-money:hover { background: rgba(255,255,255,.10); }
.rail-money.active { background: var(--moss); color: var(--ink); font-weight: 600; }
#system-content .mb-embed-loading { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }

/* ── HILLYER WORKS NOTES 2026-10-25 — header button (between Hazel and Sign out) + right-side drawer ── */
.btn-notes { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--ground); border: 1px solid var(--silver-dk); border-radius: 3px; padding: 5px 12px; font: inherit; font-weight: 500; cursor: pointer; }
.btn-notes:hover, .btn-notes[aria-expanded="true"] { background: var(--clove); }
.btn-notes .nbadge { background: var(--moss); color: var(--white); border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 6px; min-width: 18px; text-align: center; }
.btn-notes .nbadge[hidden] { display: none; }
#notes-drawer { position: fixed; top: 60px; right: 0; bottom: 0; width: 380px; max-width: 100%; z-index: 60; display: flex; flex-direction: column; background: var(--white); border-left: 1px solid var(--silver-dk); box-shadow: -4px 0 14px rgba(11,11,11,.18); }
#notes-drawer[hidden] { display: none; }
#notes-drawer .nd-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--ground) url("/brand/assets/halftones/Halftone-silver-on-forest-square.png") repeat left top; background-size: 646px auto; }
#notes-drawer .nd-title { color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: .04em; background: var(--ground); padding: 3px 10px; border-radius: 4px; }
#notes-drawer .btn-ghost { background: var(--ground); border-color: rgba(255,255,255,.55); color: var(--white); padding: 4px 8px; }
#notes-drawer .nd-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: var(--paper); }
@media (max-width: 900px) { .btn-notes .lbl { display: none; } .btn-notes { padding: 5px 8px; min-height: 36px; } #notes-drawer { width: 100%; } }

/* HAZELICON 2026-11-02: Hazel sparkle in portal menus -> new small icon */
[style*="sparkle_24_regular"]{-webkit-mask:none!important;mask:none!important;background:url(/brand/assets/hazel/hazel-icon-small.svg) center/contain no-repeat!important}

/* HAZEL CUE 2026-11-05: arrow label + Light-Moss pulse on the Ask Hazel box while the Core frame shows an empty-state message */
#hazel-cue { display: block; color: #FFFFFF; font-weight: 600; font-size: 13px; margin: 0 0 6px; text-align: left; }
#hazel-cue[hidden] { display: none; }
.ai-input.hazel-cue-on { box-shadow: 0 0 0 3px rgba(143,168,110,.9); animation: hazelCuePulse 1.6s ease-in-out infinite; }
@keyframes hazelCuePulse { 0%,100% { box-shadow: 0 0 0 3px rgba(143,168,110,.9); } 50% { box-shadow: 0 0 0 6px rgba(143,168,110,.35); } }

/* HAZEL TIME CARD 2026-11-05: yes/no row under a Hazel question */
.hz-ask{display:flex;gap:8px;align-self:flex-start;margin:-4px 0 6px 0}.hz-ask button{font:inherit;font-size:13px;padding:6px 12px;border-radius:8px;cursor:pointer;border:1px solid rgba(255,255,255,.35)}.btn-hz-yes{background:var(--lmoss,#A7B57C);color:#173929;border-color:transparent!important;font-weight:600}.btn-hz-no{background:transparent;color:var(--white,#fff)}
