/* Apadana | the look of www.ariyacon.com: same tokens, same glow, same panels, same pill buttons. */
:root {
  --bg: #0A1424; --bg-2: #0E1A2B; --panel: #111F35; --panel-2: #16284A;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --fg: #F2F5FA; --fg-2: #C9D2E0; --muted: #98A5BA;
  --blue: #2446A8; --blue-hi: #3358D0; --blue-lt: #7C94FF;
  --seed: #FF7A3D; --ok: #5FD3A2; --err: #FF9A92;
  --logo-k: #FFFFFF; --logo-b: #7C94FF; --logo-o: #FF7A3D; --logo-s: #98A5BA;
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px; --r: 22px;
  --card: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)), var(--panel);
  --card-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; background: var(--bg); overflow-x: clip; }
body {
  position: relative; margin: 0; background: var(--bg); color: var(--fg); overflow-x: clip;
  font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .word { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.25rem); font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; margin: 0 0 1.25rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .4rem; letter-spacing: -0.02em; }
h4 { font: 700 .78rem/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--blue-lt); margin: 1.4rem 0 .4rem; }
a { color: var(--blue-lt); text-underline-offset: 3px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--seed); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* The hero glow: blurred blobs in two Ariya blues and a faint ember, in the top area only. */
.glow { position: absolute; inset: 0 0 auto; height: 760px; overflow: hidden; pointer-events: none; z-index: 0; }
.glow span { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .85; }
.glow .b1 { width: 760px; height: 620px; left: 50%; top: -18%; transform: translateX(-50%); background: radial-gradient(rgba(51,88,208,.46), transparent 70%); animation: drift1 19s ease-in-out infinite; }
.glow .b2 { width: 480px; height: 480px; left: 6%; top: 16%; background: radial-gradient(rgba(124,148,255,.2), transparent 70%); animation: drift2 23s ease-in-out infinite; }
.glow .b3 { width: 440px; height: 440px; right: 4%; top: 26%; background: radial-gradient(rgba(255,122,61,.13), transparent 70%); animation: drift1 27s ease-in-out infinite reverse; }
@keyframes drift1 { 0%, 100% { transform: translate(-50%, 0) scale(1); } 50% { transform: translate(calc(-50% - 30px), 28px) scale(1.08); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(44px, -24px) scale(1.06); } }
@media (max-width: 720px) { .glow { height: 560px; } .glow .b1 { width: 520px; height: 460px; } .glow .b2 { width: 320px; height: 320px; } .glow .b3 { width: 300px; height: 300px; } }
@media (prefers-reduced-motion: reduce) { .glow span { animation: none !important; } }

/* Header: lockup, pill nav, Sign out */
.logo .k, .lockup .k { fill: var(--logo-k); } .lockup .b { fill: var(--logo-b); } .lockup .o { fill: var(--logo-o); } .lockup .s { fill: var(--logo-s); }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.7); }
.top-in, main { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wide .top-in, main.wide { max-width: 1280px; }
.top-in { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--fg); text-decoration: none; line-height: 0; margin-right: auto; }
.lockup { height: 34px; width: auto; display: block; flex: none; }
.sep { width: 1px; height: 26px; background: var(--line-2); flex: none; }
.word { font-weight: 700; font-size: 1.15rem; line-height: 1; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--fg-2); text-decoration: none; font: 600 .95rem/1 var(--font-body); transition: background .15s, border-color .15s, color .15s; }
.nav a:hover { color: var(--fg); border-color: var(--blue-lt); background: rgba(124,148,255,.08); }
.nav a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 30px -12px rgba(51,88,208,.9); }
#signout { white-space: nowrap; }
@media (min-width: 720px) { .top-in, main { padding-left: 40px; padding-right: 40px; } }
@media (max-width: 640px) {
  .lockup { height: 28px; } .sep { height: 22px; } .word { font-size: 1.02rem; }
  .brand { gap: .55rem; }
  .nav { order: 3; flex: 1 0 100%; gap: .3rem; }
  .nav a { min-height: 40px; padding: 0 .68rem; font-size: .88rem; }
  #signout { min-height: 40px; padding: 0 .95rem; font-size: .9rem; }
}
/* Signed out: the login card carries its own lockup, so the header stays out of the way. */
.out .top { visibility: hidden; }

