/* =============================================================
   Pithy Marketing — Web Deliverables Checklist
   Internal tool stylesheet.  Mobile-first, dark, brand cyan.
   ============================================================= */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:           #0b0e11;
  --bg-deep:      #070a0c;
  --surface:      #11161a;
  --surface-2:    #161d22;
  --surface-3:    #1c252b;
  --line:         rgba(255, 255, 255, .075);
  --line-strong:  rgba(255, 255, 255, .14);

  --brand:        #00b3c5;
  --brand-2:      #2bb1c3;
  --brand-deep:   #007eaf;
  --brand-soft:   rgba(0, 179, 197, .12);
  --brand-line:   rgba(0, 179, 197, .32);

  --text:         #e7eef2;
  --text-2:       #a8b6bf;
  --text-3:       #6f8089;

  --ok:           #2ecc9a;
  --warn:         #f5b544;
  --danger:       #f2726f;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 10px 30px -12px rgba(0,0,0,.7);
  --sh-3: 0 24px 60px -20px rgba(0,0,0,.85);

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Rajdhani', 'Poppins', sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1240px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* The browser's own [hidden] rule is a user-agent style, so ANY author rule
   setting display beats it — .lb { display: flex } left the lightbox covering
   the screen after it was closed. Several panels here are shown and hidden by
   the hidden property, so this is fixed once for all of them rather than per
   component. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--brand-2); text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; letter-spacing: .01em; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: #04222a; }

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 20px; height: 20px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brand); color: #04222a; font-weight: 600;
  padding: 10px 16px; border-radius: var(--r-sm); transition: top .18s var(--ease);
}
.skip:focus { top: 16px; }

/* ── Ambient background ─────────────────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.aurora__blob--a {
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  top: -22vw; left: -14vw;
  background: radial-gradient(circle at 40% 40%, rgba(0,179,197,.42), transparent 68%);
}
.aurora__blob--b {
  width: 52vw; height: 52vw; max-width: 620px; max-height: 620px;
  bottom: -22vw; right: -14vw;
  background: radial-gradient(circle at 60% 60%, rgba(0,126,175,.34), transparent 68%);
}
.aurora__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 25%, transparent 75%);
}
.aurora--app .aurora__blob { opacity: .3; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r);
  font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .16s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #02222a;
  box-shadow: 0 8px 24px -10px rgba(0,179,197,.7), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--primary:hover:not(:disabled) { filter: brightness(1.09); box-shadow: 0 12px 30px -10px rgba(0,179,197,.8); }

.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: rgba(255,255,255,.07); border-color: var(--brand-line); color: #fff; }

.btn--subtle { background: transparent; color: var(--text-2); }
.btn--subtle:hover:not(:disabled) { color: var(--text); background: rgba(255,255,255,.05); }

/* The end-of-day note when today has not been logged. A single quiet ring,
   not a bouncing element: it has to be noticed on the way past without
   becoming the thing you resent about opening the dashboard. */
.btn--pulse { box-shadow: 0 0 0 0 rgba(0,179,197,.55); animation: btnPulse 2.6s var(--ease) infinite; }
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,179,197,.5); }
  70%  { box-shadow: 0 0 0 11px rgba(0,179,197,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,179,197,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--pulse { animation: none; box-shadow: 0 0 0 3px rgba(0,179,197,.35); }
}

.btn--danger { background: rgba(242,114,111,.12); border-color: rgba(242,114,111,.4); color: #ff9a97; }
.btn--danger:hover:not(:disabled) { background: rgba(242,114,111,.2); border-color: rgba(242,114,111,.7); }

.btn--sm { min-height: 36px; padding: 0 13px; font-size: 14.5px; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  color: var(--text-3); border: 1px solid transparent;
  transition: color .16s, background .16s, border-color .16s;
}
.iconbtn:hover { color: var(--text); background: rgba(255,255,255,.06); border-color: var(--line); }
.iconbtn--danger:hover { color: #ff9a97; background: rgba(242,114,111,.12); border-color: rgba(242,114,111,.3); }

/* ── Language switch ───────────────────────────────────────── */
.langswitch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px;
}
.langswitch button {
  min-width: 42px; height: 30px; border-radius: 999px;
  font-family: var(--display); font-size: 13.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--text-3); transition: color .16s, background .16s;
}
.langswitch button:hover { color: var(--text); }
.langswitch button.is-active { background: var(--brand-soft); color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-line); }
.langswitch--auth { margin: 18px auto 0; }

/* ── Form controls ─────────────────────────────────────────── */
.label {
  display: block; margin-bottom: 7px;
  font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3);
}
.label .req { color: var(--brand-2); }

.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--text); font-weight: 300;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255,255,255,.22); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); background: rgba(0,179,197,.05);
  box-shadow: 0 0 0 3px rgba(0,179,197,.16);
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8089' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.select option { background: var(--surface-2); color: var(--text); }

.field { position: relative; }
.field .input { padding-right: 48px; }
.field__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--text-3);
}
.field__btn:hover { color: var(--brand-2); background: rgba(255,255,255,.05); }
.field__btn.is-on { color: var(--brand-2); }

.help { margin-top: 6px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.err { margin-top: 6px; font-size: 12.5px; color: #ff9a97; }
.input.is-bad, .textarea.is-bad { border-color: rgba(242,114,111,.7); }

.grid2 { display: grid; gap: 16px; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .span2 { grid-column: 1 / -1; } }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 18px;
  border-radius: var(--r); font-size: 13.5px; line-height: 1.5;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04);
}
.alert .ico { margin-top: 2px; }
.alert--error { border-color: rgba(242,114,111,.42); background: rgba(242,114,111,.1); color: #ffb3b1; }
.alert--warn  { border-color: rgba(245,181,68,.42);  background: rgba(245,181,68,.1);  color: #ffd48a; }

/* =============================================================
   LOGIN
   ============================================================= */
.body--auth { display: grid; place-items: center; padding: 24px 16px; }
.auth { position: relative; z-index: 1; width: 100%; max-width: 430px; }
.auth__card {
  padding: 34px 26px 26px;
  background: linear-gradient(180deg, rgba(28,37,43,.86), rgba(17,22,26,.92));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}
.auth__card::before {
  content: ''; display: block; height: 2px; margin: -34px -26px 30px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.auth__logo { width: 176px; height: auto; margin: 0 auto 22px; }
.auth__title { font-size: 25px; letter-spacing: .015em; }
.auth__sub { margin: 8px 0 24px; font-size: 13.5px; color: var(--text-3); line-height: 1.55; }
.auth__card .label, .auth__card .alert { text-align: left; }
.auth__card .btn--primary { margin-top: 18px; }
.auth__foot { margin-top: 22px; font-size: 11.5px; color: var(--text-3); letter-spacing: .03em; }

@media (min-width: 480px) {
  .auth__card { padding: 40px 34px 30px; }
  .auth__card::before { margin: -40px -34px 34px; }
}

/* =============================================================
   SHELL
   ============================================================= */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(9, 12, 15, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 11px 16px;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 112px; height: auto; }
.brand__rule { width: 1px; height: 22px; background: var(--line-strong); }
.brand__label {
  font-family: var(--display); font-size: 14px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--text-3);
  white-space: nowrap;
}
.topbar__actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 620px) {
  .brand__rule, .brand__label { display: none; }
  .topbar__actions .btn span { display: none; }
  .topbar__actions .btn--sm { padding: 0 10px; }
}

.view { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 28px 16px 72px; }
.view:focus { outline: none; }
@media (min-width: 768px) { .view { padding: 40px 24px 96px; } }

.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 16px 26px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-3); text-align: center;
}
.footer__dot { opacity: .5; }

