/* SG — "morning briefing" look (approved mock-up, 3 Nov 2026). */
:root {
  --ground: #F3F4F8; --card: #FFFFFF; --ink: #0F172A; --ink-2: #334155; --muted: #5B6476;
  --line: #E4E7EE; --rule: #EDEFF4; --soft: #F6F7FB; --track: #E8EBF2;
  --navy: #101A33; --navy-2: #1A2645; --navy-line: #3A4A72; --on-navy: #C9D2E8; --on-navy-2: #8E9AB8;
  --accent: #F5A524; --link: #4338CA; --indigo: #4F46E5;
  --ok: #166534; --ok-bg: #DCFCE7; --ok-dot: #16A34A; --ok-on-navy: #4ADE80;
  --bad: #991B1B; --bad-bg: #FEE2E2;
  --warn: #92400E; --warn-bg: #FEF3C7;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 16px 48px;
  display: flex; flex-direction: column; gap: 20px; }
.flash { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 12px; margin: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; }

/* buttons */
button, .btn { font: inherit; cursor: pointer; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--navy); border-color: var(--accent); font-weight: 700; }
.btn.ghost-dark { background: transparent; color: #fff; border-color: var(--navy-line); }
.btn.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.linkbtn { background: none; border: 0; color: var(--link); font-weight: 600; font-size: 13px;
  min-height: 36px; padding: 0 6px; }
form.inline { display: inline; margin: 0; }

/* ---- header band ---- */
.hero { background: var(--navy); color: #fff; border-radius: 22px; padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 22px; }
.hero-top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font: 700 15px var(--display); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy); }
.hero h1 { margin: 8px 0 0; font-size: 36px; line-height: 1.1; }
.hero .date { margin: 4px 0 0; color: #B8C1D9; }
.hero-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fresh-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-navy); }
.fresh-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-on-navy); }
.fresh-dot.old::before { background: var(--accent); }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { flex: 1 1 140px; background: var(--navy-2); border-radius: 16px; padding: 14px 16px; }
.stat b { display: block; font: 700 30px/1.2 var(--display); }
.stat b small { font-size: 18px; color: var(--on-navy-2); }
.stat span { font-size: 13px; color: var(--on-navy); }
.stat .good { color: var(--ok-on-navy); }
.stat .hot { color: var(--accent); }
.stat.next { flex: 2 1 260px; display: flex; gap: 14px; align-items: center; }
.cal { flex: none; width: 52px; height: 56px; border-radius: 12px; background: #fff; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.cal small { font-size: 11px; font-weight: 700; color: #B42318; letter-spacing: .06em; }
.cal strong { font: 700 22px var(--display); }
.next-text { display: flex; flex-direction: column; gap: 2px; }
.next-text small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-2); }
.next-text strong { font-size: 15px; font-weight: 600; }

/* ---- alerts ---- */
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alerts li { display: flex; gap: 10px; align-items: center; background: var(--bad-bg); color: var(--bad);
  border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.alerts li.warn { background: var(--warn-bg); color: var(--warn); }

/* ---- layout ---- */
.row2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.main-col { flex: 999 1 560px; min-width: 0; }
.side-col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: space-between; align-items: center; }
.card h2 { margin: 0; font-size: 22px; }
.card h3 { margin: 0; font-size: 15px; }
.titled { display: flex; align-items: center; gap: 12px; }
.titled small { display: block; font-size: 12px; color: var(--muted); }
.icon { flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff;
  display: flex; align-items: center; justify-content: center; }