/* Buttons: pills, like the site */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 700 1rem/1 var(--font-display); min-height: 48px; padding: 0 1.5rem; border-radius: 999px; border: 1px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { background: var(--blue-hi); border-color: var(--blue-hi); transform: translateY(-1px); }
.btn.primary { box-shadow: 0 10px 30px -10px rgba(51,88,208,.8); }
.btn.ghost, .btn:not(.primary):not(.ghost) { background: transparent; border-color: var(--line-2); color: var(--fg); box-shadow: none; }
.btn.ghost { font-size: .92rem; font-weight: 600; color: var(--fg-2); min-height: 44px; padding: 0 1.15rem; }
.btn.ghost:hover, .btn:not(.primary):not(.ghost):hover { border-color: var(--blue-lt); background: rgba(124,148,255,.08); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* Page head */
main { position: relative; z-index: 1; padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: 5rem; }
.pagetitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 0 0 .9rem; }
.updated { font: 500 .95rem/1.2 var(--font-body); letter-spacing: 0; color: var(--muted); }
.lede { max-width: 44rem; color: var(--fg-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); margin: 0 0 2rem; text-wrap: pretty; }
section + section { margin-top: clamp(2.75rem, 6vw, 4rem); }
.meta, .note, .goal, .empty, label { color: var(--muted); font-size: .95rem; margin: .2rem 0; }
.goal { color: var(--fg-2); }
.empty { padding: .75rem 0; }
.msg { min-height: 1.3em; font-size: .95rem; color: var(--fg-2); margin: .5rem 0 0; }
.eyebrow { font: 700 .78rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-lt); }

/* The waiting on you banner. Its dot is the one ember accent in a view. */
.waiting { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; margin: 0 0 2rem; padding: 1rem 1.4rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px rgba(124,148,255,.06), 0 30px 70px -35px rgba(51,88,208,.55); }
.waiting strong { font: 800 1.05rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.waiting a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--blue-lt); }
.wdot { width: 10px; height: 10px; border-radius: 3px; background: var(--seed); box-shadow: 0 0 0 4px rgba(255,122,61,.15); flex: none; }
.waiting-none .wdot { background: var(--ok); box-shadow: 0 0 0 4px rgba(95,211,162,.15); }
.waiting-none span:last-child { color: var(--muted); }

/* Panels: the your turn boxes, workers, epics, the chart and the org cards */
.turn, .worker, .epic, #chart, .olead {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--card-shadow);
  padding: 1.25rem; margin: 0 0 1.25rem;
}
.turn { box-shadow: 0 0 0 1px rgba(124,148,255,.07), 0 40px 90px -40px rgba(51,88,208,.55); border-color: rgba(124,148,255,.3); }
@media (min-width: 720px) { .turn, .worker, .epic, #chart { padding: 1.75rem; } }
.turn h3 { font-size: 1.3rem; }
.checks { margin: .75rem 0; padding-left: 1.2rem; color: var(--fg-2); }
.checks li { margin: .25rem 0; }
.actions { display: flex; gap: .75rem; margin-top: 1.1rem; }
.actions .btn { flex: 1 1 0; max-width: 11rem; }
form.change { margin-top: 1rem; }
form.change textarea { max-width: none; }
input, textarea {
  display: block; width: 100%; max-width: 28rem; font: 400 1.05rem/1.4 var(--font-body); color: var(--fg); background: var(--bg-2);
  padding: .8rem 1rem; margin: .35rem 0 1rem; border: 1px solid var(--line-2); border-radius: 14px;
}
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 2px; }

/* Login: a centered card on the glow */
#login { display: flex; justify-content: center; padding-top: clamp(1rem, 6vh, 4rem); }
.logincard { width: 100%; max-width: 30rem; padding: 2rem 1.5rem; text-align: center; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 0 0 1px rgba(124,148,255,.07), 0 40px 90px -40px rgba(51,88,208,.6); }
.logincard .lockup-lg { height: 56px; margin: 0 auto 1.25rem; }
.logincard h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.6rem); margin: .5rem 0 1.5rem; }
.logincard label { display: block; text-align: left; font-size: 1rem; color: var(--fg-2); }
.logincard input { max-width: none; font-size: 1.25rem; padding: .9rem 1.1rem; letter-spacing: .2em; }
.logincard .btn { width: 100%; }
.logincard .msg { text-align: center; min-height: 1.4em; }
@media (min-width: 720px) { .logincard { padding: 2.75rem 2.5rem; } }