/* =============================================================
   DASHBOARD
   ============================================================= */
.hero { margin-bottom: 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 8px var(--brand); }
.hero h1 { font-size: clamp(30px, 6.2vw, 46px); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero p { margin-top: 10px; max-width: 62ch; color: var(--text-2); font-size: 15px; }

.hero__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 9px; }

.sheet__manual { margin-top: 14px; }
.sheet__manual summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); }
.sheet__manual summary:hover { color: var(--text-2); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
/* Five cards since the uptime one joined: at four columns the fifth sat alone
   on a second row, which read as a layout mistake rather than a metric. */
@media (min-width: 1040px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat {
  position: relative; overflow: hidden;
  padding: 16px 16px 15px;
  background: linear-gradient(180deg, rgba(28,37,43,.55), rgba(17,22,26,.7));
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.stat::after {
  content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--brand-line), transparent 60%);
}
.stat__k { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3); }
.stat__v { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.stat__v small { font-size: 16px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.stat--accent .stat__v { color: var(--brand-2); }

.importbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 15px 18px; margin-bottom: 18px;
  border: 1px solid var(--brand-line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(0,179,197,.1), rgba(0,179,197,.04));
}
.importbar > .ico { color: var(--brand-2); flex: none; }
.importbar__t { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.importbar__t b { font-family: var(--display); font-size: 16.5px; font-weight: 600; }
.importbar__t span { font-size: 12.8px; color: var(--text-2); }

.toolbar {
  display: grid; gap: 10px; margin-bottom: 22px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(17,22,26,.6);
}
@media (min-width: 760px) { .toolbar { grid-template-columns: 1fr 1fr; align-items: center; } }
@media (min-width: 1080px) { .toolbar { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.searchwrap { position: relative; }
.searchwrap > .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.searchwrap .input { padding-left: 40px; }
.toolbar__meta { font-size: 12.5px; color: var(--text-3); text-align: center; }
@media (min-width: 760px) { .toolbar__meta { text-align: right; } }

.grid { display: grid; gap: 14px; }
.grid > *, .stats > *, .toolbar > *, .filterbar > *, .grid2 > * { min-width: 0; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(28,37,43,.5), rgba(17,22,26,.72));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-line) 30%, var(--brand-line) 70%, transparent);
  opacity: 0; transition: opacity .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--sh-2); }
.card:hover::before { opacity: 1; }
.card:focus-within { border-color: var(--brand-line); }

.card__top { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.card__name {
  font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25;
  overflow-wrap: anywhere;
}
.card__name a { color: var(--text); }
.card__name a:hover { color: var(--brand-2); }
.card__domain { margin-top: 3px; font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-3); }
.card__meta b { font-weight: 500; color: var(--text-2); }
.card__foot { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 4px; }
.card__foot .btn { flex: 1; }

/* Progress ring (conic-gradient, no SVG) */
.ring {
  --p: 0;
  position: relative; flex: none;
  width: 62px; height: 62px; border-radius: 50%;
  background:
    conic-gradient(from -90deg, var(--brand) calc(var(--p) * 1%), rgba(255,255,255,.07) 0);
  display: grid; place-items: center;
}
.ring::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  background: #10151a; border: 1px solid var(--line);
}
.ring__n {
  position: relative; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -.01em;
}
.ring__n i { font-style: normal; font-size: 10px; color: var(--text-3); }
.ring.is-full { background: conic-gradient(from -90deg, var(--ok) 100%, var(--ok) 0); }
.ring.is-full .ring__n { color: var(--ok); }

