/* (3.45.0) THE CLEAN EDITORIAL LOOK — the one shared layer for the whole site (owner, 19 Nov: "make the whole site the
   clean editorial style"; mock "B · Clean editorial"). Loaded LAST on every page: the app (index.html, layout.html,
   cover.html), the sign-in page, the owner dashboard, the public pages (with look3450-site.css after it). Never inside
   Word (server/index.js servePage takes it out in Word mode) and never on sefer pages, typeset output, PDFs or videos.

   How it works:
   1. the editorial tokens (--ed-*): white ground, #111 text, #444 body grey, #E4E4E4 hairlines, #F6F5F1 soft bands,
      ONE accent deep green #1F4D3A (hover #123428); Newsreader titles (bundled stand-in: Crimson Pro), Inter for the
      screen, David Libre for Hebrew; pill buttons; small uppercase green labels; no shadows, no gradients.
   2. the OLD variables of every sheet (styles.css, home.css, sep3270.css, ui3183.css…) are pointed at the tokens, so
      most screens change by themselves. Written on ":root:root" so it wins over a sheet loaded after this one.
   3. the shared parts drawn once: buttons, fields, the styled drop-down, choice pills, tabs, tables, cards, dialogs,
      toasts, the app shell (side menu, phone bar, Home). Plus .ed-* classes for new work (see look-guide.txt).
   Look only: no screen, step, button, word, route or behaviour changes here. Hebrew right to left everywhere. */

/* ---------- fonts (free, OFL; bundled in app/fonts/ui — no font is fetched from another site) ---------- */
/* "Chibur Serif" stands in for Newsreader (not in the repo, no internet at build time): Crimson Pro, a close book serif.
   A computer that has Newsreader installed uses it (the stack names it first). */
