/* © 2026 HOOMAHOO (www.hoomahoo.com). All rights reserved.
   The core's look until the web UI kit (/ui/v1/, P7): the approved values of docs/UI_KITS_COMPARISON.md.
   Fonts: Noto Sans (Latin) and Noto Naskh Arabic (Arabic), variable weights, served from /static/fonts/ under the
   SIL Open Font License 1.1 (fonts/OFL.txt; The Noto Project Authors). */
@font-face {
  font-family: 'Noto Sans';
  src: url('/static/fonts/NotoSans-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('/static/fonts/NotoNaskhArabic-arabic.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
:root {
  --bg: #1A1A1D;
  --card: #242428;
  --surface: #2E2E33;
  --border: #3A3A40;
  --band: #141417;
  --gold: #F1B811;
  --gold-pressed: #DDA60D;
  --on-gold: #000000;
  --text: #E6E6E9;
  --muted: #A0A0A5;
  --error: #FF5555;
  --success: #6BCB77;
}
/* As DOCFLOW (owner, 7 Nov 2026, STATUS decision 118): dark scroll bars and form controls, 2 px corners. */
:root { color-scheme: dark; scrollbar-color: var(--border) var(--bg); }
/* A browser-filled field stays grey, not white. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--surface) inset; transition: background-color 9999s; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Noto Sans', 'Noto Naskh Arabic', Arial, sans-serif; font-size: 16px; line-height: 1.5; }
html[lang="ar"] body { font-family: 'Noto Naskh Arabic', 'Noto Sans', Tahoma, Arial, sans-serif; font-size: 17px; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px;
  background: var(--band); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--gold);
  text-decoration: none; }
.brand img { height: 28px; width: auto; display: block; }
.lang-switch { text-decoration: none; }
.page { max-width: 460px; margin: 40px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 2px; padding: 24px; }
h1 { font-size: 22px; margin: 0 0 8px; }
.muted { color: var(--muted); }
label { display: block; margin: 16px 0 6px; }
input[type="email"], input[type="text"] { width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 2px; }
input[dir="ltr"] { text-align: left; }
.cf-turnstile { margin-top: 16px; }
button { font: inherit; cursor: pointer; border-radius: 2px; padding: 10px 18px; margin-top: 16px; }
button.primary { background: var(--gold); color: var(--on-gold); border: 1px solid var(--gold); font-weight: 600; }
button.primary:active { background: var(--gold-pressed); }
.msg { padding: 10px 12px; border-radius: 2px; background: var(--surface); border: 1px solid var(--border); }
.msg.error { color: var(--error); border-color: var(--error); }
.msg.success { color: var(--success); border-color: var(--success); }
.aside { margin: 20px 0 0; color: var(--muted); }
button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.device-code { font-size: 28px; letter-spacing: 0.15em; font-weight: 700; color: var(--gold); margin: 8px 0; }
.qr { margin: 12px 0; }
.qr img { display: block; border-radius: 2px; }
.secret { font-family: Consolas, 'Courier New', monospace; font-size: 17px; letter-spacing: 0.05em; color: var(--gold); }
.recovery-codes { font-family: Consolas, 'Courier New', monospace; font-size: 18px; columns: 2; margin: 12px 0;
  padding-inline-start: 28px; }
.recovery-codes li { margin: 4px 0; }
a.button { display: inline-block; text-decoration: none; border-radius: 2px; padding: 10px 18px; font-weight: 600; }
a.button.primary { background: var(--gold); color: var(--on-gold); }
.page:has(.account) { max-width: 640px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 12px 0 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--muted); text-decoration: none; border-radius: 2px 2px 0 0; }
.tabs a[aria-current="page"] { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.account h2 { font-size: 17px; margin: 26px 0 6px; }
.account select, .account input[type="number"] { font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 2px; padding: 8px 10px; max-width: 100%; }
.account input.short, .account input[type="number"] { width: 9em; }
.value { margin: 0; }
.sessions { padding-inline-start: 20px; color: var(--muted); }
.sessions li { margin: 6px 0; }
button.danger { background: #B23B3B; color: var(--text); border: 1px solid #B23B3B; }
button.danger:active { background: #8F2E2E; }
.page:has(.console) { max-width: 1100px; }
.console table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.console th, .console td { text-align: start; padding: 6px 8px; border-bottom: 1px solid var(--border);
  vertical-align: top; }
.console th { color: var(--muted); font-weight: 600; }
.console table.log td { font-size: 14px; }
.console tr.failed td { color: var(--error); }
.console .nowrap { white-space: nowrap; }
.console form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.console form.inline button { margin-top: 0; }
.console input[type="search"], .console input[type="text"], .console input[type="email"], .console textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 2px;
  padding: 8px 10px; max-width: 100%; }
.console textarea { width: 100%; }
.console input#subject { width: 100%; }
button.small { padding: 4px 10px; font-size: 14px; }
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.figures div { background: var(--surface); border: 1px solid var(--border); border-radius: 2px; padding: 10px 12px; }
.figures div.alert { border-color: var(--error); }
.figures strong { display: block; font-size: 24px; color: var(--gold); }
.figures span { color: var(--muted); font-size: 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { margin: 6px 0; }
.mail-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 2px; padding: 12px 16px; }
.mail-preview .subject { font-weight: 700; margin: 0 0 8px; }
@media (max-width: 700px) { .console table.log td:nth-child(5) { display: none; } }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; }
label.check input { margin-top: 5px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.legal-links { margin: 6px 0 0; font-size: 15px; }
.page:has(.legal) { max-width: 760px; }
.legal h1 { font-size: 24px; }
.legal h2 { font-size: 18px; margin: 24px 0 6px; }
.legal li { margin: 4px 0; }
.legal .owner-to-set { color: var(--gold); }
/* The apps ribbon (owner, 7 Nov 2026): the full width under the top bar, as the website's ribbon (its site.css):
   the apps in one row, square tiles with the logo and the name beneath. */
.ribbon { --tile: 88px; display: flex; flex-wrap: wrap; align-items: stretch; min-height: var(--tile);
  background: var(--card); border-bottom: 1px solid var(--border); padding: 0 16px; }
.tile-btn { width: var(--tile); height: var(--tile); background: var(--card); color: var(--muted); display: flex;
  flex-direction: column; align-items: center; justify-content: flex-start; padding: 12px 4px 0;
  text-decoration: none; }
.tile-btn:hover { background: var(--surface); }
.tile-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tile-btn .icon { color: var(--gold); font-size: 24px; line-height: 1; height: 40px; display: flex;
  align-items: center; }
.tile-btn .app-logo { display: block; width: 40px; height: 40px; object-fit: contain; }
.tile-btn .label { font-size: 12px; line-height: 1.2; margin-top: 6px; text-align: center; }
html[lang="ar"] .tile-btn .label { font-size: 14px; margin-top: 4px; }
@media (max-width: 600px) { .ribbon { --tile: 80px; padding: 0 8px; } }
/* Butting up to the top bar (owner, 7 Nov 2026), and the page close under it, to save space. */
.topbar:has(+ .ribbon) { border-bottom: 0; }
.ribbon + .page { margin-top: 20px; }