/* Linear progress */
.bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar__fill {
  /* The fill is a <span>. Without this it stays inline, and width and height
     are ignored on a non-replaced inline element — which is why the bar
     rendered as an empty track at every percentage. .sec__minibar span has
     always carried the same declaration; this one was missing it. */
  display: block;
  height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  transition: width .45s var(--ease);
}
.bar__fill.is-full { background: linear-gradient(90deg, #1c9c75, var(--ok)); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text-2);
  white-space: nowrap;
}
.badge--wordpress { border-color: rgba(33,117,155,.5); background: rgba(33,117,155,.16); color: #7cc4e4; }
.badge--shopify   { border-color: rgba(122,183,73,.5); background: rgba(122,183,73,.15); color: #a8dc7c; }
.badge--html      { border-color: rgba(227,121,60,.5); background: rgba(227,121,60,.15); color: #f0a878; }
.badge--type        { border-color: rgba(155,140,255,.45); background: rgba(155,140,255,.13); color: #b9adff; }
.badge--planning    { border-color: var(--line-strong); color: var(--text-2); }
.badge--in_progress { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-2); }
.badge--qa          { border-color: rgba(245,181,68,.45); background: rgba(245,181,68,.13); color: #ffd48a; }
.badge--launched    { border-color: rgba(46,204,154,.45); background: rgba(46,204,154,.13); color: #6fe0bd; }
.badge--on_hold     { border-color: rgba(242,114,111,.42); background: rgba(242,114,111,.1); color: #ff9a97; }
/* Maintenance had no colour of its own and fell back to the neutral badge,
   which made it indistinguishable from Planning. That did not matter while
   the status lived inside a modal nobody opened; it does now that the badge
   is the control. */
.badge--maintenance { border-color: rgba(169,190,232,.42); background: rgba(169,190,232,.11); color: #a9bee8; }
.badge--soft { text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: 10.5px; }

/* The status badge doubles as its own control: the <span> keeps the badge look
   including the per-status colour, and the <select> inside is transparent, so
   what you click is exactly what you see. */
.badge--pick { padding-right: 5px; gap: 3px; cursor: pointer; }
.badge--pick select {
  appearance: none; -webkit-appearance: none;
  padding: 0; margin: 0; border: 0; outline: none;
  background: transparent; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.badge--pick .ico { flex: none; width: 11px; height: 11px; opacity: .55; pointer-events: none; }
/* The badge has no focus style of its own, and the select's own outline is
   suppressed — without this, tabbing to it lands nowhere visible. */
.badge--pick:focus-within { box-shadow: 0 0 0 2px var(--brand-line); }
/* The open list is drawn by the OS and inherits neither the uppercase nor the
   translucent background, so both are spelled out or the options come out
   unreadable on some platforms. */
.badge--pick option {
  background: var(--surface-2); color: var(--text);
  text-transform: none; letter-spacing: normal; font-size: 13px;
}

/* Roster verdict from the "Active Clients" board. Only ever shown for the
   cases that are NOT active, so both variants read as an exception: muted
   grey for "no longer a client", dashed for "no row matched", which is a
   question rather than a state. */
.badge--roster     { border-style: dashed; border-color: var(--line-strong); color: var(--text-2); }
.badge--roster-off { border-style: solid; border-color: rgba(242,114,111,.38); background: rgba(242,114,111,.09); color: #ff9a97; }

/* Empty state */
.empty {
  padding: 56px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--r-xl);
  background: rgba(17,22,26,.4);
}
.empty__ico {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-2);
}
.empty__ico .ico { width: 26px; height: 26px; }
.empty h3 { font-size: 21px; }
.empty p { margin: 8px auto 20px; max-width: 44ch; color: var(--text-3); font-size: 14px; }

/* =============================================================
   CLIENT PAGE
   ============================================================= */
.crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 13px; }
.crumb a { color: var(--text-3); display: inline-flex; align-items: center; gap: 7px; }
.crumb a:hover { color: var(--brand-2); }

.clhead {
  padding: 20px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(28,37,43,.6), rgba(17,22,26,.75));
}
@media (min-width: 768px) { .clhead { padding: 26px; } }
.clhead__row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; justify-content: space-between; }
.clhead h1 { font-size: clamp(26px, 5vw, 38px); letter-spacing: -.01em; overflow-wrap: anywhere; }
.clhead__sub { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--text-3); }
.clhead__sub a:hover { text-decoration: underline; }
.clhead__badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.clhead__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.progblock { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.progblock__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.progblock__label { font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3); }
.progblock__pct { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
.progblock__pct small { font-size: 17px; color: var(--text-3); }
.progblock__stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.progblock__stats b { color: var(--text); font-weight: 500; }
.progblock__stats .warnnum { color: var(--warn); }

.done-banner {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 11px 14px; border-radius: var(--r);
  background: rgba(46,204,154,.1); border: 1px solid rgba(46,204,154,.4); color: #6fe0bd;
  font-size: 13.5px;
}

/* Layout: sidebar + list */
.cllayout { display: grid; gap: 22px; }
/* Grid/flex children default to min-width:auto, which lets the horizontally
   scrolling chip bar stretch its column and give the page a scrollbar. */
.cllayout > * { min-width: 0; }
@media (min-width: 980px) { .cllayout { grid-template-columns: 244px 1fr; gap: 30px; align-items: start; } }

/* Section nav */
.secnav { display: none; }
@media (min-width: 980px) {
  .secnav {
    display: block; position: sticky; top: 76px;
    max-height: calc(100vh - 100px); overflow-y: auto;
    padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: rgba(17,22,26,.6);
    scrollbar-width: thin;
  }
}
.secnav__title { padding: 6px 10px 10px; font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.secnav a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--text-2); line-height: 1.35;
  transition: background .15s, color .15s;
}
.secnav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.secnav a.is-active { background: var(--brand-soft); color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-line); }
.secnav a .n {
  margin-left: auto; flex: none; font-size: 10.5px; font-variant-numeric: tabular-nums;
  color: var(--text-3); font-weight: 500;
}
.secnav a.is-done .n { color: var(--ok); }
.secnav__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.16); }
.secnav a.is-done .secnav__dot { background: var(--ok); box-shadow: 0 0 7px rgba(46,204,154,.7); }

/* ── Monday assignments panel ──────────────────────────────── */
.monday {
  margin-bottom: 16px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(28,37,43,.5), rgba(17,22,26,.65));
}
.monday[hidden] { display: none; }
.monday__head { display: flex; gap: 12px; align-items: flex-start; }
.monday__head > .ico { color: var(--brand-2); flex: none; margin-top: 2px; }
.monday__head h3 { font-size: 17px; }
.monday__head p { margin-top: 2px; font-size: 12.4px; color: var(--text-3); }
.monday__head .btn { margin-left: auto; flex: none; }
.monday__empty { margin-top: 12px; font-size: 13px; color: var(--text-3); }

.tasklist { display: flex; flex-direction: column; margin-top: 12px; }
.task { padding: 10px 0; }
.task + .task { border-top: 1px solid rgba(255,255,255,.055); }
.task__name {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere;
}
.task__name .ico { width: 12px; height: 12px; color: var(--text-3); flex: none; }
.task__name:hover { color: var(--brand-2); }
.task__name:hover .ico { color: var(--brand-2); }
.task__meta { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 5px; font-size: 11.5px; color: var(--text-3); }
.task__meta span { display: inline-flex; align-items: center; gap: 5px; }
.task__meta .ico { width: 12px; height: 12px; }
.task__status {
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand-2);
  font-size: 10.5px; letter-spacing: .03em;
}
.task__group { opacity: .7; }
.task__dept {
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(155,140,255,.4); background: rgba(155,140,255,.12); color: #b9adff;
  font-size: 10.5px;
}
.monday__foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.8px; color: var(--text-3); }

/* Mobile chips */
.chips { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 980px) { .chips { display: none; } }
.chips a {
  flex: none; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  font-size: 12.5px; color: var(--text-2); white-space: nowrap;
}
.chips a.is-done { border-color: rgba(46,204,154,.4); color: #6fe0bd; background: rgba(46,204,154,.1); }

/* Filter bar */
.filterbar {
  display: grid; gap: 10px; margin-bottom: 16px;
  padding: 11px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(17,22,26,.6);
}
@media (min-width: 720px) { .filterbar { grid-template-columns: 1fr auto auto; align-items: center; } }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; }
.seg button {
  padding: 0 14px; height: 32px; border-radius: 999px;
  font-size: 13px; color: var(--text-3); transition: color .15s, background .15s; white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--brand-soft); color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-line); }