@font-face { font-family: 'Chibur Serif'; src: local('Newsreader'), url('../fonts/ui/CrimsonPro-400.woff2?v=XJZ5XG7ogsT3') format('woff2'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: 'Chibur Serif'; src: url('../fonts/ui/CrimsonPro-700.woff2?v=rR4G_oH2YnVy') format('woff2'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'Chibur Hebrew'; src: local('David Libre'), url('../fonts/ui/DavidLibre-400.woff2?v=U75vDd_ouiwi') format('woff2'); font-weight: 300 500; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+20AA; }
@font-face { font-family: 'Chibur Hebrew'; src: local('David Libre Bold'), url('../fonts/ui/DavidLibre-700.woff2?v=GZiDtDumcn9z') format('woff2'); font-weight: 600 900; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+20AA; }

/* ---------- 1. the tokens ---------- */
:root:root {
  /* colour */
  --ed-bg: #FFFFFF;            /* the ground */
  --ed-ink: #111111;           /* titles, main text */
  --ed-body: #444444;          /* body grey (9.7:1 on white) */
  --ed-muted: #666666;         /* small notes (5.7:1) */
  --ed-line: #E4E4E4;          /* hairlines */
  --ed-line-2: #CCCCCC;        /* field and outline-button borders */
  --ed-rule: #111111;          /* the strong rule at the top of a rule list */
  --ed-soft: #F6F5F1;          /* soft bands */
  --ed-soft-2: #EFEDE6;        /* hover on a soft band */
  --ed-panel: #FFFFFF;         /* a panel / dialog / card */
  --ed-accent: #1F4D3A;        /* the ONE accent: deep green (9.6:1 on white) */
  --ed-accent-hover: #123428;
  --ed-accent-ink: #FFFFFF;    /* text on the accent */
  --ed-accent-soft: #EAF0EC;   /* a chosen row, a quiet highlight */
  --ed-accent-line: #A9C2B4;   /* a green hairline */
  --ed-del: #B3261E;           /* deletions in tracked-change samples */
  --ed-ok: #1F6B45; --ed-ok-soft: #E6F1EA;
  --ed-warn: #8A5A00; --ed-warn-soft: #FBF0D9;
  --ed-bad: #B3261E; --ed-bad-soft: #FBE6E4;
  --ed-scrim: rgba(17,17,17,.42);
  --ed-focus: #1F4D3A;
  /* type */
  --ed-serif: 'Newsreader', 'Chibur Serif', 'Chibur Hebrew', Georgia, serif;
  --ed-sans: 'Inter', 'Chibur Hebrew', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ed-heb: 'Chibur Hebrew', 'David Libre', 'Frank Ruhl Libre', 'David', serif;
  --ed-mono: ui-monospace, Consolas, 'Cascadia Mono', monospace;
  --ed-fs-label: 12.5px;       /* small uppercase labels */
  --ed-fs-small: 13px;
  --ed-fs-ui: 14.5px;          /* buttons, menus, fields */
  --ed-fs-body: 15px;          /* app body */
  --ed-fs-lead: 18px;
  --ed-fs-h3: 21px;
  --ed-fs-h2: 30px;
  --ed-fs-h1: 40px;
  --ed-fs-display: clamp(40px, 6.4vw, 92px);
  --ed-track-title: -0.02em;
  --ed-track-label: 0.1em;
  /* space */
  --ed-s1: 4px; --ed-s2: 8px; --ed-s3: 12px; --ed-s4: 16px; --ed-s5: 24px; --ed-s6: 32px; --ed-s7: 48px; --ed-s8: 64px; --ed-s9: 96px;
  --ed-max: 1240px;            /* the page width */
  --ed-gutter: clamp(16px, 3.4vw, 40px);
  /* shape */
  --ed-r0: 0; --ed-r1: 4px; --ed-r2: 8px; --ed-pill: 999px;
  --ed-hair: 1px solid var(--ed-line);
  --ed-btn-h: 40px; --ed-btn-h-sm: 32px;

  /* ---------- 2. the old variables, pointed at the tokens ---------- */
  /* styles.css (the app, sign-in, owner dashboard) */
  --bg: var(--ed-bg); --panel: var(--ed-panel); --panel2: var(--ed-soft); --line: var(--ed-line); --line2: var(--ed-line-2);
  --text: var(--ed-ink); --muted: var(--ed-body); --faint: var(--ed-muted);
  --accent: var(--ed-accent); --accent-ink: var(--ed-accent-ink); --accent-soft: var(--ed-accent-soft);
  --gold: var(--ed-accent); --gold-soft: var(--ed-accent-soft); --brass: var(--ed-accent);
  --ok: var(--ed-ok); --warn: var(--ed-warn); --warn-soft: var(--ed-warn-soft); --bad: var(--ed-bad);
  --shadow: none; --radius: var(--ed-r1);
  --ui: var(--ed-sans); --heb: var(--ed-heb); --title: var(--ed-serif);
  /* home.css (the public pages) */
  --paper: var(--ed-bg); --paper2: var(--ed-soft); --ink: var(--ed-ink); --card: var(--ed-panel);
  --navy: var(--ed-accent); --gold-btn: var(--ed-accent); --gold-btn2: var(--ed-accent-hover); --gold2: var(--ed-accent-line); --gold-text: var(--ed-accent);
  --serif: var(--ed-serif);
  /* sep3270.css (every choice group: separate pill buttons) */
  --sep-on: var(--ed-accent); --sep-on-ink: var(--ed-accent-ink); --sep-bg: var(--ed-bg); --sep-line: var(--ed-line-2); --sep-ink: var(--ed-ink); --sep-hover: var(--ed-soft); --sep-hover-line: var(--ed-ink);
  /* ui3183.css (the Chibur drop-down) */
  --chm-bg: var(--ed-bg); --chm-on: var(--ed-accent-soft);
  color-scheme: light;
}
/* dark: the app's own switch (data-theme), and the public pages when the computer is dark */
:root:root[data-theme="dark"] {
  --ed-bg: #121413; --ed-ink: #EDECE8; --ed-body: #C4C3BE; --ed-muted: #A4A39E; --ed-line: #2C302D; --ed-line-2: #474C48; --ed-rule: #EDECE8;
  --ed-soft: #1A1D1B; --ed-soft-2: #232724; --ed-panel: #161917;
  --ed-accent: #8FC7A8; --ed-accent-hover: #B2DBC4; --ed-accent-ink: #0E1F17; --ed-accent-soft: #1C2E24; --ed-accent-line: #3E6B53;
  --ed-del: #F08A82; --ed-ok: #7FD49C; --ed-ok-soft: #1D3626; --ed-warn: #E0B052; --ed-warn-soft: #3A3020; --ed-bad: #EF7D74; --ed-bad-soft: #3D2423;
  --ed-scrim: rgba(0,0,0,.6); --ed-focus: #8FC7A8;
  --ok-soft: var(--ed-ok-soft); --bad-soft: var(--ed-bad-soft);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:root:not([data-theme="light"]) {
    --ed-bg: #121413; --ed-ink: #EDECE8; --ed-body: #C4C3BE; --ed-muted: #A4A39E; --ed-line: #2C302D; --ed-line-2: #474C48; --ed-rule: #EDECE8;
    --ed-soft: #1A1D1B; --ed-soft-2: #232724; --ed-panel: #161917;
    --ed-accent: #8FC7A8; --ed-accent-hover: #B2DBC4; --ed-accent-ink: #0E1F17; --ed-accent-soft: #1C2E24; --ed-accent-line: #3E6B53;
    --ed-del: #F08A82; --ed-ok: #7FD49C; --ed-ok-soft: #1D3626; --ed-warn: #E0B052; --ed-warn-soft: #3A3020; --ed-bad: #EF7D74; --ed-bad-soft: #3D2423;
    --ed-scrim: rgba(0,0,0,.6); --ed-focus: #8FC7A8;
    color-scheme: dark;
  }
}

/* ---------- 3. the base ---------- */
html body { background: var(--ed-bg); color: var(--ed-ink); font-family: var(--ed-sans); }
html[dir="rtl"] body { font-family: var(--ed-sans); }
::selection { background: var(--ed-accent-soft); color: var(--ed-ink); }
a { color: var(--ed-accent); }
a:hover { color: var(--ed-accent-hover); }
:focus-visible { outline: 2px solid var(--ed-focus); outline-offset: 2px; }

/* the editorial classes for new work (see look-guide.txt) */
.ed-label { margin: 0 0 var(--ed-s3); font: 600 var(--ed-fs-label)/1.3 var(--ed-sans); letter-spacing: var(--ed-track-label); text-transform: uppercase; color: var(--ed-accent); }
html[dir="rtl"] .ed-label { letter-spacing: 0; font-size: 14px; }
.ed-title, .ed-h1, .ed-h2, .ed-h3 { margin: 0; font-family: var(--ed-serif); font-weight: 400; letter-spacing: var(--ed-track-title); line-height: 1.08; color: var(--ed-ink); }
.ed-title { font-size: var(--ed-fs-display); line-height: .98; }
.ed-h1 { font-size: var(--ed-fs-h1); } .ed-h2 { font-size: var(--ed-fs-h2); } .ed-h3 { font-size: var(--ed-fs-h3); line-height: 1.25; }
html[dir="rtl"] :is(.ed-title, .ed-h1, .ed-h2, .ed-h3) { font-family: var(--ed-heb); letter-spacing: 0; }
.ed-lead { margin: 0; font-size: var(--ed-fs-lead); line-height: 1.6; color: var(--ed-body); max-width: 36em; }
.ed-body { color: var(--ed-body); line-height: 1.6; }
.ed-note { color: var(--ed-muted); font-size: var(--ed-fs-small); }
.ed-page { max-width: var(--ed-max); margin: 0 auto; padding-inline: var(--ed-gutter); }
.ed-section { padding-block: clamp(40px, 7vw, 88px); }
.ed-band { background: var(--ed-soft); }
.ed-band-accent { background: var(--ed-accent); color: var(--ed-accent-ink); }
.ed-rule-top { border-top: 1px solid var(--ed-rule); }
.ed-rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ed-rule); }
.ed-rules > * { display: flex; flex-wrap: wrap; gap: var(--ed-s3) var(--ed-s5); align-items: baseline; justify-content: space-between; padding: var(--ed-s4) 0; border-bottom: var(--ed-hair); }
.ed-rules > * > b, .ed-rules .ed-k { flex: 1 1 220px; font-weight: 500; color: var(--ed-ink); }
.ed-rules > * > span, .ed-rules .ed-v { flex: 2 1 320px; color: var(--ed-body); }
.ed-box { background: var(--ed-panel); border: var(--ed-hair); border-radius: var(--ed-r1); padding: var(--ed-s5); }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--ed-s7); }
.ed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ed-btn-h); padding: 9px 22px; border-radius: var(--ed-pill); border: 1px solid var(--ed-line-2); background: transparent; color: var(--ed-ink); font: 500 var(--ed-fs-ui)/1.2 var(--ed-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.ed-btn:hover { border-color: var(--ed-ink); color: var(--ed-ink); }
.ed-btn--primary { background: var(--ed-accent); border-color: var(--ed-accent); color: var(--ed-accent-ink); }
.ed-btn--primary:hover { background: var(--ed-accent-hover); border-color: var(--ed-accent-hover); color: var(--ed-accent-ink); }
.ed-btn--big { min-height: 52px; padding: 15px 26px; font-size: 16px; }
.ed-btn:disabled, .ed-btn[aria-disabled="true"] { opacity: .5; cursor: default; }

/* ---------- 4. the shared parts (every screen) ---------- */
/* buttons: pills — solid green primary, thin outline secondary, separate (never joined) */
html .btn { border-radius: var(--ed-pill); border: 1px solid var(--ed-line-2); background: transparent; color: var(--ed-ink); font-weight: 500; padding: 7px 16px; min-height: 36px; justify-content: center; box-shadow: none; transition: background .12s, border-color .12s, color .12s; }
html .btn:hover { border-color: var(--ed-ink); }
html .btn.primary { background: var(--ed-accent); border-color: var(--ed-accent); color: var(--ed-accent-ink); font-weight: 500; filter: none; }
html .btn.primary:hover { background: var(--ed-accent-hover); border-color: var(--ed-accent-hover); filter: none; }
html .btn.danger { color: var(--ed-bad); border-color: var(--ed-bad); background: transparent; }
html .btn.danger:hover { background: var(--ed-bad-soft); }
html .btn.ghost { border-color: transparent; background: transparent; }
html .btn.ghost:hover { border-color: var(--ed-line-2); }
html .btn.small { padding: 4px 12px; min-height: 30px; font-size: 13px; }
html .btn:disabled { opacity: .5; }
html .icon-btn { border-radius: var(--ed-pill); color: var(--ed-body); }
html .icon-btn:hover { background: var(--ed-soft); color: var(--ed-ink); }

/* fields: white, a thin border, the green line when in use */
html .input, html select.input, html textarea.input { background: var(--ed-bg); border: 1px solid var(--ed-line-2); border-radius: var(--ed-r2); padding: 8px 12px; color: var(--ed-ink); box-shadow: none; }
html .input:hover { border-color: var(--ed-muted); }
html .input:focus { border-color: var(--ed-accent); box-shadow: 0 0 0 1px var(--ed-accent); outline: none; }
html .input::placeholder { color: var(--ed-muted); }
html .field > span { color: var(--ed-body); font-weight: 500; font-size: 13px; }
html input[type="checkbox"], html input[type="radio"] { accent-color: var(--ed-accent); }
/* the styled drop-down (chmenu.js) — never a plain white browser list */
html .chm { border-radius: var(--ed-r2); background: var(--ed-bg); border-color: var(--ed-line-2); box-shadow: none; min-height: 38px; }
html .chm:hover { border-color: var(--ed-ink); }
html .chm:focus-visible, html .chm[aria-expanded="true"] { border-color: var(--ed-accent); box-shadow: 0 0 0 1px var(--ed-accent); }
html .chm .chm-v { border-color: var(--ed-ink); }
html .chm-pop { border-radius: var(--ed-r2); border-color: var(--ed-line-2); box-shadow: none; background: var(--ed-bg); }
html .chm-it { border-radius: var(--ed-r1); }
html .chm-it.on { background: var(--ed-accent-soft); color: var(--ed-ink); }
html .chm-grp { color: var(--ed-accent); font-weight: 600; letter-spacing: var(--ed-track-label); }
/* a plain <select> that chmenu.js has not dressed yet (pages without it): the same look, its own arrow */
/* (low weight on purpose: a screen's own select style still wins; the app's chmenu.js replaces most of them anyway) */
:where(html) select:where(:not(.chm-native):not([multiple]):not([size])), html select.input:not(.chm-native):not([multiple]):not([size]) {
  appearance: none; -webkit-appearance: none; background-color: var(--ed-bg); color: var(--ed-ink); border: 1px solid var(--ed-line-2); border-radius: var(--ed-r2); padding-inline-end: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 14px; background-position: right 12px center; }
:where(html[dir="rtl"]) select:where(:not(.chm-native):not([multiple]):not([size])), html[dir="rtl"] select.input:not(.chm-native):not([multiple]):not([size]) { background-position: left 12px center; }
html select option { background: var(--ed-bg); color: var(--ed-ink); }

/* choice groups (sep3270.css): already separate pills; the chosen one green (through --sep-*) */
html :is(.seg, .s19-seg, .ms-seg, .v32-seg2, .sa-seg, .jc3250-seg) > button, html .pl7 > .pl7-b { border-width: 1px !important; font-weight: 500; }
html :is(.seg, .ms-seg, .sa-seg, .jc3250-seg) > button:is(.on, [aria-checked="true"], [aria-pressed="true"], [aria-selected="true"]) { font-weight: 500; }

/* tabs: words with a thin green line under the open one */
html .tabs { gap: var(--ed-s5); border-bottom: var(--ed-hair); }
html .tabs button { padding: 10px 0; margin-bottom: -1px; color: var(--ed-body); font-weight: 500; border-bottom: 2px solid transparent; }
html .tabs button:hover { color: var(--ed-ink); }
html .tabs button.on { color: var(--ed-ink); border-bottom-color: var(--ed-accent); }
html .tabs button.on .tn { background: var(--ed-accent); border-color: var(--ed-accent); }

/* tables: thin rules, small grey heads */
html .tbl th, html table.t th { color: var(--ed-muted); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--ed-rule); }
html[dir="rtl"] .tbl th, html[dir="rtl"] table.t th { letter-spacing: 0; text-transform: none; font-size: 13px; }
html .tbl td, html table.t td { border-bottom: var(--ed-hair); }
html .tbl tr.click:hover td { background: var(--ed-soft); }

