  :root {
    --bg: #131a29; --surface: #1b2436; --line: #2a3550; --text: #e9edf5; --muted: #8c98b0;
    --cold: #5c8df0; --warm: #f0a63f; --hot: #ff6a4d; --off: #6b7690;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "IBM Plex Sans", system-ui, sans-serif; }
  main { max-width: 1320px; margin: 0 auto; padding: 32px 20px 64px; }
  h1 { font-size: 28px; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.01em; }
  nav { display: flex; gap: 4px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
  nav a { padding: 8px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  nav a:hover { color: var(--text); }
  nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--warm); }
  h2 { font-size: 17px; font-weight: 600; margin: 36px 0 12px; }
  p { margin: 0; }
  .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .nowrap, button { white-space: nowrap; }
  .sub { font-size: 13px; color: var(--muted); }

  /* Summary bar */
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); background: var(--surface);
           border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .stat { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
  .stat b { display: block; font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .stat span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

  .add { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
  label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
  input, textarea, select {
    font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
    border-radius: 6px; padding: 9px 11px; min-width: 0;
  }
  input { width: 250px; }
  textarea { width: 100%; min-height: 110px; margin: 10px 0; font-family: ui-monospace, monospace; font-size: 13px; }
  select { padding: 5px 8px; font-size: 13px; }
  button {
    font: inherit; font-weight: 500; color: var(--text); background: transparent; border: 1px solid var(--line);
    border-radius: 6px; padding: 9px 14px; cursor: pointer;
  }
  button:hover { border-color: var(--muted); }
  button.primary { background: var(--warm); border-color: var(--warm); color: #1a1407; }
  button.small { padding: 4px 10px; font-size: 13px; }
  button[aria-pressed="true"] { background: var(--surface); border-color: var(--muted); }
  button:disabled { opacity: 0.5; cursor: wait; }
  :focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }
  details { margin-top: 12px; color: var(--muted); }
  summary { cursor: pointer; }
  .msg { margin-top: 10px; font-size: 14px; min-height: 21px; }
  .msg.bad { color: var(--hot); }
  .msg.good { color: var(--warm); }

  .bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
  .bar a { margin-left: auto; color: var(--text); font-size: 14px; }
  .scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
  table { width: 100%; border-collapse: collapse; }
  .boxes { min-width: 880px; }
  th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); }
  td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  tbody > tr:last-child > td { border-bottom: 0; }
  .err { font-size: 13px; color: var(--hot); max-width: 46ch; }

  /* How warm each mailbox is, on a cold-to-hot scale. */
  .heat { display: flex; align-items: center; gap: 10px; }
  .track { position: relative; width: 110px; height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
  .fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cold), var(--warm) 60%, var(--hot)); clip-path: inset(0 calc(100% - var(--v)) 0 0); }
  .status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
  .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--off); flex: none; }
  .ready .dot { background: var(--hot); } .warming .dot { background: var(--warm); } .at_risk .dot { background: var(--cold); }
  .actions { display: flex; gap: 6px; justify-content: flex-end; }
  .log > td { background: #161e2f; padding: 6px 14px 12px; }

  /* Mail lists (recent mail, and the log inside a mailbox) */
  .mail { min-width: 820px; font-size: 14px; }
  .mail th, .mail td { padding: 8px 12px 8px 0; }
  .mail th:first-child, .mail td:first-child { padding-left: 12px; }
  .log .mail th:first-child, .log .mail td:first-child { padding-left: 0; }
  .tag { font-size: 12px; padding: 2px 9px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
  .tag.reply { color: var(--warm); border-color: #6b5326; }
  .text { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
          padding: 12px 14px; max-width: 80ch; margin-bottom: 8px; }
  .empty { padding: 36px 20px; text-align: center; color: var(--muted); }

  /* Campaign content page */
  .controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
  .controls input[type="number"] { width: 90px; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: 28px; align-items: start; margin-top: 8px; }
  @media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
  .item { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
  .item.rejected { opacity: 0.5; }
  .item.selected { border-color: var(--warm); }
  .item h3 { margin: 8px 0 6px; font-size: 17px; font-weight: 600; line-height: 1.3; }
  .item h3 em { font-style: normal; color: var(--hot); }
  .item ul { margin: 6px 0; padding-left: 18px; }
  .item li { margin: 2px 0; }
  .item .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .tag.approved { color: #7fd6a2; border-color: #2d5a41; }
  .tag.rejected { color: var(--muted); }
  .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
  .thumbs .item { padding: 10px; margin: 0; }
  .thumbs img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--bg); }
  .preview { position: sticky; top: 16px; }
  .preview iframe { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 8px; background: #0d0a14; }
  .subject { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin: 10px 0; }


  /* Reports */
  .presets { display: flex; flex-wrap: wrap; gap: 6px; }
  .toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 8px; }
  .toolbar input[type="date"] { width: 160px; color-scheme: dark; }
  .toolbar select { padding: 9px 11px; font-size: 15px; max-width: 280px; }
  .period { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
  .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
  .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
  .kpi .label { font-size: 13px; color: var(--muted); }
  .kpi .value { font-size: 26px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
  .kpi .note { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .delta { font-size: 12.5px; font-variant-numeric: tabular-nums; }
  .delta.good { color: #7fd6a2; } .delta.bad { color: var(--hot); } .delta.flat { color: var(--muted); }
  .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
  .panel h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
  .panel .sub { margin-bottom: 10px; }
  .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; }
  .chart svg { display: block; width: 100%; height: auto; }
  .chart .grid { stroke: var(--line); stroke-width: 1; }
  .chart .tick { fill: var(--muted); font-size: 11px; font-family: inherit; }
  .chart .hit:hover { fill: rgba(255, 255, 255, 0.05); }
  .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
  .legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
  .legend i.line { height: 3px; border-radius: 2px; vertical-align: 3px; }
  .hbar { display: grid; grid-template-columns: minmax(110px, 160px) 1fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
  .hbar .track2 { height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; display: flex; }
  .hbar .track2 span { display: block; height: 100%; }
  .hbar .num { color: var(--muted); font-size: 13px; }
  .hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 120px; }
  .hours div { background: var(--cold); border-radius: 3px 3px 0 0; min-height: 2px; }
  .hours-axis { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }
  table.report { min-width: 1180px; font-size: 14px; }
  table.report th { cursor: pointer; user-select: none; white-space: nowrap; }
  table.report th[aria-sort]::after { content: " \2195"; color: var(--line); }
  table.report th[aria-sort="ascending"]::after { content: " \2191"; color: var(--text); }
  table.report th[aria-sort="descending"]::after { content: " \2193"; color: var(--text); }
  table.report td { padding: 10px; white-space: nowrap; }
  table.report td.r, table.report th.r { text-align: right; }
  .link { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--line); cursor: pointer; font: inherit; }
  .spark { vertical-align: middle; }
  .banner { border: 1px solid #6b5326; background: #241d10; color: #f3d9a6; border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }

  /* ------------------------------------------------------------ form controls line up */
  /* Native selects are shorter than inputs in Safari and Chrome on Mac, which pushed their
     labels out of line. Every control in a form row now has the same height. */
  select {
    -webkit-appearance: none; appearance: none; padding-right: 30px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238c98b0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
  }
  .controls, .toolbar, .add { align-items: flex-end; }
  .controls input, .controls select, .controls > button,
  .toolbar input, .toolbar select,
  .add input, .add > button {
    height: 42px; box-sizing: border-box; font-size: 15px; line-height: 1.2;
  }
  .controls select, .toolbar select { padding: 0 32px 0 12px; }
  .controls input, .toolbar input, .add input { padding: 0 12px; }
  .controls > button, .add > button { padding: 0 18px; }

  /* ------------------------------------------------------------ tool header */
  .topline {
    position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 10;
    background: linear-gradient(90deg, #D21C36, #6B1B83, #f0a63f, #D21C36); background-size: 300% 100%;
    animation: flow 8s linear infinite;
  }
  .brandbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 22px; }
  .brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
  .brand-text { display: grid; gap: 2px; }
  .brand-name { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
  .brand-name span { background: linear-gradient(90deg, #ff5a72, #b45cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .brand-tag { font-size: 13px; color: var(--muted); }

  /* The animated mark: bars rising like outgoing mail, with a light sweep across the tile. */
  .mark {
    position: relative; flex: none; width: 50px; height: 50px; border-radius: 13px; overflow: hidden;
    background: linear-gradient(135deg, #D21C36, #6B1B83);
    display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-bottom: 11px; box-sizing: border-box;
    box-shadow: 0 8px 22px rgba(210, 28, 54, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }
  .mark i { display: block; width: 5px; border-radius: 3px; background: #fff; transform-origin: bottom; animation: rise 1.5s ease-in-out infinite; }
  .mark i:nth-child(1) { height: 13px; animation-delay: -0.9s; }
  .mark i:nth-child(2) { height: 22px; animation-delay: -0.6s; }
  .mark i:nth-child(3) { height: 17px; animation-delay: -0.3s; }
  .mark i:nth-child(4) { height: 26px; animation-delay: 0s; }
  .mark::after {
    content: ""; position: absolute; inset: -20%;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%);
    animation: sweep 3.6s ease-in-out infinite;
  }

  .live {
    display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted);
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 12px;
  }
  .live b { color: var(--text); font-weight: 500; }
  .ping { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #4fbf8a; flex: none; }
  .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s ease-out infinite; }
  .live.off .ping { background: var(--hot); }
  .live.off .ping::after { animation: none; }

  @keyframes rise { 0%, 100% { transform: scaleY(0.4); opacity: 0.75; } 50% { transform: scaleY(1); opacity: 1; } }
  @keyframes sweep { 0%, 55% { transform: translateX(-75%); } 100% { transform: translateX(75%); } }
  @keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.8); opacity: 0; } }
  @keyframes flow { to { background-position: 300% 0; } }
  @media (prefers-reduced-motion: reduce) {
    .mark i, .mark::after, .ping::after, .topline { animation: none; }
  }
  .toolbar .presets button { height: 42px; padding: 0 13px; font-size: 14px; }

  /* ================================================================ colourful theme */
  :root {
    --bg: #0a0d1a; --surface: #131931; --surface2: #182040; --line: #26305a; --text: #eef1fb; --muted: #97a1c4;
    --red: #ff4d6d; --pink: #ff6fb1; --amber: #ffb547; --green: #34d399; --teal: #2dd4bf; --blue: #4f8bff; --violet: #9b7bff; --grey: #94a3b8;
    --brand: linear-gradient(120deg, #D21C36, #8b1f8f 55%, #6B1B83);
    --cold: var(--blue); --warm: var(--amber); --hot: var(--red); --off: #64748b;
  }
  body {
    background:
      radial-gradient(900px 520px at -8% -12%, rgba(210, 28, 54, 0.20), transparent 62%),
      radial-gradient(820px 520px at 108% -6%, rgba(107, 27, 131, 0.32), transparent 62%),
      radial-gradient(700px 600px at 50% 120%, rgba(79, 139, 255, 0.10), transparent 60%),
      var(--bg);
    background-attachment: fixed;
  }
  ::selection { background: rgba(155, 123, 255, 0.4); }

  /* Headings with a brand accent */
  h1 { font-size: 30px; letter-spacing: -0.02em; }
  h2 { display: flex; align-items: center; gap: 10px; }
  h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--brand); flex: none; }

  /* Navigation as pills */
  nav { gap: 6px; border-bottom: 0; margin-bottom: 26px; padding: 5px; width: fit-content; max-width: 100%;
        background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
  nav a { border: 0; margin: 0; border-radius: 8px; padding: 8px 16px; font-weight: 500; transition: background 0.15s, color 0.15s; }
  nav a:hover { background: rgba(255, 255, 255, 0.06); }
  nav a[aria-current="page"] { background: var(--brand); color: #fff; box-shadow: 0 4px 16px rgba(210, 28, 54, 0.35); }

  /* Buttons */
  button { background: rgba(255, 255, 255, 0.04); transition: transform 0.12s, border-color 0.15s, background 0.15s, box-shadow 0.15s; }
  button:hover { border-color: var(--violet); background: rgba(155, 123, 255, 0.10); }
  button.primary { background: var(--brand); border-color: transparent; color: #fff; font-weight: 600;
                   box-shadow: 0 6px 20px rgba(210, 28, 54, 0.35); }
  button.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(210, 28, 54, 0.45); background: var(--brand); }
  button[aria-pressed="true"] { background: rgba(155, 123, 255, 0.18); border-color: var(--violet); color: #fff; }
  input, textarea, select { background-color: rgba(10, 13, 26, 0.6); transition: border-color 0.15s, box-shadow 0.15s; }
  input:focus, textarea:focus, select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(155, 123, 255, 0.25); }
  :focus-visible { outline-color: var(--violet); }
  a { color: #c4b5fd; }
  .msg.good { color: var(--green); }

  /* Tones used by cards and icons */
  .tone-red { --tone: var(--red); } .tone-pink { --tone: var(--pink); } .tone-amber { --tone: var(--amber); }
  .tone-green { --tone: var(--green); } .tone-teal { --tone: var(--teal); } .tone-blue { --tone: var(--blue); }
  .tone-violet { --tone: var(--violet); } .tone-grey { --tone: var(--grey); }
  .ic { display: inline-block; width: 18px; height: 18px; background: var(--tone, var(--muted));
        -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
  .ic-inbox { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2 M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E"); }
  .ic-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
  .ic-flame { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.07-2.14-.22-4.05 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.15.43-2.29 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/svg%3E"); }
  .ic-alert { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4 M12 17h.01 M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3C/svg%3E"); }
  .ic-pause { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H6v16h4z M18 4h-4v16h4z'/%3E%3C/svg%3E"); }
  .ic-send { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13 M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E"); }
  .ic-clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20a10 10 0 1 0 0-20z M12 6v6l4 2'/%3E%3C/svg%3E"); }
  .ic-shield { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
  .ic-target { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20a10 10 0 1 0 0-20z M12 6a6 6 0 1 0 0 12a6 6 0 1 0 0-12z M12 10a2 2 0 1 0 0 4a2 2 0 1 0 0-4z'/%3E%3C/svg%3E"); }
  .ic-chat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
  .ic-image { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z M21 15l-5-5L5 21 M8.5 7a1.5 1.5 0 1 0 0 3a1.5 1.5 0 1 0 0-3z'/%3E%3C/svg%3E"); }
  .ic-layers { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5z M2 17l10 5 10-5 M2 12l10 5 10-5'/%3E%3C/svg%3E"); }
  .ic-sparkle { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.6 5.6 1.9-5.6 1.9L12 18l-1.9-5.6-5.6-1.9 5.6-1.9z M19 3v4 M17 5h4'/%3E%3C/svg%3E"); }
  .ic-x { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18 M6 6l12 12'/%3E%3C/svg%3E"); }
  .ic-chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18 M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E"); }
  .ic-plus { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14 M5 12h14'/%3E%3C/svg%3E"); }

  /* Stat cards: one card each, coloured by tone */
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; background: none; border: 0; overflow: visible; }
  .stat, .kpi {
    position: relative; overflow: hidden; margin: 0; border-radius: 14px; padding: 16px 16px 14px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--tone, var(--violet)) 16%, var(--surface)) 0%, var(--surface) 55%);
    border: 1px solid color-mix(in srgb, var(--tone, var(--violet)) 28%, var(--line));
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .stat:hover, .kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--tone, var(--violet)) 22%, transparent); }
  .stat::after, .kpi::after {
    content: ""; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--tone, var(--violet)) 35%, transparent), transparent 70%); pointer-events: none;
  }
  .stat .ic { width: 34px; height: 34px; margin-bottom: 10px; border-radius: 10px; -webkit-mask: none; mask: none;
              background: color-mix(in srgb, var(--tone) 18%, transparent); position: relative; display: block; }
  .stat .ic::before { content: ""; position: absolute; inset: 8px; background: var(--tone);
                      -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
  .stat b { font-size: 28px; letter-spacing: -0.01em; }
  .stat span { color: var(--muted); }
  .kpi .label { display: flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--tone) 55%, var(--muted)); font-weight: 500; }
  .kpi .label .ic { width: 16px; height: 16px; }
  .kpi .value { font-size: 30px; margin-top: 4px; }
  .delta.good { color: var(--green); } .delta.bad { color: var(--red); }

  /* Panels, tables, lists */
  .panel, .item, .scroll, .subject, .live {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--surface);
    border-color: var(--line);
  }
  .panel, .scroll, .item { border-radius: 14px; }
  th { background: rgba(155, 123, 255, 0.07); color: #b9c1e0; }
  tbody tr { transition: background 0.12s; }
  .boxes > tbody > tr:not(.log):hover, table.report tbody tr:hover, .mail tbody tr:hover { background: rgba(155, 123, 255, 0.06); }
  .log > td { background: rgba(10, 13, 26, 0.55); }
  .text { background: rgba(10, 13, 26, 0.7); }

  /* Status pills */
  .status { padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 14px; background: rgba(148, 163, 184, 0.12); }
  .status.ready { color: var(--green); background: rgba(52, 211, 153, 0.13); }
  .status.warming { color: var(--amber); background: rgba(255, 181, 71, 0.13); }
  .status.at_risk { color: var(--red); background: rgba(255, 77, 109, 0.13); }
  .status.paused, .status.error { color: var(--grey); }
  .ready .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
  .warming .dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
  .at_risk .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
  .error .dot { background: var(--red); }

  /* Warmth bar: cold blue to hot red, with a glow */
  .track { background: rgba(255, 255, 255, 0.06); height: 9px; }
  .fill { background: linear-gradient(90deg, #4f8bff, #9b7bff 35%, #ffb547 70%, #ff4d6d); filter: drop-shadow(0 0 6px rgba(255, 120, 120, 0.45)); }

  /* Tags */
  .tag { background: rgba(79, 139, 255, 0.12); border-color: rgba(79, 139, 255, 0.35); color: #9cc0ff; }
  .tag.reply { background: rgba(155, 123, 255, 0.14); border-color: rgba(155, 123, 255, 0.4); color: #c4b5fd; }
  .tag.approved { background: rgba(52, 211, 153, 0.13); border-color: rgba(52, 211, 153, 0.4); color: var(--green); }
  .tag.pending { background: rgba(255, 181, 71, 0.13); border-color: rgba(255, 181, 71, 0.4); color: var(--amber); }
  .tag.rejected { background: rgba(148, 163, 184, 0.1); color: var(--grey); }

  /* Content review cards */
  .item { position: relative; }
  .item.approved { border-color: rgba(52, 211, 153, 0.45); box-shadow: inset 3px 0 0 var(--green); }
  .item.selected { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 10px 26px rgba(155, 123, 255, 0.2); }
  .item h3 em { background: linear-gradient(90deg, #ff5a72, #b45cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

  /* Report extras */
  .hours div { background: linear-gradient(180deg, #9b7bff, #4f8bff); }
  .hbar .track2 { background: rgba(255, 255, 255, 0.06); }
  .chart .grid { stroke: rgba(255, 255, 255, 0.07); }
  .banner { background: rgba(255, 181, 71, 0.1); border-color: rgba(255, 181, 71, 0.4); }

  @media (prefers-reduced-motion: reduce) {
    .stat, .kpi, button { transition: none; }
    .stat:hover, .kpi:hover, button.primary:hover { transform: none; }
  }
  /* Fit all nine warm-up cards on one row on a laptop screen, and the mailbox table without scrolling */
  .stats { grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 10px; }
  .stat { padding: 14px 14px 12px; }
  .stat b { font-size: 26px; }
  .boxes .track { width: 84px; }
  .boxes .status { font-size: 13px; }
  .boxes .actions { gap: 4px; }
  .boxes td, .boxes th { padding-left: 8px; padding-right: 8px; }

  /* Pages */
  .pager { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 12px 0 4px; }
  .pager button { min-width: 36px; height: 34px; padding: 0 10px; font-variant-numeric: tabular-nums; }
  .pager button.current { background: var(--brand); border-color: transparent; color: #fff; }
  .pager button:disabled { opacity: 0.35; cursor: default; }
  .pager .gap { color: var(--muted); padding: 0 4px; }
  .pager-info { margin-left: auto; color: var(--muted); font-size: 13.5px; }

  /* Warm-up settings */
  .settings { padding: 18px 20px; }
  .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 22px; }
  .field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
  .field > span:first-child { color: var(--text); font-size: 14px; font-weight: 500; }
  .field .inline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
  .field input, .field select { height: 42px; box-sizing: border-box; padding: 0 12px; font-size: 15px; }
  .field input[type="number"] { width: 100px; }
  .field select { padding-right: 32px; min-width: 210px; }
  .field small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
  .check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
  .check input { width: 18px; height: 18px; accent-color: #9b7bff; }
  .settings-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .ramp { display: flex; align-items: flex-end; gap: 2px; height: 46px; min-width: 220px; flex: 1; max-width: 520px; }
  .ramp i { flex: 1; background: linear-gradient(180deg, #ff6fb1, #9b7bff); border-radius: 2px 2px 0 0; min-height: 2px; opacity: 0.85; }
  .search { height: 34px; padding: 0 12px; font-size: 14px; width: 240px; }

  /* Report period bar */
  .periods { margin: 4px 0 14px; }
  .periods button { height: 38px; padding: 0 14px; font-size: 14px; }
  .stepper { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
             background: var(--surface); height: 42px; }
  .stepper button { border: 0; border-radius: 0; width: 42px; height: 100%; font-size: 20px; padding: 0; }
  .stepper button:disabled { opacity: 0.3; cursor: default; }
  .period-name { display: grid; align-content: center; padding: 0 14px; min-width: 200px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 1.2; }
  .period-name b { font-size: 14px; font-weight: 600; }
  .period-name span { font-size: 12.5px; color: var(--muted); }
  .toolbar select:disabled { opacity: 0.5; }
  .insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 10px; }
  .insight { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface);
             border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line)); border-left: 3px solid var(--tone); }
  .insight .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }
  .insight p { margin: 0; font-size: 14px; line-height: 1.5; }
  .compare { min-width: 640px; }
  .compare td.r, .compare th.r { text-align: right; }
  .settings-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 28px; }
  .field { align-content: start; }
  .field .inline { flex-wrap: wrap; }
  .field input[type="number"] { width: 84px; }
  .field .inline input[type="number"] + input[type="number"], .field .pair input[type="number"] { width: 72px; }
  .field select { width: 100%; min-width: 0; max-width: 320px; }

  [hidden] { display: none !important; }

  /* Sub-navigation inside Shoot campaign */
  .subnav { display: flex; gap: 18px; margin: -8px 0 6px; font-size: 14px; }
  .subnav a { color: var(--muted); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
  .subnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--pink); }

  /* Shoot campaign */
  .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 13px; white-space: nowrap;
          color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); }
  .progressbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 4px; }
  .progressbar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
  .campaigns { min-width: 1100px; }
  .campaigns td, .campaigns th { padding: 12px 10px; }
  .btnlink { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; background: rgba(255,255,255,0.04); }
  .btnlink:hover { border-color: var(--violet); }
  .steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
  .steps button { border-radius: 999px; padding: 8px 16px; }
  .steps button[aria-current="step"] { background: var(--brand); color: #fff; border-color: transparent; }
  .steps button:disabled { opacity: 0.4; cursor: default; }
  .step h3 { font-size: 15px; margin: 10px 0 10px; }
  .drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 8px; background: rgba(10, 13, 26, 0.4); }
  .drop input[type="file"] { color: var(--muted); }
  .map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); }
  .progress { flex: 1; min-width: 160px; max-width: 320px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.07); overflow: hidden; }
  .progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.2s; }
  .stats.small .stat { padding: 12px; } .stats.small .stat b { font-size: 22px; } .stats.small .stat .ic { width: 28px; height: 28px; margin-bottom: 6px; }
  .checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .preview-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  iframe.sample { width: 100%; height: 820px; border: 1px solid var(--line); border-radius: 12px; background: #0d0a14; }
  .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
  .kv div { background: rgba(10, 13, 26, 0.45); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
  .kv span { color: var(--muted); font-size: 13px; } .kv b { font-size: 17px; }
  dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; max-width: 760px; width: calc(100% - 32px); }
  dialog::backdrop { background: rgba(5, 6, 14, 0.7); backdrop-filter: blur(3px); }
  dialog h2 { margin-top: 0; }
  .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
  .choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: rgba(10, 13, 26, 0.45); }
  .choice:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
  .choice > span { display: grid; gap: 6px; font-size: 14px; }
  .choice input { margin-top: 4px; accent-color: #9b7bff; width: 18px; height: 18px; }
  .field input:not([type="number"]):not([type="checkbox"]) { width: 100%; max-width: 360px; }

  /* Campaign reports */
  .heatmap { display: grid; grid-template-columns: 40px repeat(24, 1fr); gap: 3px; align-items: center; font-size: 11px; color: var(--muted); }
  .heatmap i { display: block; aspect-ratio: 1.6; border-radius: 3px; background: rgba(255,255,255,0.04);
               background-image: linear-gradient(rgba(155, 123, 255, var(--a)), rgba(255, 111, 177, var(--a))); }
  .heatmap .hh { text-align: center; } .heatmap .hd { text-align: right; padding-right: 6px; }
  .minibar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); margin-top: 3px; overflow: hidden; min-width: 60px; }
  .minibar i { display: block; height: 100%; background: linear-gradient(90deg, #9b7bff, #ff6fb1); }
  .thumb { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
  .funnel { grid-template-columns: 110px 1fr minmax(200px, auto); }
  .funnel .track2 { height: 18px; border-radius: 6px; }
  .timeline { margin: 4px 0; padding-left: 18px; font-size: 14px; }
  .timeline li { margin: 3px 0; }
  .choice input[type="radio"], .check input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; padding: 0; height: 18px; width: 18px; background: none; border: 0; box-shadow: none; flex: none; }
  .panel .mail { min-width: 0; } .panel .mail td { word-break: break-word; }
  .panel .mail td:first-child { white-space: nowrap; word-break: normal; } #lookupResults:empty { display: none; }
  .testfield { border: 1px dashed color-mix(in srgb, var(--pink) 50%, var(--line)); border-radius: 10px; padding: 10px 12px; }
  .chip .small { padding: 0 7px; height: 22px; margin-left: 4px; }

  /* Signed-in account in the header */
  .who { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .account { display: flex; align-items: center; gap: 10px; }
  .account:empty { display: none; }
  .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: var(--brand); flex: none; }
  .acct-text { display: grid; line-height: 1.25; }
  .acct-text b { font-size: 14px; font-weight: 600; }
  .acct-text span { font-size: 12px; color: var(--muted); }

  /* Sign-in page */
  .auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
  .auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 30px 26px;
               box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
  .auth-card .brand { margin-bottom: 22px; }
  .auth-card h1 { font-size: 24px; margin: 0 0 4px; }
  .auth-card form { display: grid; gap: 14px; margin-top: 18px; }
  .auth-card label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
  .auth-card input { height: 46px; padding: 0 14px; font-size: 15px; width: 100%; }
  .auth-card button.primary { height: 46px; font-size: 15px; width: 100%; }
  .pw { position: relative; }
  .pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; font-size: 13px; }

  /* Sign-up and codes */
  .auth-card.wide { max-width: 520px; }
  .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  @media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
  .phone { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
  .auth-card select { height: 46px; padding: 0 30px 0 12px; font-size: 15px; width: 100%; }
  .field-err { color: var(--hot); font-size: 12.5px; min-height: 0; }
  .auth-card input[aria-invalid="true"] { border-color: var(--hot); }
  .terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
  .terms input { width: 18px; height: 18px; margin-top: 2px; accent-color: #9b7bff; flex: none; }
  .codebox { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; background: rgba(10, 13, 26, 0.45); }
  .codebox.done { border-color: rgba(52, 211, 153, 0.5); }
  .codebox .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
  .codebox .head b { font-weight: 600; color: var(--text); }
  .digits { display: flex; gap: 10px; }
  .digits input { width: 56px !important; height: 60px !important; padding: 0 !important; text-align: center; font-size: 26px !important; font-weight: 600; letter-spacing: 0; }
  .resend { background: none; border: 0; padding: 0; color: #c4b5fd; font-size: 13.5px; cursor: pointer; text-decoration: underline; }
  .resend:disabled { color: var(--muted); text-decoration: none; cursor: default; }
  .ok-tag { color: var(--green); font-size: 13px; font-weight: 600; }
  .auth-links { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap; }
  .auth-card label.terms { display: flex; }
  .codebox .resend { justify-self: start; }

  /* Settings */
  .brand-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  @media (max-width: 1100px) { .brand-layout { grid-template-columns: 1fr; } }
  .field.wide { grid-column: 1 / -1; }
  .field textarea { width: 100%; max-width: 720px; min-height: 0; margin: 0; padding: 10px 12px; font-family: inherit; font-size: 15px; resize: vertical; }
  .field input[type="color"] { width: 56px; height: 42px; padding: 3px; cursor: pointer; }
  .field-err { color: var(--hot) !important; }
  .preview-mini { position: sticky; top: 16px; border-radius: 14px; overflow: hidden; background: #0D0A14; border: 1px solid #2B2238; font-family: Poppins, "Segoe UI", Arial, sans-serif; }
  .pm-stripe { height: 5px; }
  .pm-logo { padding: 18px 20px 8px; color: #F5F2F9; font-size: 18px; }
  .pm-body { padding: 8px 20px 20px; display: grid; gap: 10px; }
  .pm-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
  .pm-headline { font-size: 22px; font-weight: 700; line-height: 1.2; color: #F5F2F9; }
  .pm-text { font-size: 13px; color: #A9A1B8; line-height: 1.5; }
  .pm-button { justify-self: start; color: #fff; font-weight: 600; font-size: 13px; padding: 10px 16px; border-radius: 8px; }
  .pm-footer { background: #17121F; border-top: 1px solid #2B2238; padding: 14px 20px; font-size: 11.5px; line-height: 1.6; color: #A9A1B8; }
  .pm-footer b { color: #F5F2F9; }
  .panel.danger { border-color: rgba(255, 77, 109, 0.45); }
  .danger-btn { background: rgba(255, 77, 109, 0.15); border-color: rgba(255, 77, 109, 0.6); color: #FFB4C3; font-weight: 600; }
  .danger-btn:hover { background: rgba(255, 77, 109, 0.25); border-color: var(--red); }

  /* Getting started */
  .start { margin: 0 0 22px; padding: 20px 22px; border-radius: 16px; border: 1px solid #45306A;
           background: linear-gradient(160deg, #241334, var(--surface) 70%); }
  .start-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
  .start-head h2 { margin: 0; }
  .start-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
  .start-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(10, 13, 26, 0.5); border: 1px solid var(--line); }
  .start-steps li.done { border-color: rgba(52, 211, 153, 0.45); }
  .start-steps .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
                       border: 1.5px solid var(--muted); color: var(--muted); }
  .start-steps li.done .tick { background: var(--green); border-color: var(--green); color: #0A0912; }
  .start-steps b { display: block; font-weight: 600; font-size: 14.5px; }
  .start-steps span.sub { font-size: 13px; }
  .start details { margin-top: 12px; }
  .start details p, .start details li { font-size: 14px; color: var(--muted); }
  .start details b { color: var(--text); }
  .field input[type="color"] { width: 56px !important; flex: none; }
  .field.wide input { max-width: 720px !important; }

  /* Admin */
  .admin-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 6px 0 8px; }
  @media (max-width: 1000px) { .admin-two { grid-template-columns: 1fr; } }
  .signups { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; }
  .signups span { flex: 1; min-height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #FF5C78, #8B1F8F); }
  .risk-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px;
              border-radius: 10px; background: rgba(10, 13, 26, 0.45); border: 1px solid var(--line); color: var(--text); text-align: left; cursor: pointer; }
  .risk-row:hover { border-color: rgba(255, 77, 109, 0.5); }
  .risk-row small { display: block; color: var(--muted); font-size: 12.5px; }
  .risk-flags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
  .stat small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }
  .pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
  .pills button[aria-pressed="true"] { border-color: #9b7bff; background: rgba(155, 123, 255, 0.15); }
  .admin-table td { vertical-align: top; }
  dialog.drawer { max-width: 860px; max-height: 88vh; overflow-y: auto; }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .drawer h3 { margin: 22px 0 8px; font-size: 16px; }
  .kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; margin-top: 10px; }
  .kv > span:nth-child(odd) { color: var(--muted); }
  dialog textarea { background: #0E0C18; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