.seg button .n { font-size: 11px; opacity: .75; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Section block */
.sec { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(17,22,26,.55); margin-bottom: 14px; overflow: hidden; scroll-margin-top: 80px; }
.sec.is-complete { border-color: rgba(46,204,154,.28); }

.sec__head {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 15px 16px; text-align: left;
  transition: background .16s;
}
.sec__head:hover { background: rgba(255,255,255,.03); }
.sec__ico {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-2);
}
.sec.is-complete .sec__ico { background: rgba(46,204,154,.12); border-color: rgba(46,204,154,.4); color: var(--ok); }
.sec__t { min-width: 0; flex: 1; }
.sec__t h2 { font-size: 17.5px; line-height: 1.3; }
.sec__t p { margin-top: 2px; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
@media (max-width: 560px) { .sec__t p { display: none; } }
.sec__right { display: flex; align-items: center; gap: 12px; flex: none; }
.sec__count { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sec.is-complete .sec__count { color: var(--ok); }
.sec__chev { color: var(--text-3); transition: transform .22s var(--ease); }
.sec[open] .sec__chev, .sec.is-open .sec__chev { transform: rotate(180deg); }

.sec__minibar { height: 3px; background: rgba(255,255,255,.05); }
.sec__minibar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-deep), var(--brand)); transition: width .4s var(--ease); }
.sec.is-complete .sec__minibar span { background: var(--ok); }

.sec__body { display: none; padding: 4px 10px 12px; }
.sec.is-open .sec__body { display: block; }

/* Checklist item */
.item {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px;
  padding: 11px 8px; border-radius: var(--r);
  transition: background .14s;
}
.item + .item { border-top: 1px solid rgba(255,255,255,.045); }
.item:hover { background: rgba(255,255,255,.028); }
.item.is-busy { opacity: .55; pointer-events: none; }

.item__box {
  position: relative; flex: none;
  width: 22px; height: 22px; margin-top: 2px;
  border: 1.6px solid var(--line-strong); border-radius: 6px;
  background: rgba(255,255,255,.03);
  display: grid; place-items: center;
  transition: background .16s, border-color .16s, transform .12s;
}
.item__box svg { width: 13px; height: 13px; stroke: #02222a; stroke-width: 3; opacity: 0; transform: scale(.6); transition: opacity .16s, transform .16s; }
.item input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.item:hover .item__box { border-color: var(--brand-line); }
.item.is-done .item__box { background: var(--brand); border-color: var(--brand); }
.item.is-done .item__box svg { opacity: 1; transform: scale(1); }
.item input:focus-visible + .item__box { outline: 2px solid var(--brand-2); outline-offset: 3px; }

.item__text { min-width: 0; cursor: pointer; }
.item__text > span { font-size: 14.2px; line-height: 1.5; color: var(--text); font-weight: 300; overflow-wrap: anywhere; }
.item.is-done .item__text > span { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.item__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.item__ts { font-size: 10.5px; color: var(--text-3); letter-spacing: .02em; }
.item__act { display: flex; align-items: center; gap: 2px; }
.item__act .iconbtn { width: 30px; height: 30px; }
.item__act .iconbtn .ico { width: 14px; height: 14px; }

.secfoot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 8px 4px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.05); }
.secfoot .grow { flex: 1; }
.addrow { display: flex; gap: 8px; width: 100%; margin-top: 8px; }
.addrow .input { min-height: 40px; }
.noitems { padding: 18px 10px; text-align: center; font-size: 13.5px; color: var(--text-3); }

.tipline { margin: 18px 2px 0; font-size: 12px; color: var(--text-3); text-align: center; }

/* ── Comments ──────────────────────────────────────────────── */
.cmtbtn { position: relative; }
.cmtbtn.has-cmt { color: var(--brand-2); }
.cmtbtn.is-open { background: var(--brand-soft); color: var(--brand-2); border-color: var(--brand-line); }
.cmtbtn b {
  position: absolute; top: 1px; right: 0;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 99px; background: var(--brand); color: #02222a;
  font-size: 9.5px; font-weight: 700; line-height: 14px; text-align: center;
}

.thread {
  grid-column: 1 / -1;
  margin: 8px 0 2px 34px; padding: 12px;
  border: 1px solid var(--line); border-left: 2px solid var(--brand-line);
  border-radius: var(--r); background: rgba(0, 0, 0, .22);
}
@media (max-width: 560px) { .thread { margin-left: 0; } }
.thread__empty { font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.thread__list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 13px; }
.cmt__head { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--text-3); }
.cmt__head b { color: var(--brand-2); font-weight: 500; }
/* The wrapper carries the push to the right, so adding a second button does
   not give each one its own auto margin. */
.cmt__acts { margin-left: auto; display: flex; gap: 2px; }
.cmt__head .iconbtn { width: 24px; height: 24px; opacity: 0; transition: opacity .15s; }
.cmt__head .iconbtn .ico { width: 12px; height: 12px; }
.cmt:hover .cmt__head .iconbtn, .cmt__head .iconbtn:focus-visible { opacity: 1; }

/* Where a shared link landed. Fades out on its own — a highlight that stays
   would still be there next week, long after it meant anything. */
.cmt.is-target {
  border-radius: var(--r-sm);
  outline: 2px solid var(--brand-line);
  outline-offset: 5px;
  animation: cmtflash 2.6s ease-out forwards;
}
@keyframes cmtflash {
  0%, 55% { background: var(--brand-soft); }
  100%    { background: transparent; outline-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .cmt.is-target { animation: none; background: var(--brand-soft); }
}
.cmt p { margin-top: 3px; font-size: 13.2px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }

.thread__form { display: grid; gap: 8px; }
@media (min-width: 620px) { .thread__form { grid-template-columns: 190px 1fr auto; align-items: start; } }
.input--sm, .textarea--sm { min-height: 38px; padding: 8px 11px; font-size: 13.2px; }
.textarea--sm { min-height: 38px; }
.thread__form .btn { align-self: start; }

/* ── Comment attachments ───────────────────────────────────── */

.thread__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* The picker is a <label> wrapping a hidden input, so it needs the pointer a
   button would have had. */
.pick { cursor: pointer; }

/* Posted screenshots. Rows wrap rather than scroll sideways: a thread is
   already inside a scrolling panel, and nesting a second axis makes the
   images unreachable on a trackpad. */
.shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.shot {
  padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface-2); cursor: zoom-in; overflow: hidden; line-height: 0;
  transition: border-color .15s, transform .15s;
}
.shot:hover, .shot:focus-visible { border-color: var(--brand-line); transform: translateY(-1px); }
/* width/height attributes carry the real aspect ratio; the box is fixed so a
   row of mixed portrait and landscape shots still reads as a row. */
