/* apps/community — Element in the office's palette. Loaded after Element's own sheets (index.html, through nginx).
   Element's colours are Compound's semantic tokens, declared in a cascade layer (@layer compound-tokens); this
   sheet is unlayered, so each line below wins over its layer whatever the selector. Every value names a token of
   the palette block, which follows the reader's device as Element does (use_system_theme, its default). */
/* @bina-theme-tokens:start */
/* OLIVE GROVE — the one palette of the office (the owner, 2026-10-07 · DGO-450). Four hues, sampled
   from his mock-up, and the ground they stand on. A screen never writes a colour: it names one of
   these. Each hue is the colour itself (a FILL — a button, a bar, a dot), «-d» for text and thin
   lines on the ground (4.5:1 or more), «-soft» and «-line» for a tint and its hairline, and «-ink»
   for what is written ON the fill. The role names every screen already uses point at them:
   (no backtick in this block: one of its copies lives inside a script's template string)
     olive  the brand and the main action · what is well, what is done
     sky    what is in motion, what only informs · a link
     lime   look here — a warning, something waiting
     plum   a person must act — a failure, a removal, the one final action
   THE BRAND IS THE LOGO'S GREEN, AND OLIVE IS ONE HUE AMONG THE FOUR (the owner, 2026-11-12, group msg 918:
   «תציע צביעה מחדש לפי הצבעים של הלשכה ולא רק ירוק חייב שזה יהיה בכל מקום»; DGO-1593). The proposal he was sent
   on 11-17 (msgs 1174-1177) led with «חורש עמוק»: the accent, the side bar and the brand's pattern in the logo's
   own colours (its tile on the light ground, its mint on the dark one), the dark ground the logo's deep green
   instead of olive's, and every app in a hue of its own. That is what the accent tokens below say; olive keeps
   «what is well» and its place among the hues, and every screen that names the accent follows by itself.
   Contrast, measured (WCAG): ink on the ground 13.7 · muted 4.65 · light text on olive 5.51 and on
   plum 9.54 · ink on lime 6.88 · its ink on sky 6.32 · sky-d 4.61 · lime-d 4.70 · violet 5.32 ·
   the logo's glyph on its tile (the accent's ink) 7.44 · the accent's text step, the tile a shade deeper so a
   hover or a press still moves: on the ground 8.88, on a card 9.71, on its own tint 7.90 · on the side bar its
   ink 7.00, its muted 6.15 ·
   on the desk: its ink 6.32 (dark: 13.96), and 11.2 where the sky pales (dark: 5.12). */
:root,:root[data-theme="light"]{
  color-scheme:light;
  accent-color:var(--accent);   /* the browser's OWN controls - a checkbox, a radio, a range, a progress bar - on both grounds: said once, here (it was said for eight single controls, and every other one was the browser's blue) */
  --bg:#f3f5f7; --surface:#fff; --surface-2:#f9fafb; --ink:#1f2a17; --muted:#6a7068; --line:#dcdfde;
  /* THE OFFICE'S LOGO HAS THESE THREE COLOURS AND NO OTHER, on every ground and in every theme (the owner, 2026-11-15,
     group msgs 1103-1104: «From now on this is the only colors you use in logo replace evrywhere and never use diffrent
     colors» - the logo of digital-office.co.il; DGO-1908). The dark blocks below do not redefine them on purpose. */
  --mark-tile:#1b5e4a; --mark-glyph:#fbfcfc; --mark-accent:#7ecfad;
  --olive:#56693f; --olive-d:#475734; --olive-soft:#e7eae4; --olive-line:#bfc6b6; --olive-ink:#f3f5f7;
  --sky:#7baae3; --sky-d:#2a6fc4; --sky-soft:#edf3fb; --sky-line:#cddff4; --sky-ink:#13263f;
  --lime:#a9b84c; --lime-d:#69732e; --lime-soft:#f3f5e6; --lime-line:#dee4bb; --lime-ink:#1f2a17;
  --plum:#5b3349; --plum-d:#4a303b; --plum-soft:#e8e2e6; --plum-line:#c1b1ba; --plum-ink:#f3f5f7;
  --accent:var(--mark-tile); --accent-d:#164d3d; --accent-soft:#d3eee2; --accent-line:#c4e9d8; --accent-ink:var(--mark-glyph);
  --blue:var(--sky-d); --amber:var(--lime-d); --red:var(--plum);
  --violet:#7c5c6d;   /* plum, lifted a fifth toward white: someone has to look — nothing has failed */
  --ok:var(--olive); --warn:var(--lime-d); --danger:var(--plum); --info:var(--sky-d);
  --ok-soft:var(--olive-soft); --warn-soft:var(--lime-soft); --danger-soft:var(--plum-soft); --info-soft:var(--sky-soft);
  --red-soft:var(--plum-soft); --amber-soft:var(--lime-soft); --blue-soft:var(--sky-soft); --violet-soft:var(--plum-soft);
  --side:var(--accent); --side-ink:#f3f5f7; --side-mut:#d4ece1; --side-line:#538676;
  --desk:var(--sky); --desk-ink:var(--sky-ink);   /* desktop mode's ground is the sky (the owner, DGO-452), and what is written straight on it */
  --scrim:rgba(31,42,23,.5);                      /* what dims a screen behind a pop-up */
  --shadow:0 1px 3px rgba(31,42,23,.08),0 6px 24px rgba(31,42,23,.06);
  --shadow-lg:0 20px 60px rgba(31,42,23,.28);
  /* ONE COLOUR AND ONE ANIMAL PER OFFICE (the owner, 2026-10-09 · flt-002). When offices are linked,
     a person reads WHICH office a thing belongs to without opening it, so each office gets a hue of
     its own. The hue is an IDENTITY and never a health state: an office that stopped answering keeps
     its colour, and the quiet mark is the one that says "not answering". Each is an ALIAS of the
     palette's own hue — no fourth value is invented, and because the ground re-points the hue, the
     office mark follows the ground by itself. Each office's animal (elephant, deer, eagle) is a
     glyph of bina-icons.js. */
  --office-hp:var(--muted);   /* hp · elephant — grey: the heavy laptop at home, in the palette's own grey */
  --office-mac:var(--lime);   /* macbook · deer — yellow: the palette has one yellow and it is lime. A FILL, so what is written ON it is --lime-ink, never this */
  --office-vps:var(--sky-d);  /* vps · eagle — deep sky blue, «the eagle in the clouds». THE OWNER'S OWN CHOICE (2026-10-09, in writing: vps = נשר + כחול-שמיים) — this line is the colour he picked, not a default kept for him */
}