.icon svg { width: 20px; height: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pill.up { color: var(--ok); background: var(--ok-bg); }
.pill.up::before, .pill.down::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok-dot); }
.pill.down { color: var(--bad); background: var(--bad-bg); }
.pill.down::before { background: var(--bad); }
.pill.unknown { color: var(--muted); background: var(--soft); }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.info { color: #3730A3; background: #EEF0FF; }
.banner { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 14px;
  font-size: 14px; font-weight: 500; margin: 0; }
.banner.ok { background: var(--ok-bg); color: #14532D; }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.quiet { background: var(--soft); color: var(--muted); }

/* ---- action centre ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--ground); border-radius: 14px; padding: 5px; }
.tabs a { flex: 1 1 auto; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; color: #475069; font-weight: 600; font-size: 14px; text-decoration: none; padding: 0 10px; }
.tabs a span { font-size: 12px; color: var(--muted); }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; }
.tabs a[aria-current="page"] span { color: var(--on-navy); }
details.adder > summary { list-style: none; }
details.adder > summary::-webkit-details-marker { display: none; }
details.adder[open] > summary { background: var(--navy); color: #fff; border-color: var(--navy); }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.items .item:first-child { border-top: 0; }
.tick { flex: none; width: 44px; height: 44px; margin: -8px 0 0 -8px; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; }
.tick span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #B6BED0; display: flex;
  align-items: center; justify-content: center; color: transparent; }
.tick:hover span { border-color: var(--ok-dot); color: var(--ok-dot); }
.item.done .tick span { background: var(--ok-dot); border-color: var(--ok-dot); color: #fff; }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item-text { font-size: 15px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.item-text a { color: inherit; text-decoration-color: #B6BED0; }
.item.done .item-text { text-decoration: line-through; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.chip { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 8px; background: var(--soft); color: var(--ink-2); }
.chip.c0 { background: #EEF0FF; color: #3730A3; }
.chip.c1 { background: #DDF4F1; color: #0F5F58; }
.chip.c2 { background: #FFEDD5; color: #9A3412; }
.chip.c3 { background: #FCE7F3; color: #9D174D; }
.chip.kind { background: transparent; color: var(--muted); padding: 0; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.why { font-weight: 700; }
.why.overdue { color: var(--bad); }
.why.due-today, .why.check-today { color: var(--warn); }
.why.stale { color: var(--ink-2); }
.who { display: inline-flex; align-items: center; gap: 6px; }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: #E0E7FF; color: #3730A3; flex: none; }
.av.c1 { background: #CCFBF1; color: #115E59; }
.av.c2 { background: #FFEDD5; color: #9A3412; }
.av.c3 { background: #FCE7F3; color: #9D174D; }
.notes { font-size: 13px; color: var(--muted); }
.item-acts { display: flex; align-items: center; gap: 2px; flex: none; }
details.more > summary { list-style: none; color: var(--link); font-weight: 600; font-size: 13px;
  min-height: 36px; display: flex; align-items: center; padding: 0 6px; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
.item:has(details.more[open]) .item-acts { width: 100%; flex-direction: column; align-items: stretch; }
.more-panel { display: flex; flex-direction: column; gap: 10px; background: var(--soft); border-radius: 12px;
  padding: 12px; margin-top: 6px; }
.snooze { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.snooze button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink); }
form.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
form.fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
form.fields .wide, form.fields .acts { grid-column: 1 / -1; }
form.fields .acts { display: flex; gap: 8px; }
input, select { font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid #D5DAE5;
  border-radius: 10px; padding: 9px 10px; width: 100%; min-height: 42px; }
input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #A5B4FC; outline-offset: 2px; }
.add-panel { background: var(--soft); border-radius: 14px; padding: 14px; }

/* ---- apps list ---- */
.apps { display: flex; flex-direction: column; }
.app-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule);
  text-decoration: none; color: inherit; min-height: 44px; }