.shot img { display: block; width: auto; height: 84px; max-width: 190px; object-fit: cover; }

/* Chosen but not yet posted. */
.pending { display: flex; flex-wrap: wrap; gap: 7px; }
.pending:empty { display: none; }
.chip--shot {
  display: inline-flex; align-items: center; gap: 7px; max-width: 220px;
  padding: 4px 4px 4px 5px; font-size: 11.5px; color: var(--text-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface-2);
}
.chip--shot img { width: 26px; height: 26px; object-fit: cover; border-radius: 5px; flex: none; }
.chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip__x {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px;
  border: 0; border-radius: 5px; background: transparent; color: var(--text-3); cursor: pointer;
}
.chip__x:hover, .chip__x:focus-visible { background: rgba(242,114,111,.14); color: var(--danger); }
.chip__x .ico { width: 12px; height: 12px; }

/* ── Lightbox ──────────────────────────────────────────────── */

.lb {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column;
  background: rgba(4, 6, 8, .93);
  /* No blur: the layer covers the whole viewport, and blurring a full-screen
     backdrop costs a repaint on every arrow-key press. */
}
body.has-lb { overflow: hidden; }

.lb__bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 17, .9);
}
.lb__name {
  font-size: 12.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw;
}
.lb__count {
  flex: none; font-size: 11.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.lb__stage {
  flex: 1; min-height: 0; min-width: 0; position: relative;
  display: flex; padding: 16px;
  overflow: hidden;
}

/* Fit mode.
   `max-height: 100%` on the image was the bug: a percentage max-height
   resolves against the parent's height, the <figure> had height auto, and an
   indefinite parent height makes the constraint behave as none — so a tall
   screenshot rendered at full size and overflowed the overlay.
   The fix takes the percentage out of it: the figure fills the stage as a flex
   item, and object-fit sizes the image inside that real box. `scale-down`
   rather than `contain` so a small image is never blown up past its own
   resolution. */
.lb__fig {
  margin: 0; flex: 1; min-width: 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  line-height: 0; cursor: zoom-in;
}
.lb__fig img {
  display: block; width: 100%; height: 100%; object-fit: scale-down;
  border-radius: var(--r-sm); background: var(--surface);
}

/* Zoom mode: natural size, and the stage scrolls. This is also what makes a
   long screenshot readable — fit mode shrinks a 1200x4000 page to thumbnail
   text, and no amount of fitting fixes that. */
.lb.is-zoom .lb__stage {
  overflow: auto;
  /* Let touch pan and pinch inside the overlay rather than being swallowed by
     the body's scroll lock. */
  touch-action: pan-x pan-y pinch-zoom;
  padding: 0;
}
.lb.is-zoom .lb__fig {
  flex: none; margin: auto; cursor: zoom-out;
  /* min-content stops the figure collapsing narrower than the image when the
     image is wider than the stage, which is what breaks horizontal panning. */
  min-width: min-content; min-height: min-content;
}
.lb.is-zoom .lb__fig img {
  width: auto; height: auto; max-width: none; max-height: none;
  object-fit: none; border-radius: 0;
}

.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgba(11, 14, 17, .82); color: var(--text); cursor: pointer;
}
.lb__nav:hover, .lb__nav:focus-visible { border-color: var(--brand-line); color: var(--brand-2); }
.lb__nav--prev { left: 14px; }
.lb__nav--next { right: 14px; }
/* The next arrow reuses the chevron, which points right already. */
.lb__nav .ico { width: 20px; height: 20px; }

@media (max-width: 560px) {
  .lb__nav { width: 38px; height: 38px; }
  .lb__nav--prev { left: 6px; }
  .lb__nav--next { right: 6px; }
  .lb__name { max-width: 36vw; }
}

/* The renewal caveat under the expiring-domain list. Dimmer than the list
   itself: the names and dates are what somebody acts on, this is the sentence
   that stops them looking for a Renew button in here. */
.dom__note { display: inline-block; margin-top: 6px; opacity: .75; font-size: 12px; }

/* The findings inbox. Handled rows stay visible but recede — removing them
   outright loses the record of what was decided and by whom. */