/* Roadmap and tickets */
.epic header, .worker header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; align-items: baseline; }
.epic { margin-bottom: 1.5rem; }
.bar { display: block; width: 100%; height: 8px; margin: .9rem 0 .6rem; appearance: none; border: 0; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.bar::-webkit-progress-bar { background: var(--panel-2); }
.bar::-webkit-progress-value { background: var(--blue-lt); }
.bar::-moz-progress-bar { background: var(--blue-lt); }
.tickets, .events, .wtasks { list-style: none; margin: 0; padding: 0; }
.t { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .15rem .6rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.tid { color: var(--muted); font-variant-numeric: tabular-nums; }
.ttitle { overflow-wrap: anywhere; }
.tmeta { grid-column: 2 / 4; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.t-done .ttitle { color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.barfill { fill: var(--blue-lt); }
.axis { font: 500 21px var(--font-body); fill: var(--muted); }
.axisline { stroke: var(--line-2); stroke-width: 1; }

/* Badges: ticket status, worker status and team stage share one look. Color follows meaning, never ember. */
.pill, .stage, .tstat { display: inline-flex; align-items: center; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--blue-lt); background: rgba(124,148,255,.08); color: var(--blue-lt); font: 600 .8rem/1.3 var(--font-body); white-space: nowrap; width: fit-content; justify-self: end; }
.pill-paused, .pill-off, .pill-retired, .pill-planned, .pill-idle, .t-queue .tstat, .t-dropped .tstat { border-color: var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); }
.pill-active, .stage-running, .t-done .tstat { border-color: rgba(95,211,162,.5); background: rgba(95,211,162,.08); color: var(--ok); }
.t-blocked .tstat { border-color: rgba(255,154,146,.5); background: rgba(255,154,146,.08); color: var(--err); }

/* Workers */
.wname, .oleadname, .owname { display: flex; align-items: flex-start; gap: .6rem; overflow-wrap: anywhere; }
.wname { align-items: center; }
.ev { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0 .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.evwhen { grid-column: 1 / 3; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.evkind { font-weight: 600; }
.ev-failed .evkind { color: var(--err); }
.evmsg { overflow-wrap: anywhere; }
.wt { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.wttitle { overflow-wrap: anywhere; }
.flag { color: var(--err); font-weight: 600; font-size: .88rem; }
.wtnote { flex-basis: 100%; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

/* Status dots: filled for anything built, an empty ring for planned */
.dot { flex: none; width: 12px; height: 12px; margin-top: .38em; border-radius: 50%; box-sizing: border-box; }
.wname .dot { margin-top: 0; }
.dot-on { background: var(--ok); box-shadow: 0 0 0 4px rgba(95,211,162,.14); }
.dot-paused, .dot-idle { background: var(--muted); box-shadow: none; }
.dot-planned { border: 2px solid var(--muted); background: transparent; }

/* Organization */
.ceo { display: flex; justify-content: center; position: relative; padding-bottom: 1.25rem; }
.ceo::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 1.25rem; background: var(--blue-lt); opacity: .6; }
.ceobox { margin: 0; padding: .95rem 2.4rem; border: 1px solid rgba(124,148,255,.5); border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px rgba(124,148,255,.07), 0 30px 70px -35px rgba(51,88,208,.7); font: 800 1.2rem var(--font-display); letter-spacing: -0.02em; }
.ocols { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.oteam { min-width: 0; }
.olead { margin: 0 0 .8rem; padding: 1.1rem; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), var(--panel-2); border-top: 2px solid var(--blue-lt); box-shadow: 0 0 0 1px rgba(124,148,255,.06), 0 30px 70px -40px rgba(51,88,208,.6); }
.oleadname { font-size: 1.1rem; margin: 0; }
.otitle { margin: .15rem 0 0; color: var(--fg-2); font-size: .95rem; }
.oteamname { margin: .8rem 0 .25rem; font: 700 .78rem/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--blue-lt); }
.ogoal { margin: 0 0 .7rem; color: var(--fg); }
.obadges { margin: 0; }
.ostarts { margin: .55rem 0 0; color: var(--muted); font-size: .9rem; }
.oworkers { display: grid; gap: .6rem; }
.ow { border: 1px solid var(--line); border-radius: 16px; padding: .85rem 1rem; background: var(--panel); }
.owname { margin: 0; font: 600 1rem/1.35 var(--font-display); letter-spacing: -0.01em; text-transform: none; color: var(--fg); }
.owpurpose { margin: .35rem 0 0 1.55rem; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
@media (min-width: 760px) { .ocols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .ocols { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; position: relative; padding-top: 1.25rem; }
  .ocols::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: var(--blue-lt); opacity: .6; }
  .oteam { position: relative; }
  .oteam::before { content: ""; position: absolute; top: -1.25rem; left: 50%; width: 2px; height: 1.25rem; background: var(--blue-lt); opacity: .6; }
}

@media (min-width: 760px) {
  .axis { font-size: 13px; }
  .t { grid-template-columns: 2.5rem 1fr 7.5rem 14rem; }
  .worker .t { grid-template-columns: 2.5rem 1fr 7.5rem 9rem; }
  .tmeta { grid-column: auto; text-align: right; }
  .ev { grid-template-columns: 10.5rem 5.5rem 1fr; }
  .evwhen { grid-column: auto; font-size: .9rem; }
}
.wname, .oleadname, .owname, .wname span, .oleadname span, .owname span { text-wrap: wrap; }