/* cards: no shadow, a hairline, nearly square */
html .card { box-shadow: none; border: var(--ed-hair); border-radius: var(--ed-r1); background: var(--ed-panel); }
html .card h3 { font-weight: 600; }
html .kpi { border-radius: var(--ed-r1); border: 0; border-top: 1px solid var(--ed-rule); background: transparent; padding-inline: 0; }
html .kpi .v { font-family: var(--ed-serif); font-weight: 400; font-size: 32px; letter-spacing: var(--ed-track-title); }

/* status pills: flat, small */
html .pill { border-radius: var(--ed-pill); font-weight: 500; }
html .badge { border-radius: var(--ed-pill); }

/* titles: the serif, light and tight, in ink (not in the accent) */
html :is(.page-head h1, .modal-head h3, .path-title, .card > h2, .dash-hello, .whatsnew h3, .home-news h2) { font-family: var(--ed-serif); font-weight: 400; letter-spacing: var(--ed-track-title); color: var(--ed-ink); }
html .page-head h1 { font-size: 34px; line-height: 1.1; }
html[dir="rtl"] :is(.page-head h1, .modal-head h3, .path-title, .card > h2, .dash-hello, .whatsnew h3, .home-news h2, .brand b) { font-family: var(--ed-heb); font-weight: 400; letter-spacing: 0; }
html .page-head h1.heb { font-family: var(--ed-heb); font-weight: 400; }
html .sub { color: var(--ed-body); }

