:root {
  --accent: #4F4FD8;
  --accent-ink: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, var(--card));
  --accent-line: color-mix(in srgb, var(--accent) 30%, var(--card));
  --ink: #14122e;
  --muted: #5a6274;
  --faint: #8b92a3;
  --line: #e6e8ef;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ok: #157a4b;
  --ok-soft: #e7f6ee;
  --warn: #9a6200;
  --warn-soft: #fff4dc;
  --err: #c2392d;
  --err-soft: #fdecea;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 20, 36, .04), 0 8px 24px rgba(15, 20, 36, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef0f6; --muted: #a8afbf; --faint: #7c8496; --line: #262b38; --bg: #0c0f16; --card: #141823;
    --ok: #4cc58b; --ok-soft: #12291f; --warn: #f0b443; --warn-soft: #2b2312; --err: #f07167; --err-soft: #2e1717;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eef0f6; --muted: #a8afbf; --faint: #7c8496; --line: #262b38; --bg: #0c0f16; --card: #141823;
  --ok: #4cc58b; --ok-soft: #12291f; --warn: #f0b443; --warn-soft: #2b2312; --err: #f07167; --err-soft: #2e1717;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }
svg { width: 18px; height: 18px; flex: none; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Shell */
.top { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-inner, .page { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.top-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 20px; letter-spacing: -.035em; }
.brand > span { color: #4F4FD8; }
.brand .dot { color: #2BAE8C; }
.mark { width: 30px; height: 30px; display: block; flex: none; }
.mark img { width: 30px; height: 30px; display: block; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a.on { color: var(--ink); background: var(--accent-soft); }
.nav .dot { min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 5px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who { color: var(--muted); font-size: 14px; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: none; display: grid; place-items: center; cursor: pointer; color: var(--muted); position: relative; }
.iconbtn:hover { background: var(--bg); color: var(--ink); }
.iconbtn .badge { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--err); }
.preview-bar { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 14px; padding: 8px 16px; font-weight: 500; }
.page { padding-top: 32px; padding-bottom: 64px; }
.foot { color: var(--faint); font-size: 13px; text-align: center; padding: 0 0 32px; }

/* Type */
h1 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 6px; }
h2 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 28px; font-size: 16.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 13.5px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14.5px; margin-bottom: 18px; }
.back:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 11px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; color: var(--ink); transition: background .15s, border-color .15s, filter .15s; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.good { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--bg); }
.btn.danger { color: var(--err); }
.btn.lg { padding: 12px 20px; font-size: 15.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 20px 22px; }
.stat .label { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.stat .label svg { color: var(--accent); }
.stat .value { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; }
.stat .hint { color: var(--faint); font-size: 13px; margin-top: 4px; }
.autos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.auto { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: border-color .15s, transform .1s; }
a.auto:hover { border-color: var(--accent-line); }
.auto .head { display: flex; gap: 12px; align-items: flex-start; }
.auto .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.auto .desc { color: var(--muted); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.auto .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.auto .meta span { display: inline-flex; align-items: center; gap: 5px; }
.auto .meta svg { width: 15px; height: 15px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.on, .pill.done { color: var(--ok); background: var(--ok-soft); }
.pill.off { color: var(--muted); background: var(--bg); }
.pill.draft, .pill.wait { color: var(--warn); background: var(--warn-soft); }
.pill.live { color: var(--accent); background: var(--accent-soft); }
.pill.live::before { animation: pulse 1.4s ease-in-out infinite; }
.pill.bad { color: var(--err); background: var(--err-soft); }
@keyframes pulse { 50% { opacity: .3; } }

/* Attention */
.attn { display: flex; flex-direction: column; gap: 10px; }
.attn-item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.attn-item .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.attn-item.ok .ic { background: var(--accent-soft); color: var(--accent); }
.attn-item.warn .ic { background: var(--warn-soft); color: var(--warn); }
.attn-item.bad .ic { background: var(--err-soft); color: var(--err); }
.attn-item .txt { flex: 1; min-width: 0; }
.attn-item .txt .msg { color: var(--muted); font-size: 14px; white-space: pre-wrap; max-height: 4.6em; overflow: hidden; }
.allgood { display: flex; align-items: center; gap: 12px; color: var(--ok); background: var(--ok-soft); border-radius: 14px; padding: 14px 18px; font-weight: 500; }

/* Lists */
.list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-row:first-child { border-top: 0; }
a.list-row:hover { background: var(--bg); }
.list-row .main { flex: 1; min-width: 0; }
.list-row .main .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .main .s { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .right { text-align: right; color: var(--faint); font-size: 13.5px; white-space: nowrap; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }

/* Automation page */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.hero-card { display: flex; gap: 18px; align-items: flex-start; }
.hero-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hero-card .icon svg { width: 26px; height: 26px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; }
.switch input { display: none; }
.switch .track { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:disabled + .track { opacity: .5; }

.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow li { display: flex; gap: 14px; padding: 10px 0; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 46px; bottom: -8px; width: 2px; background: var(--line); }
.flow .num { width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: none; position: relative; z-index: 1; }
.flow .num svg { width: 17px; height: 17px; }
.flow .lbl { padding-top: 6px; }
.flow .lbl .k { color: var(--faint); font-size: 13px; }
/* progress states */
.flow li.succeeded .num, .flow li.skipped .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.flow li.succeeded:not(:last-child)::after { background: var(--ok); }
.flow li.skipped .num { background: var(--ok-soft); color: var(--ok); }
.flow li.working .num { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.flow li.working .num::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: spin 1s linear infinite; }
.flow li.waiting .num, .flow li.needs_ok .num { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.flow li.failed .num, .flow li.stopped .num { border-color: var(--err); color: var(--err); background: var(--err-soft); }
.flow li.not_run .lbl, .flow li.upcoming .lbl { color: var(--muted); }

.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.app-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.app-row:first-of-type { border-top: 0; }
.app-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--muted); font-size: 14px; flex: none; }
.app-row .nm { flex: 1; min-width: 0; }
.app-row .nm .s { font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

textarea, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; background: var(--card); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea:focus, input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 96px; resize: vertical; }
label.f { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
label.f .h { font-weight: 400; color: var(--faint); }
.err { color: var(--err); font-size: 14px; margin-top: 10px; }
.note-ok { color: var(--ok); font-size: 14px; margin-top: 10px; }

.req { padding: 12px 0; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req .msg { white-space: pre-wrap; }
.req .reply { margin-top: 8px; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }

/* Run page */
.outcome { border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.outcome .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.outcome .ic svg { width: 22px; height: 22px; }
.outcome.good { background: var(--ok-soft); }
.outcome.good .ic { background: var(--ok); color: #fff; }
.outcome.bad { background: var(--err-soft); }
.outcome.bad .ic { background: var(--err); color: #fff; }
.outcome.neutral, .outcome.live { background: var(--accent-soft); }
.outcome.neutral .ic, .outcome.live .ic { background: var(--accent); color: #fff; }
.outcome.wait { background: var(--warn-soft); }
.outcome.wait .ic { background: var(--warn); color: #fff; }
.outcome h2 { margin: 0 0 4px; font-size: 20px; }
.outcome p { margin: 0; }
.outcome .next { margin-top: 8px; font-weight: 600; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 14px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

/* Billing */
.money { font-variant-numeric: tabular-nums; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; border-top: 2px solid var(--line); font-weight: 700; font-size: 17px; }

/* Auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: min(420px, 100%); padding: 32px; }
.auth .brand { margin-bottom: 22px; }
.auth h1 { font-size: 26px; }
.auth .switchlink { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth .switchlink button { background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 600; padding: 0; }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 14, 24, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--card); border-radius: 18px; width: min(480px, 100%); padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: calc(100vh - 32px); overflow: auto; }
.modal h2 { margin-bottom: 6px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 500; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: calc(100vw - 32px); }
.panel { position: absolute; right: 24px; top: 58px; width: min(380px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.15); z-index: 30; max-height: 70vh; overflow: auto; }
.panel .n { padding: 14px 18px; border-top: 1px solid var(--line); }
.panel .n:first-child { border-top: 0; }
.panel .n.unread { background: var(--accent-soft); }
.panel .n .t { font-weight: 600; font-size: 14.5px; }
.panel .n .m { color: var(--muted); font-size: 14px; }

.menu-btn { display: none; }
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .side { position: static; }
  .stats { grid-template-columns: 1fr; }
  .stat .value { font-size: 28px; }
}
@media (max-width: 720px) {
  /* backdrop-filter would make the header the containing block of the fixed tab bar */
  .top { backdrop-filter: none; background: var(--card); }
  .top-inner, .page { padding: 0 16px; }
  .page { padding-top: 22px; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
  .nav a { flex-direction: column; gap: 2px; font-size: 11.5px; padding: 6px 8px; }
  .nav a svg { width: 20px; height: 20px; }
  .who { display: none; }
  body { padding-bottom: 70px; }
  .list-row .right { display: none; }
  .hero-card { flex-direction: column; }
}
@media (min-width: 721px) { .nav a svg { display: none; } }

/* Developers tab */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.steps3 { grid-template-columns: repeat(3, 1fr); }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; margin-bottom: 10px; }
.step p { margin: 4px 0 0; font-size: 14.5px; }
.section h2 svg, .section-head h2 svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: 4px; color: var(--accent); }
.two { grid-template-columns: 1fr 1fr; }
.code { position: relative; margin: 10px 0; }
.code pre { margin: 0; background: #14122e; color: #e4e6ff; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.copybtn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #e4e6ff; display: grid; place-items: center; cursor: pointer; }
.copybtn:hover { background: rgba(255,255,255,.16); }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 600; padding: 0 4px; }
.seg { display: inline-flex; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
table.ref { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.ref th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
table.ref td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ref tr:last-child td { border-bottom: 0; }
.modal .code pre { max-width: 100%; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 860px) { .steps3, .two { grid-template-columns: 1fr; } table.ref { font-size: 13.5px; } }
.grid > *, .detail > *, .two > * { min-width: 0; }

ol.setup { margin: 0; padding-left: 20px; }
ol.setup li { margin: 6px 0; line-height: 1.55; }

/* Brand page */
.brand-grid { grid-template-columns: 1fr 380px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type=color] { width: 46px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; flex: none; }
.color-field input[type=text] { font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.logo-drop { border: 2px dashed var(--line); border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 84px; }
.logo-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.logo-drop img { max-height: 56px; max-width: 220px; object-fit: contain; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); margin-top: 8px; }
.their-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); max-width: 240px; }
.their-brand:hover { border-color: var(--accent-line); }
.their-brand .who { color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.their-logo { height: 28px; max-width: 96px; object-fit: contain; border-radius: 6px; }
/* (With a logo, just the logo, which already says who they are, in a soft box that suits wide logos.) */
.their-brand.has-logo { padding: 4px 10px; border-radius: 10px; max-width: 200px; }
.their-brand.has-logo .their-logo { height: 32px; max-width: 170px; border-radius: 0; }
.their-initial { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.hello-brand { display: flex; align-items: center; gap: 20px; padding: 18px 22px; margin: 4px 0 22px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--their); border-radius: 16px; box-shadow: inset 0 -3px 0 var(--their2); }
.hello-brand h1 { margin: 2px 0 2px; }
.hello-brand .sub { margin: 0; }
.hello-logo { max-height: 64px; max-width: 160px; object-fit: contain; flex: none; }
.hello-biz { color: var(--their); font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.mail-chrome { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.mail-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1f3f6; border-bottom: 1px solid #e3e6eb; }
.mail-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #d6dae1; }
.mail-subj { margin-left: 8px; font-size: 13px; color: #5a6274; font-weight: 600; }
.mail { padding: 22px 22px 14px; color: #222; font-size: 14.5px; line-height: 1.6; }
.mail-head { margin-bottom: 14px; min-height: 30px; }
.mail-head img { max-height: 44px; max-width: 200px; object-fit: contain; }
.mail-name { font-weight: 700; font-size: 20px; }
.mail h2 { font-size: 19px; margin: 0 0 10px; line-height: 1.3; }
.mail p { margin: 0 0 10px; }
.mail-btn { display: inline-block; color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; }
.mail-foot { margin-top: 16px; padding-top: 12px; font-size: 12px; color: #8b92a3; }
@media (max-width: 860px) { .brand-grid { grid-template-columns: 1fr; } .two-col { grid-template-columns: 1fr; } }

/* Try it, review and launch */
.auto.try { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--card) 55%); }
.try-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.card.review { display: flex; flex-direction: column; border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.card.review .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; flex: none; }
.card.review .btn { align-self: flex-start; }
.wz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wz-dots { display: flex; gap: 6px; }
.wz-dot { width: 26px; height: 5px; border-radius: 3px; background: var(--line); }
.wz-dot.on { background: var(--accent); }
.wz-dot.done { background: var(--ok); }
.wz-note { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-size: 14.5px; }
.wz-note svg { color: var(--accent); margin-top: 2px; }
.flow .narr { color: var(--muted); font-size: 14px; }
.flow li.upcoming .narr { visibility: hidden; }
.demo .flow li { transition: opacity .3s; }

/* Request a new automation */
.new-cta { padding: 8px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 15px; cursor: pointer; font-weight: 500; font-size: 14.5px; text-align: left; transition: border-color .15s, background .15s; }
.chip-btn:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.chip-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.card.start h2 { margin-bottom: 4px; }
.req-grid { grid-template-columns: 1fr 400px; }
.convo h2.q { font-size: 21px; margin: 6px 0 4px; line-height: 1.3; }
.convo .said { color: var(--muted); margin: 0 0 6px; }
.convo .thinking { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px 0; }
.convo .past { margin-bottom: 14px; }
.convo .past summary { cursor: pointer; }
.convo .qa { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.convo .ready h2 { margin: 4px 0; }
.plan .plan-step .num { width: 30px; height: 30px; }
.plan .flow li:not(:last-child)::after { left: 14px; top: 38px; }
.files { display: flex; flex-direction: column; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.files > label.btn { align-self: flex-start; }
.summary-kv { grid-template-columns: 140px 1fr; }
.summary-kv dd { text-align: left; font-weight: 500; white-space: pre-wrap; }
.ask-card { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; border-color: var(--accent-line); }
.ask-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.ask-card h3 { margin: 0; }
@media (max-width: 860px) { .req-grid { grid-template-columns: 1fr; } .ask-card { flex-direction: column; align-items: flex-start; } .summary-kv { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .new-cta span { display: none; } .new-cta { padding: 8px 10px; } }
@media (max-width: 720px) {
  .their-brand { padding: 2px; border: 0; background: none; }
  .their-brand .who { display: none; }
  .hello-brand { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .hello-logo { max-height: 48px; }
  .top-inner { gap: 10px; }
  .top-right { gap: 2px; }
  .brand { font-size: 18px; }
}
@media (max-width: 720px) { .section-head { flex-wrap: wrap; } }

/* Pick one app (e.g. Gmail or Outlook) in the launch wizard */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.choice input { margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.checks input { accent-color: var(--accent); }
.kit-logo { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 12px; border: 1.5px solid var(--accent-line); background: var(--accent-soft); border-radius: 12px; flex-wrap: wrap; }
.kit-logo img { max-height: 48px; max-width: 160px; width: auto; background: #fff; border-radius: 6px; padding: 4px; }
.kit-logo > div { flex: 1; min-width: 160px; }
/* Not enough room for their name beside the menu: just their logo (their name is on the Home banner). */
@media (max-width: 1100px) { .their-brand { padding: 3px; } .their-brand .who { display: none; } .their-logo, .their-brand.has-logo .their-logo { max-width: 110px; height: 28px; } .their-brand.has-logo { padding: 3px 8px; } .top-inner { gap: 14px; } .nav { gap: 2px; } }
.choice-q { font-size: 15px; margin: 16px 0 8px; }
.choice-hint { display: block; font-weight: 400; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.customize { display: flex; align-items: center; gap: 16px; border-color: var(--accent-line); background: var(--accent-soft); }
.customize .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--card); color: var(--accent); display: grid; place-items: center; flex: none; }
.customize h3 { margin: 0 0 2px; }
.customize p { margin: 0; font-size: 14.5px; }
@media (max-width: 720px) { .customize { flex-direction: column; align-items: flex-start; } }
.based-on { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14.5px; }
.based-on svg { color: var(--accent); flex: none; }
.tools-card h2 { font-size: 18px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tool-chip { padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13.5px; font-weight: 600; }
.tool-cats { max-height: 46vh; overflow: auto; margin: 10px 0 4px; padding-right: 4px; }
.tool-cat h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin: 12px 0 6px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.tool-opt { display: flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 4px 0; cursor: pointer; }
.tool-opt input { accent-color: var(--accent); }
.ideas .card { display: flex; flex-direction: column; gap: 8px; }
.ideas .idea-apps { color: var(--faint); font-size: 13px; }
.tool-opt[hidden], .tool-cat[hidden] { display: none; }
button.choice { width: 100%; text-align: left; background: var(--card); font: inherit; color: inherit; }
.choice.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.choice .tick { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--accent); flex: none; }
.choice.on .tick { border-color: var(--accent); }
.choice .tick svg { width: 14px; height: 14px; }
.choice .pill { margin-left: auto; }
.wz-hint { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); margin: 0 0 12px; font-size: 14.5px; }
.wz-hint svg { color: var(--accent); flex: none; margin-top: 2px; }
.wz-connect { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.works-with { margin: 0; padding-left: 18px; }
.works-with li { margin: 3px 0; }
.choice-hint.ok { color: #1f8a5b; font-weight: 600; }
.lp-price { font-size: 26px; font-weight: 750; margin-top: 4px; }
.lp-link { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-url { font-weight: 700; word-break: break-all; }
.list-row.click { cursor: pointer; }
.lp-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.lp-agree input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.lp-plan { margin-top: 12px; padding: 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 12px; }
.lp-plan .flow { margin: 0; }
.lp-q { margin: 0; padding-left: 20px; font-size: 14.5px; }
.lp-q li { margin: 3px 0; }
.lp-share { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.lp-posts { flex-basis: 100%; }
.lp-post { white-space: pre-wrap; font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
.share-fb { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-li { background: #0A66C2; color: #fff; border-color: #0A66C2; }

.lp-liform { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e6e8ef); width: 100%; }
.lp-liform-link { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lp-liform-link a { font-weight: 600; word-break: break-all; }
.lp-li-row { margin-top: 10px; }
.lp-li-row .lp-post { white-space: pre-line; }
.lp-li-row .btn { margin-top: 4px; }

.lp-ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 10px; }
.lp-ad-grid a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; font-size: 13px; }
.lp-ad-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #0f1f3d; border-radius: 8px; border: 1px solid var(--line, #e6e8ef); }
.lp-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.lp-steps li { margin-bottom: 6px; }
.lp-ab { border-collapse: collapse; font-size: 14px; }
.lp-ab th, .lp-ab td { padding: 6px 14px 6px 0; text-align: left; }
.lp-ab th { font-weight: 600; color: var(--muted, #5a6274); font-size: 12.5px; }
.lp-ab td:first-child { font-weight: 600; }
/* Laptops: room for the whole menu (the business shows as its initial or logo, New automation as its icon) */
@media (min-width: 721px) and (max-width: 1240px) { .their-brand .who, .new-cta span { display: none; } .new-cta { padding: 8px 10px; } .their-brand { padding: 4px; } .their-brand.has-logo { padding: 3px 8px; } .nav a { padding: 8px 10px; } }

/* A logo on a dark screen (see logo.js): made white, or on a white card */
.their-logo.dark-always.on-dark-white { filter: brightness(0) invert(1); }
.their-logo.dark-always.on-dark-badge, .dp-biz img.on-dark-badge { background: #fff; padding: 6px 10px; border-radius: 10px; box-sizing: content-box; }
.dp-biz img.on-dark-white { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  .their-logo.on-dark-white { filter: brightness(0) invert(1); }
  .their-brand.has-logo:has(.on-dark-badge) { background: #fff; border-color: #fff; }
}
.dl-stage { display: grid; place-items: center; min-height: 120px; padding: 22px; border-radius: 14px; background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent) 45%, #0b0d1f), #0b0d1f 70%); margin: 6px 0 12px; }
.dl-stage img { max-height: 64px; max-width: 80%; object-fit: contain; }
.dl-stage img.on-dark-white { filter: brightness(0) invert(1); }
.dl-stage img.on-dark-badge { background: #fff; padding: 8px 14px; border-radius: 12px; }
.dl-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chipradio { display: inline-flex; cursor: pointer; }
.chipradio input { position: absolute; opacity: 0; pointer-events: none; }
.chipradio span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; background: var(--card); }
.chipradio input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chipradio input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.dl-own { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dl-own svg { width: 16px; height: 16px; color: var(--ok, #2BAE8C); }
.dl-own .btn { margin-left: auto; }
.dl-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dl-more .btn svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------------------
   The top bar, simplified: the brand and five places. */
.top-inner { max-width: none; height: 52px; gap: 16px; padding: 0 18px; }
.brand { font-size: 17px; gap: 8px; flex: none; }
.mark, .mark img { width: 26px; height: 26px; }
.nav { gap: 2px; flex: none; }
.nav a, .nav-more > button { padding: 6px 11px !important; font-size: 14px; border-radius: 9px; }
.top-right { gap: 6px; flex: none; margin-left: 0; }
.iconbtn { width: 34px; height: 34px; }
.page { padding-top: 22px; }
.cc-share-menu, .cc-convo-menu { top: calc(100% + 6px) !important; bottom: auto !important; }
/* Settings */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.set-h { font-size: 15px; margin: 0 0 10px; }
.set-signin { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.set-signin > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.set-signin-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.set-item { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); padding: 16px 18px; transition: border-color .15s, transform .15s; }
.set-item:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.set-item > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.set-item b { font-size: 15.5px; }
.set-item .muted { font-size: 13.5px; }
.set-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.set-ic svg { width: 19px; height: 19px; }

/* Automations: the status board */
.sb-head { align-items: flex-end; }
.sb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 22px; }
.sb-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font: inherit; color: var(--ink); cursor: pointer; transition: transform .15s, border-color .15s; }
.sb-tile:hover { transform: translateY(-1px); }
.sb-tile.sum { cursor: default; }
.sb-tile .sb-ic { grid-row: span 2; }
.sb-tile b { font-size: 24px; line-height: 1.1; }
.sb-tile span:last-child { font-size: 13px; color: var(--muted); }
.sb-tile.on { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.sb-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex: none; }
.sb-ic svg { width: 18px; height: 18px; }
.sb-tile.ok .sb-ic, .sb-card.ok .sb-ic { background: var(--ok-soft); color: var(--ok); }
.sb-tile.running .sb-ic, .sb-card.running .sb-ic { background: var(--accent-soft); color: var(--accent); }
.sb-tile.needs .sb-ic, .sb-card.needs .sb-ic { background: color-mix(in srgb, #D85A30 14%, transparent); color: #C2491F; }
.sb-tile.bad .sb-ic, .sb-card.bad .sb-ic { background: var(--err-soft); color: var(--err); }
.sb-tile.app .sb-ic, .sb-card.app .sb-ic, .sb-card.setup .sb-ic { background: var(--warn-soft); color: var(--warn); }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.sb-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); border-top-width: 4px; transition: transform .15s, box-shadow .15s; }
.sb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sb-card[hidden] { display: none; }
.sb-card.ok { border-top-color: var(--ok); } .sb-card.running { border-top-color: var(--accent); } .sb-card.needs { border-top-color: #D85A30; }
.sb-card.bad { border-top-color: var(--err); } .sb-card.app, .sb-card.setup { border-top-color: var(--warn); } .sb-card.off { border-top-color: var(--line); }
.sb-status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sb-status .sb-ic { width: 26px; height: 26px; border-radius: 8px; }
.sb-status .sb-ic svg { width: 15px; height: 15px; }
.sb-card.running .sb-status .sb-ic { animation: sb-pulse 1.4s ease-in-out infinite; }
@keyframes sb-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); } }
.sb-n { min-width: 20px; height: 20px; border-radius: 999px; background: #D85A30; color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.sb-card h3 { margin: 2px 0 0; font-size: 17px; }
.sb-desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-facts { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.sb-facts span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sb-facts svg { width: 14px; height: 14px; flex: none; }
.sb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; }
.sb-dots { display: flex; gap: 4px; align-items: center; }
.ab-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--line); display: inline-block; }
.ab-dot.ok { background: var(--ok); } .ab-dot.bad { background: var(--err); } .ab-dot.run { background: var(--accent); }
.sb-saved { color: var(--ok); font-weight: 600; }
#sb-all[hidden] { display: none; }
@media (max-width: 720px) {
  .nav { gap: 0; }
  .nav a { flex: 1 1 0; min-width: 0; padding: 6px 2px !important; font-size: 11px; }
  .nav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
}

/* Integrations: Channels and Apps */
.int-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 4px 0 18px; }
.int-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.int-tabs a svg { width: 16px; height: 16px; }
.int-tabs a.on { background: var(--accent-soft); color: var(--ink); }
.ch-intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 18px; }
.ch-intro > div svg { width: 22px; height: 22px; color: var(--accent); }
.ch-intro p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ch-intro b { color: var(--ink); }
.ch-group { margin-bottom: 22px; }
.ch-group h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 10px; }
.ch-group h2 svg { width: 18px; height: 18px; color: var(--accent); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ch-tile { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ch-tile.on { border-color: color-mix(in srgb, var(--ok, #2f8f5b) 40%, var(--line)); }
.ch-tile.soon { opacity: .75; }
.ch-tile.soon .pill { align-self: flex-start; }
.ch-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.ch-head .t { font-weight: 600; font-size: 14.5px; }
.ch-head .s { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.ch-accts { display: flex; flex-direction: column; gap: 6px; }
.ch-acct { padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 13px; }
.ch-acct-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-acct-t b { overflow-wrap: anywhere; }
.ch-badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.ch-badge.p { background: color-mix(in srgb, #0B84D9 14%, transparent); color: #0B6FB8; }
.ch-rules { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.ch-rules svg { width: 13px; height: 13px; }
.ch-rules b { color: var(--ink); font-weight: 600; }
.ch-acct-b, .ch-b { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pill.bad { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
@media (max-width: 720px) { .ch-grid { grid-template-columns: 1fr; } }

/* Access: the who-can-see picker, and the Access page */
.ac-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ac-cols h3, .modal h3 { font-size: 14px; margin: 14px 0 6px; }
.ac-pick { display: flex; flex-direction: column; gap: 4px; }
.ac-mode, .ac-chk { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; cursor: pointer; }
.ac-some, .ac-one { margin: 4px 0 2px 24px; padding: 8px 10px; border-left: 2px solid var(--line); }
.ac-sub { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 6px 0 2px; font-weight: 700; }
.ac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ac-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.ac-row:first-of-type { border-top: 0; }
.ac-row > div { flex: 1; min-width: 0; }
.ac-row select { width: auto; }
.ac-who { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ac-who svg { width: 14px; height: 14px; }
.ac-who.limited { color: var(--accent); font-weight: 600; }
.ac-toggle { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.ac-toggle input { margin-top: 3px; }
.ac-flags { border-color: color-mix(in srgb, var(--warn, #b7791f) 45%, var(--line)); margin-bottom: 14px; }
.ac-log { display: flex; flex-direction: column; max-height: 360px; overflow: auto; }
.ac-logrow { display: grid; grid-template-columns: 110px 170px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.card h3 { font-size: 14px; margin: 16px 0 4px; color: var(--muted); }
@media (max-width: 720px) { .ac-cols, .ac-grid { grid-template-columns: 1fr; } .ac-logrow { grid-template-columns: 1fr; gap: 2px; } }