.fnd { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.fnd__t { flex: 1; min-width: 0; }
.fnd__t b { font-weight: 400; color: var(--text); }
.fnd__t > span { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.8px; }
.fnd__ack { color: var(--brand-2) !important; }
.fnd.is-acked { opacity: .5; }
.fnd.is-acked .fnd__t b { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.fnd .btn { flex: none; }

/* Sites needing updates. A list with the action on each row rather than a
   count somewhere: the point is to remove every step between knowing and
   doing, and a number you have to go looking behind is a step. */
.upd { list-style: none; margin: 4px 0 6px; padding: 0; }
.upd__row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.upd__row:first-child { border-top: 0; }
.upd__t { flex: 1; min-width: 0; }
.upd__t b { display: block; font-size: 13.4px; font-weight: 400; color: var(--text); }
.upd__t span { font-size: 11.8px; color: var(--text-3); }

/* Weekly maintenance cycle. Verified rows and ticked rows are drawn
   differently on purpose: a tick nobody put there and a tick somebody put
   there mean different things. */
.cyc { list-style: none; margin: 4px 0 10px; padding: 0; }
.cyc__row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.cyc__row:first-child { border-top: 0; }
.cyc__dot { flex: none; display: grid; place-items: center; width: 22px; height: 22px; }
.cyc__dot .ico { width: 15px; height: 15px; }
.cyc__row--pass .cyc__dot { color: var(--ok); }
.cyc__row--done .cyc__dot { color: var(--brand-2); }
.cyc__row--fail .cyc__dot { color: var(--danger); }
.cyc__row--unknown .cyc__dot, .cyc__row--todo .cyc__dot { color: var(--text-3); }
.cyc__t { min-width: 0; flex: 1; }
.cyc__t b { display: block; font-size: 13.4px; font-weight: 400; color: var(--text); }
/* The automatic marker is small and permanent — it says where the answer came
   from, which is the difference between evidence and assertion. */
.cyc__t i { font-style: normal; font-size: 10.5px; letter-spacing: .04em;
            text-transform: uppercase; color: var(--text-3); }
.cyc__ev { flex: none; font-size: 12px; color: var(--text-3); text-align: right; }
.cyc__pct { margin-top: 5px; text-align: right; font-size: 11.5px; color: var(--text-3);
            font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .cyc__ev { width: 100%; text-align: left; padding-left: 32px; }
}

/* Whole-site audit: findings grouped by rule. Four hundred missing alt
   attributes and one broken pagination are not four hundred and one problems,
   so each rule is one collapsed row that opens to the URLs it affects. */
.cg { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; background: var(--surface-2); }
.cg > summary {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  cursor: pointer; font-size: 13.4px; list-style: none;
}
.cg > summary::-webkit-details-marker { display: none; }
.cg > summary b { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.cg[open] > summary { border-bottom: 1px solid var(--line); }
.cg__n {
  margin-left: auto; flex: none; min-width: 26px; text-align: center;
  padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.07);
  font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.cg .find__fix { padding: 10px 12px 0; margin: 0; }
.cg__list { list-style: none; margin: 8px 0 0; padding: 0 12px 10px; }
.cg__list li { padding: 5px 0; border-top: 1px solid var(--line); font-size: 12.4px; }
.cg__list li:first-child { border-top: 0; }
.cg__list a { color: var(--brand-2); overflow-wrap: anywhere; }
.cg__list span { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.8px; }
.cg__more { color: var(--text-3); }
.crawl__prog { margin-top: 10px; font-size: 12.8px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Security-scan findings. The fix line matters as much as the finding, so it
   is a sibling paragraph rather than a tooltip nobody opens. */
.find--sev-critical .find__dot { color: var(--danger); }
.find--sev-high     .find__dot { color: #ff9a97; }
.find--sev-medium   .find__dot { color: var(--warn); }
.find--sev-low      .find__dot { color: var(--text-3); }
.find--sev-info     .find__dot { color: var(--brand-2); }
.find__fix { margin-top: 6px; font-size: 12.6px; color: var(--text-2); opacity: .9; }
.find__fix .ico { width: 12px; height: 12px; vertical-align: -1px; color: var(--brand-2); }
.find__tag--critical { border-color: rgba(242,114,111,.5); color: var(--danger); }
.find__tag--high     { border-color: rgba(242,114,111,.35); color: #ff9a97; }
.find__tag--medium   { border-color: rgba(245,181,68,.4); color: var(--warn); }
.find__tag--info     { border-color: var(--brand-line); color: var(--brand-2); }

/* ── Site diagnosis report ─────────────────────────────────── */

/* Wider than a form modal: the report is tables of evidence, and wrapping a
   header value onto three lines is what makes one unreadable. */
.modal--wide { max-width: 720px; }

.alert--ok { border-color: rgba(46,204,154,.42); background: rgba(46,204,154,.1); color: #6fe0bd; }
/* The verdict is two sentences, so the alert has to stop centring its text. */
.alert--ok span, .alert--warn span, .alert--error span { line-height: 1.5; }

.phead {
  margin: 18px 0 7px; font-family: var(--display);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
}
.phead:first-child { margin-top: 0; }

.ptab { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.ptab th, .ptab td {
  padding: 6px 8px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.ptab tr:last-child th, .ptab tr:last-child td { border-bottom: 0; }
.ptab th { color: var(--text-3); font-weight: 400; width: 45%; }
.ptab td { color: var(--text-2); overflow-wrap: anywhere; }
.ptab thead th { color: var(--text-3); width: auto; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
/* Timing columns: equal-width digits so the numbers line up down the column,
   which is the only way a set of samples reads as a trend. */
.ptab--n td, .ptab--n th { font-variant-numeric: tabular-nums; width: auto; }
.ptab--n td { text-align: left; }
.ptab--mono th, .ptab--mono td { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11.8px; }

/* ── Audit findings ────────────────────────────────────────── */
.find__summary { display: flex; gap: 10px; margin-bottom: 12px; }
.find__stat {
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--display); font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-strong);
}
.find__stat--pass { border-color: rgba(46,204,154,.45); background: rgba(46,204,154,.12); color: #6fe0bd; }
.find__stat--fail { border-color: rgba(242,114,111,.4); background: rgba(242,114,111,.1); color: #ff9a97; }
.find__note { margin-bottom: 16px; font-size: 12.5px; line-height: 1.55; color: var(--text-3); }

.findlist { display: flex; flex-direction: column; gap: 2px; }
.find {
  display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start;
  padding: 11px 10px; border-radius: var(--r);
}
.find + .find { border-top: 1px solid rgba(255,255,255,.05); }
.find__dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; }
.find__dot .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.find--pass .find__dot { background: rgba(46,204,154,.16); color: var(--ok); }
.find--fail .find__dot { background: rgba(242,114,111,.14); color: var(--danger); }
.find--unknown .find__dot { background: rgba(245,181,68,.14); color: var(--warn); }
.find b { font-weight: 400; font-size: 13.8px; line-height: 1.45; }
.find p { margin-top: 3px; font-size: 12.2px; line-height: 1.5; color: var(--text-3); overflow-wrap: anywhere; }
.find--pass b { color: var(--text); }
.find--fail b { color: var(--text-2); }
.find.is-already { opacity: .6; }
.find__tag {
  display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--text-3);
}

.baselist { margin: 0 0 20px; padding-left: 20px; list-style: disc; }
.baselist li { font-size: 13.2px; line-height: 1.55; color: var(--text-2); margin-bottom: 4px; }

.steps2 .sheet__lbl { margin-bottom: 7px; }
.steps2 .sheet__code code { white-space: nowrap; }

.keepopen {
  margin: 16px 0 4px; padding: 14px 16px;
  border: 1px solid rgba(245,181,68,.35); border-radius: var(--r);
  background: rgba(245,181,68,.07);
}
.keepopen b { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--warn); }
.keepopen .baselist { margin: 10px 0 0; }

.dangerzone {
  margin-top: 22px; padding: 15px 16px;
  border: 1px solid rgba(242,114,111,.32); border-radius: var(--r);
  background: rgba(242,114,111,.06);
}
.dangerzone b { font-family: var(--display); font-size: 15.5px; font-weight: 600; color: #ff9a97; }
.dangerzone p { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }

/* ── Google Sheets panel ───────────────────────────────────── */
.sheet {
  margin-top: 26px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(28,37,43,.45), rgba(17,22,26,.6));
}
.sheet__head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 14px; }
.sheet__head .ico { color: var(--brand-2); margin-top: 2px; }
.sheet__head h3 { font-size: 18px; }
.sheet__head p { margin-top: 3px; font-size: 12.8px; color: var(--text-3); }
.sheet__steps { margin: 0 0 16px; padding-left: 18px; list-style: decimal; }
.sheet__steps li { font-size: 12.8px; color: var(--text-2); margin-bottom: 4px; line-height: 1.5; }
.sheet__row { margin-bottom: 12px; }
.sheet__lbl { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.sheet__note { margin-bottom: 12px; font-size: 13px; color: var(--text-2); }
.sheet__code { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sheet__code code {
  flex: 1; min-width: 0; padding: 10px 12px;
  background: rgba(0,0,0,.34); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--text);
  overflow-x: auto; white-space: nowrap;
}
.sheet__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet__warn { display: flex; gap: 7px; align-items: flex-start; font-size: 11.8px; color: var(--warn); flex: 1; min-width: 240px; }
.sheet__warn .ico { width: 14px; height: 14px; margin-top: 2px; flex: none; }

/* =============================================================
   MODALS
   ============================================================= */
.overlay {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: end center;
  background: rgba(4, 7, 9, .74);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 0;
  animation: fadeIn .18s var(--ease);
}
@media (min-width: 640px) { .overlay { place-items: center; padding: 24px; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } }

.modal {
  width: 100%; max-width: 620px; max-height: 92vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1a2227, #11161a);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-3);
  animation: slideUp .24s var(--ease);
}
@media (min-width: 640px) { .modal { border-radius: var(--r-xl); } }
.modal--sm { max-width: 460px; }

.modal__head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.modal__grip { display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 9px auto -4px; }
@media (min-width: 640px) { .modal__grip { display: none; } }
.modal__head h2 { font-size: 21px; line-height: 1.25; }
.modal__head p { margin-top: 5px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.modal__head .iconbtn { margin-left: auto; flex: none; }
.modal__body { padding: 20px; overflow-y: auto; flex: 1; }
.modal__foot {
  display: flex; gap: 10px; padding: 14px 20px 20px; border-top: 1px solid var(--line);
  flex-direction: column-reverse;
}
@media (min-width: 520px) { .modal__foot { flex-direction: row; justify-content: flex-end; } .modal__foot .btn { min-width: 128px; } }
.modal__foot .spacer { flex: 1; }

/* CMS picker */
.cmspick { display: grid; gap: 10px; }
@media (min-width: 560px) { .cmspick { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 560px) { .cmspick--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 780px) { .cmspick--4 { grid-template-columns: repeat(4, 1fr); } }
.cmspick label {
  position: relative; display: block; cursor: pointer;
  padding: 14px 14px 13px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  transition: border-color .16s, background .16s, transform .14s;
}
.cmspick label:hover { border-color: rgba(255,255,255,.24); transform: translateY(-1px); }
.cmspick input { position: absolute; opacity: 0; width: 0; height: 0; }
.cmspick input:checked + .cmspick__in { color: var(--text); }
.cmspick label.is-sel,
.cmspick label:has(input:checked) { border-color: var(--brand); background: rgba(0,179,197,.09); box-shadow: 0 0 0 1px var(--brand) inset; }
.cmspick label:has(input:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.cmspick__name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 16px; font-weight: 600; }
.cmspick__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.cmspick label.is-sel .cmspick__dot,
.cmspick label:has(input:checked) .cmspick__dot { background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.cmspick__d { margin-top: 5px; font-size: 12px; color: var(--text-3); line-height: 1.45; }
.cmspick__n { margin-top: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); }

.checkline { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.checkline input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }

/* =============================================================
   TOASTS
   ============================================================= */
.toasts {
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
@media (min-width: 640px) { .toasts { left: auto; right: 22px; bottom: 22px; align-items: flex-end; } }
.toast {
  display: flex; gap: 10px; align-items: center;
  max-width: 400px; padding: 12px 15px;
  border-radius: var(--r); font-size: 13.5px; line-height: 1.45;
  background: #1b2429; border: 1px solid var(--line-strong);
  box-shadow: var(--sh-3); pointer-events: auto;
  animation: toastIn .24s var(--ease);
}
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }
.toast.is-out { animation: toastOut .2s var(--ease) forwards; }
@keyframes toastOut { to { transform: translateY(8px); opacity: 0; } }
.toast--ok    { border-color: rgba(46,204,154,.45); }
.toast--ok .ico { color: var(--ok); }
.toast--err   { border-color: rgba(242,114,111,.5); }
.toast--err .ico { color: var(--danger); }
.toast--warn  { border-color: rgba(245,181,68,.45); }
.toast--warn .ico { color: var(--warn); }

/* Skeleton */
.skel { border-radius: var(--r-lg); background: linear-gradient(100deg, rgba(255,255,255,.035) 30%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.035) 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }
.skel--card { height: 186px; }

/* Scrollbars */
* { scrollbar-color: rgba(255,255,255,.18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); background-clip: content-box; }

body.is-locked { overflow: hidden; }

/* =============================================================
   PRINT — so Ctrl+P produces something usable
   ============================================================= */
@media print {
  .aurora, .topbar, .footer, .toolbar, .filterbar, .secnav, .chips,
  .overlay, .toasts, .skip, .clhead__actions, .secfoot, .item__act { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .view { padding: 0; max-width: none; }
  .sec, .clhead, .card { border: 1px solid #ccc !important; background: #fff !important; break-inside: avoid; }
  .sec__body { display: block !important; }
  .item__text > span, .clhead h1, .sec__t h2 { color: #000 !important; }
  .item.is-done .item__text > span { color: #555 !important; }
  .item__box { border-color: #666 !important; }
  .item.is-done .item__box { background: #000 !important; }
  .item.is-done .item__box svg { opacity: 1; stroke: #fff; }
  a { color: #000 !important; }
}

/* ── Team roster ───────────────────────────────────────────── */
.teamlist { display: flex; flex-direction: column; }
.member {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 11px 0;
}
.member + .member { border-top: 1px solid rgba(255,255,255,.055); }
.member b { font-weight: 500; font-size: 14.2px; margin-right: 9px; }
.member__seen { display: block; margin-top: 2px; font-size: 11.6px; color: var(--text-3); }
.member__act { display: flex; gap: 6px; align-items: center; }

.credlist { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.credlist li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.credlist b { min-width: 92px; font-weight: 500; }
.credlist code {
  flex: 1; min-width: 0; padding: 9px 12px;
  background: rgba(0,0,0,.35); border: 1px solid var(--brand-line); border-radius: var(--r-sm);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--brand-2);
  overflow-x: auto;
}

.whoami {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font-size: 12.4px; color: var(--text-2); white-space: nowrap;
}
.whoami .ico { width: 13px; height: 13px; color: var(--brand-2); }
@media (max-width: 760px) { .whoami { display: none; } }

/* One column, stacked: the send button moved inside .thread__tools when
   attachments were added, so the form's rows are now textarea → tools →
   pending files rather than a textarea beside a button. */
.thread__form--noname { grid-template-columns: 1fr !important; }

/* ── Server diagnostics ────────────────────────────────────── */
.diaglist { display: flex; flex-direction: column; margin-top: 14px; }
.diag {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 11px; align-items: start;
  padding: 9px 0;
}
.diag + .diag { border-top: 1px solid rgba(255,255,255,.05); }
.diag__dot { grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px; }
.diag__dot .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.diag--ok   .diag__dot { background: rgba(46,204,154,.16); color: var(--ok); }
.diag--warn .diag__dot { background: rgba(245,181,68,.14); color: var(--warn); }
.diag--bad  .diag__dot { background: rgba(242,114,111,.16); color: var(--danger); }
.diag b { font-weight: 400; font-size: 13.6px; }
.diag__detail { font-size: 12.2px; color: var(--text-3); overflow-wrap: anywhere; }
.diag--bad b { color: #ff9a97; }

.tokenform { margin-top: 14px; }
.tokenform[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════
   Uptime monitor
   Operational signal, not checklist progress — so it never borrows
   the brand colour the progress rings and bars use.
   ═══════════════════════════════════════════════════════════════ */

.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  flex: none; vertical-align: middle; cursor: help;
}
.dot--up       { background: var(--ok); box-shadow: 0 0 0 3px rgba(46,204,154,.14); }
.dot--down     { background: var(--danger); box-shadow: 0 0 0 3px rgba(242,114,111,.16); }
.dot--degraded { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,181,68,.16); }
/* Unstable answers fine at the moment it is probed, so it must not read as
   healthy. The ring is what separates it from a plain green dot at a glance. */
.dot--flap     { background: var(--warn); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--warn); }
.dot--muted    { background: var(--text-3); opacity: .5; }
.dot--none     { background: transparent; border: 1.5px solid var(--line-strong); }

.card__badges .dot { margin-left: auto; }

/* Dashboard banner */
.downbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 13px 16px;
  border: 1px solid rgba(242,114,111,.4); background: rgba(242,114,111,.09);
  border-radius: var(--r);
}
/* display:flex above outranks the [hidden] attribute, so hiding it needs
   saying twice — same pairing as .monday, .tokenform and .uptime. Without
   this the banner sat there as an empty red bar on a roster with nothing
   wrong, which reads as an alarm nobody can act on. */
.downbar[hidden] { display: none; }
.downbar--flap { border-color: rgba(245,181,68,.42); background: rgba(245,181,68,.09); }
.downbar > .ico { color: var(--danger); flex: none; }
.downbar--flap > .ico { color: var(--warn); }
.downbar__t { display: flex; flex-direction: column; min-width: 0; }
.downbar__t b { font-size: 14px; color: var(--text); }
.downbar__t span { font-size: 12.4px; color: var(--text-2); }
.downbar .btn { margin-left: auto; flex: none; }

/* The self-driving check. Deliberately quiet: it reports that something is
   working, which is the least urgent thing on the page and must not compete
   with the red banner directly above it. */
.sweepbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 9px 14px;
  border: 1px solid var(--line); background: var(--surface-2);
  border-radius: var(--r); font-size: 12.6px; color: var(--text-2);
}
.sweepbar[hidden] { display: none; }
.sweepbar__t { min-width: 0; }
.sweepbar .btn { margin-left: auto; flex: none; }
.sweepbar__dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--ok);
}
.sweepbar--off .sweepbar__dot { background: var(--text-3); }
/* Pulses only while a slice is in flight, so the page shows activity without
   an animation running forever in the corner of someone's eye. */
.sweepbar__dot.is-live { animation: sweeppulse 1.1s ease-in-out infinite; }
@keyframes sweeppulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .sweepbar__dot.is-live { animation: none; opacity: .6; }
}

/* Project page panel */
.uptime {
  margin-bottom: 18px; padding: 16px 18px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg);
}
.uptime[hidden] { display: none; }
.uptime__head { display: flex; gap: 12px; align-items: flex-start; }
.uptime__head > .ico { color: var(--brand-2); flex: none; margin-top: 2px; }
.uptime__head h3 { font-size: 17px; }
.uptime__head p { margin-top: 2px; font-size: 12.4px; color: var(--text-3); }
.uptime__head .btn { margin-left: auto; flex: none; }

.uptime__state { display: flex; align-items: center; gap: 9px; margin-top: 13px; font-size: 14px; }
.uptime__state b { font-size: 15px; }
.uptime__state span { color: var(--text-3); font-size: 12.4px; }

/* Duration and frequency on the same row, deliberately. A 30-day percentage
   on its own reads as healthy for a site that broke six times yesterday. */
/* Who served it and whether we reached the application or only its cache.
   Sits under the state because it is the context for that state. */
/* The dead man's switch row inside the alerts panel. */
.hbrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.hbrow__t { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.hbrow__t b { font-size: 14px; }
.hbrow__t span { font-size: 12.4px; color: var(--text-2); }

.uptime__served { margin-top: 7px; font-size: 12.4px; color: var(--text-3); line-height: 1.5; }
.uptime__served-warn { color: var(--warn); }

.uptime__figs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 13px; }
.uptime__fig { display: flex; flex-direction: column; gap: 2px; }
.uptime__fig b { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.uptime__fig small { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.uptime__fig--warn b { color: var(--warn); }
.uptime__fig--bad  b { color: var(--danger); }

.uptime__note { margin-top: 11px; font-size: 12.4px; color: var(--text-2); }
.uptime__note--warn { color: #ffd48a; }
.uptime__note--bad  { color: #ff9a97; }

.inclist { display: flex; flex-direction: column; margin-top: 13px; }
.inclist h4 { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.inc { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; font-size: 12.4px; }
.inc + .inc { border-top: 1px solid rgba(255,255,255,.055); }
.inc__when { color: var(--text-2); }
.inc__dur  { color: var(--text-3); }
.inc__why  { color: #ff9a97; }
.inc--blip .inc__why { color: #ffd48a; }
.inc__tag {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 1px 7px;
}
