/* Upscaleads Workspace
   Design tokens, typefaces (Sora + Manrope) and motifs follow upscaleads.ae:
   night-blue surfaces, the eight-point star pattern, the red point, pill buttons. */

@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --blue: #123E85;
  --blue-d: #0A2658;
  --blue-t: #E7ECF5;
  --blue-hi: #2F6BFF;
  --red: #D0111B;
  --red-d: #A30D15;
  --red-t: #FBE8E9;
  --paper: #F3F3F0;
  --card: #FFFFFF;
  --stone: #E8E8E3;
  --ink: #0B1120;
  --ink-2: #1B2334;
  --text: #0B1120;
  --muted: #586074;
  --faint: #868C9B;
  --line: rgba(11, 17, 32, .11);
  --line-2: rgba(11, 17, 32, .22);
  --night: #0A0F1B;
  --night-2: #121A2B;
  --on-night: #EEF0F4;
  --on-night-muted: #9AA3B5;
  --line-night: rgba(238, 240, 244, .13);
  --green: #1B7A4E;
  --green-t: #E3F2EA;
  --amber: #9A5B00;
  --amber-t: #FAEED6;

  --s-planned: #C2C1B8;
  --s-designing: #7C9AD6;
  --s-review: #123E85;
  --s-changes: #D0111B;
  --s-sent: #DB9A1C;
  --s-approved: #5BB389;
  --s-published: #1B7A4E;

  --display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --side: 248px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --night-grad: radial-gradient(120% 120% at 88% -10%, #1B4AA0 0%, #0C2456 42%, #0A0F1B 100%);
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32.0 21.0L35.2 24.2L39.8 24.2L39.8 28.8L43.0 32.0L39.8 35.2L39.8 39.8L35.2 39.8L32.0 43.0L28.8 39.8L24.2 39.8L24.2 35.2L21.0 32.0L24.2 28.8L24.2 24.2L28.8 24.2Z' fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
  --stars-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32.0 21.0L35.2 24.2L39.8 24.2L39.8 28.8L43.0 32.0L39.8 35.2L39.8 39.8L35.2 39.8L32.0 43.0L28.8 39.8L24.2 39.8L24.2 35.2L21.0 32.0L24.2 28.8L24.2 24.2L28.8 24.2Z' fill='none' stroke='%230b1120' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  --lift: 0 1px 0 rgba(11, 17, 32, .03), 0 18px 40px -28px rgba(11, 17, 32, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 500 15px/1.55 var(--body); font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(27px, 1.2rem + 1.25vw, 38px); font-weight: 700; letter-spacing: -.05em; }
h2 { font-size: 21px; letter-spacing: -.04em; }
h3 { font-size: 16px; letter-spacing: -.025em; }
p { margin: 0 0 .7em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 700; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1 1 auto; min-width: 0; }
.hide { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; border-radius: 6px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  background: radial-gradient(150% 55% at 100% 0%, #1B4AA0 0%, #0C2456 36%, #0A0F1B 76%); color: #C6CCDA;
  padding: 24px 14px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  isolation: isolate;
}
.side::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--stars); background-size: 64px 64px; background-position: 8px 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 34%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 34%, transparent 62%);
}
.brand { display: block; padding: 2px 10px 22px; }
.brand img { height: 27px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.wordmark { font: 700 21px/1 var(--display); color: #fff; letter-spacing: -.04em; }
.brand span.sub { display: flex; align-items: center; gap: 9px; font: 600 10.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #AEB8CE; margin-top: 13px; }
.brand span.sub::before { content: ""; width: 18px; height: 2px; background: var(--red); border-radius: 2px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: #C6CCDA; font-weight: 600; border: 1px solid transparent; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255, 255, 255, .1); border-color: var(--line-night); color: #fff; }
.nav a.on::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: auto; box-shadow: 0 0 0 4px rgba(208, 17, 27, .22); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .count { margin-left: auto; font: 700 11.5px/20px var(--body); background: var(--red); color: #fff; border-radius: 20px; padding: 0 7px; }
.nav a.on:has(.count)::after { display: none; }
.nav-group { font: 600 10.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #7E88A0; padding: 20px 12px 8px; }
.me { margin-top: auto; border-top: 1px solid var(--line-night); padding: 14px 6px 0; display: flex; gap: 10px; align-items: center; }
.me .who { min-width: 0; line-height: 1.25; }
.me .who b { color: #fff; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-size: 12.5px; color: var(--on-night-muted); }
.me a.out { margin-left: auto; color: var(--on-night-muted); padding: 7px; border-radius: 50%; display: flex; border: 1px solid var(--line-night); }
.me a.out:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.me a.out svg { width: 16px; height: 16px; }

.main { padding: 30px 40px 80px; min-width: 0; }
.wrap { max-width: 1200px; margin: 0 auto; }
.topbar { display: none; }

.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head h1::after, .hero h1::after, .auth-art h1::after { content: "."; color: var(--red); }
.head .sub { color: var(--muted); margin-top: 8px; }
.head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.crumb a { color: var(--muted); }

/* ---------- Night panel: the brand surface ---------- */
.hero, .night {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-night);
  background: var(--night-grad); border-radius: 26px; border: 0;
  --s-planned: rgba(255, 255, 255, .3); --s-designing: #8FB0FF; --s-review: #2F6BFF; --s-changes: #FF4D57;
  --s-sent: #F5B53D; --s-approved: #86E3B0; --s-published: #2FC77A;
}
.hero::before, .night::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--stars); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 78%);
  mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 78%);
}
/* The red point with its rings, as on the website's opening screen */
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 300px; height: 300px; right: -70px; top: -110px; border-radius: 50%;
  background:
    radial-gradient(circle, var(--red) 0 5px, transparent 6px),
    radial-gradient(circle, transparent 54px, rgba(208, 17, 27, .55) 55px 56px, transparent 57px),
    radial-gradient(circle, transparent 104px, rgba(208, 17, 27, .3) 105px 106px, transparent 107px),
    radial-gradient(circle, rgba(208, 17, 27, .2), transparent 62%);
}
.hero { padding: 30px 32px 30px; margin-bottom: 22px; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--display); letter-spacing: .17em; text-transform: uppercase; color: #C9D3E8; margin-bottom: 16px; }
.hero .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.hero h1 { color: #fff; font-size: clamp(30px, 1.2rem + 1.9vw, 46px); max-width: 20ch; }
.hero .sub { color: #B9C2D6; margin-top: 10px; max-width: 62ch; font-size: 15.5px; }
.hero-top { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.hero-figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; }
.hfig {
  display: block; color: inherit; padding: 16px 18px 15px; border-radius: 18px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-night); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
a.hfig:hover { background: rgba(255, 255, 255, .12); text-decoration: none; transform: translateY(-2px); }
.hfig b { display: flex; align-items: center; gap: 10px; font: 700 38px/1 var(--display); letter-spacing: -.05em; color: #fff; }
.hfig b i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.hfig span { display: block; margin-top: 9px; color: #B9C2D6; font-size: 13.5px; font-weight: 600; }
.hfig.warn b { color: #FF7A82; }
.night { padding: 24px 26px; }
.night .muted, .night .cycle-top .end, .night .legend { color: #B9C2D6; }
.night .legend b, .night .cycle-top b { color: #fff; }
.night .track { background: rgba(255, 255, 255, .16); }
.night .track .past { background: #fff; }
.night .track .week { border-color: #8FB0FF; }
.night .track .week span { color: #B8CCFF; }
.night .track .now { border-color: #0F2C68; box-shadow: 0 0 0 1px var(--red), 0 0 0 7px rgba(208, 17, 27, .25); }
.night .track .now span { color: #FF8A91; }
.night .pipe { background: rgba(255, 255, 255, .1); }
.night .sides div { background: rgba(255, 255, 255, .07); border: 1px solid var(--line-night); }
.night .sides b { color: #fff; }
.night .sides span { color: #B9C2D6; }
.night .sides .us b { color: #A9C3FF; } .night .sides .client b { color: #F5B53D; } .night .sides .done b { color: #5FE0A0; }
.night .alert { color: #FF9AA0; }
.night select { background: rgba(255, 255, 255, .08); color: #fff; border-color: var(--line-night); }
.night select option { color: var(--ink); }
.alert { color: var(--red); font-weight: 700; margin: 16px 0 0; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; position: relative; overflow: hidden;
  font: 600 12px/1 var(--display); letter-spacing: .055em; text-transform: uppercase; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%); pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .3) 50%, transparent 80%);
}
.btn.primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.light:hover { background: var(--blue-t); border-color: var(--blue-t); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn.quiet:hover { background: rgba(11, 17, 32, .06); color: var(--text); border-color: transparent; }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.sm { padding: 9px 13px; font-size: 11px; flex: none; }
.btn svg { width: 15px; height: 15px; }
button[disabled] { opacity: .5; cursor: default; }

label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
label.f > em { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: 500 15px/1.4 var(--body); color: inherit; background: #fff; border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px 13px; min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 62, 133, .16); }
input::placeholder, textarea::placeholder { color: #9AA0AE; }
input[type=file] { font: 500 14px var(--body); max-width: 100%; min-width: 0; }
input[type=file]::file-selector-button { font: 600 11px var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); margin-right: 10px; cursor: pointer; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline > input, .inline > select { width: auto; flex: 1 1 150px; min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; }
.checks label { display: flex; gap: 10px; align-items: center; padding: 10px 13px; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; transition: border-color .15s, background .15s; }
.checks label:hover { border-color: var(--line-2); }
.checks label:has(input:checked) { border-color: var(--blue); background: var(--blue-t); }
.checks .who { line-height: 1.25; }
.checks .who small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.checks input { width: 17px; height: 17px; accent-color: var(--blue); flex: none; }

/* ---------- Surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--lift); }
.card + .card, .stack > * + * { margin-top: 16px; }
.card > h2, .card > h3 { margin-bottom: 14px; }
.card .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card .card-head h2, .card .card-head h3 { margin: 0; }
.card .card-head .actions { margin-left: auto; display: flex; gap: 8px; }
.card h3 .n, h2 .n { font: 600 13px var(--body); color: var(--faint); letter-spacing: 0; margin-left: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.h2-row { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 14px; }
.h2-row h2::after { content: "."; color: var(--red); }

details.add { border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: rgba(255, 255, 255, .5); }
details.add[open] { border-style: solid; border-color: var(--line); background: var(--card); box-shadow: var(--lift); }
details.add > summary { list-style: none; cursor: pointer; padding: 15px 20px; font: 600 12px/1 var(--display); letter-spacing: .055em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 9px; }
details.add > summary::-webkit-details-marker { display: none; }
details.add > summary svg { width: 16px; height: 16px; }
details.add > form, details.add > .body { padding: 6px 20px 20px; }

.flash { padding: 13px 18px; border-radius: var(--r); margin-bottom: 16px; font-weight: 700; background: var(--green-t); color: #0F4D30; border: 1px solid #BFDFCD; }
.flash.err { background: var(--red-t); color: #86090F; border-color: #F1C2C5; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle, var(--red) 0 4px, transparent 5px), radial-gradient(circle, transparent 13px, rgba(208, 17, 27, .45) 14px 15px, transparent 16px), radial-gradient(circle, transparent 21px, rgba(208, 17, 27, .2) 22px 23px, transparent 24px); }
.empty h2, .empty h3 { color: var(--text); margin-bottom: 8px; }
.empty .btn { margin-top: 12px; }

/* ---------- Numbers row (light) ---------- */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--lift); }
.fig { padding: 20px 24px; border-left: 1px solid var(--line); display: block; color: inherit; }
.fig:first-child { border-left: 0; }
a.fig:hover { background: #FAFAF8; text-decoration: none; }
.fig b { display: block; font: 700 36px/1 var(--display); letter-spacing: -.05em; }
.fig b small { font: 600 16px var(--body); color: var(--faint); letter-spacing: 0; }
.fig span { display: block; color: var(--muted); margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.fig.warn b { color: var(--red); }

/* ---------- Tables and lists ---------- */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font: 600 10.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 0 12px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child, table.t th:first-child { padding-left: 0; }
table.t td:last-child, table.t th:last-child { padding-right: 0; }
table.t a.strong { color: var(--text); font-weight: 700; }
.scroll-x { overflow-x: auto; }

.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #EEEDE8; color: var(--muted); white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.chip.blue { background: var(--blue-t); color: var(--blue); }
.chip.red { background: var(--red-t); color: var(--red-d); }
.chip.green { background: var(--green-t); color: var(--green); }
.chip.amber { background: var(--amber-t); color: var(--amber); }
.chip.st-planned i { background: var(--s-planned); } .chip.st-designing i { background: var(--s-designing); }
.chip.st-review i { background: var(--s-review); } .chip.st-changes i { background: var(--s-changes); }
.chip.st-sent i { background: var(--s-sent); } .chip.st-approved i { background: var(--s-approved); }
.chip.st-published i { background: var(--s-published); }
.chip[class*="st-"] { background: #F1F0EB; color: var(--text); }

.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-t); color: var(--blue); font: 700 11.5px/30px var(--display); letter-spacing: -.02em; text-align: center; flex: none; display: inline-block; }
.avatar.lg { width: 38px; height: 38px; line-height: 38px; font-size: 13px; }
.side .avatar { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid var(--line-night); line-height: 36px; }
.avatars { display: inline-flex; }
.avatars .avatar { margin-left: -5px; box-shadow: 0 0 0 2px var(--paper); font-size: 10.5px; }
.card .avatars .avatar, .pcard .avatars .avatar { box-shadow: 0 0 0 2px var(--card); }
.avatars .avatar:first-child { margin-left: 0; }
.person { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; padding: 13px 14px 12px; color: var(--muted); font: 600 11.5px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--red); }
.tabs a .n { font: 700 11px var(--body); letter-spacing: 0; color: var(--blue); background: var(--blue-t); border-radius: 20px; padding: 1px 7px; margin-left: 7px; }

/* ---------- Task rows ---------- */
.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; padding-bottom: 2px; }
.task .tick { flex: none; margin-top: 0; }
.tick button {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; cursor: pointer; padding: 0;
  display: grid; place-items: center; color: transparent; transition: border-color .15s, background .2s var(--ease), color .15s;
}
.tick button:hover { border-color: var(--green); color: var(--green); }
.tick button svg { width: 15px; height: 15px; }
.task.done .tick button { background: var(--green); border-color: var(--green); color: #fff; }
.task .body { flex: 1 1 auto; min-width: 0; }
.task .title { font-weight: 700; color: var(--text); display: block; overflow-wrap: anywhere; }
.task.done .title { color: var(--faint); text-decoration: line-through; font-weight: 500; }
.task .meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.task .meta a { color: var(--muted); }
.task .meta .late { color: var(--red); font-weight: 700; }
.task form { flex: none; }
.task .due { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.task .due.late { color: var(--red); }
.task .due.today { color: var(--blue); }
.task .who { flex: none; }
.pri-high .title::before { content: "!"; display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; margin-right: 8px; vertical-align: 1px; }

.section-label { font: 600 10.5px/1 var(--display); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 26px 0 6px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ""; width: 18px; height: 2px; background: var(--red); border-radius: 2px; }
.section-label:first-child { margin-top: 2px; }
.section-label span { font: 600 12.5px var(--body); letter-spacing: 0; text-transform: none; color: var(--faint); }
.section-label.late { color: var(--red); }

.listlink { display: block; color: inherit; padding: 12px 0; border-bottom: 1px solid var(--line); }
.listlink:last-child { border-bottom: 0; padding-bottom: 0; }
.listlink:hover { text-decoration: none; }
.listlink:hover > b { text-decoration: underline; }
.listlink > b { font-weight: 700; }

/* ---------- Cycle track (the month at a glance) ---------- */
.cycle { display: block; }
.cycle-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.cycle-top b { font: 600 19px var(--display); letter-spacing: -.035em; }
.cycle-top .end { margin-left: auto; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.track { position: relative; height: 8px; background: #E4E3DC; border-radius: 4px; margin: 0 0 32px; }
.track .past { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 4px; max-width: 100%; }
.track .week { position: absolute; left: 0; top: -9px; height: 5px; border: 2px solid var(--blue); border-bottom: 0; border-radius: 4px 4px 0 0; }
.track .week span { position: absolute; left: 0; top: -20px; font: 600 9.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.track .now { position: absolute; top: -5px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--red); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--red), 0 0 0 6px rgba(208, 17, 27, .16); }
.track .now span { position: absolute; top: 23px; left: 50%; transform: translateX(-50%); font: 600 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.track .now.edge-l span { left: 0; transform: none; }
.track .now.edge-r span { left: auto; right: 0; transform: none; }

.pipe { display: flex; gap: 3px; height: 28px; border-radius: 9px; overflow: hidden; background: #E4E3DC; }
.pipe i { display: block; min-width: 6px; }
.pipe .planned { background: var(--s-planned); } .pipe .designing { background: var(--s-designing); }
.pipe .review { background: var(--s-review); } .pipe .changes { background: var(--s-changes); }
.pipe .sent { background: var(--s-sent); } .pipe .approved { background: var(--s-approved); }
.pipe .published { background: var(--s-published); }
.pipe.slim { height: 10px; border-radius: 5px; gap: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 13px; font-size: 13px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend b { color: var(--text); }

.sides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.sides div { border-radius: 16px; padding: 14px 16px; background: #F6F5F1; }
.sides b { font: 700 28px/1 var(--display); letter-spacing: -.05em; display: block; }
.sides span { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-top: 7px; }
.sides .us { background: var(--blue-t); } .sides .us b { color: var(--blue); }
.sides .client { background: var(--amber-t); } .sides .client b { color: var(--amber); }
.sides .done { background: var(--green-t); } .sides .done b { color: var(--green); }

.bar { height: 8px; background: #E4E3DC; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width .5s var(--ease); }
.bar.green i { background: var(--green); }
.meter { display: flex; align-items: center; gap: 12px; }
.meter .bar { flex: 1 1 auto; min-width: 60px; }
.meter b { font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* Project cards */
.pcard { display: block; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--lift); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s var(--ease); }
a.pcard:hover { border-color: var(--line-2); text-decoration: none; transform: translateY(-3px); box-shadow: 0 1px 0 rgba(11, 17, 32, .03), 0 26px 46px -28px rgba(11, 17, 32, .4); }
.pcard .top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.pcard h3 { font-size: 17px; }
.pcard .svc { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.pcard .top .chip { margin-left: auto; }
.pcard .foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pcard .foot .avatars { margin-left: auto; }
.pcard .track { margin-top: 36px; margin-bottom: 30px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }

/* ---------- Creatives board ---------- */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--lift); }
.dcard .thumb { aspect-ratio: 4 / 3; background-color: #ECEBE5; background-image: var(--stars-ink); background-size: 64px 64px; display: grid; place-items: center; color: var(--faint); font-size: 13px; font-weight: 600; position: relative; overflow: hidden; }
.dcard .thumb:hover { text-decoration: none; }
.dcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcard .thumb .type { position: absolute; left: 11px; top: 11px; background: rgba(11, 17, 32, .84); color: #fff; font: 600 10px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 20px; }
.dcard .in { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.dcard .in h3 { font: 700 15.5px/1.3 var(--body); letter-spacing: -.01em; }
.dcard .in h3 a { color: var(--text); }
.dcard .line { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dcard .line .due { margin-left: auto; font-weight: 700; }
.dcard .line .due.late { color: var(--red); }
.dcard form { margin-top: auto; padding-top: 2px; }
.dcard .btn { width: 100%; }
.dcard.side-us { border-top: 3px solid var(--blue); }
.dcard.side-client { border-top: 3px solid var(--s-sent); }
.dcard.side-ready { border-top: 3px solid var(--s-approved); }
.dcard.side-done { border-top: 3px solid var(--s-published); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters a { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: 13.5px; background: var(--card); transition: border-color .15s, color .15s; }
.filters a:hover { text-decoration: none; border-color: var(--ink); color: var(--text); }
.filters a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters a b { font-weight: 700; opacity: .65; margin-left: 4px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 0 0 15px 20px; border-left: 2px solid var(--line); position: relative; margin-left: 5px; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--blue); }
.timeline li:first-child::before { background: var(--red); border-color: var(--red); }
.timeline .when { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.timeline .note { background: #F6F5F1; border-radius: 12px; padding: 9px 13px; margin-top: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Checklist ---------- */
.cl-section { margin-top: 30px; }
.cl-section:first-of-type { margin-top: 0; }
.cl-section > h3 { display: flex; align-items: baseline; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--line-2); font-size: 17px; }
.cl-section > h3 span { font: 600 12.5px var(--body); letter-spacing: 0; color: var(--faint); }
.cl { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cl:last-child { border-bottom: 0; }
.cl .txt { flex: 1 1 auto; min-width: 0; }
.cl .txt b { font-weight: 700; display: block; overflow-wrap: anywhere; }
.cl .txt span { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.cl .by { font-size: 12.5px; color: var(--faint); display: block; margin-top: 2px; }
.cl[data-state="existing"] .txt b, .cl[data-state="done"] .txt b { color: var(--muted); }
.cl[data-state="na"] .txt b { color: var(--faint); text-decoration: line-through; font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; flex: none; background: #fff; padding: 3px; gap: 2px; }
.seg button { font: 700 12.5px/1 var(--body); padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { background: #F1F0EB; color: var(--text); }
.seg button.on[value="existing"] { background: var(--blue-t); color: var(--blue); }
.seg button.on[value="done"] { background: var(--green); color: #fff; }
.seg button.on[value="na"] { background: #E4E3DC; color: var(--text); }

/* ---------- Access rows ---------- */
.secret { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; background: #F4F3EE; padding: 4px 9px; border-radius: 8px; user-select: all; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-weight: 600; }

/* ---------- Sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); background: var(--night); }
.auth-art { padding: 44px 56px 46px; color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 100% at 78% 8%, #1D50AC 0%, #0C2456 44%, #0A0F1B 100%); }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--stars); background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(100% 90% at 70% 10%, #000 0%, rgba(0, 0, 0, .45) 50%, transparent 85%); mask-image: radial-gradient(100% 90% at 70% 10%, #000 0%, rgba(0, 0, 0, .45) 50%, transparent 85%); }
.auth-art::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: 7%; top: 6%; border-radius: 50%;
  background:
    radial-gradient(circle, var(--red) 0 6px, transparent 7px),
    radial-gradient(circle, transparent 62px, rgba(208, 17, 27, .6) 63px 64px, transparent 65px),
    radial-gradient(circle, transparent 124px, rgba(208, 17, 27, .32) 125px 126px, transparent 127px),
    radial-gradient(circle, rgba(208, 17, 27, .2), transparent 60%);
  animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .8; } }
.auth-art .brand { padding: 0; }
.auth-art .brand img { height: 34px; }
.auth-art .brand span.sub { color: #C9D3E8; }
.auth-art .eyebrow { display: flex; align-items: center; gap: 14px; font: 600 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: #D5DCEC; margin-top: auto; margin-bottom: 22px; }
.auth-art .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); border-radius: 2px; }
.auth-art h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -.06em; font-weight: 700; max-width: 11ch; }
.auth-art p { color: #B9C2D6; font-size: 17px; max-width: 44ch; margin: 22px 0 40px; }
.month { display: grid; grid-template-columns: repeat(30, 1fr); gap: 5px; align-items: end; height: 70px; }
.month i { display: block; background: rgba(255, 255, 255, .13); border-radius: 3px; height: 34%; transform-origin: bottom; animation: rise .7s var(--ease) backwards; }
.month i.w { background: #5B8BF0; height: 100%; }
.month i.n { background: var(--red); height: 64%; box-shadow: 0 0 22px rgba(208, 17, 27, .75); }
.month i.d { background: rgba(255, 255, 255, .34); }
@keyframes rise { from { transform: scaleY(.15); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.month-key { display: flex; gap: 22px; margin-top: 15px; font-size: 13px; font-weight: 600; color: #9AA3B5; flex-wrap: wrap; }
.month-key span { display: inline-flex; align-items: center; gap: 8px; }
.month-key i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.auth-form { background: var(--paper); display: grid; place-items: center; padding: 40px 30px; position: relative; }
.auth-form form { width: 100%; max-width: 368px; }
.auth-form h2 { font-size: 32px; font-weight: 700; letter-spacing: -.05em; margin-bottom: 8px; }
.auth-form h2::after { content: "."; color: var(--red); }
.auth-form .btn { width: 100%; padding: 16px; font-size: 13px; margin-top: 8px; }
.auth-form .legal { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--faint); font-weight: 600; }

/* ---------- Report (prints to PDF) ---------- */
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 46px 50px; max-width: 900px; box-shadow: var(--lift); }
.report .rhead { display: flex; align-items: flex-start; gap: 20px; border-bottom: 3px solid var(--ink); padding-bottom: 22px; margin-bottom: 28px; }
.report .rhead img { height: 34px; }
.report .rhead .wordmark { font: 700 22px var(--display); color: var(--ink); }
.report .rhead .meta { margin-left: auto; text-align: right; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.report .rhead .meta b { display: block; font: 600 10.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 7px; }
.report h1 { font-size: 36px; margin-bottom: 6px; }
.report h1::after { content: "."; color: var(--red); }
.report h2 { margin: 34px 0 12px; font-size: 19px; display: flex; align-items: center; gap: 12px; }
.report h2::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; flex: none; }
.report .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 18px; overflow: hidden; background: var(--night-grad); color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.report .nums div { padding: 18px 20px; border-left: 1px solid var(--line-night); }
.report .nums div:first-child { border-left: 0; }
.report .nums b { font: 700 32px/1 var(--display); letter-spacing: -.05em; display: block; }
.report .nums span { font-size: 13px; font-weight: 600; color: #B9C2D6; display: block; margin-top: 8px; }
.report ul.done { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.report ul.done li { padding: 4px 0 4px 22px; position: relative; break-inside: avoid; }
.report ul.done li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.report .foot { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); display: flex; }
.report .foot span:last-child { margin-left: auto; }
.report table.t td { padding: 9px 10px; font-size: 14px; }
.report table.t td:first-child { overflow-wrap: anywhere; }

/* ---------- Setup page ---------- */
body.setup-page { background: var(--night-grad) fixed; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .split, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #0A0F1B, #0C2456); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
  .topbar img { height: 24px; }
  .topbar .wordmark { font-size: 18px; }
  .topbar button { margin-left: auto; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-night); color: #fff; border-radius: 999px; padding: 9px 15px; font: 600 11px var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(296px, 86vw); z-index: 40; transform: translateX(-102%); transition: transform .3s var(--ease); height: 100dvh; }
  body.menu .side { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 15, 27, .6); }
  .main { padding: 18px 16px 64px; }
  .hero { padding: 24px 20px 22px; border-radius: 22px; }
  .hero::after { width: 220px; height: 220px; right: -90px; top: -100px; }
  .hero-figs { gap: 9px; margin-top: 20px; }
  .hero-figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .hero-figs.three .hfig span { font-size: 12.5px; line-height: 1.3; }
  .task.has-action { flex-wrap: wrap; }
  .task.has-action form { flex: 1 1 100%; }
  .task.has-action form .btn { width: 100%; }
  .hfig { padding: 13px 14px; border-radius: 15px; }
  .hfig b { font-size: 30px; }
  .night { padding: 20px 18px; border-radius: 22px; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig:nth-child(3) { border-left: 0; }
  .fig:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; border-radius: 18px; }
  .cl { flex-direction: column; align-items: stretch; gap: 10px; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 0; padding: 10px 4px; }
  .task .who { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 26px 22px 30px; }
  .auth-art::after { width: 250px; height: 250px; right: -80px; top: -70px; }
  .auth-art .eyebrow { margin-top: 44px; font-size: 10.5px; letter-spacing: .14em; }
  .auth-art p { margin-bottom: 26px; font-size: 16px; }
  .month { height: 44px; gap: 3px; }
  .auth-form { padding: 34px 22px 64px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .report { padding: 24px 18px; }
  .report .nums { grid-template-columns: repeat(2, 1fr); }
  .report .nums div:nth-child(3) { border-left: 0; }
  .report .nums div:nth-child(n+3) { border-top: 1px solid var(--line-night); }
  .report ul.done { columns: 1; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: table rows become stacked cards (labels come from the column headings) */
@media (max-width: 640px) {
  .hero-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .js table.t, .js table.t tbody, .js table.t tr, .js table.t td { display: block; width: 100%; }
  .js table.t thead { display: none; }
  .js table.t tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js table.t tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .js table.t tr:first-child { padding-top: 0; }
  .js table.t td { padding: 4px 0; border: 0; display: block; overflow: hidden; text-align: right; max-width: none !important; min-width: 0 !important; }
  .js table.t td[data-label]::before { content: attr(data-label); float: left; margin-right: 14px; font: 600 10.5px/2.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
  .js table.t td:first-child { display: block; text-align: left; font-size: 15.5px; padding-bottom: 6px; }
  .js table.t td:first-child::before { display: none; }
  .js table.t td:empty { display: none; }
  .js table.t td.right { padding-top: 8px; }
  .js table.t td .meter { width: 62%; margin-left: auto; }
  .js table.t td .person { white-space: normal; }
  .js table.t td select { width: auto; max-width: 62%; }
  .js .scroll-x { overflow-x: visible; }
  .head .actions { margin-left: 0; width: 100%; }
  .filters .grow { display: none; }
  details.cl > summary { flex-wrap: wrap; }
}

/* ---------- Motion: one orchestrated entrance, data that draws itself, feedback on every action ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
@keyframes grow-w { from { width: 0; } }
@keyframes slide-l { from { left: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 4px rgba(208, 17, 27, .22); } 50% { box-shadow: 0 0 0 7px rgba(208, 17, 27, .08); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

.hero, .head, .crumb { animation: enter .6s var(--ease) both; }
.hero .hfig { animation: enter .6s var(--ease) both; }
.hero .hfig:nth-child(1) { animation-delay: .12s; } .hero .hfig:nth-child(2) { animation-delay: .18s; }
.hero .hfig:nth-child(3) { animation-delay: .24s; } .hero .hfig:nth-child(4) { animation-delay: .30s; }
.wrap > .split > *, .wrap > .grid2 > *, .wrap > .pgrid > *, .wrap > .card, .wrap > .night, .wrap > .figs, .wrap > .dgrid > *, .wrap > .tabs, .wrap > details.add, .wrap > form.stack, .wrap > .filters {
  animation: enter .55s var(--ease) both; animation-delay: .14s;
}
.wrap > .split > :nth-child(2), .wrap > .grid2 > :nth-child(2), .wrap > .pgrid > :nth-child(2), .wrap > .dgrid > :nth-child(2) { animation-delay: .2s; }
.wrap > .pgrid > :nth-child(3), .wrap > .dgrid > :nth-child(3) { animation-delay: .26s; }
.wrap > .pgrid > :nth-child(n+4), .wrap > .dgrid > :nth-child(n+4) { animation-delay: .32s; }

.track .past { animation: grow-w 1.1s var(--ease) .25s both; }
.track .now { animation: slide-l 1.1s var(--ease) .25s both; }
.track .week { animation: grow-w .8s var(--ease) .15s both; }
.pipe i { transform-origin: left center; animation: grow-x .7s var(--ease) both; }
.pipe i:nth-child(1) { animation-delay: .35s; } .pipe i:nth-child(2) { animation-delay: .42s; } .pipe i:nth-child(3) { animation-delay: .49s; }
.pipe i:nth-child(4) { animation-delay: .56s; } .pipe i:nth-child(5) { animation-delay: .63s; } .pipe i:nth-child(n+6) { animation-delay: .7s; }
.bar i { animation: grow-w 1s var(--ease) .3s both; }
.nav a.on::after { animation: ping 2.4s ease-in-out infinite; }
.task.done .tick button svg { animation: pop .38s var(--ease); }
.seg button.on { animation: pop .3s var(--ease); }

.flash { animation: toast-in .45s var(--ease) both; transition: opacity .4s, transform .4s, max-height .4s, margin .4s, padding .4s; overflow: hidden; max-height: 200px; }
.flash.gone { opacity: 0; transform: translateY(-8px); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.flash.win { background: linear-gradient(90deg, #E3F2EA, #E7ECF5); border-color: #BFDFCD; color: #0F4D30; position: relative; }
.flash.win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); animation: sheen 1.4s var(--ease) .3s both; }

.auth-art .eyebrow, .auth-art h1, .auth-art p { animation: enter .8s var(--ease) both; }
.auth-art .eyebrow { animation-delay: .1s; } .auth-art h1 { animation-delay: .2s; } .auth-art p { animation-delay: .35s; }
.auth-form form { animation: enter .7s var(--ease) .3s both; }

canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; }
  .side, .topbar, .head, .tabs, .crumb, .no-print, .flash { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .report { border: 0; padding: 0; max-width: none; box-shadow: none; }
  @page { margin: 16mm 14mm; }
}

/* ---------- Content writing ---------- */
.cw-code { display: inline-block; font: 700 11px/1 var(--display, inherit); letter-spacing: .06em; color: var(--muted); background: rgba(128, 140, 160, .14); padding: 3px 6px; margin-right: 4px; vertical-align: 2px; }
.head h1 .cw-code { font-size: 14px; vertical-align: 6px; }
.cw-track { display: flex; gap: 4px; margin: 0 0 18px; overflow-x: auto; padding-bottom: 2px; }
.cw-track span { flex: 1 1 0; min-width: 92px; padding: 9px 8px; font-size: 11.5px; font-weight: 700; text-align: center; background: rgba(128, 140, 160, .12); color: var(--muted); white-space: nowrap; }
.cw-track span.done { background: rgba(19, 161, 91, .14); color: #0F8A4C; }
.cw-track span.now { background: linear-gradient(90deg, #2F6BFF, #D0111B); color: #fff; }
.cw-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 14px; }
.cw-rev { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--edge); }
.cw-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; } .cw-dl dt { color: var(--muted); } .cw-dl dd { margin: 0; font-weight: 600; }
.cw-steps { margin: 0; padding-left: 20px; } .cw-steps li { margin: 0 0 6px; } .cw-steps small { color: var(--muted); margin-left: 6px; }
.card.warnbox { border-left: 4px solid #E0202E; background: rgba(224, 32, 46, .05); }
.meta .soon { color: #A86A00; font-weight: 700; }
.inline-filters { display: flex; gap: 8px; flex-wrap: wrap; } .inline-filters select { width: auto; min-width: 140px; }
.filters a .n { font-size: 11px; opacity: .75; margin-left: 2px; }
.chip.grey { background: rgba(128, 140, 160, .16); color: var(--muted); }

table.t.compact th, table.t.compact td { padding: 9px 6px; font-size: 12.5px; } table.t.compact th { font-size: 10px; letter-spacing: .08em; }
.inline-filters select { width: auto; min-width: 0; max-width: 220px; padding-top: 8px; padding-bottom: 8px; }

/* ---------- Content writing: simple flow, Squad check, publishing ---------- */
.cw-flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.cw-flow span { font-size: 12px; font-weight: 700; padding: 6px 10px; background: rgba(47, 107, 255, .08); color: var(--text); }
.cw-track span.fix { background: #E0202E; color: #fff; }
.cw-score { font-weight: 800; font-size: 11.5px; padding: 2px 7px; } .cw-score.sok { background: rgba(19, 161, 91, .14); color: #0F8A4C; } .cw-score.sbad { background: rgba(224, 32, 46, .12); color: #C81E2A; }
.warnbox-in { border-left: 4px solid #E0202E; background: rgba(224, 32, 46, .06); padding: 10px 14px; margin: 0 0 14px; font-size: 13.5px; } .warnbox-in p { margin: 4px 0 0; white-space: pre-line; }
hr.soft { border: 0; border-top: 1px solid var(--edge); margin: 16px 0; }
.cw-modes { display: grid; gap: 8px; margin: 0 0 14px; } .cw-modes input[type=datetime-local] { padding: 4px 8px; margin-left: 6px; }
.cw-copy { display: grid; gap: 8px; margin: 0 0 6px; }
.cw-copy > div { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--edge); }
.cw-copy small { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.cw-copy span { font-size: 13px; overflow-wrap: anywhere; }
.cw-paste { min-height: 120px; max-height: 320px; overflow: auto; border: 1px dashed var(--edge); padding: 10px; margin: 8px 0; font-size: 13px; background: rgba(255, 255, 255, .5); }
.cw-howto { margin: 0; padding-left: 18px; font-size: 13.5px; } .cw-howto li { margin: 0 0 8px; }
.cc-top { display: flex; gap: 18px; align-items: center; margin: 4px 0 14px; }
.cc-ring { --c: #E0202E; width: 86px; height: 86px; flex: 0 0 86px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--card, #fff) 76%, transparent 78% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), rgba(128, 140, 160, .18) 0); }
.cc-ring.ok { --c: #13A15B; } .cc-ring.mid { --c: #F5A524; }
.cc-ring b { font: 800 24px/1 var(--display, inherit); } .cc-ring small { color: var(--muted); font-size: 11px; }
.cc-sum { display: grid; gap: 4px; font-size: 13.5px; }
.cc-group { margin-top: 12px; } .cc-gh { display: flex; justify-content: space-between; border-bottom: 1px solid var(--edge); padding-bottom: 4px; font-size: 13px; }
.cc-gh span { color: var(--muted); font-weight: 700; }
.cc-list { list-style: none; margin: 6px 0 0; padding: 0; }
.cc-list li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; padding: 5px 0; font-size: 13px; } .cc-list li small { grid-column: 2; color: var(--muted); }
.cc-list .ic { grid-row: span 2; width: 18px; height: 18px; border-radius: 50%; display: grid; place-content: center; font-size: 11px; font-weight: 800; color: #fff; margin-top: 1px; }
.cc-ok .ic { background: #13A15B; } .cc-warn .ic { background: #F5A524; } .cc-bad .ic { background: #E0202E; }
.cc-list mark { background: rgba(245, 165, 36, .35); padding: 0 2px; }
.cc-spot { margin: 0 0 4px; padding-left: 18px; font-size: 13px; } .cc-spot li { margin: 0 0 4px; }
#lt-out { margin: 6px 0 8px; }
@media (max-width: 560px) { .cw-copy > div { grid-template-columns: 1fr auto; } .cw-copy small { grid-column: 1 / -1; } .cc-top { align-items: flex-start; } }
.cw-modes label { flex-wrap: wrap; } .cw-modes input[type=datetime-local] { max-width: 100%; min-width: 0; }
#step a { overflow-wrap: anywhere; word-break: break-word; }
.chip.branch { background: rgba(47, 107, 255, .1); color: #2459D6; }