/* ── A LINKED OFFICE'S MARK, BY NAME (flt-004) ───────────────────────────────────────────────
   The link carries a NAME — mark: {color, animal} in the catalog, from the office's own identity
   — and never a value: the office that DRAWS a linked tile owns the pixels, so it paints the name
   with its own palette. These seven rules are that translation, one per family above; a screen sets
   data-office-hue="lime" and paints var(--office-hue).
   A name this file does not know paints nothing, which is why the vocabulary in
   apps/dgo-extend/identity.py may only name families that exist here — and why --red and --ok
   are not among them: they mean «danger» and «it is well» on every screen in the office. */
[data-office-hue="grey"]   { --office-hue:var(--muted); }
[data-office-hue="lime"]   { --office-hue:var(--lime); }
[data-office-hue="sky"]    { --office-hue:var(--sky-d); }
[data-office-hue="olive"]  { --office-hue:var(--olive-d); }
[data-office-hue="plum"]   { --office-hue:var(--plum); }
[data-office-hue="blue"]   { --office-hue:var(--blue); }
[data-office-hue="violet"] { --office-hue:var(--violet); }
/* the dark ground is the same four hues on the logo's deep green, and the SAME legend. Olive on that
   ground is 2.5:1, so its text step there is olive LIFTED — its own hue and saturation, lighter (7.49
   on a card, 4.82 on its own tint) — and «it is well» takes that step; the brand and the main action
   take the logo's mint (8.55 on a card, 5.89 on its own tint, the card on it 8.55). The ground itself,
   measured: ink 16.42 on it and 14.40 on a card · muted 8.54 and 7.49.
   Lime stays «look here» and the sky «in motion», as on the light ground: were lime the accent here
   (it was, for a day), a warning, a selection and «it is well» were one colour. Each «-d» on its
   own «-soft» there, measured: olive 4.82 · sky 4.62 · lime 4.63 · plum 4.71. */
