/* TUITA's visual identity for every interface (Lab, Opérateur, Client): the user's request of 2026-12-01.
   The same values as uploader/brand/__init__.py (COLOURS); tests/test_brand.py checks they agree. */
@font-face { font-family:"Inter"; font-style:normal; font-weight:100 900; font-display:swap;
  src:url(/static/vendor/inter/inter-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:100 900; font-display:swap;
  src:url(/static/vendor/inter/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range:U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --tuita-navy:#073148; --tuita-navy-deep:#031f2e; --tuita-orange:#f75c03; --tuita-orange-dark:#c44400; --tuita-ice:#abcddf;
  --tuita-ink:#073148; --tuita-muted:#56717f; --tuita-line:#d7e1e8; --tuita-surface:#ffffff; --tuita-background:#fcfcff;
  --tuita-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.tuita-logo { display:inline-block; height:28px; aspect-ratio:745/182; background:var(--tuita-navy);
  -webkit-mask:url(/static/logo-tuita.png) center / contain no-repeat; mask:url(/static/logo-tuita.png) center / contain no-repeat }
.tuita-footer { font:12px/1.4 var(--tuita-sans); color:var(--tuita-muted); text-align:center; padding:14px 16px;
  border-top:1px solid var(--tuita-line); margin-top:24px }
.tuita-footer.tuita-footer-corner { position:fixed; left:12px; bottom:8px; z-index:40; margin:0; padding:2px 8px; border:0;
  border-radius:8px; background:rgb(255 255 255 / .75); font-size:11px; pointer-events:none }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .tuita-footer { color:#a9c0cc; border-color:#1d4d66 } }   /* pages without theme.js only */

/* flying3d, the product's name (her words of 2026-12-03), beside TUITA's logo: « [TUITA] | flying3d ». A text wordmark
   in Inter, navy (white on a navy bar), no invented graphic: a real logo replaces this one rule later (brand.PRODUCT). */
.flying3d { display:inline-block; font:800 19px/1 var(--tuita-sans); letter-spacing:-.03em; color:var(--tuita-navy);
  padding-left:12px; border-left:1px solid var(--tuita-line); white-space:nowrap; text-decoration:none }
.flying3d-mark { display:inline-flex; align-items:center; gap:12px; text-decoration:none }
.on-navy .flying3d, .flying3d.on-navy { color:#fff; border-left-color:rgb(255 255 255 / .35) }

/* Dark / light theme (her rule of 2026-12-03, relayed by webodm-f2: a switch everywhere, dark by default, dark is TUITA's
   navy, never grey nor black). Set on <html data-theme> by /static/brand/theme.js before the page paints; a page reads
   these tokens only. Orange stays for actions, in both themes. Pages without theme.js keep the :root values above. */
[data-theme="dark"] {
  color-scheme:dark;
  --tuita-bg:#03202f; --tuita-panel:#073148; --tuita-panel-2:#0b3c57; --tuita-panel-hover:#0f4664;
  --tuita-text:#eef5f9; --tuita-text-2:#a8c3d1; --tuita-border:#1a4a64; --tuita-border-strong:#2b5f7c;
  --tuita-header:#031a27; --tuita-header-text:#ffffff;
  --tuita-action:#f75c03; --tuita-action-hover:#ff7a2b; --tuita-action-text:#ffffff; --tuita-focus:#ffb07a;
  --tuita-ok:#5fd39a; --tuita-ok-bg:rgb(95 211 154 / .14); --tuita-wait:#ffd27a; --tuita-wait-bg:rgb(255 210 122 / .14);
  --tuita-busy:#abcddf; --tuita-busy-bg:rgb(171 205 223 / .14); --tuita-off:#8aa6b5; --tuita-off-bg:rgb(138 166 181 / .14);
  --tuita-shadow:0 1px 2px rgb(0 0 0 / .35), 0 8px 24px rgb(0 0 0 / .25);
}
[data-theme="light"] {
  color-scheme:light;
  --tuita-bg:#f3f6f9; --tuita-panel:#ffffff; --tuita-panel-2:#eef3f7; --tuita-panel-hover:#e6eef4;
  --tuita-text:#073148; --tuita-text-2:#4f6b7a; --tuita-border:#d7e1e8; --tuita-border-strong:#b9cad6;
  --tuita-header:#073148; --tuita-header-text:#ffffff;
  --tuita-action:#f75c03; --tuita-action-hover:#c44400; --tuita-action-text:#ffffff; --tuita-focus:#c44400;
  --tuita-ok:#16683a; --tuita-ok-bg:#e3f4ea; --tuita-wait:#7a4f00; --tuita-wait-bg:#fff2d2;
  --tuita-busy:#1f5f86; --tuita-busy-bg:#e2eff7; --tuita-off:#56717f; --tuita-off-bg:#edf1f4;
  --tuita-shadow:0 1px 2px rgb(7 49 72 / .06), 0 6px 18px rgb(7 49 72 / .07);
}
/* :where keeps these as weak as a plain « body »: a page's own body rule (the viewer's dark stage) still wins */
:where([data-theme]) body { background:var(--tuita-bg); color:var(--tuita-text) }
[data-theme] .tuita-footer { color:var(--tuita-text-2); border-color:var(--tuita-border) }
[data-theme="dark"] .tuita-footer.tuita-footer-corner { background:rgb(3 32 47 / .75) }
.tuita-theme { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; cursor:pointer;
  border:1px solid rgb(255 255 255 / .3); background:transparent; color:var(--tuita-header-text, #fff); padding:0 }
.tuita-theme:hover { background:rgb(255 255 255 / .1) }
.tuita-theme:focus-visible { outline:2px solid var(--tuita-focus); outline-offset:2px }
.tuita-theme svg { width:18px; height:18px }