/* dialogs: a white sheet with a hairline, no shadow; the actions on a rule */
html .overlay, html .modal-bg { background: var(--ed-scrim); }
html .modal, html .modal-box { border-radius: var(--ed-r1); box-shadow: none; border: 1px solid var(--ed-line); background: var(--ed-panel); }
html .modal-head { padding: 20px 24px 8px; }
html .modal-head h3 { font-size: 24px; }
html .modal-body { padding: 8px 24px 14px; }
html .modal-actions { padding: 14px 24px 18px; border-top: var(--ed-hair); }

/* toasts: ink, quiet */
html .toast { background: var(--ed-ink); color: var(--ed-bg); border-radius: var(--ed-r2); box-shadow: none; }
html .toast.ok { background: var(--ed-ok); color: #fff; } html .toast.bad { background: var(--ed-bad); color: #fff; }
:root[data-theme="dark"] .toast.ok, :root[data-theme="dark"] .toast.bad { color: #121413; }

/* menus that pop from a button (Settings · Help · Sign out) */
html .menu-pop { border-radius: var(--ed-r2); box-shadow: none; border: 1px solid var(--ed-line-2); background: var(--ed-bg); }

/* the upload card (upcard.js): no gradient */
html .upc { border-radius: var(--ed-r2); box-shadow: none; border-color: var(--ed-line-2); }
html .upc-top { background: var(--ed-ink); color: var(--ed-bg); border-bottom: 0; }
html .upc-top .yic, html .upc-top .yi { color: var(--ed-bg); }
html .upc-bar { border-radius: 0; height: 3px; background: var(--ed-line); }
html .upc-bar i { background: var(--ed-accent); border-radius: 0; }
html .upc.done .upc-top { background: var(--ed-ok); }

/* the welcome tour card */
html .tour-card { border: 1px solid var(--ed-ink); border-radius: var(--ed-r1); box-shadow: none; }
html .tour-dots i.on { background: var(--ed-accent); }
html .nav button.tour-on { outline: 1px solid var(--ed-accent); background: var(--ed-accent-soft); }

/* ---------- 5. the app shell ---------- */
/* the side menu: white, a hairline, plain line icons, the open tool in green with a thin green bar */
html #side { background: var(--ed-bg); border-color: var(--ed-line); }
html .brand .logo { box-shadow: none; border-radius: var(--ed-r2); }
html #side .brand { border-bottom-color: var(--ed-line); }
html .brand b { font-family: var(--ed-serif); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--ed-ink); }
html .brand small { color: var(--ed-muted); }
html .side-top { border-bottom-color: var(--ed-line); }
html .nav .sec { font-size: 11.5px; font-weight: 600; letter-spacing: var(--ed-track-label); color: var(--ed-accent); }
html[dir="rtl"] .nav .sec { letter-spacing: 0; font-size: 12.5px; }
html .nav button.nv { border-radius: var(--ed-r1); color: var(--ed-ink); font-weight: 400; }
html .nav button.nv:hover { background: var(--ed-soft); }
html .nav button.nv .ic, html .nav button.nv.t1 .ic, html .nav button.nv.t2 .ic, html .nav button.nv.t3 .ic, html .nav button.nv.t4 .ic { background: transparent; border-color: transparent; border-radius: var(--ed-r1); color: var(--ed-ink); }
html .nav button.nv.on { background: var(--ed-accent-soft); color: var(--ed-accent); font-weight: 500; }
html .nav button.nv.on::before { inset-inline-start: -10px; width: 2px; top: 6px; bottom: 6px; border-radius: 0; background: var(--ed-accent); }
html .nav button.nv.on .ic { border-color: transparent; color: var(--ed-accent); }
html:root .nav button.nv.tool .ic, html:root[data-theme] .nav button.nv.tool .ic, html:root .nav button.nv.tool:hover .ic, html:root .nav button.nv.tool.on .ic { background: transparent; border-color: transparent; color: var(--ed-ink); }
html:root .nav button.nv.tool.on .ic, html:root .nav button.nv.tool.on .ic .yic { color: var(--ed-accent); }
html:root .nav button.nv.tool:hover .ic { color: var(--ed-accent); }
html #side .nv-sub { color: var(--ed-muted); }
@media (min-width: 821px) {
  html #side:hover, html[dir="rtl"] #side:hover { box-shadow: none; border-inline-end: 1px solid var(--ed-line-2); }
  html body:not(.side-pin) #side:not(:hover) .nav .sec::after { background: var(--ed-line); opacity: 1; }
  html body.side-pin .side-pin-btn { color: var(--ed-accent); background: var(--ed-accent-soft); border-color: var(--ed-accent-line); }
}
html .side-foot { border-top-color: var(--ed-line); }
html .acct-btn, html .acct, html .side-status { border-color: var(--ed-line); border-radius: var(--ed-r2); background: var(--ed-bg); }
html .acct-btn:hover { border-color: var(--ed-ink); }
html .avatar { background: var(--ed-accent); color: var(--ed-accent-ink); font-weight: 600; }
html .bal-box { border-radius: var(--ed-r2); background: var(--ed-soft); border-color: var(--ed-line); }
html .bal-bar { border-radius: 0; height: 3px; } html .bal-bar i { background: var(--ed-accent); }
html .sefer-box { border-radius: var(--ed-r1); border-color: var(--ed-line); }
/* the phone bar + drawer */
@media (max-width: 820px) {
  html #mbar { background: var(--ed-bg); border-bottom-color: var(--ed-line); }
  html #mbar b { font-family: var(--ed-serif); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
  html[dir="rtl"] #mbar b { font-family: var(--ed-heb); font-weight: 700; }
  html #side { box-shadow: none; border-inline-end: 1px solid var(--ed-line-2); }
  html body.nav-open #mscrim { background: var(--ed-scrim); }
}
/* the main area */
html #main { background: var(--ed-bg); }
html .page { padding-top: 34px; }

/* Home: "Your documents" as a big editorial title between two rules; What's new as a thin rule list */
html .home-calm { max-width: 1100px; }
html .home-docs { background: transparent; border: 0; border-top: 1px solid var(--ed-rule); border-bottom: var(--ed-hair); border-radius: 0; padding: 40px 0 36px; box-shadow: none; gap: 28px; transform: none; }
html .home-docs:hover { border-color: var(--ed-rule) var(--ed-rule) var(--ed-line); transform: none; box-shadow: none; }
html .home-docs:hover .home-docs-txt b { color: var(--ed-accent); }
html .home-docs-ic { background: transparent; width: 64px; height: 64px; border-radius: 0; }
html .home-docs-ic .yic { color: var(--ed-accent); }
html .home-docs-txt b { font: 400 clamp(36px, 5vw, 56px)/1.02 var(--ed-serif); letter-spacing: var(--ed-track-title); color: var(--ed-ink); margin-bottom: 8px; transition: color .12s; }
html[dir="rtl"] .home-docs-txt b { font-family: var(--ed-heb); font-weight: 400; letter-spacing: 0; }
html .home-docs-txt span { color: var(--ed-body); font-size: 17px; }
html .home-docs-go { color: var(--ed-accent); }
html .ms-card { border: 0; border-bottom: var(--ed-hair); border-radius: 0; padding: 20px 0; margin: 0; background: transparent; box-shadow: none; }
html .ms-card:hover { border-color: var(--ed-line); background: transparent; }
html .ms-card:hover b { color: var(--ed-accent); }
html .ms-card .ms-ic { background: transparent; border-radius: 0; color: var(--ed-accent); width: 48px; height: 48px; }
html .ms-card b { font-family: var(--ed-serif); font-weight: 400; font-size: 24px; letter-spacing: -.01em; }
html[dir="rtl"] .ms-card b { font-family: var(--ed-heb); letter-spacing: 0; }
html .ms-card .ms-go { color: var(--ed-accent); }
html .ms-beta { background: transparent !important; color: var(--ed-accent) !important; border: 1px solid var(--ed-accent-line); }
html .home-news { margin-top: 56px; }
html .home-news h2 { font-size: 30px; margin-bottom: 18px; }
html .news-v { background: transparent; color: var(--ed-accent); border: 1px solid var(--ed-accent-line); }
html .news-cards { gap: 0 40px; border-top: 1px solid var(--ed-rule); grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
html .news-card { background: transparent; border: 0; border-bottom: var(--ed-hair); border-radius: 0; padding: 22px 28px 22px 0; }
html[dir="rtl"] .news-card { padding: 22px 0 22px 28px; }
html .news-card > .yic { color: var(--ed-accent); }
html .news-card b { color: var(--ed-ink); font-size: 16px; font-weight: 600; margin: 6px 0 4px; }
html .news-card p { color: var(--ed-body); font-size: 14px; line-height: 1.55; }
html .news-card .news-x { top: 18px; inset-inline-end: 0; }
html .continue-row { border-radius: var(--ed-r1); border-color: var(--ed-accent-line); }
html .recent-item { border-radius: var(--ed-r1); background: var(--ed-bg); }
html .recent-item:hover { border-color: var(--ed-ink); }
html .door, html .door-lib { box-shadow: none; }
/* the journey strip under a tool's title */
html .journey { border-radius: var(--ed-r1); box-shadow: none; }

/* ---------- 6. the sign-in page ---------- */
html .login-page { background: var(--ed-bg); align-items: flex-start; padding-top: clamp(24px, 10vh, 120px); }
html .login-wrap { max-width: 440px; }
html .login-card.card { border: 0; border-top: 1px solid var(--ed-rule); border-radius: 0; padding: 28px 0 0; background: transparent; }
html .login-brand { margin-bottom: 26px; }
html .login-brand img { border-radius: var(--ed-r2); width: 40px; height: 40px; }
html .login-brand b { font: 600 26px/1.1 var(--ed-serif); letter-spacing: -.01em; }
html[dir="rtl"] .login-brand b, html .login-brand b:lang(he) { font-family: var(--ed-heb); font-weight: 700; }
html .login-brand small { color: var(--ed-muted); font-size: 12.5px; letter-spacing: .02em; }
html .login-lang { border-color: var(--ed-line-2); color: var(--ed-ink); border-radius: var(--ed-pill); padding: 4px 14px; }
html .login-lang:hover { border-color: var(--ed-ink); }
html .login-tabs { margin-bottom: 22px; }
/* the two tabs as separate pills (sep3270.css is not on this page) */
html .login-tabs.seg { display: flex; gap: 8px; border: 0; border-radius: 0; overflow: visible; }
html .login-tabs.seg > button, html[dir="rtl"] .login-tabs.seg > button { border: 1px solid var(--ed-line-2); border-radius: var(--ed-pill); background: transparent; color: var(--ed-ink); padding: 8px 14px; min-height: 40px; }
html .login-tabs.seg > button:hover { border-color: var(--ed-ink); }
html .login-tabs.seg > button.on { background: var(--ed-accent); border-color: var(--ed-accent); color: var(--ed-accent-ink); }
@media (max-width: 520px) { html .login-page { padding-top: 16px; } }
html .login-go { min-height: 46px; font-size: 15px; }
html .login-page .input { min-height: 44px; }
html .web-busy { border-radius: var(--ed-pill); box-shadow: none; border-color: var(--ed-line-2); }

/* ---------- 7. the owner dashboard (admin.html) ---------- */
html .adm-top { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--ed-rule); }
html .adm-top b { font: 400 28px/1.1 var(--ed-serif); letter-spacing: var(--ed-track-title); }
html[dir="rtl"] .adm-top b { font-family: var(--ed-heb); letter-spacing: 0; }
html .adm-logo { border-radius: var(--ed-r2); }
html .adm-tabs { gap: 6px !important; margin-bottom: 22px; }
html .adm-tabs > button { padding: 6px 13px; font-size: 13.5px; }
html .big-switch { border-radius: var(--ed-r1); border-width: 1px; }
html .gf-month { border-radius: var(--ed-r1); }
html code.copy { border-radius: var(--ed-r1); }

/* (3.45.0 join-up) the browser's own "Choose File" button (owner dashboard, a few tool pages): an outline pill, not grey */
html input[type="file"]::file-selector-button { border: 1px solid var(--ed-line-2); background: var(--ed-bg); color: var(--ed-ink); border-radius: var(--ed-pill); padding: 6px 14px; margin-inline-end: 10px; font: inherit; font-size: var(--ed-fs-ui); cursor: pointer; }
html input[type="file"]::file-selector-button:hover { border-color: var(--ed-ink); }
