/* Shared by the sign-in page and the workspace: fonts, color tokens and the signature pieces of the design
   (gold orb, halo, glossy pill buttons). Taken from the Orism workspace reference design. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/public/fonts/eb-garamond-400.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/public/fonts/eb-garamond-500.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/public/fonts/eb-garamond-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/public/fonts/manrope.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/public/fonts/ibm-plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/public/fonts/ibm-plex-mono-500.woff2) format("woff2"); }
/* Arabic text in documents and entries; only Arabic characters use it. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(/public/fonts/ibm-plex-sans-arabic-400.ttf) format("truetype"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/public/fonts/ibm-plex-sans-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #F4EEE1; --bg-glow: #FBF1D2; --surface: #FBF8F1; --surface-2: #F6F0E3; --raised: #FFFDF8;
  --line: #E6DCC6; --line-soft: #EFE7D6; --grid: rgba(160,130,70,.14);
  --ink: #2A251E; --ink-2: #5B5246; --ink-3: #736A5C;
  --gold-1: #F3D78F; --gold-2: #DDA94A; --gold-3: #B9842C; --gold-ink: #8A5E18;
  --gold-text: linear-gradient(180deg,#B47F26 0%,#9A6A1E 55%,#7E5414 100%);
  --ember: #B9452C; --ember-soft: #FBE3DA; --live: #4F9A6A; --live-soft: #DCEFE2;
  --btn-top: #5C5750; --btn-bot: #2C2823; --btn-ink: #FBF8F1;
  --shadow-panel: 0 1px 0 rgba(255,255,255,.7) inset, 0 24px 60px -36px rgba(90,64,20,.35);
  --shadow-card: 0 1px 0 rgba(255,255,255,.8) inset, 0 8px 24px -18px rgba(90,64,20,.35);
  --orb: radial-gradient(circle at 35% 30%, #FFF8E2 0%, #F6DC97 35%, #DDA94A 70%, #B9842C 100%);
  --r-panel: 20px; --r-card: 14px; --r-ctl: 10px;
  --serif: "EB Garamond", "IBM Plex Sans Arabic", Georgia, serif;
  --sans: "Manrope", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #12100C; --bg-glow: #2A2112; --surface: #1A1712; --surface-2: #211D17; --raised: #25211A;
  --line: #322C22; --line-soft: #29241C; --grid: rgba(221,169,74,.10);
  --ink: #F1E9D8; --ink-2: #C4B9A5; --ink-3: #9C927F; --gold-ink: #E8C06A;
  --gold-text: linear-gradient(180deg,#F6DE9E 0%,#E3B65A 60%,#C99232 100%);
  --ember: #F07A5C; --ember-soft: #3A1F17; --live: #6FC28C; --live-soft: #173323;
  --btn-top: #F1E9D8; --btn-bot: #CDBF9F; --btn-ink: #1A1712;
  --shadow-panel: 0 0 0 1px rgba(255,255,255,.02) inset, 0 24px 60px -30px rgba(0,0,0,.7);
  --shadow-card: 0 10px 24px -18px rgba(0,0,0,.8);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #12100C; --bg-glow: #2A2112; --surface: #1A1712; --surface-2: #211D17; --raised: #25211A;
  --line: #322C22; --line-soft: #29241C; --grid: rgba(221,169,74,.10);
  --ink: #F1E9D8; --ink-2: #C4B9A5; --ink-3: #9C927F; --gold-ink: #E8C06A;
  --gold-text: linear-gradient(180deg,#F6DE9E 0%,#E3B65A 60%,#C99232 100%);
  --ember: #F07A5C; --ember-soft: #3A1F17; --live: #6FC28C; --live-soft: #173323;
  --btn-top: #F1E9D8; --btn-bot: #CDBF9F; --btn-ink: #1A1712;
  --shadow-panel: 0 0 0 1px rgba(255,255,255,.02) inset, 0 24px 60px -30px rgba(0,0,0,.7);
  --shadow-card: 0 10px 24px -18px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-3); }
.eyebrow { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.gold-text { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons: the glossy pill is the primary action. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.btn .icon { width: 15px; height: 15px; }
.btn-primary { background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); color: var(--btn-ink); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px rgba(40,30,15,.55); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--raised); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { color: var(--ember); }
.btn:disabled { opacity: .55; cursor: progress; filter: none; }

/* The orb: a status indicator. It breathes while an agent is working. */
.orb { display: inline-block; width: var(--s, 56px); height: var(--s, 56px); flex: none; border-radius: 50%; background: var(--orb);
  box-shadow: 0 0 0 1px rgba(185,132,44,.25), 0 0 40px 6px rgba(243,215,143,.55), 0 10px 30px -6px rgba(185,132,44,.5); }
.orb.working { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(185,132,44,.35), 0 0 64px 16px rgba(243,215,143,.75), 0 10px 30px -6px rgba(185,132,44,.5); transform: scale(1.04); } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; color: var(--ink); }
.brand .orb { --s: 22px; box-shadow: 0 0 14px 2px rgba(243,215,143,.6); }

/* The halo: a slowly turning compass drawn behind welcome areas. Decorative only. */
.halo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--gold-3); }
.halo svg { position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; max-width: none; opacity: .55; transform: translate(-50%, -50%); animation: spin 180s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.crescent { width: 54px; height: 54px; position: relative; margin: 0 auto 18px; }
.crescent::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orb); box-shadow: 0 0 50px 10px rgba(243,215,143,.6); }
.crescent::after { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-glow); left: 16px; top: -6px; }

.field, .input, select.field, textarea.field { width: 100%; min-height: 42px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--raised); color: var(--ink); }
textarea.field { padding: 10px 14px; line-height: 1.5; resize: vertical; }
.field:focus, .input:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