@media (prefers-color-scheme:dark){
  :root{ color-scheme:dark;
         --bg:#0f1915; --surface:#172620; --surface-2:#13201b; --ink:#f3f5f7; --muted:#a9b6af; --line:#2d4239;
         --olive-d:#a5ba8c; --olive-soft:#384629; --olive-line:#56693f;
         --sky-d:#7baae3; --sky-soft:#2e3f38; --sky-line:#4d6a8c;
         --lime-d:#a9b84c; --lime-soft:#3b4622; --lime-line:#69732e;
         --plum-d:#ad99a4; --plum-soft:#402f33; --plum-line:#7c5c6d;
         --accent:var(--mark-accent); --accent-d:var(--mark-accent); --accent-soft:#1f4436; --accent-line:var(--mark-tile); --accent-ink:var(--surface);
         --red:#ad99a4; --violet:#bdadb6; --danger:#ad99a4; --ok:var(--olive-d); --side:var(--surface);
         --desk:var(--sky-ink); --desk-ink:var(--ink); --scrim:rgba(0,0,0,.6);
         --shadow:0 1px 3px rgba(0,0,0,.4),0 6px 24px rgba(0,0,0,.3);
         --shadow-lg:0 20px 60px rgba(0,0,0,.55); }
}
:root[data-theme="midnight"]{
  color-scheme:dark;
  --bg:#0f1915; --surface:#172620; --surface-2:#13201b; --ink:#f3f5f7; --muted:#a9b6af; --line:#2d4239;
  --olive-d:#a5ba8c; --olive-soft:#384629; --olive-line:#56693f;
  --sky-d:#7baae3; --sky-soft:#2e3f38; --sky-line:#4d6a8c;
  --lime-d:#a9b84c; --lime-soft:#3b4622; --lime-line:#69732e;
  --plum-d:#ad99a4; --plum-soft:#402f33; --plum-line:#7c5c6d;
  --accent:var(--mark-accent); --accent-d:var(--mark-accent); --accent-soft:#1f4436; --accent-line:var(--mark-tile); --accent-ink:var(--surface);
  --red:#ad99a4; --violet:#bdadb6; --danger:#ad99a4; --ok:var(--olive-d); --side:var(--surface);
  --desk:var(--sky-ink); --desk-ink:var(--ink); --scrim:rgba(0,0,0,.6);
  --shadow:0 1px 3px rgba(0,0,0,.4),0 6px 24px rgba(0,0,0,.3);
  --shadow-lg:0 20px 60px rgba(0,0,0,.55);
}
/* THE KEYBOARD'S RING - what the browser draws around the stop the keyboard is on, in the palette, wherever
   a part draws none of its own. It has no specificity at all (:where), so any rule of a part wins. Two
   screens said this for themselves; on the others nearly every stop wore the browser's ring (DGO-455).
   A field keeps the offset it has - fourteen rules draw a field's own outline and say no offset. An area
   (a scroll box, a table) takes the ring inside, where nothing clips it; a control takes it outside,
   where a filled button does not hide it. */
:where(:focus-visible){outline:2px solid var(--accent)}
:where(:focus-visible:not(a,button,summary,[role=button],input,select,textarea)){outline-offset:-2px}
:where(a,button,summary,[role=button]):focus-visible{outline-offset:2px}
/* HEBREW AT A HEAVY WEIGHT - on Windows, where the first family of --font is installed. "Segoe UI" has its
   Hebrew in Light, Regular, Semibold and Bold. Asked for 800 or 900 the browser takes the family's Black
   face, which has none, and so has every family after it - so the Hebrew of every title at 800 was drawn in
   the system's last-resort serif, thin, beside Latin in Black: «חשבונות ומראות» at 20px is 150px wide at 700
   and 120px at 800 (Chrome 154; the screens ask for 800 in 167 places, the question's title among them).
   These faces give the family's HEBREW RANGE the faces that have it. A family a sheet names is no longer the
   system's for those characters, so every weight and both styles are named, each as the system resolves it:
   measured, only upright 800 and 900 change. Any other character is not theirs and goes on to the next
   family the screen names - system-ui in --font, on Windows the same faces, Black included - which is why
   G27 asks that system-ui follows wherever a screen names this family itself. Where the family is not
   installed nothing here resolves and nothing changes. */
@font-face{font-family:"Segoe UI";src:local("Segoe UI Light");font-weight:100 300;unicode-range:U+0590-05FF,U+FB1D-FB4F}
@font-face{font-family:"Segoe UI";src:local("Segoe UI");font-weight:400;unicode-range:U+0590-05FF,U+FB1D-FB4F}
@font-face{font-family:"Segoe UI";src:local("Segoe UI Semibold");font-weight:500 600;unicode-range:U+0590-05FF,U+FB1D-FB4F}
@font-face{font-family:"Segoe UI";src:local("Segoe UI Bold");font-weight:700 900;unicode-range:U+0590-05FF,U+FB1D-FB4F}
@font-face{font-family:"Segoe UI";src:local("Segoe UI Light Italic");font-weight:100 300;font-style:italic;unicode-range:U+0590-05FF,U+FB1D-FB4F}
@font-face{font-family:"Segoe UI";src:local("Segoe UI Italic");font-weight:400;font-style:italic;unicode-range:U+0590-05FF,U+FB1D-FB4F}
@font-face{font-family:"Segoe UI";src:local("Segoe UI Semibold Italic");font-weight:500 600;font-style:italic;unicode-range:U+0590-05FF,U+FB1D-FB4F}
@font-face{font-family:"Segoe UI";src:local("Segoe UI Bold Italic");font-weight:700 900;font-style:italic;unicode-range:U+0590-05FF,U+FB1D-FB4F}
/* @bina-theme-tokens:end */