.app-row:first-child { border-top: 0; }
.app-row .name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-row .name strong { font-size: 15px; font-weight: 600; }
.app-row .name small { font-size: 12px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid #DCE0EA; border-radius: 999px; font-size: 14px; font-weight: 600; color: #1E293B; text-decoration: none; }
.links a svg { width: 13px; height: 13px; color: var(--muted); }

/* ---- billing ---- */
.month-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.ring { flex: none; width: 140px; height: 140px; position: relative; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label b { font: 700 30px var(--display); }
.ring-label b small { font-size: 18px; color: var(--muted); }
.ring-label span { font-size: 12px; color: var(--muted); }
.stages { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
details.stage > summary { display: grid; grid-template-columns: 128px 64px minmax(0, 1fr); gap: 10px;
  align-items: center; font-size: 14px; color: var(--ink-2); list-style: none; cursor: pointer; min-height: 32px; }
details.stage > summary::-webkit-details-marker { display: none; }
details.stage.blocking > summary { font-weight: 700; color: var(--ink); }
.count { font-variant-numeric: tabular-nums; }
.bar { height: 10px; background: var(--track); border-radius: 6px; overflow: hidden; display: block; }
.bar > i { display: block; height: 100%; background: var(--indigo); border-radius: 6px; }
.complete .bar > i, .bar.complete > i { background: var(--ok-dot); }
.outstanding { margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.outstanding span { font-size: 13px; background: var(--ground); border-radius: 8px; padding: 6px 10px; }
.outstanding em { font-style: normal; color: var(--muted); font-size: 12px; }
.older { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.older details { border-bottom: 1px solid var(--rule); }
.older summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; list-style: none; cursor: pointer; }
.older summary::-webkit-details-marker { display: none; }
.older .m { flex: 0 0 130px; font-size: 14px; font-weight: 600; }
.older .bar { flex: 1 1 160px; height: 8px; }
.older .s { font-size: 13px; color: var(--muted); }
.older .stages { padding: 0 0 12px; }

/* ---- go-live ---- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--soft); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.fact b { font: 700 24px var(--display); }
.fact span { font-size: 12px; color: var(--muted); }
.stack { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.faces { display: flex; }
.faces .av { width: 34px; height: 34px; font-size: 13px; border: 2px solid #fff; margin-left: -8px; }
.faces .av:first-child { margin-left: 0; }
details.people > summary { font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 32px;
  display: flex; align-items: center; gap: 8px; }
details.people ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.tile-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 600; }
.tile-links a { text-decoration: none; }
.small { font-size: 12px; color: var(--muted); margin: 0; }
.fails { display: flex; flex-direction: column; gap: 8px; }
.fails h3 { font-size: 13px; color: var(--ink-2); }
details.got-in, details.got-in > summary { color: var(--muted); }
details.del > summary { font-size: 13px; font-weight: 600; color: var(--bad); cursor: pointer; }
details.del form { margin-top: 6px; font-size: 13px; color: var(--bad); }
.linkbtn.danger { color: var(--bad); text-decoration: underline; }
details.usage > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; cursor: pointer; }
details.usage > summary h2 { font-size: 18px; margin: 0; }
.usage-app { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.usage-app table { border-collapse: collapse; font-size: 14px; width: 100%; max-width: 520px; }
.usage-app th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; padding: 2px 8px; }
.usage-app td { padding: 4px 8px; text-align: right; border-top: 1px solid var(--rule); }
.usage-app td:first-child, .usage-app th:first-child { text-align: left; padding-left: 0; }
.usage-app .bar { max-width: 520px; height: 8px; }

/* ---- footer ---- */
.foot { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; align-items: center; }
.foot summary { cursor: pointer; color: #475069; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.foot form.fields { width: min(520px, 100%); margin-top: 8px; }

/* ---- sign-in ---- */
.login { max-width: 380px; margin: 16vh auto 0; background: var(--navy); color: #fff; border-radius: 22px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.login h1 { margin: 0; font-size: 28px; }
.login form { display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 6px; color: var(--on-navy); font-size: 13px; font-weight: 600; }
.login .btn { justify-content: center; }
.login p { color: var(--on-navy); margin: 0; }
.login code { color: #fff; }

@media (max-width: 520px) {
  .hero { padding: 22px 18px 18px; border-radius: 18px; }
  .hero h1 { font-size: 28px; }
  .card { padding: 18px; border-radius: 18px; }
  details.stage > summary { grid-template-columns: 112px 58px minmax(0, 1fr); }
  form.fields { grid-template-columns: 1fr; }
  .item-acts { width: 100%; padding-left: 34px; margin-top: -6px; }   /* buttons under the text */
}