:root,[class*=cpd-theme-]{
  /* the brand and the main action */
  --cpd-color-bg-action-primary-rest:var(--accent);
  --cpd-color-bg-action-primary-hovered:var(--accent-d);
  --cpd-color-bg-action-primary-pressed:var(--accent-d);
  --cpd-color-text-on-solid-primary:var(--accent-ink);
  --cpd-color-icon-on-solid-primary:var(--accent-ink);
  --cpd-color-bg-accent-rest:var(--accent);
  --cpd-color-bg-accent-hovered:var(--accent-d);
  --cpd-color-bg-accent-pressed:var(--accent-d);
  --cpd-color-bg-accent-selected:var(--accent-soft);
  --cpd-color-text-action-accent:var(--accent-d);
  --cpd-color-icon-accent-primary:var(--accent);
  --cpd-color-icon-accent-tertiary:var(--accent);
  --cpd-color-border-focused:var(--accent);
  /* the ground and what is written on it */
  --cpd-color-bg-canvas-default:var(--surface);
  --cpd-color-bg-subtle-secondary:var(--bg);
  --cpd-color-text-primary:var(--ink);
  --cpd-color-text-secondary:var(--muted);
  --cpd-color-border-interactive-secondary:var(--line);
  /* a link informs: the sky */
  --cpd-color-text-link-external:var(--sky-d);
  /* failed, a removal: plum */
  --cpd-color-bg-critical-primary:var(--danger);
  --cpd-color-text-critical-primary:var(--danger);
  --cpd-color-icon-critical-primary:var(--danger);
  /* what is well: olive */
  --cpd-color-text-success-primary:var(--ok);
  --cpd-color-icon-success-primary:var(--ok);
  --cpd-color-bg-success-subtle:var(--ok-soft);
}

/* The welcome page (welcome.html, for someone not signed in) and the home page (home.html, signed in): Element's
   embedded pages. Its sanitizer drops every class of such a page, so their parts are reached through Element's own
   wrappers (.mx_WelcomePage_body, .mx_HomePage_body) and by what they are: the mark by its file, an action by
   where it goes. */
:is(.mx_WelcomePage_body,.mx_HomePage_body)>div{max-width:30rem;margin:0 auto;padding:2.5rem 1.25rem;text-align:center;color:var(--ink)}
:is(.mx_WelcomePage_body,.mx_HomePage_body) img[src^="brand/"]{display:block;inline-size:4.5rem;block-size:4.5rem;margin:0 auto 1.25rem}
:is(.mx_WelcomePage_body,.mx_HomePage_body) img[src="brand/logo-dark.svg"]{display:none}
@media (prefers-color-scheme:dark){
  :is(.mx_WelcomePage_body,.mx_HomePage_body) img[src="brand/logo.svg"]{display:none}
  :is(.mx_WelcomePage_body,.mx_HomePage_body) img[src="brand/logo-dark.svg"]{display:block}
}
:is(.mx_WelcomePage_body,.mx_HomePage_body) h1{font-size:1.6rem;font-weight:700;margin:0 0 .5rem;color:var(--ink)}
:is(.mx_WelcomePage_body,.mx_HomePage_body) p{font-size:1rem;line-height:1.6;margin:0 0 1.5rem;color:var(--muted)}
.mx_WelcomePage_body a[href="#/register"],.mx_WelcomePage_body a[href="#/login"],.mx_HomePage_body a[href^="#/room/"]{display:block;margin-block-end:.75rem;padding:.8rem 1rem;border-radius:.6rem;font-size:1.05rem;font-weight:600;text-decoration:none}
.mx_WelcomePage_body a[href="#/register"],.mx_HomePage_body a[href^="#/room/%23lobby"]{background:var(--accent);color:var(--accent-ink)}
.mx_WelcomePage_body a[href="#/register"]:hover,.mx_HomePage_body a[href^="#/room/%23lobby"]:hover{background:var(--accent-d)}
.mx_WelcomePage_body a[href="#/login"],.mx_HomePage_body a[href^="#/room/"]:not([href^="#/room/%23lobby"]){border:1px solid var(--line);color:var(--accent-d);background:var(--surface)}
.mx_WelcomePage_body p:last-child{font-size:.85rem;margin-top:1.5rem}
