/* Team Portal — light, clean theme */
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --hover: #f3f2ee;
  --line: #ebeae5;
  --line-2: #dfddd6;
  --ink: #17191c;
  --ink-2: #565a62;
  --ink-3: #979aa1;
  --brand: #13795b;
  --brand-2: #0f6a4f;
  --brand-soft: #e7f4ee;
  --mine: #e4f3ea;
  --chat: #f1efea;
  --ok: #13795b;
  --ok-soft: #e7f4ee;
  --warn: #b7770b;
  --warn-soft: #fbf1dd;
  --danger: #c9362e;
  --danger-soft: #fbe9e7;
  --blue: #2c63d6;
  --blue-soft: #e9effc;
  --shadow-sm: 0 1px 2px rgba(23, 25, 28, .05);
  --shadow: 0 1px 2px rgba(23, 25, 28, .04), 0 10px 28px -18px rgba(23, 25, 28, .18);
  --shadow-lg: 0 20px 50px rgba(23, 25, 28, .14), 0 2px 6px rgba(23, 25, 28, .06);
  --r: 14px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 14.5px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -.032em; }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: 15px; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
::selection { background: #cfe9dc; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d9d7d0; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.xs { width: 13px; height: 13px; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(23, 25, 28, .2); }
.btn.dark:hover { background: #2a2d33; }
.btn.green { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.green:hover { background: var(--brand-2); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 5px; box-shadow: none; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; display: inline-grid; place-items: center; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn.on { background: var(--brand-soft); color: var(--brand); }

.input, select.input, textarea.input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; outline: none;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; line-height: 1.5; }
select.input { 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='12' viewBox='0 0 24 24' fill='none' stroke='%23565a62' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19, 121, 91, .12); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--hover); white-space: nowrap;
}
.chip.cat { color: hsl(var(--h) 45% 32%); background: hsl(var(--h) 55% 94%); }
.chip.ok { color: var(--ok); background: var(--ok-soft); }
.chip.warn { color: var(--warn); background: var(--warn-soft); }
.chip.danger { color: var(--danger); background: var(--danger-soft); }
.chip.blue { color: var(--blue); background: var(--blue-soft); }
.chip.toggle { cursor: pointer; user-select: none; background: var(--surface); border: 1px solid var(--line-2); height: 30px; padding: 0 12px; font-size: 13px; }
.chip.toggle:hover { border-color: var(--ink-3); }
.chip.toggle.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.toggle .n { opacity: .6; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.avatar {
  --s: 30px; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .38);
  color: var(--pc, #555); background: color-mix(in srgb, var(--pc, #999) 15%, #fff); box-shadow: 0 0 0 2px var(--surface);
}
.stack { display: inline-flex; align-items: center; }
.stack .avatar { margin-left: -7px; }
.stack .avatar:first-child { margin-left: 0; }
.stack .more { background: var(--hover); color: var(--ink-2); }
.plogo {
  --s: 40px; width: var(--s); height: var(--s); border-radius: 11px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .36); letter-spacing: -.02em;
  color: hsl(var(--h) 50% 28%); background: hsl(var(--h) 55% 88%);
}
.plogo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.empty .big { font-size: 30px; margin-bottom: 8px; }

/* ---------- Auth ---------- */
.auth { height: 100dvh; overflow: auto; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; border-radius: 20px; }
.auth-card.wide { max-width: 600px; }
.auth-card h1 { margin: 22px 0 8px; }
.auth-card > p { color: var(--ink-2); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: #7a5208; font-size: 13px; margin-top: 16px; }
.notice.info { background: var(--blue-soft); color: #234b9e; }
.notice a { text-decoration: underline; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100dvh; }
.side { display: flex; flex-direction: column; min-height: 0; background: #f1f0ec; border-right: 1px solid var(--line); }
.side-top { padding: 18px 16px 10px; }
.side-scroll { flex: 1; overflow-y: auto; padding: 8px 10px 16px; }
.nav-sec { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; padding: 18px 10px 6px; display: flex; justify-content: space-between; align-items: center; }
.nav-sec button { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 2px; border-radius: 6px; display: grid; }
.nav-sec button:hover { background: var(--hover); color: var(--ink); }
.nav-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; min-width: 0; }
.nav-item:hover { background: rgba(23, 25, 28, .045); color: var(--ink); }
.nav-item.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 25, 28, .08), 0 0 0 1px rgba(23, 25, 28, .04); }
.nav-item.on svg { color: var(--brand); }
.nav-item .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .plogo { --s: 22px; border-radius: 6px; font-size: 9px; }
.count { font-size: 11.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.count.hot { color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 7px; }
.count.red { color: #fff; background: var(--danger); border-radius: 999px; padding: 1px 7px; }
.side-foot { border-top: 1px solid rgba(23, 25, 28, .06); padding: 10px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; width: 100%; border: 0; background: none; text-align: left; }
.me-card:hover { background: rgba(23, 25, 28, .045); }
.me-card .who { flex: 1; min-width: 0; }
.me-card { color: var(--ink); }
.me-card b { display: block; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card span { font-size: 11.5px; color: var(--ink-3); }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mtop { display: none; }
.content { flex: 1; overflow-y: auto; min-height: 0; }
.content.fill { overflow: hidden; }
.page { max-width: 1200px; margin: 0 auto; padding: 36px 36px 72px; }
.page.narrow { max-width: 880px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head p { color: var(--ink-2); margin-top: 6px; }
.scrim { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: 280px; transform: translateX(-102%); transition: transform .22s ease; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 55; }
  .mtop { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
  .mtop .t { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page { padding: 20px 16px 48px; }
  h1 { font-size: 24px; }
}

/* ---------- Home: summary, folders ---------- */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.sum { padding: 16px 18px; display: flex; align-items: center; gap: 14px; transition: border-color .12s, transform .12s; }
.sum:hover { border-color: var(--line-2); transform: translateY(-1px); }
.sum .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); flex: none; }
.sum .n { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sum .l { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
@media (max-width: 700px) { .summary { grid-template-columns: 1fr; gap: 8px; } .sum { padding: 12px 14px; } }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.sec-head h2 { display: flex; align-items: center; gap: 8px; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 34px; height: 36px; }

.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px 18px; }
.folder-card { position: relative; padding-top: 12px; display: block; transition: transform .15s; min-width: 0; }
.folder-card:hover { transform: translateY(-3px); }
.folder-card::before { content: ""; position: absolute; top: 0; left: 0; width: 42%; height: 24px; border-radius: 12px 14px 0 0; background: hsl(var(--h) 42% 82%); }
.folder-body { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.folder-card:hover .folder-body { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.folder-top { height: 84px; background: linear-gradient(135deg, hsl(var(--h) 50% 91%), hsl(calc(var(--h) + 30) 50% 95%)); display: flex; align-items: flex-end; padding: 0 16px; position: relative; }
.folder-top .plogo { --s: 54px; border-radius: 14px; transform: translateY(22px); box-shadow: 0 0 0 4px var(--surface), var(--shadow); background: hsl(var(--h) 48% 80%); }
.folder-top .flag { position: absolute; top: 12px; right: 12px; }
.flag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .85); white-space: nowrap; }
.folder-info { padding: 30px 16px 14px; }
.folder-info h3 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-info .chips { margin-top: 8px; }
.folder-foot { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); gap: 8px; }
.folder-foot .avatar { --s: 24px; }
.folder-foot b.red { color: var(--danger); }
.folder-foot b.me { color: var(--brand); }
.folder-new { border: 1.5px dashed var(--line-2); border-radius: 16px; display: grid; place-items: center; min-height: 214px; color: var(--ink-3); font-weight: 600; cursor: pointer; background: transparent; margin-top: 12px; }
.folder-new:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.folder-new span { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* ---------- Statement (activity ledger) ---------- */
.statement { margin-top: 44px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: auto; }
.ledger th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.ledger th:last-child { text-align: right; }
.ledger td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger tbody tr:nth-child(even) td { background: #fcfcfa; }
.ledger tbody tr.link { cursor: pointer; }
.ledger tbody tr.link:hover td { background: var(--hover); }
.ledger .when { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
.ledger .who { white-space: nowrap; font-weight: 600; width: 1%; }
.ledger .what { color: var(--ink-2); max-width: 0; width: 100%; }
.ledger .what div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger .what b { color: var(--ink); font-weight: 600; }
.ledger .proj { white-space: nowrap; width: 1%; }
.ledger .amt { text-align: right; white-space: nowrap; width: 1%; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.amt .plus { color: var(--blue); }
.amt .ok { color: var(--ok); }
.amt .late { color: var(--warn); }
.amt .minus { color: var(--danger); }
.amt .zero { color: var(--ink-3); font-weight: 600; }
.pchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 500; white-space: nowrap; max-width: 100%; }
.pchip .plogo { --s: 18px; border-radius: 5px; font-size: 8px; }
.pchip span { overflow: hidden; text-overflow: ellipsis; }
.stmt-foot { display: flex; justify-content: center; padding: 10px; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .ledger .proj, .ledger th.proj { display: none; }
  .ledger td, .ledger th { padding: 9px 10px; }
  .ledger .when { font-size: 11.5px; }
}

/* ---------- Project (group) ---------- */
.project { display: flex; flex-direction: column; height: 100%; }
.phead { background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.phead-in { max-width: 1400px; margin: 0 auto; padding: 16px 28px 0; }
.phead-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.phead-row .plogo { --s: 46px; border-radius: 13px; }
.phead-row .meta { flex: 1; min-width: 0; }
.phead-row h1 { font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phead-row .sub { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.phead-row .sub .flag { background: var(--hover); }
.tabs { display: flex; gap: 2px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.pbody { flex: 1; min-height: 0; overflow-y: auto; }
.pbody.chatmode { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
@media (max-width: 1100px) { .pbody.chatmode { grid-template-columns: minmax(0, 1fr); } .people-panel { display: none; } }
@media (max-width: 900px) { .phead-in { padding: 12px 14px 0; } .phead-row .plogo { --s: 40px; } .phead-row h1 { font-size: 18px; } .phead-row > .stack, .phead-row > .btn { display: none; } }

/* Chat */
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--chat); position: relative; }
.chat::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7; background-image: radial-gradient(rgba(23, 25, 28, .05) 1px, transparent 1px); background-size: 18px 18px; }
.chat-bar { position: relative; z-index: 1; display: flex; gap: 6px; padding: 10px 18px; overflow-x: auto; scrollbar-width: none; align-items: center; background: rgba(246, 245, 241, .92); border-bottom: 1px solid var(--line); flex: none; }
.chat-bar::-webkit-scrollbar { display: none; }
.chat-bar .chip.toggle { height: 28px; font-size: 12.5px; flex: none; }
.chat-bar .chip.focus { background: var(--brand); color: #fff; border: 0; height: 28px; padding: 0 6px 0 4px; flex: none; }
.chat-bar .chip.focus .avatar { --s: 20px; box-shadow: none; }
.chat-bar .chip.focus button { border: 0; background: none; color: #fff; cursor: pointer; font-size: 15px; padding: 0 4px; }
.msgs { position: relative; flex: 1; overflow-y: auto; padding: 8px 18px 18px; }
.msgs-in { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.day { align-self: center; background: var(--surface); color: var(--ink-2); font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 8px; box-shadow: var(--shadow-sm); margin: 10px 0 2px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: min(620px, 92%); }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg > .avatar { --s: 30px; margin-bottom: 2px; }
.bubble { background: var(--surface); border-radius: 16px 16px 16px 4px; padding: 10px 13px 9px; box-shadow: var(--shadow-sm); min-width: 0; flex: 1; border: 1px solid rgba(23, 25, 28, .04); }
.msg.mine .bubble { background: var(--mine); border-radius: 16px 16px 4px 16px; }
.msg.flash .bubble { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 35% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: var(--shadow-sm); } }
.bhead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.bhead .name { font-weight: 650; font-size: 13.5px; color: var(--pc); letter-spacing: -.01em; }
.bhead .role { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.bhead .time { margin-left: auto; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.btext { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.btext a, .rtext a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.mention { font-weight: 600; color: var(--pc); }
/* Only YOUR name is a filled pill, so it jumps out the way WhatsApp highlights you. Everyone else's @name is coloured text. */
.mention.me { background: color-mix(in srgb, var(--pc) 16%, #fff); padding: 1px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 32%, transparent); white-space: nowrap; }
/* Your own name is always an @mention, in any heading, list or table. */
h1 .mention.me { font-size: .82em; padding: 0 .35em; border-radius: .5em; vertical-align: .08em; }
b .mention.me, .mention.me b { font-weight: 650; }
.me-card .who b .mention.me { padding: 0 6px; font-size: 13px; }
.who-pill.me:not(.ok):not(.late):not(.over) { background: color-mix(in srgb, var(--pc) 14%, #fff); border-color: color-mix(in srgb, var(--pc) 40%, #fff); }
.msg.mine .who-pill.me:not(.ok):not(.late):not(.over) { background: color-mix(in srgb, var(--pc) 14%, #fff); }
.task-foot { margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(23, 25, 28, .12); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.who-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 3px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.who-pill .avatar { --s: 20px; box-shadow: none; }
.who-pill:not(.ok):not(.late):not(.over) { color: var(--ink-2); }
.who-pill.me:not(.ok):not(.late):not(.over) { color: var(--pc); }
.who-pill.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.who-pill.late { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.who-pill.over { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.msg.mine .who-pill:not(.ok):not(.late):not(.over) { background: rgba(255, 255, 255, .7); }
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.due.over { color: var(--danger); }
.due.soon { color: var(--warn); }
.due.done { color: var(--ok); }
.task-foot .due { margin-right: 4px; }
.closed-tag { font-size: 11.5px; font-weight: 700; color: var(--ok); }
.bacts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.bacts .btn.xs.ghost { color: var(--ink-3); }
.bacts .btn.xs.ghost:hover { color: var(--ink); }
.atts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.att { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); min-width: 0; font-size: 13px; }
.att:hover { border-color: var(--line-2); background: #fff; }
.att .ai { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--c-soft); color: var(--c); }
.att .an { flex: 1; min-width: 0; }
.att .an div { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att .an small { color: var(--ink-3); font-size: 11.5px; }
.thread { margin-top: 10px; padding: 10px; border-radius: 12px; background: rgba(23, 25, 28, .035); display: flex; flex-direction: column; gap: 9px; }
.msg.mine .thread { background: rgba(255, 255, 255, .55); }
.rrow { display: flex; gap: 8px; font-size: 13px; }
.rrow .avatar { --s: 22px; box-shadow: none; }
.rrow b { font-weight: 700; }
.rrow .t { color: var(--ink-3); font-size: 11px; margin-left: 4px; }
.rrow .sys { color: var(--ink-2); }
.rrow .body { flex: 1; min-width: 0; }
.rtext { white-space: pre-wrap; overflow-wrap: anywhere; }
.rbox { display: flex; gap: 6px; align-items: flex-end; position: relative; }
.rbox textarea { min-height: 38px; height: 38px; resize: none; padding: 8px 10px; font-size: 13.5px; }

.composer { position: relative; background: var(--surface); border-top: 1px solid var(--line); flex: none; z-index: 2; }
.composer-in { max-width: 820px; margin: 0 auto; padding: 10px 14px 10px; position: relative; }
.comp-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 8px; }
.comp-tags:empty { display: none; }
.ctag { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 4px 0 3px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, var(--pc, #999) 12%, #fff); color: var(--pc, var(--ink-2)); }
.ctag .avatar { --s: 22px; box-shadow: none; }
.ctag button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 15px; line-height: 1; padding: 0 5px; }
.ctag.plain { background: var(--hover); color: var(--ink-2); padding: 0 4px 0 10px; }
.comp-row { display: flex; align-items: flex-end; gap: 4px; }
.comp-row textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; border-radius: 22px; padding: 11px 16px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; line-height: 1.45; font-size: 14.5px; }
.comp-row textarea:focus { border-color: var(--brand); background: #fff; }
.comp-row .icon-btn { width: 40px; height: 44px; }
.send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(19, 121, 91, .3); margin-left: 2px; }
.send:hover { background: var(--brand-2); }
.send:disabled { opacity: .5; }
.hint { font-size: 11.5px; color: var(--ink-3); padding: 6px 6px 0; }
.popover { position: absolute; z-index: 40; bottom: calc(100% + 6px); left: 14px; width: min(320px, calc(100% - 28px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 300px; overflow: auto; }
.popover.right { left: auto; right: 14px; }
.popover .ph { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; }
.mopt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; cursor: pointer; width: 100%; border: 0; background: none; text-align: left; }
.mopt.on, .mopt:hover { background: var(--brand-soft); }
.mopt .avatar { --s: 30px; box-shadow: none; }
.mopt small { display: block; color: var(--ink-3); font-size: 12px; }
.pop-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 8px 8px; }
.pop-row .input { height: 34px; }
.pop-row .chip.toggle { height: 28px; font-size: 12.5px; }

.people-panel { background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; padding: 16px 12px; }
.people-panel h3 { padding: 0 8px 2px; }
.people-panel .sub { padding: 0 8px 10px; font-size: 12px; color: var(--ink-3); }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; cursor: pointer; width: 100%; border: 0; background: none; text-align: left; }
.prow:hover { background: var(--hover); }
.prow.on { background: var(--brand-soft); }
.prow .avatar { --s: 34px; }
.prow .nm { flex: 1; min-width: 0; }
.prow .nm b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .nm small { color: var(--ink-3); font-size: 11.5px; }
.prow .nums { display: flex; gap: 4px; flex: none; }

/* Everyone's tasks */
.ppl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pcard { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pcard-h { display: flex; align-items: center; gap: 10px; }
.pcard-h .avatar { --s: 40px; }
.pcard-h .nm { flex: 1; min-width: 0; }
.pcard-h b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-h small { color: var(--ink-3); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.stats div { padding: 8px 6px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats span { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.stats .red b { color: var(--danger); }
.stats .green b { color: var(--ok); }
.stats .amber b { color: var(--warn); }
.stats .zero b { color: var(--line-2); }
.tline { display: flex; align-items: flex-start; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 9px; cursor: pointer; font-size: 13px; min-width: 0; }
.tline:hover { background: var(--hover); }
.tline .txt { flex: 1; min-width: 0; }
.tline .txt div { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tline .txt small { color: var(--ink-3); font-size: 11.5px; }
.tline.done .txt div { color: var(--ink-3); text-decoration: line-through; }
.dotc { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line-2); }
.dotc.over { background: var(--danger); }
.dotc.soon { background: var(--warn); }
.dotc.ok { background: var(--ok); }
.dotc.late { background: var(--warn); }

/* Task lists */
.tlist { overflow: hidden; }
.grp-h { display: flex; align-items: center; gap: 8px; padding: 11px 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.grp-h .avatar { --s: 22px; box-shadow: none; }
.grp-h.red { color: var(--danger); }
.grp-h.norm { text-transform: none; letter-spacing: -.005em; font-size: 13px; color: var(--ink); }
.trow { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.trow:hover { background: var(--surface-2); }
.trow:last-child { border-bottom: 0; }
.trow .main-t { flex: 1; min-width: 0; }
.trow .main-t .tx { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .main-t .mt { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.trow .right { display: flex; align-items: center; gap: 12px; flex: none; }
.trow.is-done .tx { color: var(--ink-3); text-decoration: line-through; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: transparent; padding: 0; flex: none; transition: all .12s; }
.check:hover { border-color: var(--brand); color: var(--brand); }
.check.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.check svg { width: 13px; height: 13px; stroke-width: 3; }
.tabs-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 700px) { .trow { padding: 12px 14px; align-items: flex-start; } .trow .right { flex-direction: column; align-items: flex-end; gap: 4px; } .trow .right .stack { display: none; } }

/* Drive & info */
.drive-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bc { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.bc a { color: var(--ink-3); padding: 4px 8px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bc a:hover { background: var(--hover); color: var(--ink); }
.bc .cur { padding: 4px 8px; }
.dfolders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dfolder { padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; min-width: 0; }
.dfolder:hover { border-color: var(--line-2); background: var(--surface-2); }
.dfolder svg { color: #8f8a7c; fill: #ebe6d6; width: 22px; height: 22px; }
.dfolder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.file:last-child { border-bottom: 0; }
.file:hover { background: var(--surface-2); }
.ft { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; flex: none; color: hsl(var(--h) 50% 32%); background: hsl(var(--h) 55% 92%); }
.file .nm { flex: 1; min-width: 0; }
.file .nm div { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .nm small { color: var(--ink-3); }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 20px; text-align: center; color: var(--ink-3); margin-bottom: 20px; transition: all .12s; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.info-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .info-grid { grid-template-columns: 1fr; } }
.box { padding: 20px 22px; }
.box + .box { margin-top: 18px; }
.info-list { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px 18px; margin-top: 16px; }
.info-list dt { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.info-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.info-list dd a { color: var(--blue); }
.info-list dd.none { color: var(--ink-3); font-style: italic; }
@media (max-width: 560px) { .info-list { grid-template-columns: 1fr; gap: 2px; } .info-list dd { margin-bottom: 12px; } }
.progress { height: 6px; border-radius: 6px; background: var(--hover); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.mrow:last-child { border-bottom: 0; }
.mrow .nm { flex: 1; min-width: 0; }
.mrow .nm div { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .nm small { color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.ttable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ttable th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ttable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ttable tr:last-child td { border-bottom: 0; }
.person-line { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

/* Modal, menu, toast */
.modal-bg { position: fixed; inset: 0; background: rgba(23, 25, 28, .35); z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; animation: fade .15s; backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 600px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.2, .8, .2, 1); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 4px; }
.modal-b { padding: 14px 24px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.menu { position: fixed; min-width: 200px; padding: 6px; overscroll-behavior: contain; z-index: 130; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); animation: pop .12s; }
.menu button { display: flex; width: 100%; gap: 9px; align-items: center; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13.5px; font-weight: 500; }
.menu button:hover { background: var(--hover); }
.menu button.danger { color: var(--danger); }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .18s; max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
.loading { display: grid; place-items: center; padding: 60px; }
@keyframes spin { to { transform: rotate(360deg); } }
.checks { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow: auto; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; }
.checks label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.checks label:hover { background: var(--hover); }
.checks input { accent-color: var(--brand); width: 16px; height: 16px; }
.checks .avatar { --s: 26px; box-shadow: none; }
.checks .plogo { --s: 26px; border-radius: 7px; font-size: 10px; }
@media (max-width: 900px) {
  .hint { display: none; }
  .project .phead-row h1 { font-size: 17px; }
  .comp-row .icon-btn { width: 34px; }
}

/* ================= Round 4 components ================= */
.eyebrow { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 8px; }
.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }
.input.sm, select.input.sm { height: 34px; font-size: 13px; border-radius: 9px; }
select.input.sm { width: auto; max-width: 220px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 340px; }
.toolbar .search .input { height: 34px; }
.empty.sm { padding: 22px 12px; font-size: 13px; }
.chip.toggle.sm { height: 26px; font-size: 12px; padding: 0 10px; }
.seg-mini { display: inline-flex; background: #ecebe6; border-radius: 10px; padding: 3px; gap: 2px; }
.seg-mini button { border: 0; background: none; height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg-mini button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 25, 28, .1); }

/* Dashboard */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; transition: transform .12s, border-color .12s; }
a.tile[href]:hover { transform: translateY(-1px); border-color: var(--line-2); }
.tile-l { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.tile-n { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile-s { font-size: 12px; color: var(--ink-3); }
.tile.bad .tile-n { color: var(--danger); }
.tile.good .tile-n { color: var(--ok); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-n { font-size: 24px; } }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.panel { padding: 18px 20px; min-width: 0; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-h h3 { font-size: 15px; font-weight: 600; }
.mini { display: flex; align-items: center; gap: 12px; padding: 10px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; min-width: 0; }
.mini:hover { background: var(--hover); }
.mini-main { flex: 1; min-width: 0; }
.mini-t { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 2px; min-width: 0; white-space: nowrap; overflow: hidden; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 0 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini-table th:first-child, .mini-table td:first-child { padding-left: 0; }
.mini-table td { padding: 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table tbody tr { cursor: pointer; }
.mini-table tbody tr:hover td { background: var(--surface-2); }
.mini-table td.red { color: var(--danger); font-weight: 600; }
.mini-table td.zero { color: var(--ink-3); }
.rate { display: inline-flex; align-items: center; gap: 8px; }
.rate-bar { width: 60px; height: 6px; border-radius: 6px; background: var(--hover); overflow: hidden; }
.rate-bar i { display: block; height: 100%; background: var(--ok); border-radius: 6px; }

/* Chart: stacked weekly bars (status colours: on time / late) */
.chart { display: flex; flex-direction: column; gap: 10px; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.ok { background: #1f9a6f; }
.sw.late { background: #d89a2b; }
.chart-plot { position: relative; height: 190px; padding-left: 26px; }
.chart-grid { position: absolute; inset: 0 0 22px 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid div { border-top: 1px solid var(--line); position: relative; }
.chart-grid div:last-child { border-top-color: var(--line-2); }
.chart-grid span { position: absolute; left: 0; top: -8px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart-bars { position: absolute; left: 30px; right: 0; top: 0; bottom: 0; display: flex; gap: 10px; align-items: stretch; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 22px; position: relative; cursor: default; }
.bar-col:hover { background: linear-gradient(to top, transparent 22px, rgba(23, 25, 28, .03) 22px); border-radius: 6px; }
.bar-stack { width: min(28px, 70%); display: flex; flex-direction: column; gap: 2px; }
.bar-stack i { display: block; min-height: 3px; }
.bar-stack i:first-child { border-radius: 4px 4px 0 0; }
.bar-stack i.ok { background: #1f9a6f; }
.bar-stack i.late { background: #d89a2b; }
.bar-x { position: absolute; bottom: 0; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tip { position: fixed; z-index: 300; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 8px; pointer-events: none; box-shadow: var(--shadow-lg); white-space: nowrap; }
@media (max-width: 640px) { .bar-x { font-size: 9.5px; } .chart-bars { gap: 4px; } }

/* Projects header: share button */
.share-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-sm); flex: none; }
.share-btn:hover { background: var(--hover); }
.share-btn span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.share-add { display: flex; gap: 8px; margin-bottom: 12px; }
.share-list .mrow .small { white-space: nowrap; }
@media (max-width: 900px) { .share-btn .stack { display: none; } .share-btn { padding: 0 10px; } }

/* Board (Trello-style) */
.board-wrap { min-height: 100%; }
.board-bar { display: flex; align-items: center; gap: 14px; padding: 16px 28px 0; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; }
.check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check-label input { accent-color: var(--brand); }
.board { display: flex; gap: 14px; overflow-x: auto; padding: 16px 28px 20px; align-items: flex-start; max-width: 1400px; margin: 0 auto; }
.bcol { flex: 0 0 290px; background: #efeee9; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; max-height: calc(100dvh - 260px); }
.bcol-h { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; }
.bcol-h .nm { flex: 1; min-width: 0; }
.bcol-h b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcol-h small { font-size: 11.5px; color: var(--ink-3); }
.bcol-h .avatar { box-shadow: none; }
.bcount { font-size: 12px; font-weight: 700; color: var(--ink-2); background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.bdot { width: 10px; height: 10px; border-radius: 50%; margin-left: 4px; }
.bdot.st-open { background: var(--blue); }
.bdot.st-over { background: var(--danger); }
.bdot.st-done { background: var(--ok); }
.bnote { font-size: 11.5px; font-weight: 600; color: var(--danger); padding: 0 4px 8px; }
.bcards { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 2px; }
.bcard { background: var(--surface); border-radius: 12px; padding: 11px 12px; box-shadow: 0 1px 2px rgba(23, 25, 28, .08), 0 0 0 1px rgba(23, 25, 28, .03); cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .12s, transform .12s; }
.bcard:hover { box-shadow: 0 6px 18px -8px rgba(23, 25, 28, .25), 0 0 0 1px rgba(23, 25, 28, .06); transform: translateY(-1px); }
.bcard.over { box-shadow: inset 3px 0 0 var(--danger), 0 1px 2px rgba(23, 25, 28, .08); }
.bcard.done .bt { color: var(--ink-3); }
.bt { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bm { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bicons { display: inline-flex; gap: 8px; color: var(--ink-3); font-size: 12px; }
.bicons span { display: inline-flex; align-items: center; gap: 3px; }
.bf { display: flex; align-items: center; }
.bempty { font-size: 12.5px; color: var(--ink-3); text-align: center; padding: 14px 0; }
.bdiv { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px 4px 2px; }
@media (max-width: 900px) { .board, .board-bar { padding-left: 14px; padding-right: 14px; } .bcol { flex-basis: 270px; } }

/* Info */
.info-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.info-head > div:first-child { flex: 1; min-width: 220px; }
.info-prog { width: 180px; }
.info-prog .progress { margin-top: 6px; }
.info-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .info-grid { grid-template-columns: minmax(0, 1fr); } }
.info-main, .info-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.info-card { padding: 18px 20px; }
.info-card + .info-card { margin-top: 0; }
#infof .info-card { margin-bottom: 16px; }
.info-card h3 { font-size: 14px; font-weight: 600; }
.info-card .info-list { grid-template-columns: 170px minmax(0, 1fr); gap: 10px 16px; margin-top: 12px; font-size: 13.5px; }
.about-top { display: flex; align-items: center; gap: 14px; }
.about-text { margin-top: 14px; color: var(--ink-2); line-height: 1.6; }
.ilink { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; min-width: 0; color: var(--ink-3); }
.ilink:hover { background: var(--hover); }
.ilink-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.ilink-t { flex: 1; min-width: 0; }
.ilink-t b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ilink-t small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.link-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 36px; gap: 8px; margin-bottom: 8px; }
@media (max-width: 640px) { .link-row { grid-template-columns: 1fr 36px; } .link-row input:first-child { grid-column: 1 / -1; } .info-card .info-list { grid-template-columns: 1fr; } }

/* Done + file */
.done-panel { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.msg.mine .done-panel { background: rgba(255, 255, 255, .7); }
.done-panel textarea { min-height: 56px; font-size: 13.5px; }
.dp-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* ================= Round 5: banner, timeline, wallets, motion ================= */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes runLine { from { width: 0; } }
@keyframes runNow { from { left: 0; opacity: 0; } 10% { opacity: 1; } }
@keyframes lightUp { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 70% { transform: translate(-50%, -50%) scale(1.15); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes pulseRed { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 50% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

.page > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.page > *:nth-child(2) { animation-delay: .04s; }
.page > *:nth-child(3) { animation-delay: .08s; }
.page > *:nth-child(4) { animation-delay: .12s; }
.page > *:nth-child(5) { animation-delay: .16s; }
.page > *:nth-child(n+6) { animation-delay: .2s; }
.tile, .folder-card, .bcol, .wallet { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.tiles .tile:nth-child(2) { animation-delay: .05s; } .tiles .tile:nth-child(3) { animation-delay: .1s; }
.tiles .tile:nth-child(4) { animation-delay: .15s; } .tiles .tile:nth-child(5) { animation-delay: .2s; }
.bcol:nth-child(2) { animation-delay: .05s; } .bcol:nth-child(3) { animation-delay: .1s; } .bcol:nth-child(n+4) { animation-delay: .15s; }
.modal-bg { animation: fadeIn .18s both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; } }

/* Dark project banner */
.phead.dark { position: relative; background: #121418; border-bottom: 0; color: #f4f4f2; overflow: hidden; }
.phead.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 260px at 8% -20%, hsl(var(--h) 70% 45% / .35), transparent 70%), radial-gradient(500px 240px at 100% 120%, hsl(calc(var(--h) + 60) 70% 45% / .18), transparent 70%); }
.phead.dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent); }
.phead.dark .phead-in { position: relative; z-index: 1; padding-top: 20px; }
.phead.dark .phead-row h1 { color: #fff; }
.phead.dark .phead-row .sub { color: rgba(255, 255, 255, .55); }
.phead.dark .phead-row .sub .flag { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }
.phead.dark .chip.cat { background: hsl(var(--h) 60% 60% / .16); color: hsl(var(--h) 80% 82%); }
.phead.dark .plogo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 30px -10px hsl(var(--h) 70% 40% / .8); }
.phead.dark .share-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.phead.dark .share-btn:hover { background: rgba(255, 255, 255, .14); }
.phead.dark .share-btn .avatar { box-shadow: 0 0 0 2px #121418; }
.phead.dark .tabs a { color: rgba(255, 255, 255, .55); }
.phead.dark .tabs a:hover { color: #fff; }
.phead.dark .tabs a.on { color: #fff; border-bottom-color: #fff; }
.phead.dark .tabs .count { color: rgba(255, 255, 255, .6); }
.btn.glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.btn.glass:hover { background: rgba(255, 255, 255, .16); }

/* Timeline */
.tl { margin-top: 16px; padding: 12px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); }
.tl-head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.tl-month { font-weight: 650; color: #fff; letter-spacing: -.01em; }
.tl-sum { color: rgba(255, 255, 255, .6); }
.tl-sum .red { color: #ff8a8e; }
.tl-lock { display: inline-flex; gap: 5px; align-items: center; color: rgba(255, 255, 255, .45); font-size: 12px; }
.tl-track { position: relative; height: 92px; margin: 4px 8px 0; }
.tl-rail { position: absolute; left: 0; right: 0; top: 46px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.tl-fill { position: absolute; left: 0; top: 46px; height: 4px; border-radius: 4px; width: var(--w);
  background: linear-gradient(90deg, rgba(255, 255, 255, .25), #fff); box-shadow: 0 0 14px rgba(255, 255, 255, .45);
  animation: runLine var(--dur) cubic-bezier(.3, .6, .2, 1) both; }
.tl-now { position: absolute; top: 30px; left: var(--x); width: 2px; height: 36px; background: #fff; transform: translateX(-1px); border-radius: 2px;
  animation: runNow var(--dur) cubic-bezier(.3, .6, .2, 1) both; }
.tl-now span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: #121418; background: #fff; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.tl-m { position: absolute; top: 48px; transform: translate(-50%, -50%); animation: lightUp .5s cubic-bezier(.2, .8, .2, 1) both; z-index: 2; }
.tl-m i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff;
  background: #3a3d44; border: 2px solid #121418; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.tl-m.st-ok i { background: #30a46c; }
.tl-m.st-late i { background: #d89a2b; }
.tl-m.st-miss i { background: #e5484d; animation: pulseRed 1.6s ease-in-out infinite; }
.tl-m.st-today i { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.tl-m.st-none i { background: transparent; border: 2px dashed rgba(255, 255, 255, .35); box-shadow: none; }
.tl-lbl { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; white-space: nowrap; font-size: 11.5px; color: rgba(255, 255, 255, .8); text-align: center; line-height: 1.3; }
.tl-m.below .tl-lbl { bottom: auto; top: 18px; }
.tl-lbl b { color: #fff; font-weight: 700; }
.tl-lbl em { display: block; font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .5); }
.tl-m.st-miss .tl-lbl em { color: #ff8a8e; font-weight: 600; }
.tl-m.st-ok .tl-lbl em { color: #7ee2a8; }
.tl-m.st-late .tl-lbl em { color: #f5c46b; }
.tl-m:hover i { transform: scale(1.15); }
.tl.slim { margin-top: 12px; padding: 8px 12px; display: flex; align-items: center; gap: 14px; }
.tl.slim .tl-head { flex: none; }
.tl.slim .tl-head .spacer, .tl.slim .tl-lock, .tl.slim .tl-head .btn { display: none; }
.tl.slim .tl-track { flex: 1; height: 26px; margin: 0 10px; }
.tl.slim .tl-rail, .tl.slim .tl-fill { top: 11px; }
.tl.slim .tl-now { top: 3px; height: 20px; }
.tl.slim .tl-now span { display: none; }
.tl.slim .tl-m { top: 13px; }
.tl.slim .tl-m i { width: 16px; height: 16px; font-size: 9px; }
.tl.slim .tl-lbl { display: none; }
.tl-empty { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.tl-empty b { display: block; color: #fff; font-size: 13.5px; }
.tl-empty span { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
@media (max-width: 900px) {
  .tl { margin-top: 12px; }
  .tl-lbl { font-size: 10.5px; max-width: 90px; white-space: normal; }
  .tl.slim .tl-head .tl-sum { display: none; }
}
.tl-row { padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; }
.tl-row-top { display: flex; gap: 8px; align-items: center; }
.tl-day { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tl-day input { width: 64px; }

/* Recurring chips */
.chip.rec { background: color-mix(in srgb, var(--blue) 10%, #fff); color: var(--blue); height: 22px; font-size: 11.5px; }
.rec-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; flex: none; }

/* Project cards: dark banner */
.folder-card { padding-top: 0; }
.folder-card::before { display: none; }
.folder-body { border-radius: 18px; }
.folder-top { height: auto; min-height: 96px; padding: 18px 16px; align-items: center; gap: 12px; background: #15171b; color: #fff; position: relative; overflow: hidden; }
.folder-top::before { content: ""; position: absolute; inset: 0; background: radial-gradient(280px 140px at 0% 0%, hsl(var(--h) 70% 50% / .45), transparent 70%), radial-gradient(220px 120px at 110% 120%, hsl(calc(var(--h) + 60) 70% 50% / .25), transparent 70%); transition: opacity .3s; opacity: .85; }
.folder-card:hover .folder-top::before { opacity: 1; }
.folder-top > * { position: relative; }
.folder-top .plogo { --s: 46px; transform: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); background: hsl(var(--h) 45% 82%); }
.ft-meta { flex: 1; min-width: 0; }
.ft-meta h3 { font-size: 16px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.015em; }
.ft-sub { font-size: 12px; color: rgba(255, 255, 255, .6); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-badge { font-size: 11.5px; font-weight: 700; background: #fff; color: #15171b; padding: 3px 9px; border-radius: 999px; flex: none; }
.folder-info { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.folder-info .chips { margin-top: 0; }
.fstats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.fstats div { padding: 8px 10px; border-right: 1px solid var(--line); }
.fstats div:last-child { border-right: 0; }
.fstats b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fstats span { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.fstats .red b { color: var(--danger); }
.mtl-rail { position: relative; height: 4px; border-radius: 4px; background: var(--hover); margin: 6px 6px 0; }
.mtl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #cfd2d6, #17191c); animation: runLine 1.4s cubic-bezier(.3, .6, .2, 1) both; }
.mtl-rail i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: #c8cacd; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.mtl-rail i.st-ok { background: #30a46c; }
.mtl-rail i.st-late { background: #d89a2b; }
.mtl-rail i.st-miss { background: #e5484d; }
.mtl-rail i.st-today { background: #17191c; }
.mtl-leg { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 8px; }

/* Wallet-style Drive folders */
.wallets { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 16px; margin-bottom: 22px; }
.wallet { position: relative; height: 128px; cursor: pointer; padding-top: 16px; }
.w-cards { position: absolute; left: 14px; right: 14px; top: 0; height: 60px; }
.w-cards i { position: absolute; left: 0; right: 0; height: 60px; border-radius: 10px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.w-cards i:first-child { top: 0; background: linear-gradient(135deg, hsl(var(--h) 65% 62%), hsl(calc(var(--h) + 40) 65% 52%)); transform: rotate(-3deg); }
.w-cards i:last-child { top: 6px; left: 10px; right: -4px; background: linear-gradient(135deg, #f3f1ea, #d9d5c8); transform: rotate(2deg); }
.wallet:hover .w-cards i:first-child { transform: translateY(-8px) rotate(-5deg); }
.wallet:hover .w-cards i:last-child { transform: translateY(-4px) rotate(4deg); }
.w-body { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: linear-gradient(160deg, #24272d, #15171b); color: #fff; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08); overflow: hidden; }
.w-body::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 11px; pointer-events: none; }
/* Snap clasp, kept inside the wallet */
.w-clasp { position: absolute; right: 14px; top: 16px; width: 34px; height: 22px; border-radius: 11px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.w-clasp::after { content: ""; position: absolute; right: 5px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, hsl(var(--h) 25% 70%) 45%, hsl(var(--h) 20% 40%)); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.w-ic { position: absolute; top: 14px; left: 16px; color: hsl(var(--h) 70% 72%); }
.w-body b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 1; max-width: 80%; }
.w-body small { font-size: 11.5px; color: rgba(255, 255, 255, .5); position: relative; z-index: 1; }
.tl-m.edge-l .tl-lbl { left: -4px; transform: none; text-align: left; }
.tl-m.edge-r .tl-lbl { left: auto; right: -4px; transform: none; text-align: right; }
.tl-mob { display: none; }
@media (max-width: 700px) {
  .tl:not(.slim) .tl-track { height: 44px; }
  .tl:not(.slim) .tl-rail, .tl:not(.slim) .tl-fill { top: 26px; }
  .tl:not(.slim) .tl-now { top: 12px; height: 30px; }
  .tl:not(.slim) .tl-now span { top: -16px; font-size: 9.5px; }
  .tl:not(.slim) .tl-m { top: 28px; }
  .tl .tl-lbl { display: none; }
  .tl-head .tl-lock { display: none; }
  .tl-mob { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
  .tl-mob a { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .8); padding: 4px 0; }
  .tl-mob i { width: 8px; height: 8px; border-radius: 50%; background: #6b6f76; flex: none; }
  .tl-mob .st-ok i { background: #30a46c; } .tl-mob .st-late i { background: #d89a2b; } .tl-mob .st-miss i { background: #e5484d; } .tl-mob .st-today i { background: #fff; }
  .tl-mob b { color: #fff; width: 34px; flex: none; }
  .tl-mob span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tl-mob em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .5); }
  .tl-mob .st-miss em { color: #ff8a8e; font-weight: 600; }
}

/* ---------- Mentions ---------- */
.panel.mentions .panel-h h3 { display: inline-flex; align-items: center; gap: 7px; }
.panel.mentions .panel-h h3 .count { font-size: 11px; }
.ph-acts { display: inline-flex; gap: 14px; align-items: baseline; }
.ph-acts button.link { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.mm { position: relative; display: flex; gap: 11px; padding: 11px 10px; margin: 0 -10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.mm + .mm { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.mm:hover { background: var(--hover, #f3f2ee); }
.mm.new { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.mm.new::before { content: ''; position: absolute; left: -2px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.mm-body { min-width: 0; flex: 1; }
.mm-h { font-size: 13px; line-height: 1.5; }
.mm-h .muted { font-size: 12px; }
.mm-t { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mm-f { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mm-f .who-pill { height: 22px; padding: 0 9px; font-size: 11.5px; }
.mm-kind { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: #efeee9; border-radius: 999px; padding: 2px 9px; }
.mm-list { padding: 6px 20px; }
.mm-list .mm { margin: 0 -12px; padding: 14px 12px; }
.mm-list .mm.new::before { left: 0; }

/* ---------- In-app confirm dialog ---------- */
.ask-bg { z-index: 120; }
.modal.ask { max-width: 420px; }
.modal.ask h3 { font-size: 16px; font-weight: 650; }
.btn.danger-solid { background: var(--danger); color: #fff; border-color: transparent; }
.btn.danger-solid:hover { filter: brightness(.95); background: var(--danger); }

/* ---------- Integrations ---------- */
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.ig-check { margin-bottom: 18px; }
.ig-step { display: grid; grid-template-columns: 12px 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ig-step:first-of-type { border-top: 0; }
.ig-step .ig-v { color: var(--ink-2); overflow-wrap: anywhere; }
.ig-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ig-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.ig-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.ig-dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.ig-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ig-grid .full { grid-column: 1 / -1; }
.ig { display: flex; flex-direction: column; gap: 14px; }
.ig-h { display: flex; align-items: center; gap: 12px; }
.ig-h > div { flex: 1; min-width: 0; }
.ig-h h3 { font-size: 15px; font-weight: 650; }
.ig-h small { color: var(--ink-3); font-size: 12.5px; }
.ig-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: hsl(var(--h) 55% 38%); background: hsl(var(--h) 60% 94%); }
.ipill { font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--hover); color: var(--ink-3); }
.ipill.ok { background: var(--ok-soft); color: var(--ok); }
.ipill.warn { background: var(--warn-soft); color: var(--warn); }
.ipill.bad { background: var(--danger-soft); color: var(--danger); }
.ig .field { display: flex; flex-direction: column; gap: 6px; }
.ig .field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ig-cur { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--hover); }
.ig-cur span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ig-cur small { color: var(--ink-3); font-size: 12px; }
.ig-f { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch-row span { display: flex; flex-direction: column; font-size: 13.5px; }
.switch-row small { color: var(--ink-3); font-size: 12px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .18s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s; }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(16px); }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.key-row { display: flex; flex-direction: column; gap: 8px; }
.key-set { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 13px; }
.key-set span { flex: 1; }
.key-in { display: flex; gap: 8px; }
.key-in .input { flex: 1; min-width: 0; }
pre.cfg { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: #f1f0eb; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
@media (max-width: 860px) { .ig-grid { grid-template-columns: 1fr; } .ig-step { grid-template-columns: 12px minmax(0, 1fr); } .ig-step .ig-v { grid-column: 2; } }

/* Two-line wordmark for longer names */
.brand-t { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-t b { font-weight: 700; letter-spacing: -.01em; }
.brand-t small { font-size: 11.5px; font-weight: 550; color: var(--ink-3); letter-spacing: .02em; margin-top: 2px; white-space: nowrap; }

/* ---------- Collapsible sidebar (desktop) ---------- */
/* No transition on the page grid: animating it re-lays out the whole page (chat, task lists) on every frame. */
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.side-tog { color: var(--ink-3); flex: none; }
.side-tog:hover { color: var(--ink); }
@media (min-width: 901px) {
  .app.side-mini { grid-template-columns: 68px minmax(0, 1fr); }
  .app.side-mini:not(.side-peek) .side-top { flex-direction: column; padding: 16px 8px 6px; gap: 10px; }
  .app.side-mini:not(.side-peek) .brand-t, .app.side-mini:not(.side-peek) .brand > :not(.mark) { display: none; }
  .app.side-mini:not(.side-peek) .side-scroll { padding: 8px 8px 16px; overflow-x: hidden; }
  .app.side-mini:not(.side-peek) .nav-item { justify-content: center; padding: 0; position: relative; }
  .app.side-mini:not(.side-peek) .nav-item .lbl { display: none; }
  .app.side-mini:not(.side-peek) .nav-item .count { position: absolute; top: 2px; right: 4px; font-size: 9.5px; padding: 0 5px; min-width: 16px; text-align: center; line-height: 15px; }
  .app.side-mini:not(.side-peek) .nav-item .count:not(.hot):not(.red) { display: none; }
  .app.side-mini:not(.side-peek) .nav-sec { padding: 14px 0 6px; justify-content: center; }
  .app.side-mini:not(.side-peek) .nav-sec span { display: none; }
  .app.side-mini:not(.side-peek) .nav-sec::before { content: ''; display: block; width: 24px; height: 1px; background: var(--line-2); }
  .app.side-mini:not(.side-peek) .nav-sec button { display: none; }
  .app.side-mini:not(.side-peek) .side-foot { padding: 10px 8px; }
  .app.side-mini:not(.side-peek) .me-card { justify-content: center; padding: 6px 0; }
  .app.side-mini:not(.side-peek) .me-card .who, .app.side-mini:not(.side-peek) .me-card > svg { display: none; }
}
@media (max-width: 900px) { .side-tog { display: none; } }

/* ---------- Project banner that gets out of the way ---------- */
.ph-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .38s cubic-bezier(.3, .7, .2, 1), opacity .28s ease; }
.ph-fold-in { min-height: 0; overflow: hidden; }
.phead-row .plogo, .phead-row h1, .phead-in { transition: all .3s cubic-bezier(.3, .7, .2, 1); }
.phead-row .sub { max-height: 40px; overflow: hidden; transition: max-height .3s ease, opacity .2s ease, margin .3s ease; }
.ph-mini { display: none; width: min(300px, 32vw); cursor: pointer; padding: 6px 10px 4px; border-radius: 10px; }
.ph-mini:hover { background: rgba(255, 255, 255, .06); }
.ph-mini .mtl-rail { background: rgba(255, 255, 255, .14); margin: 4px 4px 0; }
.ph-mini .mtl-fill { background: linear-gradient(90deg, rgba(255, 255, 255, .3), #fff); }
.ph-mini .mtl-rail i { border-color: #121418; }
.ph-mini .mtl-rail i.st-today { background: #fff; }
.ph-mini .mtl-leg { color: rgba(255, 255, 255, .55); margin-top: 6px; font-size: 10.5px; }
.ph-tog { color: rgba(255, 255, 255, .6); flex: none; transition: transform .3s ease; }
.ph-tog:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.phead:not(.compact) .ph-tog { transform: rotate(180deg); }
.phead.compact .ph-fold { grid-template-rows: 0fr; opacity: 0; }
.phead.compact .phead-in { padding-top: 10px; }
.phead.compact .phead-row .plogo { --s: 32px; border-radius: 9px; font-size: 12px; }
.phead.compact .phead-row h1 { font-size: 16px; }
.phead.compact .phead-row .sub { max-height: 0; opacity: 0; margin-top: 0; }
.phead.compact .ph-mini { display: block; animation: fadeIn .3s both; }
.phead.compact .tabs { margin-top: 6px; }
@media (max-width: 700px) {
  .ph-mini { width: 110px; padding: 4px 6px; }
  .ph-mini .mtl-leg { display: none; }
  .phead .share-btn .stack { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ph-fold, .phead-row .sub, .phead-row .plogo, .phead-row h1, .phead-in, .app { transition: none; } }

/* ---------- New project wizard ---------- */
.modal.wiz { max-width: 720px; }
.wz-steps { display: flex; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.wz-step { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: default; }
.wz-step i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--hover); color: var(--ink-3); }
.wz-step.on { color: var(--ink); background: var(--hover); }
.wz-step.on i { background: var(--ink); color: #fff; }
.wz-step.done { color: var(--ok); cursor: pointer; }
.wz-step.done i { background: var(--ok-soft); color: var(--ok); }
.wz-step.done:hover { background: var(--ok-soft); }
.wz-body { min-height: 380px; }
.wz-body.enter { animation: fadeIn .25s both; }
.wz-grp { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 14px 0 6px; }
.tl-row.off { opacity: .6; }
.tl-row.off:focus-within { opacity: 1; }
.logo-pick { display: flex; gap: 14px; align-items: flex-start; }
.lp-prev { width: 72px; height: 72px; flex: none; border-radius: 16px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--ink-3); overflow: hidden; background: var(--hover); }
.lp-prev img { width: 100%; height: 100%; object-fit: cover; }
.lp-act { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wz-review { display: flex; flex-direction: column; gap: 14px; }
.wz-rv-top { display: flex; gap: 14px; align-items: center; }
.wz-rv-top h3 { font-size: 18px; }
.wz-rv-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; font-size: 13.5px; }
.wz-rv-row b { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.wz-review .info-list { margin-top: 0; }
@media (max-width: 640px) {
  .wz-step span { display: none; }
  .wz-step.on span { display: inline; }
  .wz-rv-row, .wz-review .info-list { grid-template-columns: 1fr; gap: 4px; }
  .tl-row-top { flex-wrap: wrap; }
}
.app.side-mini:not(.side-peek) .brand { font-size: 0; }

/* Whose work is this? Labels from the viewer's side */
.dir { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.dir.to { background: color-mix(in srgb, var(--pc) 16%, #fff); color: var(--pc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 30%, transparent); }
.dir.to.done { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.dir.by { background: rgba(255, 255, 255, .75); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.msg.for-me:not(.mine) .bubble { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--mepc) 45%, transparent), 0 1px 2px rgba(23, 25, 28, .06); }
@media (max-width: 700px) {
  .phead.compact .share-btn { padding: 0 10px; }
  .phead.compact .share-btn span { font-size: 0; gap: 0; }
}

/* ---------- Chat: doodle wallpaper, depth, motion, flash ---------- */
:root { --wall: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiB2aWV3Qm94PSIwIDAgMzAwIDMwMCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMmY0YTNmIiBzdHJva2Utd2lkdGg9IjEuMzUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgb3BhY2l0eT0iLjA4NSI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuMyA3LjIpIHJvdGF0ZSgtMjQgMTEuNiAxMS42KSBzY2FsZSgwLjk2KSI+PHBhdGggZD0iTTIxIDE1YTIgMiAwIDAgMS0yIDJIN2wtNCA0VjVhMiAyIDAgMCAxIDItMmgxNGEyIDIgMCAwIDEgMiAyeiIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg2OS40IDYuMykgcm90YXRlKDQgMTEuMyAxMS4zKSBzY2FsZSgwLjk1KSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIvPjxwYXRoIGQ9Im04IDEyIDMgMyA1LTYiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA5LjAgNi43KSByb3RhdGUoLTEzIDEwLjkgMTAuOSkgc2NhbGUoMC45MCkiPjxyZWN0IHg9IjMiIHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiLz48cGF0aCBkPSJNMTYgMnY0TTggMnY0TTMgMTBoMTgiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTU1LjYgMTEuNikgcm90YXRlKC0yMSAxMi4xIDEyLjEpIHNjYWxlKDEuMDEpIj48cGF0aCBkPSJtMjEuNCAxMS05LjIgOS4yYTYgNiAwIDAgMS04LjUtOC41bDguNi04LjZBNCA0IDAgMSAxIDE4IDguOGwtOC42IDguNmEyIDIgMCAwIDEtMi44LTIuOGw4LjUtOC41Ii8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIyMS43IDE2LjApIHJvdGF0ZSgtMjUgMTEuMyAxMS4zKSBzY2FsZSgwLjk1KSI+PHBhdGggZD0ibTEyIDIgMy4xIDYuMyA2LjkgMS01IDQuOSAxLjIgNi44TDEyIDE3LjggNS44IDIxbDEuMi02LjgtNS00LjkgNi45LTF6Ii8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI2My45IDEwLjYpIHJvdGF0ZSgtMjYgMTIuNSAxMi41KSBzY2FsZSgxLjA0KSI+PHBhdGggZD0iTTQgMjBoMTZhMiAyIDAgMCAwIDItMlY4YTIgMiAwIDAgMC0yLTJoLThsLTItM0g0YTIgMiAwIDAgMC0yIDJ2MTNhMiAyIDAgMCAwIDIgMloiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUuMiA1Ny41KSByb3RhdGUoNiAxMC45IDEwLjkpIHNjYWxlKDAuOTApIj48cGF0aCBkPSJNNiA4YTYgNiAwIDAgMSAxMiAwYzAgNyAzIDkgMyA5SDNzMy0yIDMtOSIvPjxwYXRoIGQ9Ik0xMC4zIDIxYTEuOSAxLjkgMCAwIDAgMy40IDAiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTYuMSA1OS41KSByb3RhdGUoLTE3IDEyLjAgMTIuMCkgc2NhbGUoMS4wMCkiPjxwYXRoIGQ9Ik0xOSAxNGMxLjUtMS41IDMtMy4yIDMtNS41QTUuNSA1LjUgMCAwIDAgMTYuNSAzYy0xLjggMC0zIC41LTQuNSAyLTEuNS0xLjUtMi43LTItNC41LTJBNS41IDUuNSAwIDAgMCAyIDguNWMwIDIuMyAxLjUgNCAzIDUuNWw3IDdaIi8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwNy43IDY2LjEpIHJvdGF0ZSgtMjIgMTAuMiAxMC4yKSBzY2FsZSgwLjg1KSI+PHBhdGggZD0ibTIyIDItNyAyMC00LTktOS00WiIvPjxwYXRoIGQ9Ik0yMiAyIDExIDEzIi8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2Ni4xIDU3LjQpIHJvdGF0ZSgtMTUgOS44IDkuOCkgc2NhbGUoMC44MSkiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjQiLz48cGF0aCBkPSJNMTYgOHY1YTMgMyAwIDAgMCA2IDB2LTFhMTAgMTAgMCAxIDAtNCA4Ii8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMy4wIDYzLjYpIHJvdGF0ZSgxIDExLjkgMTEuOSkgc2NhbGUoMC45OSkiPjxwYXRoIGQ9Ik05IDE4aDZNMTAgMjJoNCIvPjxwYXRoIGQ9Ik0xMiAyYTcgNyAwIDAgMC00IDEyLjdjLjYuNSAxIDEuMyAxIDIuM2g2YzAtMSAuNC0xLjggMS0yLjNBNyA3IDAgMCAwIDEyIDJaIi8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI2Ni4wIDYzLjcpIHJvdGF0ZSgyMiAxMC41IDEwLjUpIHNjYWxlKDAuODcpIj48cGF0aCBkPSJNNC41IDE2LjVjLTEuNSAxLjMtMiA1LTIgNXMzLjctLjUgNS0yYy43LS44LjctMi4xLS4xLTIuOWEyLjIgMi4yIDAgMCAwLTIuOS0uMVoiLz48cGF0aCBkPSJtMTIgMTUtMy0zYTIyIDIyIDAgMCAxIDItNEExMi45IDEyLjkgMCAwIDEgMjIgMmMwIDIuNy0uOCA3LjUtNiAxMWEyMi40IDIyLjQgMCAwIDEtNCAyWiIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5LjQgMTIwLjIpIHJvdGF0ZSgtOSA5LjggOS44KSBzY2FsZSgwLjgyKSI+PHBhdGggZD0iTTE3IDhoMWE0IDQgMCAxIDEgMCA4aC0xIi8+PHBhdGggZD0iTTMgOGgxNHY5YTQgNCAwIDAgMS00IDRIN2E0IDQgMCAwIDEtNC00WiIvPjxwYXRoIGQ9Ik02IDJ2Mk0xMCAydjJNMTQgMnYyIi8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDYzLjcgMTIwLjApIHJvdGF0ZSgtMTAgMTEuOCAxMS44KSBzY2FsZSgwLjk4KSI+PHBhdGggZD0iTTMgM3YxOGgxOCIvPjxwYXRoIGQ9Im0xOSA5LTUgNS00LTQtMyAzIi8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDExNS44IDEwNi4yKSByb3RhdGUoLTE4IDExLjEgMTEuMSkgc2NhbGUoMC45MykiPjxwYXRoIGQ9Ik0xMiAyMGg5Ii8+PHBhdGggZD0iTTE2LjUgMy41YTIuMSAyLjEgMCAwIDEgMyAzTDcgMTlsLTQgMSAxLTRaIi8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2OC42IDEwNy43KSByb3RhdGUoLTI2IDExLjEgMTEuMSkgc2NhbGUoMC45MikiPjxwYXRoIGQ9Ik0xNC41IDRoLTVMNyA3SDRhMiAyIDAgMCAwLTIgMnY5YTIgMiAwIDAgMCAyIDJoMTZhMiAyIDAgMCAwIDItMlY5YTIgMiAwIDAgMC0yLTJoLTN6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMyIgcj0iMyIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMjIuMCAxMDYuMSkgcm90YXRlKDIyIDExLjMgMTEuMykgc2NhbGUoMC45NCkiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iNiIvPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjIiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjcwLjEgMTEwLjApIHJvdGF0ZSgxMCAxMS43IDExLjcpIHNjYWxlKDAuOTcpIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIvPjxwYXRoIGQ9Ik04IDE0czEuNSAyIDQgMiA0LTIgNC0yIi8+PHBhdGggZD0iTTkgOWguMDFNMTUgOWguMDEiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUuMSAxNzAuNSkgcm90YXRlKC0yMyA5LjggOS44KSBzY2FsZSgwLjgyKSI+PHBhdGggZD0iTTIxIDE1YTIgMiAwIDAgMS0yIDJIN2wtNCA0VjVhMiAyIDAgMCAxIDItMmgxNGEyIDIgMCAwIDEgMiAyeiIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg3MS40IDE2Mi45KSByb3RhdGUoLTI1IDExLjYgMTEuNikgc2NhbGUoMC45NykiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjkiLz48cGF0aCBkPSJtOCAxMiAzIDMgNS02Ii8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDExNy44IDE2MC4yKSByb3RhdGUoMTUgMTEuMyAxMS4zKSBzY2FsZSgwLjk0KSI+PHJlY3QgeD0iMyIgeT0iNCIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiByeD0iMiIvPjxwYXRoIGQ9Ik0xNiAydjRNOCAydjRNMyAxMGgxOCIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNzAuMCAxNjAuNCkgcm90YXRlKDE0IDEwLjggMTAuOCkgc2NhbGUoMC45MCkiPjxwYXRoIGQ9Im0yMS40IDExLTkuMiA5LjJhNiA2IDAgMCAxLTguNS04LjVsOC42LTguNkE0IDQgMCAxIDEgMTggOC44bC04LjYgOC42YTIgMiAwIDAgMS0yLjgtMi44bDguNS04LjUiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjExLjYgMTcyLjMpIHJvdGF0ZSgxMSAxMC43IDEwLjcpIHNjYWxlKDAuODkpIj48cGF0aCBkPSJtMTIgMiAzLjEgNi4zIDYuOSAxLTUgNC45IDEuMiA2LjhMMTIgMTcuOCA1LjggMjFsMS4yLTYuOC01LTQuOSA2LjktMXoiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjU2LjIgMTU1LjIpIHJvdGF0ZSgtMjAgMTEuOSAxMS45KSBzY2FsZSgwLjk5KSI+PHBhdGggZD0iTTQgMjBoMTZhMiAyIDAgMCAwIDItMlY4YTIgMiAwIDAgMC0yLTJoLThsLTItM0g0YTIgMiAwIDAgMC0yIDJ2MTNhMiAyIDAgMCAwIDIgMloiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTYuOSAyMTAuOCkgcm90YXRlKDMgMTIuNCAxMi40KSBzY2FsZSgxLjAzKSI+PHBhdGggZD0iTTYgOGE2IDYgMCAwIDEgMTIgMGMwIDcgMyA5IDMgOUgzczMtMiAzLTkiLz48cGF0aCBkPSJNMTAuMyAyMWExLjkgMS45IDAgMCAwIDMuNCAwIi8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDU2LjIgMjEyLjgpIHJvdGF0ZSgyOCAxMS4yIDExLjIpIHNjYWxlKDAuOTQpIj48cGF0aCBkPSJNMTkgMTRjMS41LTEuNSAzLTMuMiAzLTUuNUE1LjUgNS41IDAgMCAwIDE2LjUgM2MtMS44IDAtMyAuNS00LjUgMi0xLjUtMS41LTIuNy0yLTQuNS0yQTUuNSA1LjUgMCAwIDAgMiA4LjVjMCAyLjMgMS41IDQgMyA1LjVsNyA3WiIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDcuMiAyMTIuNSkgcm90YXRlKDE3IDExLjMgMTEuMykgc2NhbGUoMC45NCkiPjxwYXRoIGQ9Im0yMiAyLTcgMjAtNC05LTktNFoiLz48cGF0aCBkPSJNMjIgMiAxMSAxMyIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjEuMiAyMTAuMikgcm90YXRlKC0xNCAxMi4zIDEyLjMpIHNjYWxlKDEuMDIpIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI0Ii8+PHBhdGggZD0iTTE2IDh2NWEzIDMgMCAwIDAgNiAwdi0xYTEwIDEwIDAgMSAwLTQgOCIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMDguNCAyMDguOSkgcm90YXRlKC0xNCAxMC4zIDEwLjMpIHNjYWxlKDAuODYpIj48cGF0aCBkPSJNOSAxOGg2TTEwIDIyaDQiLz48cGF0aCBkPSJNMTIgMmE3IDcgMCAwIDAtNCAxMi43Yy42LjUgMSAxLjMgMSAyLjNoNmMwLTEgLjQtMS44IDEtMi4zQTcgNyAwIDAgMCAxMiAyWiIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNTYuMSAyMjAuOCkgcm90YXRlKC0xMCAxMC4xIDEwLjEpIHNjYWxlKDAuODUpIj48cGF0aCBkPSJNNC41IDE2LjVjLTEuNSAxLjMtMiA1LTIgNXMzLjctLjUgNS0yYy43LS44LjctMi4xLS4xLTIuOWEyLjIgMi4yIDAgMCAwLTIuOS0uMVoiLz48cGF0aCBkPSJtMTIgMTUtMy0zYTIyIDIyIDAgMCAxIDItNEExMi45IDEyLjkgMCAwIDEgMjIgMmMwIDIuNy0uOCA3LjUtNiAxMWEyMi40IDIyLjQgMCAwIDEtNCAyWiIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1LjQgMjYyLjgpIHJvdGF0ZSg4IDEwLjcgMTAuNykgc2NhbGUoMC44OSkiPjxwYXRoIGQ9Ik0xNyA4aDFhNCA0IDAgMSAxIDAgOGgtMSIvPjxwYXRoIGQ9Ik0zIDhoMTR2OWE0IDQgMCAwIDEtNCA0SDdhNCA0IDAgMCAxLTQtNFoiLz48cGF0aCBkPSJNNiAydjJNMTAgMnYyTTE0IDJ2MiIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1OS42IDI1Ni4xKSByb3RhdGUoMTEgMTIuMiAxMi4yKSBzY2FsZSgxLjAxKSI+PHBhdGggZD0iTTMgM3YxOGgxOCIvPjxwYXRoIGQ9Im0xOSA5LTUgNS00LTQtMyAzIi8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDExNi44IDI2OC4zKSByb3RhdGUoMjcgMTEuMCAxMS4wKSBzY2FsZSgwLjkxKSI+PHBhdGggZD0iTTEyIDIwaDkiLz48cGF0aCBkPSJNMTYuNSAzLjVhMi4xIDIuMSAwIDAgMSAzIDNMNyAxOWwtNCAxIDEtNFoiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTY4LjAgMjY5LjcpIHJvdGF0ZSgtMyAxMi4wIDEyLjApIHNjYWxlKDEuMDApIj48cGF0aCBkPSJNMTQuNSA0aC01TDcgN0g0YTIgMiAwIDAgMC0yIDJ2OWEyIDIgMCAwIDAgMiAyaDE2YTIgMiAwIDAgMCAyLTJWOWEyIDIgMCAwIDAtMi0yaC0zeiIvPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTMiIHI9IjMiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjEyLjEgMjYyLjApIHJvdGF0ZSgtMyAxMS4wIDExLjApIHNjYWxlKDAuOTIpIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIvPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjYiLz48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIyIi8+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1Ni45IDI1Ny4wKSByb3RhdGUoLTE4IDEwLjIgMTAuMikgc2NhbGUoMC44NSkiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTggMTRzMS41IDIgNCAyIDQtMiA0LTIiLz48cGF0aCBkPSJNOSA5aC4wMU0xNSA5aC4wMSIvPjwvZz48L2c+PGcgZmlsbD0iIzJmNGEzZiIgb3BhY2l0eT0iLjA3Ij48Y2lyY2xlIGN4PSIzMyIgY3k9IjE4MCIgcj0iMS4yIi8+PGNpcmNsZSBjeD0iMzEiIGN5PSIxNzAiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjE2MSIgY3k9IjI4NSIgcj0iMS4yIi8+PGNpcmNsZSBjeD0iMTg0IiBjeT0iMjEiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjYyIiBjeT0iMTEzIiByPSIxLjIiLz48Y2lyY2xlIGN4PSIxOTAiIGN5PSIyODciIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjE4MSIgY3k9IjE0MiIgcj0iMS4yIi8+PGNpcmNsZSBjeD0iMzUiIGN5PSIxNDYiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjI5MyIgY3k9IjE0NCIgcj0iMS4yIi8+PGNpcmNsZSBjeD0iOTQiIGN5PSI0MyIgcj0iMS4yIi8+PGNpcmNsZSBjeD0iMjI1IiBjeT0iMjIyIiByPSIxLjIiLz48Y2lyY2xlIGN4PSIxNDQiIGN5PSIyMDgiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjE1NSIgY3k9IjYyIiByPSIxLjIiLz48Y2lyY2xlIGN4PSIyODYiIGN5PSIxMDkiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjIwNyIgY3k9IjI3NCIgcj0iMS4yIi8+PGNpcmNsZSBjeD0iMjI3IiBjeT0iODkiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjE5MyIgY3k9IjI3IiByPSIxLjIiLz48Y2lyY2xlIGN4PSIyNTQiIGN5PSIxNTYiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjI3MiIgY3k9IjEwNyIgcj0iMS4yIi8+PGNpcmNsZSBjeD0iNjciIGN5PSIxNjIiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjE1MSIgY3k9IjE5MSIgcj0iMS4yIi8+PGNpcmNsZSBjeD0iMTg0IiBjeT0iMjM3IiByPSIxLjIiLz48L2c+PC9zdmc+"); }
.chat { background-color: #efeae2; background-image: var(--wall), linear-gradient(180deg, #f3efe8, #ebe6dd); background-size: 300px 300px, 100% 100%; }
.chat::before { display: none; }
.chat-bar { background: rgba(248, 246, 241, .82); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.day { background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink-2); box-shadow: 0 1px 1px rgba(0, 0, 0, .06); letter-spacing: .01em; }
.bubble { position: relative; border: 0; box-shadow: 0 1px 1px rgba(20, 25, 22, .07), 0 6px 18px -10px rgba(20, 25, 22, .18); }
.msg:not(.mine) .bubble { border-radius: 4px 18px 18px 18px; }
.msg.mine .bubble { border-radius: 18px 4px 18px 18px; background: linear-gradient(180deg, #e3f5e9, #d9f0e1); }
/* WhatsApp-style tails at the top corner */
.msg:not(.mine) .bubble::before { content: ""; position: absolute; top: 0; left: -7px; width: 8px; height: 12px; background: var(--surface); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.msg.mine .bubble::before { content: ""; position: absolute; top: 0; right: -7px; width: 8px; height: 12px; background: #e3f5e9; clip-path: polygon(0 0, 100% 0, 0 100%); }
.msg { align-items: flex-start; }
.msg > .avatar { margin: 0; }
.msg.enter { animation: msgIn .38s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.composer { background: transparent; border-top: 0; }
.composer-in { margin: 0 auto 12px; width: calc(100% - 28px); max-width: 820px; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-radius: 20px; box-shadow: 0 1px 2px rgba(20, 25, 22, .06), 0 12px 32px -14px rgba(20, 25, 22, .28); border: 1px solid rgba(255, 255, 255, .7); }

/* Opening a message from anywhere: it's centred, everything else dims for a beat, and it pulses in your colour. */
.msgs .msg { transition: opacity .35s ease, filter .35s ease; }
.msgs.spot .msg:not(.flash) { opacity: .28; filter: saturate(.6); }
.msg.flash .bubble { animation: msgFlash 1.7s cubic-bezier(.2, .8, .2, 1) both; z-index: 1; }
.msg.flash .bubble::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: color-mix(in srgb, var(--mepc, #13795b) 16%, transparent); animation: msgTint 1.7s ease-out both; }
@keyframes msgFlash {
  0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--mepc, #13795b) 0%, transparent); }
  14% { transform: scale(1.03); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mepc, #13795b) 55%, transparent), 0 18px 40px -16px color-mix(in srgb, var(--mepc, #13795b) 60%, transparent); }
  30% { transform: scale(1); }
  48% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mepc, #13795b) 40%, transparent); }
  100% { transform: scale(1); box-shadow: 0 1px 1px rgba(20, 25, 22, .07), 0 6px 18px -10px rgba(20, 25, 22, .18); }
}
@keyframes msgTint { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .msg.enter, .msg.flash .bubble { animation: none; } .msg.flash .bubble { box-shadow: 0 0 0 3px var(--mepc, #13795b); } }

/* ---------- Files: drag to move, menus, picker ---------- */
.wallet { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.wallet:hover { transform: translateY(-2px); }
.w-drop { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: color-mix(in srgb, hsl(var(--h) 70% 45%) 88%, transparent); opacity: 0; transform: scale(.96); transition: opacity .15s, transform .15s; pointer-events: none; z-index: 3; }
.dragging-file .wallet .w-body { outline: 1.5px dashed rgba(255, 255, 255, .0); }
.dragging-file .wallet { opacity: .92; }
.wallet.drop-on { transform: translateY(-4px) scale(1.02); }
.wallet.drop-on .w-drop { opacity: 1; transform: none; }
.wallet.drop-on .w-cards i:first-child { transform: translateY(-12px) rotate(-6deg); }
.bc a.drop-on { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.wallet.flash .w-body { animation: walletFlash 1.6s ease-out both; }
@keyframes walletFlash { 0%, 30% { box-shadow: 0 0 0 4px color-mix(in srgb, hsl(var(--h) 70% 55%) 70%, transparent), 0 20px 40px -18px hsl(var(--h) 70% 40%); } 100% { box-shadow: none; } }
.files-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 2px 10px; font-weight: 650; font-size: 13.5px; }
.files-h .small { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.card.files { overflow: hidden; }
.card.files .file { transition: background .15s, opacity .15s; }
.file[draggable] { cursor: grab; }
.file[draggable]:active { cursor: grabbing; }
.file.dragging { opacity: .45; }
.file .grip { color: var(--ink-3); opacity: 0; transition: opacity .15s; margin-right: -4px; display: grid; }
.file:hover .grip { opacity: .7; }
@media (hover: none) { .file .grip { display: none; } }
.ftree { display: flex; flex-direction: column; gap: 2px; }
.ft-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 550; padding: 9px 12px 9px calc(12px + var(--d) * 22px); border-radius: 10px; cursor: pointer; color: var(--ink); }
.ft-row svg { color: var(--brand); flex: none; }
.ft-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-row small { color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.ft-row:hover:not([disabled]) { background: var(--hover); }
.ft-row[disabled] { opacity: .55; cursor: default; }

/* ================= Uploads, media, storage, deadlines ================= */
/* Upload tray */
.tray { position: fixed; right: 18px; bottom: 18px; z-index: 130; width: min(340px, calc(100vw - 36px)); background: rgba(22, 24, 28, .92); color: #fff; border-radius: 16px; padding: 12px 14px 8px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: rise .3s cubic-bezier(.2, .8, .2, 1) both; }
.tray-h { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; }
.tray-h b { font-size: 13.5px; }
.tray-h small { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.tray-r { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 0 9px; font-size: 12.5px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tray-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-p { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; flex: none; }
.tray-r i { position: absolute; left: 0; bottom: 3px; height: 3px; width: var(--p); border-radius: 3px; background: linear-gradient(90deg, #3ecf8e, #8ff0c0); transition: width .25s ease; }
.tray-r.ok .tray-p { color: #8ff0c0; }
.tray-r.err .tray-p { color: #ff9b9b; }
.tray-r.err i { background: #ff6b6b; }

/* Drop files on the chat */
.chat-drop { position: absolute; inset: 10px; z-index: 5; border-radius: 22px; border: 2px dashed color-mix(in srgb, var(--brand) 70%, transparent); background: rgba(236, 247, 241, .88); backdrop-filter: blur(4px); display: none; place-items: center; text-align: center; pointer-events: none; }
.chat.dropping .chat-drop { display: grid; animation: fadeIn .15s both; }
.chat-drop div { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--brand); }
.chat-drop svg { width: 34px; height: 34px; }
.chat-drop b { font-size: 17px; }
.chat-drop span { font-size: 13px; color: var(--ink-2); }
.ctag.thumb { padding-left: 3px; }
.ctag.thumb img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }

/* Images in messages */
.media { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; margin-bottom: 6px; max-width: 420px; }
.media.n1 { grid-template-columns: 1fr; }
.media.n2 { grid-template-columns: 1fr 1fr; }
.media.n3 { grid-template-columns: 1fr 1fr; }
.media.n3 .media-i:first-child { grid-column: 1 / -1; }
.media.n4 { grid-template-columns: 1fr 1fr; }
.media-i { position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in; background: #e8e5de; aspect-ratio: 4 / 3; overflow: hidden; }
.media.n1 .media-i { aspect-ratio: auto; max-height: 360px; }
.media-i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.media.n1 .media-i img { height: auto; max-height: 360px; }
.media-i:hover img { transform: scale(1.03); }
.mi-name { display: none; }
.media-i.broken { display: grid; place-items: center; aspect-ratio: 4 / 3; }
.media-i.broken img { display: none; }
.media-i.broken .mi-name { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 10px; }
.media-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 22px; font-weight: 700; }

/* Full-screen image viewer */
.lb { position: fixed; inset: 0; z-index: 150; background: rgba(10, 11, 13, .94); display: flex; flex-direction: column; animation: fadeIn .18s both; }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: #fff; }
.lb-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-top small { color: rgba(255, 255, 255, .55); font-size: 12px; }
.lb-top small .mention.me { background: rgba(255, 255, 255, .12); }
.lb-x { color: #fff; }
.lb-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 28px; position: relative; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -30px #000; animation: pop .22s cubic-bezier(.2, .8, .2, 1) both; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-nav.l { left: 12px; }
.lb-nav.r { right: 12px; transform: translateY(-50%) rotate(180deg); }
@media (max-width: 640px) { .lb-stage { padding: 0 8px 20px; } .lb-nav { display: none; } }

/* Storage meter (Drive) */
.usage { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.usage.slim { padding: 10px 12px; margin: 0; background: var(--surface-2); box-shadow: none; }
.u-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.u-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.u-main b { font-size: 13.5px; }
.u-main small { font-size: 12px; color: var(--ink-3); }
.u-acc { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.u-acc small { font-size: 12px; color: var(--ink-2); }
.u-bar { height: 8px; border-radius: 8px; background: #ecebe6; overflow: hidden; }
.u-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #2c63d6, #5b8def); transform-origin: left; animation: growX 1.1s cubic-bezier(.3, .6, .2, 1) both; }
@keyframes growX { from { transform: scaleX(0); } }
.u-bar.hot i { background: linear-gradient(90deg, #d8572e, #e5484d); }

/* Deadlines at a glance */
.dash-grid.admin { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .dash-grid.admin { grid-template-columns: 1fr; } }
.panel.dl .panel-h h3, .panel.tlp .panel-h h3 { display: inline-flex; align-items: center; gap: 8px; }
.panel.dl .seg-mini button .n { color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.panel.dl .seg-mini button.red .n { color: var(--danger); }
.dl-list { display: flex; flex-direction: column; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.dl-row + .dl-row { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.dl-row:hover { background: var(--hover); }
.dl-when { flex: none; width: 92px; font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dl-when.over { color: var(--danger); }
.dl-when.soon { color: var(--warn); }
.dl-main { flex: 1; min-width: 0; }
.dl-t { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-m { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: 2px; min-width: 0; }
.dl-who { flex: none; }
.tlp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; transition: background .15s; }
.tlp-row + .tlp-row { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.tlp-row:hover { background: var(--hover); }
.tlp-row .plogo { --s: 30px; border-radius: 9px; font-size: 11px; }
.tlp-n { display: flex; flex-direction: column; min-width: 0; }
.tlp-n b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlp-n small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlp-n em { font-style: normal; color: var(--danger); font-weight: 700; }
.tlp-m .mtl-leg { display: none; }
.tlp-m .mtl-rail { margin: 0 6px; }
@media (max-width: 640px) { .dl-when { width: 70px; } .dl-who { display: none; } .tlp-row { grid-template-columns: auto minmax(0, 1fr); } .tlp-m { grid-column: 1 / -1; } }

/* ================= Premium pass ================= */
:root {
  --bg: #f4f3ee;
  --line: #e9e7e0;
  --shadow-sm: 0 1px 2px rgba(28, 25, 20, .05);
  --shadow: 0 1px 1px rgba(28, 25, 20, .03), 0 2px 4px rgba(28, 25, 20, .03), 0 12px 32px -18px rgba(28, 25, 20, .18);
  --shadow-lg: 0 30px 70px -20px rgba(28, 25, 20, .28), 0 2px 8px rgba(28, 25, 20, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
body { font-feature-settings: "ss01", "cv11"; }
.content { background: radial-gradient(1200px 380px at 70% -120px, rgba(19, 121, 91, .06), transparent 70%), var(--bg); }
.page-head h1 { font-size: 32px; font-weight: 620; letter-spacing: -.038em; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 700; color: var(--ink-3); }

/* Surfaces */
.card { border-color: rgba(28, 25, 20, .07); box-shadow: var(--shadow); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s; }
.card.panel { border-radius: 18px; }
.panel-h h3 { font-size: 15px; font-weight: 640; letter-spacing: -.015em; }
a.card:hover, .tile[href]:hover, .folder-card:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(28, 25, 20, .03), 0 18px 40px -20px rgba(28, 25, 20, .28); }

/* Stat tiles: calmer labels, confident numbers */
.tile { position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, rgba(19, 121, 91, .0), rgba(19, 121, 91, .35), rgba(19, 121, 91, 0)); opacity: 0; transition: opacity .25s; }
.tile:hover::after { opacity: 1; }
.tile-l { text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.tile-n { font-size: 34px; font-weight: 600; letter-spacing: -.045em; }
.tile.bad .tile-n { color: var(--danger); }
.tile.good .tile-n { color: var(--brand); }

/* Buttons */
.btn { transition: background .15s, border-color .15s, box-shadow .2s, transform .08s; }
.btn.dark { background: linear-gradient(180deg, #2a2d33, #16181c); border-color: #16181c; }
.btn.dark:hover { background: linear-gradient(180deg, #33363d, #1d2025); }
.btn.green { background: linear-gradient(180deg, #179067, #11704f); border-color: #11704f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(17, 112, 79, .3), 0 6px 16px -8px rgba(17, 112, 79, .6); }
.btn.green:hover { background: linear-gradient(180deg, #1a9a6e, #127a56); }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible, a:focus-visible, .nav-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg-mini { background: #ebe9e3; box-shadow: inset 0 1px 2px rgba(28, 25, 20, .06); }
.seg-mini button { transition: background .15s, color .15s, box-shadow .15s; }
.seg-mini button.on { box-shadow: 0 1px 2px rgba(28, 25, 20, .12), 0 0 0 .5px rgba(28, 25, 20, .06); }
.chip.toggle { transition: background .15s, color .15s, border-color .15s; }

/* Sidebar */
.side { background: linear-gradient(180deg, #f1f0ea, #ecebe4); }
.nav-item { position: relative; transition: background .15s, color .15s; }
.nav-item.on { box-shadow: 0 1px 2px rgba(28, 25, 20, .08), 0 0 0 .5px rgba(28, 25, 20, .06); }
.nav-item.on::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.app.side-mini:not(.side-peek) .nav-item.on::before { left: -8px; }
.brand .mark { background: linear-gradient(145deg, #1b9c73, #0f6a4f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px -4px rgba(15, 106, 79, .6); }
.count.hot { background: linear-gradient(180deg, #179067, #11704f); }

/* Tables */
.mini-table th, .ledger th, .ttable th { text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.mini-table tbody tr, .ledger tbody tr { transition: background .15s; }

/* Toasts, modals, menus */
.toast { background: rgba(22, 24, 28, .94); backdrop-filter: blur(10px); border-radius: 999px; padding: 10px 18px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .45); }
.toast.err { background: rgba(201, 54, 46, .96); }
.modal-bg { background: rgba(22, 24, 28, .38); backdrop-filter: blur(6px) saturate(1.1); }
.modal { border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(28, 25, 20, .05); }
.menu { border-radius: 14px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .35), 0 0 0 1px rgba(28, 25, 20, .06); animation: pop .14s var(--ease); }

/* Inputs */
.input { transition: border-color .15s, box-shadow .2s, background .15s; }
.input:hover:not(:focus) { border-color: #d3d0c7; }
.input:focus { box-shadow: 0 0 0 4px rgba(19, 121, 91, .12); }

/* Page entrance: content rises in gently */
.page > * { animation: rise .45s var(--ease) both; }
.page > *:nth-child(2) { animation-delay: .04s; } .page > *:nth-child(3) { animation-delay: .08s; } .page > *:nth-child(4) { animation-delay: .12s; } .page > *:nth-child(5) { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .page > *, .card, .btn, .nav-item { animation: none !important; transition: none !important; } }
.panel.dl .panel-h { align-items: center; }
.panel.dl .seg-mini { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.panel.dl .seg-mini::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ================= Dashboard & board, premium ================= */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l r" "f f"; gap: 18px 28px; align-items: center; padding: 26px 28px 22px; margin-bottom: 18px; border-radius: 22px; color: #f4f4f2;
  background: radial-gradient(600px 240px at 0% -20%, rgba(38, 190, 132, .35), transparent 70%), radial-gradient(520px 260px at 100% 120%, rgba(120, 90, 230, .28), transparent 70%), #131519;
  box-shadow: 0 30px 60px -34px rgba(19, 21, 25, .7), 0 0 0 1px rgba(255, 255, 255, .04) inset; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero > * { position: relative; z-index: 1; }
.hero-l { grid-area: l; min-width: 0; }
.hero .eyebrow { color: rgba(255, 255, 255, .5); }
.hero h1 { font-size: 34px; font-weight: 620; letter-spacing: -.04em; color: #fff; margin-top: 6px; }
.hero h1 .mention.me { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; }
.hero-sum { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .72); max-width: 60ch; }
.hero-sum b { color: #fff; font-weight: 650; }
.hero-sum b.red { color: #ff9b9e; }
.hero-sum span { color: rgba(255, 255, 255, .55); }
.hero-note { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.hero-r { grid-area: r; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ring { width: 76px; height: 76px; flex: none; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 8; }
.ring-fg { fill: none; stroke: #6ee7b7; stroke-width: 8; stroke-linecap: round; animation: ringIn 1.2s cubic-bezier(.3, .6, .2, 1) both; }
.ring-fg.mid { stroke: #fbbf5a; }
.ring-fg.low { stroke: #ff8a8e; }
@keyframes ringIn { from { stroke-dasharray: 0 999; } }
.ring-l { display: flex; flex-direction: column; line-height: 1.2; }
.ring-l b { font-size: 26px; font-weight: 650; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.ring-l span { font-size: 12.5px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.ring-l small { font-size: 11.5px; color: rgba(255, 255, 255, .45); margin-top: 4px; }
.hero-f { grid-area: f; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-f .input { background-color: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: #fff; width: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.hero-f .input:hover { border-color: rgba(255, 255, 255, .25); }
.hero-f .input option { color: var(--ink); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; grid-template-areas: "l" "r" "f"; padding: 20px 18px; } .hero h1 { font-size: 26px; } .hero-r { justify-self: start; } }

.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { --tc: var(--brand); padding: 16px 18px 14px; min-height: 132px; }
.tile.t-blue { --tc: #2c63d6; } .tile.t-red { --tc: #d8433a; } .tile.t-amber { --tc: #c98a12; } .tile.t-green { --tc: #13795b; }
.tile-top { display: flex; align-items: center; gap: 10px; }
.tile-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--tc); background: color-mix(in srgb, var(--tc) 11%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 16%, transparent); }
.tile .tile-n { margin-top: 12px; }
.tile::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tc) 55%, transparent), transparent); }
.spark { position: absolute; right: 14px; bottom: 14px; width: 110px; height: 34px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--tc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark polygon { fill: color-mix(in srgb, var(--tc) 12%, transparent); }
@media (max-width: 640px) { .spark { width: 70px; } .tile { min-height: 116px; } }

/* Chart bars */
.bar-stack { width: min(26px, 64%); border-radius: 7px 7px 3px 3px; overflow: hidden; gap: 0; box-shadow: 0 6px 14px -8px rgba(19, 121, 91, .6); }
.bar-stack i.ok { background: linear-gradient(180deg, #2bb383, #13795b); }
.bar-stack i.late { background: linear-gradient(180deg, #f0b64a, #d18f18); }
.bar-stack { transform-origin: bottom; animation: barUp .9s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes barUp { from { transform: scaleY(0); } }

/* Board */
.board { gap: 16px; scroll-snap-type: x proximity; padding-bottom: 28px; }
.bcol { scroll-snap-align: start; flex: 0 0 300px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(28, 25, 20, .06); border-radius: 20px; padding: 0 10px 10px; box-shadow: 0 1px 2px rgba(28, 25, 20, .04); position: relative; overflow: hidden; }
.bcol::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pc, var(--line-2)); opacity: .85; }
.bcol.status.st-open { --pc: #2c63d6; } .bcol.status.st-over { --pc: #d8433a; } .bcol.status.st-done { --pc: #13795b; }
.bcol-h { position: sticky; top: 0; z-index: 2; margin: 0 -10px 8px; padding: 14px 14px 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--pc, #999) 7%, #fbfaf7), #fbfaf7); border-bottom: 1px solid rgba(28, 25, 20, .05); }
.bcol-h b { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.bcol.status .bcol-h b { color: var(--pc); }
.bcount { background: #fff; box-shadow: 0 0 0 1px rgba(28, 25, 20, .08); }
.ring-av { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--pc) calc(var(--p) * 1%), rgba(28, 25, 20, .08) 0); }
.ring-av::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fbfaf7; }
.ring-av .avatar { position: relative; --s: 30px; }
.bnote { background: var(--danger-soft); color: var(--danger); border-radius: 8px; padding: 4px 8px; margin: 0 2px 8px; display: inline-block; font-size: 11.5px; }
.bcards { gap: 10px; }
.bcard { border-radius: 14px; padding: 12px 13px; gap: 8px; box-shadow: 0 1px 1px rgba(28, 25, 20, .05), 0 0 0 1px rgba(28, 25, 20, .05); transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; overflow: hidden; }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(28, 25, 20, .3), 0 0 0 1px rgba(28, 25, 20, .06); }
.bcard.over { box-shadow: inset 3px 0 0 var(--danger), 0 1px 1px rgba(28, 25, 20, .05), 0 0 0 1px rgba(28, 25, 20, .05); }
.bcover { margin: -12px -13px 2px; height: 128px; overflow: hidden; background: #ebe8e1; }
.bcover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.bcard:hover .bcover img { transform: scale(1.04); }
.bf { padding-top: 8px; border-top: 1px dashed rgba(28, 25, 20, .08); }
.bfrom { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.bfrom .avatar { --s: 20px; font-size: 8.5px; box-shadow: none; }
.bdiv { display: flex; align-items: center; gap: 8px; }
.bdiv::after { content: ""; flex: 1; height: 1px; background: rgba(28, 25, 20, .08); }
.board-bar .seg-mini { background: #ebe9e3; }
.bcard, .bcover { flex-shrink: 0; }


/* ================= Round 7: priorities, checklists, approvals, reactions, pins, search, AI ================= */
.page.wide { max-width: 1320px; }
.red { color: var(--danger); }

/* Priority */
.prio { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; padding: 1px 7px 1px 5px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; margin-right: 6px; }
.prio .i { width: 11px; height: 11px; }
.prio.high { background: #fff1dc; color: #b25e00; }
.prio.urgent { background: #fde4e2; color: #c42b22; box-shadow: inset 0 0 0 1px #f6bdb8; }
.bhead .prio { margin-right: 0; }
.msg.p-urgent .bubble { box-shadow: inset 3px 0 0 #e5484d, var(--shadow-sm); }
.msg.p-high .bubble { box-shadow: inset 3px 0 0 #f59e0b, var(--shadow-sm); }
.msg.mine.p-urgent .bubble { box-shadow: inset -3px 0 0 #e5484d, var(--shadow-sm); }
.msg.mine.p-high .bubble { box-shadow: inset -3px 0 0 #f59e0b, var(--shadow-sm); }
.dir.all { background: #efe9ff; color: #6d3fd6; box-shadow: inset 0 0 0 1px #dccfff; }
.dir.all .i { width: 11px; height: 11px; }
.pinned-ic { color: var(--ink-3); display: inline-flex; }
.pinned-ic .i { width: 12px; height: 12px; }

/* @everyone and #labels */
.mention.all { color: #6d3fd6; background: #efe9ff; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.hashtag { display: inline-block; font-weight: 600; font-size: .92em; padding: 0 7px; border-radius: 6px; cursor: pointer; color: hsl(var(--h) 55% 32%); background: hsl(var(--h) 70% 94%); transition: background .15s; }
.hashtag:hover { background: hsl(var(--h) 70% 88%); }
.chat-bar .chip.hashtag-f { background: hsl(var(--h) 55% 38%); padding: 0 4px 0 10px; }
.mopt.all .avatar.all { --s: 30px; background: #efe9ff; color: #6d3fd6; display: grid; place-items: center; box-shadow: none; }
.ctag.all { background: #efe9ff; color: #6d3fd6; padding-right: 10px; }
.ctag.prio-t.high { background: #fff1dc; color: #b25e00; }
.ctag.prio-t.urgent { background: #fde4e2; color: #c42b22; }
.ctag.rv-t { background: #e6f0ff; color: #2c63d6; }

/* Checklist inside a message */
.cklist { margin: 8px 0 2px; padding: 10px 12px 8px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 12px; }
.msg.mine .cklist { background: rgba(255, 255, 255, .6); }
.ck-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ck-h span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.ck-bar { flex: 1; height: 5px; background: var(--hover); border-radius: 9px; overflow: hidden; }
.ck-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1a9a73, #13795b); border-radius: 9px; transition: width .35s ease; }
.ck-h b { font-variant-numeric: tabular-nums; color: var(--ink); }
.ck { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 13.5px; }
.ck-box { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.6px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: transparent; padding: 0; transition: all .15s; }
.ck-box .i { width: 12px; height: 12px; stroke-width: 3; }
.ck-box:hover:not([disabled]) { border-color: var(--brand); }
.ck-box[disabled] { cursor: default; }
.ck.on .ck-box { background: var(--brand); border-color: var(--brand); color: #fff; animation: ckpop .25s ease; }
.ck.on .ck-t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
.ck-t { flex: 1; min-width: 0; }
.ck-by { font-size: 11px; font-weight: 650; color: var(--pc); }
.ck-rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 16px; line-height: 1; opacity: 0; padding: 0 4px; }
.ck:hover .ck-rm { opacity: 1; }
.ck-add { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 4px 0 0; }
.cklist.static { background: var(--surface-2); margin-top: 6px; }
@keyframes ckpop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.ckc { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.ckc.all { color: var(--ok); }
.ckc .i { width: 12px; height: 12px; }
.mt .ckc { margin-left: 4px; }

/* Client approval */
.rv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 2px; padding: 9px 12px; border-radius: 12px; font-size: 13px; }
.rv > .i { flex: none; }
.rv > span:not(.rv-acts) { flex: 1; min-width: 180px; }
.rv em { display: block; font-style: normal; color: var(--ink-2); margin-top: 2px; }
.rv.pending { background: #eef4ff; color: #2c4f9e; border: 1px dashed #b9cdf5; }
.rv.ok { background: var(--ok-soft); color: var(--ok); }
.rv.changes { background: var(--warn-soft); color: #8a5a06; }
.rv-acts { display: flex; gap: 6px; margin-left: auto; }
.rv-mini { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.rv-mini.pending { background: #eef4ff; color: #2c4f9e; }
.rv-mini.approved { background: var(--ok-soft); color: var(--ok); }
.rv-mini.changes { background: var(--warn-soft); color: #8a5a06; }
.btags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }

/* Reactions */
.rxs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.rx { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 14px; transition: transform .12s; }
.rx b { font-size: 11.5px; color: var(--ink-2); font-weight: 650; }
.rx:hover { transform: translateY(-1px); }
.rx.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, #fff); }
.rx.on b { color: var(--brand); }
.rx-pick { display: flex; gap: 2px; }
.menu .rx-pick button { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 20px; border-radius: 10px; transition: transform .12s; }
.menu .rx-pick button:hover { transform: scale(1.22); background: var(--hover); }
.menu-sec { font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 3px; }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu button.on { color: var(--brand); font-weight: 650; }

/* Chat top: filters + search + catch up, pinned bar */
.chat-top { display: flex; align-items: center; gap: 8px; background: rgba(246, 245, 241, .92); border-bottom: 1px solid var(--line); flex: none; position: relative; z-index: 1; }
.chat-top .chat-bar { flex: 1; min-width: 0; border-bottom: 0; background: none; }
.chat-tools { display: flex; align-items: center; gap: 6px; padding-right: 14px; flex: none; }
.csearch { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-3); width: 190px; transition: width .2s, border-color .2s; }
.csearch:focus-within { width: 250px; border-color: var(--brand); }
.csearch input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 13px; color: var(--ink); }
.ai-btn { background: linear-gradient(135deg, #f3ecff, #e8f5ff); border: 1px solid #ddd0fb; color: #5b34c8; font-weight: 650; }
.ai-btn:hover { background: linear-gradient(135deg, #ebe0ff, #dcefff); border-color: #c9b5f7; }
.ai-btn .i { color: #7c4dff; }
.pinbar { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: #fffdf5; border-bottom: 1px solid #f1e6c4; flex: none; position: relative; z-index: 1; }
.pin-ic { color: #b7770b; display: inline-flex; }
.pin-t { flex: 1; min-width: 0; text-align: left; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; padding: 2px 0; }
.pin-t small { font-size: 10.5px; font-weight: 700; color: #b7770b; text-transform: uppercase; letter-spacing: .05em; }
.pin-t span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinbar .icon-btn { width: 30px; height: 30px; }
@media (max-width: 900px) {
  .chat-top { flex-wrap: wrap; gap: 0; }
  .chat-top .chat-bar { flex-basis: 100%; }
  .chat-tools { width: 100%; padding: 0 12px 8px; }
  .csearch, .csearch:focus-within { flex: 1; width: auto; }
  .ai-btn span { display: none; }
}

/* Composer extras */
.comp-row .c-ai .i { color: #7c4dff; }
.comp-row .c-ai.busy .i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) { .comp-row .c-ai { display: none; } }
/* Phones: the message gets the full width, the buttons sit in a row underneath (send on the right). */
@media (max-width: 600px) {
  .comp-row { flex-wrap: wrap; row-gap: 6px; }
  .comp-row textarea { order: -1; flex: 1 0 100%; min-width: 0; }
  .comp-row .send { margin-left: auto; }
}
.pop-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; cursor: pointer; }
.pop-check:hover { background: var(--hover); }
.pop-check input { margin-top: 3px; accent-color: var(--brand); }
.pop-check small { display: block; color: var(--ink-3); font-size: 12px; }
.prio-c.high.on { background: #fff1dc; color: #b25e00; border-color: #f7d49a; }
.prio-c.urgent.on { background: #fde4e2; color: #c42b22; border-color: #f6bdb8; }
.prio-c .i { width: 11px; height: 11px; margin-right: 3px; }
#xpop { max-height: 380px; width: min(340px, calc(100% - 28px)); }

/* AI modals */
.ai-sug label, .ai-grid label { display: block; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 6px; }
.ai-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.ai-grid > div > div { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 28px; }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; gap: 0; } }
.ai-out h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #5b34c8; }
.ai-out h4:first-child { margin-top: 4px; }
.ai-out ul { margin: 0; padding-left: 18px; }
.ai-out li { margin: 4px 0; }
.ai-out p { margin: 6px 0; }
.ai-sub { margin-bottom: 12px; }
.ai-wait { display: flex; align-items: center; gap: 5px; color: var(--ink-3); padding: 18px 0; }
.ai-wait span { width: 7px; height: 7px; border-radius: 50%; background: #9b7bff; animation: aidot 1s infinite ease-in-out; }
.ai-wait span:nth-child(2) { animation-delay: .15s; }
.ai-wait span:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes aidot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ai-err { color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: 10px; }
.hero-ai { margin-top: 14px; }
.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; white-space: pre; }

/* Calendar */
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav b { min-width: 150px; text-align: center; font-size: 15px; }
.cal-nav .flip .i { transform: rotate(180deg); }
.cal { padding: 0; overflow: hidden; }
.cal-h { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-h span { padding: 9px 10px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-c { min-height: 112px; padding: 6px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: pointer; transition: background .15s; }
.cal-c:nth-child(7n) { border-right: 0; }
.cal-c:hover { background: var(--surface-2); }
.cal-c.off { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, .018) 6px 12px); cursor: default; }
.cal-c.sel { background: var(--brand-soft); }
.cal-d { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 650; color: var(--ink-2); padding: 1px 3px 3px; }
.cal-c.today .cal-d span { background: var(--brand); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.cal-i { display: block; font-size: 11.5px; font-weight: 550; line-height: 1.3; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: hsl(var(--h) 70% 95%); color: hsl(var(--h) 45% 28%); border-left: 3px solid hsl(var(--h) 55% 50%); }
.cal-i:hover { filter: brightness(.96); }
.cal-i.done { opacity: .55; text-decoration: line-through; }
.cal-i.over { background: var(--danger-soft); color: var(--danger); border-left-color: var(--danger); }
.cal-i.ms { background: #fff; border: 1px dashed hsl(var(--h) 45% 60%); border-left-width: 1px; }
.cal-i.p-urgent:not(.done) { box-shadow: inset 0 0 0 1px #f6bdb8; }
.cal-more { font-size: 11px; color: var(--ink-3); font-weight: 600; padding-left: 4px; }
.cal-list { margin-top: 16px; }
@media (max-width: 760px) {
  .cal-c { min-height: 64px; padding: 4px 3px; }
  .cal-i { font-size: 0; padding: 0; height: 6px; border-radius: 4px; border-left: 0; background: hsl(var(--h) 55% 55%); }
  .cal-i.over { background: var(--danger); }
  .cal-i.ms { height: 6px; background: none; border-style: dashed; }
  .cal-more { font-size: 10px; }
}

/* Workload */
.wl-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.wl-sum .card { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.wl-sum small { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.wl-sum b { font-size: 18px; letter-spacing: -.01em; }
.wl-sum span { font-size: 12.5px; color: var(--ink-2); }
.wl-sum em { font-style: normal; }
@media (max-width: 760px) { .wl-sum { grid-template-columns: 1fr; } }
.wl table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.wl th { font-size: 11px; font-weight: 700; color: var(--ink-3); padding: 10px 4px; text-align: center; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.wl th small { display: block; font-size: 10px; font-weight: 600; }
.wl th.we { color: #8f939b; }
.wl th.td { color: var(--brand); }
.wl th.wl-p, .wl td.wl-p { text-align: left; padding-left: 16px; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 200px; }
.wl th.wl-p { background: var(--surface-2); }
.wl td { padding: 4px; text-align: center; border-bottom: 1px solid var(--line); }
.wl tr:last-child td { border-bottom: 0; }
.wl-c { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 34px; height: 38px; border-radius: 8px; }
.wl-c[data-act] { cursor: pointer; }
.wl-c[data-act]:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.wl-c.h1 { background: #e3f4ec; color: #13795b; }
.wl-c.h2 { background: #bfe6d3; color: #0f6a4f; }
.wl-c.h3 { background: #fbe1a6; color: #8a5a06; }
.wl-c.h4 { background: #f7b4ad; color: #9c1d16; }
.wl-c.late { background: var(--danger-soft); color: var(--danger); }
.wl-c.x { color: var(--ink-2); }
.wl-t { font-weight: 750; padding-right: 16px !important; }
.wl-key { margin-top: 8px; }

/* Monthly report */
.rp-acts { display: flex; gap: 8px; }
.report { max-width: 880px; margin: 0 auto; padding: 44px 48px; }
.rp-h { display: flex; gap: 18px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.rp-h h2 { font-size: 28px; letter-spacing: -.03em; margin: 2px 0; }
.rp-h p { color: var(--ink-2); }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 8px; }
.rp-kpis div { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rp-kpis b { display: block; font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rp-kpis b small { font-size: 15px; color: var(--ink-3); }
.rp-kpis span { font-size: 12.5px; color: var(--ink-2); }
.report section { margin-top: 26px; }
.report h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 10px; }
.rp-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rp-t th { text-align: left; font-size: 11px; color: var(--ink-3); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.rp-t td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp-t td:first-child { white-space: nowrap; color: var(--ink-2); }
.rp-lb { color: var(--ink-3); font-size: 12px; }
.rp-ok { color: var(--ok); font-weight: 650; }
.rp-late { color: var(--warn); font-weight: 650; }
.rp-list { margin: 0; padding-left: 18px; }
.rp-list li { margin: 5px 0; }
.rp-ms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rp-m { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.rp-m span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.rp-m em { font-style: normal; font-size: 12px; font-weight: 650; }
.rp-m.ok em { color: var(--ok); } .rp-m.late em { color: var(--warn); } .rp-m.miss em { color: var(--danger); } .rp-m.up em { color: var(--blue); }
.rp-f { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); text-align: center; }
@media (max-width: 700px) { .report { padding: 24px 18px; } .rp-kpis { grid-template-columns: repeat(2, 1fr); } }
@media print {
  body { overflow: visible; background: #fff; }
  .side, .mtop, .no-print, .toasts, .scrim { display: none !important; }
  .app, .main, .content { display: block !important; height: auto !important; overflow: visible !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .report { box-shadow: none !important; border: 0 !important; padding: 0 !important; max-width: none; }
  .rp-kpis div, .rp-m { break-inside: avoid; }
  .rp-t tr { break-inside: avoid; }
}

/* Install */
.side-install { display: flex; align-items: center; gap: 9px; margin: 0 10px 8px; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .55); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.side-install:hover { background: #fff; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, #fff); }
@media (min-width: 901px) {
  .app.side-mini:not(.side-peek) .side-install { justify-content: center; margin: 0 8px 8px; padding: 9px 0; }
  .app.side-mini:not(.side-peek) .side-install .lbl { display: none; }
}
.install ol { padding-left: 20px; margin: 12px 0; }
.install li { margin: 8px 0; }
.page.still > *, .page.still .tile { animation: none; }
/* Phones: a file's buttons move under its name instead of squeezing it into a sliver. */
@media (max-width: 700px) {
  .file { flex-wrap: wrap; row-gap: 8px; padding: 12px 14px; }
  .file .nm { flex: 1 1 calc(100% - 60px); }
  .file .nm small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .file .nm + .btn, .file .nm + a.btn { margin-left: 44px; }
  .file .btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
}

/* ---------- Phones: no zoom-on-tap, panels as bottom sheets ---------- */
.pop-scrim { position: fixed; inset: 0; z-index: 88; background: rgba(23, 25, 28, .32); animation: fadeIn .15s both; }
@media (max-width: 759px) {
  /* iPhone Safari zooms the whole page into any text box under 16px and leaves it zoomed and shifted. */
  input, textarea, select, .input, .comp-row textarea, .csearch input { font-size: 16px !important; }
  html, body { max-width: 100%; overflow-x: hidden; }
  #dpop, #apop, #xpop {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none;
    max-height: 78dvh; overflow-y: auto; border-radius: 20px 20px 0 0; border: 0;
    padding: 10px 14px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(23, 25, 28, .22);
    animation: sheetUp .22s cubic-bezier(.2, .8, .2, 1) both;
  }
  #dpop::before, #apop::before, #xpop::before { content: ''; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 8px; }
  #dpop .pop-row, #apop .pop-row, #xpop .pop-row { flex-wrap: wrap; }
  #dpop .chip.toggle, #xpop .chip.toggle { height: 36px; padding: 0 14px; font-size: 14px; }
  #dpop input[type="date"], #dpop input[type="time"] { min-height: 46px; -webkit-appearance: none; appearance: none; background: var(--surface-2); text-align: left; }
  #dpop input[type="date"] { flex: 1 1 60% !important; }
  #dpop input[type="time"] { flex: 1 1 30%; width: auto !important; }
  #dpop .btn.dark, #apop .btn.dark { height: 44px; padding: 0 22px; font-size: 15px; }
  #dpop .pop-row:last-child .btn { flex: 1; justify-content: center; }
  #mpop { left: 8px; right: 8px; width: auto; }
  /* A blur on the message box would pin the sheet to the box instead of the screen. */
  .composer-in { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* ================= Round 9: slim banner, two chats, Progress ================= */
/* The banner is slim by default: one line, with the mini timeline. The arrow opens the full one. */
.phead.compact .phead-in { padding-top: 10px; }

/* Client chat / Team only */
.chan { display: flex; gap: 8px; padding: 10px 18px 0; background: rgba(246, 245, 241, .92); flex: none; position: relative; z-index: 1; }
.chan button { flex: 1; max-width: 300px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px 12px 0 0; border: 1px solid transparent; border-bottom: 0; background: transparent; cursor: pointer; text-align: left; color: var(--ink-2); position: relative; }
.chan button span { display: flex; flex-direction: column; min-width: 0; }
.chan button b { font-size: 13.5px; }
.chan button small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan button i { font-style: normal; margin-left: auto; min-width: 20px; height: 20px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.chan button:hover { background: rgba(255, 255, 255, .6); }
.chan button.on { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 -2px 8px rgba(23, 25, 28, .04); }
.chan button[data-v="team"].on { background: #fff8e8; border-color: #f1dfb0; }
.chan button[data-v="team"] .i { color: #b7770b; }
.team-chan .msgs { background-color: #f6efe0; }
.team-chan .chat-top { background: rgba(250, 243, 226, .95); }
.team-chan .composer-in { box-shadow: 0 0 0 2px #f1dfb0, 0 12px 32px -14px rgba(20, 25, 22, .28); }
.team-chan .comp-row textarea { background: #fffbf1; }
@media (max-width: 700px) { .chan { padding: 8px 10px 0; } .chan button small { display: none; } }

/* Progress */
.prog .pg-head { margin-bottom: 16px; }
.prog .pg-head h2 { font-size: 24px; letter-spacing: -.02em; margin: 2px 0 4px; }
.pg-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.pg-s { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: transform .15s, box-shadow .15s; text-decoration: none; color: inherit; }
.pg-s:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pg-s small { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.pg-s b { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pg-s b.sm { font-size: 20px; }
.pg-s b span { font-size: 14px; font-weight: 550; color: var(--ink-2); letter-spacing: 0; }
.pg-s em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.pg-s.hot { background: linear-gradient(135deg, #fff7e6, #fff); border-color: #f3d9a4; }
.pg-s.hot b { color: #a86a00; }
.pg-bar { display: block; height: 8px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1a9a73, #13795b); transition: width .5s ease; }
.pg-stack { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; background: var(--hover); }
.pg-stack i { display: block; height: 100%; }
.st0 { --c: #b9bcc2; } .st1 { --c: #8e4ec6; } .st2 { --c: #2c63d6; } .st3 { --c: #e09a13; } .st4 { --c: #13795b; }
.pg-stack i, .pg-pipe i.st0, .pg-pipe i.st1, .pg-pipe i.st2, .pg-pipe i.st3, .pg-pipe i.st4, .pg-legend i, .pg-dot { background: var(--c); }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pg-grid > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pg-grid .panel { margin: 0; }
@media (max-width: 1100px) { .pg-sum { grid-template-columns: repeat(2, 1fr); } .pg-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pg-sum { grid-template-columns: 1fr 1fr; gap: 10px; } .pg-s { padding: 12px 14px; } .pg-s b { font-size: 24px; } }
.pg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); margin: -4px 0 8px; }
.pg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pg-legend i, .pg-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.pg-page { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto 64px 32px; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.pg-pn { min-width: 0; display: flex; flex-direction: column; }
.pg-pn b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-pn a { display: inline-flex; align-items: center; gap: 4px; width: max-content; }
.pg-pipe { display: flex; gap: 3px; }
.pg-pipe i { flex: 1; height: 6px; border-radius: 3px; background: var(--hover); }
.pg-stage { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 650; border: 0; white-space: nowrap; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); }
button.pg-stage { cursor: pointer; }
button.pg-stage:hover { background: color-mix(in srgb, var(--c) 24%, #fff); }
.pg-stage .i { width: 11px; height: 11px; }
.pg-when { text-align: right; }
.icon-btn.sm { width: 30px; height: 30px; }
@media (max-width: 700px) {
  .pg-page { grid-template-columns: minmax(0, 1fr) auto 30px; row-gap: 6px; }
  .pg-pipe { grid-column: 1 / -1; grid-row: 2; }
  .pg-when { display: none; }
}
.pg-mnav { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 8px; font-size: 13px; }
.pg-mnav b { min-width: 118px; text-align: center; }
.pg-mnav .flip .i { transform: rotate(180deg); }
.pg-ckh { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.pg-ckh .pg-bar { flex: 1; }
.pg-ckh b { font-variant-numeric: tabular-nums; font-size: 13px; }
.pg-cat { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding: 12px 0 4px; }
.pg-ck { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.pg-ck .pg-ct { flex: 1; min-width: 0; }
.pg-ck.on .ck-box { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg-ck.on .pg-ct { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
.pg-ck .avatar { --s: 22px; }
.pg-post { border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; background: var(--surface-2); margin-bottom: 8px; }
.pg-post textarea { border: 0; background: transparent; resize: vertical; padding: 4px 6px; box-shadow: none; width: 100%; }
.pg-post textarea:focus { outline: 0; box-shadow: none; }
.pg-post-r { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ai-btn.busy .i { animation: spin 1s linear infinite; }
.pg-u { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.pg-u:first-of-type { border-top: 0; }
.pg-ub { flex: 1; min-width: 0; }
.pg-uh { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.pg-x { margin-left: auto; border: 0; background: none; color: var(--ink-3); font-size: 18px; cursor: pointer; opacity: 0; }
.pg-u:hover .pg-x { opacity: 1; }
.pg-ut { font-size: 14px; }
.pg-ut h4 { color: var(--brand); }
.pg-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pg-k { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-k small { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-k b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pg-k em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.pg-k em.up { color: var(--ok); } .pg-k em.down { color: var(--danger); }
.pb-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pb-rows, .kp-rows { display: flex; flex-direction: column; gap: 6px; }
.pb-row, .kp-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 140px 36px; gap: 6px; align-items: center; }
.kp-row { grid-template-columns: minmax(0, 1fr) 140px 36px; }
@media (max-width: 600px) { .pb-row { grid-template-columns: 1fr 1fr 36px; } .pb-row input[data-pb="t"] { grid-column: 1 / -1; } }
.prog .panel-h h3 { display: flex; align-items: center; gap: 8px; }
.prog .panel-h { flex-wrap: wrap; gap: 8px; }
.rp-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-cols { columns: 2; column-gap: 28px; }
@media (max-width: 700px) { .rp-cols { columns: 1; } }
@media print { .pg-stage { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ================= Round 10: branding, client-chat access ================= */
.brand .mark { flex: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .18); background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand-2, var(--brand))); }
.brand .mark.img { background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .1), inset 0 0 0 1px var(--line); }
.brand .mark.img img { width: 100%; height: 100%; object-fit: contain; }

/* Branding card */
.brand-card { margin-bottom: 18px; }
.bc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 22px; align-items: start; margin-top: 6px; }
@media (max-width: 860px) { .bc-grid { grid-template-columns: 1fr; } }
.bc-form .field { margin-bottom: 14px; }
.bc-sw { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-sw button { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .12s; }
.bc-sw button:hover { transform: scale(1.08); }
.bc-sw button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.bc-custom { position: relative; width: 32px; height: 32px; border-radius: 10px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--ink-3); cursor: pointer; overflow: hidden; }
.bc-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bc-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.bc-prev { border-radius: 16px; background: linear-gradient(160deg, #f1f0ec, #e9e7e1); padding: 14px; display: grid; gap: 12px; position: relative; }
.bc-cap { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bc-side { background: #f7f6f2; border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); display: grid; gap: 4px; }
.bc-side .brand { margin-bottom: 8px; font-size: 14px; }
.bc-side .brand .mark { width: 28px; height: 28px; border-radius: 8px; }
.bc-nav { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.bc-nav.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.bc-nav.on .i { color: var(--brand); }
.bc-nav .count { margin-left: auto; background: var(--brand); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; font-weight: 700; }
.bc-login { background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.bc-login .brand { margin-bottom: 8px; font-size: 14px; }
.bc-login .brand .mark { width: 28px; height: 28px; border-radius: 8px; }
.bc-login b { font-size: 15px; }
.bc-login span { font-size: 12px; color: var(--ink-3); }
.bc-login .bc-btn { margin-top: 8px; padding: 8px 14px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 650; font-size: 12.5px; }

/* Who can use the client chat (Share dialog) */
.acc-tag { font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--hover); color: var(--ink-2); white-space: nowrap; }
.acc-tag.cl { background: #fdf0f6; color: #b0306a; }
.acc-tag.off { background: #fff4df; color: #9a6206; }
.acc-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chan button.off { opacity: .55; cursor: not-allowed; }
.share-list .mrow { gap: 10px; }
@media (max-width: 560px) { .acc-sw span { display: none; } }

/* ================= Round 11: access levels, automations ================= */
/* People & access dialog */
.share-modal { width: min(720px, 100%); }
.share-h { display: flex; align-items: center; gap: 14px; }
.share-h > div { flex: 1; min-width: 0; }
.share-h .plogo { --s: 44px; border-radius: 12px; }
.share-list .mrow { padding: 10px 4px; flex-wrap: wrap; }
.share-list .mrow .nm { flex: 1; min-width: 160px; }
.acc-seg { display: inline-flex; padding: 3px; background: var(--hover); border-radius: 11px; gap: 2px; }
.acc-seg button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.acc-seg button:hover { color: var(--ink); }
.acc-seg button.on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); }
.acc-seg button.on.post { color: var(--brand); }
.acc-seg button.on.view { color: #2c63d6; }
.acc-seg button.on.none { color: #9a6206; }
.acc-seg button:disabled { opacity: .7; cursor: wait; }
.acc-tag { display: inline-flex; align-items: center; gap: 5px; }
.acc-tag.adm { background: var(--brand-soft); color: var(--brand); }
.acc-tag.view { background: #eaf1ff; color: #2c63d6; }
.acc-tag.none { background: #fff4df; color: #9a6206; }
.acc-key { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.acc-key span { display: flex; flex-direction: column; gap: 2px; }
.acc-key b { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.acc-key b.post, .acc-key b.adm { color: var(--brand); } .acc-key b.view { color: #2c63d6; } .acc-key b.none { color: #9a6206; }
@media (max-width: 560px) { .acc-key { grid-template-columns: 1fr; } .acc-seg button { padding: 0 7px; } .acc-seg button .i { display: none; } }
/* View-only client chat */
.viewbar { display: flex; align-items: center; gap: 12px; margin: 0 auto 12px; width: calc(100% - 28px); max-width: 820px; padding: 12px 14px; border-radius: 16px; background: #eef4ff; border: 1px solid #cfdcf7; color: #2c4f9e; }
.viewbar > span { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; }
.viewbar div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.viewbar small { color: #5b74a8; }
.chat.view-only .composer { display: none; }
.chan em.vo { font-style: normal; font-size: 10.5px; font-weight: 700; color: #2c63d6; background: #eaf1ff; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
.auto-actor { display: inline-flex; align-items: center; gap: 4px; color: #6d3fd6; }

/* Automations */
.au-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.au-sum .card { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.au-sum small { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.au-sum b { font-size: 26px; letter-spacing: -.03em; }
.au-sum b span { font-size: 13px; font-weight: 550; color: var(--ink-2); letter-spacing: 0; }
@media (max-width: 900px) { .au-sum { grid-template-columns: 1fr 1fr; } }
.au-seg { margin-bottom: 16px; }
.au-seg button { display: inline-flex; align-items: center; gap: 6px; }
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.au-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, opacity .2s; }
.au-card:not(.on) { opacity: .72; }
.au-card.on { border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); box-shadow: var(--shadow); }
.au-top { display: flex; align-items: center; gap: 10px; }
.au-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.au-card.rule .au-ic { background: #f3edff; color: #6d3fd6; }
.au-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.au-badge { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #eaf1ff; color: #2c63d6; }
.au-dl { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; margin: 0; font-size: 12.5px; }
.au-dl dt { color: var(--ink-3); font-weight: 600; }
.au-dl dd { margin: 0; color: var(--ink-2); }
.au-subj { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--ink) !important; }
.au-f { margin-top: auto; }
.au-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-size: 13px; }
.au-flow > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 100%; }
.au-flow small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 2px; }
.au-arrow { color: var(--ink-3); font-weight: 700; }
.au-note { margin-top: 14px; }
.au-log { padding: 6px 16px; }
.au-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.au-row:first-child { border-top: 0; }
.au-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.au-row b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-row small { color: var(--ink-3); }
.au-link { text-decoration: none; margin-bottom: 12px; }
.au-link > .i:last-child { transform: rotate(180deg); color: var(--ink-3); }
/* Email editor */
.wide-modal { width: min(1020px, 100%); }
.em-ed { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .em-ed { grid-template-columns: 1fr; } }
.em-words { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.em-words .chip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; height: 26px; }
.em-acts { display: flex; gap: 8px; justify-content: space-between; margin-top: 4px; }
.em-prev { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #f6f5f1; display: flex; flex-direction: column; min-height: 460px; }
.em-meta { padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.em-meta small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.em-prev iframe { border: 0; width: 100%; flex: 1; min-height: 420px; background: #f6f5f1; }
.modal.wide-modal { width: min(1020px, 100%); max-width: none; }
.modal.share-modal { width: min(740px, 100%); max-width: none; }
.share-list .mrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto 32px; align-items: center; gap: 12px; flex-wrap: nowrap; }
.share-list .mrow .nm { min-width: 0; }
.share-list .mrow > .icon-btn { grid-column: 5; }
@media (max-width: 640px) {
  .share-list .mrow { grid-template-columns: 34px minmax(0, 1fr) 32px; row-gap: 8px; }
  .share-list .mrow > .small.muted { display: none; }
  .share-list .mrow > .acc-seg, .share-list .mrow > .acc-tag { grid-column: 2 / 4; grid-row: 2; justify-self: start; }
  .share-list .mrow > .icon-btn { grid-column: 3; grid-row: 1; }
}

/* ================= Round 12: universal trackers, services ================= */
.pg-stack i { background: var(--c); }
.pg-stage { background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); }
button.pg-stage:hover { background: color-mix(in srgb, var(--c) 24%, #fff); }
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pg-head > div { flex: 1; }
.pg-head h2 { display: inline-flex; align-items: center; gap: 12px; }
.pg-tr-btn { vertical-align: middle; }
.pg-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pg-tpl { text-align: left; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, background .15s, transform .15s; }
.pg-tpl:hover { border-color: var(--brand); background: #fff; transform: translateY(-1px); }
.pg-tpl b { font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; }
.pg-tpl small { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; }
.pg-tpl.custom { border-style: dashed; }
.tr-rows { display: flex; flex-direction: column; gap: 8px; }
.tr-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 36px; gap: 6px; align-items: center; }
@media (max-width: 600px) { .tr-row { grid-template-columns: 1fr 36px; } .tr-row input[data-tr="stages"] { grid-column: 1 / -1; grid-row: 2; } }
.ws-card { margin-bottom: 18px; }
.ws-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-sum { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 560px) { .pg-sum { grid-template-columns: 1fr 1fr; } }

/* ================= Round 13: statement filters, rename ================= */
.stmt-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.stmt-who { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-3); }
.stmt-who select { border: 0; background: transparent; font-weight: 600; font-size: 13px; color: var(--ink); padding-right: 6px; cursor: pointer; outline: 0; max-width: 220px; }
.stmt-types { display: flex; gap: 6px; flex-wrap: wrap; }
.stmt-types .chip { height: 30px; font-size: 12.5px; }
.wallet { position: relative; }
.w-more { position: absolute; top: 10px; right: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.wallet:hover .w-more, .w-more:focus-visible { opacity: 1; }
.w-more:hover { background: rgba(255, 255, 255, .24); }
@media (hover: none) { .w-more { opacity: 1; } }
.w-more { top: auto; bottom: 12px; right: 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.wallet:hover .w-more { opacity: .9; }

/* ================= Tasks tab ================= */
.st-todo { --st: #8a8e97; --st-soft: #f1f1ee; }
.st-doing { --st: #2c63d6; --st-soft: #e9effc; }
.st-review { --st: #8e4ec6; --st-soft: #f3ebfa; }
.st-done { --st: #13795b; --st-soft: #e7f4ee; }
.st-over { --st: #c9362e; --st-soft: #fbe9e7; }
.st-none { --st: #c3c5ca; --st-soft: #f4f4f2; }
.tk { max-width: 1320px; margin: 0 auto; padding: 22px 28px 40px; }
.tk-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tk-h1 { flex: 1; min-width: 220px; }
.tk-h1 h2 { font-size: 22px; letter-spacing: -.025em; }
.tk-h1 p { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.tk-views { display: inline-flex; gap: 2px; padding: 4px; border-radius: 13px; background: #ecebe6; box-shadow: inset 0 1px 2px rgba(23, 25, 28, .06); }
.tk-views button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border: 0; background: none; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tk-views button:hover { color: var(--ink); }
.tk-views button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 25, 28, .12), 0 0 0 1px rgba(23, 25, 28, .03); }
.tk-views button i { font-style: normal; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; }
.tk-new { height: 40px; border-radius: 12px; padding: 0 16px; }

.tk-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.tk-stat { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; overflow: hidden; }
div.tk-stat { cursor: default; }
button.tk-stat:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.tk-stat b { font-size: 24px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tk-stat span { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.tk-stat small { font-size: 11.5px; color: var(--ink-3); }
.tk-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.tk-stat.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tk-stat.me b { color: var(--blue); }
.tk-stat.red b { color: var(--danger); }
.tk-stat.red::before { background: var(--danger); }
.tk-stat.amber b { color: var(--warn); }
.tk-stat.ok b { color: var(--ok); }

.tk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 5; }
.tk-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); flex: 0 1 220px; min-width: 150px; }
.tk-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19, 121, 91, .12); color: var(--ink-2); }
.tk-search input { border: 0; outline: 0; background: none; width: 100%; font-size: 13.5px; color: var(--ink); }
.tk-quick { display: flex; gap: 4px; flex-wrap: wrap; }
.tk-quick button { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid transparent; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tk-quick button:hover { background: var(--hover); }
.tk-quick button.on { background: var(--ink); color: #fff; }
.tk-quick button.saved { border-color: var(--line-2); }
.tk-quick button.saved.on { border-color: var(--ink); }
.tk-quick .x { margin-left: 2px; opacity: .5; font-size: 14px; line-height: 1; padding: 0 2px; border-radius: 4px; }
.tk-quick .x:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.tk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.tk-sel { width: auto; max-width: 160px; height: 30px; font-size: 12.5px; padding: 0 26px 0 10px; border-radius: 9px; }
.tk-sel.set { border-color: var(--ink); background-color: #f4f3ef; font-weight: 600; }
.tk-ftog { display: none; }
.tk-ftog.set { border-color: var(--ink); }
.tk-group { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tk-group select { height: 30px; font-size: 12.5px; width: auto; padding: 0 26px 0 10px; border-radius: 9px; }
.linkish { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.tk-body { margin-top: 16px; }
.tk-hint { text-align: center; color: var(--ink-3); font-size: 13px; padding: 14px; }
.tk-empty { margin-top: 6px; }
.tk-stmt { margin-top: 28px; }

/* status marks */
.tk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st); flex: none; box-shadow: 0 0 0 3px var(--st-soft); display: inline-block; }
.tk-dot.tlb-dot { background: hsl(var(--h) 55% 50%); box-shadow: 0 0 0 3px hsl(var(--h) 60% 93%); }
.tk-st { width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; flex: none; margin-top: 1px; }
.tk-st i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--st); position: relative; transition: transform .15s; }
.tk-st:not([disabled]):hover i { transform: scale(1.12); }
.tk-st[disabled] { cursor: default; }
.tk-st.st-doing i { background: conic-gradient(var(--st) 0 50%, transparent 0); }
.tk-st.st-review i { background: conic-gradient(var(--st) 0 75%, transparent 0); }
.tk-st.st-done i { background: var(--st); }
.tk-st.st-done i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tk-st.ghost { color: var(--ink-3); border: 1.5px dashed var(--line-2); width: 20px; height: 20px; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: var(--st); background: var(--st-soft); }
.st-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--st); }
.menu .tk-dot { margin: 0 3px; }

/* labels */
.tlb { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: hsl(var(--h) 50% 30%); background: hsl(var(--h) 60% 93%); white-space: nowrap; border: 0; }
.tlb button { border: 0; background: none; padding: 0 0 0 2px; color: inherit; opacity: .55; cursor: pointer; font-size: 13px; line-height: 1; }
.tlb button:hover { opacity: 1; }
.tlb.on { height: 24px; font-size: 12px; }
.tlb.sug { height: 24px; font-size: 12px; background: none; border: 1px dashed hsl(var(--h) 40% 75%); cursor: pointer; }
.tlb.sug:hover { background: hsl(var(--h) 60% 95%); }

/* list view */
.tk-list { display: flex; flex-direction: column; gap: 14px; }
.tk-grp { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.tk-grp > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; user-select: none; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.tk-grp > header b { font-size: 13.5px; font-weight: 650; }
.tk-grp > header .n { font-size: 12px; font-weight: 650; color: var(--ink-3); background: var(--hover); padding: 1px 8px; border-radius: 999px; }
.tk-grp > header > svg { color: var(--ink-3); transition: transform .2s; }
.tk-grp.closed > header > svg { transform: rotate(-90deg); }
.tk-grp > header .linkish { margin-left: auto; }
.tk-grp.closed .tk-rows { display: none; }
.tk-rows { border-top: 1px solid var(--line); }
.tk-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; position: relative; }
.tk-row:last-child { border-bottom: 0; }
.tk-row:hover { background: #fbfaf7; }
.tk-row.sel { background: var(--brand-soft); }
.tk-row.sel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.tk-row.over::after { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--danger); }
.tk-row.st-done .tk-name { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .2); }
.tk-row.ghost { cursor: default; opacity: .75; }
.tk-main { flex: 1; min-width: 0; }
.tk-name { font-size: 14px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.tk-rec { display: inline-grid; place-items: center; color: var(--brand); margin-right: 6px; vertical-align: -1px; }
.tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 4px; }
.tk-meta:empty { display: none; }
.tk-m { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); font-weight: 550; }
.tk-m.chan { color: var(--ink-2); background: var(--hover); padding: 1px 7px; border-radius: 6px; }
.tk-m.ms { color: #8a5a00; }
.tk-part { font-size: 11.5px; font-weight: 650; color: var(--blue); }
.tk-right { display: flex; align-items: center; gap: 12px; flex: none; }
.tk-nodue { font-size: 12px; color: var(--ink-3); }
.tk-who { display: inline-flex; }
.tk-who > * + * { margin-left: -6px; }
.tk-av { position: relative; display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.tk-av.done::after { content: '✓'; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 8.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.tk-add { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--ink-3); border-top: 1px dashed var(--line); cursor: text; }
.tk-add input { flex: 1; border: 0; outline: 0; background: none; font-size: 13.5px; color: var(--ink); }
.tk-add:focus-within { color: var(--brand); background: #fcfcfa; }
.tk-none { padding: 14px 16px; color: var(--ink-3); font-size: 13px; }

/* board view */
.tk-board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: stretch; }
.tk-board.people { align-items: start; }
.tk-board.people { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); }
.tk-col { background: #efeee9; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; min-height: 180px; max-height: calc(100dvh - 190px); border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.tk-col.over { border-color: var(--st); background: var(--st-soft); }
.tk-board.dragging .tk-col[data-drop] { border-style: dashed; border-color: var(--line-2); }
.tk-board.dragging .tk-col.over { border-style: solid; border-color: var(--st); }
.tk-col-h { display: flex; align-items: center; gap: 9px; padding: 4px 4px 10px; }
.tk-col-h b { font-size: 13.5px; font-weight: 650; }
.tk-col-h .nm { flex: 1; min-width: 0; }
.tk-col-h .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-col-h small { font-size: 11.5px; color: var(--ink-3); }
.tk-col-h .n { font-size: 12px; font-weight: 650; color: var(--ink-3); }
.tk-col-h .icon-btn:hover { background: rgba(255, 255, 255, .7); }
.tk-col.st-todo { border-top: 0; }
.tk-cards { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 2px; min-height: 60px; flex: 1; }
.tk-card { background: var(--surface); border-radius: 13px; padding: 12px; box-shadow: 0 1px 2px rgba(23, 25, 28, .07), 0 0 0 1px rgba(23, 25, 28, .03); cursor: pointer; display: flex; flex-direction: column; gap: 9px; transition: box-shadow .15s, transform .15s, opacity .15s; position: relative; }
.tk-card::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--st); opacity: .9; }
.tk-card.st-todo::before { opacity: 0; }
.tk-card.over::before { background: var(--danger); opacity: 1; }
.tk-card:hover { box-shadow: 0 8px 22px -10px rgba(23, 25, 28, .28), 0 0 0 1px rgba(23, 25, 28, .06); transform: translateY(-1px); }
.tk-card[draggable="true"] { cursor: grab; }
.tk-card.dragging { opacity: .45; transform: rotate(1.5deg); }
.tk-card.landed { animation: land .35s var(--ease, ease); }
@keyframes land { 0% { transform: scale(.97); box-shadow: 0 0 0 2px var(--brand); } 100% { transform: none; } }
.tk-card .bcover { margin: -12px -12px 0; border-radius: 13px 13px 0 0; overflow: hidden; max-height: 130px; }
.tk-card .bcover img { width: 100%; display: block; object-fit: cover; }
.tk-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tk-card-t { font-size: 13.5px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.tk-card.st-done .tk-card-t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .2); }
.tk-card-m { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tk-card-m .bicons { display: inline-flex; gap: 8px; color: var(--ink-3); font-size: 11.5px; }
.tk-card-m .bicons span { display: inline-flex; align-items: center; gap: 3px; }
.tk-card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-drop-hint { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 18px 10px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.tk-col-more { margin: 8px auto 2px; display: block; }

/* calendar view */
.tk-cal { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.tc-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tc-head h3 { font-size: 16px; min-width: 150px; text-align: center; }
.icon-btn.flip svg { transform: rotate(180deg); }
.tc-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); font-weight: 550; flex-wrap: wrap; }
.tc-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--st); margin-left: 6px; }
.tc-legend i.ghost, .tc-dots i.ghost { background: none; border: 1.5px dashed var(--ink-3); }
.tc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tc-wd { padding: 8px 10px; font-size: 11.5px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.tc-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: background .12s; min-width: 0; }
.tc-day:nth-child(7n) { border-right: 0; }
.tc-day:hover { background: #fbfaf7; }
.tc-day.blank { background: var(--surface-2); cursor: default; }
.tc-day.past .tc-n { color: var(--ink-3); }
.tc-day.sel { background: #f6fbf8; box-shadow: inset 0 0 0 2px var(--brand); }
.tc-n { font-size: 12.5px; font-weight: 650; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.tc-day.today .tc-n { background: var(--brand); color: #fff; }
.tc-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tc-chip { display: flex; align-items: center; gap: 4px; border: 0; text-align: left; font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--st-soft); color: var(--ink); box-shadow: inset 2px 0 0 var(--st); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tc-chip.over { background: var(--danger-soft); box-shadow: inset 2px 0 0 var(--danger); }
.tc-chip.st-done { color: var(--ink-3); text-decoration: line-through; }
.tc-chip.ghost { background: none; border: 1px dashed var(--line-2); box-shadow: none; color: var(--ink-3); cursor: default; }
.tc-more { font-size: 11px; color: var(--ink-3); font-weight: 600; padding-left: 4px; }
.tc-dots { display: none; gap: 3px; justify-content: center; }
.tc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--st); }
.tc-dots i.over { background: var(--danger); }
.tc-agenda { border-top: 1px solid var(--line); }
.tc-ag-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }

/* recurring view */
.rc-intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #eef7f2, #f5f3ee); border: 1px solid #dcebe3; color: var(--brand); }
.rc-intro div { display: flex; flex-direction: column; gap: 2px; }
.rc-intro b { color: var(--ink); font-size: 13.5px; }
.rc-intro span { color: var(--ink-2); font-size: 12.5px; }
.rc-sum { margin: 16px 2px 10px; font-size: 13px; color: var(--ink-2); }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.rc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 11px; box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.rc-card:hover { box-shadow: var(--shadow); }
.rc-card.paused, .rc-card.ended { background: var(--surface-2); }
.rc-card.paused .rc-name b, .rc-card.ended .rc-name b { color: var(--ink-2); }
.rc-top { display: flex; align-items: center; gap: 11px; }
.rc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; font-size: 16px; }
.rc-card.ms .rc-ic { background: #fbf1dd; color: #8a5a00; }
.rc-card.paused .rc-ic { background: var(--hover); color: var(--ink-3); }
.rc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-name b { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-name small { font-size: 12.5px; color: var(--ink-2); }
.rc-st { font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.rc-st.on { color: var(--ok); background: var(--ok-soft); }
.rc-st.paused { color: var(--warn); background: var(--warn-soft); }
.rc-st.ended { color: var(--ink-3); background: var(--hover); }
.rc-desc { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-next { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); padding: 9px 11px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.rc-next b { color: var(--ink); font-weight: 650; }
.rc-next span { margin-left: auto; color: var(--ink-3); font-size: 11.5px; }
.rc-tags { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rc-ppl { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rc-hist { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.rc-dots { display: inline-flex; gap: 4px; align-items: center; }
.rc-dots a { width: 12px; height: 12px; border-radius: 4px; background: var(--line-2); transition: transform .12s; }
.rc-dots a:hover { transform: scale(1.3); }
.rc-dots a.ok { background: #1f9a6f; }
.rc-dots a.late { background: #d89a2b; }
.rc-dots a.miss { background: var(--danger); }
.rc-dots a.open { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.rc-dots em { font-size: 12px; color: var(--ink-3); font-style: normal; }
.rc-rate { font-size: 12px; color: var(--ink-3); font-weight: 550; }
.rc-acts { display: flex; gap: 6px; align-items: center; }

/* new task form */
.modal.tm-modal { max-width: 720px; }
.tm { display: flex; flex-direction: column; gap: 10px; }
.tm-title { border: 0; outline: 0; font-size: 21px; font-weight: 650; letter-spacing: -.02em; padding: 4px 0; background: none; width: 100%; }
.tm-title::placeholder { color: #c2c4c9; }
.tm-desc { border: 0; outline: 0; resize: vertical; font-size: 14px; color: var(--ink-2); background: none; padding: 0 0 8px; border-bottom: 1px solid var(--line); min-height: 44px; }
.tm-grid { display: flex; flex-direction: column; }
.tm-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tm-row > label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding-top: 6px; }
.tm-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.tm-ctl .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-person { gap: 6px; padding-left: 3px; }
.tm-person.on { background: var(--pc); border-color: var(--pc); }
.tm-person .avatar { box-shadow: none; }
.tm-note { font-size: 12px; color: var(--ink-3); }
.tm-due { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tm-due .input { width: auto; }
.tm-labels { align-items: center; }
.tm-lbl-in { width: 120px; height: 26px; font-size: 12px; }
.tm-ck { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.tm-ck-i { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.tm-ck-i .ck-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.tm-ck-i span:nth-child(2) { flex: 1; }
.tm-ck-i button, .tm-ck-i button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 16px; }
.tm-repeat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.tm-repeat b { display: block; font-size: 13.5px; }
.tm-repeat small { color: var(--ink-3); font-size: 12px; }
.tm-sw { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.tm-sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.tm-sw.on { background: var(--brand); }
.tm-sw.on i { transform: translateX(16px); }
.tm-sched { border: 1px solid #dcebe3; background: #f7fbf9; border-radius: 14px; padding: 4px 14px 12px; }
.tm-sched .tm-row { border-bottom-color: #e3efe8; }
.tm-days { display: inline-flex; gap: 4px; }
.tm-days button { width: 34px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 650; cursor: pointer; color: var(--ink-2); }
.tm-days button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tm-every, #tm-mday, #tm-lead, .tm-ctl > .input { width: auto; }
.tm-preview { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.tm-preview svg { margin-top: 3px; color: var(--brand); }
.tm-preview small { color: var(--ink-3); }
.tm-preview i { font-style: normal; color: var(--ink-3); margin: 0 6px; }
.tm-preview .red { color: var(--danger); }

/* task drawer */
.td-bg { position: fixed; inset: 0; z-index: 90; background: rgba(23, 25, 28, .18); animation: fade .15s; display: flex; justify-content: flex-end; }
.td-bg.out { opacity: 0; transition: opacity .18s; }
.td-bg.out .td { transform: translateX(30px); transition: transform .18s; }
.td { width: min(560px, 100%); height: 100%; background: var(--surface); box-shadow: -24px 0 60px -30px rgba(23, 25, 28, .45); display: flex; flex-direction: column; animation: slideIn .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes slideIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.td-top { display: flex; align-items: center; gap: 4px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.td-chan { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.td-chan.team { background: var(--hover); color: var(--ink-2); }
.td-body { flex: 1; overflow-y: auto; padding: 18px 22px 40px; }
.td-title { width: 100%; border: 0; outline: 0; resize: none; font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; background: none; overflow: hidden; }
textarea.td-title:hover { background: var(--surface-2); }
textarea.td-title:focus { background: var(--surface-2); box-shadow: 0 0 0 2px var(--brand-soft); }
.td-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin: 14px 0; border-radius: 13px; background: #f1f0ec; }
.td-status button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 0; background: none; border-radius: 9px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.td-status button i { width: 8px; height: 8px; border-radius: 50%; background: var(--st); opacity: .5; }
.td-status button:not([disabled]):hover { background: rgba(255, 255, 255, .7); }
.td-status button.on { background: var(--surface); color: var(--st); box-shadow: 0 1px 2px rgba(23, 25, 28, .1); }
.td-status button.on i { opacity: 1; }
.td-status.ro button { cursor: default; }
.td-mine { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 600; margin-bottom: 14px; flex-wrap: wrap; }
.td-mine span { display: inline-flex; align-items: center; gap: 7px; }
.td-mine.ok { background: var(--ok-soft); color: var(--ok); }
.td-fields { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.td-f { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.td-f > label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding-top: 4px; }
.td-f > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; }
.td-f .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.td-f .input { width: auto; }
.td-people { display: flex; flex-wrap: wrap; gap: 6px; }
.td-people .who-pill button { border: 0; background: none; padding: 0 0 0 3px; cursor: pointer; color: inherit; opacity: .5; font-size: 14px; }
.td-people .who-pill button:hover { opacity: 1; }
.td-add { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line-2); background: none; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.td-add:hover { border-color: var(--ink-3); color: var(--ink); }
.td-sec { margin-top: 20px; }
.td-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.td-sec h4 .linkish { margin-left: auto; text-transform: none; letter-spacing: 0; }
.td-sec h4 .n { background: var(--hover); padding: 0 7px; border-radius: 999px; color: var(--ink-2); }
.td-text { font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.td-edit-f { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.td .thread { border: 0; padding: 0; margin: 0; background: none; }

/* chat bubble: task name, status, labels */
.btitle { font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; margin: 2px 0 2px; display: flex; align-items: center; gap: 6px; }
.bt-go { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); flex: none; }
.blabels { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

@media (max-width: 1100px) {
  .tk-board:not(.people) { grid-template-columns: repeat(4, minmax(260px, 80vw)); scroll-snap-type: x mandatory; }
  .tk-board .tk-col { scroll-snap-align: start; }
  .tk-filters { margin-left: 0; }
}
@media (max-width: 800px) {
  .tk { padding: 14px 14px 30px; }
  .tk-head { gap: 10px; }
  .tk-h1 p { display: none; }
  .tk-views { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .tk-views button { justify-content: center; padding: 0 6px; gap: 5px; }
  .tk-new { height: 38px; padding: 0 12px; }
  .tk-stats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -14px 0; padding: 0 14px 2px; gap: 8px; scrollbar-width: none; }
  .tk-stats::-webkit-scrollbar { display: none; }
  .tk-stat { flex: 0 0 132px; scroll-snap-align: start; padding: 10px 12px; }
  .tk-stat b { font-size: 21px; }
  .tk-bar { position: static; padding: 8px; border-radius: 14px; }
  .tk-search { flex: 1 1 0; }
  .tk-ftog { display: inline-flex; height: 34px; }
  .tk-filters { display: none; }
  .tk-bar.open .tk-filters { display: flex; }
  .tk-quick { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .tk-quick::-webkit-scrollbar { display: none; }
  .tk-filters { width: 100%; }
  .tk-sel, .tk-group select { max-width: 130px; font-size: 16px; }
  .tk-row { padding: 11px 12px; gap: 10px; flex-wrap: wrap; }
  .tk-main { flex: 1 1 calc(100% - 40px); }
  .tk-right { width: 100%; padding-left: 32px; justify-content: flex-start; gap: 10px; }
  .tk-right .tk-who { margin-left: auto; }
  .tk-add input { font-size: 16px; }
  .tk-col { max-height: none; }
  .tc-day { min-height: 54px; padding: 4px 2px; align-items: center; }
  .tc-chips { display: none; }
  .tc-dots { display: flex; }
  .tc-wd { padding: 6px 2px; text-align: center; font-size: 10.5px; }
  .tc-head h3 { min-width: 0; flex: 1; font-size: 15px; }
  .tc-legend { display: none; }
  .rc-grid { grid-template-columns: minmax(0, 1fr); }
  .rc-card { padding: 14px; }
  .rc-next span { margin-left: 0; width: 100%; }
  .rc-name b { white-space: normal; }
  .tm-row { grid-template-columns: 1fr; gap: 6px; }
  .tm-row > label { padding-top: 0; }
  .tm-title { font-size: 19px; }
  .tm-desc, .tm-lbl-in, .tm .input { font-size: 16px; }
  .tm-days button { width: 36px; }
  .td { width: 100%; }
  .td-bg { background: rgba(23, 25, 28, .3); }
  .td-body { padding: 14px 16px 40px; }
  .td-f { grid-template-columns: 84px minmax(0, 1fr); }
  .td-f .input { font-size: 16px; }
  .td-status button { font-size: 11.5px; gap: 4px; }
}

/* ================= Many projects: sidebar, quick switcher, list view ================= */
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav-sec { gap: 4px; }
.nav-sec span { flex: 1; }
.nav-sec span em { font-style: normal; font-weight: 700; color: var(--ink-3); background: rgba(23, 25, 28, .06); border-radius: 999px; padding: 0 6px; margin-left: 4px; letter-spacing: 0; }
.side-find { display: flex; align-items: center; gap: 7px; height: 32px; margin: 2px 0 6px; padding: 0 9px; border-radius: 9px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); color: var(--ink-3); }
.side-find:focus-within { background: var(--surface); border-color: var(--brand); color: var(--ink-2); }
.side-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13px; color: var(--ink); }
.side-find kbd, .qs kbd { font: 600 10.5px var(--font); color: var(--ink-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--surface); white-space: nowrap; }
.side-grp { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; color: var(--ink-3); padding: 10px 10px 4px; }
.side-none { font-size: 12.5px; color: var(--ink-3); padding: 8px 10px; }
.side-more, .side-all { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; margin-top: 6px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px dashed var(--line-2); }
.side-all:hover, .side-more:hover { background: var(--surface); color: var(--ink); border-style: solid; }
.side-all .lbl { flex: 1; }
.side-all .count svg { transform: rotate(180deg); }
.nav-item.proj .pin-star { opacity: 0; }
.nav-item.proj:hover .pin-star, .pin-star.on { opacity: 1; }
.pin-star { border: 0; background: none; cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink-3); padding: 2px 3px; border-radius: 5px; flex: none; transition: opacity .15s, color .15s; }
.pin-star:hover { color: #b7770b; background: rgba(0, 0, 0, .05); }
.pin-star.on { color: #d6a300; }
.app.side-mini:not(.side-peek) .side-find, .app.side-mini:not(.side-peek) .side-grp, .app.side-mini:not(.side-peek) .pin-star, .app.side-mini:not(.side-peek) .side-all .count { display: none; }
.app.side-mini:not(.side-peek) .side-all { justify-content: center; padding: 0; border: 0; }
.app.side-mini:not(.side-peek) .side-all .lbl { display: none; }

/* sidebar that slides open over the page when collapsed */
@media (min-width: 901px) {
  .app.side-mini .side { position: relative; z-index: 60; width: 68px; transition: width .16s cubic-bezier(.3, .7, .2, 1), box-shadow .16s; overflow: hidden; contain: layout paint; will-change: width; }
  .app.side-mini .side-scroll { overflow-x: hidden; }
  .app.side-mini.side-peek .side { width: 264px; box-shadow: 24px 0 60px -24px rgba(23, 25, 28, .38); border-right-color: transparent; }
  .app.side-mini.side-peek .side .nav-item, .app.side-mini.side-peek .side .brand { white-space: nowrap; }
  .app.side-mini:not(.side-peek) .side { cursor: pointer; }
  .app.side-mini .side::after { content: ''; position: absolute; top: 50%; right: 4px; width: 3px; height: 34px; margin-top: -17px; border-radius: 3px; background: var(--line-2); opacity: 0; transition: opacity .2s; }
  .app.side-mini:not(.side-peek) .side:hover::after { opacity: 1; }
}

/* quick switcher */
.modal.qs-modal { max-width: 580px; align-self: start; margin-top: 12vh; overflow: hidden; }
.qs-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.qs-in input { flex: 1; border: 0; outline: 0; font-size: 17px; background: none; color: var(--ink); }
.qs-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.qs-sec { font-size: 11px; font-weight: 650; color: var(--ink-3); padding: 6px 10px; text-transform: uppercase; letter-spacing: .06em; }
.qs-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; }
.qs-row .plogo { --s: 32px; }
.qs-row > span:not(.plogo):not(.qs-ic) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.qs-row .plogo { flex: none; }
.qs-row b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-row small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-row em { font-style: normal; color: #d6a300; flex: none; }
.qs-row.on, .qs-row:hover { background: var(--brand-soft); }
.qs-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--hover); display: grid !important; place-items: center; flex: none !important; color: var(--ink-2); }
.qs-none { padding: 26px; text-align: center; color: var(--ink-3); }
.qs-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--surface-2); }
.qs-foot kbd { margin-right: 3px; }

/* all projects: list view */
.ptable-wrap { padding: 0; overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { text-align: left; font-size: 11.5px; font-weight: 650; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.ptable th button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.ptable th.on button { color: var(--ink); }
.ptable td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tbody tr { cursor: pointer; transition: background .12s; }
.ptable tbody tr:hover { background: #fbfaf7; }
.ptable td.red { color: var(--danger); font-weight: 700; }
.ptable td.zero, .ptable .zero { color: var(--ink-3); }
.ptable .ft-badge { background: var(--blue-soft); color: var(--blue); }
.ptable .chips { flex-wrap: nowrap; }
.pt-name { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.pt-name .plogo { --s: 34px; }
.pt-name span { display: flex; flex-direction: column; }
.pt-name b { font-weight: 600; }
.pt-name small { font-size: 12px; color: var(--ink-3); }

/* chat people panel: a slim strip that slides open */
@media (min-width: 901px) {
  .pbody.chatmode { grid-template-columns: minmax(0, 1fr) 60px; }
  .people-panel { display: block !important; position: relative; overflow: visible; padding: 0; z-index: 20; }
}
@media (max-width: 900px) { .people-panel { display: none; } }
.pp-strip { width: 100%; height: 100%; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; color: var(--ink-3); transition: background .2s; }
.pp-strip:hover { background: var(--surface-2); }
.pp-n { font-size: 11px; font-weight: 700; margin-top: -4px; }
.pp-face { position: relative; display: inline-flex; border-radius: 50%; transition: transform .15s; }
.pp-strip:hover .pp-face { transform: scale(1.05); }
.pp-face.on { box-shadow: 0 0 0 2px var(--brand); }
.pp-face i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--surface); }
.pp-face i.late { background: var(--danger); }
.pp-more { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.pp-late { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 700; color: var(--danger); margin-top: 4px; }
.pp-full { position: absolute; top: 0; right: 0; bottom: 0; width: 310px; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -24px 0 50px -26px rgba(23, 25, 28, .35); padding: 14px 12px; overflow-y: auto;
  transform: translateX(24px); opacity: 0; pointer-events: none; transition: transform .32s cubic-bezier(.3, .7, .2, 1), opacity .25s; }
.people-panel.open .pp-full { transform: none; opacity: 1; pointer-events: auto; }
.pp-h { display: flex; align-items: center; gap: 4px; padding: 0 0 0 8px; }
.pp-h h3 { flex: 1; padding: 0; }
.pp-h .icon-btn.on { color: var(--brand); background: var(--brand-soft); }
.people-panel.pinned .pp-h [data-act="pp-pin"] { color: var(--brand); background: var(--brand-soft); }

/* ================= Proof of work ================= */
.need-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; color: #8a4b00; background: #fdf0dc; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.done-panel.req { border-color: #f1d9ae; background: #fffaf1; }
.dp-need { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 7px 10px; border-radius: 9px; background: #fdf0dc; color: #7a4300; margin-bottom: 8px; }
.dp-need em { font-style: normal; opacity: .75; }
.dp-need.ok { background: var(--ok-soft); color: var(--ok); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.td-proof { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; width: 100%; }
.td-proof input { flex: 1; min-width: 160px; }
.tm-what { flex: 1 1 100%; }
.subs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sub-row { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.sub-row:last-child { border-bottom: 0; }
.sub-row.in { background: #fbfdfc; }
.sub-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-b b { font-size: 13.5px; }
.sub-b small { font-size: 12px; color: var(--ink-3); }
.sub-b p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.sub-b .atts { margin-top: 6px; }
.sub-st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--line-2); color: #fff; flex: none; }
.sub-row.in .sub-st { background: var(--ok); border: 0; }
.td-sec h4 .need-chip { text-transform: none; letter-spacing: 0; }

/* ================= Import wizard ================= */
.modal.imp-modal { max-width: 1040px; }
.imp-h { align-items: flex-start; }
.imp-steps { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.imp-steps span { display: inline-flex; align-items: center; gap: 7px; }
.imp-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; background: var(--hover); }
.imp-steps span.on { color: var(--ink); }
.imp-steps span.on i { background: var(--ink); color: #fff; }
.imp-steps span.done i { background: var(--ok); color: #fff; }
.imp-steps b { width: 24px; height: 1px; background: var(--line-2); }
.imp-b { display: flex; flex-direction: column; gap: 14px; }
.imp-drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 20px; border-radius: 18px; border: 2px dashed var(--line-2); background: linear-gradient(180deg, #fbfaf7, #f6f5f1); cursor: pointer; color: var(--ink-3); transition: border-color .15s, background .15s; }
.imp-drop:hover, .imp-drop.over { border-color: var(--brand); background: #f2f9f5; color: var(--brand); }
.imp-drop > svg { width: 30px; height: 30px; }
.imp-drop b { color: var(--ink); font-size: 15px; }
.imp-drop span { font-size: 13px; max-width: 460px; }
.imp-busy { font-style: normal; font-weight: 600; color: var(--brand); margin-top: 6px; }
.imp-or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; }
.imp-or::before, .imp-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.imp-paste { font-size: 13px; resize: vertical; }
.imp-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.imp-tips div { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.imp-tips svg { color: var(--brand); flex: none; margin-top: 1px; }
.imp-tips b { color: var(--ink); }
.imp-sum { display: flex; gap: 10px; flex-wrap: wrap; }
.imp-sum div { display: flex; align-items: baseline; gap: 7px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.imp-sum b { font-size: 22px; letter-spacing: -.02em; }
.imp-sum span { font-size: 12.5px; font-weight: 600; }
.imp-sum .amber { background: var(--warn-soft); color: var(--warn); }
.imp-sum .red { background: var(--danger-soft); color: var(--danger); }
.imp-sum .muted { background: var(--hover); color: var(--ink-2); }
.imp-table-wrap { max-height: 42vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.imp-table { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.imp-table th { position: sticky; top: 0; background: var(--surface-2); padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; z-index: 1; }
.imp-table th small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.imp-table th select { min-width: 150px; height: 30px; font-size: 12px; }
.imp-table th select:not(.set) { color: var(--ink-3); border-style: dashed; }
.imp-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.imp-table td.skip { color: #c1c3c8; }
.imp-table .ck { width: 34px; text-align: center; }
.imp-table tr.off td:not(.ck), .imp-table tr.dupe td:not(.ck):not(.st) { opacity: .45; }
.imp-table tr.bad { background: #fff7f6; }
.imp-flag { font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 6px; }
.imp-flag.dupe { color: var(--warn); background: var(--warn-soft); }
.imp-flag.bad { color: var(--danger); background: var(--danger-soft); }
.imp-flag.warn { color: var(--warn); background: var(--warn-soft); }
.imp-opts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.imp-opt { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.imp-opt > label { font-size: 12.5px; font-weight: 650; }
.imp-opt small { font-size: 11.5px; color: var(--ink-3); }
.imp-opt .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.imp-opt.row { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; grid-column: 1 / -1; }
.imp-opt.row span { display: flex; flex-direction: column; font-size: 13px; }
.imp-run { display: flex; align-items: center; gap: 22px; padding: 10px 4px; }
.imp-ring { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--hover) 0); flex: none; position: relative; }
.imp-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.imp-ring b { position: relative; font-size: 18px; }
.imp-run h3 { font-size: 17px; }
.imp-run .ok { color: var(--ok); font-weight: 650; }
.imp-run .red { color: var(--danger); font-weight: 650; }
.imp-log { max-height: 38vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; }
.imp-log div { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; animation: fade .25s; }
.imp-log div:last-child { border-bottom: 0; }
.imp-log b { font-weight: 600; }
.imp-log span { color: var(--ink-3); }
.imp-log .ok svg { color: var(--ok); }
.imp-log .skip svg { color: var(--warn); }
.imp-log .bad { background: #fff7f6; }
.imp-log .bad svg, .imp-log .bad span { color: var(--danger); }
.imp-eta { margin-right: 6px; }

/* ================= Add many tasks ================= */
.modal.bt-modal { max-width: 1080px; }
.bt { display: flex; flex-direction: column; gap: 12px; }
.bt-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ai-btn svg { color: #7c4dcc; }
.bt-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; }
.bt-left { display: flex; flex-direction: column; gap: 8px; }
.bt-text { min-height: 300px; font: 13.5px/1.7 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; resize: vertical; tab-size: 2; background: #fcfcfa; }
.bt-help { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 11.5px; color: var(--ink-3); }
.bt-help code, .bt-empty code { font: 600 11px ui-monospace, Menlo, monospace; background: var(--hover); color: var(--ink-2); padding: 1px 5px; border-radius: 5px; }
.bt-right { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.bt-ph { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.bt-ph span { color: var(--ink-3); font-size: 12.5px; }
.bt-prev { flex: 1; max-height: 360px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.bt-row { display: flex; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--surface); box-shadow: 0 1px 2px rgba(23, 25, 28, .06); animation: fade .2s; }
.bt-row.warn { box-shadow: inset 3px 0 0 var(--warn), 0 1px 2px rgba(23, 25, 28, .06); }
.bt-n { width: 22px; height: 22px; border-radius: 50%; background: var(--hover); font-size: 11px; font-weight: 700; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.bt-main { flex: 1; min-width: 0; }
.bt-main > b { font-size: 13.5px; font-weight: 600; }
.bt-main > b em { color: var(--danger); font-style: normal; }
.bt-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; margin-top: 5px; }
.bt-meta:empty { display: none; }
.bt-who { font-size: 12px; font-weight: 650; color: var(--blue); background: var(--blue-soft); padding: 1px 7px; border-radius: 6px; }
.bt-who.role { color: #7c4dcc; background: #f1ebfb; }
.bt-warn { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; color: var(--warn); font-weight: 600; }
.bt-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 50px 20px; color: var(--ink-3); font-size: 13px; }
.bt-empty svg { width: 26px; height: 26px; }
.bt-empty b { color: var(--ink-2); }
.bt-empty code { display: block; margin-top: 8px; }
.bt-opts { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.bt-pick { border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 4px 0 8px; background: var(--surface-2); }
.bt-pick-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.bt-pick-bar .tk-search { flex: 0 1 220px; height: 32px; background: var(--surface); }
.bt-pick-bar .chips { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.bt-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; max-height: 190px; overflow-y: auto; }
.bt-p { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 550; border: 1px solid transparent; min-width: 0; }
.bt-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-p .plogo { --s: 22px; font-size: 9px; }
.bt-p:hover { background: var(--surface); }
.bt-p.on { background: var(--surface); border-color: var(--brand); }
.bt-p input { accent-color: var(--brand); }
.bt-bar { display: inline-block; width: 120px; height: 6px; border-radius: 6px; background: var(--hover); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.bt-bar i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.menu-x { margin-left: auto; opacity: .45; font-size: 16px; padding: 0 4px; border-radius: 5px; }
.menu-x:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.tk-cta { display: flex; gap: 8px; }
.tk-many { height: 40px; border-radius: 12px; }

@media (max-width: 800px) {
  .bt-grid, .imp-opts { grid-template-columns: 1fr; }
  .bt-text { min-height: 180px; font-size: 16px; }
  .bt-prev { max-height: 260px; }
  .imp-table-wrap { max-height: 38vh; }
  .imp-paste, .side-find input, .qs-in input, #bt-pq { font-size: 16px; }
  .tk-many span { display: none; }
  .tk-many { width: 38px; padding: 0; }
  .ptable th:nth-child(2), .ptable td:nth-child(2), .ptable th:nth-child(3), .ptable td:nth-child(3), .ptable th:nth-child(7), .ptable td:nth-child(7), .ptable th:nth-child(8), .ptable td:nth-child(8) { display: none; }
  .pt-name { min-width: 0; }
  .modal.qs-modal { margin-top: 8vh; }
}

/* ================= Workstreams ================= */
.ws-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap;
  color: color-mix(in srgb, var(--wc) 78%, #000); background: color-mix(in srgb, var(--wc) 12%, #fff); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ws-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--wc); flex: none; }
.ws-chip b { opacity: .5; font-weight: 600; margin: 0 1px; }
.ws-chip.sm { height: 20px; font-size: 11px; }
.chan .ws-tab { --wc: #565a62; }
.chan .ws-tab .ws-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wc) 20%, transparent); flex: none; margin: 0 3px; }
.chan .ws-tab.on { border-color: color-mix(in srgb, var(--wc) 45%, #fff) !important; background: color-mix(in srgb, var(--wc) 8%, #fff) !important; }
.chan .ws-add { opacity: .75; border-style: dashed !important; }
.chan .ws-add:hover { opacity: 1; }
.chat.ws-chan .msgs { background-color: color-mix(in srgb, var(--wc) 4%, var(--bg)); }
.chat.ws-chan .composer { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--wc) 35%, transparent), var(--shadow); }
.modal.ws-modal { max-width: 820px; }
.ws-b { display: flex; flex-direction: column; gap: 10px; }
.ws-pkg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #f3effb, #f6f5f1); border: 1px solid #e7def6; }
.ws-pkg > span { display: inline-flex; align-items: center; gap: 7px; color: #7c4dcc; }
.ws-pkg b { color: var(--ink); font-size: 13.5px; }
.ws-pkg select { width: auto; min-width: 180px; }
.ws-card { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.ws-card.on { border-color: color-mix(in srgb, var(--wc) 40%, var(--line)); box-shadow: inset 4px 0 0 var(--wc); }
.ws-top { display: flex; align-items: center; gap: 12px; }
.ws-top b { font-size: 14.5px; }
.ws-n { margin-left: auto; font-size: 12px; color: var(--ink-2); font-weight: 550; }
.ws-top .tm-sw.on { background: var(--wc); }
.ws-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); align-items: start; }
.ws-row > label { font-size: 12.5px; font-weight: 650; color: var(--ink-3); padding-top: 4px; }
.ws-row > label small { display: block; font-weight: 500; }
.ws-row .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ws-row .tm-person em { font-style: normal; opacity: .6; }
.ws-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-sub { display: inline-flex; align-items: center; border: 1px dashed var(--line-2); border-radius: 9px; overflow: hidden; }
.ws-sub button { border: 0; background: none; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.ws-sub.on { border-style: solid; border-color: color-mix(in srgb, var(--wc) 45%, #fff); background: color-mix(in srgb, var(--wc) 8%, #fff); }
.ws-sub.on button { color: color-mix(in srgb, var(--wc) 80%, #000); }
.ws-sub input { width: 52px; height: 28px; border: 0; border-left: 1px solid color-mix(in srgb, var(--wc) 30%, #fff); background: #fff; font-size: 12.5px; text-align: center; outline: 0; }

/* Services & packages page */
.svc-sec { margin: 26px 0 12px; }
.svc-sec p { max-width: 780px; margin-top: 4px; }
.svc-grid, .svc-pk { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--wc, var(--line-2)); display: flex; flex-direction: column; gap: 10px; }
.svc-card.pk { border-top-color: #7c4dcc; }
.svc-top { display: flex; align-items: center; gap: 8px; }
.svc-top input[type="color"] { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.svc-name { font-weight: 650; font-size: 15px; flex: 1; min-width: 0; }
.svc-subs { display: flex; flex-direction: column; gap: 6px; }
.svc-sub { display: grid; grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1.2fr) 28px; gap: 6px; align-items: center; }
.svc-sub .input { font-size: 13px; }
.svc-add { border: 2px dashed var(--line-2); border-radius: 18px; background: none; min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-3); font-weight: 600; cursor: pointer; }
.svc-add:hover { border-color: var(--brand); color: var(--brand); }
.pk-st { display: flex; flex-direction: column; gap: 5px; }
.pk-st > b { font-size: 12.5px; }
.pk-st .chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pk-t { width: 56px; height: 26px; font-size: 12px; padding: 0 6px; }
.pk-tasks { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 650; }
.pk-tasks small { font-weight: 500; color: var(--ink-3); }
.pk-tasks code { font: 600 11px ui-monospace, Menlo, monospace; background: var(--hover); padding: 1px 5px; border-radius: 5px; }
.pk-tasks textarea { font: 12.5px/1.6 ui-monospace, Menlo, monospace; }
@media (max-width: 800px) {
  .svc-grid, .svc-pk { grid-template-columns: minmax(0, 1fr); }
  .svc-sub { grid-template-columns: minmax(0, 1fr) 110px 28px; }
  .svc-sub .svc-dom { grid-column: 1 / -1; }
  .ws-row { grid-template-columns: minmax(0, 1fr); }
}
.chan { overflow-x: auto; scrollbar-width: none; }
.chan::-webkit-scrollbar { display: none; }
.chan button { min-width: 150px; }
.chan .ws-add { flex: 0 0 auto; min-width: 0; }
.imp-auto { display: flex; align-items: flex-start; gap: 9px; padding: 10px 13px; border-radius: 12px; background: #f3effb; color: #5b3aa3; font-size: 12.5px; line-height: 1.6; }
.imp-auto svg { flex: none; margin-top: 3px; }
.imp-auto span { flex: 1; color: var(--ink-2); }
.imp-auto b { color: var(--ink); }
.imp-auto em { font-style: normal; font-weight: 600; font-size: 11.5px; background: #fff; border: 1px solid #e3d9f5; color: #5b3aa3; padding: 0 7px; border-radius: 6px; margin: 1px 2px; display: inline-block; }
.imp-f { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 6px; background: var(--hover); color: var(--ink-3); white-space: nowrap; }
.imp-f.set { background: var(--brand-soft); color: var(--brand); }
.imp-sum .blue { background: var(--blue-soft); color: var(--blue); }
.imp-flag.open { color: var(--blue); background: var(--blue-soft); }
.imp-table td.assign, .imp-table th.assign { min-width: 150px; background: #fbfaf7; }
.imp-table td.assign select { height: 28px; font-size: 12px; min-width: 140px; }
.imp-busy { display: inline-flex; align-items: center; gap: 8px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= Backlinks ================= */
.tk-views button i.bad { background: var(--danger); }
.lk { display: flex; flex-direction: column; gap: 14px; }
.lk-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.lk-stat { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.lk-stat b { font-size: 21px; letter-spacing: -.02em; }
.lk-stat span { font-size: 12px; color: var(--ink-2); font-weight: 550; }
.lk-stat.ok b { color: var(--ok); } .lk-stat.bad b { color: var(--danger); } .lk-stat.warn b { color: var(--warn); } .lk-stat.new b { color: var(--blue); } .lk-stat.muted b { color: var(--ink-3); }
.lk-stat.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.lk-targets { padding: 14px 16px; }
.lk-th { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.lk-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 22px; }
.lk-bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 12.5px; cursor: pointer; }
.lk-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-weight: 550; }
.lk-bar i { height: 8px; border-radius: 8px; background: var(--hover); overflow: hidden; display: block; }
.lk-bar em { display: block; height: 100%; border-radius: 8px; transition: width .5s; }
.lk-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.lk-bar-f { position: static; margin-top: 0; }
.lk-table-wrap { padding: 0; overflow-x: auto; }
.lk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lk-table th { text-align: left; font-size: 11.5px; font-weight: 650; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.lk-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lk-table tr:last-child td { border-bottom: 0; }
.lk-table tr.bad { background: #fffafa; }
.lk-table tr.warn { background: #fffdf6; }
.lk-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.lk-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.lk-st.ok { color: var(--ok); } .lk-st.ok i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.lk-st.bad { color: var(--danger); } .lk-st.bad i { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.lk-st.warn { color: var(--warn); } .lk-st.warn i { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.lk-st.new { color: var(--blue); } .lk-st.new i { background: var(--blue); }
.lk-st.muted { color: var(--ink-3); }
.lk-url a { display: flex; flex-direction: column; min-width: 0; max-width: 380px; }
.lk-url b { font-weight: 600; }
.lk-url small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-url a:hover b { text-decoration: underline; }
.lk-why { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.lk-why > span:first-child { flex-basis: 100%; }
.lk-flag { font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 6px; }
.lk-flag.bad { color: var(--danger); background: var(--danger-soft); }
.lk-flag.warn { color: var(--warn); background: var(--warn-soft); }
.lk-dpill { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 6px; border: 0; cursor: pointer; color: var(--ok, #13795b); background: var(--ok-soft, rgba(19, 121, 91, .1)); }
.lk-foot { margin-top: 14px; } .lk-foot .lk-note { margin-top: 6px; }
.lk-health { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.lk-health.ok { color: var(--ok); }
.lk-health i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.lk-health.warn { color: var(--warn); } .lk-health.warn i { background: var(--warn); }
.lk-dpill.warn { color: var(--warn); background: var(--warn-soft); }
.lk-dpill.bad { color: var(--danger); background: var(--danger-soft); }
.lk-dpill:hover { filter: brightness(.95); }
.lk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.lk-two-c { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.lk-two-c small { color: var(--ink-3); font-weight: 600; }
.lk-dtable td { vertical-align: top; font-size: 13px; }
@media (max-width: 560px) { .lk-two { grid-template-columns: 1fr; } }
.lk-kind { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.lk-note { display: flex; gap: 6px; align-items: flex-start; }
.lk-alert { border-color: #f3c9c5; background: linear-gradient(180deg, #fff7f6, #fff); padding: 14px 16px; margin-bottom: 18px; }
.lk-alert-h { display: flex; align-items: center; gap: 8px; color: var(--danger); margin-bottom: 8px; }
.lk-alert-h b { color: var(--ink); }
.lk-alert-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; }
.lk-alert-row:hover { background: rgba(0, 0, 0, .03); }
.lk-alert-row > span:not(.plogo) { flex: 1; display: flex; flex-direction: column; }
.lk-alert-row small { color: var(--ink-3); font-size: 12px; }
.lk-alert-row > svg { transform: rotate(180deg); color: var(--ink-3); }
@media (max-width: 800px) {
  .lk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lk-table th:nth-child(3), .lk-table td:nth-child(3), .lk-table th:nth-child(5), .lk-table td:nth-child(5), .lk-table th:nth-child(6), .lk-table td:nth-child(6) { display: none; }
  .lk-url a { max-width: 190px; }
  .lk-bar { grid-template-columns: 100px minmax(0, 1fr) 50px; }
}

/* ================= Work report ================= */
.rp-page { max-width: 1040px; }
.rp-public { min-height: 100dvh; overflow-y: auto; padding: 32px 16px 60px; background: var(--bg); }
.rp-public .rp-doc { max-width: 1000px; margin: 0 auto; }
.rp-doc { display: flex; flex-direction: column; gap: 18px; }
.rp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 22px 24px; border-radius: 22px; background: linear-gradient(135deg, #16181b, #2a2d33); color: #fff; }
.rp-client { display: flex; align-items: center; gap: 14px; }
.rp-client img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: #fff; }
.rp-head .eyebrow { color: rgba(255, 255, 255, .6); }
.rp-head h1 { font-size: 26px; color: #fff; }
.rp-head a { color: rgba(255, 255, 255, .7) !important; }
.rp-month { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rp-month select { width: auto; min-width: 150px; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.rp-kpis > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.rp-kpis b { font-size: 30px; letter-spacing: -.03em; font-weight: 650; }
.rp-kpis b em { font-style: normal; font-size: 18px; color: var(--ink-3); }
.rp-kpis span { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.rp-kpis small { font-size: 11.5px; color: var(--ink-3); }
.rp-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--wc); display: flex; flex-direction: column; gap: 14px; break-inside: avoid; }
.rp-sec h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.rp-sec h2 i { width: 10px; height: 10px; border-radius: 50%; background: var(--wc); }
.rp-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 26px; }
.rp-type { display: grid; grid-template-columns: minmax(0, 1fr) 110px 60px; gap: 10px; align-items: center; font-size: 13px; }
.rp-type span { color: var(--ink-2); font-weight: 550; }
.rp-type i { height: 8px; border-radius: 8px; background: var(--hover); overflow: hidden; display: block; }
.rp-type em { display: block; height: 100%; background: var(--wc); border-radius: 8px; }
.rp-type b { text-align: right; font-variant-numeric: tabular-nums; grid-column: 3; }
.rp-type > b:nth-child(2) { grid-column: 2 / 4; }
.rp-list h3 { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.rp-list h3 small { background: var(--hover); color: var(--ink-2); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.rp-link, .rp-work { display: grid; grid-template-columns: 76px minmax(0, 190px) minmax(0, 1fr) auto 70px; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.rp-work { grid-template-columns: 24px minmax(0, 1fr) auto 70px; }
.rp-link:last-child, .rp-work:last-child { border-bottom: 0; }
.rp-link b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-link small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-link:hover b { text-decoration: underline; }
.rp-link em, .rp-work em { font-style: normal; font-size: 11.5px; font-weight: 600; color: color-mix(in srgb, var(--wc) 80%, #000); background: color-mix(in srgb, var(--wc) 10%, #fff); padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.rp-link time, .rp-work time { font-size: 12px; color: var(--ink-3); text-align: right; }
.rp-ok { font-size: 11.5px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; text-align: center; }
.rp-ok.pub { color: var(--blue); background: var(--blue-soft); }
.rp-tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.rp-work b { font-weight: 550; }
.rp-foot { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 12.5px; padding: 8px; }
.rp-foot img { height: 22px; }
.share-url { display: flex; gap: 8px; }
.share-url .input { flex: 1; font-size: 13px; }
@media (max-width: 800px) {
  .rp-head { padding: 18px; }
  .rp-head h1 { font-size: 21px; }
  .rp-link { grid-template-columns: 64px minmax(0, 1fr) 56px; }
  .rp-link small, .rp-link em { display: none; }
  .rp-work { grid-template-columns: 24px minmax(0, 1fr) 56px; }
  .rp-work em { display: none; }
  .rp-type { grid-template-columns: minmax(0, 1fr) 80px 54px; }
}
@media print {
  body { overflow: visible !important; background: #fff; }
  .side, .mtop, .phead, .rp-month, .toasts, .scrim { display: none !important; }
  .app { display: block !important; height: auto !important; }
  .main, .content, .pbody, .project { overflow: visible !important; height: auto !important; display: block !important; }
  .rp-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-sec, .rp-kpis > div { box-shadow: none; }
  .rp-public { padding: 0; }
}
@media (max-width: 800px) {
  .tk-views { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .tk-views button { flex-direction: column; height: 50px; gap: 3px; font-size: 11px; padding: 0 2px; position: relative; }
  .tk-views button span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tk-views button i { position: absolute; top: 3px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; }
}

/* ======================================================================
   SEO audits (website + Business Profile)
   ====================================================================== */
.seo-page { max-width: 1180px; }
.sring { position: relative; width: var(--s); height: var(--s); flex: none; }
.sring svg { width: 100%; height: 100%; display: block; }
.sring .sr-bg { fill: none; stroke: var(--ring-bg, rgba(23, 25, 28, .07)); stroke-width: 7; }
.sring .sr-fg { fill: none; stroke-width: 7; stroke-linecap: round; stroke: var(--sc); animation: srIn 1.2s cubic-bezier(.2, .75, .2, 1) both; filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--sc) 35%, transparent)); }
@keyframes srIn { from { stroke-dasharray: 0 var(--c); } }
.sring.good { --sc: #12a36b; } .sring.mid { --sc: #e39a12; } .sring.low { --sc: #e5484d; } .sring.none { --sc: #c9c7c0; }
.sr-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sr-in b { font-size: calc(var(--s) * .3); font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sr-in span { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; font-weight: 550; max-width: 80%; line-height: 1.2; }
.sdelta { position: absolute; top: 2px; right: -6px; font-style: normal; font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.sdelta.up { color: #0e8a5a; } .sdelta.down { color: var(--danger); } .sdelta.flat { color: var(--ink-3); }
.spill { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 12.5px; padding: 2px 9px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.spill .sdelta { position: static; box-shadow: none; border: 0; padding: 0; background: none; font-size: 10.5px; }
.spill.good { background: #e3f6ec; color: #0b7a4f; } .spill.mid { background: #fdf1d8; color: #9a6200; } .spill.low { background: #fde8e8; color: #c22a2f; } .spill.none { background: var(--hover); color: var(--ink-3); }

.seo-hero { position: relative; display: flex; gap: 28px; align-items: center; justify-content: space-between; padding: 28px 30px; margin-bottom: 18px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand) 16%, transparent) 0%, transparent 52%), linear-gradient(135deg, #15171b 0%, #1d2026 60%, #22262d 100%); color: #f4f4f2;
  box-shadow: 0 30px 60px -36px rgba(15, 17, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.seo-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 34px 34px; mask: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.seo-hero .eyebrow { color: rgba(255, 255, 255, .55); }
.seo-hero h2 { font-size: 26px; letter-spacing: -.03em; margin: 6px 0 10px; color: #fff; }
.sh-l { position: relative; z-index: 1; min-width: 0; }
.sh-sched { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.sh-sched b { color: #fff; }
.sh-sched .red { color: #ff9f9a; }
.sh-last { color: rgba(255, 255, 255, .5); font-size: 12.5px; margin-top: 4px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sh-chips span { font-size: 11.5px; font-weight: 550; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }
.sh-sch { margin-top: 14px; color: rgba(255, 255, 255, .8) !important; border: 1px solid rgba(255, 255, 255, .16) !important; }
.sh-sch:hover { background: rgba(255, 255, 255, .08) !important; }
.sh-r { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.sh-ring { display: block; padding: 10px; border-radius: 20px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.sh-ring:hover { background: rgba(255, 255, 255, .04); }
.sh-ring.on { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.seo-hero .sring { --ring-bg: rgba(255, 255, 255, .1); }
.seo-hero .sr-in b { color: #fff; }
.seo-hero .sr-in span { color: rgba(255, 255, 255, .6); }
.seo-hero .sdelta { background: #2a2e35; border-color: rgba(255, 255, 255, .1); }
.seo-hero .sdelta.up { color: #4ade9b; } .seo-hero .sdelta.down { color: #ff8a84; }
.sh-trend { display: flex; flex-direction: column; gap: 6px; padding-left: 8px; }
.sh-trend small { color: rgba(255, 255, 255, .5); font-size: 11px; }
.strend { width: 170px; height: 52px; overflow: visible; }
.strend polygon { fill: url(#none); fill: rgba(74, 222, 155, .1); }
.strend polyline { fill: none; stroke: #4ade9b; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.strend circle { fill: #4ade9b; stroke: #15171b; stroke-width: 2; }

.seo-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sa { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.sa:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(23, 25, 28, .35); }
.sa.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sa-n { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sa b { font-size: 22px; letter-spacing: -.03em; font-weight: 650; font-variant-numeric: tabular-nums; }
.sa b em { font-style: normal; font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 2px; }
.sa i { display: block; height: 5px; border-radius: 9px; background: var(--hover); overflow: hidden; }
.sa i em { display: block; height: 100%; border-radius: 9px; background: var(--sc, #c9c7c0); animation: barIn .9s cubic-bezier(.2, .75, .2, 1) both; }
.sa.good { --sc: #12a36b; } .sa.mid { --sc: #e39a12; } .sa.low { --sc: #e5484d; }
.sa small { font-size: 11.5px; color: var(--ink-3); }
@keyframes barIn { from { width: 0 !important; } }
.seo-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--hover); border-radius: 12px; width: max-content; max-width: 100%; overflow-x: auto; }
.seo-tabs a { padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--ink-2); white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; transition: background .15s, color .15s; }
.seo-tabs a span { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(23, 25, 28, .07); color: var(--ink-2); }
.seo-tabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 25, 28, .12); }
.seo-tabs a:hover:not(.on) { color: var(--ink); }
.notice.warn { background: var(--warn-soft); color: #7a4f05; border-radius: 12px; padding: 10px 14px; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 13px; }

.iss-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.iss-bar .seg-mini button em { font-style: normal; opacity: .55; margin-left: 3px; }
.iss-bar .tk-search { margin-left: auto; }
.iss-list { display: flex; flex-direction: column; gap: 8px; }
.iss { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.iss.open { box-shadow: 0 18px 40px -28px rgba(23, 25, 28, .4); border-color: var(--line-2); }
.iss-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: none; border: 0; cursor: pointer; text-align: left; }
.iss-h:hover { background: var(--surface-2); }
.iss-h > svg:last-child { color: var(--ink-3); transition: transform .2s; }
.iss.open .iss-h > svg:last-child { transform: rotate(180deg); }
.iss-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.iss.fail .iss-dot, .sp-iss.fail .iss-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.iss-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.iss-t b { font-size: 14px; font-weight: 620; }
.iss-t small { color: var(--ink-3); font-size: 12px; }
.iss-sev { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; background: var(--warn-soft); color: #94600a; }
.iss.fail .iss-sev { background: var(--danger-soft); color: #b8282c; }
.iss-ai { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: #7c4dff; background: #f1ecff; }
.iss-b { padding: 2px 16px 16px; animation: fadeUp .25s ease both; }
.iss-why { font-size: 13px; color: var(--ink-2); margin: 0 0 12px 21px; }
.iss-why .src { display: inline-block; font-size: 11px; color: var(--ink-3); background: var(--hover); padding: 1px 8px; border-radius: 99px; margin-left: 4px; }
.iss-f { display: flex; justify-content: flex-end; margin-top: 10px; }
.fx { border-top: 1px solid var(--line); padding: 12px 0 4px 21px; }
.fx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.fx-url { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; color: var(--ink); background: var(--hover); padding: 3px 9px; border-radius: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-url:hover { background: var(--line); }
.fx-found { font-size: 12.5px; font-weight: 550; color: #94600a; }
.fx-found.fail { color: #b8282c; }
.fx-want { font-size: 12px; color: var(--ink-3); }
.fx-fix { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.fx-fix.ai { border-color: #e3dafd; background: linear-gradient(180deg, #faf8ff, #fff 60%); }
.fx-lbl { display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 12px; font-size: 11.5px; font-weight: 650; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.fx-fix.ai .fx-lbl { color: #6a3fe0; border-bottom-color: #ece6fe; }
.fx-text { padding: 11px 13px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.fx-code { margin: 0; padding: 12px 14px; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; background: #fbfaf8; }
.fx-fix.ai .fx-code { background: #fdfcff; }
.fx-basis { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 12.5px; color: var(--brand); font-weight: 600; }
.fx-basis .i { flex: none; margin-top: 2px; }
.fx-note { padding: 0 13px 10px; font-size: 12px; color: var(--ink-3); }
.tchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.tchip.done { background: var(--ok-soft); color: var(--ok); }
.seo-pages tr[data-act] { cursor: pointer; }
.seo-pages td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.seo-pages td small { font-size: 11px; }
.seo-pages .pp { margin: 0 3px 0 0; }
.seo-pages td:nth-child(9) { white-space: nowrap; }
.cmp-card .ptable-wrap { overflow-x: auto; }
.cmp-t { min-width: 640px; }
/* Exact items behind a result */
.fx-list { margin: 0 0 8px 18px; padding: 0; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 2px; }
.fx-list li { overflow-wrap: anywhere; }
.fx-use { font-size: 12px; color: var(--ink); margin-right: 6px; padding: 1px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
/* An area's checks */
.ac-panel { margin-bottom: 14px; }
.ac-list { display: grid; gap: 6px; margin-top: 10px; }
.ac { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.ac-h { width: 100%; display: grid; grid-template-columns: 14px 1fr auto auto 16px; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
.ac-h:hover { background: var(--hover); }
.ac-h > svg { transition: transform .15s; }
.ac.open .ac-h > svg { transform: rotate(90deg); }
.ac-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.ac.warn .ac-dot { background: var(--warn, #d48a00); } .ac.bad .ac-dot { background: var(--danger); }
.ac-t { min-width: 0; } .ac-t b { display: block; font-size: 13.5px; } .ac-t small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.ac-n { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; justify-content: flex-end; max-width: 340px; text-align: right; }
.ac-n i { font-style: normal; font-weight: 650; } .ac-n i.ok { color: var(--ok); } .ac-n i.warn { color: #b07400; } .ac-n i.bad { color: var(--danger); } .ac-n em { font-style: normal; color: var(--ink-3); }
.ac-p { font-size: 12px; color: var(--ink-3); white-space: nowrap; } .ac-p b { font-size: 14px; color: var(--ink); }
.ac-det { border-top: 1px solid var(--line); padding: 8px 12px 10px; display: grid; gap: 6px; max-height: 520px; overflow: auto; background: var(--surface-2); }
.ac-it { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 12.5px; }
.ac-it b { display: block; font-weight: 600; } .ac-it span { color: var(--ink-2); } .ac-it em { color: var(--ink-3); font-style: normal; }
.ac-s { font-weight: 700; text-align: center; } .ac-it.pass .ac-s { color: var(--ok); } .ac-it.warn .ac-s { color: #b07400; } .ac-it.fail .ac-s { color: var(--danger); }
.ac-skip { margin-top: 10px; }
/* Competitors */
.cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-card { margin-top: 14px; }
.cmp-gaps { display: grid; gap: 6px; margin: 4px 0 12px; }
.cmp-gaps h4 { font-size: 13px; margin: 0 0 2px; }
.cmp-gap { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.cmp-gap > span { min-width: 0; }
.cmp-gap .fx-list { margin-top: 6px; }
.cmp-t th, .cmp-t td { vertical-align: top; text-align: left; }
.cmp-t thead th small, .cmp-t td small { display: block; color: var(--ink-3); font-size: 11px; font-weight: 500; }
.cmp-t .me { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.cmp-txt { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-pages tr.open td { background: var(--surface-2); }
.sp-t { display: flex; flex-direction: column; min-width: 0; max-width: 420px; }
.sp-t small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwchip { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #eef4ff; color: #2c5bc8; }
.pp { display: inline-block; min-width: 22px; text-align: center; font-size: 11.5px; font-weight: 650; padding: 1px 6px; border-radius: 6px; margin-right: 4px; }
.pp.bad { background: var(--danger-soft); color: #b8282c; } .pp.warn { background: var(--warn-soft); color: #94600a; }
.sp-bar { position: relative; display: flex; align-items: center; gap: 8px; min-width: 110px; }
.sp-bar i { display: block; height: 6px; border-radius: 9px; background: var(--sc, #c9c7c0); flex: none; animation: barIn .9s cubic-bezier(.2, .75, .2, 1) both; max-width: 80px; }
.sp-bar.good { --sc: #12a36b; } .sp-bar.mid { --sc: #e39a12; } .sp-bar.low { --sc: #e5484d; }
.sp-bar b { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.sp-open td { padding: 6px 16px 14px !important; }
.sp-iss { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.sp-iss .muted { flex: 1; font-size: 12.5px; }
.sp-psi { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.kw-table td small { display: block; }
.kwhow { font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); }
.kwhow.set { background: var(--ok-soft); color: var(--ok); } .kwhow.none { background: var(--danger-soft); color: var(--danger); }
.ok-t { color: var(--ok); font-weight: 700; }
.kw-row { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 8px; margin-bottom: 8px; }
.kw-acts { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.fa { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 28px; margin-bottom: 16px; }
.fa .big { font-size: 34px; margin-bottom: 8px; }
.fa h3 { font-size: 19px; margin-bottom: 8px; }
.fa-steps { display: flex; flex-direction: column; gap: 10px; }
.fa-step { display: flex; gap: 12px; align-items: flex-start; }
.fa-step > span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: grid; place-items: center; flex: none; margin-top: 1px; }
.fa-step.ok > span { background: var(--ok); border: 0; color: #fff; }
.fa-step b { display: block; font-size: 13.5px; }
.fa-step small { color: var(--ink-3); font-size: 12.5px; }
.co-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
.co b { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.co b em { font-style: normal; color: var(--ink-3); font-weight: 500; }
.co ul { margin: 0; padding-left: 16px; color: var(--ink-2); font-size: 12.5px; line-height: 1.7; }
.hist { width: 100%; height: 220px; display: block; }
.hist line { stroke: var(--line); stroke-dasharray: 3 4; }
.hist text { fill: var(--ink-3); font-size: 10px; text-anchor: end; }
.hist .hl { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hist .hl.site, .hist .hd.site { stroke: #12a36b; } .hist .hd.site { fill: #fff; stroke-width: 2.5; }
.hist .hl.gbp, .hist .hd.gbp { stroke: #4f7cff; } .hist .hd.gbp { fill: #fff; stroke-width: 2.5; }
.hist-key { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--ink-2); }
.hist-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: -6px; }
.hist-key i.site { background: #12a36b; } .hist-key i.gbp { background: #4f7cff; }

/* Business Profile */
.gbp-link { display: flex; gap: 18px; padding: 26px; align-items: flex-start; }
.gl-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e8f5ee, #d6efe2); color: #0f9d58; flex: none; }
.gbp-link h3 { font-size: 17px; margin-bottom: 6px; }
.gl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.gbp-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 16px; }
.gbp-top .gp-riv { grid-column: 1 / -1; }
.gp { padding: 20px 22px; }
.gp-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.gp-h h3 { font-size: 18px; margin: 4px 0 6px; }
.gp-rate { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.gp-rate b { font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.stars { position: relative; display: inline-block; color: #e3e1da; letter-spacing: 1px; font-size: 14px; line-height: 1; }
.stars::before { content: '★★★★★'; position: absolute; inset: 0; width: var(--v); overflow: hidden; color: #f5a623; white-space: nowrap; }
.gp-dl { margin: 14px 0 10px; }
.gp-dl small { color: var(--ink-3); }
.gp-perf { padding: 18px 20px; }
.gpp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.gpp > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 9px; display: flex; flex-direction: column; gap: 2px; }
.gpp span { color: var(--ink-3); }
.gpp b { font-size: 19px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gpp small { font-size: 11.5px; color: var(--ink-2); }
.gp-search { margin-top: 14px; }
.gp-search > small { color: var(--ink-3); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.gp-search > div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.gp-riv { padding: 18px 20px; }
.gp-riv td small { display: block; color: var(--ink-3); font-size: 11.5px; }
.gp-riv tr.me td { background: #f2fbf6; }
.rv { margin-bottom: 16px; }
.rv h3 .count { margin-left: 6px; }
.rv-i { border-top: 1px solid var(--line); padding: 14px 0; transition: opacity .3s; }
.rv-i.replied { opacity: .45; }
.rv-h { display: flex; gap: 10px; align-items: center; }
.rv-h b { display: block; font-size: 13.5px; }
.rv-h span { font-size: 12px; color: var(--ink-3); }
.rv-t { margin: 8px 0 10px 40px; font-size: 13.5px; color: var(--ink-2); }
.rv-d { margin-left: 40px; width: calc(100% - 40px); background: #faf8ff; border-color: #e3dafd; }
.rv-a { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.gp-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 420px; overflow: auto; }
.gp-opt { text-align: left; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.gp-opt:hover:not([disabled]) { border-color: var(--ink); }
.gp-opt[disabled] { opacity: .55; cursor: default; }
.gp-opt.best { border-color: var(--ok); background: #f2fbf6; }
.gp-opt b em { font-style: normal; font-size: 11px; color: var(--ok); background: var(--ok-soft); padding: 1px 7px; border-radius: 99px; margin-left: 6px; }
.gp-opt small { color: var(--ink-3); font-size: 12px; }

/* SEO health (dashboard) */
#seo-health:empty { display: none; }
.seo-health { margin-bottom: 18px; }
.shp { display: grid; grid-template-columns: auto 1fr 1.1fr; gap: 26px; align-items: center; }
.shp-bands { display: flex; flex-direction: column; gap: 9px; }
.shb { position: relative; display: flex; justify-content: space-between; font-size: 12.5px; padding: 7px 10px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.shb i { position: absolute; left: 0; top: 0; bottom: 0; opacity: .14; animation: barIn 1s cubic-bezier(.2, .75, .2, 1) both; }
.shb.good i { background: #12a36b; } .shb.mid i { background: #e39a12; } .shb.low i { background: #e5484d; }
.shb span, .shb b { position: relative; }
.shp-flags { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.shp-flags span { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 550; }
.shp-flags .warn { color: #94600a; } .shp-flags .bad { color: var(--danger); }
.shp-list { display: flex; flex-direction: column; gap: 2px; }
.shp-list > small { color: var(--ink-3); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.shl { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: 13px; font-weight: 550; }
.shl:hover { background: var(--hover); }
.shl > span:not(.plogo):not(.spill):not(.shl-g) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shl-g { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--ink-3); }

/* Owner settings */
.seo-set .ss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ss-days { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 4px 0 8px; }
.ss-spend { margin: 4px 0 14px; }
.ss-spend small { color: var(--ink-2); font-size: 12.5px; }
.usage-bar { height: 7px; border-radius: 9px; background: var(--hover); overflow: hidden; margin-bottom: 6px; }
.usage-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #7c4dff, #b06bff); animation: barIn 1s ease both; }
.ss-gbp { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13px; margin-bottom: 10px; }
.ss-gbp.ok { background: var(--ok-soft); color: #0b6b47; } .ss-gbp.bad { background: var(--warn-soft); color: #7a4f05; }
.ss-guide { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface-2); }
.ss-guide summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.ss-guide ol { margin: 10px 0 2px; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.ss-guide li { margin-bottom: 6px; }
.modal.wide { width: min(860px, calc(100vw - 32px)); }
.sr { max-height: 64vh; overflow: auto; }
.sr-h { font-size: 15px; margin: 6px 0 10px; }
.sr-area { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 8px; margin-bottom: 12px; }
.sr-ah { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sr-ah label { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); }
.sr-ah input { width: 64px; }
.sr-c { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.sr-c:last-child { border-bottom: 0; }
.sr-c span { flex: 1; }
.sr-c b { display: block; font-size: 13px; font-weight: 600; }
.sr-c b em { font-style: normal; font-size: 10px; color: #6a3fe0; background: #f1ecff; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
.sr-c small { color: var(--ink-3); font-size: 12px; }
.sr-c i { font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.switch.sm { transform: scale(.85); transform-origin: left center; }
.sc-table td small { display: block; color: var(--ink-3); font-size: 11.5px; }

/* Task drawer: where a task came from */
.td-src { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.td-src a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--hover); padding: 4px 10px; border-radius: 99px; }
.td-src a:hover { color: var(--ink); background: var(--line); }

/* ======================================================================
   Meeting notes
   ====================================================================== */
.mt-page { max-width: 1240px; }
.mt-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.mt-list { position: sticky; top: 0; display: flex; flex-direction: column; gap: 6px; }
.mt-lh { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; }
.mt-lh h2 { font-size: 18px; }
.mt-card { display: flex; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid transparent; transition: background .15s, border-color .15s, box-shadow .15s; }
.mt-card:hover { background: var(--surface); border-color: var(--line); }
.mt-card.on { background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow); }
.mt-date { width: 44px; height: 48px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; box-shadow: var(--shadow-sm); }
.mt-card.on .mt-date { background: var(--ink); border-color: var(--ink); color: #fff; }
.mt-date b { font-size: 17px; line-height: 1; letter-spacing: -.02em; }
.mt-date span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
.mt-card.on .mt-date span { color: rgba(255, 255, 255, .6); }
.mt-ci { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mt-ci > b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-ci > small { display: flex; align-items: center; gap: 6px; }
.mt-shared { display: inline-flex; gap: 3px; align-items: center; font-size: 10.5px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 1px 6px; border-radius: 99px; }
.mt-prog { display: block; height: 4px; border-radius: 9px; background: var(--hover); overflow: hidden; margin-top: 2px; }
.mt-prog i { display: block; height: 100%; background: var(--ok); border-radius: 9px; }
.warn-t { color: #94600a; font-weight: 600; font-size: 11.5px; }
.mt-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; margin-bottom: 14px; }
.mt-back { display: none; }
.mt-hi { flex: 1; min-width: 0; }
.mt-hi h2 { font-size: 22px; margin: 4px 0 10px; letter-spacing: -.025em; }
.mt-att { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-src { font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--hover); padding: 2px 8px; border-radius: 99px; }
.mt-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mt-share { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.mt-carry { padding: 16px 18px; margin-bottom: 14px; background: linear-gradient(180deg, #fffbf1, #fff); border-color: #f3e5c3; }
.mt-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.mt-notes { padding: 18px 20px; }
.mt-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.mt-text.clip { max-height: 320px; overflow: hidden; mask: linear-gradient(#000 75%, transparent); }
.mt-ta { width: 100%; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mt-ea { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.mt-sum { padding: 18px 20px; background: linear-gradient(180deg, #faf8ff, #fff 70%); border-color: #ebe4fd; }
.mt-sum h3 { display: flex; align-items: center; gap: 7px; color: #5b34d6; font-size: 14px; margin-bottom: 10px; }
.mt-sum h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 14px 0 6px; }
.mt-st { font-size: 13.5px; line-height: 1.65; }
.mt-dec { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.mt-dec li::marker { color: #7c4dff; }
.mt-items { padding: 18px 20px 14px; }
.mt-items .panel-h h3 { display: flex; align-items: center; gap: 7px; }
.mi { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); animation: fadeUp .3s ease both; }
.mi.skip { opacity: .45; }
.mi-on { margin-top: 9px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.mi-b { flex: 1; min-width: 0; }
.mi-title { width: 100%; border: 1px solid transparent; background: transparent; font-weight: 600; font-size: 14px; padding: 5px 8px; margin-left: -8px; border-radius: 8px; }
.mi-title:hover { border-color: var(--line); }
.mi-title:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.mi-q { display: block; color: var(--ink-3); font-size: 12px; font-style: italic; margin: 1px 0 8px; }
.mi-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mi-who { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-right: 4px; }
.mi-p { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 4px 2px 3px; border-radius: 99px; background: var(--hover); }
.mi-p button { border: 0; background: none; cursor: pointer; color: var(--ink-3); padding: 0 4px; font-size: 14px; line-height: 1; }
.input.xs { height: 28px; padding: 0 8px; font-size: 12px; border-radius: 8px; }
.mi-add { width: auto; max-width: 140px; }
.mi.made { align-items: center; }
.mi-st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.mi.made.done .mi-st { background: var(--ok-soft); color: var(--ok); }
.mi.made b { font-size: 13.5px; }
.mi.made.done b { text-decoration: line-through; color: var(--ink-3); }
.mi.made small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.mt-go { display: flex; gap: 14px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.mt-empty { padding: 60px 30px; }
.mn-lh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mn-lh label:first-child { font-weight: 600; font-size: 13px; }
.spinner.xs { width: 13px; height: 13px; border-width: 2px; display: inline-block; vertical-align: -2px; margin-right: 6px; }

/* Skeletons while things load */
.skel-hero, .skel-row i, .skel-list i { display: block; border-radius: 18px; background: linear-gradient(90deg, #eceae4 0%, #f6f5f1 40%, #eceae4 80%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
.skel-hero { height: 190px; margin-bottom: 18px; border-radius: 22px; }
.skel-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.skel-row i { height: 96px; border-radius: 16px; }
.skel-list { display: flex; flex-direction: column; gap: 8px; }
.skel-list i { height: 62px; border-radius: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .seo-areas { grid-template-columns: repeat(3, 1fr); }
  .shp { grid-template-columns: auto 1fr; }
  .shp-list { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .seo-hero { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .sh-r { justify-content: center; flex-wrap: wrap; }
  .sh-trend { display: none; }
  .gbp-top, .fa, .seo-set .ss-grid, .mt-grid { grid-template-columns: 1fr; }
  .co-grid { grid-template-columns: 1fr 1fr; }
  .mt-wrap { grid-template-columns: 1fr; }
  .mt-wrap.has-sel .mt-list { display: none; }
  .mt-wrap:not(.has-sel) .mt-main { display: none; }
  .mt-back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--hover); flex: none; }
  .mt-head { flex-wrap: wrap; }
  .mt-acts { width: 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .seo-areas { grid-template-columns: repeat(2, 1fr); }
  .sh-ring .sring { --s: 108px !important; }
  .gpp { grid-template-columns: repeat(2, 1fr); }
  .co-grid { grid-template-columns: 1fr; }
  .kw-row { grid-template-columns: 1fr auto; }
  .kw-row input:nth-child(2) { grid-column: 1; }
  .iss-sev { display: none; }
  .iss-bar .tk-search { margin-left: 0; width: 100%; }
  .shp { grid-template-columns: 1fr; justify-items: start; }
  .mt-go { flex-direction: column; align-items: stretch; }
  .fx { padding-left: 0; }
  .iss-why { margin-left: 0; }
  .rv-t, .rv-d { margin-left: 0; width: 100%; }
  .seo-pages th:nth-child(n+2):nth-child(-n+6), .seo-pages td:nth-child(n+2):nth-child(-n+6), .seo-pages th:nth-child(8), .seo-pages td:nth-child(8) { display: none; }
  .cmp-t { font-size: 12px; }
  .ac-h { grid-template-columns: 14px 1fr auto; } .ac-n { grid-column: 2 / -1; justify-content: flex-start; text-align: left; } .ac-p { grid-column: 3; grid-row: 1; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* ======================================================================
   Premium layer: an ink sidebar, deeper surfaces, calmer motion
   ====================================================================== */
:root {
  --ease: cubic-bezier(.2, .75, .2, 1);
  --shadow: 0 1px 1px rgba(23, 25, 28, .03), 0 2px 4px -2px rgba(23, 25, 28, .05), 0 14px 32px -22px rgba(23, 25, 28, .22);
  --shadow-lg: 0 30px 70px -20px rgba(15, 17, 20, .32), 0 2px 8px rgba(15, 17, 20, .06);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
body { font-feature-settings: 'ss01', 'cv11'; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.input:focus, select.input:focus, textarea.input:focus { border-color: color-mix(in srgb, var(--brand) 60%, var(--line-2)); box-shadow: var(--ring); }

/* Sidebar: ink, with the brand glowing faintly at the top */
.side {
  --ink: #f3f3f0; --ink-2: #b4b8c0; --ink-3: #7b808a; --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12); --hover: rgba(255, 255, 255, .06); --surface: rgba(255, 255, 255, .07);
  background: radial-gradient(140% 50% at 0% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 60%), linear-gradient(180deg, #121419 0%, #0d0f12 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, .04); color: var(--ink);
}
.side .brand, .side .brand-t b { color: #fff; }
.side .nav-item { color: #a9adb6; }
.side .nav-item svg { color: #8a8f99; transition: color .15s; }
.side .nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side .nav-item:hover svg { color: #d6d8dd; }
.side .nav-item.on { background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 18px -12px rgba(0, 0, 0, .8); }
.side .nav-item.on svg { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.side .nav-item.on::before { background: color-mix(in srgb, var(--brand) 60%, #fff); box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 80%, transparent); }
.side .nav-sec { color: #626772; }
.side .nav-sec button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side .count { color: #7b808a; }
.side .count.hot { background: color-mix(in srgb, var(--brand) 85%, #fff); color: #fff; box-shadow: 0 0 0 2px #121419; }
.side .count.red { background: var(--danger); color: #fff; box-shadow: 0 0 0 2px #121419; }
html[data-style="glass"] .side .count.red { box-shadow: none; }
.side .side-find { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); color: #c9ccd2; }
.side .side-find input { color: #fff; }
.side .side-find input::placeholder { color: #6e737d; }
.side .side-find kbd { background: rgba(255, 255, 255, .08); color: #9da1aa; border-color: rgba(255, 255, 255, .1); }
.side .side-foot { border-top-color: rgba(255, 255, 255, .06); }
.side .me-card:hover { background: rgba(255, 255, 255, .06); }
.side .me-card .who b .mention.me { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #fff; }
.side .side-install { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); color: #c9ccd2; }
.side .side-install:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.side .side-tog:hover { background: rgba(255, 255, 255, .08); }
.side .pin-star { color: #6e737d; }
.side .pin-star.on { color: #f5c04a; }
.side .side-grp { color: #626772; }
.side .side-all { border-color: rgba(255, 255, 255, .08); color: #a9adb6; }
.side .avatar { box-shadow: 0 0 0 2px #15171c; }
.side ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); background-clip: padding-box; }
.app.side-mini .side::after { background: rgba(255, 255, 255, .2); }
.app.side-mini.side-peek .side { box-shadow: 30px 0 70px -24px rgba(0, 0, 0, .55); }
.app.side-mini:not(.side-peek) .nav-sec::before { background: rgba(255, 255, 255, .1); }

/* Surfaces */
.content { background: radial-gradient(1100px 420px at 75% -160px, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%), radial-gradient(800px 300px at 0% 0%, rgba(124, 77, 255, .035), transparent 70%), var(--bg); }
.card { box-shadow: var(--shadow); }
a.card:hover, .folder-card:hover, .tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23, 25, 28, .04), 0 22px 40px -26px rgba(23, 25, 28, .35); }
.page { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.panel-h h3 { display: flex; align-items: center; gap: 7px; }
.eyebrow { letter-spacing: .1em; }

/* Buttons */
.btn { transition: background .15s, border-color .15s, box-shadow .2s, transform .08s; }
.btn.dark { background: linear-gradient(180deg, #2a2d34, #15171b); border-color: #15171b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(15, 17, 20, .3), 0 6px 14px -8px rgba(15, 17, 20, .5); }
.btn.dark:hover { background: linear-gradient(180deg, #33363e, #1c1e23); }
.btn.green { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 14px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn:not(.ghost):not(.dark):not(.green):hover { border-color: color-mix(in srgb, var(--ink) 18%, var(--line-2)); }

/* Project header tabs: a soft glowing underline */
.phead.dark .tabs a { position: relative; border-bottom-color: transparent !important; transition: color .15s; }
.phead.dark .tabs a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: #fff; transform: scaleX(0); transition: transform .3s var(--ease); }
.phead.dark .tabs a.on::after { transform: scaleX(1); box-shadow: 0 0 14px rgba(255, 255, 255, .6); }

/* Tables */
.ptable thead th, .mini-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 650; }
.ptable tbody tr, .mini-table tbody tr { transition: background .12s; }

/* Modal and toast */
.modal-bg { background: rgba(13, 15, 18, .42); backdrop-filter: blur(6px) saturate(120%); }
.modal { border: 1px solid rgba(255, 255, 255, .6); animation: modalIn .28s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toast { background: rgba(21, 23, 27, .92); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 11px 18px; }

/* Dashboard tiles: richer icon chips */
.tile-ic { border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 10px -6px rgba(23, 25, 28, .35); }
.tile-n { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.ss-kl { display: block; font-size: 13px; margin: 4px 0 6px; }
.seo-set .field { margin-top: 14px; }
.seo-set .switch-row { margin-top: 6px; }
.seo-set .key-row { margin-bottom: 14px; }
.sh-sched { display: block; }
.sh-sched svg { vertical-align: -2px; margin-right: 6px; }

/* ---------- Help centre and guide ---------- */
.hp-page { max-width: 1180px; }
.hp-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.hp-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100dvh - 40px); overflow: auto; padding-bottom: 12px; }
.hp-search { width: 100%; flex: none; height: 40px; }
.hp-sec { display: flex; flex-direction: column; gap: 1px; }
.hp-sec small { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 4px; }
.hp-sec a { padding: 6px 10px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.hp-sec a:hover { background: var(--surface-2); color: var(--ink); }
.hp-sec a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.hp-main { min-width: 0; }
.hp-hero { padding: 28px 30px; margin-bottom: 8px; background: linear-gradient(135deg, var(--brand-soft), var(--surface) 70%); }
.hp-hero h1 { font-size: 28px; margin: 4px 0 6px; letter-spacing: -.02em; }
.hp-hero p { color: var(--ink-2); max-width: 620px; }
.hp-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hp-h { margin: 22px 0 10px; font-size: 15px; }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hp-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.hp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hp-card span { color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.hp-card em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 10.5px; font-weight: 650; padding: 2px 7px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.hp-card b { padding-right: 56px; }
.hp-art { padding: 30px 34px; }
.hp-art h1 { font-size: 26px; letter-spacing: -.02em; margin: 4px 0 4px; }
.hp-sum { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.hp-body { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.hp-body p { margin: 0 0 12px; }
.hp-body ul, .hp-body ol { margin: 0 0 14px; padding-left: 20px; }
.hp-body li { margin: 5px 0; }
.hp-body code, .hp-body kbd { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.hp-steps { counter-reset: hs; list-style: none; padding-left: 0 !important; }
.hp-steps li { counter-increment: hs; position: relative; padding-left: 36px; margin: 10px 0 !important; }
.hp-steps li::before { content: counter(hs); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.hp-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin: 14px 0; font-size: 13.5px; color: var(--ink-2); }
.hp-tip .i { color: var(--brand); flex: none; margin-top: 3px; }
.hp-code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; margin: 0 0 14px; }
.hp-faq dt { font-weight: 650; margin-top: 14px; }
.hp-faq dd { margin: 3px 0 0; color: var(--ink-2); }
.hp-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.hp-public { min-height: 100dvh; background: var(--bg); }
.hp-top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.hp-public .hp-page { margin: 0 auto; padding: 24px; }
@media (max-width: 860px) {
  .hp-key { grid-template-columns: 1fr; }
  .hp-wrap { grid-template-columns: 1fr; }
  .hp-nav { position: static; max-height: none; }
  .hp-nav .hp-sec { display: none; }
  .hp-art { padding: 22px 18px; }
  .hp-hero { padding: 22px 18px; }
  .hp-public .hp-page { padding: 16px; }
  .hp-foot .btn.ghost { display: none; }
}

.hp-fig { margin: 20px 0 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.hp-fig a { display: block; line-height: 0; }
.hp-fig img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.hp-fig figcaption { padding: 12px 16px 14px; font-size: 13.5px; }
.hp-fig figcaption > b { display: block; margin-bottom: 6px; }
.hp-key { list-style: none; counter-reset: hk; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.hp-key li { counter-increment: hk; position: relative; padding-left: 28px; margin: 0 !important; color: var(--ink-2); line-height: 1.45; }
.hp-key li::before { content: counter(hk); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #ff5a1f; color: #fff; font-weight: 700; font-size: 11.5px; display: grid; place-items: center; }
.hp-card.has-img { padding-top: 0; overflow: hidden; }
.hp-thumb { display: block; height: 116px; margin: 0 -18px 10px; background-size: cover; background-position: top left; border-bottom: 1px solid var(--line); }
.hp-card.has-img em { top: 10px; right: 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); background: var(--surface); }
.hp-card.has-img b { padding-right: 0; }

/* ---------- First-run tour ---------- */
.tour { position: fixed; inset: 0; z-index: 400; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 4px var(--brand), 0 0 0 9999px rgba(10, 12, 16, .55); transition: all .28s cubic-bezier(.3, .7, .2, 1); pointer-events: none; }
.tour-dim { position: fixed; inset: 0; background: rgba(10, 12, 16, .55); }
.tour-card { position: fixed; width: min(340px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 18px 18px 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); animation: tourIn .25s ease; }
.tour-card.center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100vw - 24px)); padding: 26px 24px 16px; }
.tour-card h3 { margin: 4px 0 6px; font-size: 17px; letter-spacing: -.01em; }
.tour-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.tour-card code, .tour-card kbd { font: 12px ui-monospace, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }
.tour-n { font-size: 11.5px; font-weight: 650; color: var(--brand); letter-spacing: .04em; text-transform: uppercase; }
.tour-dots { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0 12px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width .2s; }
.tour-dots i.done { background: color-mix(in srgb, var(--brand) 45%, transparent); }
.tour-dots i.on { width: 18px; background: var(--brand); }
.tour-acts { display: flex; gap: 6px; align-items: center; }
@keyframes tourIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
html[data-motion="reduce"] .tour-hole, html[data-motion="reduce"] .tour-card { transition: none; animation: none; }

/* ---------- Website watch ---------- */
.site-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 9px 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; border: 0; cursor: default; }
.site-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.site-chip.up { color: #57d39b; background: rgba(87, 211, 155, .14); }
.site-chip.down { color: #fff; background: #e5484d; cursor: pointer; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: sdPulse 1.8s infinite; }
@keyframes sdPulse { 70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.site-down { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 20px; background: #fdecea; border-bottom: 1px solid #f6c9c4; color: #7a1f17; font-size: 13.5px; }
.site-down .sd-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; flex: none; box-shadow: 0 0 0 4px rgba(229, 72, 77, .18); animation: sdPulse 1.8s infinite; }
.site-down .sd-t { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.site-down .sd-t span { color: #9b3a31; font-size: 12.5px; }
.site-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; flex: none; margin-left: auto; box-shadow: 0 0 0 3px rgba(229, 72, 77, .2); }
.site-dot + .count { margin-left: 6px; }
/* ---------- Google post check (in a task's thread) ---------- */
.rrow.pcheck { border-radius: 12px; padding: 10px 12px; margin: 6px 0; gap: 10px; }
.rrow.pcheck.ok { background: #e9f7ef; }
.rrow.pcheck.bad { background: #fdecea; }
.rrow.pcheck.warn { background: #fff4e0; }
.pc-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; }
.pcheck.ok .pc-ic { color: #1a7f4b; } .pcheck.bad .pc-ic { color: #c9362e; } .pcheck.warn .pc-ic { color: #a35a00; }
.pc-list { margin: 6px 0 4px; padding-left: 18px; font-size: 13px; }
.pc-list.bad { color: #9b231a; font-weight: 550; }
.pc-post { margin: 6px 0; padding: 8px 12px; border-left: 3px solid rgba(0, 0, 0, .12); background: rgba(255, 255, 255, .6); border-radius: 0 8px 8px 0; font-size: 13px; }
.pc-post small { display: block; margin-top: 4px; color: var(--ink-3); }
/* ---------- Who sees Backlinks ---------- */
.la-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.la-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.la-opt input { margin-top: 3px; accent-color: var(--brand); }
.la-opt span { display: flex; flex-direction: column; }
.la-opt small { color: var(--ink-2); font-size: 12.5px; }
.la-people { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px 30px; }
.la-people .chip { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }

.ig-server { margin-bottom: 16px; }
.ig-server .ig-sub { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }

/* ---------- Autopilot (autopilot.js) ---------- */
.ap-page { max-width: 1180px; }
.ap-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px 26px; margin-bottom: 16px; border-radius: 22px; background: linear-gradient(135deg, #10241d 0%, #173a2e 55%, #1d4a3a 100%); color: #eef5f1; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ap-hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(121, 230, 178, .22), transparent 70%); pointer-events: none; }
.ap-hero .eyebrow { color: #9fd9bf; display: flex; align-items: center; gap: 6px; }
.ap-hero h2 { font-size: 24px; color: #fff; }
.ap-hero p { margin-top: 6px; color: #c4dcd1; max-width: 520px; font-size: 13.5px; }
.ap-hero p b { color: #fff; }
.ap-hero .red { color: #ffb4ab; }
.ap-onoff { display: inline-flex; gap: 10px; margin-top: 12px; padding: 6px 10px 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; }
.ap-kpis { display: grid; grid-template-columns: repeat(5, minmax(108px, 1fr)); gap: 8px; position: relative; z-index: 1; }
.ap-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); transition: background .15s, transform .15s; }
.ap-kpi:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.ap-kpi small { font-size: 11.5px; color: #a9cbbd; font-weight: 600; }
.ap-kpi b { font-size: 24px; font-weight: 650; letter-spacing: -.03em; color: #fff; }
.ap-kpi span { font-size: 11.5px; color: #c4dcd1; }
.ap-kpi .ap-d.up { color: #8ef0c1; } .ap-kpi .ap-d.down { color: #ffb4ab; }
.ap-tabs { margin-bottom: 18px; }
.ap-grid2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.ap-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ap-page .panel, .ap-wait .panel { padding: 18px 20px; }
.ap-page .card.panel + .card.panel { margin-top: 0; }
.ap-main > .card.panel { margin-bottom: 16px; }
.ap-steps { display: flex; flex-direction: column; gap: 2px; }
.ap-step, .ap-srow { display: flex; gap: 12px; align-items: flex-start; padding: 9px 8px; border-radius: 10px; }
.ap-step:hover { background: var(--hover); }
.ap-step b, .ap-srow b { display: block; font-size: 13.5px; font-weight: 600; }
.ap-step small, .ap-srow small { display: block; color: var(--ink-3); font-size: 12px; word-break: break-word; }
.ap-srow > div { flex: 1; min-width: 0; }
.ap-srow + .ap-srow { border-top: 1px solid var(--line); border-radius: 0; }
.ap-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; color: #fff; }
.ok > .ap-dot { background: var(--brand); border-color: var(--brand); }
.ap-dot .i { width: 12px; height: 12px; stroke-width: 3; }
.ap-free { display: flex; flex-direction: column; gap: 4px; }
.ap-fr { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ap-fr:last-child { border-bottom: 0; }
.ap-fr b { font-size: 13.5px; font-weight: 600; display: block; }
.ap-fr small { font-size: 12px; color: var(--ink-3); display: block; }
.ap-fr .seg-mini button { padding: 0 9px; }
.ap-ki { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.ap-ki.sm { width: 26px; height: 26px; border-radius: 8px; }
.ap-note { margin-top: 10px; }
.ap-cad { display: flex; flex-direction: column; gap: 6px; }
.ap-cadr { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; padding: 4px 0; }
.ap-cadr .input { width: 74px; text-align: center; }
.ap-sched { display: flex; flex-direction: column; }
.ap-sched > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ap-sched > div:last-child { border-bottom: 0; }
.ap-sched small { color: var(--ink-3); text-align: right; }
.ap-qh { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ap-qh h3 { font-size: 17px; }
.ap-item { padding: 16px 18px; margin-bottom: 10px; transition: box-shadow .15s, transform .15s; }
.ap-item:hover { box-shadow: var(--shadow-lg); }
.ap-item.failed { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.ap-it { display: flex; align-items: center; gap: 12px; }
.ap-tt { flex: 1; min-width: 0; }
.ap-tt b { display: block; font-size: 14.5px; font-weight: 620; }
.ap-tt small { color: var(--ink-3); font-size: 12px; }
.ap-sel input { width: 16px; height: 16px; accent-color: var(--brand); }
.ap-score { flex: none; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 700; font-size: 12.5px; background: var(--hover); color: var(--ink-2); }
.ap-score.hi { background: var(--danger-soft); color: var(--danger); }
.ap-score.mid { background: var(--warn-soft); color: var(--warn); }
.ap-score.lo { background: var(--blue-soft); color: var(--blue); }
.ap-why { color: var(--ink-2); font-size: 13px; margin: 8px 0 0 70px; }
.ap-b { margin: 12px 0 0 70px; display: flex; flex-direction: column; gap: 8px; }
.ap-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ap-item .notice { margin: 10px 0 0 70px; }
.ap-serp { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ap-serp small { color: var(--ok); font-size: 12px; }
.ap-serp input { font-size: 15px; color: #1a0dab; font-weight: 500; }
.ap-len { font-size: 11px; font-style: normal; color: var(--ink-3); align-self: flex-end; margin-top: -4px; }
.ap-len.over { color: var(--danger); }
.ap-alts { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ap-alts div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px; }
.ap-alts code, .ap-redir code { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-redir { display: flex; align-items: center; gap: 8px; }
.ap-redir .input { flex: 1; }
.ap-det summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.ap-det pre, .ld-how pre { max-height: 260px; overflow: auto; font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; white-space: pre-wrap; word-break: break-all; }
.ap-quote { margin: 0; padding: 8px 12px; border-left: 3px solid #f5b301; background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: 13px; color: var(--ink-2); }
.ap-mail { display: flex; flex-direction: column; gap: 6px; }
.ap-people { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-hist { margin-top: 18px; }
.ap-hr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ap-hr:last-child { border-bottom: 0; }
.ap-hr > div { flex: 1; min-width: 0; }
.ap-hr b { font-size: 13px; font-weight: 600; display: block; }
.ap-hr small { color: var(--ink-3); font-size: 12px; }
.ap-hr.rejected b, .ap-hr.expired b, .ap-hr.undone b { color: var(--ink-3); text-decoration: line-through; }
.ap-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ap-stat { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.ap-stat small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.ap-stat b { font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.ap-d { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.ap-d.up { color: var(--ok); } .ap-d.down { color: var(--danger); }
.ap-ins { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ap-ins:last-child { border-bottom: 0; }
.ap-ins b { display: block; font-size: 13.5px; font-weight: 600; }
.ap-ins small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.ap-bars { display: flex; flex-direction: column; gap: 8px; }
.ap-bars > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) 50px; gap: 4px 10px; align-items: center; font-size: 13px; }
.ap-bars i { height: 8px; border-radius: 8px; background: var(--hover); overflow: hidden; }
.ap-bars em { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), #4cc38a); }
.ap-bars b { text-align: right; font-weight: 600; }
.ap-bars small { grid-column: 2 / -1; color: var(--ink-3); font-size: 11.5px; margin-top: -4px; }
.ap-tblw { overflow-x: auto; margin: 0 -4px; }
.ap-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ap-tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ap-tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ap-tbl tr:last-child td { border-bottom: 0; }
.ap-tbl td b { font-weight: 600; }
.ap-url { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-pos { display: inline-grid; place-items: center; min-width: 32px; height: 26px; border-radius: 8px; font-weight: 700; background: var(--hover); color: var(--ink-2); }
.ap-pos.top { background: var(--ok-soft); color: var(--ok); }
.ap-pos.p1 { background: var(--blue-soft); color: var(--blue); }
.ap-pos.none { color: var(--ink-3); }
.ap-spark { width: 90px; height: 26px; }
.ap-spark polyline { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-gridwrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ap-mgrid { display: grid; grid-template-columns: repeat(var(--n), 34px); gap: 6px; padding: 14px; border-radius: 16px; background: radial-gradient(circle at 50% 50%, #e9f2ee, #f3f1ea); }
.ap-mgrid span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .3); }
.ap-mgrid .g1 { background: #1e9e6a; } .ap-mgrid .g2 { background: #e2a316; } .ap-mgrid .g3 { background: #d6493f; font-size: 10px; }
.ap-mgrid .c { outline: 3px solid var(--ink); outline-offset: 2px; }
.ap-gl { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ap-gl small { color: var(--ink-3); font-size: 12px; }
.ap-gs { display: flex; gap: 22px; margin: 4px 0; }
.ap-gs b { font-size: 24px; font-weight: 650; letter-spacing: -.03em; display: block; }
.ap-aeo { border-top: 1px solid var(--line); padding: 8px 0; }
.ap-aeo summary { cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.ap-aeo p { font-size: 13px; color: var(--ink-2); margin: 6px 0; }
.ap-kwf { margin-bottom: 12px; flex-wrap: wrap; height: auto; }
.ap-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ap-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-ccol { background: var(--hover); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.ap-ch { font-size: 12.5px; font-weight: 650; color: var(--ink-2); padding: 2px 4px; display: flex; justify-content: space-between; }
.ap-ch span { color: var(--ink-3); }
.ap-card { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.ap-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.ap-card b { font-size: 13px; font-weight: 600; line-height: 1.35; }
.ap-card small, .ap-cm { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ap-add { display: flex; gap: 6px; }
.ap-add .input { width: 320px; max-width: 60vw; }
.ap-artm .modal-b { max-height: 74vh; }
.ap-art { display: flex; flex-direction: column; gap: 14px; }
.ap-art ol { padding-left: 20px; font-size: 13px; }
.ap-art2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ap-prev { height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; font-size: 14px; line-height: 1.65; background: #fff; color: #222; }
.ap-prev h2 { font-size: 18px; margin: 16px 0 6px; } .ap-prev h3 { font-size: 15px; margin: 12px 0 4px; } .ap-prev p { margin: 0 0 10px; }
.ap-rep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ap-rep .card { padding: 14px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.ap-rep small { color: var(--ink-3); font-weight: 600; display: flex; gap: 5px; align-items: center; }
.ap-vids { display: flex; flex-direction: column; gap: 6px; }
.ap-vid { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; }
.ap-vid:hover { border-color: var(--ink-3); }
.ap-vid b { display: block; font-size: 13.5px; } .ap-vid small { color: var(--ink-3); font-size: 12px; }
.ap-nap { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; font-size: 13px; }
.ap-nap b { width: 100%; font-size: 12px; color: var(--ink-3); }
.ap-cits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ap-cit { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.ap-cit b { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-howto { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.ap-mailprev { width: 100%; height: 440px; border: 1px solid var(--line); border-radius: 12px; background: #f3f2ee; }
.ap-h3 { margin: 18px 0 8px; font-size: 14px; }
.ap-keys { display: flex; flex-direction: column; gap: 6px; }
.ap-key { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.ap-key > div { flex: 1; } .ap-key b { display: block; font-size: 13.5px; } .ap-key small { color: var(--ink-3); font-size: 12px; }
.ap-key select { width: auto; }
.ap-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ap-cl { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
.ap-cl:hover { border-color: var(--ink-3); }
.ap-cl span { display: flex; flex-wrap: wrap; gap: 4px; }
.ap-cl i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--hover); color: var(--ink-2); }
.ap-cl em { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 7px; }
.spinner.sm { width: 13px; height: 13px; border-width: 2px; display: inline-block; vertical-align: -2px; }

/* ---------- Leads ---------- */
.ld-page { max-width: 980px; }
.ld-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ld-stats .card { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ld-stats small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.ld-stats b { font-size: 26px; font-weight: 650; letter-spacing: -.03em; }
.ld-setup { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 16px; border-style: dashed; }
.ld-setup > div { flex: 1; } .ld-setup h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.ld-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ld-bar .seg-mini { flex-wrap: wrap; height: auto; }
.ld-row { padding: 14px 16px; margin-bottom: 8px; }
.ld-row.spam, .ld-row.duplicate { opacity: .7; }
.ld-row.won { border-left: 3px solid var(--ok); }
.ld-who { display: flex; align-items: center; gap: 12px; }
.ld-who > div { flex: 1; min-width: 0; }
.ld-who b { display: block; font-size: 14.5px; font-weight: 620; }
.ld-who small { font-size: 12.5px; color: var(--ink-2); }
.ld-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: hsl(var(--h) 45% 30%); background: hsl(var(--h) 55% 90%); flex: none; }
.ld-when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ld-msg { margin: 10px 0 0 48px; font-size: 13.5px; color: var(--ink); white-space: pre-wrap; }
.ld-fields { margin: 8px 0 0 48px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.ld-fields small { display: block; font-size: 11px; color: var(--ink-3); }
.ld-foot { margin: 10px 0 0 48px; display: flex; align-items: center; gap: 8px; }
.ld-foot > span { flex: 1; min-width: 0; }
.ld-foot select { width: auto; }
.ld-set { display: flex; flex-direction: column; gap: 14px; }
.ld-url { display: flex; gap: 6px; }
.ld-url .input { flex: 1; }
.ld-how p { margin: 6px 0; }
.ld-tpl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ld-tpl .ap-mailprev { height: 100%; min-height: 320px; }

@media (max-width: 1100px) {
  .ap-hero { grid-template-columns: 1fr; }
  .ap-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ap-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ap-grid2, .ap-art2, .ap-rep, .ld-tpl { grid-template-columns: 1fr; }
  .ap-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ap-hero { padding: 18px; border-radius: 18px; }
  .ap-hero h2 { font-size: 20px; }
  .ap-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-kpi b { font-size: 20px; }
  .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-board { grid-template-columns: 1fr; }
  .ap-why, .ap-b, .ap-item .notice { margin-left: 0; }
  .ap-it { flex-wrap: wrap; }
  .ap-sel { display: none; }
  .ap-fr { grid-template-columns: 32px minmax(0, 1fr); }
  .ap-fr .seg-mini { grid-column: 1 / -1; justify-self: start; }
  .ap-alts div { grid-template-columns: 1fr; }
  .ap-add { width: 100%; } .ap-add .input { flex: 1; width: auto; max-width: none; }
  .ld-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-msg, .ld-fields, .ld-foot { margin-left: 0; }
  .ld-foot { flex-wrap: wrap; }
  .ld-setup { flex-direction: column; align-items: stretch; }
  .ap-mgrid { grid-template-columns: repeat(var(--n), 30px); gap: 5px; }
  .ap-mgrid span { width: 30px; height: 30px; }
}

/* ---------- Autopilot control centre + connections (autopilot.js) ---------- */
.ct-page { max-width: 1320px; }
.ct-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 28px 30px; border-radius: 24px; margin-bottom: 16px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #24604a 0%, rgba(36, 96, 74, 0) 55%), linear-gradient(135deg, #0d1f19 0%, #12302a 60%, #163b31 100%); color: #eef6f2; box-shadow: var(--shadow-lg); }
.ct-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.ct-hl { position: relative; min-width: 0; }
.ct-hero .eyebrow { color: #9ad8bd; display: flex; gap: 6px; align-items: center; }
.ct-hero h1 { color: #fff; font-size: 30px; }
.ct-hero p { color: #bcd7cb; margin-top: 6px; max-width: 560px; font-size: 14px; }
.ct-live { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); max-width: 560px; }
.ct-live.on { background: rgba(80, 220, 160, .1); border-color: rgba(120, 240, 190, .3); }
.ct-live > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ct-live small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fd4b5; }
.ct-live b { color: #fff; font-size: 15px; font-weight: 600; }
.ct-live span { color: #b5cfc4; font-size: 12.5px; }
.ct-pulse { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #4ade9b; box-shadow: 0 0 0 0 rgba(74, 222, 155, .6); animation: ctPulse 1.6s infinite; }
.ct-pulse.idle { background: #7f9a8e; animation: none; }
@keyframes ctPulse { 70% { box-shadow: 0 0 0 12px rgba(74, 222, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 155, 0); } }
.ct-prog { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 6px 0 2px; }
.ct-prog em { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4ade9b, #a7f3d0); transition: width .6s; }
.ct-kpis { display: grid; grid-template-columns: repeat(5, minmax(96px, 1fr)); gap: 8px; position: relative; }
.ct-k { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: 1px; }
.ct-k small { font-size: 11.5px; font-weight: 600; color: #a6cbbb; }
.ct-k b { font-size: 26px; font-weight: 650; letter-spacing: -.03em; color: #fff; }
.ct-k span, .ct-k a { font-size: 11.5px; color: #bcd7cb; }
.ct-k a { text-decoration: underline; }
.ct-k.hot b { color: #8ef0c1; } .ct-k.warn b { color: #ffd479; } .ct-k.bad b { color: #ffb4ab; }
.ct-clients { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.ct-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; box-shadow: var(--shadow-sm); transition: border-color .15s, background .15s; }
.ct-chip:hover { border-color: var(--ink-3); }
.ct-chip b { font-weight: 600; }
.ct-chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ct-chip.off b { opacity: .55; }
.ct-chip:first-child { padding-right: 14px; }
.ct-cn { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--hover); color: var(--ink-2); }
.ct-chip.on .ct-cn { background: color-mix(in srgb, var(--surface) 20%, transparent); color: var(--surface); }
.ct-tabs { display: none; margin-bottom: 10px; }
.ct-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; align-items: start; }
.ct-col { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.ct-col > header { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.ct-col > header b { flex: 1; font-size: 14px; font-weight: 650; }
.ct-col > header span { font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--hover); color: var(--ink-2); }
.ct-col.up > header .i { color: var(--blue); } .ct-col.done > header .i { color: var(--ok); } .ct-col.wait > header .i { color: var(--brand); } .ct-col.blocked > header .i { color: var(--warn); }
.ct-body { max-height: 560px; overflow-y: auto; padding: 6px 8px 10px; }
.ct-grp { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 8px 4px; }
.ct-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; transition: background .12s; }
.ct-row:hover { background: var(--hover); }
.ct-row > div { flex: 1; min-width: 0; }
.ct-row b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ct-row small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.35; margin-top: 1px; }
.ct-ic { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ct-row.bad .ct-ic { background: var(--danger-soft); color: var(--danger); }
.ct-row.warn .ct-ic { background: var(--warn-soft); color: var(--warn); }
.ct-row.mute .ct-ic, .ct-row.soft .ct-ic { background: var(--hover); color: var(--ink-3); }
.ct-row.mute b { color: var(--ink-3); }
.ct-when { flex: none; font-size: 11.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.ct-state { flex: none; color: var(--ok); }
.ct-row.bad .ct-state { color: var(--danger); } .ct-row.mute .ct-state { color: var(--ink-3); }
.ct-row .btn.sm { flex: none; height: 26px; padding: 0 9px; font-size: 12px; }
.ct-empty { padding: 26px 12px; text-align: center; color: var(--ink-3); font-size: 13px; }
.ct-more { display: block; text-align: center; padding: 8px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.ct-fold { border-radius: 10px; }
.ct-fold summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; font-size: 12.5px; list-style: none; }
.ct-fold summary::-webkit-details-marker { display: none; }
.ct-fold summary:hover { background: var(--hover); }
.ct-fold summary b { flex: 1; font-weight: 600; color: var(--warn); }
.ct-fold summary span { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.ct-fold[open] summary { background: var(--hover); }
.ct-act { padding: 16px 20px 12px; margin-bottom: 16px; }
.ct-leg { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.ct-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.ct-chart { width: 100%; height: 110px; display: block; }
.ct-chart text { font-size: 9px; fill: var(--ink-3); text-anchor: middle; }
.ct-chart .b1, .ct-leg .b1 { fill: var(--brand); background: var(--brand); }
.ct-chart .b2, .ct-leg .b2 { fill: #e2a316; background: #e2a316; }
.ct-chart .b3, .ct-leg .b3 { fill: var(--blue); background: var(--blue); }
.ct-plan { margin-bottom: 16px; }
.ct-plan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ct-plan-h h3 { display: flex; gap: 8px; align-items: center; font-size: 16px; }
.ct-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ct-step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.ct-step::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line-2); }
.ct-step.s-due::before { background: var(--brand); } .ct-step.s-scheduled::before { background: var(--blue); } .ct-step.s-blocked::before { background: var(--warn); }
.ct-step-t { display: flex; align-items: center; gap: 8px; }
.ct-step-t b { flex: 1; font-size: 13.5px; font-weight: 650; }
.ct-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.ct-step.s-due .ct-badge { background: var(--brand-soft); color: var(--brand); }
.ct-step.s-blocked .ct-badge { background: var(--warn-soft); color: var(--warn); }
.ct-step.s-off .ct-badge { background: var(--hover); color: var(--ink-3); }
.ct-step.s-off, .ct-step.s-blocked { background: var(--surface-2); }
.ct-step p { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.ct-step-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ct-step-f small { font-size: 11.5px; color: var(--ink-3); }
.ct-why { font-style: normal; font-size: 12px; color: var(--warn); font-weight: 600; }
.side .count.live { color: #4ade9b; background: none; font-size: 10px; animation: ctBlink 1.6s infinite; }
@keyframes ctBlink { 50% { opacity: .35; } }
/* Connections */
.cn-card .panel-h { align-items: center; }
.cn-ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--hover) 0); }
.cn-ring b { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.cn-for { margin: -4px 0 10px; }
.cn-list { display: flex; flex-direction: column; }
.cn-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.cn-row:last-child { border-bottom: 0; }
.cn-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); }
.cn-row.ok .cn-ic { background: var(--ok-soft); color: var(--ok); }
.cn-row.warn .cn-ic { background: var(--warn-soft); color: var(--warn); }
.cn-row.miss .cn-ic { background: var(--danger-soft); color: var(--danger); }
.cn-t { flex: 1; min-width: 0; }
.cn-t b { display: block; font-size: 13.5px; font-weight: 600; }
.cn-t small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.cn-t em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.cn-st { flex: none; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.cn-row.ok .cn-st { color: var(--ok); } .cn-row.warn .cn-st { color: var(--warn); } .cn-row.miss .cn-st { color: var(--danger); }
.cn-more { margin-top: 8px; }
.green { color: var(--ok); }
.cn-wiz { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.cn-wiz-h { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.cn-wiz-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cn-wiz-list span { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
@media (max-width: 1360px) {
  .ct-hero { grid-template-columns: 1fr; }
  .ct-hero p, .ct-live { max-width: none; }
}
@media (max-width: 1180px) {
  .ct-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ct-hero { padding: 20px 18px; border-radius: 20px; }
  .ct-hero h1 { font-size: 23px; }
  .ct-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-k b { font-size: 21px; }
  .ct-tabs { display: inline-flex; flex-wrap: wrap; height: auto; }
  .ct-board { grid-template-columns: 1fr; }
  .ct-board .ct-col { display: none; }
  .ct-board[data-tab="up"] .ct-col.up, .ct-board[data-tab="done"] .ct-col.done, .ct-board[data-tab="wait"] .ct-col.wait, .ct-board[data-tab="blocked"] .ct-col.blocked { display: flex; }
  .ct-body { max-height: none; }
  .ct-steps { grid-template-columns: 1fr; }
  .ct-plan-h { flex-wrap: wrap; }
}

/* WordPress: the three setup steps (card and connect window) */
.wp-steps { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 6px; }
.wp-steps.modal { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.wp-step { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; }
.wp-step + .wp-step { border-top: 1px dashed var(--line); }
.wp-step > div { flex: 1; min-width: 0; }
.wp-step > div > b { display: block; font-size: 13.5px; font-weight: 620; }
.wp-step small b { color: var(--ink); font-weight: 600; }
.wp-step small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.wp-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--hover); color: var(--ink-2); border: 1px solid var(--line-2); }
.wp-step.ok .wp-n { background: var(--brand); border-color: var(--brand); color: #fff; }
.wp-step.ok .wp-n .i { width: 12px; height: 12px; stroke-width: 3; }
.wp-step.warn .wp-n { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.wp-step.here b { color: var(--brand); }
.wp-step.here .wp-n { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.wp-go { margin-top: 10px; }

/* Version: the update bar, the sidebar line and "What's new" */
.updbar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; max-width: calc(100vw - 24px);
  border-radius: 16px; background: linear-gradient(135deg, #10241d, #173a2e); color: #eef6f2; box-shadow: 0 18px 44px -14px rgba(10, 30, 22, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset; animation: updIn .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes updIn { from { opacity: 0; transform: translate(-50%, -14px); } }
.updbar.busy { opacity: .7; pointer-events: none; }
.upd-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #4ade9b; box-shadow: 0 0 0 0 rgba(74, 222, 155, .6); animation: ctPulse 1.6s infinite; }
.upd-t { display: flex; flex-direction: column; min-width: 0; }
.upd-t b { font-size: 14px; font-weight: 650; color: #fff; }
.upd-t span { font-size: 12px; color: #b5cfc4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.updbar .btn.ghost { color: #d6ebe1; }
.updbar .btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.updbar .upd-go { background: #4ade9b; border-color: #4ade9b; color: #0b2018; font-weight: 700; }
.updbar .upd-go:hover { background: #6ee7b0; }
.updbar .upd-x { color: #b5cfc4; }
.side-ver { display: flex; align-items: center; gap: 8px; width: calc(100% - 20px); margin: 0 10px 6px; padding: 6px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-size: 11.5px; color: var(--ink-3); text-align: left; }
.side-ver:hover { background: var(--hover); color: var(--ink-2); }
.side-ver .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-ver em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; }
.wn-modal { width: min(620px, 100%); }
.wn-list { display: flex; flex-direction: column; gap: 14px; max-height: 64vh; }
.wn-rel { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.wn-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wn-h b { font-size: 13px; }
.wn-h time { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.wn-rel h3 { margin: 8px 0 6px; font-size: 15.5px; }
.wn-rel ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.wn-how { max-width: 320px; }
@media (max-width: 600px) {
  .updbar { top: auto; bottom: 14px; left: 12px; right: 12px; transform: none; flex-wrap: wrap; animation: none; }
  .upd-t { flex: 1 1 calc(100% - 40px); }
  .updbar .btn.ghost { display: none; }
  .wn-how { display: none; }
}

/* ==== GENERATED THEMES (tools/themes.py) — do not edit by hand ==== */
/* Dark: every hard-coded light colour, darkened. */
html[data-mode="dark"] { --surface: var(--d-surface); --surface-2: #201e18; --hover: #26251f; --line-2: #403f3a; --ink: #e8eaec; --ink-2: #afb2b8; --brand-soft: #1e2d26; --mine: #1f3026; --chat: #2a2721; --ok: #a0ebd5; --ok-soft: #1e2d26; --warn: #efc070; --warn-soft: #382c16; --danger: #d36661; --danger-soft: #301815; --blue-soft: #131c2f; --bg: #26251e; --line: #3b3934; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08); --shadow: 0 1px 1px rgba(0, 0, 0, 0.048), 0 2px 4px -2px rgba(0, 0, 0, 0.08), 0 14px 32px -22px rgba(0, 0, 0, 0.352); --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.512), 0 2px 8px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) ::selection { background: #2a4035; }
:where(html[data-mode="dark"]) ::-webkit-scrollbar-thumb { background: #3f3e38; }
:where(html[data-mode="dark"]) .btn.dark { color: #111216; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.017), 0 1px 2px rgba(0, 0, 0, 0.48), 0 6px 14px -8px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .btn.green { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, var(--d-surface)), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.024), 0 6px 14px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
:where(html[data-mode="dark"]) .input:focus { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.192); }
:where(html[data-mode="dark"]) .chip.toggle.on { color: #111216; }
:where(html[data-mode="dark"]) .avatar { color: var(--pc, #b9b9b9); background: color-mix(in srgb, var(--pc, #717171) 15%, var(--d-surface)); }
:where(html[data-mode="dark"]) .plogo img { background: var(--d-surface); }
:where(html[data-mode="dark"]) .card { border-color: rgba(255, 255, 255, 0.112); }
:where(html[data-mode="dark"]) .brand .mark { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.192), inset 0 0 0 1px rgba(255, 255, 255, 0.022); background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 88%, var(--d-surface)), var(--brand-2, var(--brand))); }
:where(html[data-mode="dark"]) .notice { color: #f4d6a0; }
:where(html[data-mode="dark"]) .notice.info { color: #82a0dd; }
:where(html[data-mode="dark"]) .nav-item:hover { background: rgba(255, 255, 255, 0.058); }
:where(html[data-mode="dark"]) .nav-item.on { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.128), 0 0 0 .5px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .side-foot { border-top: 1px solid rgba(255, 255, 255, 0.096); }
:where(html[data-mode="dark"]) .me-card:hover { background: rgba(255, 255, 255, 0.058); }
@media (max-width: 900px) {
  :where(html[data-mode="dark"]) .scrim.open { background: rgba(255, 255, 255, 0.14); }
}
:where(html[data-mode="dark"]) .folder-top .plogo { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.018); }
:where(html[data-mode="dark"]) .flag { background: var(--d-surface); }
:where(html[data-mode="dark"]) .ledger tbody tr:nth-child(even) td { background: #1d1d16; }
:where(html[data-mode="dark"]) .chat { background-color: #312b23; background-image: var(--wall), linear-gradient(180deg, #2c271f, #353027); }
:where(html[data-mode="dark"]) .chat::before { background-image: radial-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px); }
:where(html[data-mode="dark"]) .chat-bar { background: rgba(37, 34, 25, 0.82); }
:where(html[data-mode="dark"]) .day { background: var(--d-surface); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .bubble { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.112), 0 6px 18px -10px rgba(0, 0, 0, 0.288); }
:where(html[data-mode="dark"]) .mention.me { background: color-mix(in srgb, var(--pc) 16%, var(--d-surface)); }
:where(html[data-mode="dark"]) .who-pill.me:not(.ok):not(.late):not(.over) { background: color-mix(in srgb, var(--pc) 14%, var(--d-surface)); border-color: color-mix(in srgb, var(--pc) 40%, #292929); }
:where(html[data-mode="dark"]) .msg.mine .who-pill.me:not(.ok):not(.late):not(.over) { background: color-mix(in srgb, var(--pc) 14%, var(--d-surface)); }
:where(html[data-mode="dark"]) .task-foot { border-top: 1px dashed rgba(255, 255, 255, 0.16); }
:where(html[data-mode="dark"]) .msg.mine .who-pill:not(.ok):not(.late):not(.over) { background: var(--d-surface); }
:where(html[data-mode="dark"]) .att { background: var(--d-surface); }
:where(html[data-mode="dark"]) .att:hover { background: var(--d-surface); }
:where(html[data-mode="dark"]) .thread { background: rgba(255, 255, 255, 0.046); }
:where(html[data-mode="dark"]) .msg.mine .thread { background: var(--d-surface); }
:where(html[data-mode="dark"]) .ctag { background: color-mix(in srgb, var(--pc, #717171) 12%, var(--d-surface)); }
:where(html[data-mode="dark"]) .comp-row textarea:focus { background: var(--d-surface); }
:where(html[data-mode="dark"]) .send { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.48); }
:where(html[data-mode="dark"]) .modal { box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.08); border: 1px solid rgba(41, 41, 41, 0.6); }
:where(html[data-mode="dark"]) .menu { box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .toast { color: #111216; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .seg-mini { background: #2f2d27; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .seg-mini button.on { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.192), 0 0 0 .5px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .sw.late { background: #b49459; }
:where(html[data-mode="dark"]) .bar-col:hover { background: linear-gradient(to top, transparent 22px, rgba(255, 255, 255, 0.039) 22px); }
:where(html[data-mode="dark"]) .tip { color: #111216; }
:where(html[data-mode="dark"]) .bcount { background: var(--d-surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.128); }
:where(html[data-mode="dark"]) .bcard { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.08); }
:where(html[data-mode="dark"]) .msg.mine .done-panel { background: var(--d-surface); }
:where(html[data-mode="dark"]) .phead.dark .plogo { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.014), 0 10px 30px -10px hsl(var(--h) 70% 40% / .8); }
:where(html[data-mode="dark"]) .phead.dark .share-btn .avatar { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .phead.dark .tabs a.on { border-bottom-color: #292929; }
:where(html[data-mode="dark"]) .tl-fill { background: linear-gradient(90deg, rgba(255, 255, 255, .25), var(--d-surface)); box-shadow: 0 0 14px rgba(255, 255, 255, 0.054); }
:where(html[data-mode="dark"]) .tl-now { background: var(--d-surface); }
:where(html[data-mode="dark"]) .tl-now span { color: #ecedf0; background: var(--d-surface); }
:where(html[data-mode="dark"]) .tl-m i { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03); }
:where(html[data-mode="dark"]) .tl-m.st-late i { background: #b49459; }
:where(html[data-mode="dark"]) .tl-m.st-miss i { background: #a44447; }
:where(html[data-mode="dark"]) .tl-m.st-today i { background: var(--d-surface); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03); }
:where(html[data-mode="dark"]) .chip.rec { background: color-mix(in srgb, var(--blue) 10%, var(--d-surface)); }
:where(html[data-mode="dark"]) .ft-badge { background: var(--d-surface); color: #e9ebee; }
:where(html[data-mode="dark"]) .mtl-fill { background: linear-gradient(90deg, #3b3d40, #17191c); }
:where(html[data-mode="dark"]) .mtl-rail i { background: #434547; border: 2px solid #292929; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .mtl-rail i.st-late { background: #b49459; }
:where(html[data-mode="dark"]) .mtl-rail i.st-miss { background: #a44447; }
:where(html[data-mode="dark"]) .w-cards i:last-child { background: linear-gradient(135deg, #2a281f, #464339); }
:where(html[data-mode="dark"]) .w-body { box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.01); }
:where(html[data-mode="dark"]) .w-clasp { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.012); }
:where(html[data-mode="dark"]) .w-clasp::after { background: radial-gradient(circle at 35% 30%, var(--d-surface), hsl(var(--h) 25% 70%) 45%, hsl(var(--h) 20% 40%)); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
@media (max-width: 700px) {
  :where(html[data-mode="dark"]) .tl-mob .st-late i { background: #b49459; }
  :where(html[data-mode="dark"]) .tl-mob .st-miss i { background: #a44447; }
  :where(html[data-mode="dark"]) .tl-mob .st-today i { background: var(--d-surface); }
}
:where(html[data-mode="dark"]) .mm:hover { background: var(--hover, #26251f); }
:where(html[data-mode="dark"]) .mm-kind { background: #2a2923; }
:where(html[data-mode="dark"]) .switch::after { background: var(--d-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.32); }
:where(html[data-mode="dark"]) pre.cfg { background: #292721; }
:where(html[data-mode="dark"]) .ph-mini .mtl-fill { background: linear-gradient(90deg, rgba(255, 255, 255, .3), var(--d-surface)); }
:where(html[data-mode="dark"]) .ph-mini .mtl-rail i.st-today { background: var(--d-surface); }
:where(html[data-mode="dark"]) .wz-step.on i { color: #111216; }
:where(html[data-mode="dark"]) .dir.to { background: color-mix(in srgb, var(--pc) 16%, var(--d-surface)); }
:where(html[data-mode="dark"]) .dir.by { background: var(--d-surface); }
:where(html[data-mode="dark"]) .msg.for-me:not(.mine) .bubble { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--mepc) 45%, transparent), 0 1px 2px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .msg.mine .bubble { background: linear-gradient(180deg, #1d3123, #23382a); }
:where(html[data-mode="dark"]) .msg.mine .bubble::before { background: #1d3123; }
:where(html[data-mode="dark"]) .composer-in { background: var(--d-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.096), 0 12px 32px -14px rgba(0, 0, 0, 0.448); border: 1px solid rgba(41, 41, 41, 0.7); }
@media (prefers-reduced-motion: reduce) {
  :where(html[data-mode="dark"]) .msg.flash .bubble { box-shadow: 0 0 0 3px var(--mepc, rgba(0, 0, 0, 0.7)); }
}
:where(html[data-mode="dark"]) .tray { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .tray-r i { background: linear-gradient(90deg, #59ab86, #2e704f); }
:where(html[data-mode="dark"]) .tray-r.err i { background: #892828; }
:where(html[data-mode="dark"]) .chat-drop { background: rgba(26, 41, 33, 0.88); }
:where(html[data-mode="dark"]) .media-i { background: #33312a; }
:where(html[data-mode="dark"]) .media-more { background: rgba(255, 255, 255, 0.14); }
:where(html[data-mode="dark"]) .lb-stage img { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .u-bar { background: #2d2c26; }
:where(html[data-mode="dark"]) .u-bar i { background: linear-gradient(90deg, #5b77b4, #385895); }
:where(html[data-mode="dark"]) .u-bar.hot i { background: linear-gradient(90deg, #b36e57, #a44447); }
:where(html[data-mode="dark"]) a.card:hover, :where(html[data-mode="dark"]) .tile[href]:hover, :where(html[data-mode="dark"]) .folder-card:hover { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.048), 0 18px 40px -20px rgba(0, 0, 0, 0.448); }
:where(html[data-mode="dark"]) .input:hover:not(:focus) { border-color: #484641; }
:where(html[data-mode="dark"]) .hero { box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.005) inset; }
:where(html[data-mode="dark"]) .hero h1 .mention.me { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026); }
:where(html[data-mode="dark"]) .hero-r { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01); }
:where(html[data-mode="dark"]) .tile.t-blue { --tc: #5b77b4; }
:where(html[data-mode="dark"]) .tile.t-red { --tc: #af5651; }
:where(html[data-mode="dark"]) .tile-ic { background: color-mix(in srgb, var(--tc) 11%, var(--d-surface)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.072), 0 4px 10px -6px rgba(0, 0, 0, 0.56); }
:where(html[data-mode="dark"]) .bar-stack { box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .bar-stack i.late { background: linear-gradient(180deg, #a17d3b, #d18f18); }
:where(html[data-mode="dark"]) .bcol { background: var(--d-surface); border: 1px solid rgba(255, 255, 255, 0.096); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.064); }
:where(html[data-mode="dark"]) .bcol.status.st-open { --pc: #5b77b4; }
:where(html[data-mode="dark"]) .bcol.status.st-over { --pc: #af5651; }
:where(html[data-mode="dark"]) .bcol-h { background: linear-gradient(180deg, color-mix(in srgb, var(--pc, #717171) 7%, #201e16), #201e16); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
:where(html[data-mode="dark"]) .ring-av { background: conic-gradient(var(--pc) calc(var(--p) * 1%), rgba(255, 255, 255, 0.104) 0); }
:where(html[data-mode="dark"]) .ring-av::before { background: #201e16; }
:where(html[data-mode="dark"]) .bcard:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .bcard.over { box-shadow: inset 3px 0 0 var(--danger), 0 1px 1px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.08); }
:where(html[data-mode="dark"]) .bcover { background: #312e27; }
:where(html[data-mode="dark"]) .bf { border-top: 1px dashed rgba(255, 255, 255, 0.128); }
:where(html[data-mode="dark"]) .bdiv::after { background: rgba(255, 255, 255, 0.104); }
:where(html[data-mode="dark"]) .board-bar .seg-mini { background: #2f2d27; }
:where(html[data-mode="dark"]) .prio.high { background: #3a2a11; color: #f8ba74; }
:where(html[data-mode="dark"]) .prio.urgent { background: #351513; color: #dc6c65; }
:where(html[data-mode="dark"]) .dir.all { background: #180e31; }
:where(html[data-mode="dark"]) .mention.all { background: #180e31; }
:where(html[data-mode="dark"]) .mopt.all .avatar.all { background: #180e31; }
:where(html[data-mode="dark"]) .ctag.all { background: #180e31; }
:where(html[data-mode="dark"]) .ctag.prio-t.high { background: #3a2a11; color: #f8ba74; }
:where(html[data-mode="dark"]) .ctag.prio-t.urgent { background: #351513; color: #dc6c65; }
:where(html[data-mode="dark"]) .ctag.rv-t { background: #0f1d33; }
:where(html[data-mode="dark"]) .cklist { background: var(--d-surface); }
:where(html[data-mode="dark"]) .msg.mine .cklist { background: var(--d-surface); }
:where(html[data-mode="dark"]) .ck-box { background: var(--d-surface); }
:where(html[data-mode="dark"]) .rv.pending { background: #0d192d; color: #829cd6; border: 1px dashed #2c3952; }
:where(html[data-mode="dark"]) .rv.changes { color: #f5d193; }
:where(html[data-mode="dark"]) .rv-mini.pending { background: #0d192d; color: #829cd6; }
:where(html[data-mode="dark"]) .rv-mini.changes { color: #f5d193; }
:where(html[data-mode="dark"]) .rx { background: var(--d-surface); }
:where(html[data-mode="dark"]) .rx.on { border-color: color-mix(in srgb, var(--brand) 35%, #292929); }
:where(html[data-mode="dark"]) .chat-top { background: rgba(36, 34, 28, 0.92); }
:where(html[data-mode="dark"]) .csearch { background: var(--d-surface); }
:where(html[data-mode="dark"]) .ai-btn { background: linear-gradient(135deg, #1a0e2f, #0e2232); border: 1px solid #302449; color: #7e61ce; }
:where(html[data-mode="dark"]) .ai-btn:hover { background: linear-gradient(135deg, #1e1037, #11273a); border-color: #372b54; }
:where(html[data-mode="dark"]) .pinbar { background: #29230c; border-bottom: 1px solid #4c452e; }
:where(html[data-mode="dark"]) .pin-ic { color: #efc070; }
:where(html[data-mode="dark"]) .pin-t small { color: #efc070; }
:where(html[data-mode="dark"]) .prio-c.high.on { background: #3a2a11; color: #f8ba74; border-color: #5f4d2f; }
:where(html[data-mode="dark"]) .prio-c.urgent.on { background: #351513; color: #dc6c65; border-color: #522e2b; }
:where(html[data-mode="dark"]) .ai-out h4 { color: #7e61ce; }
:where(html[data-mode="dark"]) .ai-wait span { background: #3a247e; }
:where(html[data-mode="dark"]) .cal-c.off { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, 0.023) 6px 12px); }
:where(html[data-mode="dark"]) .cal-i.ms { background: var(--d-surface); }
:where(html[data-mode="dark"]) .wl-c.h1 { background: #1e3128; color: #a0ebd5; }
:where(html[data-mode="dark"]) .wl-c.h2 { background: #2f4d3e; color: #acefdb; }
:where(html[data-mode="dark"]) .wl-c.h3 { background: #5f4c20; color: #f5d193; }
:where(html[data-mode="dark"]) .wl-c.h4 { background: #5a2722; color: #e78a85; }
:where(html[data-mode="dark"]) .side-install { background: var(--d-surface); }
:where(html[data-mode="dark"]) .side-install:hover { background: var(--d-surface); border-color: color-mix(in srgb, var(--brand) 40%, #292929); }
:where(html[data-mode="dark"]) .pop-scrim { background: rgba(255, 255, 255, 0.14); }
@media (max-width: 759px) {
  :where(html[data-mode="dark"]) #dpop, :where(html[data-mode="dark"]) #apop, :where(html[data-mode="dark"]) #xpop { box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.352); }
  :where(html[data-mode="dark"]) .composer-in { background: var(--d-surface); }
}
:where(html[data-mode="dark"]) .chan { background: rgba(36, 34, 28, 0.92); }
:where(html[data-mode="dark"]) .chan button:hover { background: var(--d-surface); }
:where(html[data-mode="dark"]) .chan button.on { background: var(--d-surface); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.064); }
:where(html[data-mode="dark"]) .chan button[data-v="team"].on { background: #32270e; border-color: #554b30; }
:where(html[data-mode="dark"]) .chan button[data-v="team"] .i { color: #efc070; }
:where(html[data-mode="dark"]) .team-chan .msgs { background-color: #342c1c; }
:where(html[data-mode="dark"]) .team-chan .chat-top { background: rgba(51, 43, 23, 0.95); }
:where(html[data-mode="dark"]) .team-chan .composer-in { box-shadow: 0 0 0 2px #f1dfb0, 0 12px 32px -14px rgba(0, 0, 0, 0.448); }
:where(html[data-mode="dark"]) .team-chan .comp-row textarea { background: #2b230d; }
:where(html[data-mode="dark"]) .pg-s.hot { background: linear-gradient(135deg, #33270f, var(--d-surface)); border-color: #5a4c30; }
:where(html[data-mode="dark"]) .pg-s.hot b { color: #f8ca7c; }
:where(html[data-mode="dark"]) .st0 { --c: #4e5054; }
:where(html[data-mode="dark"]) .st1 { --c: #815ba3; }
:where(html[data-mode="dark"]) .st2 { --c: #5b77b4; }
:where(html[data-mode="dark"]) .pg-stage { background: color-mix(in srgb, var(--c) 14%, var(--d-surface)); color: color-mix(in srgb, var(--c) 75%, #ffffff); }
:where(html[data-mode="dark"]) .brand .mark.img { background: var(--d-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), inset 0 0 0 1px var(--line); }
:where(html[data-mode="dark"]) .bc-sw button { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.128); }
:where(html[data-mode="dark"]) .bc-prev { background: linear-gradient(160deg, #282621, #312f29); }
:where(html[data-mode="dark"]) .bc-side { background: #23221b; }
:where(html[data-mode="dark"]) .bc-nav.on { background: var(--d-surface); }
:where(html[data-mode="dark"]) .bc-login { background: var(--d-surface); }
:where(html[data-mode="dark"]) .acc-tag.cl { background: #2a111c; color: #d2749f; }
:where(html[data-mode="dark"]) .acc-tag.off { background: #382a10; color: #f4cb87; }
:where(html[data-mode="dark"]) .acc-seg button.on { background: var(--d-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.128), 0 0 0 1px rgba(0, 0, 0, 0.064); }
:where(html[data-mode="dark"]) .acc-seg button.on.none { color: #f4cb87; }
:where(html[data-mode="dark"]) .acc-tag.view { background: #0e1930; }
:where(html[data-mode="dark"]) .acc-tag.none { background: #382a10; color: #f4cb87; }
:where(html[data-mode="dark"]) .acc-key b.none { color: #f4cb87; }
:where(html[data-mode="dark"]) .viewbar { background: #0d192d; border: 1px solid #283348; color: #829cd6; }
:where(html[data-mode="dark"]) .viewbar > span { background: var(--d-surface); }
:where(html[data-mode="dark"]) .chan em.vo { background: #0e1930; }
:where(html[data-mode="dark"]) .au-card.rule .au-ic { background: #180d2e; }
:where(html[data-mode="dark"]) .au-badge { background: #0e1930; }
:where(html[data-mode="dark"]) .em-prev { background: #24221c; }
:where(html[data-mode="dark"]) .em-meta { background: var(--d-surface); }
:where(html[data-mode="dark"]) .em-prev iframe { background: #24221c; }
:where(html[data-mode="dark"]) button.pg-stage:hover { background: color-mix(in srgb, var(--c) 24%, var(--d-surface)); }
:where(html[data-mode="dark"]) .pg-tpl:hover { background: var(--d-surface); }
:where(html[data-mode="dark"]) .stmt-who { background: var(--d-surface); }
:where(html[data-mode="dark"]) .st-todo { --st: #75787d; --st-soft: #262622; }
:where(html[data-mode="dark"]) .st-doing { --st: #5b77b4; --st-soft: #131c2f; }
:where(html[data-mode="dark"]) .st-review { --st: #815ba3; --st-soft: #22162c; }
:where(html[data-mode="dark"]) .st-done { --st-soft: #1e2d26; }
:where(html[data-mode="dark"]) .st-over { --st-soft: #301815; }
:where(html[data-mode="dark"]) .st-none { --st: #46474b; --st-soft: #22221f; }
:where(html[data-mode="dark"]) .tk-views { background: #2d2c26; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .tk-views button.on { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.192), 0 0 0 1px rgba(0, 0, 0, 0.048); }
:where(html[data-mode="dark"]) .tk-views button i { color: #111216; }
:where(html[data-mode="dark"]) .tk-search:focus-within { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.192); }
:where(html[data-mode="dark"]) .tk-quick button.on { color: #111216; }
:where(html[data-mode="dark"]) .tk-quick .x:hover { background: rgba(255, 255, 255, 0.104); }
:where(html[data-mode="dark"]) .tk-sel.set { background-color: #25241e; }
:where(html[data-mode="dark"]) .tk-st.st-done i::after { border: solid #292929; }
:where(html[data-mode="dark"]) .tk-row:hover { background: #201e16; }
:where(html[data-mode="dark"]) .tk-m.ms { color: #f9d693; }
:where(html[data-mode="dark"]) .tk-add:focus-within { background: #1d1d16; }
:where(html[data-mode="dark"]) .tk-col { background: #2a2923; }
:where(html[data-mode="dark"]) .tk-col-h .icon-btn:hover { background: var(--d-surface); }
:where(html[data-mode="dark"]) .tk-card { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.112), 0 0 0 1px rgba(0, 0, 0, 0.048); }
:where(html[data-mode="dark"]) .tk-card:hover { box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.448), 0 0 0 1px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .tc-day:hover { background: #201e16; }
:where(html[data-mode="dark"]) .tc-day.sel { background: #16211a; }
:where(html[data-mode="dark"]) .rc-intro { background: linear-gradient(135deg, #1a2720, #27241d); border: 1px solid #323e38; }
:where(html[data-mode="dark"]) .rc-card.ms .rc-ic { background: #382c16; color: #f9d693; }
:where(html[data-mode="dark"]) .rc-dots a.late { background: #b49459; }
:where(html[data-mode="dark"]) .tm-sw i { background: var(--d-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
:where(html[data-mode="dark"]) .tm-sched { border: 1px solid #323e38; background: #16201b; }
:where(html[data-mode="dark"]) .tm-sched .tm-row { border-bottom-color: #2f3b34; }
:where(html[data-mode="dark"]) .td-bg { background: rgba(255, 255, 255, 0.14); }
:where(html[data-mode="dark"]) .td { box-shadow: -24px 0 60px -30px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .td-status { background: #282621; }
:where(html[data-mode="dark"]) .td-status button:not([disabled]):hover { background: var(--d-surface); }
:where(html[data-mode="dark"]) .td-status button.on { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16); }
@media (max-width: 800px) {
  :where(html[data-mode="dark"]) .td-bg { background: rgba(255, 255, 255, 0.14); }
}
:where(html[data-mode="dark"]) .nav-sec span em { background: rgba(255, 255, 255, 0.078); }
:where(html[data-mode="dark"]) .side-find { background: var(--d-surface); }
:where(html[data-mode="dark"]) .pin-star:hover { color: #efc070; background: rgba(255, 255, 255, 0.065); }
:where(html[data-mode="dark"]) .pin-star.on { color: #f6d158; }
@media (min-width: 901px) {
  :where(html[data-mode="dark"]) .app.side-mini.side-peek .side { box-shadow: 24px 0 60px -24px rgba(0, 0, 0, 0.608); }
}
:where(html[data-mode="dark"]) .qs-row em { color: #f6d158; }
:where(html[data-mode="dark"]) .ptable tbody tr:hover { background: #201e16; }
:where(html[data-mode="dark"]) .pp-full { box-shadow: -24px 0 50px -26px rgba(0, 0, 0, 0.56); }
:where(html[data-mode="dark"]) .need-chip { color: #f9cb93; background: #392a14; }
:where(html[data-mode="dark"]) .done-panel.req { border-color: #564830; background: #2b200d; }
:where(html[data-mode="dark"]) .dp-need { background: #392a14; color: #fad1a0; }
:where(html[data-mode="dark"]) .sub-row.in { background: #141d18; }
:where(html[data-mode="dark"]) .imp-steps span.on i { color: #111216; }
:where(html[data-mode="dark"]) .imp-drop { background: linear-gradient(180deg, #201e16, #24221c); }
:where(html[data-mode="dark"]) .imp-drop:hover, :where(html[data-mode="dark"]) .imp-drop.over { background: #18241d; }
:where(html[data-mode="dark"]) .imp-table tr.bad { background: #280f0c; }
:where(html[data-mode="dark"]) .imp-log .bad { background: #280f0c; }
:where(html[data-mode="dark"]) .bt-text { background: #1d1d16; }
:where(html[data-mode="dark"]) .bt-row { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .bt-row.warn { box-shadow: inset 3px 0 0 var(--warn), 0 1px 2px rgba(0, 0, 0, 0.096); }
:where(html[data-mode="dark"]) .bt-who.role { background: #1d152c; }
:where(html[data-mode="dark"]) .menu-x:hover { background: rgba(255, 255, 255, 0.104); }
:where(html[data-mode="dark"]) .ws-chip { color: color-mix(in srgb, var(--wc) 78%, #ffffff); background: color-mix(in srgb, var(--wc) 12%, var(--d-surface)); }
:where(html[data-mode="dark"]) .chan .ws-tab.on { border-color: color-mix(in srgb, var(--wc) 45%, #292929) !important; background: color-mix(in srgb, var(--wc) 8%, var(--d-surface)) !important; }
:where(html[data-mode="dark"]) .ws-pkg { background: linear-gradient(135deg, #1b1529, #24221c); border: 1px solid #312840; }
:where(html[data-mode="dark"]) .ws-sub.on { border-color: color-mix(in srgb, var(--wc) 45%, #292929); background: color-mix(in srgb, var(--wc) 8%, var(--d-surface)); }
:where(html[data-mode="dark"]) .ws-sub.on button { color: color-mix(in srgb, var(--wc) 80%, #ffffff); }
:where(html[data-mode="dark"]) .ws-sub input { border-left: 1px solid color-mix(in srgb, var(--wc) 30%, #292929); background: var(--d-surface); }
:where(html[data-mode="dark"]) .imp-auto { background: #1b1529; color: #967ecb; }
:where(html[data-mode="dark"]) .imp-auto em { background: var(--d-surface); border: 1px solid #322943; color: #967ecb; }
:where(html[data-mode="dark"]) .imp-table td.assign, :where(html[data-mode="dark"]) .imp-table th.assign { background: #201e16; }
:where(html[data-mode="dark"]) .lk-table tr.bad { background: #250b0b; }
:where(html[data-mode="dark"]) .lk-table tr.warn { background: #28220c; }
:where(html[data-mode="dark"]) .lk-dpill { color: var(--ok, #a0ebd5); background: var(--ok-soft, rgba(255, 255, 255, 0.13)); }
:where(html[data-mode="dark"]) .lk-alert { border-color: #4c2f2c; background: linear-gradient(180deg, #280f0c, var(--d-surface)); }
:where(html[data-mode="dark"]) .lk-alert-row:hover { background: rgba(255, 255, 255, 0.039); }
:where(html[data-mode="dark"]) .rp-client img { background: var(--d-surface); }
:where(html[data-mode="dark"]) .rp-link em, :where(html[data-mode="dark"]) .rp-work em { color: color-mix(in srgb, var(--wc) 80%, #ffffff); background: color-mix(in srgb, var(--wc) 10%, var(--d-surface)); }
@media print {
  :where(html[data-mode="dark"]) body { background: var(--d-surface); }
}
:where(html[data-mode="dark"]) .sring.low { --sc: #a44447; }
:where(html[data-mode="dark"]) .sring.none { --sc: #4d4c47; }
:where(html[data-mode="dark"]) .sdelta.up { color: #93eecb; }
:where(html[data-mode="dark"]) .spill.good { background: #1c3126; color: #a0f1d2; }
:where(html[data-mode="dark"]) .spill.mid { background: #3c2f14; color: #f9cf87; }
:where(html[data-mode="dark"]) .spill.low { background: #301212; color: #d6666a; }
:where(html[data-mode="dark"]) .seo-hero { box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.007); }
:where(html[data-mode="dark"]) .seo-hero .sring { --ring-bg: rgba(255, 255, 255, 0.012); }
:where(html[data-mode="dark"]) .strend circle { stroke: #e9ebee; }
:where(html[data-mode="dark"]) .sa:hover { box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.56); }
:where(html[data-mode="dark"]) .sa i em { background: var(--sc, #4d4c47); }
:where(html[data-mode="dark"]) .sa.low { --sc: #a44447; }
:where(html[data-mode="dark"]) .seo-tabs a span { background: rgba(255, 255, 255, 0.091); }
:where(html[data-mode="dark"]) .seo-tabs a.on { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.192); }
:where(html[data-mode="dark"]) .notice.warn { color: #f6d6a0; }
:where(html[data-mode="dark"]) .iss.open { box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.64); }
:where(html[data-mode="dark"]) .iss-sev { color: #f1cb8b; }
:where(html[data-mode="dark"]) .iss.fail .iss-sev { color: #d86e71; }
:where(html[data-mode="dark"]) .iss-ai { background: #160e2f; }
:where(html[data-mode="dark"]) .fx-found { color: #f1cb8b; }
:where(html[data-mode="dark"]) .fx-found.fail { color: #d86e71; }
:where(html[data-mode="dark"]) .fx-fix.ai { border-color: #2b2146; background: linear-gradient(180deg, #130b26, var(--d-surface) 60%); }
:where(html[data-mode="dark"]) .fx-fix.ai .fx-lbl { border-bottom-color: #271e42; }
:where(html[data-mode="dark"]) .fx-code { background: #1f1c17; }
:where(html[data-mode="dark"]) .fx-fix.ai .fx-code { background: #130a24; }
:where(html[data-mode="dark"]) .ac-n i.warn { color: #f8cc76; }
:where(html[data-mode="dark"]) .ac-it.warn .ac-s { color: #f8cc76; }
:where(html[data-mode="dark"]) .kwchip { background: #0d192d; color: #6184d5; }
:where(html[data-mode="dark"]) .pp.bad { color: #d86e71; }
:where(html[data-mode="dark"]) .pp.warn { color: #f1cb8b; }
:where(html[data-mode="dark"]) .sp-bar i { background: var(--sc, #4d4c47); }
:where(html[data-mode="dark"]) .sp-bar.low { --sc: #a44447; }
:where(html[data-mode="dark"]) .hist .hl.site, :where(html[data-mode="dark"]) .hist .hd.site { stroke: #7feac1; }
:where(html[data-mode="dark"]) .hist-key i.gbp { background: #2d4a9c; }
:where(html[data-mode="dark"]) .gl-ic { background: linear-gradient(135deg, #1d2c24, #243b2f); color: #84edba; }
:where(html[data-mode="dark"]) .gp-riv tr.me td { background: #15261c; }
:where(html[data-mode="dark"]) .rv-d { background: #130b26; border-color: #2b2146; }
:where(html[data-mode="dark"]) .gp-opt.best { background: #15261c; }
:where(html[data-mode="dark"]) .shb.low i { background: #a44447; }
:where(html[data-mode="dark"]) .shp-flags .warn { color: #f1cb8b; }
:where(html[data-mode="dark"]) .usage-bar i { background: linear-gradient(90deg, #4b2e9e, #552889); }
:where(html[data-mode="dark"]) .ss-gbp.ok { color: #abf2d7; }
:where(html[data-mode="dark"]) .ss-gbp.bad { color: #f6d6a0; }
:where(html[data-mode="dark"]) .sr-c b em { background: #160e2f; }
:where(html[data-mode="dark"]) .mt-card.on .mt-date { color: #111216; }
:where(html[data-mode="dark"]) .warn-t { color: #f1cb8b; }
:where(html[data-mode="dark"]) .mt-carry { background: linear-gradient(180deg, #2b230d, var(--d-surface)); border-color: #4d432c; }
:where(html[data-mode="dark"]) .mt-sum { background: linear-gradient(180deg, #130b26, var(--d-surface) 70%); border-color: #292042; }
:where(html[data-mode="dark"]) .skel-hero, :where(html[data-mode="dark"]) .skel-row i, :where(html[data-mode="dark"]) .skel-list i { background: linear-gradient(90deg, #2e2c26 0%, #24221c 40%, #2e2c26 80%) 0 0 / 200% 100%; }
:where(html[data-mode="dark"]) .side .nav-item.on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.008), 0 8px 18px -12px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .side .nav-item.on::before { background: color-mix(in srgb, var(--brand) 60%, var(--d-surface)); }
:where(html[data-mode="dark"]) .side .nav-sec { color: #a2a6ae; }
:where(html[data-mode="dark"]) .side .count.hot { background: color-mix(in srgb, var(--brand) 85%, var(--d-surface)); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .side .count.red { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .side .side-find input::placeholder { color: #999da4; }
:where(html[data-mode="dark"]) .side .me-card .who b .mention.me { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.019); }
:where(html[data-mode="dark"]) .side .pin-star { color: #999da4; }
:where(html[data-mode="dark"]) .side .side-grp { color: #a2a6ae; }
:where(html[data-mode="dark"]) .side .avatar { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .app.side-mini.side-peek .side { box-shadow: 30px 0 70px -24px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) a.card:hover, :where(html[data-mode="dark"]) .folder-card:hover, :where(html[data-mode="dark"]) .tile:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.064), 0 22px 40px -26px rgba(0, 0, 0, 0.56); }
:where(html[data-mode="dark"]) .phead.dark .tabs a::after { background: var(--d-surface); }
:where(html[data-mode="dark"]) .phead.dark .tabs a.on::after { box-shadow: 0 0 14px rgba(255, 255, 255, 0.072); }
:where(html[data-mode="dark"]) .modal-bg { background: rgba(255, 255, 255, 0.14); }
:where(html[data-mode="dark"]) .hp-key li::before { background: #be5b37; }
:where(html[data-mode="dark"]) .hp-card.has-img em { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24); }
:where(html[data-mode="dark"]) .tour-hole { box-shadow: 0 0 0 4px var(--brand), 0 0 0 9999px rgba(0, 0, 0, 0.7); }
:where(html[data-mode="dark"]) .site-chip.down { background: #a44447; }
:where(html[data-mode="dark"]) .site-down { background: #2f1511; border-bottom: 1px solid #4d2d2a; color: #e8a59f; }
:where(html[data-mode="dark"]) .site-down .sd-dot { background: #a44447; }
:where(html[data-mode="dark"]) .site-down .sd-t span { color: #d28b84; }
:where(html[data-mode="dark"]) .site-dot { background: #a44447; }
:where(html[data-mode="dark"]) .rrow.pcheck.ok { background: #1a2c22; }
:where(html[data-mode="dark"]) .rrow.pcheck.bad { background: #2f1511; }
:where(html[data-mode="dark"]) .rrow.pcheck.warn { background: #372910; }
:where(html[data-mode="dark"]) .pc-ic { background: var(--d-surface); }
:where(html[data-mode="dark"]) .pcheck.ok .pc-ic { color: #9be6bf; }
:where(html[data-mode="dark"]) .pcheck.bad .pc-ic { color: #d36661; }
:where(html[data-mode="dark"]) .pcheck.warn .pc-ic { color: #f8c280; }
:where(html[data-mode="dark"]) .pc-list.bad { color: #e48c85; }
:where(html[data-mode="dark"]) .pc-post { border-left: 3px solid rgba(255, 255, 255, 0.16); background: var(--d-surface); }
:where(html[data-mode="dark"]) .ap-serp input { color: #8379ee; }
:where(html[data-mode="dark"]) .ap-bars em { background: linear-gradient(90deg, var(--brand), #5fa483); }
:where(html[data-mode="dark"]) .ap-mgrid { background: radial-gradient(circle at 50% 50%, #202b26, #2a281f); }
:where(html[data-mode="dark"]) .ap-mgrid span { box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.48); }
:where(html[data-mode="dark"]) .ap-mgrid .g3 { background: #ac5751; }
:where(html[data-mode="dark"]) .ap-prev { background: var(--d-surface); color: #e3e3e3; }
:where(html[data-mode="dark"]) .ap-mailprev { background: #26251f; }
:where(html[data-mode="dark"]) .ct-hero { background: radial-gradient(120% 140% at 100% 0%, #24604a 0%, rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #0d1f19 0%, #12302a 60%, #163b31 100%); }
:where(html[data-mode="dark"]) .ct-pulse { background: #49a37a; }
:where(html[data-mode="dark"]) .ct-pulse.idle { background: #75857e; }
:where(html[data-mode="dark"]) .ct-prog em { background: linear-gradient(90deg, #49a37a, #275f45); }
:where(html[data-mode="dark"]) .ct-chart .b2, :where(html[data-mode="dark"]) .ct-leg .b2 { fill: #e5b64e; }
:where(html[data-mode="dark"]) .updbar { box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.01) inset; }
:where(html[data-mode="dark"]) .upd-dot { background: #49a37a; }
:where(html[data-mode="dark"]) .updbar .upd-go { background: #49a37a; color: #e6f5ef; }
:where(html[data-mode="dark"]) .updbar .upd-go:hover { background: #3b8865; }
/* Glass: every plain white surface, made translucent. */
:where(html[data-style="glass"]) .btn { background: var(--g-surface); }
:where(html[data-style="glass"]) .input, :where(html[data-style="glass"]) select.input, :where(html[data-style="glass"]) textarea.input { background: var(--g-surface); }
:where(html[data-style="glass"]) .chip.toggle { background: var(--g-surface); }
:where(html[data-style="glass"]) .plogo img { background: var(--g-surface); }
:where(html[data-style="glass"]) .card { background: var(--g-surface); }
:where(html[data-style="glass"]) .nav-item.on { background: var(--g-surface); }
@media (max-width: 900px) {
  :where(html[data-style="glass"]) .mtop { background: var(--g-surface); }
}
:where(html[data-style="glass"]) .folder-body { background: var(--g-surface); }
:where(html[data-style="glass"]) .phead { background: var(--g-surface); }
:where(html[data-style="glass"]) .bubble { background: var(--g-surface); }
:where(html[data-style="glass"]) .who-pill { background: var(--g-surface); }
:where(html[data-style="glass"]) .att:hover { background: var(--g-surface); }
:where(html[data-style="glass"]) .comp-row textarea:focus { background: var(--g-surface); }
:where(html[data-style="glass"]) .popover { background: var(--g-surface); }
:where(html[data-style="glass"]) .people-panel { background: var(--g-surface); }
:where(html[data-style="glass"]) .check { background: var(--g-surface); }
:where(html[data-style="glass"]) .modal { background: var(--g-surface); }
:where(html[data-style="glass"]) .menu { background: var(--g-surface); }
:where(html[data-style="glass"]) .seg-mini button.on { background: var(--g-surface); }
:where(html[data-style="glass"]) .share-btn { background: var(--g-surface); }
:where(html[data-style="glass"]) .bcount { background: var(--g-surface); }
:where(html[data-style="glass"]) .bcard { background: var(--g-surface); }
:where(html[data-style="glass"]) .tl-now { background: var(--g-surface); }
:where(html[data-style="glass"]) .tl-now span { background: var(--g-surface); }
:where(html[data-style="glass"]) .tl-m.st-today i { background: var(--g-surface); }
:where(html[data-style="glass"]) .ft-badge { background: var(--g-surface); }
@media (max-width: 700px) {
  :where(html[data-style="glass"]) .tl-mob .st-today i { background: var(--g-surface); }
}
:where(html[data-style="glass"]) .switch::after { background: var(--g-surface); }
:where(html[data-style="glass"]) .ph-mini .mtl-rail i.st-today { background: var(--g-surface); }
:where(html[data-style="glass"]) .msg:not(.mine) .bubble::before { background: var(--g-surface); }
:where(html[data-style="glass"]) .usage { background: var(--g-surface); }
:where(html[data-style="glass"]) .ck-box { background: var(--g-surface); }
:where(html[data-style="glass"]) .rx { background: var(--g-surface); }
:where(html[data-style="glass"]) .csearch { background: var(--g-surface); }
:where(html[data-style="glass"]) .cal-i.ms { background: var(--g-surface); }
:where(html[data-style="glass"]) .wl th.wl-p, :where(html[data-style="glass"]) .wl td.wl-p { background: var(--g-surface); }
:where(html[data-style="glass"]) .side-install:hover { background: var(--g-surface); }
@media (max-width: 759px) {
  :where(html[data-style="glass"]) .composer-in { background: var(--g-surface); }
}
:where(html[data-style="glass"]) .chan button.on { background: var(--g-surface); }
:where(html[data-style="glass"]) .brand .mark.img { background: var(--g-surface); }
:where(html[data-style="glass"]) .bc-nav.on { background: var(--g-surface); }
:where(html[data-style="glass"]) .bc-login { background: var(--g-surface); }
:where(html[data-style="glass"]) .acc-seg button.on { background: var(--g-surface); }
:where(html[data-style="glass"]) .viewbar > span { background: var(--g-surface); }
:where(html[data-style="glass"]) .au-card { background: var(--g-surface); }
:where(html[data-style="glass"]) .em-meta { background: var(--g-surface); }
:where(html[data-style="glass"]) .pg-tpl:hover { background: var(--g-surface); }
:where(html[data-style="glass"]) .stmt-who { background: var(--g-surface); }
:where(html[data-style="glass"]) .tk-views button.on { background: var(--g-surface); }
:where(html[data-style="glass"]) .tk-stat { background: var(--g-surface); }
:where(html[data-style="glass"]) .tk-bar { background: var(--g-surface); }
:where(html[data-style="glass"]) .tk-grp { background: var(--g-surface); }
:where(html[data-style="glass"]) .tk-card { background: var(--g-surface); }
:where(html[data-style="glass"]) .tk-cal { background: var(--g-surface); }
:where(html[data-style="glass"]) .rc-card { background: var(--g-surface); }
:where(html[data-style="glass"]) .tm-sw i { background: var(--g-surface); }
:where(html[data-style="glass"]) .tm-days button { background: var(--g-surface); }
:where(html[data-style="glass"]) .td { background: var(--g-surface); }
:where(html[data-style="glass"]) .td-status button.on { background: var(--g-surface); }
:where(html[data-style="glass"]) .side-find:focus-within { background: var(--g-surface); }
:where(html[data-style="glass"]) .side-find kbd, :where(html[data-style="glass"]) .qs kbd { background: var(--g-surface); }
:where(html[data-style="glass"]) .side-all:hover, :where(html[data-style="glass"]) .side-more:hover { background: var(--g-surface); }
:where(html[data-style="glass"]) .pp-full { background: var(--g-surface); }
:where(html[data-style="glass"]) .imp-ring::before { background: var(--g-surface); }
:where(html[data-style="glass"]) .bt-ph { background: var(--g-surface); }
:where(html[data-style="glass"]) .bt-row { background: var(--g-surface); }
:where(html[data-style="glass"]) .bt-pick-bar .tk-search { background: var(--g-surface); }
:where(html[data-style="glass"]) .bt-p:hover { background: var(--g-surface); }
:where(html[data-style="glass"]) .bt-p.on { background: var(--g-surface); }
:where(html[data-style="glass"]) .ws-card { background: var(--g-surface); }
:where(html[data-style="glass"]) .ws-sub input { background: var(--g-surface); }
:where(html[data-style="glass"]) .svc-card { background: var(--g-surface); }
:where(html[data-style="glass"]) .imp-auto em { background: var(--g-surface); }
:where(html[data-style="glass"]) .lk-stat { background: var(--g-surface); }
:where(html[data-style="glass"]) .rp-client img { background: var(--g-surface); }
:where(html[data-style="glass"]) .rp-kpis > div { background: var(--g-surface); }
:where(html[data-style="glass"]) .rp-sec { background: var(--g-surface); }
@media print {
  :where(html[data-style="glass"]) body { background: var(--g-surface); }
}
:where(html[data-style="glass"]) .sdelta { background: var(--g-surface); }
:where(html[data-style="glass"]) .sa { background: var(--g-surface); }
:where(html[data-style="glass"]) .seo-tabs a.on { background: var(--g-surface); }
:where(html[data-style="glass"]) .iss { background: var(--g-surface); }
:where(html[data-style="glass"]) .fx-use { background: var(--g-surface); }
:where(html[data-style="glass"]) .ac { background: var(--g-surface); }
:where(html[data-style="glass"]) .gp-opt { background: var(--g-surface); }
:where(html[data-style="glass"]) .mt-card:hover { background: var(--g-surface); }
:where(html[data-style="glass"]) .mt-card.on { background: var(--g-surface); }
:where(html[data-style="glass"]) .mt-date { background: var(--g-surface); }
:where(html[data-style="glass"]) .mi-title:focus { background: var(--g-surface); }
:where(html[data-style="glass"]) .phead.dark .tabs a::after { background: var(--g-surface); }
:where(html[data-style="glass"]) .hp-top { background: var(--g-surface); }
:where(html[data-style="glass"]) .hp-card.has-img em { background: var(--g-surface); }
:where(html[data-style="glass"]) .tour-card { background: var(--g-surface); }
:where(html[data-style="glass"]) .pc-ic { background: var(--g-surface); }
:where(html[data-style="glass"]) .ap-card { background: var(--g-surface); }
:where(html[data-style="glass"]) .ap-prev { background: var(--g-surface); }
:where(html[data-style="glass"]) .ap-vid { background: var(--g-surface); }
:where(html[data-style="glass"]) .ct-chip { background: var(--g-surface); }
:where(html[data-style="glass"]) .ct-col { background: var(--g-surface); }
:where(html[data-style="glass"]) .ct-step { background: var(--g-surface); }
:where(html[data-style="glass"]) .cn-ring b { background: var(--g-surface); }
:where(html[data-style="glass"]) .cn-wiz-list span { background: var(--g-surface); }
/* ==== END GENERATED THEMES ==== */

/* ==== THEMES: each person's own appearance (My settings → Appearance) ====
   html[data-style]  classic | glass | fluid    html[data-mode]  light | dark
   html[data-wall]   the glass wallpaper    html[data-text]  s | m | l      html[data-motion] reduce
   Hard-coded colours are converted by tools/themes.py (the GENERATED THEMES block above). */
html { --d-surface: #17181c; --g-surface: rgba(255, 255, 255, .5); }

/* ---------- Dark ---------- */
html[data-mode="dark"] {
  color-scheme: dark;
  --bg: #0d0e11; --surface: #17181c; --surface-2: #1c1d22; --hover: #24262c; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --ink: #ecedef; --ink-2: #b0b4bc; --ink-3: #7a7f89;
  --brand-soft: color-mix(in srgb, var(--brand) 22%, #17181c); --mine: color-mix(in srgb, var(--brand) 20%, #17181c); --chat: #111215;
  --ok: #3cc98f; --ok-soft: rgba(60, 201, 143, .14); --warn: #f0b13d; --warn-soft: rgba(240, 177, 61, .14); --danger: #ff6b70; --danger-soft: rgba(255, 107, 112, .14); --blue: #7aa2ff; --blue-soft: rgba(122, 162, 255, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 34px -22px rgba(0, 0, 0, .8); --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .4);
  --d-surface: #17181c; --g-surface: rgba(30, 32, 39, .52);
}
html[data-mode="dark"] body { background: var(--bg); }
html[data-mode="dark"] .content { background: radial-gradient(1100px 420px at 75% -160px, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), var(--bg); }
html[data-mode="dark"] ::selection { background: color-mix(in srgb, var(--brand) 45%, transparent); }
html[data-mode="dark"] .seo-hero, html[data-mode="dark"] .hero { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -36px #000; }
html[data-mode="dark"] .btn.dark { background: linear-gradient(180deg, #f2f3f5, #d9dbe0); border-color: #d9dbe0; color: #111; }
html[data-mode="dark"] .btn.dark:hover { background: #fff; }
html[data-mode="dark"] .skel-hero, html[data-mode="dark"] .skel-row i, html[data-mode="dark"] .skel-list i { background: linear-gradient(90deg, #1b1c20 0%, #25262b 40%, #1b1c20 80%) 0 0 / 200% 100%; }
html[data-mode="dark"] .modal { border-color: rgba(255, 255, 255, .08); }
html[data-mode="dark"] .stars { color: #3a3c42; }
html[data-mode="dark"] img.avatar, html[data-mode="dark"] .plogo img { background: #fff; }

/* ---------- Liquid Glass ---------- */
html[data-style="glass"] {
  --surface: var(--g-surface); --surface-2: rgba(255, 255, 255, .32); --hover: rgba(255, 255, 255, .42); --line: rgba(255, 255, 255, .55); --line-2: rgba(30, 35, 50, .12); --bg: transparent;
  --glass-blur: blur(26px) saturate(190%); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .38);
  --glass-shine: linear-gradient(155deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 38%, rgba(255, 255, 255, 0) 60%);
  --shadow: 0 1px 1px rgba(30, 35, 60, .04), 0 24px 48px -30px rgba(30, 35, 60, .45); --chat: transparent; --mine: rgba(255, 255, 255, .6);
}
html[data-style="glass"][data-mode="dark"] {
  --g-surface: rgba(26, 28, 36, .5); --d-surface: rgba(26, 28, 36, .5); --surface-2: rgba(255, 255, 255, .05); --hover: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .16);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07);
  --glass-shine: linear-gradient(155deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, 0) 60%);
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 24px 48px -28px rgba(0, 0, 0, .85); --mine: rgba(255, 255, 255, .08);
}
html[data-style="glass"] body { background: var(--wallpaper) center / cover fixed, #dfe6f0; }
html[data-style="glass"][data-mode="dark"] body { background-color: #0b0d14; }
html[data-style="glass"] .content, html[data-style="glass"] .main, html[data-style="glass"] .app { background: transparent !important; }
/* The glass itself: frosted, with a bright edge and a soft shine from the top-left, like Apple's Liquid Glass. */
html[data-style="glass"] :is(.card, .modal, .menu, .popover, .td, .tile, .sa, .iss, .seo-tabs, .mt-card.on, .mt-date, .folder-card, .bcol, .tk-bar, .chat-top, .composer, .kw-row .input, .fx-fix, .gpp > div, .shb, .mtop) {
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--line) !important;
}
html[data-style="glass"] :is(.card, .modal, .menu, .popover, .td, .tile, .sa, .iss, .folder-card) {
  background: var(--glass-shine), var(--g-surface) !important;
  box-shadow: var(--glass-edge), var(--shadow) !important;
}
html[data-style="glass"] .card:hover, html[data-style="glass"] .tile:hover, html[data-style="glass"] .sa:hover { box-shadow: var(--glass-edge), 0 30px 60px -30px rgba(30, 35, 60, .5) !important; }
html[data-style="glass"] .modal { border-radius: 26px; }
html[data-style="glass"] .modal-bg { background: rgba(20, 24, 36, .18); backdrop-filter: blur(10px) saturate(140%); }
:where(html[data-style="glass"]) .btn { background: rgba(255, 255, 255, .55); backdrop-filter: blur(14px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px -8px rgba(30, 35, 60, .35); border-color: rgba(255, 255, 255, .7); }
:where(html[data-style="glass"][data-mode="dark"]) .btn { background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .12); }
html[data-style="glass"] .btn { border-radius: 12px; }
:where(html[data-style="glass"]) .input { background-color: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .7); }
:where(html[data-style="glass"][data-mode="dark"]) .input { background-color: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .1); }
html[data-style="glass"] .seo-tabs a.on, html[data-style="glass"] .seg-mini .on { background: rgba(255, 255, 255, .85); }
html[data-style="glass"][data-mode="dark"] .seo-tabs a.on, html[data-style="glass"][data-mode="dark"] .seg-mini .on { background: rgba(255, 255, 255, .14); }
html[data-style="glass"] :is(.ptable, .mini-table) tbody tr:hover td { background: rgba(255, 255, 255, .3); }
html[data-style="glass"][data-mode="dark"] :is(.ptable, .mini-table) tbody tr:hover td { background: rgba(255, 255, 255, .06); }
/* Dark panels (dashboard hero, SEO hero, project banner) become smoked glass. */
html[data-style="glass"] :is(.hero, .seo-hero) { background: linear-gradient(140deg, rgba(18, 20, 28, .72), rgba(30, 34, 46, .5)) !important; backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(10, 14, 30, .6); }
html[data-style="glass"] .phead.dark { background: rgba(16, 18, 26, .58) !important; backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); }
/* Sidebar: clear glass with dark text (light) or smoked glass (dark). */
html[data-style="glass"] .side {
  --ink: #15171c; --ink-2: #3f444d; --ink-3: #6d727c; --line: rgba(255, 255, 255, .55); --line-2: rgba(30, 35, 50, .12); --hover: rgba(255, 255, 255, .45); --surface: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .34) !important; backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-right: 1px solid rgba(255, 255, 255, .6); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .35);
}
html[data-style="glass"] .side .brand, html[data-style="glass"] .side .brand-t b { color: var(--ink); }
html[data-style="glass"] .side .nav-item { color: #3a3f48; }
html[data-style="glass"] .side .nav-item svg { color: #5b606a; }
html[data-style="glass"] .side .nav-item:hover { background: rgba(255, 255, 255, .45); color: #111; }
html[data-style="glass"] .side .nav-item.on { background: rgba(255, 255, 255, .78); color: #111; box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(30, 35, 60, .45); }
html[data-style="glass"] .side .nav-item.on svg { color: var(--brand); }
html[data-style="glass"] .side .nav-sec { color: #6d727c; }
html[data-style="glass"] .side .count:not(.hot):not(.red) { color: #6d727c; }
html[data-style="glass"] .side .count.hot { box-shadow: none; }
html[data-style="glass"] .side :is(.side-find, .side-install) { background: rgba(255, 255, 255, .45); border-color: rgba(255, 255, 255, .6); color: #3a3f48; }
html[data-style="glass"] .side .side-find input { color: #111; }
html[data-style="glass"] .side .me-card:hover { background: rgba(255, 255, 255, .45); }
html[data-style="glass"] .side .me-card .who b .mention.me { background: rgba(255, 255, 255, .7); color: #111; box-shadow: none; }
html[data-style="glass"] .side .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
html[data-style="glass"][data-mode="dark"] .side {
  --ink: #f3f3f0; --ink-2: #b4b8c0; --ink-3: #7b808a; --line: rgba(255, 255, 255, .08); --hover: rgba(255, 255, 255, .06); --surface: rgba(255, 255, 255, .08);
  background: rgba(14, 16, 22, .45) !important; border-right-color: rgba(255, 255, 255, .06); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
}
html[data-style="glass"][data-mode="dark"] .side .nav-item { color: #b4b8c0; }
html[data-style="glass"][data-mode="dark"] .side .nav-item svg { color: #8a8f99; }
html[data-style="glass"][data-mode="dark"] .side .nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
html[data-style="glass"][data-mode="dark"] .side .nav-item.on { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
html[data-style="glass"][data-mode="dark"] .side :is(.side-find, .side-install) { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); color: #c9ccd2; }
html[data-style="glass"][data-mode="dark"] .side .side-find input { color: #fff; }
html[data-style="glass"][data-mode="dark"] .side .me-card .who b .mention.me { background: rgba(255, 255, 255, .12); color: #fff; }
html[data-style="glass"][data-mode="dark"] .side .avatar { box-shadow: 0 0 0 2px rgba(20, 22, 28, .8); }

html[data-style="glass"] .hero-f .input { background-color: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
/* Chat: the wallpaper shows through, with a faint frosted wash so messages stay readable. */
html[data-style="glass"] .chat { background: rgba(255, 255, 255, .22) !important; backdrop-filter: blur(6px); }
html[data-style="glass"][data-mode="dark"] .chat { background: rgba(10, 12, 18, .3) !important; }
html[data-style="glass"] :is(.chat-bar, .chat-tabs, .pinbar, .ppl) { background: rgba(255, 255, 255, .35) !important; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
html[data-style="glass"][data-mode="dark"] :is(.chat-bar, .chat-tabs, .pinbar, .ppl) { background: rgba(14, 16, 22, .45) !important; }
html[data-mode="dark"] .mt-card.on .mt-date span { color: rgba(0, 0, 0, .55); }
/* Colour-coded chips (labels, services, calendar items) get deep tints in dark mode instead of pastel ones. */
html[data-mode="dark"] :is(.chip.cat, .hashtag, .tlb, .cal-i, .ig-ic, .ft) { background: hsl(var(--h) 38% 19%); color: hsl(var(--h) 70% 80%); }
html[data-mode="dark"] .cal-i.ms { background: transparent; border-color: hsl(var(--h) 40% 45%); }
html[data-mode="dark"] .cal-i.over { background: var(--danger-soft); color: var(--danger); }
html[data-mode="dark"] .folder-top { background: linear-gradient(135deg, hsl(var(--h) 35% 22%), hsl(calc(var(--h) + 30) 35% 17%)); }
html[data-mode="dark"] :is(.seg-mini, .seo-tabs) .on :is(.muted, em, span) { color: #c9ccd2; }
html[data-style="glass"] select.input, html[data-mode="dark"] select.input { background-repeat: no-repeat; background-position: right 10px center; }
html[data-mode="dark"] select.input:not(.hero-f select.input) { background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23b0b4bc%27 stroke-width=%272.2%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E"); }
/* ---------- Fluid: Apple's interface principles (WWDC "Designing Fluid Interfaces", "Details of UI Typography") ----------
   System font with size-specific tracking and leading · light materials: a translucent sidebar and chrome with content
   scrolling under · feedback on press · critically damped, interruptible motion · soft scroll edges instead of hard
   dividers · respects reduced motion, reduced transparency and higher contrast. */
html[data-style="fluid"] {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --f-ease: cubic-bezier(.32, .72, 0, 1); --ease: var(--f-ease);
  --r: 14px;
}
html[data-style="fluid"]:not([data-mode="dark"]) {
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #f5f5f7; --hover: rgba(0, 0, 0, .045); --line: rgba(0, 0, 0, .07); --line-2: rgba(0, 0, 0, .12);
  --ink: #1d1d1f; --ink-2: #424245; --ink-3: #6e6e73; --chat: #f5f5f7; --mine: color-mix(in srgb, var(--brand) 12%, #fff);
  --ok: #248a3d; --ok-soft: rgba(52, 199, 89, .14); --warn: #b25000; --warn-soft: rgba(255, 149, 0, .14); --danger: #d70015; --danger-soft: rgba(255, 59, 48, .1); --blue: #0066cc; --blue-soft: rgba(0, 122, 255, .1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04); --shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 6px 20px rgba(0, 0, 0, .05); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .14), 0 4px 12px rgba(0, 0, 0, .05);
  --f-mat: rgba(246, 246, 248, .72); --f-chrome: rgba(255, 255, 255, .72); --f-blur: blur(30px) saturate(180%);
}
html[data-style="fluid"][data-mode="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #232325; --hover: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .15);
  --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #98989d; --chat: #0b0b0c; --mine: color-mix(in srgb, var(--brand) 22%, #1c1c1e);
  --ok: #30d158; --ok-soft: rgba(48, 209, 88, .15); --warn: #ff9f0a; --warn-soft: rgba(255, 159, 10, .15); --danger: #ff453a; --danger-soft: rgba(255, 69, 58, .15); --blue: #0a84ff; --blue-soft: rgba(10, 132, 255, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5); --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 30px 70px rgba(0, 0, 0, .7);
  --f-mat: rgba(30, 30, 32, .72); --f-chrome: rgba(22, 22, 24, .72); --f-blur: blur(30px) saturate(160%); --d-surface: #1c1c1e;
}
html[data-style="fluid"] body { font-feature-settings: normal; letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
html[data-style="fluid"] body, html[data-style="fluid"] .content { background: var(--bg) !important; }
/* Typography: tracking is size-specific (tight on large text, near zero on body, a touch open on tiny labels); leading tightens as size grows. */
html[data-style="fluid"] :is(h1, .page-head h1) { font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
html[data-style="fluid"] h2 { font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
html[data-style="fluid"] h3 { font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
html[data-style="fluid"] :is(small, .small, .eyebrow, .muted.small) { letter-spacing: .005em; }
html[data-style="fluid"] .eyebrow { letter-spacing: .06em; }
/* Surfaces: white cards with a soft, layered shadow and only a hairline edge. */
html[data-style="fluid"] :is(.card, .tile) { border-color: var(--line) !important; border-radius: 18px; box-shadow: var(--shadow); }
html[data-style="fluid"] .card:hover { box-shadow: var(--shadow); }
html[data-style="fluid"] .modal { border-radius: 22px; border: 0; box-shadow: var(--shadow-lg); animation: fluidSheet .42s var(--f-ease) both; }
html[data-style="fluid"] .modal-bg { background: rgba(0, 0, 0, .28); backdrop-filter: none; }
@keyframes fluidSheet { from { transform: translateY(14px) scale(.965); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
html[data-style="fluid"] :is(.menu, .popover) { border-radius: 14px; background: var(--f-chrome) !important; backdrop-filter: var(--f-blur); -webkit-backdrop-filter: var(--f-blur); box-shadow: 0 0 0 .5px var(--line-2), var(--shadow-lg); border: 0; transform-origin: top right; animation: fluidPop .28s var(--f-ease) both; }
@keyframes fluidPop { from { transform: scale(.94); opacity: 0; } }
/* Controls: pill buttons that answer on press (scale .97), a filled primary, a segmented control, green switches. */
html[data-style="fluid"] .btn { border-radius: 980px; font-weight: 550; transition: background .2s var(--f-ease), transform .1s ease-out, box-shadow .2s; }
html[data-style="fluid"] .btn:not(.ai-btn) { border-color: transparent; background: rgba(0, 0, 0, .05); box-shadow: none; }
/* On dark panels, plain buttons and the people stack stay light-on-dark. */
html[data-style="fluid"] :is(.hero, .seo-hero, .ct-hero, .rp-head, .phead.dark) .btn:not(.dark):not(.green):not(.ai-btn) { background: rgba(255, 255, 255, .14); color: #fff; }
html[data-style="fluid"] :is(.hero, .seo-hero, .ct-hero, .rp-head, .phead.dark) .btn:not(.dark):not(.green):not(.ai-btn):hover { background: rgba(255, 255, 255, .22); }
html[data-style="fluid"] .phead.dark .stack .more { background: rgba(255, 255, 255, .2); color: #fff; }
html[data-style="fluid"][data-mode="dark"] .btn:not(.ai-btn) { background: rgba(255, 255, 255, .1); }
html[data-style="fluid"] .btn:not(.ai-btn):hover { background: rgba(0, 0, 0, .08); }
html[data-style="fluid"][data-mode="dark"] .btn:not(.ai-btn):hover { background: rgba(255, 255, 255, .15); }
html[data-style="fluid"] :is(.btn, .icon-btn, .nav-item, .chip, .seg-mini button, .hl-card, .ih-tile, .si-roles button):active { transform: scale(.97); transition: transform .1s ease-out; }
html[data-style="fluid"] :is(.btn.dark, .btn.green) { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; box-shadow: none; }
html[data-style="fluid"] :is(.btn.dark, .btn.green):hover { background: color-mix(in srgb, var(--brand) 88%, #000) !important; }
html[data-style="fluid"] .btn.ghost { background: transparent; }
html[data-style="fluid"] .btn.ghost:hover { background: var(--hover); }
html[data-style="fluid"] .input { border-radius: 12px; background-color: var(--surface); border-color: var(--line-2); }
html[data-style="fluid"]:not([data-mode="dark"]) .input { background-color: rgba(118, 118, 128, .08); border-color: transparent; }
html[data-style="fluid"]:not([data-mode="dark"]) .input:focus { background-color: #fff; }
html[data-style="fluid"] .seg-mini { background: rgba(118, 118, 128, .12); box-shadow: none; border-radius: 9px; padding: 2px; }
html[data-style="fluid"] .seg-mini button { border-radius: 7px; transition: background .25s var(--f-ease), color .2s, box-shadow .25s var(--f-ease); }
html[data-style="fluid"] .seg-mini button.on { background: #fff; color: #1d1d1f; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
html[data-style="fluid"][data-mode="dark"] .seg-mini button.on { background: #636366; color: #fff; }
html[data-style="fluid"][data-mode="dark"] .seg-mini .on :is(.muted, em, span) { color: rgba(255, 255, 255, .8); }
html[data-style="fluid"] .switch { width: 42px; height: 25px; background: rgba(120, 120, 128, .2); transition: background .25s var(--f-ease); }
html[data-style="fluid"] .switch::after { transition: transform .3s var(--f-ease); box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); }
html[data-style="fluid"] .switch:checked { background: #34c759; }
html[data-style="fluid"] .switch:checked::after { transform: translateX(17px); }
/* Sidebar: a heavier material, translucent, with dark text, like a macOS sidebar. Selection is a soft tint, not a block. */
html[data-style="fluid"] .side {
  --ink: #1d1d1f; --ink-2: #424245; --ink-3: #6e6e73; --line: rgba(0, 0, 0, .07); --line-2: rgba(0, 0, 0, .12); --hover: rgba(0, 0, 0, .05); --surface: rgba(255, 255, 255, .7);
  background: var(--f-mat) !important; backdrop-filter: var(--f-blur); -webkit-backdrop-filter: var(--f-blur); border-right: .5px solid rgba(0, 0, 0, .1); color: var(--ink);
}
html[data-style="fluid"] .side :is(.brand, .brand-t b) { color: var(--ink); }
html[data-style="fluid"] .side .brand small { color: var(--ink-3); }
html[data-style="fluid"] .side .nav-item { color: #333336; font-weight: 500; height: 32px; border-radius: 8px; }
html[data-style="fluid"] .side .nav-item svg { color: color-mix(in srgb, var(--brand) 80%, #333); }
html[data-style="fluid"] .side .nav-item:hover { background: rgba(0, 0, 0, .05); color: #000; }
html[data-style="fluid"] .side .nav-item.on { background: rgba(0, 0, 0, .08); color: #000; box-shadow: none; font-weight: 600; }
html[data-style="fluid"] .side .nav-item.on::before { display: none; }
html[data-style="fluid"] .side .nav-sec { color: #86868b; }
html[data-style="fluid"] .side .nav-sec button:hover { background: rgba(0, 0, 0, .06); color: #000; }
html[data-style="fluid"] .side .count:not(.hot):not(.red) { color: #6e6e73; }
html[data-style="fluid"] .side :is(.count.hot, .count.red) { box-shadow: none; }
html[data-style="fluid"] .side :is(.side-find, .side-install) { background: rgba(0, 0, 0, .05); border-color: transparent; color: #424245; }
html[data-style="fluid"] .side .side-find input { color: #000; }
html[data-style="fluid"] .side .side-foot { border-top-color: rgba(0, 0, 0, .06); }
html[data-style="fluid"] .side .me-card:hover { background: rgba(0, 0, 0, .05); }
html[data-style="fluid"] .side .me-card .who b .mention.me { background: rgba(0, 0, 0, .06); color: #1d1d1f; box-shadow: none; }
html[data-style="fluid"] .side .side-ver { color: #6e6e73; }
html[data-style="fluid"] .side .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
html[data-style="fluid"][data-mode="dark"] .side {
  --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #98989d; --line: rgba(255, 255, 255, .08); --hover: rgba(255, 255, 255, .07); --surface: rgba(255, 255, 255, .08);
  border-right-color: rgba(255, 255, 255, .08);
}
html[data-style="fluid"][data-mode="dark"] .side .nav-item { color: #d1d1d6; }
html[data-style="fluid"][data-mode="dark"] .side .nav-item svg { color: color-mix(in srgb, var(--brand) 55%, #fff); }
html[data-style="fluid"][data-mode="dark"] .side .nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
html[data-style="fluid"][data-mode="dark"] .side .nav-item.on { background: rgba(255, 255, 255, .12); color: #fff; }
html[data-style="fluid"][data-mode="dark"] .side .nav-sec { color: #8e8e93; }
html[data-style="fluid"][data-mode="dark"] .side .count:not(.hot):not(.red) { color: #98989d; }
html[data-style="fluid"][data-mode="dark"] .side :is(.side-find, .side-install) { background: rgba(255, 255, 255, .07); color: #d1d1d6; }
html[data-style="fluid"][data-mode="dark"] .side .side-find input { color: #fff; }
html[data-style="fluid"][data-mode="dark"] .side .me-card .who b .mention.me { background: rgba(255, 255, 255, .12); color: #fff; }
html[data-style="fluid"][data-mode="dark"] .side .side-ver { color: #98989d; }
html[data-style="fluid"][data-mode="dark"] .side .avatar { box-shadow: 0 0 0 2px rgba(30, 30, 32, .9); }
/* Floating chrome (project header, chat bars, phone top bar): light translucent material; content scrolls under.
   A soft edge instead of a hard 1px divider. */
html[data-style="fluid"] :is(.phead, .chat-top, .mtop, .chat-bar, .tk-bar) { background: var(--f-chrome) !important; backdrop-filter: var(--f-blur); -webkit-backdrop-filter: var(--f-blur); border-bottom-color: transparent; box-shadow: 0 .5px 0 var(--line-2), 0 8px 16px -14px rgba(0, 0, 0, .25); }
html[data-style="fluid"] .tk-bar { border-color: transparent; border-radius: 16px; }
html[data-style="fluid"] .phead.dark { background: rgba(28, 28, 30, .78) !important; }
/* Dark panels (dashboard hero, health, control centre) in Apple's graphite, not tinted green. */
html[data-style="fluid"] :is(.hero, .seo-hero, .ct-hero) { background: linear-gradient(160deg, #1d1d1f 0%, #2c2c2e 100%) !important; box-shadow: var(--shadow-lg); }
html[data-style="fluid"] .ct-hero::before { opacity: .5; }
/* Motion: one critically damped curve everywhere; hover lifts are gentle and settle without overshoot. */
html[data-style="fluid"] :is(.card, .tile, .hl-card, .ih-tile, .nav-item, .chip) { transition: background .25s var(--f-ease), box-shadow .3s var(--f-ease), transform .3s var(--f-ease), border-color .2s; }
html[data-style="fluid"] :is(.ih-tile, .hl-card, .tile):hover { transform: translateY(-2px); }
html[data-style="fluid"] .toast { border-radius: 14px; backdrop-filter: var(--f-blur); -webkit-backdrop-filter: var(--f-blur); animation: fluidPop .35s var(--f-ease) both; transform-origin: top center; }
/* Respect the system settings: less transparency → solid; more contrast → defined borders; less motion → fades only. */
@media (prefers-reduced-transparency: reduce) {
  html[data-style="fluid"] :is(.side, .phead, .chat-top, .mtop, .chat-bar, .tk-bar, .menu, .popover) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html[data-style="fluid"]:not([data-mode="dark"]) :is(.side) { background: #f0f0f2 !important; }
  html[data-style="fluid"]:not([data-mode="dark"]) :is(.phead, .chat-top, .mtop, .chat-bar, .tk-bar, .menu, .popover) { background: #fff !important; }
  html[data-style="fluid"][data-mode="dark"] :is(.side, .phead, .chat-top, .mtop, .chat-bar, .tk-bar, .menu, .popover) { background: #1c1c1e !important; }
}
@media (prefers-contrast: more) {
  html[data-style="fluid"] :is(.card, .tile, .modal, .menu, .popover, .btn, .input) { border: 1px solid var(--ink-3) !important; }
  html[data-style="fluid"] { --ink-3: #555558; }
  html[data-style="fluid"][data-mode="dark"] { --ink-3: #c7c7cc; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-style="fluid"] :is(.modal, .menu, .popover, .toast) { animation: fadeIn .2s ease both !important; }
  html[data-style="fluid"] :is(.ih-tile, .hl-card, .tile):hover, html[data-style="fluid"] :is(.btn, .icon-btn, .nav-item, .chip):active { transform: none; }
}
html[data-style="fluid"][data-motion="reduce"] :is(.ih-tile, .hl-card, .tile):hover, html[data-style="fluid"][data-motion="reduce"] :is(.btn, .icon-btn, .nav-item, .chip):active { transform: none; }
/* Theme changes ease instead of flashing. */
html[data-style="fluid"] body { transition: background-color .35s ease; }
/* The style card in My settings */
.ap-mock.fluid { background: #f5f5f7; }
.ap-mock.fluid .m-side { background: rgba(232, 232, 237, .9); border-right: .5px solid rgba(0, 0, 0, .1); }
.ap-mock.fluid .m-main { background: #f5f5f7; }
.ap-mock.fluid .m-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 4px 12px rgba(0, 0, 0, .06); }
.ap-mock.fluid.dark, .ap-mock.fluid.dark .m-main { background: #000; }
.ap-mock.fluid.dark .m-side { background: rgba(44, 44, 46, .9); border-right-color: rgba(255, 255, 255, .08); }
.ap-mock.fluid.dark .m-card { background: #1c1c1e; box-shadow: none; }

/* Wallpapers behind the glass (light, then dark) */
html { --wallpaper: radial-gradient(60% 70% at 12% 10%, #a8f0e0 0%, transparent 60%), radial-gradient(55% 65% at 88% 12%, #c9b8ff 0%, transparent 60%), radial-gradient(70% 70% at 70% 95%, #9fd2ff 0%, transparent 62%), radial-gradient(50% 60% at 15% 90%, #ffd6ec 0%, transparent 60%), linear-gradient(135deg, #eef3ff, #f7f2ff); }
html[data-wall="ocean"] { --wallpaper: radial-gradient(60% 70% at 10% 15%, #8fe3ff 0%, transparent 60%), radial-gradient(60% 60% at 90% 20%, #7aa7ff 0%, transparent 60%), radial-gradient(70% 70% at 60% 100%, #b3f5ea 0%, transparent 62%), linear-gradient(160deg, #e6f4ff, #eaf0ff); }
html[data-wall="sunset"] { --wallpaper: radial-gradient(60% 70% at 12% 12%, #ffc9a8 0%, transparent 60%), radial-gradient(55% 65% at 90% 15%, #ff9fc6 0%, transparent 60%), radial-gradient(70% 70% at 65% 100%, #c8a6ff 0%, transparent 62%), linear-gradient(135deg, #fff1e8, #fbeefe); }
html[data-wall="meadow"] { --wallpaper: radial-gradient(60% 70% at 12% 12%, #c6f7a6 0%, transparent 60%), radial-gradient(55% 65% at 88% 18%, #8ee6c9 0%, transparent 60%), radial-gradient(70% 70% at 60% 100%, #fff1a6 0%, transparent 62%), linear-gradient(135deg, #f1fbef, #f6fbe9); }
html[data-wall="graphite"] { --wallpaper: radial-gradient(60% 70% at 15% 10%, #e9ecf1 0%, transparent 60%), radial-gradient(60% 70% at 85% 90%, #d3d8e0 0%, transparent 62%), linear-gradient(160deg, #f4f5f7, #e4e7ec); }
html[data-mode="dark"] { --wallpaper: radial-gradient(55% 65% at 12% 10%, #0f5a54 0%, transparent 60%), radial-gradient(55% 65% at 88% 12%, #3d2a86 0%, transparent 60%), radial-gradient(70% 70% at 70% 95%, #12407a 0%, transparent 62%), radial-gradient(45% 55% at 12% 92%, #5a1f4a 0%, transparent 60%), linear-gradient(135deg, #0b0e16, #0e0b18); }
html[data-mode="dark"][data-wall="ocean"] { --wallpaper: radial-gradient(60% 70% at 10% 15%, #0b4a6e 0%, transparent 60%), radial-gradient(60% 60% at 90% 20%, #1c2f7a 0%, transparent 60%), radial-gradient(70% 70% at 60% 100%, #0b5a52 0%, transparent 62%), linear-gradient(160deg, #070d18, #0a0f1f); }
html[data-mode="dark"][data-wall="sunset"] { --wallpaper: radial-gradient(60% 70% at 12% 12%, #6b2d1c 0%, transparent 60%), radial-gradient(55% 65% at 90% 15%, #6a1d45 0%, transparent 60%), radial-gradient(70% 70% at 65% 100%, #3b2475 0%, transparent 62%), linear-gradient(135deg, #140b0b, #120a18); }
html[data-mode="dark"][data-wall="meadow"] { --wallpaper: radial-gradient(60% 70% at 12% 12%, #1f5a1a 0%, transparent 60%), radial-gradient(55% 65% at 88% 18%, #0c4f43 0%, transparent 60%), radial-gradient(70% 70% at 60% 100%, #4a4210 0%, transparent 62%), linear-gradient(135deg, #08100a, #0b1108); }
html[data-mode="dark"][data-wall="graphite"] { --wallpaper: radial-gradient(60% 70% at 15% 10%, #2a2e36 0%, transparent 60%), radial-gradient(60% 70% at 85% 90%, #1d2027 0%, transparent 62%), linear-gradient(160deg, #111318, #0b0c0f); }

/* Text size and motion */
html[data-text="s"] body { zoom: .92; }
html[data-text="l"] body { zoom: 1.1; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

/* ---------- My settings page ---------- */
.me-page { max-width: 980px; }
.ap-sec { padding: 22px 24px; margin-bottom: 16px; }
.ap-sec > h3 { font-size: 15px; margin-bottom: 4px; }
.ap-sec > p.muted { font-size: 13px; margin-bottom: 16px; }
.ap-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ap-row > b { font-size: 13.5px; }
.ap-row > b small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.ap-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ap-style { text-align: left; padding: 10px; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ap-style:hover { transform: translateY(-2px); }
.ap-style.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.ap-style > b { display: block; font-size: 13.5px; margin: 10px 4px 0; }
.ap-style > small { display: block; color: var(--ink-3); font-size: 12px; margin: 2px 4px 2px; }
.ap-mock { position: relative; height: 128px; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 30% 1fr; }
.ap-mock i { display: block; }
.ap-mock .m-side { background: #121419; }
.ap-mock .m-main { padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f7f7f4; }
.ap-mock .m-card { height: 34px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.ap-mock .m-card.s { height: 22px; width: 70%; }
.ap-mock.dark .m-main { background: #0d0e11; } .ap-mock.dark .m-card { background: #1b1c20; box-shadow: none; }
.ap-mock.glass { background: var(--mock-wall); }
.ap-mock.glass .m-side { background: rgba(255, 255, 255, .35); backdrop-filter: blur(12px); border-right: 1px solid rgba(255, 255, 255, .6); }
.ap-mock.glass .m-main { background: transparent; }
.ap-mock.glass .m-card { background: linear-gradient(155deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .3)); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -8px rgba(30, 35, 60, .35); border: 1px solid rgba(255, 255, 255, .6); }
.ap-mock.glass.dark .m-side { background: rgba(10, 12, 18, .45); border-right-color: rgba(255, 255, 255, .08); }
.ap-mock.glass.dark .m-card { background: linear-gradient(155deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .1); }
.ap-walls, .ap-accents { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-wall { width: 64px; height: 44px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; background: var(--w); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); position: relative; }
.ap-wall.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.ap-wall span { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-size: 11px; color: var(--ink-3); }
.ap-walls { padding-bottom: 18px; }
.ap-acc { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); display: grid; place-items: center; color: #fff; }
.ap-acc.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.ap-acc.team { width: auto; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.ap-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 640px) {
  .ap-row { grid-template-columns: 1fr; gap: 8px; }
  .ap-styles { grid-template-columns: 1fr; }
}



/* The tour card stays readable over anything: solid in Classic, thick frosted glass in Liquid Glass. */
.tour-card { backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6); }
html[data-style="glass"] .tour-card { background: rgba(255, 255, 255, .9); }
html[data-mode="dark"] .tour-card { background: rgba(28, 30, 36, .94); }
html[data-mode="dark"] .tour-hole { box-shadow: 0 0 0 4px var(--brand), 0 0 0 9999px rgba(0, 0, 0, .62); }

/* ---------- Error log, audit trail and signed-in devices (admin.js) ---------- */
.ops-page { max-width: 1180px; }
.ops-hero { background: radial-gradient(120% 140% at 100% 0%, #5b2a3a 0%, rgba(91, 42, 58, 0) 55%), linear-gradient(135deg, #1b1418 0%, #261a22 60%, #2d1e28 100%); }
.ops-hero .eyebrow { color: #f2b8c6; }
.ops-hero p { color: #dcc5cd; }
.ops-hero .ct-k small { color: #d9b3bf; }
.ops-hero .ct-k span { color: #dcc5cd; }
.ops-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.ops-bar .seg-mini { flex-wrap: wrap; }
.ops-bar select, .ops-filters select { width: auto; min-width: 150px; }
.ops-find { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); }
.ops-find input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); outline: none; }
.ops-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px; margin-bottom: 10px; }
.ops-list { padding: 6px; }
.ops-err { display: grid; grid-template-columns: 36px minmax(0, 1fr) 90px 110px 150px; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: none; font: inherit; color: inherit;
  padding: 12px 10px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.ops-err + .ops-err { border-top: 1px solid var(--line); border-radius: 0; }
.ops-err:hover { background: var(--hover); border-radius: 12px; }
.ops-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); flex: none; }
.ops-err.s-new .ops-ic { background: var(--danger-soft); color: var(--danger); }
.ops-err.s-fixing .ops-ic { background: var(--warn-soft); color: var(--warn); }
.ops-err.s-fixed .ops-ic { background: var(--ok-soft); color: var(--ok); }
.ops-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ops-main b { font-size: 14px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ops-main small { font-size: 12px; color: var(--ink-3); line-height: 1.4; overflow-wrap: anywhere; }
.ops-main code, .ops-ref code, .ops-facts code, .ops-trail code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.ops-who, .ops-when { display: flex; flex-direction: column; gap: 1px; }
.ops-who b, .ops-when b { font-size: 13px; font-weight: 600; }
.ops-who small, .ops-when small { font-size: 11.5px; color: var(--ink-3); }
.ops-ref { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ops-ref code { color: var(--ink-2); }
.ops-st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; font-style: normal; white-space: nowrap; background: var(--hover); color: var(--ink-2); vertical-align: middle; }
.ops-st.bad { background: var(--danger-soft); color: var(--danger); }
.ops-st.warn { background: var(--warn-soft); color: var(--warn); }
.ops-st.ok { background: var(--ok-soft); color: var(--ok); }
.ops-st.mute { background: var(--hover); color: var(--ink-3); }
.ops-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; text-align: center; color: var(--ink-3); }
.ops-empty svg.i { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.ops-empty b { color: var(--ink); font-size: 15px; }
.ops-foot { margin-top: 12px; }
.ops-modal { max-width: 860px; }
.ops-modal .modal-h { align-items: flex-start; }
.ops-modal .eyebrow { display: flex; gap: 6px; align-items: center; }
.ops-msg { font-size: 18px; line-height: 1.35; margin-top: 4px; overflow-wrap: anywhere; }
.ops-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ops-status .btn { margin-left: auto; }
.ops-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0 4px; }
.ops-fact { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.ops-fact small { display: block; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.ops-fact b { display: block; font-size: 13.5px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.ops-h { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 650; margin: 18px 0 8px; }
.ops-people { display: flex; gap: 6px; flex-wrap: wrap; }
.ops-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; }
.ops-person em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.ops-trail { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line-2); }
.ops-trail li { position: relative; padding: 4px 0 4px 14px; font-size: 13px; overflow-wrap: anywhere; }
.ops-trail li::before { content: ''; position: absolute; left: -5px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-3); }
.ops-trail li:last-child::before { border-color: var(--danger); background: var(--danger); }
.ops-trail code { color: var(--ink-3); margin-right: 8px; }
.ops-recent td { font-size: 12.5px; }
.ops-stack { margin-top: 16px; }
.ops-stack summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ops-stack pre { margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; line-height: 1.5; overflow: auto; max-height: 260px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-devgrp { padding: 6px 6px 8px; margin-bottom: 10px; }
.ops-devh { display: flex; align-items: center; gap: 10px; padding: 10px; }
.ops-devh > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ops-devh b { font-size: 14.5px; font-weight: 650; }
.ops-devh small { font-size: 12px; color: var(--ink-3); }
.ops-dev { display: grid; grid-template-columns: 36px minmax(0, 1fr) 130px 96px; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.ops-dev + .ops-dev { border-top: 1px solid var(--line); border-radius: 0; }
.ops-dev.cur .ops-ic { background: var(--ok-soft); color: var(--ok); }
.ops-dev.ended { opacity: .7; }
.ops-dev .btn { justify-self: end; }
.ops-ended summary { cursor: pointer; padding: 8px 10px; font-size: 12.5px; color: var(--ink-3); }
.ops-me .ops-dev { padding-left: 0; padding-right: 0; }
@media (max-width: 760px) {
  .ops-err { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .ops-err .ops-who, .ops-err .ops-when { display: none; }
  .ops-err .ops-ref { grid-column: 3; flex-direction: column; align-items: flex-end; }
  .ops-dev { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .ops-dev .ops-when { display: none; }
  .ops-status .btn { margin-left: 0; }
  .ops-bar select, .ops-filters select { flex: 1; }
}
.ops-devsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ops-k { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-k small { font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.ops-k b { font-size: 26px; font-weight: 650; letter-spacing: -.03em; }
.ops-k b.sm { font-size: 16px; letter-spacing: 0; line-height: 1.35; margin: 4px 0 2px; overflow-wrap: anywhere; }
.ops-k span { font-size: 12px; color: var(--ink-3); }
.ops-tip { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
@media (max-width: 760px) {
  .ops-devsum { grid-template-columns: 1fr 1fr; }
  .ops-devsum .ops-k:nth-child(2) { grid-column: 1 / -1; order: -1; }
}

/* ---------- Sign in / create account: a full page (app.js authPage) ---------- */
.si { height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; grid-auto-rows: minmax(100%, max-content); grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: var(--bg); }
.si-side { position: relative; overflow: hidden; color: #eef5f1; isolation: isolate;
  background: radial-gradient(110% 90% at 0% 0%, color-mix(in srgb, var(--brand) 55%, #0b1512) 0%, transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--brand) 35%, #0b1512) 0%, transparent 60%), linear-gradient(160deg, #0b1512 0%, #0f1f1a 55%, #0a1411 100%); }
.si-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: 18%; border-radius: 50%; z-index: -1; filter: blur(80px); opacity: .5;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 70%, #fff) 0%, transparent 65%); animation: siGlow 14s ease-in-out infinite alternate; }
@keyframes siGlow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-80px, 60px) scale(1.15); } }
.si-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(120% 90% at 30% 20%, #000 20%, transparent 75%); }
.si-side-in { position: relative; min-height: 100dvh; display: flex; flex-direction: column; gap: 26px; padding: 40px clamp(28px, 5vw, 72px) 32px; max-width: 720px; }
.si-side .brand { color: #fff; }
.si-side .brand small { color: rgba(255, 255, 255, .6); }
.si-side .brand .mark { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.si-pitch { margin-top: auto; }
.si-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .04em; color: color-mix(in srgb, var(--brand) 40%, #fff); padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.si-pitch h2 { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.08; letter-spacing: -.035em; font-weight: 650; color: #fff; margin: 18px 0 12px; max-width: 560px; }
.si-pitch p { font-size: 16px; color: rgba(238, 245, 241, .72); max-width: 480px; }
.si-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; max-width: 600px; }
.si-feats li { display: flex; gap: 12px; align-items: flex-start; }
.si-fi { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .14); }
.si-feats b { display: block; font-size: 14.5px; font-weight: 600; color: #fff; }
.si-feats small { display: block; font-size: 13px; line-height: 1.45; color: rgba(238, 245, 241, .66); margin-top: 2px; }
.si-preview { position: relative; height: 120px; max-width: 560px; flex: none; }
.si-card { position: absolute; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; min-width: 270px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); animation: siFloat 7s ease-in-out infinite; }
.si-card b { display: block; font-size: 13.5px; font-weight: 600; color: #fff; }
.si-card small { display: block; font-size: 12px; color: rgba(238, 245, 241, .65); }
.si-card > div { display: block; }
.si-card.si-c1 { left: 0; top: 0; }
.si-card.si-c2 { left: 30%; top: 62px; animation-delay: -2.4s; }
.si-card.si-c3 { right: 0; top: 4px; animation-delay: -4.6s; min-width: 0; }
@keyframes siFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.si-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.si-dot.g { background: #4ade9b; } .si-dot.b { background: #7cc4ff; }
.si-ring { width: 26px; height: 26px; border-radius: 50%; flex: none; background: conic-gradient(#4ade9b calc(var(--p, 90) * 1%), rgba(255, 255, 255, .15) 0); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); }
.si-ring i { display: none; }
.si-trust { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(238, 245, 241, .55); }

.si-main { background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; min-height: 100dvh; }
.si-panel { width: 100%; max-width: 420px; margin: auto 0; }
.si-panel.wide { max-width: 540px; }
.si-mbrand { display: none; margin-bottom: 26px; }
.si-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 30px; }
.si-tabs button { position: relative; z-index: 1; height: 40px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-radius: 10px; transition: color .2s; }
.si-tabs button.on { color: var(--ink); }
.si-tabs i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.si-tabs button.on:last-of-type ~ i { transform: translateX(100%); }
.si-head h1 { font-size: 32px; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; }
.si-head p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.si-msg { margin-top: 18px; display: flex; gap: 8px; align-items: flex-start; }
.si-gbtn { margin: 28px 0 8px; min-height: 44px; display: flex; justify-content: center; }
.si-points { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.si-points li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.si-points svg.i { color: var(--brand); flex: none; }
.si-switch { margin-top: 26px; font-size: 14px; color: var(--ink-3); text-align: center; }
.si-switch a, .si-note a { color: var(--brand); font-weight: 600; }
.si-role { margin-top: 24px; }
.si-role > span { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin-bottom: 8px; }
.si-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.si-roles button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.si-roles button:hover { border-color: var(--ink-3); }
.si-roles button svg.i { color: var(--ink-3); margin-bottom: 6px; }
.si-roles button b { font-size: 14px; font-weight: 600; }
.si-roles button small { font-size: 12px; color: var(--ink-3); }
.si-roles button.on { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.si-roles button.on svg.i { color: var(--brand); }
.si-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.si-steps li { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.si-steps li > span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--hover); color: var(--ink-3); }
.si-steps li b { display: block; font-size: 12px; font-weight: 650; line-height: 1.3; }
.si-steps li small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.3; margin-top: 1px; }
.si-steps li.on { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-soft); }
.si-steps li.on > span { background: var(--brand); color: #fff; }
.si-steps li.done > span { background: var(--ok); color: #fff; }
.si-panel > .si-steps { margin: 0 0 26px; }
.si-fine { font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.5; margin-top: 8px; }
.si-note { margin-top: 20px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.si-form { margin-top: 24px; }
.si-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.si-form .si-actions { margin-top: 6px; }
.si-go svg.i { margin: 0 -2px 0 2px; transform: rotate(-90deg); }
.si-wait { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); margin-bottom: 18px; }
.si-wait span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); animation: spin 1s linear infinite; }
.si-foot { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; color: var(--ink-3); margin-top: 28px; }
.si-foot a { color: var(--ink-3); }
.si-foot a:hover { color: var(--ink); }
@media (max-width: 980px) {
  .si { grid-template-columns: 1fr; grid-auto-rows: max-content; }
  .si-side { order: 2; }
  .si-side-in { min-height: 0; padding: 36px 24px 40px; gap: 24px; }
  .si-feats { grid-template-columns: 1fr; }
  .si-side .brand, .si-preview { display: none; }
  .si-pitch { margin-top: 0; }
  .si-pitch h2 { font-size: 26px; }
  .si-trust { margin-top: 0; }
  .si-main { min-height: auto; padding: 28px 20px 32px; }
  .si-mbrand { display: block; }
  .si-panel { margin: 0; }
}
@media (max-width: 420px) {
  .si-steps { grid-template-columns: 1fr; }
  .si-steps li small { display: inline; margin-left: 4px; }
  .si-head h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .si-glow, .si-card { animation: none; } }
html[data-motion="reduce"] .si-glow, html[data-motion="reduce"] .si-card { animation: none; }

/* ---------- Client and team health (health.js) ---------- */
.hl-page { max-width: 1240px; }
.hl-ctl { display: flex; gap: 8px; align-items: center; }
.hl-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.hl-find { max-width: 320px; }
.hl-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.hl-sum { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hl-sum:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.hl-sum-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.hl-sum > div { display: flex; flex-direction: column; min-width: 0; }
.hl-sum b { font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1.05; }
.hl-sum small { font-size: 13.5px; font-weight: 650; }
.hl-sum span { font-size: 12px; color: var(--ink-3); }
.hl-sum.s-critical .hl-sum-ic { background: var(--danger-soft); color: var(--danger); }
.hl-sum.s-watch .hl-sum-ic { background: var(--warn-soft); color: var(--warn); }
.hl-sum.s-good .hl-sum-ic { background: var(--ok-soft); color: var(--ok); }
.hl-sum.s-critical b { color: var(--danger); }
.hl-sum.on.s-critical { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.hl-sum.on.s-watch { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.hl-sum.on.s-good { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.hl-filtered { margin: -4px 0 10px; }
.hl-filtered a { color: var(--brand); }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); gap: 12px; }
.hl-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--line); position: relative; overflow: hidden; transition: box-shadow .15s, transform .15s, border-color .15s; }
.hl-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok); }
.hl-card.s-critical::before { background: var(--danger); }
.hl-card.s-watch::before { background: var(--warn); }
.hl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); border-color: var(--line-2); }
.hl-ch { display: flex; align-items: center; gap: 10px; }
.hl-ch .pchip { flex: 1; min-width: 0; font-size: 15px; font-weight: 650; }
.hl-ring { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.hl-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hl-ring circle { fill: none; stroke: var(--hover); stroke-width: 4; }
.hl-ring circle.fg { stroke: var(--ok); stroke-linecap: round; }
.hl-ring.s-critical circle.fg { stroke: var(--danger); }
.hl-ring.s-watch circle.fg { stroke: var(--warn); }
.hl-ring b { font-size: 12px; font-weight: 700; }
.hl-ms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.hl-m { padding: 8px 9px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hl-m small { font-size: 10.5px; font-weight: 650; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-m b { font-size: 15px; font-weight: 650; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.hl-m > span { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-m .red { color: var(--danger); }
.hl-d { font-style: normal; font-size: 10.5px; font-weight: 700; }
.hl-d.up { color: var(--ok); } .hl-d.down { color: var(--danger); } .hl-d.flat { color: var(--ink-3); }
.hl-kw { display: inline-flex; gap: 6px; }
.hl-kw i { font-style: normal; display: inline-flex; align-items: center; }
.hl-kw i.up { color: var(--ok); } .hl-kw i.down { color: var(--danger); }
.hl-why { display: flex; flex-direction: column; gap: 4px; }
.hl-why span { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.35; }
.hl-why span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ink-3); }
.hl-why .l-critical::before { background: var(--danger); } .hl-why .l-watch::before { background: var(--warn); } .hl-why .l-good::before { background: var(--ok); }
.hl-why .l-none { color: var(--ink-3); }
.hl-cf { display: flex; align-items: center; gap: 2px; margin-top: auto; }
.hl-cf .avatar { box-shadow: 0 0 0 2px var(--surface); margin-right: -4px; }
.hl-cf em { font-style: normal; font-size: 11px; color: var(--ink-3); margin-left: 8px; }
.hl-cf > .hl-go { margin-left: auto; color: var(--ink-3); transform: rotate(-90deg); display: inline-flex; }
.hl-team { padding: 4px; }
.hl-p { display: grid; grid-template-columns: 34px minmax(140px, 1fr) auto minmax(0, 2.2fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 6px; align-items: center; padding: 12px; border-radius: 12px; }
.hl-p + .hl-p { border-top: 1px solid var(--line); border-radius: 0; }
.hl-pn { display: flex; flex-direction: column; min-width: 0; }
.hl-pn b { font-size: 14px; font-weight: 600; } .hl-pn small { font-size: 12px; color: var(--ink-3); }
.hl-pm { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.hl-p .hl-why { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
.hl-foot { margin-top: 12px; }
.hl-mh { display: flex; align-items: center; gap: 10px; }
.hl-reasons { display: grid; gap: 6px; }
.hl-reasons > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.hl-reasons i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.hl-reasons .l-critical { background: var(--danger-soft); border-color: transparent; } .hl-reasons .l-critical i { background: var(--danger); }
.hl-reasons .l-watch { background: var(--warn-soft); border-color: transparent; } .hl-reasons .l-watch i { background: var(--warn); }
.hl-reasons .l-good { background: var(--ok-soft); border-color: transparent; } .hl-reasons .l-good i { background: var(--ok); }
.hl-tile span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.hl-tile b .hl-d { margin-left: 6px; }
.hl-tile .red { color: var(--danger); }
.hl-links { flex-wrap: wrap; }
.hl-dash { margin-bottom: 18px; }
.hl-dsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hl-dsum a { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.hl-dsum a:hover { border-color: var(--line-2); }
.hl-dsum b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.hl-dsum span { font-size: 12.5px; color: var(--ink-2); }
.hl-dsum .s-critical b { color: var(--danger); } .hl-dsum .s-watch b { color: var(--warn); } .hl-dsum .s-good b { color: var(--ok); }
.hl-dlist { margin-top: 8px; display: grid; }
.hl-drow { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.hl-drow:hover { background: var(--hover); }
.hl-drow > i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--warn); }
.hl-drow.s-critical > i { background: var(--danger); }
.hl-drow b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.hl-drow span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-drow svg.i { transform: rotate(-90deg); color: var(--ink-3); }
@media (max-width: 760px) {
  .hl-sums { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .hl-sum { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .hl-sum-ic { width: 32px; height: 32px; }
  .hl-sum b { font-size: 22px; } .hl-sum span { display: none; } .hl-sum small { font-size: 11.5px; }
  .hl-grid { grid-template-columns: 1fr; }
  .hl-ms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hl-p { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .hl-pm { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hl-p .hl-why { grid-column: 1 / -1; }
  .hl-find { max-width: none; flex: 1; }
  .hl-dsum span { font-size: 11.5px; }
  .hl-dsum a { flex-direction: column; gap: 0; }
}

/* ---------- Integrations hub (app.js drawIntegrations) ---------- */
.ih-page { max-width: 1180px; }
.ih { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.ih-rail { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ih-rail a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.ih-rail a:hover { background: var(--hover); color: var(--ink); }
.ih-rail a.on { background: var(--brand-soft); color: var(--brand); }
.ih-rail a span { flex: 1; }
.ih-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-3); opacity: .5; }
.ih-dot.ok { background: var(--ok); opacity: 1; } .ih-dot.warn { background: var(--warn); opacity: 1; } .ih-dot.bad { background: var(--danger); opacity: 1; }
.ih-body { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ih-body > .card, .ih-body .ig-grid { margin: 0; }
.ih-sh { display: flex; gap: 12px; align-items: center; }
.ih-sh h2 { font-size: 20px; letter-spacing: -.02em; }
.ih-sh p { font-size: 13.5px; color: var(--ink-3); }
.ih-ti { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.ih-hero { display: flex; gap: 20px; align-items: center; }
.ih-hero h3 { font-size: 18px; margin-bottom: 4px; }
.ih-hero p { color: var(--ink-2); font-size: 14px; max-width: 640px; }
.ih-ring { width: 74px; height: 74px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--hover) 0); position: relative; }
.ih-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ih-ring b { position: relative; font-size: 17px; font-weight: 700; }
.ih-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 4px 2px -6px; }
.ih-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ih-tile { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s, box-shadow .15s; }
.ih-tile:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.ih-tile > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ih-tile b { font-size: 14px; font-weight: 650; }
.ih-tile small { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.ih-where h3 { display: flex; gap: 8px; align-items: center; font-size: 15px; margin-bottom: 12px; }
.ih-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ih-cols > div { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ih-cols b { display: flex; gap: 6px; align-items: center; font-size: 13.5px; }
.ih-cols ul { margin: 8px 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 3px; }
.ih-cols small { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.ih-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ih-step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ih-step > span { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--brand); color: #fff; }
.ih-step b { display: block; font-size: 13.5px; font-weight: 650; }
.ih-step small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.ih-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ih-chips span { display: inline-flex; gap: 5px; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 600; }
.ih-note { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.ih-fsum { margin: -4px 2px -6px; }
.ih-flist { padding: 4px; }
.ih-frow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 12px; align-items: center; padding: 14px; border-radius: 12px; }
.ih-frow .ih-furl { grid-column: 1 / -1; grid-row: 2; }
.ih-frow + .ih-frow { border-top: 1px solid var(--line); border-radius: 0; }
.ih-fn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ih-fn .pchip { font-weight: 600; }
.ih-fn small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ih-furl { display: flex; gap: 6px; min-width: 0; }
.ih-furl input { flex: 1; min-width: 0; font-size: 12px; }
.ih-fact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ih-ctabs { margin: 14px 0 12px; }
.ih-ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.ih-cpane pre { margin: 6px 0 8px; }
@media (max-width: 900px) {
  .ih { grid-template-columns: 1fr; gap: 14px; }
  .ih-rail { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .ih-rail::-webkit-scrollbar { display: none; }
  .ih-rail a { flex: none; white-space: nowrap; }
  .ih-cols { grid-template-columns: 1fr; }
  .ih-frow { grid-template-columns: minmax(0, 1fr) auto; }
  .ih-frow .ih-fact { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
  .ih-hero { flex-direction: column; align-items: flex-start; }
}

/* ---------- Connections: the project's Connect tab, Google accounts, email (connect.js) ---------- */
.cx-page { max-width: 860px; }
.cx-hero { display: flex; gap: 20px; align-items: center; padding: 22px 24px; margin-bottom: 16px; }
.cx-hero h2 { font-size: 20px; margin-bottom: 4px; }
.cx-hero p { color: var(--ink-2); font-size: 14px; max-width: 620px; }
.cx-ring { width: 70px; height: 70px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--hover) 0); position: relative; }
.cx-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.cx-ring b { position: relative; font-size: 16px; font-weight: 700; }
.cx-card { margin-bottom: 16px; }
.cx-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.cx-h > div { flex: 1; min-width: 0; }
.cx-h h3 { font-size: 16px; }
.cx-h small { color: var(--ink-3); font-size: 12.5px; }
.cx-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--hover); color: var(--ink-2); }
.cx-n.ok { background: var(--ok); color: var(--surface); }
.cx-n.ok svg.i { stroke: var(--surface); }
.cx-n.warn { background: var(--warn-soft); color: var(--warn); }
.cx-site { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--hover); margin-bottom: 12px; }
.cx-site > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cx-site b { overflow-wrap: anywhere; }
.cx-site small { color: var(--ink-2); font-size: 12.5px; }
.cx-plat { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.cx-plat.p-wordpress { color: var(--blue); }
.cx-plat.p-google { color: var(--brand); }
.cx-wp-start { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 6px 0 12px; }
.cx-wp-start .btn.lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.cx-wp-start p { max-width: 600px; }
.cx-stps { display: grid; gap: 12px; margin: 6px 0 4px; }
.cx-stp { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.cx-stp > div { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.cx-stp p { margin: 0; max-width: 620px; }
.cx-stp-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--brand-soft); color: var(--ink); border: 1px solid var(--line-2); }
.cx-stp .cx-wp-start { margin: 2px 0 0; }
.cx-stp .cx-more { justify-self: stretch; }
.cx-more { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.cx-more summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.cx-code-steps { padding: 10px 0 4px; font-size: 13.5px; }
.cx-code-steps ol { margin: 0 0 10px 18px; display: grid; gap: 6px; }
.cx-codebox { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); margin: 6px 0; }
.cx-codebox code { flex: 1; min-width: 0; font-size: 12.5px; overflow-wrap: anywhere; color: var(--ink); }
.cx-rows { display: grid; margin-bottom: 10px; }
.cx-row { display: grid; grid-template-columns: 12px 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cx-row:first-child { border-top: 0; }
.cx-row > span:last-child { color: var(--ink-2); overflow-wrap: anywhere; }
.cx-check { margin: 12px 0; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.cx-check h4 { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 8px; }
.cx-step { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cx-step:first-of-type { border-top: 0; }
.cx-step .ig-dot { margin-top: 5px; }
.cx-step small { display: block; color: var(--ink-2); font-size: 12.5px; overflow-wrap: anywhere; }
.cx-fix { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--ink); font-size: 12.5px; display: flex; gap: 6px; }
.cx-sec { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.cx-sec p { color: var(--ink-2); margin-top: 2px; }
.cx-ident { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); align-items: center; }
.cx-ident code { background: var(--hover); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.cx-inline { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; font-weight: 600; cursor: pointer; }
.cx-pick { border-top: 1px solid var(--line); padding-top: 12px; }
.cx-dash { margin-bottom: 18px; }
.cx-drow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink); text-decoration: none; }
.cx-drow span { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.cx-drow em { font-style: normal; color: var(--brand); font-weight: 600; }
.cx-acc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ig-h + .cx-acc { border-top: 0; }
.cx-acc > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cx-acc b { overflow-wrap: anywhere; }
.cx-acc small { color: var(--ink-3); font-size: 12.5px; }
.cx-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: hsl(var(--h) 55% 92%); color: hsl(var(--h) 45% 30%); }
.cx-purp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cx-kind { margin-bottom: 14px; flex-wrap: wrap; }
.cx-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cx-grid:has(> .field:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-mail-f { justify-content: space-between; align-items: center; }
.cx-test { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-test .input { width: 220px; }
.btn.busy { opacity: .6; pointer-events: none; }
html[data-mode="dark"] .cx-av { background: hsl(var(--h) 30% 24%); color: hsl(var(--h) 60% 85%); }
@media (max-width: 700px) {
  .cx-hero { flex-direction: column; align-items: flex-start; }
  .cx-row { grid-template-columns: 12px minmax(0, 1fr); }
  .cx-row > span:last-child { grid-column: 2; }
  .cx-purp, .cx-grid, .cx-grid:has(> .field:nth-child(2):last-child) { grid-template-columns: 1fr; }
  .cx-drow { grid-template-columns: minmax(0, 1fr) auto; }
  .cx-drow em { display: none; }
  .cx-mail-f { flex-direction: column; align-items: stretch; }
  .cx-test .input { width: auto; flex: 1; }
}
/* The ring's number sits on its own solid disc, so it stays readable in every look (glass surfaces are see-through). */
.ih-ring b, .cx-ring b { position: absolute; inset: 7px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
html[data-style="glass"][data-mode="dark"] .ih-ring b, html[data-style="glass"][data-mode="dark"] .cx-ring b { background: #1a1c24; }
html[data-style="glass"]:not([data-mode="dark"]) .ih-ring b, html[data-style="glass"]:not([data-mode="dark"]) .cx-ring b { background: #ffffff; }
/* Integrations → Google accounts → Google Cloud setup */
.cx-setup > summary { list-style: none; cursor: pointer; }
.cx-setup > summary::-webkit-details-marker { display: none; }
.cx-setup[open] > summary { margin-bottom: 12px; }
.cx-steps { margin: 0 0 12px 20px; display: grid; gap: 18px; font-size: 14px; }
.cx-steps li > b { display: block; margin-bottom: 2px; }
.cx-steps p { color: var(--ink-2); font-size: 13px; margin-bottom: 8px; }
.cx-steps code { font-size: 12px; background: var(--hover); padding: 1px 5px; border-radius: 5px; color: var(--ink); overflow-wrap: anywhere; }
.cx-srow { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: center; margin: 6px 0; }
.cx-srow > span { display: flex; flex-direction: column; font-size: 13px; }
.cx-srow small { color: var(--ink-3); font-size: 12px; }
.cx-srow .cx-codebox code { background: none; padding: 0; }
.cx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cx-apis { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cx-api { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); }
.cx-api:first-child { border-top: 0; }
.cx-api > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.cx-api small { color: var(--ink-3); font-size: 12px; }
@media (max-width: 700px) {
  .cx-srow, .cx-grid2 { grid-template-columns: 1fr; gap: 4px; }
  .cx-steps { margin-left: 16px; }
}

/* Unfinished project setups (All projects) and the wizard's "Saved as you go". */
.dot-y { width: 10px; height: 10px; border-radius: 50%; background: #f5b400; flex: none; box-shadow: 0 0 0 3px var(--warn-soft); }
.drafts { padding: 6px 16px; margin-bottom: 16px; border-left: 3px solid var(--warn); }
.drafts-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.draft-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.draft-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.draft-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-t small { color: var(--ink-3); }
.draft-t .draft-err { color: var(--warn); display: flex; align-items: center; gap: 4px; }
@media (max-width: 640px) { .draft-row { flex-wrap: wrap; } .draft-row .btn-row { width: 100%; justify-content: flex-end; } }
.wz-saved { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; opacity: 0; transition: opacity .3s; }
.wz-saved.on { opacity: 1; }

/* Connect tab → Google: the account dropdown and a Choose button for every match. */
.cx-gacct { margin: 4px 0 12px; }
.cx-gacct small { display: block; margin-top: 4px; }
.cx-svc { padding: 12px 0; border-top: 1px solid var(--line); }
.cx-svc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cx-svc .search { margin-bottom: 8px; max-width: 420px; }
.cx-choices { display: flex; flex-direction: column; gap: 6px; }
.cx-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cx-choice.on { border-color: var(--brand); background: var(--brand-soft); }
.cx-choice > div { min-width: 0; display: flex; flex-direction: column; }
.cx-choice b { font-weight: 600; overflow-wrap: anywhere; }
.cx-choice small { color: var(--ink-3); overflow-wrap: anywhere; }
.cx-choice .btn, .cx-choice .ipill { flex: none; }

/* Client view: no menu for clients who only see their project (Client view → Left menu off). */
.app.focus .side, .app.focus .scrim, .app.focus .mtop { display: none; }
.app.focus, .app.focus.side-mini { grid-template-columns: minmax(0, 1fr); }
.focus-acts { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.focus-acts .input { max-width: 200px; }
.cv-btn { margin-left: 4px; }
.wp-open { margin-left: 6px; white-space: nowrap; }
@media (max-width: 900px) { .phead-row > .btn.wp-open { display: inline-flex; width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; border-radius: 10px; } .wp-open svg { margin: 0; width: 16px; height: 16px; } }
.cv-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cv-list { display: flex; flex-direction: column; }
.cv-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cv-row span { display: flex; flex-direction: column; }
.cv-row small { color: var(--ink-3); }
.cv-nav { margin-top: 6px; border-top: 2px solid var(--line-2); }
.cv-def { display: flex; gap: 8px; align-items: center; margin: 12px 0 4px; font-size: 13px; }
/* The client's Backlinks page */
.cl-page { display: flex; flex-direction: column; gap: 14px; }
.cl-biz { display: flex; gap: 16px; align-items: flex-start; padding: 18px; }
.cl-biz-t { flex: 1; min-width: 0; }
.cl-biz-t h2 { margin: 0 0 6px; }
.cl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.cl-fact { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.cl-fact span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.cl-fact small { color: var(--ink-3); }
.cl-types { padding: 14px 16px; }
.cl-types .chips { margin-top: 8px; }
.cl-table td { vertical-align: middle; }

/* Blog tab (writer.js) */
.bl-page, .bl-studio { display: flex; flex-direction: column; gap: 14px; }
.bl-seg { align-self: flex-start; }
.bl-qh { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.bl-qh > div { max-width: 640px; }
.bl-table td { vertical-align: top; }
.bl-err { display: block; margin-top: 2px; }
.bl-sc { font-weight: 700; }
.bl-sc.ok { color: var(--ok); } .bl-sc.warn { color: var(--warn); } .bl-sc.bad { color: var(--danger); }
.bl-top h2 { margin: 6px 0; }
.bl-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.bl-step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.bl-step i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--hover); font-size: 11px; }
.bl-step.on { color: var(--ink); border-color: var(--ink); }
.bl-step.done { color: var(--ok); } .bl-step.done i { background: var(--ok-soft); }
.bl-step.bad { color: var(--danger); }
.bl-step em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.bl-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .bl-grid { grid-template-columns: minmax(0, 1fr); } }
.bl-mainc { padding: 16px 20px; min-width: 0; }
.bl-view { margin-bottom: 14px; }
.bl-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bl-card { padding: 14px 16px; }
.bl-prev { max-width: 760px; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.bl-prev h1 { font-size: 28px; line-height: 1.25; margin: 0 0 14px; }
.bl-prev h2 { font-size: 21px; margin: 26px 0 8px; } .bl-prev h3 { font-size: 17px; margin: 18px 0 6px; }
.bl-prev table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.bl-prev th, .bl-prev td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.bl-prev th { background: var(--surface-2); }
.bl-prev .awm-takeaways { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 10px 16px; margin-bottom: 18px; }
.bl-prev .awm-author { margin-top: 24px; padding: 12px 16px; border-radius: 10px; background: var(--surface-2); }
.bl-prev figure img { max-width: 100%; border-radius: 10px; }
.bl-imgslot { display: flex; gap: 10px; align-items: center; margin: 16px 0; padding: 18px; border: 2px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); background: var(--surface-2); }
.bl-imgslot.done { border-style: solid; border-color: var(--ok); }
.bl-imgslot span { display: flex; flex-direction: column; } .bl-imgslot small { color: var(--ink-3); }
.bl-gap { background: var(--warn-soft); color: var(--warn); padding: 0 3px; border-radius: 4px; }
.bl-edit .bl-edit-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bl-pre { white-space: pre-wrap; font-size: 12px; background: var(--surface-2); padding: 12px; border-radius: 10px; overflow-x: auto; }
.bl-out ol { padding-left: 20px; } .bl-out li { margin-bottom: 8px; }
.bl-big { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.bl-big b { font-size: 40px; line-height: 1; }
.bl-big.ok b { color: var(--ok); } .bl-big.warn b { color: var(--warn); } .bl-big.bad b { color: var(--danger); }
.bl-big span { color: var(--ink-3); font-size: 13px; }
.bl-params { display: flex; flex-direction: column; gap: 5px; }
.bl-par { display: grid; grid-template-columns: 130px 1fr 32px; gap: 8px; align-items: center; font-size: 12px; }
.bl-par i { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.bl-par em { display: block; height: 100%; background: var(--ink-3); }
.bl-par em.ok { background: var(--ok); } .bl-par em.warn { background: var(--warn); } .bl-par em.bad { background: var(--danger); }
.bl-par b { text-align: right; }
.bl-sum { margin-top: 10px; }
.bl-fix { margin-top: 8px; font-size: 13px; } .bl-fix summary { cursor: pointer; color: var(--ink-2); } .bl-fix ul { padding-left: 18px; margin: 6px 0 0; } .bl-fix li { margin-bottom: 4px; }
.bl-det { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.bl-det:first-of-type { border-top: 0; }
.bl-cg { margin-top: 8px; } .bl-cg > small { display: block; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; margin-bottom: 3px; }
.bl-ci { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; padding: 2px 0; }
.bl-ci.ok { color: var(--ink-2); } .bl-ci.ok .i { color: var(--ok); }
.bl-ci.warn .i { color: var(--warn); } .bl-ci.bad { color: var(--danger); }
.bl-img { border-top: 1px solid var(--line); padding: 10px 0; }
.bl-img-h { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; } .bl-img-h small { color: var(--ink-3); order: 3; flex-basis: 100%; } .bl-img-h .ipill { margin-left: auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-prompt { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin: 6px 0; }
.bl-prompt p { margin: 0 0 4px; }
.bl-img-f { display: flex; gap: 6px; flex-wrap: wrap; }
.bl-round { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.bl-round:first-of-type { border-top: 0; } .bl-round small { color: var(--ink-3); } .bl-round.ok b { color: var(--ok); }
.bl-brain { display: flex; flex-direction: column; gap: 12px; max-width: 920px; }
.bl-save-row { display: flex; justify-content: flex-end; }
.bl-rule { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.bl-rule > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bl-rule.off b { color: var(--ink-3); text-decoration: line-through; }
.bl-facts { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; margin-top: 8px; }
.bl-fact { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.bl-col input[type=color] { height: 38px; padding: 3px; }
.bl-kit { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--bg); color: var(--t); border: 1px solid var(--line); }
.bl-kit b { font-size: 20px; color: var(--t); } .bl-kit i { align-self: flex-start; font-style: normal; background: var(--p); color: #fff; padding: 8px 16px; border-radius: var(--r); font-weight: 600; }
.bl-key { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.bl-key:first-of-type { border-top: 0; }
.bl-plist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.bl-plist div { display: flex; flex-direction: column; font-size: 13px; }
.bl-pk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.bl-pk-f, .bl-pk-i { display: flex; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: inherit; overflow: hidden; }
.bl-pk-i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-pk-f:hover, .bl-pk-i:hover { border-color: var(--ink-3); }

/* Systems & procedures (procedures.js) */
.sp-page .toolbar { flex-wrap: wrap; }
.sp-dh { margin: 22px 0 10px; font-size: 15px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sp-card { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow-sm); }
.sp-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.sp-card-h { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.sp-card-h b { font-weight: 600; }
.sp-wait { margin-bottom: 14px; border-left: 3px solid var(--warn); }
.sp-wrow { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.sp-wrow > div { display: flex; flex-direction: column; min-width: 0; }
.sp-body { margin-top: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.sp-body h4 { margin: 16px 0 6px; } .sp-body ul, .sp-body ol { padding-left: 22px; }
.sp-steps li { margin-bottom: 6px; }
.sp-ver { margin-top: 14px; }
.sp-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 10px 0 14px; }
.sp-cmp > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.sp-cmp > .sp-new { border-color: var(--warn); background: var(--warn-soft); }
.sp-cmp h3 { margin: 4px 0 6px; }
.sp-oldver { margin-top: 10px; padding: 12px 14px; }

/* Blog → Template */
.tp-wrap { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .tp-wrap { grid-template-columns: minmax(0, 1fr); } }
.tp-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tp-right { position: sticky; top: 12px; min-width: 0; }
.tp-prev { padding: 0; overflow: hidden; }
.tp-prev-h { display: flex; gap: 8px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tp-prev iframe { display: block; width: 100%; height: calc(100dvh - 140px); min-height: 520px; border: 0; background: #fff; }
.tp-learn { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 10px; }
.tp-learn .share-add { width: 100%; }
.tp-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tp-row:first-of-type { border-top: 0; }
.tp-row.off b { color: var(--ink-3); text-decoration: line-through; }
.tp-row.body b { color: var(--brand); }
.tp-n { width: 22px; height: 22px; border-radius: 50%; background: var(--hover); display: inline-grid; place-items: center; font-size: 11px; flex: none; }
.tp-row .icon-btn { width: 26px; height: 26px; }
.tp-adv summary { cursor: pointer; }
.tp-adv .form-grid { margin-top: 12px; }
.tp-save { position: sticky; bottom: 0; gap: 8px; align-items: center; background: var(--bg); padding: 8px 0; }
.tp-hist { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tp-hist:first-of-type { border-top: 0; }
/* Blog → Template → gallery */
.tp-gal-h h3 { margin: 0 0 2px; }
.tp-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.tp-gcard { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; overflow: hidden; font: inherit; color: inherit; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tp-gcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.tp-gcard.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tp-gcard.cur { border-color: var(--ok); }
.tp-thumb { position: relative; height: 170px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); pointer-events: none; }
.tp-thumb iframe { position: absolute; top: 0; left: 0; width: 1000px; height: 680px; border: 0; transform: scale(.25); transform-origin: 0 0; }
@media (min-width: 0) { .tp-thumb iframe { width: 400%; height: 400%; } }
.tp-gmeta { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.tp-gmeta b { font-weight: 650; }
.tp-gmeta small { font-size: 12px; line-height: 1.4; }
.tp-gmeta .chips { margin-top: 4px; gap: 4px; }
.tp-gmeta .chip.sm { font-size: 10.5px; padding: 1px 7px; }
.tp-picked { border-left: 3px solid var(--brand); }
/* Blog → All blogs and judge checks */
.bl-filt { flex-wrap: wrap; align-items: center; }
.bl-sitenote { flex-basis: 100%; }
.bl-wprow td { color: var(--ink-2); }

.bs-par { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bs-par span { display: flex; flex-direction: column; }
.bs-cust { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) auto; gap: 8px; margin-top: 8px; }
@media (max-width: 640px) { .bs-cust { grid-template-columns: 1fr auto; } .bs-cust input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }
/* Blog extras: clusters, badges, expert, content gap, results, the expert's page */
.bl-addrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.bl-clusters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: -4px 0 10px; }
.bl-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.bl-badges .chip.sm, .bl-clusters .chip { font-size: 11px; }
.bx-q { padding-left: 18px; margin: 8px 0; font-size: 13px; } .bx-q li { margin-bottom: 8px; } .bx-q small { display: block; }
.bx-a { margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid var(--ok); background: var(--ok-soft); border-radius: 0 8px 8px 0; }
.bx-send { display: flex; gap: 6px; margin-top: 6px; } .bx-send .input { flex: 1; min-width: 0; }
.bl-gap { margin-top: 16px; } .bl-gap h4 { margin: 0 0 8px; }
.bl-gapc { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.bl-gapc > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.bl-gapc > div.gain { border-color: var(--ok); background: var(--ok-soft); }
.bl-gapc small { color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; } .bl-gapc ul { margin: 4px 0 0; padding-left: 16px; }
.cl-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cl-item span { display: flex; flex-direction: column; } .cl-item.pillar b { color: var(--brand); }
.ask-page { min-height: 100dvh; background: var(--bg); padding: 32px 16px; }
.ask-card { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 5vw, 36px); box-shadow: var(--shadow); }
.ask-card h1 { font-size: clamp(22px, 4vw, 28px); margin: 6px 0; } .ask-t { font-weight: 600; font-size: 17px; margin: 0 0 12px; }
.ask-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.ask-card .field { margin-bottom: 14px; } .ask-card .btn.lg { width: 100%; justify-content: center; min-height: 48px; }
.ask-page { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bl-table td:first-child { min-width: 240px; }
.bl-wpacts { white-space: normal; min-width: 200px; } .bl-wpacts > * { margin: 2px 6px 2px 0; display: inline-flex; vertical-align: middle; }
.bl-qh { align-items: flex-start; } .bl-addrow { justify-content: flex-start; }

/* ---------- Blog → Upload a blog (blogupload.js) ---------- */
.bu-page { display: flex; flex-direction: column; gap: 14px; }
.bu-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.bu-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; overflow-wrap: anywhere; }
.bu-head p { margin-top: 4px; max-width: 720px; }
.bu-start { max-width: 760px; width: 100%; padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.bu-drop { padding: 40px 16px; }
.bu-or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12.5px; }
.bu-or::before, .bu-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bu-link { display: flex; gap: 8px; } .bu-link .input { flex: 1; min-width: 0; }
.bu-share { margin-top: -4px; }
.bu-how { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.bu-how summary { cursor: pointer; font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.bu-how ol { margin: 10px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.bu-how code { font-size: 12px; background: var(--hover); padding: 1px 5px; border-radius: 5px; }
.bu-look { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; } .bu-look .notice { width: 100%; margin-top: 4px; }
.bu-sws { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: -2px; } .bu-sws .bu-sw { margin-right: 0; }
.bu-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none; vertical-align: -2px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bu-busy { display: none; } .bu-busy.on { display: block; }
.bu-start .bu-busy.on { position: absolute; inset: 0; z-index: 2; background: color-mix(in srgb, var(--surface) 94%, transparent); border-radius: inherit; padding: 28px 24px; }
.bu-busy-float.on { position: fixed; z-index: 60; right: 18px; bottom: 18px; width: min(380px, calc(100vw - 36px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }
.bu-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.bu-steps li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-3); overflow-wrap: anywhere; }
.bu-steps li i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; }
.bu-steps li.on { color: var(--ink); font-weight: 600; } .bu-steps li.on i { border-color: var(--brand); border-top-color: transparent; animation: bu-spin .8s linear infinite; }
.bu-steps li.done { color: var(--ink-2); } .bu-steps li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.bu-steps li.bad { color: var(--danger); } .bu-steps li.bad i { background: var(--danger); border-color: var(--danger); color: #fff; }
@keyframes bu-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bu-steps li.on i { animation: none; border-top-color: var(--brand); } }
.bu-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
.bu-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bu-main { min-width: 0; position: sticky; top: 12px; }
.bu-side .card { padding: 16px; }
.bu-send { display: flex; flex-direction: column; gap: 10px; }
.bu-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bu-go { width: 100%; justify-content: center; min-height: 44px; font-size: 14.5px; }
.bu-go[disabled] { opacity: .45; cursor: not-allowed; }
.bu-feat-row { display: flex; gap: 12px; align-items: center; }
.bu-feat-img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; flex: none; background: var(--hover); border: 1px solid var(--line); }
.bu-feat-none { display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.bu-feat-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.bu-feat .bu-acts select { max-width: 100%; }
.bu-checking { color: var(--brand); font-weight: 600; }
.bu-colors { display: flex; flex-direction: column; gap: 10px; }
.bu-crows { display: flex; flex-direction: column; gap: 6px; }
.bu-crow { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.bu-crow input[type=color] { flex: none; width: 34px; height: 30px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.bu-crow > span { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; } .bu-crow > span small { font-size: 11.5px; }
.bu-cfrom { white-space: nowrap; font-size: 11.5px; } .bu-cfrom.on { color: var(--brand); font-weight: 600; }
.bu-seo-bad { margin: 0; background: var(--danger-soft); color: var(--danger); }
.bu-seo { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; }
.bu-seo b.ok { color: var(--ok); } .bu-seo .btn { align-self: flex-start; margin-top: 6px; }
.bu-wp { display: flex; gap: 14px; flex-wrap: wrap; } .bu-wp a { display: inline-flex; align-items: center; gap: 4px; }
.bu-cl { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; } .bu-cl:last-child { margin-bottom: 0; }
.bu-cl li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.bu-cl li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.bu-cl li small { color: var(--ink-3); font-size: 12px; }
.bu-cl li i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; margin-top: 1px; }
.bu-cl li.bad i { background: var(--danger-soft); color: var(--danger); }
.bu-cl li.warn i { background: var(--warn-soft); color: var(--warn); }
.bu-cl li.ok { color: var(--ink-2); } .bu-cl li.ok i { background: var(--ok-soft); color: var(--ok); }
.bu-details { display: flex; flex-direction: column; gap: 12px; }
.bu-details .field > label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bu-n { font-weight: 500; font-size: 11.5px; }
.bu-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bu-cats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bu-cats .chip { display: inline-flex; align-items: center; gap: 4px; }
.bu-cats select { width: auto; max-width: 100%; }
.bu-x { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-3); display: inline-flex; }
.bu-sug { border-style: dashed; }
.bu-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.bu-prev { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.bu-prev-h { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.bu-prev-h .seg-mini button { display: inline-flex; align-items: center; gap: 5px; }
.bu-frame-wrap { background: var(--hover); border-radius: 12px; padding: 0; overflow: hidden; display: flex; justify-content: center; }
.bu-frame-wrap.phone { padding: 14px 0; }
.bu-editbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 12px; margin: -4px -4px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.bu-plink { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.bu-plink b { display: inline-flex; align-items: center; gap: 6px; }
.bu-editbar .bu-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.bu-editbar .bu-acts { margin-top: 0; }
.bu-editbar p { flex-basis: 100%; margin: 0; }
.bu-frame-wrap.editing { box-shadow: 0 0 0 2px #2563eb; }
.bu-frame { display: block; width: 100%; height: 76vh; min-height: 520px; border: 0; background: #fff; }
.bu-frame-wrap.phone .bu-frame { width: 390px; max-width: 100%; border-radius: 22px; box-shadow: 0 0 0 8px var(--ink), 0 12px 30px rgba(0, 0, 0, .18); }
.bu-lookline { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.bu-serp { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; font-family: Arial, sans-serif; overflow-wrap: anywhere; }
.bu-serp-u { font-size: 12.5px; color: var(--ink-2); }
.bu-serp-t { font-size: 18px; color: #1a0dab; line-height: 1.3; }
.bu-serp-d { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 980px) {
  .bu-grid { grid-template-columns: minmax(0, 1fr); }
  .bu-main { position: static; }
  .bu-frame { height: 70vh; min-height: 420px; }
}
@media (max-width: 520px) {
  .bu-link { flex-direction: column; } .bu-2 { grid-template-columns: minmax(0, 1fr); }
  .bu-frame-wrap.phone { padding: 0; } .bu-frame-wrap.phone .bu-frame { border-radius: 0; box-shadow: none; }
}

/* ---------- Client links (share.js): the admins' window and the client's plain page ---------- */
.sl-modal { max-width: 760px; }
.sl-list { display: flex; flex-direction: column; gap: 12px; }
.sl-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.sl-card.off { opacity: .65; }
.sl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sl-top b { font-size: 15px; margin-right: 4px; }
.sl-acc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.sl-acc.priv { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.sl-acc.pub { background: color-mix(in srgb, #b7791f 14%, transparent); color: #9a6412; }
.sl-cred { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.sl-cred > span { display: inline-flex; align-items: center; gap: 6px; }
.sl-cred small { color: var(--ink-3); margin-right: 2px; }
.sl-cred code { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.sl-cred .btn { margin-left: auto; }
.sl-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sf-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.sf-sec { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.sf-sec:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.sf-sec span { display: flex; flex-direction: column; gap: 2px; }
.sf-sec small { color: var(--ink-3); font-size: 12px; }
.sf-acc { flex-wrap: wrap; }
.sh-page { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); }
.sh-in { max-width: 1080px; margin: 0 auto; padding: 28px 16px 48px; }
.sh-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sh-t { flex: 1; min-width: 0; }
.sh-t h1 { font-size: 22px; margin: 0; }
.sh-t small { color: var(--ink-3); }
.sh-tabs { margin-bottom: 8px; display: inline-flex; flex-wrap: wrap; }
.sh-page .page { padding-left: 0; padding-right: 0; max-width: none; }
.sh-login { max-width: 400px; margin: 40px auto; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.sh-login h2 { margin: 0; }
.sh-lock { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.sh-pwrow { display: flex; gap: 6px; align-items: center; }
.sh-pwrow .input { flex: 1; }
.sh-blist { display: flex; flex-direction: column; gap: 8px; }
.sh-blog { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; }
.sh-blog:hover { border-color: var(--brand); }
.sh-bi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); flex: none; }
.sh-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh-bt b { overflow: hidden; text-overflow: ellipsis; }
.sh-bt small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-foot { margin-top: 32px; text-align: center; color: var(--ink-3); font-size: 12px; }
@media (max-width: 640px) { .sh-in { padding-top: 18px; } .sh-t h1 { font-size: 18px; } .sl-cred .btn { margin-left: 0; } }

/* ---------- People pickers: search and tick (Add people, Team & access, Assign to) ---------- */
.pp { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.pp > .pp-h { display: flex; flex-direction: column; gap: 2px; }
.pp > .pp-h b { display: inline-flex; align-items: center; gap: 6px; }
.pp-q, .share-find { width: 100%; max-width: none; }
.share-find { margin-bottom: 8px; }
.pp-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.pp-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.pp-row:hover { background: var(--hover); }
.pp-row:has(input:checked) { background: var(--brand-soft); }
.pp-row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-row .nm small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-none { padding: 8px; }
[data-q][hidden] { display: none !important; }
.team-bar { margin-bottom: 12px; }
.team-bar .tk-search { flex: 1; max-width: 460px; }
.tm-find { margin-bottom: 8px; max-width: 260px; }
.pp, .pp > .pp-h { text-align: left; align-items: stretch; }
.pp > .pp-h { align-items: flex-start; }
.pp .tk-search, .share-find.tk-search, .tm-find.tk-search { flex: none; height: 38px; }
.pp-row { justify-content: flex-start; text-align: left; }
.pp-row input { flex: none; }
.sh-blogs .lk-stats, .sh-page .cl-page .lk-stats { margin-bottom: 12px; }
.sh-page .page { padding-top: 12px; }
.sh-blogs .tk-bar { margin-bottom: 10px; }

/* ---------- Webhooks (Leads): several per client, live data, click-to-map ---------- */
.wh-list { display: flex; flex-direction: column; gap: 12px; }
.wh-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.wh-card.off { opacity: .65; }
.wh-top { display: flex; align-items: center; gap: 12px; }
.wh-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, #8e4ec6 14%, transparent); color: #8e4ec6; flex: none; }
.wh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wh-t small { color: var(--ink-3); }
.wh-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wh-data { border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px; }
.wh-dh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wh-dh label { margin: 0; }
.wh-empty { display: flex; align-items: center; gap: 8px; color: var(--ink-3); padding: 14px; justify-content: center; }
.wh-table td { vertical-align: middle; word-break: break-word; }
.wh-table code { font-size: 12.5px; }
#wh-listen.on { background: #8e4ec6; border-color: #8e4ec6; }
.wh-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; margin-right: 6px; animation: whp 1s ease-in-out infinite; }
@keyframes whp { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Per-person tab limits (People → Tabs) ---------- */
.tabs a.locked { opacity: .5; }
.tabs a.locked:hover { opacity: .75; }
.tab-lock b { font-size: 16px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 18px; margin-top: 8px; }
.tl-h { margin: 16px 0 6px; }
.tl-streams { margin-top: 8px; }
.btn.warn-soft { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tl-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 11.5px; cursor: pointer; }
.tl-btn:hover { color: var(--ink); border-color: var(--line-2); }
.tl-btn.on { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.share-list .nm { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- Chat side panel: who is in this group (workstream members, and admins who also see it) ---------- */
.pp-sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 4px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.pp-sec .btn { text-transform: none; letter-spacing: 0; }
.prow.also { opacity: .8; }
.sm-list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }

/* ---------- Counted tasks ("3 times a week"): a counter on the person pill ---------- */
.who-pill.cnt { background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 22%, transparent) var(--cp), transparent var(--cp)), var(--surface-2); }
.cnt-chip { font-variant-numeric: tabular-nums; }
.tm-times { width: 80px; }

/* ---------- Task form: the workstream picked for you ---------- */
.tm-smart { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #7a3fc2; background: color-mix(in srgb, #8e4ec6 12%, transparent); padding: 3px 9px; border-radius: 99px; margin: 0 0 6px; }

/* ---------- Chat: the same WhatsApp-style wallpaper in every channel ---------- */
/* Team and workstream chats used to paint a flat colour over the doodles; now they tint the wallpaper instead. */
.team-chan .msgs { background-color: rgba(246, 232, 200, .35); }
.chat.ws-chan .msgs { background-color: color-mix(in srgb, var(--wc) 6%, transparent); }
:where(html[data-mode="dark"]) .team-chan .msgs { background-color: rgba(70, 55, 25, .3); }

/* ---------- Phones: the conversation gets the screen ---------- */
.ph-menu, .c-plus { display: none; }
@media (max-width: 900px) {
  /* In a chat the menu button moves into the project header, so the empty top bar goes. */
  .app:not(.focus):has(.pbody.chatmode) .mtop { display: none; }
  .app:not(.focus) .project:has(.pbody.chatmode) .ph-menu { display: inline-grid; flex: none; margin-left: -6px; color: inherit; }
  /* Filters and search on one line: search is an icon that opens when tapped (or while it holds a search). */
  .chat-top { flex-wrap: nowrap; }
  .chat-top .chat-bar { flex: 1 1 auto; min-width: 0; padding: 7px 4px 7px 10px; border-bottom: 0; background: none; }
  .chat-tools { width: auto; padding: 0 8px 0 0; gap: 4px; }
  .csearch { width: 34px; padding: 0 9px; transition: width .2s ease; }
  .csearch input { width: 0; }
  .csearch:focus-within, .csearch:has(input:not(:placeholder-shown)) { width: min(60vw, 260px); }
  .chat-tools .ai-btn { width: 34px; height: 32px; padding: 0; justify-content: center; }
}
@media (max-width: 700px) {
  .chan { padding: 6px 8px 0; gap: 4px; }
  .chan button { padding: 6px 10px; gap: 7px; min-width: 0; flex: none; }
  .chan button b { font-size: 13px; white-space: nowrap; }
  .project:has(.pbody.chatmode) .phead .tabs { margin-top: 4px; }
  .project:has(.pbody.chatmode) .phead .tabs a { padding: 8px 11px; }
  .pinbar { padding: 3px 10px; }
  .pin-t { flex-direction: row; align-items: baseline; gap: 6px; }
  .pin-t small { flex: none; }
  .pinbar .icon-btn { width: 28px; height: 28px; }
  /* While typing, the tabs, channels and filters step aside (like WhatsApp: just the name and the chat). */
  .project:has(#ctext:focus) .phead .tabs, .chat:has(#ctext:focus) .chan, .chat:has(#ctext:focus) .chat-top, .chat:has(#ctext:focus) .pinbar { display: none; }
}
@media (max-width: 600px) {
  /* The composer is one line, [+] [message] [send]; + shows the tools above it. */
  .composer-in { width: calc(100% - 12px); margin: 0 auto calc(6px + env(safe-area-inset-bottom)); padding: 5px 6px; border-radius: 26px; }
  .comp-row { flex-wrap: nowrap; align-items: flex-end; }
  .comp-row textarea { order: 0; flex: 1 1 auto; min-height: 40px; padding: 9px 14px; }
  .comp-row .icon-btn { height: 40px; }
  .comp-row .send { width: 40px; height: 40px; margin-left: 2px; }
  .comp-row .c-plus { display: inline-grid; }
  .comp-row .c-plus .i { transition: transform .2s ease; }
  .composer:not(.tools-open) .comp-row > :is([data-act="c-at"], [data-act="c-attach"], #cai, #cdue, #cmore) { display: none; }
  .composer.tools-open .comp-row { flex-wrap: wrap; row-gap: 4px; }
  .composer.tools-open .comp-row textarea { order: -1; flex: 1 0 100%; }
  .composer.tools-open .comp-row .send { margin-left: auto; }
  .composer.tools-open .c-plus .i { transform: rotate(45deg); }
  .msgs { padding: 6px 8px 10px; }
}
@media (max-width: 600px) { .comp-row textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.csearch input:focus, .csearch input:focus-visible { outline: 0; box-shadow: none; border: 0; background: none; }
.ops-gh { font-style: normal; font-size: 10.5px; font-weight: 700; color: #57606a; background: #eef1f4; border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.ops-ghc { margin-top: 16px; }
.ops-ghf { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 12px; }

/* ---------- My tasks: when, project chips, cards that lead with the project ---------- */
.my-page .page-head { margin-bottom: 18px; }
.my-seg button { font-size: 13.5px; padding: 7px 14px; }
.my-when-row, .my-pj-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 4px; margin-bottom: 8px; }
.my-when-row::-webkit-scrollbar, .my-pj-row::-webkit-scrollbar { display: none; }
.my-when { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13px; cursor: pointer; transition: background .12s, border-color .12s; }
.my-when i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); min-width: 18px; height: 18px; border-radius: 99px; background: var(--surface-2); display: grid; place-items: center; padding: 0 5px; }
.my-when:hover { border-color: var(--ink-3); color: var(--ink); }
.my-when.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.my-when.on i { background: rgba(255, 255, 255, .18); color: #fff; }
.my-when.bad:not(.on) { color: #c2410c; border-color: #fdba74; }
.my-when.bad:not(.on) i { background: #ffedd5; color: #c2410c; }
.my-pj { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .12s, background .12s; }
.my-pj > .i { margin-left: 4px; color: var(--ink-3); }
.my-pj i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.my-pj span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-pj:hover { border-color: var(--line-2); }
.my-pj.on { border-color: hsl(var(--ph, 160) 55% 45%); background: hsl(var(--ph, 160) 70% 96%); box-shadow: 0 0 0 1px hsl(var(--ph, 160) 55% 45%); }
.my-pj.on:first-child { border-color: var(--ink); background: var(--surface-2); box-shadow: 0 0 0 1px var(--ink); }
.my-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 16px; }
.my-tools .tk-search { flex: 1 1 240px; }
.my-list { display: flex; flex-direction: column; gap: 8px; }
.my-gh { display: flex; align-items: center; gap: 8px; margin: 14px 2px 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.my-gh:first-child { margin-top: 0; }
.my-gh b { font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.my-gh span { font-weight: 700; background: var(--surface-2); border-radius: 99px; padding: 1px 8px; }
.my-gh.red b { color: #c2410c; }
.my-gh.today b { color: var(--brand); }
.my-gh.pj { text-transform: none; letter-spacing: 0; font-size: 14px; margin-top: 18px; }
.my-gh.pj b { color: var(--ink); font-size: 15px; }
.my-gh.pj a { margin-left: auto; text-transform: none; }
.my-card { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 13px 16px 13px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s, transform .12s; overflow: hidden; }
.my-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: hsl(var(--ph, 160) 55% 55%); }
.my-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.my-card.over { border-color: #fed7aa; }
.my-card.is-done { opacity: .72; }
.my-card.is-done .myc-title { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.my-card > .check { margin-top: 2px; flex: none; }
.myc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.myc-proj { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.myc-proj b { font-weight: 700; color: hsl(var(--ph, 160) 45% 32%); }
.myc-proj .plogo { --s: 18px; border-radius: 5px; font-size: 8px; }
.myc-team { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: #b7770b; }
.myc-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.myc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.myc-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.myc-right { flex: none; display: flex; align-items: center; padding-top: 2px; }
:where(html[data-mode="dark"]) .myc-proj b { color: hsl(var(--ph, 160) 60% 72%); }
:where(html[data-mode="dark"]) .my-pj.on { background: hsl(var(--ph, 160) 30% 18%); }
@media (max-width: 600px) {
  .my-card { flex-wrap: wrap; padding: 12px 12px 12px 15px; gap: 10px; }
  .myc-main { flex: 1 1 calc(100% - 48px); }
  .myc-right { padding-left: 42px; padding-top: 0; }
  .my-tools .tk-search { flex-basis: 100%; }
}
/* A recurring card opens as a whole. */
.rc-card { cursor: pointer; }
.rc-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
@media (max-width: 600px) {
  .my-page .page-head { margin-bottom: 12px; gap: 10px; }
  .my-page .page-head h1 { font-size: 24px; }
  .my-page .page-head p { display: none; }
  .my-when { height: 32px; padding: 0 11px; }
  .my-pj { height: 36px; }
  .my-tools { gap: 6px; }
  .my-tools #my-person { flex: 1 1 0; min-width: 0; }
  .my-tools .tk-group { flex: none; }
}

/* ---------- Checked by (a manager checks the work) ---------- */
.qc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.qc > .i { flex: none; }
.qc > span:first-of-type { flex: 1; min-width: 180px; }
.qc em { display: block; font-style: normal; margin-top: 3px; color: var(--ink); }
.qc.wait { background: #f3f0ff; border-color: #dcd3ff; color: #5b3fc4; }
.qc.back { background: #fff4ed; border-color: #fed7aa; color: #c2410c; }
.qc.ok { background: #ecfdf3; border-color: #bbf0d0; color: #137a52; }
.tm-appr { display: flex; flex-direction: column; gap: 8px; }
.tm-appr .chip .avatar { box-shadow: none; }
.tm-appr .chip[disabled] { opacity: .45; cursor: not-allowed; }
.tk-m.qc-waiting { color: #5b3fc4; background: #f3f0ff; }
.tk-m.qc-back { color: #c2410c; background: #fff4ed; }
.tk-m.qc-approved { color: #137a52; background: #ecfdf3; }
.my-gh.check b { color: #5b3fc4; }
.my-card.to-check { border-color: #dcd3ff; background: linear-gradient(90deg, #faf8ff, var(--surface) 40%); }
.myc-qc { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #f3f0ff; color: #5b3fc4; margin-top: 1px; }
.myc-acts { display: inline-flex; gap: 6px; }
.myc-back { display: flex; gap: 7px; align-items: flex-start; margin-top: 4px; padding: 7px 10px; border-radius: 10px; background: #fff4ed; color: #9a3412; font-size: 12.5px; line-height: 1.4; }
.myc-back .i { margin-top: 2px; flex: none; }
:where(html[data-mode="dark"]) .qc.wait, :where(html[data-mode="dark"]) .tk-m.qc-waiting, :where(html[data-mode="dark"]) .myc-qc { background: #2a2346; border-color: #3d3366; color: #c4b5fd; }
:where(html[data-mode="dark"]) .qc.back, :where(html[data-mode="dark"]) .tk-m.qc-back, :where(html[data-mode="dark"]) .myc-back { background: #3a2316; border-color: #5c3416; color: #fdba74; }
:where(html[data-mode="dark"]) .qc.ok, :where(html[data-mode="dark"]) .tk-m.qc-approved { background: #12301f; border-color: #1d4a31; color: #86efac; }
:where(html[data-mode="dark"]) .my-card.to-check { background: var(--surface); border-color: #3d3366; }
.my-gh b { white-space: nowrap; }

/* ---------- Work log ---------- */
.wl-acts { display: flex; gap: 8px; }
.wl-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.wl-sum { display: flex; align-items: baseline; gap: 10px; margin: 4px 2px 12px; }
.wl-sum b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.wl-sum span { color: var(--ink-2); font-weight: 550; }
.wl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 16px; }
.wl-tile { text-align: left; display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; color: var(--ink); }
.wl-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: hsl(var(--ph, 160) 55% 55%); }
.wl-tile:hover { border-color: var(--line-2); }
.wl-tile.on { border-color: hsl(var(--ph, 160) 55% 45%); box-shadow: 0 0 0 1px hsl(var(--ph, 160) 55% 45%); }
.wl-th { display: flex; align-items: center; gap: 8px; }
.wl-th b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.wl-th span { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.wl-ts { display: flex; flex-wrap: wrap; gap: 4px; }
.wl-ts em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 99px; padding: 1px 8px; }
.wl-tile small { color: var(--ink-3); font-size: 11.5px; }
.wl-list { padding: 0; overflow: hidden; }
.wl-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.wl-row:last-child { border-bottom: 0; }
.wl-row .ft { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: hsl(var(--h) 80% 95%); color: hsl(var(--h) 60% 40%); }
.wl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wl-a { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-a:hover { color: var(--brand); text-decoration: underline; }
.wl-main small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.wl-main small a { color: var(--ink-2); }
.wl-main small a:hover { text-decoration: underline; }
.wl-who { flex: none; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.wl-who em { font-style: normal; color: var(--ink-3); white-space: nowrap; }
:where(html[data-mode="dark"]) .wl-row .ft { background: hsl(var(--h) 30% 18%); color: hsl(var(--h) 70% 70%); }
@media (max-width: 600px) { .wl-row { flex-wrap: wrap; } .wl-who { padding-left: 44px; } .wl-acts .btn { padding: 0 10px; } }
.wl-th .plogo { --s: 22px; font-size: 9px; border-radius: 6px; flex: none; }

/* ---------- Repeating task timeline ---------- */
.rt h4 { display: flex; align-items: center; gap: 6px; }
.rt-per { margin-left: auto; font-weight: 600; font-size: 11.5px; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.rt-bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); margin: 10px 0 6px; }
.rt-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 25%, transparent), color-mix(in srgb, var(--brand) 45%, transparent)); }
.rt-bar.late > i { background: linear-gradient(90deg, #fed7aa, #fb923c); }
.rt-bar > b { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--pc, var(--brand)); border: 2px solid var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.rt-bar > u { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.rt-ends { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-3); }
.rt-ends span { display: inline-flex; align-items: center; gap: 4px; }
.rt-ends .bad { color: #c2410c; font-weight: 600; }
.rt-people { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.rt-p { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rt-pn { min-width: 70px; font-weight: 600; }
.rt-p .avatar { flex: none; }
.rt-dots { display: inline-flex; gap: 4px; }
.rt-dots i { width: 12px; height: 12px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line-2); }
.rt-dots i.on { background: var(--brand); border-color: var(--brand); }
.rt-p em { font-style: normal; color: var(--ink-3); font-size: 12px; margin-left: auto; }
.rt-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--ink-2); margin: 10px 0 0; }
.rt-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rt-row small { min-width: 74px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.rt-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.rt-chip.ok { background: #ecfdf3; color: #137a52; border-color: #bbf0d0; }
.rt-chip.late { background: #fff7e6; color: #b45309; border-color: #fde3a7; }
.rt-chip.miss { background: #fff1f0; color: #c2362e; border-color: #fecaca; }
.rt.slim { margin-top: 10px; }
.rt.slim .rt-bar { height: 7px; margin: 0 0 5px; }
.rt.slim .rt-bar > b { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
:where(html[data-mode="dark"]) .rt-chip.ok { background: #12301f; color: #86efac; border-color: #1d4a31; }
:where(html[data-mode="dark"]) .rt-chip.late { background: #3a2a10; color: #fcd34d; border-color: #5c4416; }
:where(html[data-mode="dark"]) .rt-chip.miss { background: #3a1616; color: #fca5a5; border-color: #5c2020; }

/* ---------- Repeating task in the chat: one glance ---------- */
.rc2 { --rc: var(--brand); margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--rc) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rc) 22%, var(--line)); display: flex; flex-direction: column; gap: 8px; }
.rc2.warn { --rc: #d97706; }
.rc2.bad { --rc: #dc2626; }
.rc2.ok { --rc: #16a34a; }
.rc2-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.rc2-h > .i { color: var(--rc); flex: none; }
.rc2-h b { color: var(--ink); font-weight: 700; flex: none; }
.rc2-h span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc2-left { margin-left: auto; flex: none; font-style: normal; font-weight: 700; font-size: 11.5px; padding: 2px 9px; border-radius: 99px; color: var(--rc); background: color-mix(in srgb, var(--rc) 13%, transparent); }
.rc2-bar { position: relative; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--rc) 10%, var(--surface-2)); }
.rc2-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: color-mix(in srgb, var(--rc) 55%, transparent); }
.rc2-bar > b { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--pc, var(--rc)); border: 2px solid var(--surface); }
.rc2-people { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rc2-p { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.rc2-p .avatar { flex: none; box-shadow: none; }
.rc2-seg { display: inline-flex; gap: 3px; }
.rc2-seg i { width: 14px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.rc2-seg i.on { background: var(--rc); }
.rc2-p b { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rc2-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-3); }
.rc2-f b { color: var(--ink-2); font-weight: 600; }
.rc2-hist { display: inline-flex; align-items: center; gap: 4px; }
.rc2-hist i { width: 8px; height: 8px; border-radius: 50%; }
.rc2-hist i.ok { background: #16a34a; }
.rc2-hist i.late { background: #f59e0b; }
.rc2-hist i.miss { background: #dc2626; }
.rc2-hist small { margin-left: 4px; font-size: 11.5px; }
.task-foot:empty { display: none; }

/* SEO: Audit now */
.sh-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sh-btns .sh-sch { margin-top: 0; }
.sh-now { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: inherit; }
.sh-now.run .i { animation: spin 1.2s linear infinite; }
/* My tasks: "Task for me" next to To do / Done, and its project picker */
.my-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.my-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-i.ms.rep { border-style: dotted; }

/* ---------- Client share page (#/s/…): a branded report ---------- */
.sh2 { --bc: #13795b; --bcd: color-mix(in srgb, var(--bc) 62%, #050a12); position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); color: var(--ink); }
.sh2.is-opening { display: grid; place-items: center; padding: 16px; }
.sh2-hero { position: relative; overflow: hidden; color: #fff; padding: 18px 0 64px;
  background: radial-gradient(1200px 420px at 85% -10%, color-mix(in srgb, var(--bc) 70%, #fff) 0%, transparent 60%), linear-gradient(135deg, var(--bcd) 0%, var(--bc) 120%); }
.sh2-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 0%, transparent 75%); }
.sh2-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
.sh2-in { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sh2-bar { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.sh2-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; }
.sh2-brand b { font-weight: 650; letter-spacing: -.01em; }
.sh2-blogo { width: auto; max-width: 140px; object-fit: contain; border-radius: 6px; }
.sh2-bmark { display: inline-grid; place-items: center; border-radius: 8px; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.sh2-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.sh2-btn:hover { background: rgba(255, 255, 255, .16); }
.sh2-id { display: flex; align-items: center; gap: 18px; margin-top: 34px; animation: sh2Up .5s both; }
.sh2-id .plogo, .sh2-id img { box-shadow: 0 10px 30px rgba(0, 0, 0, .25), 0 0 0 3px rgba(255, 255, 255, .25); border-radius: 18px; }
.sh2-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.sh2-id h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin: 6px 0 6px; color: #fff; }
.sh2-id p { margin: 0; opacity: .85; font-size: 14px; }
.sh2-live { display: inline-flex; align-items: center; gap: 6px; }
.sh2-live i { width: 7px; height: 7px; border-radius: 50%; background: #5dffb0; box-shadow: 0 0 0 0 rgba(93, 255, 176, .6); animation: sh2Pulse 2s infinite; }
.sh2-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 30px; }
.sh2-kpi { position: relative; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); animation: sh2Up .5s both; display: flex; flex-direction: column; }
.sh2-kpi b { font-size: 34px; line-height: 1; letter-spacing: -.03em; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 12px; }
.sh2-kpi > span:not(.sh2-ki) { font-size: 13px; font-weight: 600; margin-top: 8px; }
.sh2-kpi small { font-size: 12px; opacity: .7; margin-top: 2px; }
.sh2-ki { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.sh2-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 99px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .14); }
.sh2-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border: 0; border-radius: 99px; background: none; color: rgba(255, 255, 255, .8); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sh2-tabs button:hover { color: #fff; }
.sh2-tabs button.on { background: #fff; color: var(--bcd); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.sh2-main { position: relative; z-index: 2; max-width: 1080px; margin: -40px auto 0; padding: 0 20px; }
.sh2-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 50px -18px rgba(16, 24, 40, .18); padding: 26px; animation: sh2Up .45s .1s both; }
.sh2-sh h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.02em; margin: 0; }
.sh2-sh h2 svg { color: var(--bc); }
.sh2-sh p { color: var(--ink-2); margin: 6px 0 0; font-size: 14px; }
.sh2-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 6px; }
.sh2-tools .tk-search { flex: 1; min-width: 200px; max-width: 360px; }
.sh2-seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.sh2-seg button { height: 30px; padding: 0 13px; border: 0; border-radius: 99px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.sh2-seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.sh2-mh { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sh2-mh b { font-size: 14px; letter-spacing: -.01em; }
.sh2-mh span { color: var(--ink-3); font-size: 12.5px; }
.sh2-blist { display: grid; gap: 8px; }
.sh2-blog { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; animation: sh2Up .4s both; }
.sh2-blog:hover { border-color: color-mix(in srgb, var(--bc) 45%, var(--line)); transform: translateY(-1px); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--bc) 60%, transparent); }
.sh2-date { flex: none; width: 50px; height: 54px; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: color-mix(in srgb, var(--bc) 9%, var(--surface)); color: color-mix(in srgb, var(--bc) 80%, var(--ink)); }
.sh2-date b { font-size: 19px; line-height: 1; font-weight: 700; }
.sh2-date small { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.sh2-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sh2-bt b { font-size: 15px; font-weight: 620; letter-spacing: -.01em; line-height: 1.3; }
.sh2-bt small { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-3); font-size: 12.5px; }
.sh2-kw { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-weight: 550; }
.sh2-read { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--bc); padding: 6px 11px; border-radius: 99px; background: color-mix(in srgb, var(--bc) 8%, transparent); }
.sh2-empty { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sh2-empty p { color: var(--ink-2); margin: 0; }
.sh2-lock { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--bc) 12%, transparent); color: var(--bc); margin-bottom: 6px; }
.sh2-rep { padding: 8px; }
.sh2-rep .page { padding: 18px; max-width: none; }
.sh2-sec #sh-links { margin-top: 16px; }
.sh2-sec #sh-links .page { padding: 0; max-width: none; }
.sh2-foot { max-width: 1080px; margin: 0 auto; padding: 34px 20px 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-3); font-size: 12.5px; }
.sh2-foot .sh2-brand { color: var(--ink-2); }
.sh2-foot .sh2-bmark { background: var(--bc); }
.sh2-foot small { display: inline-flex; align-items: center; gap: 5px; }
/* Sign in: the brand panel beside the form */
.sh2.is-login .sh2-hero { padding-bottom: 120px; }
.sh2.is-login .sh2-main { margin-top: -96px; }
.sh2-login { display: grid; grid-template-columns: 1.05fr 1fr; max-width: 860px; margin: 0 auto; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(16, 24, 40, .35); animation: sh2Up .5s both; }
.sh2-lside { position: relative; overflow: hidden; padding: 34px; color: #fff; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(160deg, var(--bc) 0%, var(--bcd) 100%); }
.sh2-lside .plogo, .sh2-lside img { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); border-radius: 16px; }
.sh2-lside h2 { color: #fff; font-size: 28px; letter-spacing: -.03em; margin: 2px 0 0; }
.sh2-lside p { margin: 0; opacity: .8; }
.sh2-lside ul { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 10px; }
.sh2-lside li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.sh2-lside li span { display: flex; flex-direction: column; }
.sh2-lside li small { opacity: .75; font-size: 12px; }
.sh2-lside .sh2-brand { margin-top: auto; opacity: .9; }
.sh2-lform { padding: 34px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.sh2-lform h3 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
.sh2-lform p { margin: 0; }
.sh2-go { height: 46px; font-size: 14.5px; background: var(--bcd) !important; border-color: var(--bcd) !important; }
.sh2-open { color: #fff; }
@keyframes sh2Up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sh2Pulse { 0% { box-shadow: 0 0 0 0 rgba(93, 255, 176, .55); } 70% { box-shadow: 0 0 0 8px rgba(93, 255, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 255, 176, 0); } }
@media (max-width: 720px) {
  .sh2-hero { padding: 14px 0 56px; }
  .sh2-in, .sh2-main { padding: 0 16px; }
  .sh2-id { margin-top: 24px; gap: 14px; }
  .sh2-id .plogo, .sh2-id img { width: 52px !important; height: 52px !important; }
  .sh2-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sh2-kpi { padding: 13px 14px; }
  .sh2-kpi b { font-size: 26px; }
  .sh2-btn span { display: none; }
  .sh2-card { padding: 18px 14px; border-radius: 18px; }
  .sh2-login { grid-template-columns: 1fr; }
  .sh2-lside { padding: 24px; }
  .sh2-lside ul { display: none; }
  .sh2-lform { padding: 24px; }
  .sh2-read { display: none; }
  .sh2-tabs { display: flex; width: 100%; }
  .sh2-tabs button { flex: 1; justify-content: center; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .sh2 * { animation: none !important; } }
@media print {
  .sh2 { position: static; overflow: visible; }
  .sh2-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; padding-bottom: 24px; }
  .sh2-btn, .sh2-tabs, .sh2-tools, .sh2-read { display: none !important; }
  .sh2-main { margin-top: 16px; }
  .sh2-card { box-shadow: none; animation: none; }
  .sh2-blog { break-inside: avoid; animation: none; }
}
html[data-mode="dark"] .sh2-date { background: color-mix(in srgb, var(--bc) 22%, var(--surface)); color: color-mix(in srgb, var(--bc) 40%, #fff); }
.sh2.is-login .sh2-foot .sh2-brand { visibility: hidden; }
/* SEO schedule modal */
.sc-freq { display: flex; flex-wrap: wrap; }
.sc-when { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-when [hidden] { display: none; }
@media (max-width: 560px) { .sc-when { grid-template-columns: 1fr; } }

/* ---------- Performance tab ---------- */
.pf { --pf-c1: #2a78d6; --pf-c2: #eb6834; --pf-c3: #1baf7a; --pf-c4: #eda100; --pf-c5: #e87ba4; --pf-c6: #008300; --pf-c7: #4a3aa7; --pf-c8: #e34948; --pf-cx: #9a9890;
  --pf-line: var(--brand); --pf-gsc: #2a78d6; --pf-ga: #eb6834; --pf-gbp: #1baf7a; --pf-ld: #4a3aa7; --pf-cl: #e87ba4; }
html[data-mode="dark"] .pf { --pf-c1: #3987e5; --pf-c2: #d95926; --pf-c3: #199e70; --pf-c4: #c98500; --pf-c5: #d55181; --pf-c6: #008300; --pf-c7: #9085e9; --pf-c8: #e66767; --pf-cx: #6f6e68;
  --pf-gsc: #3987e5; --pf-ga: #d95926; --pf-gbp: #199e70; --pf-ld: #9085e9; --pf-cl: #d55181; }
.pf.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }
.pf-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 80px 16px; text-align: center; }
.pf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-head h1 { font-size: 28px; letter-spacing: -.03em; margin: 2px 0 4px; }
.pf-head p { color: var(--ink-2); margin: 0; font-size: 13.5px; }
.pf-head-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-ranges { flex-wrap: wrap; }
.pf-custom { display: inline-flex; align-items: center; gap: 6px; }
.pf-conn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-cn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.pf-cn i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.pf-cn.on i { background: var(--ok); }
.pf-cn.err i { background: var(--danger); }
.pf-cn.off { opacity: .7; }
.pf-fresh { margin-left: auto; }
.pf-src { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.pf-src::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--ink-3); }
.pf-src.gsc::before { background: var(--pf-gsc); } .pf-src.ga::before { background: var(--pf-ga); } .pf-src.gbp::before { background: var(--pf-gbp); } .pf-src.ld::before { background: var(--pf-ld); } .pf-src.cl::before { background: var(--pf-cl); }
.pf-t tr.pf-bad td:first-child { color: var(--danger); font-weight: 600; }
.pf-src.mix::before { background: conic-gradient(var(--pf-gsc) 0 25%, var(--pf-ga) 0 50%, var(--pf-gbp) 0 75%, var(--pf-ld) 0); }
.pf-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pf-kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; }
.pf-kpi small { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.pf-kpi > b { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.pf-kpi.big { padding: 18px 18px 14px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.pf-kpi.big > b { font-size: 32px; }
.pf-kpi-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 18px; }
.pf-note { color: var(--ink-3); font-size: 12px; }
.pf-kpi .pf-spark { width: 100%; height: 26px; margin-top: 4px; }
.pf-kpi .pf-src { margin-top: 2px; }
.pf-spark path { fill: none; stroke: var(--pf-line); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.pf-d { font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.pf-d.up { color: var(--ok); } .pf-d.down { color: var(--danger); }
.pf-legendline { margin: 8px 2px 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-hi { padding: 16px 18px; margin-bottom: 14px; }
.pf-hi-g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.pf-hi ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-hi li { display: grid; grid-template-columns: 22px 1fr; gap: 0 8px; align-items: start; }
.pf-hi li small { grid-column: 2; color: var(--ink-3); font-size: 12px; }
.pf-hi-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; }
.pf-hi li.up .pf-hi-ic { background: var(--ok-soft); color: var(--ok); }
.pf-hi li.down .pf-hi-ic { background: var(--danger-soft); color: var(--danger); }
.pf-sec { padding: 18px 20px; margin-bottom: 14px; }
.pf-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-sh h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; letter-spacing: -.01em; }
.pf-sec h4 { font-size: 13px; margin: 14px 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pf-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pf-kpis .pf-kpi { background: var(--surface-2); border-color: transparent; }
.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; margin-top: 6px; }
.pf-cols.three { grid-template-columns: repeat(3, 1fr); }
.pf-cols > div { min-width: 0; }
.pf-mets { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-met { height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pf-met.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pf-chart { position: relative; }
.pf-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.pf-grid line { stroke: var(--line); stroke-width: 1; }
.pf-grid text, .pf-xl { fill: var(--ink-3); font-size: 11px; }
.pf-line { fill: none; stroke: var(--pf-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pf-area { fill: color-mix(in srgb, var(--pf-line) 12%, transparent); }
.pf-hl { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.pf-hd { fill: var(--pf-line); stroke: var(--surface); stroke-width: 2; }
.pf-hit { fill: transparent; cursor: crosshair; }
.pf-mk { stroke: var(--surface); stroke-width: 2; }
.mk-task { fill: var(--pf-c1); background: var(--pf-c1); } .mk-blog { fill: var(--pf-c2); background: var(--pf-c2); } .mk-link { fill: var(--pf-c3); background: var(--pf-c3); } .mk-audit { fill: var(--pf-c7); background: var(--pf-c7); }
.pf-tip { position: absolute; top: 6px; z-index: 3; width: 210px; padding: 9px 11px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 12px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; box-shadow: var(--shadow); }
.pf-tip em { font-style: normal; opacity: .85; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 5px; margin-top: 2px; line-height: 1.45; }
.pf-tip em i, .pf-wk-c i, .pf-legend i, .pf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.pf-nochart { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 50px 16px; color: var(--ink-3); }
.pf-work { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; }
.pf-funnel { display: grid; gap: 8px; }
.pf-fs { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 12px; align-items: center; }
.pf-fbar { display: flex; align-items: center; justify-content: flex-end; height: 34px; padding: 0 10px; border-radius: 8px; margin-left: auto; background: color-mix(in srgb, var(--pf-line) 16%, var(--surface)); color: var(--ink); min-width: 70px; }
.pf-fs:nth-child(n+3) .pf-fbar { background: color-mix(in srgb, var(--pf-line) 30%, var(--surface)); }
.pf-fs:nth-child(n+5) .pf-fbar { background: color-mix(in srgb, var(--pf-line) 48%, var(--surface)); }
.pf-fl { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 550; }
.pf-fl em { font-style: normal; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.pf-tw { overflow-x: auto; }
.pf-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pf-t th { text-align: left; color: var(--ink-3); font-weight: 600; font-size: 11.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pf-t td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pf-t td:first-child { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-t th:not(:first-child), .pf-t td:not(:first-child) { text-align: right; }
.pf-near { display: grid; gap: 6px; }
.pf-nr { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--surface-2); }
.pf-pos { flex: none; min-width: 34px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: color-mix(in srgb, var(--pf-gsc) 14%, var(--surface)); color: var(--pf-gsc); }
.pf-nk { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-nk b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-nk small { color: var(--ink-3); font-size: 11.5px; }
.pf-bars { display: grid; gap: 6px; margin-bottom: 8px; }
.pf-bar { display: grid; grid-template-columns: minmax(0, 38%) 1fr auto 70px; gap: 8px; align-items: center; font-size: 12.5px; }
.pf-bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-bt { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pf-bt em { display: block; height: 100%; border-radius: 4px; background: var(--pf-line); }
.pf-bar b { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.pf-bar small { color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-weeks { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 6px; }
.pf-wk { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; min-width: 0; }
.pf-wcol { display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
.pf-wcol i { display: block; min-height: 1px; }
.pf-wk small { font-size: 9.5px; color: var(--ink-3); text-align: center; white-space: nowrap; overflow: hidden; }
.pf-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ink-2); margin: 8px 0; }
.pf-off { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; }
.pf-off span { flex: 1; }
@media (max-width: 900px) {
  .pf-hero { grid-template-columns: 1fr 1fr; }
  .pf-cols, .pf-cols.three, .pf-hi-g { grid-template-columns: 1fr; }
  .pf-fs { grid-template-columns: 1fr; }
  .pf-fbar { margin-left: 0; }
  .pf-fresh { margin-left: 0; }
}
@media (max-width: 520px) {
  .pf-kpi.big > b { font-size: 24px; }
  .pf-hero { gap: 8px; }
  .pf-bar { grid-template-columns: minmax(0, 42%) 1fr auto; }
  .pf-bar small { display: none; }
}
@media (max-width: 520px) { .pf-src { white-space: normal; } }
/* Client health: each person's clients' results */

.hl-rc { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; margin-top: 6px; }
.hl-rc a { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; }
.hl-rc a.up b { color: var(--ok); } .hl-rc a.down b { color: var(--danger); }
.hl-rch { font-size: 11.5px; color: var(--ink-3); align-self: center; }
/* Tasks: each person's work at a glance (admins) */
.tk-people { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 4px; scrollbar-width: thin; }
.tkp { flex: none; display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.tkp:hover { border-color: var(--ink-3); }
.tkp.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tkp-n { display: flex; flex-direction: column; min-width: 0; }
.tkp-n b { font-size: 13px; }
.tkp-n small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.tkp em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--danger); background: var(--danger-soft); padding: 2px 7px; border-radius: 99px; }

.pf-ev tr.key td:first-child b { color: var(--ink); }
.pf-star { color: #b77800; font-weight: 700; white-space: nowrap; }
.pf-auto { margin-top: 6px; }
/* SEO tab: AI answers (AEO) */
.aeo-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 14px; }
.aeo-c { padding: 16px 18px; }
.aeo-c h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.aeo-qs { display: grid; gap: 8px; margin-top: 10px; }
.aeo-q { display: flex; gap: 10px; align-items: flex-start; }
.aeo-q span:last-child { display: flex; flex-direction: column; }
.aeo-q small { color: var(--ink-3); font-size: 12px; }
.aeo-st { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); }
.aeo-st.ok { background: var(--ok-soft); color: var(--ok); } .aeo-st.no { background: var(--danger-soft); color: var(--danger); }
.aeo-rv { display: grid; gap: 6px; margin: 10px 0 6px; }
.aeo-rv div { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.aeo-rv b { flex: 1; } .aeo-rv em { font-style: normal; color: var(--ink-3); font-size: 12px; }
@media (max-width: 760px) { .aeo-top { grid-template-columns: 1fr; } }
.aeo-en { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.aeo-en i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--surface-2); color: var(--ink-3); }
.aeo-en i.ok { background: var(--ok-soft); color: var(--ok); } .aeo-en i.no { background: var(--danger-soft); color: var(--danger); }
.aeo-en { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.aeo-en i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--surface-2); color: var(--ink-3); }
.aeo-en i.ok { background: var(--ok-soft); color: var(--ok); } .aeo-en i.no { background: var(--danger-soft); color: var(--danger); }

/* Set up a project from a document */
.di-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; border: 2px dashed var(--line); border-radius: 16px; cursor: pointer; text-align: center; color: var(--ink-2); background: var(--surface-2); transition: border-color .15s, background .15s; }
.di-drop:hover, .di-drop.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.di-drop b { color: var(--ink); font-size: 15px; } .di-drop small { color: var(--ink-3); }
.di-paste { margin: 12px 0; } .di-paste summary { cursor: pointer; font-weight: 600; font-size: 13.5px; } .di-paste textarea { margin-top: 8px; width: 100%; }
.modal.doc-rev { width: min(1080px, 100%); max-width: none; }
.di-body { max-height: min(70vh, 900px); overflow: auto; }
.di-sec { margin: 0 0 18px; }
.di-sec h3 { font-size: 15px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.di-sec h3 em { font-style: normal; font-size: 12px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; }
.di-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.di-t th { text-align: left; font-size: 11.5px; color: var(--ink-3); font-weight: 600; padding: 4px 6px; }
.di-t td { padding: 5px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.di-t td:first-child { width: 22px; }
.di-t .input { width: 100%; }
.di-row { display: grid; grid-template-columns: 22px 1fr 2fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.di-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.di-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.di-list { display: grid; gap: 8px; }
.di-task { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.di-tb { display: grid; gap: 6px; min-width: 0; }
.di-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.di-meta label { display: inline-flex; align-items: center; gap: 6px; }
.di-meta .input[type="number"] { width: 70px; }
.di-as { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.di-p { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.di-p.bad { background: var(--warn-soft); border-color: transparent; color: #94600a; }
.di-p.rep { color: var(--brand); font-weight: 600; }
.di-p button { border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 14px; line-height: 1; padding: 0; }
.di-on { width: 16px; height: 16px; }
@media (max-width: 720px) { .di-row { grid-template-columns: 22px 1fr; } .di-row > :last-child { grid-column: 2; } }
.di-meta .input, .di-meta select.input { width: auto; flex: 0 0 auto; }
.di-meta .input[type="date"] { width: 150px; }
.di-meta select.input { padding-right: 28px; }
.di-sample { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.di-sample > div { flex: 1; min-width: 0; } .di-sample b { display: block; font-size: 13.5px; } .di-sample small { color: var(--ink-3); font-size: 12px; }

/* Live audit scanner */
.scan { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 22px; margin: 14px 0 18px; padding: 18px; border-radius: 22px; overflow: hidden; color: #e6fffb;
  background: radial-gradient(120% 140% at 0% 0%, #0b3b39 0%, #071c22 55%, #050c14 100%); box-shadow: 0 0 0 1px rgba(45, 212, 191, .18), 0 20px 50px -20px rgba(13, 148, 136, .55); }
.scan::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.scan-viz { position: relative; height: 200px; border-radius: 16px; overflow: hidden; background: rgba(4, 20, 24, .7); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .25); }
.scan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(45, 212, 191, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 212, 191, .12) 1px, transparent 1px); background-size: 18px 18px; animation: scanGrid 6s linear infinite; }
.scan-page { position: absolute; left: 50%; top: 50%; width: 112px; height: 144px; transform: translate(-50%, -50%) perspective(400px) rotateX(14deg); border-radius: 10px; padding: 14px 12px; display: grid; gap: 8px; align-content: start;
  background: linear-gradient(180deg, rgba(20, 184, 166, .16), rgba(20, 184, 166, .04)); box-shadow: 0 0 0 1px rgba(94, 234, 212, .5), 0 0 30px rgba(45, 212, 191, .25); }
.scan-page i { height: 7px; border-radius: 4px; background: rgba(153, 246, 228, .45); animation: scanLine 2.4s ease-in-out infinite; }
.scan-page i:nth-child(1) { width: 70%; height: 10px; background: rgba(204, 251, 241, .8); } .scan-page i.s { width: 55%; } .scan-page i:nth-child(odd) { animation-delay: .4s; }
.scan-beam { position: absolute; left: 0; right: 0; height: 46px; top: -46px; background: linear-gradient(180deg, transparent, rgba(45, 212, 191, .35) 70%, rgba(204, 251, 241, .9) 98%, transparent);
  filter: blur(.5px); animation: scanBeam 2.6s cubic-bezier(.45, 0, .55, 1) infinite; mix-blend-mode: screen; }
.scan-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(94, 234, 212, .5); transform: translate(-50%, -50%); animation: scanRing 3s ease-out infinite; }
.scan-ring.r1 { width: 60px; height: 60px; } .scan-ring.r2 { width: 60px; height: 60px; animation-delay: 1.5s; }
.scan-dots b { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 8px #2dd4bf; left: calc(8% + var(--i) * 6.4%); top: calc(14% + (var(--i) * 37 % 72) * 1%); opacity: 0; animation: scanDot 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .2s); }
.scan.wait .scan-beam, .scan.wait .scan-dots b { animation-duration: 5s; opacity: .5; }
.scan-body { position: relative; z-index: 1; min-width: 0; }
.scan-top { display: flex; justify-content: space-between; align-items: center; }
.scan-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5eead4; }
.scan-live i { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 0 rgba(45, 212, 191, .7); animation: scanPulse 1.4s infinite; }
.scan-time { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #99f6e4; }
.scan h3 { margin: 6px 0 4px; font-size: 18px; color: #f0fdfa; }
.scan-count { display: flex; align-items: baseline; gap: 8px; } .scan-count b { font-size: 34px; font-weight: 800; color: #ccfbf1; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(45, 212, 191, .6); }
.scan-count span { font-size: 12.5px; color: #99f6e4; }
.scan-bar { height: 5px; border-radius: 99px; background: rgba(153, 246, 228, .15); overflow: hidden; margin: 8px 0 12px; }
.scan-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #14b8a6, #5eead4, #ccfbf1); background-size: 200% 100%; animation: scanShine 1.6s linear infinite; transition: width .6s ease; }
.scan-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 16px; font-size: 12.5px; color: rgba(204, 251, 241, .45); }
.scan-steps li { display: flex; align-items: center; gap: 7px; } .scan-steps li span { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1px solid rgba(153, 246, 228, .3); display: inline-grid; place-items: center; font-size: 9px; }
.scan-steps li.ok { color: #99f6e4; } .scan-steps li.ok span { background: #14b8a6; border-color: #14b8a6; color: #042f2e; }
.scan-steps li.now { color: #f0fdfa; font-weight: 600; } .scan-steps li.now span { border-color: #5eead4; border-top-color: transparent; animation: spin .8s linear infinite; }
.scan-now { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.scan-now code { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 8px; border-radius: 6px; background: rgba(45, 212, 191, .12); color: #99f6e4; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: scanIn .5s both; animation-delay: calc(var(--d) * .08s); }
@keyframes scanBeam { 0% { top: -46px; } 100% { top: 100%; } }
@keyframes scanGrid { to { background-position: 0 18px, 18px 0; } }
@keyframes scanLine { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes scanRing { 0% { width: 40px; height: 40px; opacity: .9; } 100% { width: 260px; height: 260px; opacity: 0; } }
@keyframes scanDot { 0%, 100% { opacity: 0; transform: scale(.5); } 40% { opacity: 1; transform: scale(1.4); } }
@keyframes scanPulse { 70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }
@keyframes scanShine { to { background-position: -200% 0; } }
@keyframes scanIn { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scan *, .scan *::before { animation: none !important; } }
@media (max-width: 720px) { .scan { grid-template-columns: 1fr; } .scan-viz { height: 140px; } .scan-steps { grid-template-columns: 1fr; } }
/* Connect before auditing */
.cg-list { display: grid; gap: 8px; }
.cg-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cg-row b { display: block; font-size: 13.5px; } .cg-row small { color: var(--ink-3); font-size: 12px; }
.cg-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--warn-soft); color: #94600a; }
.cg-row.ok .cg-dot { background: var(--ok); color: #fff; }
/* Checklist */
.cl-head { margin-bottom: 14px; }
.cl-sum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.cl-sum > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.cl-sum b { display: block; font-size: 20px; } .cl-sum small { color: var(--ink-3); font-size: 11.5px; }
.cl-sum .ok b { color: var(--ok); } .cl-sum .warn b { color: #b07400; } .cl-sum .bad b { color: var(--danger); } .cl-sum .cn b { color: #6b4fd8; }
.cl-sec { margin-bottom: 14px; }
.cl-bar { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: -2px 0 10px; } .cl-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.cl-g h4 { font-size: 13px; margin: 14px 0 6px; display: flex; gap: 8px; align-items: center; } .cl-g h4 em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.cl-it { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 7px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.cl-s { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: 11px; background: var(--surface-2); color: var(--ink-3); }
.cl-it.pass .cl-s, .cl-it.done .cl-s { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.cl-it.warn .cl-s { background: var(--warn-soft); color: #94600a; } .cl-it.fail .cl-s { background: var(--danger-soft); color: var(--danger); } .cl-it.connect .cl-s { background: color-mix(in srgb, #6b4fd8 15%, transparent); color: #6b4fd8; }
.cl-f { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.cl-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin: 4px 12px 0 0; color: var(--ink-2); }
@media (max-width: 720px) { .cl-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Import → the master workbook: one row per tab */
.imp-wb-list { display: grid; gap: 8px; margin-top: 10px; }
.imp-wb-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.imp-wb-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.imp-wb-row small { color: var(--ink-3); font-size: 12px; }
.imp-wb-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); }
.imp-wb-err { margin: 6px 0 0 16px; font-size: 12px; color: var(--danger); }

/* Search everything: the one box at the top of the menu that finds any project, page or feature (Ctrl/⌘ K). */
.side-search { display: flex; align-items: center; gap: 9px; margin: 2px 14px 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; text-align: left; transition: border-color .15s, color .15s, box-shadow .15s; }
.side-search:hover { color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(23, 25, 28, .06); }
.side-search .lbl { flex: 1; }
.side-search kbd { font: inherit; font-size: 10.5px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--ink-3); }
.app.side-mini:not(.side-peek) .side-search { justify-content: center; margin: 2px 12px 6px; padding: 8px 0; }
.app.side-mini:not(.side-peek) .side-search .lbl, .app.side-mini:not(.side-peek) .side-search kbd { display: none; }
html[data-mode="dark"] .side-search { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }

/* Connect → Whole website (plugin 2) */
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.cx-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.cx-chip.warn { background: var(--warn-soft); color: var(--warn); }
.cx-chip.bad { background: var(--danger-soft); color: var(--danger); }
.cx-tabs { margin-bottom: 12px; }

/* Project tabs in groups (Work · Growth · Client · Setup), and the one-line explainer under them. */
.tabs .tab-sep { flex: none; width: 1px; height: 18px; align-self: center; margin: 0 6px; background: currentColor; opacity: .18; }
.tab-intro { display: flex; align-items: center; gap: 8px; padding: 8px 24px; font-size: 13px; color: var(--ink-2); background: var(--surface); border-bottom: 1px solid var(--line); }
.tab-intro > svg { flex: none; color: var(--ink-3); }
.tab-intro span { flex: 1; min-width: 0; }
.tab-intro .link { flex: none; font-weight: 600; white-space: nowrap; }
.tab-intro .icon-btn { flex: none; width: 26px; height: 26px; }
.phead .crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; opacity: .7; color: inherit; text-decoration: none; margin-bottom: 2px; }
.phead .crumb:hover { opacity: 1; }
@media (max-width: 760px) { .tab-intro { padding: 8px 14px; font-size: 12.5px; } .tab-intro .link { display: none; } }
/* With group dividers the bar is a little wider: tighter tabs on narrower screens. */
@media (max-width: 1500px) { .phead .tabs a { padding-left: 10px; padding-right: 10px; gap: 6px; } .tabs .tab-sep { margin: 0 3px; } }

/* Waiting for you: compact rows grouped by client; a row opens to show (and edit) everything. */
.ap-wc { margin: -4px 0 14px; }
.ap-wc select { max-width: 320px; }
.ap-grp { margin-bottom: 22px; }
.ap-grp-h { display: flex; align-items: center; gap: 10px; padding: 0 2px 8px; }
.ap-grp-h b { font-size: 15px; }
.ap-item.compact { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 6px; }
.ap-item.compact .ap-it { flex: 1; min-width: 0; }
.ap-item.compact .ap-why, .ap-item.compact .ap-b { display: none; }
.ap-item.compact .ap-f { margin-top: 0; flex: none; }
.ap-item.compact .ap-tt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ap-item .ap-it[data-act="ap-open"] { cursor: pointer; }
@media (max-width: 760px) { .ap-item.compact { flex-wrap: wrap; } .ap-item.compact .ap-f { width: 100%; justify-content: flex-end; } }
.ap-more { display: block; margin: 4px auto 0; }
@media (max-width: 760px) {
  .phead .crumb { display: none; }
  .ap-grp-h { flex-wrap: wrap; } .ap-grp-h .btn.ghost { display: none; } .ap-grp-h .spacer { flex-basis: 100%; height: 0; }
}

/* ---------- Sheets (sheets.js): a spreadsheet in every project ---------- */
.gs { --gs-bg: #ffffff; --gs-ink: #1f2328; --gs-grid: #e3e5e8; --gs-head: #f6f7f9; --gs-head-ink: #5f6672; --gs-acc: #1a73e8; --gs-acc-soft: rgba(26, 115, 232, .1); --gs-hi: #d3e3fd;
  display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--gs-bg); color: var(--gs-ink); position: relative; }
html[data-mode="dark"] .gs { --gs-bg: #18191d; --gs-ink: #e8eaed; --gs-grid: #2e3036; --gs-head: #212226; --gs-head-ink: #9aa0aa; --gs-acc: #8ab4f8; --gs-acc-soft: rgba(138, 180, 248, .14); --gs-hi: #2a3a55; }
.gs-loading { align-items: center; justify-content: center; }
.pbody.gs-body { overflow: hidden; display: flex; flex-direction: column; }
.pbody.gs-body > .gs { flex: 1; }
/* The top bar: a deep gradient in the workspace's colour (--gs-brand, from Branding; green by default), a soft sheen,
   the sheet's name centred, the way back and the logo on the left, people and actions on the right. Always light text. */
.gs-top { --gs-brand: #0f9d58; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 10px 14px; min-width: 0; color: #fff; isolation: isolate; overflow: hidden;
  background: linear-gradient(115deg, color-mix(in srgb, var(--gs-brand) 70%, #06121f) 0%, var(--gs-brand) 48%, color-mix(in srgb, var(--gs-brand) 55%, #7c4dff) 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12), 0 6px 18px -12px color-mix(in srgb, var(--gs-brand) 80%, #000); }
.gs[style*="--gs-brand"] .gs-top { --gs-brand: inherit; }
.gs-top::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 140% at 50% -40%, rgba(255, 255, 255, .28), transparent 55%), linear-gradient(90deg, transparent, rgba(255, 255, 255, .06) 50%, transparent); }
.gs-tl, .gs-tr { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gs-tr { justify-content: flex-end; }
.gs-proj { font-size: 12.5px; font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .5); backdrop-filter: blur(6px); }
.gs-logo.img { background: #fff; overflow: hidden; padding: 3px; }
.gs-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gs-logo .i { width: 18px; height: 18px; }
.gs-tbtn { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); cursor: pointer; text-decoration: none; transition: background .15s; }
.gs-tbtn:hover { background: rgba(255, 255, 255, .22); }
.gs-tt { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.gs-title { font: inherit; font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: #fff; text-align: center; background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 2px 10px;
  min-width: 140px; width: min(560px, 46vw); text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.gs-title:hover:not([readonly]) { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.gs-title:focus { outline: none; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.gs-sub { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11.5px; color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; margin-top: 1px; }
.gs-top .gs-ro, .gs-prot { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .16); color: #fff; padding: 1px 8px; border-radius: 99px; }
.gs-top .gs-status.offline { color: #ffe08a; }
.gs-top .gs-dot { background: #fff; }
.gs-top .gs-av { border-color: transparent; }
.gs-status { display: inline-flex; align-items: center; gap: 4px; }
.gs-status.offline { color: var(--warn); }
.gs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gs-acc); animation: gsPulse 1s ease-in-out infinite; }
@keyframes gsPulse { 50% { opacity: .3; } }
.gs-ro { display: inline-flex; align-items: center; gap: 4px; background: var(--hover); padding: 1px 8px; border-radius: 99px; }
.gs-people { display: flex; }
.gs-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--pc, #888); border: 2px solid var(--gs-bg); margin-left: -6px; box-shadow: 0 0 0 1.5px var(--pc, #888); }
.gs-av.more { background: var(--gs-head); color: var(--gs-head-ink); box-shadow: none; }
.gs-share { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650;
  color: color-mix(in srgb, var(--gs-brand, #0f9d58) 75%, #000); background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); white-space: nowrap; }
.gs-share:hover { transform: translateY(-1px); }
.gs.nocopy .gs-grid, .gs.nocopy .gs-fxin { user-select: none; -webkit-user-select: none; }
@media print { .gs.nocopy { display: none !important; } }
.content.gs-page-full { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.content.gs-page-full > .gs { flex: 1; min-height: 0; }
.gs-sec-h .eyebrow { color: var(--brand); }
.gs-share-link { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.gs-linksec { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.gs-linksec .field label { display: flex; align-items: center; gap: 6px; }
.gs-inrow { display: flex; gap: 6px; }
.gs-inrow .input { flex: 1; min-width: 0; }
.gs-newsec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-gate { max-width: 440px; width: calc(100% - 32px); margin: 9vh auto; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.gs-gate-top { --gs-brand: var(--brand, #0f9d58); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 24px 22px; color: #fff; text-align: center;
  background: linear-gradient(115deg, color-mix(in srgb, var(--gs-brand) 70%, #06121f), var(--gs-brand) 50%, color-mix(in srgb, var(--gs-brand) 55%, #7c4dff)); }
.gs-gate-top small { opacity: .85; }
.gs-gate-top h2 { margin: 0; color: #fff; }
.gs-gate-f { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.gs-gate-f p { margin: 0; }
#gs-perr { color: var(--danger); }
.cis-sheet { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.cis-sheet b { font-weight: 600; }
.cis-sheet:hover b { text-decoration: underline; }
.cis-sic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1e9e61, #0f7a47); flex: none; }
.cis-sheets .cis-wk { display: flex; gap: 6px; flex-wrap: wrap; white-space: normal; }
.cis-tabs .n { font-size: 11px; opacity: .7; margin-left: 2px; }
.gs-card.master .gs-thumb { background: linear-gradient(135deg, #f6b73c, #e0782b); color: #fff; }
.gs-nhint { display: block; padding: 8px 10px; border-radius: 10px; background: var(--hover); line-height: 1.45; }
.gs-people-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.gs-prow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.gs-prow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gs-prow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-prow select { width: auto; max-width: 130px; }
.gs-pav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 13px; color: #fff; background: var(--brand); }
.gs-padd { margin-bottom: 6px; flex-wrap: wrap; }
.gs-tools { display: flex; align-items: center; gap: 2px; margin: 0 10px 6px; padding: 4px 6px; background: var(--gs-head); border-radius: 22px; overflow-x: auto; scrollbar-width: none; flex: none; }
.gs-tools::-webkit-scrollbar { display: none; }
.gs-tb { height: 30px; min-width: 30px; padding: 0 6px; border: 0; border-radius: 7px; background: transparent; color: var(--gs-ink); display: inline-flex; align-items: center; justify-content: center; gap: 1px; cursor: pointer; flex: none; position: relative; }
.gs-tb .i.xs { width: 11px; height: 11px; opacity: .6; }
.gs-tb:hover:not(:disabled) { background: color-mix(in srgb, var(--gs-ink) 8%, transparent); }
.gs-tb.on { background: var(--gs-hi); color: var(--gs-acc); }
.gs-tb:disabled { opacity: .35; cursor: default; }
.gs-gl { font: 600 14px/1 inherit; font-family: inherit; }
.gs-gl.sm { font-size: 11.5px; letter-spacing: -.02em; }
.gs-gl.serif { font-family: Georgia, serif; font-weight: 600; }
.gs-gl small { font-size: 9px; }
.gs-bar { position: absolute; left: 7px; right: 7px; bottom: 3px; height: 3px; border-radius: 2px; }
.gs-sep { width: 1px; height: 20px; background: var(--gs-grid); margin: 0 4px; flex: none; }
.gs-fs { height: 28px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; padding: 0 4px; border-radius: 7px; cursor: pointer; flex: none; }
.gs-fs:hover { background: color-mix(in srgb, var(--gs-ink) 8%, transparent); }
.gs-fbar { display: flex; align-items: flex-start; gap: 0; border-top: 1px solid var(--gs-grid); border-bottom: 1px solid var(--gs-grid); min-height: 30px; flex: none; }
.gs-name { width: 92px; flex: none; border: 0; border-right: 1px solid var(--gs-grid); background: transparent; color: inherit; font: inherit; font-size: 13px; padding: 5px 10px; height: 30px; }
.gs-name:focus, .gs-fxin:focus { outline: none; background: var(--gs-acc-soft); }
.gs-fx { color: var(--gs-head-ink); font-style: italic; font-family: Georgia, serif; padding: 5px 10px; height: 30px; border-right: 1px solid var(--gs-grid); flex: none; }
.gs-fxw { flex: 1; min-width: 0; }
.gs-fxin { width: 100%; border: 0; resize: none; background: transparent; color: inherit; font: 13px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 6px 10px; height: 30px; display: block; overflow: hidden; }
#gs-link:empty { display: none; }
.gs-open { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 0 10px; height: 30px; color: var(--gs-acc); white-space: nowrap; }
.gs-find { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--gs-grid); background: var(--gs-head); flex-wrap: wrap; }
.gs-find[hidden] { display: none; }
.gs-find .input.sm { width: 200px; height: 30px; }
.gs-find [data-ff="prev"] .i { rotate: 180deg; }
.gs-fcount { font-size: 12px; color: var(--gs-head-ink); min-width: 56px; }
.gs-fopt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gs-head-ink); }
.gs-wrap { position: relative; flex: 1; min-height: 0; }
.gs-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
.gs-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; line-height: 1.3; user-select: none; -webkit-user-select: none; }
.gs-grid th, .gs-grid td { border-right: 1px solid var(--gs-grid); border-bottom: 1px solid var(--gs-grid); padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: clip; background: var(--gs-bg); height: inherit; position: relative; }
.gs-grid thead th, .gs-grid tr.gs-fr td, .gs-grid tr.gs-fr th { position: sticky; z-index: 3; }
.gs-grid tr.gs-hr th { top: 0; height: 24px; }
.gs-grid tr.gs-fr td, .gs-grid tr.gs-fr th { z-index: 2; }
.gs-grid tr.gs-fr:last-child td, .gs-grid tr.gs-fr:last-child th { border-bottom: 3px solid color-mix(in srgb, var(--gs-head-ink) 45%, transparent); }
.gs-grid .gs-fc { position: sticky; z-index: 1; }
.gs-grid td.gs-fc { box-shadow: inset -1px 0 0 var(--gs-grid); }
.gs-grid tr.gs-fr .gs-fc { z-index: 4; }
.gs-grid th { background: var(--gs-head); color: var(--gs-head-ink); font-weight: 500; font-size: 11.5px; text-align: center; cursor: default; }
.gs-grid .gs-rh { position: sticky; left: 0; z-index: 2; padding: 0 2px; }
.gs-grid .gs-corner { left: 0; z-index: 6 !important; cursor: pointer; }
.gs-grid thead .gs-ch.gs-fc { z-index: 5; }
.gs-grid tr.gs-fr .gs-rh { z-index: 5; }
.gs-grid th.hi { background: color-mix(in srgb, var(--gs-acc) 16%, var(--gs-head)); color: var(--gs-ink); font-weight: 650; }
.gs-grid th.full { background: var(--gs-acc); color: #fff; }
html[data-mode="dark"] .gs-grid th.full { color: #111; }
.gs-grid tr.gs-pad td { padding: 0; border: 0; background: transparent; }
.gs-rsz, .gs-rsz-r { position: absolute; z-index: 2; }
.gs-rsz { top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; }
.gs-rsz-r { left: 0; bottom: -3px; height: 7px; width: 100%; cursor: row-resize; }
.gs-rsz:hover, .gs-rsz-r:hover { background: var(--gs-acc); opacity: .6; }
.gs-guide { position: absolute; z-index: 20; background: var(--gs-acc); pointer-events: none; }
.gs-guide.v { top: 0; bottom: 0; width: 2px; }
.gs-guide.h { left: 0; right: 0; height: 2px; }
.gs-c { cursor: cell; }
.gs-c.al-right { text-align: right; }
.gs-c.al-center { text-align: center; }
.gs-c.al-left { text-align: left; }
.gs-c.wrap { white-space: pre-wrap; word-break: break-word; vertical-align: top; padding-top: 3px; }
.gs-c.bd { outline: 1px solid color-mix(in srgb, var(--gs-ink) 70%, transparent); outline-offset: -1px; }
.gs-c.err::after { content: ''; position: absolute; top: 0; right: 0; border: 4px solid transparent; border-top-color: #d93025; border-right-color: #d93025; }
.gs-c.note::before { content: ''; position: absolute; top: 0; right: 0; border: 4px solid transparent; border-top-color: #e37400; border-right-color: #e37400; }
.gs-c.err { color: #d93025; }
.gs-c.sel { background-image: linear-gradient(var(--gs-acc-soft), var(--gs-acc-soft)); }
.gs-grid td { --st: 0 0 transparent; --sb: 0 0 transparent; --sl: 0 0 transparent; --sr: 0 0 transparent; }
.gs-grid td.sel-t { --st: inset 0 1.5px 0 0 var(--gs-acc); }
.gs-grid td.sel-b { --sb: inset 0 -1.5px 0 0 var(--gs-acc); }
.gs-grid td.sel-l { --sl: inset 1.5px 0 0 0 var(--gs-acc); }
.gs-grid td.sel-r { --sr: inset -1.5px 0 0 0 var(--gs-acc); }
.gs-grid td.sel-t, .gs-grid td.sel-b, .gs-grid td.sel-l, .gs-grid td.sel-r { box-shadow: var(--st), var(--sb), var(--sl), var(--sr); }
.gs-grid td.cur { box-shadow: inset 0 0 0 2px var(--gs-acc); }
.gs-grid td.sel.cur { background-image: none; }
.gs-grid td.refhl { box-shadow: inset 0 0 0 2px var(--rc, var(--gs-acc)) !important; background-image: linear-gradient(color-mix(in srgb, var(--rc, #1a73e8) 12%, transparent), color-mix(in srgb, var(--rc, #1a73e8) 12%, transparent)); }
.gs-grid td.fillto { box-shadow: inset 0 0 0 1px var(--gs-acc) !important; outline: 1px dashed var(--gs-acc); outline-offset: -3px; }
.gs-grid td.gs-peer { box-shadow: inset 0 0 0 2px var(--pc) !important; overflow: visible; }
.gs-grid td.gs-peer::after { content: attr(data-peer); position: absolute; right: -2px; top: -15px; z-index: 5; font-size: 10px; font-weight: 700; line-height: 14px; padding: 0 5px; border-radius: 3px 3px 3px 0; color: #fff; background: var(--pc); white-space: nowrap; pointer-events: none; }
.gs-handle { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; background: var(--gs-acc); border: 1.5px solid var(--gs-bg); border-radius: 2px; cursor: crosshair; z-index: 4; }
.gs-chk { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 2px solid color-mix(in srgb, var(--gs-ink) 55%, transparent); border-radius: 3px; vertical-align: middle; cursor: pointer; }
.gs-chk.on { background: var(--gs-acc); border-color: var(--gs-acc); }
.gs-chk svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
html[data-mode="dark"] .gs-chk svg { stroke: #111; }
.gs-pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 550; line-height: 18px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.gs-dd { position: absolute; right: 4px; top: 50%; margin-top: -3px; border: 4px solid transparent; border-top-color: var(--gs-head-ink); cursor: pointer; }
.gs-dd::before { content: ''; position: absolute; inset: -9px -6px -5px; }
.gs-url { color: var(--gs-acc); text-decoration: underline; text-underline-offset: 2px; }
.gs-c.gs-fh { padding-right: 22px; }
.gs-fbtn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 4px; cursor: pointer; background: color-mix(in srgb, var(--gs-ink) 8%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpath d='M3 5h18l-7 8v6l-4 1v-7z'/%3E%3C/svg%3E") center/10px no-repeat; }
.gs-fbtn.on { background-color: var(--gs-acc); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff' stroke='%23fff' stroke-width='2.5'%3E%3Cpath d='M3 5h18l-7 8v6l-4 1v-7z'/%3E%3C/svg%3E"); }
.gs-ed { position: absolute; left: -9999px; top: 0; z-index: 12; resize: none; overflow: hidden; border: 2px solid var(--gs-acc); border-radius: 0; background: var(--gs-bg); color: var(--gs-ink); font: 13px/1.35 inherit; font-family: inherit; padding: 3px 6px; box-shadow: 0 4px 18px -6px rgba(0, 0, 0, .35); white-space: pre; outline: none; }
.gs-ed.idle { opacity: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; padding: 0; border: 0; box-shadow: none; pointer-events: none; }
.gs-ac { position: absolute; z-index: 14; min-width: 260px; max-width: 420px; background: var(--gs-bg); border: 1px solid var(--gs-grid); border-radius: 10px; box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .3); overflow: hidden; font-size: 13px; }
.gs-ac[hidden] { display: none; }
.gs-aci { display: flex; gap: 10px; padding: 6px 12px; cursor: pointer; align-items: baseline; }
.gs-aci b { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; min-width: 96px; }
.gs-aci span { color: var(--gs-head-ink); font-size: 12px; }
.gs-aci.on, .gs-aci:hover { background: var(--gs-acc-soft); }
.gs-ach { font-size: 11px; color: var(--gs-head-ink); padding: 4px 12px 6px; border-top: 1px solid var(--gs-grid); }
.gs-syn { padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; }
.gs-syn code { font-size: 12.5px; color: var(--gs-ink); }
.gs-syn span { font-size: 12px; color: var(--gs-head-ink); }
.gs-foot { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-top: 1px solid var(--gs-grid); background: var(--gs-head); flex: none; min-height: 40px; }
.gs-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 0 1 auto; }
.gs-tabs::-webkit-scrollbar { display: none; }
.gs-tab { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--gs-head-ink); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap; flex: none; }
.gs-tab:hover { background: color-mix(in srgb, var(--gs-ink) 6%, transparent); }
.gs-tab.on { background: var(--gs-bg); color: var(--gs-acc); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.gs-tab[style]::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--tc); }
.gs-tab i { display: inline-grid; opacity: .5; padding: 2px; border-radius: 4px; }
.gs-tab i:hover { opacity: 1; background: var(--gs-acc-soft); }
.gs-stats { font-size: 12px; color: var(--gs-head-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; }
.gs-stats b { font-weight: 600; color: var(--gs-ink); margin-left: 6px; }
.gs-menu, .gs-pop { position: fixed; z-index: 1000; background: var(--surface, #fff); background: color-mix(in srgb, var(--bg) 0%, var(--gs-bg, #fff)); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 48px -14px rgba(0, 0, 0, .35); padding: 6px; min-width: 210px; max-height: 70vh; overflow: auto; font-size: 13px; animation: gsIn .12s ease-out; }
html:not([data-mode="dark"]) .gs-menu, html:not([data-mode="dark"]) .gs-pop { background: #fff; }
html[data-mode="dark"] .gs-menu, html[data-mode="dark"] .gs-pop { background: #232428; }
@keyframes gsIn { from { opacity: 0; transform: translateY(-3px); } }
.gs-mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; border-radius: 7px; cursor: pointer; }
.gs-mi:hover:not(:disabled) { background: var(--hover); }
.gs-mi:disabled { opacity: .4; cursor: default; }
.gs-mi.on { color: var(--brand); font-weight: 600; }
.gs-mi.danger { color: var(--danger); }
.gs-mi span { flex: 1; }
.gs-mi kbd { font-size: 11px; color: var(--ink-3); font-family: inherit; }
.gs-mi-sp { width: 11px; flex: none; }
.gs-mi.raw { padding: 4px 8px; }
.gs-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.gs-mh { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 6px 10px 2px; }
.gs-colors { padding: 10px; }
.gs-sw { display: grid; grid-template-columns: repeat(8, 22px); gap: 5px; margin: 8px 0; }
.gs-sw button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); cursor: pointer; }
.gs-sw button:hover { transform: scale(1.15); }
.gs-sw button.on { box-shadow: 0 0 0 2px var(--gs-bg, #fff), 0 0 0 4px var(--brand); }
.gs-reset { display: inline-flex; gap: 6px; align-items: center; border: 0; background: var(--hover); border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; color: inherit; }
.gs-custom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.gs-custom input { width: 34px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; }
.gs-filter { width: 260px; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.gs-fsort { display: flex; flex-direction: column; }
.gs-fsort button, .gs-fall button { border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 6px 8px; border-radius: 7px; cursor: pointer; }
.gs-fsort button:hover, .gs-fall button:hover { background: var(--hover); }
.gs-fall { display: flex; gap: 4px; font-size: 12px; }
.gs-fall button { color: var(--brand); padding: 2px 6px; }
.gs-flist { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.gs-flist label { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.gs-flist label:hover { background: var(--hover); }
.gs-flist span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-flist small { color: var(--ink-3); }
.gs-fbtns { display: flex; justify-content: flex-end; gap: 6px; }
.gs-keys { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; font-size: 13px; }
.gs-keys kbd { font-family: inherit; font-size: 12px; background: var(--hover); padding: 2px 8px; border-radius: 6px; justify-self: end; }
.gs-fnmodal { max-width: 640px; }
.gs-fnlist { display: flex; flex-direction: column; max-height: 52vh; overflow: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; }
.gs-fnrow { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.gs-fnrow:hover { background: var(--hover); }
.gs-fnrow code { font-size: 12.5px; }
.gs-fnrow span { font-size: 12px; color: var(--ink-3); }
.gs-chartmodal { max-width: 820px; }
.gs-ctypes { display: flex; gap: 6px; flex-wrap: wrap; }
.gs-chart { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.gs-chart svg { display: block; width: 100%; height: auto; }
.gs-sharemodal { max-width: 560px; }
.gs-share-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.gs-share-h > div { display: flex; flex-direction: column; gap: 2px; }
.gs-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.gs-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gs-mode small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.gs-mode:hover { border-color: var(--ink-3); }
.gs-mode.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.gs-mode.on .i { color: var(--brand); }
.gs-sm { margin-top: 8px; line-height: 1.7; }
.gs-sm .link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.gs-lock { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); cursor: pointer; }
.gs-lock span { display: flex; flex-direction: column; gap: 2px; }
.gs-lock small { color: var(--ink-3); }
.gs-histmodal { max-width: 980px; width: 96vw; }
.gs-hist { display: grid; grid-template-columns: 230px 1fr; gap: 14px; min-height: 360px; }
.gs-hlist { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.gs-hv { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gs-hv small { color: var(--ink-3); font-size: 12px; }
.gs-hv:hover { background: var(--hover); }
.gs-hv.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.gs-hprev { border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow: auto; max-height: 60vh; }
.gs-ptab { margin-bottom: 16px; }
.gs-ptab > b { display: block; margin-bottom: 6px; font-size: 13px; }
.gs-pt { border-collapse: collapse; font-size: 12px; }
.gs-pt td { border: 1px solid var(--line); padding: 3px 8px; height: 22px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .gs-hist { grid-template-columns: 1fr; } .gs-hlist { max-height: 160px; } .gs-modes { grid-template-columns: 1fr; } }
/* The lists */
.gs-page { max-width: 1180px; }
.gs-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.gs-hero h1, .gs-hero h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.gs-hero h2 { font-size: 20px; }
.gs-hero h1 .i, .gs-hero h2 .i { color: #0f7a47; }
.gs-hero p { max-width: 640px; margin: 0; }
.gs-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gs-qt { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px dashed var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.gs-qt:hover { border-style: solid; border-color: var(--brand); color: var(--brand); }
.gs-q { max-width: 340px; margin-bottom: 14px; }
.gs-sec { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 22px 0 10px; display: flex; gap: 10px; align-items: baseline; }
.gs-sec .link { text-transform: none; letter-spacing: 0; }
.gs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gs-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; min-width: 0; }
.gs-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, #0f7a47 40%, var(--line)); }
.gs-thumb { width: 44px; height: 44px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #0f7a47; background: linear-gradient(135deg, #e6f6ee, #d2efe0); }
html[data-mode="dark"] .gs-thumb { background: #1d3328; color: #6ad49d; }
.gs-cb { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.gs-cb b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-cb small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-badges { position: absolute; top: 8px; right: 10px; display: flex; gap: 4px; }
.gs-badges .ipill { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; padding: 2px 7px; }
.gs-card:has(.gs-badges .ipill) .gs-cb { padding-top: 12px; }
.gs-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 40px 20px; }
.gs-emi { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #0f7a47; background: linear-gradient(135deg, #e6f6ee, #d2efe0); margin-bottom: 6px; }
.gs-emi .i { width: 26px; height: 26px; }
.gs-newmodal { max-width: 640px; }
.gs-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.gs-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gs-tpl > span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--hover); margin-bottom: 4px; }
.gs-tpl small { color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.gs-tpl:hover { border-color: var(--ink-3); }
.gs-tpl.on { border-color: var(--brand); background: var(--brand-soft); }
.gs-tpl.on > span { background: var(--brand); color: #fff; }
/* Full screen and the share link page */
body.gs-full .side, body.gs-full .phead, body.gs-full .tab-intro, body.gs-full .site-banner, body.gs-full .mtop { display: none !important; }
body.gs-full .main, body.gs-full .content { margin: 0 !important; }
/* The sidebar is hidden, so its column goes too: otherwise the sheet drops into the sidebar's narrow column. */
body.gs-full .app { grid-template-columns: minmax(0, 1fr) !important; }
body.gs-full .app > .main { grid-column: 1 / -1; }
.gs-pub { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.gs-pubbar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.gs-pubbrand { display: inline-flex; align-items: center; gap: 8px; }
.gs-pubbrand img { height: 24px; }
.gs-pubbar .ipill { display: inline-flex; align-items: center; gap: 4px; }
.gs-pubbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gs-pubbody > .gs { flex: 1; }
.gs-guest { max-width: 420px; margin: 10vh auto; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gs-guest form { display: flex; gap: 8px; width: 100%; margin-top: 8px; }
.gs-guest .input { flex: 1; }
@media (max-width: 760px) {
  .gs-top { padding: 8px 10px; gap: 6px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .gs-logo, .gs-top [data-gs="full"], .gs-top [data-gs="history"], .gs-people { display: none; }
  .gs-title { font-size: 15.5px; min-width: 0; width: 100%; }
  .gs-share { padding: 0 10px; }
  .gs-share span { display: none; }
  .gs-newsec { grid-template-columns: 1fr; }
  .gs-top .hide-sm { display: none; }
  .gs-tools { margin: 0 6px 6px; border-radius: 12px; }
  .gs-name { width: 64px; }
  .gs-hero { flex-direction: column; }
  .gs-stats { display: none; }
}
@media print { .gs-tools, .gs-fbar, .gs-foot, .gs-top { display: none; } }

/* ---------- Search everything (Ctrl K, and / on a project) ---------- */
.qs-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); position: relative; }
.qs-scope[hidden] { display: none; }
.qs-scope.busy::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 30%; background: var(--brand); animation: qsBusy 1s ease-in-out infinite; }
@keyframes qsBusy { from { left: 0; } 50% { left: 70%; } to { left: 0; } }
.qs-where, .qs-kinds { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.qs-where { padding: 2px; border-radius: 10px; background: var(--hover); }
.qs-where button, .qs-kinds button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.qs-where button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.qs-kinds button { border: 1px solid var(--line-2); border-radius: 99px; }
.qs-kinds button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.qs-kinds em, .qs-sec em { font-style: normal; opacity: .6; margin-left: 2px; }
.qs-row mark { background: color-mix(in srgb, #f5c400 38%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.qs-row .qs-meta { font-size: 11px; opacity: .8; }
.qs-done { font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--ok); background: var(--ok-soft); padding: 1px 6px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.qs-ext { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-3); }
.qs-ext:hover { background: var(--hover); color: var(--brand); }
.qs-wait { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--ink-3); font-size: 13px; }
.qs-wait .spinner.sm { width: 14px; height: 14px; border-width: 2px; }
.qs-none.sm { font-size: 13px; padding: 18px 20px; }
.qs-none .link { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.ph-search { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); font: inherit; font-size: 13px; cursor: pointer; flex: none; max-width: 260px; }
.ph-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-search kbd { font-family: inherit; font-size: 11px; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); border: 0; }
.ph-search:hover { background: rgba(255, 255, 255, .14); color: #fff; }
@media (max-width: 1200px) { .ph-search span, .ph-search kbd { display: none; } .ph-search { padding: 0 9px; } }

/* ---------- Website tools (website.js) on the Connect tab ---------- */
.cx-tabs { flex-wrap: wrap; }
.wx-last { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin: 10px 0; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 13px; }
.wx-last span { flex: 1; color: var(--ink); }
.wx-body { margin-top: 10px; }
.wx-body h4 { margin: 16px 0 8px; font-size: 14px; }
.wx-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wx-row .input { flex: 1 1 200px; }
.wx-arrow { color: var(--ink-3); }
.wx-prev { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.wx-prev ul { margin: 8px 0 12px; padding: 0; list-style: none; max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.wx-prev li { display: flex; gap: 8px; align-items: baseline; }
.wx-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.wx-cm { display: flex; gap: 12px; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.wx-cm p { margin: 4px 0 0; font-size: 13px; }
.wx-acts { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-start; flex: none; }
.wx-menu { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.wx-menu h4 { margin: 0 0 8px; }
.wx-mi { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
.wx-mi small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wx-mi.sub { padding-left: 22px; }
.wx-menu > .btn { margin-top: 8px; }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 14px; }
.input.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
@media (max-width: 700px) { .wx-cm { flex-direction: column; } }

/* ---------- Olivio mark (the default logo) ---------- */
.brand .mark.olivio, :where(html[data-mode="dark"]) .brand .mark.olivio, :where(html[data-style]) .brand .mark.olivio { background: none !important; box-shadow: 0 6px 16px -8px rgba(8, 20, 13, .7) !important; border-radius: 9px; overflow: hidden; padding: 0; }
.brand .mark.olivio img { width: 100%; height: 100%; display: block; }

/* ---------- Business Profile and YouTube tabs (studio.js) ---------- */
.so-page { display: flex; flex-direction: column; gap: 14px; }
.so-head { display: flex; align-items: center; gap: 18px; padding: 18px 20px; flex-wrap: wrap; }
.so-hid { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 240px; }
.so-hid h2 { margin: 2px 0 4px; font-size: 21px; letter-spacing: -.02em; }
.so-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.so-logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.so-logo .i { width: 24px; height: 24px; }
.so-logo.g { background: linear-gradient(135deg, #4285f4, #34a853); }
.so-logo.y { background: linear-gradient(135deg, #ff3d3d, #c4001a); }
.so-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--ink-2); font-size: 13.5px; }
.so-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.so-meta .link { margin-left: 6px; }
.so-hbtn { display: flex; gap: 8px; }
.so-stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.so-stars i { color: #d7d5cf; display: inline-flex; }
.so-stars i.on { color: #f4b400; }
.so-stars .i { width: 14px; height: 14px; }
.so-quota { display: grid; gap: 4px; min-width: 210px; font-size: 13px; color: var(--ink-2); }
.so-quota b { color: var(--ink); font-size: 15px; margin-left: 4px; }
.so-quota i { display: block; height: 6px; border-radius: 9px; background: var(--hover); overflow: hidden; }
.so-quota em { display: block; height: 100%; background: linear-gradient(90deg, #ff6b6b, #c4001a); border-radius: inherit; }
.so-quota small { color: var(--ink-3); font-size: 11.5px; }
.so-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.so-cell { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.so-cell:hover { border-color: var(--line-2); transform: translateY(-1px); }
.so-cell b { font-size: 22px; letter-spacing: -.02em; }
.so-cell span { font-size: 12.5px; color: var(--ink-2); }
.so-cell.blue b { color: var(--blue); } .so-cell.warn b { color: var(--warn); } .so-cell.danger b { color: var(--danger); } .so-cell.ok b { color: var(--ok); }
.so-cell.zero b { color: var(--ink-3); }
@media (max-width: 760px) { .so-strip { grid-template-columns: repeat(2, 1fr); } }
.so-wait { padding: 6px 6px 4px; border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); background: color-mix(in srgb, var(--blue-soft) 45%, var(--surface)); }
.so-wh { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--blue); }
.so-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.so-nav button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.so-nav button:hover { color: var(--ink); }
.so-nav button.on { color: var(--ink); border-bottom-color: var(--ink); }
.so-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .so-grid { grid-template-columns: 1fr; } }
.so-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.so-card { padding: 16px 18px; display: grid; gap: 12px; }
.so-card h3, .so-h { margin: 0; font-size: 14px; font-weight: 650; }
.so-h { margin: 8px 0 -2px; display: flex; gap: 8px; align-items: baseline; }
.so-dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; font-size: 13.5px; }
.so-dl dt { color: var(--ink-3); } .so-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.so-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.so-qa button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; position: relative; }
.so-qa button:hover { border-color: var(--line-2); background: var(--hover); }
.so-qa button i { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 11px; background: var(--danger); color: #fff; border-radius: 9px; padding: 1px 6px; }
.so-list { padding: 4px 0; }
.so-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.so-row:last-child { border-bottom: 0; }
.so-ri { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); flex: none; }
.so-row.live .so-ri { background: var(--ok-soft); color: var(--ok); }
.so-row.pending .so-ri, .so-row.scheduled .so-ri, .so-row.queued .so-ri { background: var(--blue-soft); color: var(--blue); }
.so-row.back .so-ri { background: var(--warn-soft); color: var(--warn); }
.so-row.failed .so-ri { background: var(--danger-soft); color: var(--danger); }
.so-row.cancelled { opacity: .6; }
.so-rt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.so-rt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-rt small { color: var(--ink-3); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.so-rt small b { font-size: 12.5px; color: var(--ink-2); }
.so-ra { display: flex; gap: 6px; flex: none; }
.so-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; padding: 6px 10px; border-radius: 9px; background: var(--hover); color: var(--ink-2); margin-top: 4px; }
.so-note.warn { background: var(--warn-soft); color: var(--warn); }
.so-note.bad { background: var(--danger-soft); color: var(--danger); }
.so-none { padding: 18px; color: var(--ink-2); font-size: 14px; }
.so-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.so-add { display: flex; gap: 6px; flex-wrap: wrap; }
.so-rate { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.so-rate b { font-size: 18px; }
@media (max-width: 700px) { .so-row { flex-wrap: wrap; } .so-ra { width: 100%; justify-content: flex-end; } }
/* Google-style post card */
.so-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.so-gpost { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px; display: grid; gap: 10px; align-content: start; font-family: Roboto, Arial, var(--font); }
.so-gpost img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--hover); }
.so-gpost p { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.so-gpost footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.so-gpost .bad { color: var(--danger); }
.so-ghead { display: flex; gap: 10px; align-items: center; }
.so-ghead b { font-size: 14px; display: block; } .so-ghead small { color: var(--ink-3); font-size: 12px; }
.so-gav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #1a73e8; color: #fff; font-weight: 600; flex: none; }
.so-gtitle { font-size: 16px; }
.so-gcta { justify-self: start; color: #1a73e8; font-weight: 600; font-size: 14px; padding: 8px 0 0; }
.so-coupon { border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
/* Reviews and comments */
.so-reviews { display: grid; gap: 10px; }
.so-review { padding: 14px 16px; display: grid; gap: 8px; }
.so-review.in { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.so-review p { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.so-review > .btn { justify-self: start; }
.so-rvh { display: flex; gap: 10px; align-items: center; }
.so-rvh .avatar { width: 34px; height: 34px; font-size: 14px; }
.so-owner { border-left: 3px solid var(--line-2); padding: 4px 0 4px 12px; display: grid; gap: 4px; font-size: 13.5px; }
.so-owner p { font-size: 13.5px; }
.so-doing .so-row { padding: 6px 0; }
.so-cm { border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 13.5px; }
.so-cm p { margin: 4px 0 0; }
/* Photos */
.so-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.so-photos figure { margin: 0; display: grid; gap: 4px; }
.so-photos img, .so-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--hover); display: grid; place-items: center; color: var(--ink-3); }
.so-photos figcaption { font-size: 12px; color: var(--ink-3); }
/* Profile */
.so-profile { padding: 4px 0; }
.so-pf { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.so-pf:last-child { border-bottom: 0; }
.so-pf > span { color: var(--ink-2); display: grid; gap: 4px; justify-items: start; }
.so-pf > b { font-weight: 500; overflow-wrap: anywhere; }
.so-core { font-style: normal; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.so-desc { white-space: pre-wrap; color: var(--ink-2); }
.so-hrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2px 14px; }
.so-hrs span { display: inline-block; width: 38px; color: var(--ink-3); }
.so-hrs em { font-style: normal; color: var(--ink-3); }
@media (max-width: 700px) { .so-pf { grid-template-columns: 1fr; gap: 6px; } }
/* YouTube content table */
.so-table { overflow-x: auto; }
.so-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.so-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.so-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.so-table tr:last-child td { border-bottom: 0; }
.so-vt { display: flex; gap: 12px; align-items: center; min-width: 300px; }
.so-vt img, .so-vph { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #0f0f0f; flex: none; display: grid; place-items: center; color: #fff; }
.so-vph.big { width: 100%; }
.so-vt div { display: grid; gap: 2px; min-width: 0; }
.so-vt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.so-vt small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-yc { display: grid; gap: 6px; font-family: Roboto, Arial, var(--font); }
.so-yc img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #0f0f0f; }
.so-yc b { font-size: 15px; line-height: 1.35; }
.so-yc small { color: var(--ink-3); font-size: 12.5px; }
.so-yc p { margin: 0; color: var(--ink-2); white-space: pre-wrap; }
.so-empty { padding: 34px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.so-empty h3 { margin: 0; }
.so-empty p { margin: 0; max-width: 520px; }
/* The composer */
.modal.so-modal { width: min(1080px, calc(100vw - 24px)); max-width: none; }
.so-modal .modal-h { gap: 12px; }
.so-mch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); background: var(--hover); padding: 4px 10px; border-radius: 99px; margin-right: auto; }
.so-comp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 22px; align-items: start; }
@media (max-width: 860px) { .so-comp { grid-template-columns: 1fr; } }
.so-form { display: grid; gap: 14px; min-width: 0; }
.so-fld { display: grid; gap: 6px; }
.so-fld > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.so-cnt { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.so-cnt.over { color: var(--danger); font-weight: 700; }
.so-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .so-two { grid-template-columns: 1fr; } }
.so-type { justify-self: start; }
.so-drop { display: grid; justify-items: center; gap: 4px; padding: 22px; border: 1.5px dashed var(--line-2); border-radius: 14px; cursor: pointer; text-align: center; background: var(--surface-2); color: var(--ink-2); }
.so-drop:hover { border-color: var(--ink-3); }
.so-drop.small { padding: 14px; }
.so-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.so-file > .so-drop { flex: 1; }
.so-pic { display: flex; align-items: center; gap: 10px; }
.so-pic img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--hover); }
.so-radio { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.so-radio label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.so-dt { margin-top: 8px; max-width: 260px; }
.so-when { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.so-when > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.so-when .so-dt { margin: 0; }
.so-callnote { align-self: end; margin: 0 0 10px; }
.so-side { display: grid; gap: 12px; position: sticky; top: 0; }
.so-prevh { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.so-prev { border-radius: 16px; background: var(--hover); padding: 14px; }
.so-prev .so-gpost { box-shadow: var(--shadow); }
.so-pp { margin: 0; display: grid; gap: 6px; }
.so-pp img { width: 100%; border-radius: 12px; }
.so-pp figcaption { font-size: 12px; color: var(--ink-3); }
.so-diff { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.so-diff:last-child { border-bottom: 0; }
.so-diff del { color: var(--ink-3); } .so-diff ins { text-decoration: none; color: var(--ok); font-weight: 600; }
.so-checks { display: grid; gap: 6px; }
.so-ckh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.so-ck { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.so-ck > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.so-ck .i { margin-top: 2px; flex: none; }
.so-ck.bad { background: var(--danger-soft); color: var(--danger); }
.so-ck.warn { background: var(--warn-soft); color: var(--warn); }
.so-ck.ok { background: var(--ok-soft); color: var(--ok); }
.so-ck .link { color: inherit; font-weight: 700; text-decoration: underline; flex: none; }
.so-ai { justify-self: start; }
.so-foot { align-items: center; flex-wrap: wrap; }
.so-foot .spacer { flex: 1; }
.so-mgr { display: inline-flex; gap: 6px; align-items: center; }
.so-mgr .input.sm { width: auto; }
.so-by { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-right: auto; }
.so-bnote { flex: 1; min-width: 200px; max-width: 360px; }
.so-hours { display: grid; gap: 6px; }
.so-hours > div, .so-sp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.so-hours b { width: 40px; font-size: 13px; }
.so-cl { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; width: 74px; }
.so-hours .input.sm, .so-sp .input.sm { width: 120px; }
.so-special { display: grid; gap: 6px; }
.so-ck .link, .so-page button.link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.so-page button.link { color: var(--brand); font-weight: 600; }
.so-pubs { display: grid; gap: 4px; }
.so-pubs .cv-row span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Motion polish: small, quick, transform and opacity only (cheap for phones), off with reduced motion ---------- */
:root { --spring: cubic-bezier(.34, 1.4, .64, 1); --soft: cubic-bezier(.2, .7, .1, 1); }
/* Buttons: a soft press, a gentle lift on hover, a ripple from where you tapped */
.btn, .icon-btn { transition: background .15s, border-color .15s, box-shadow .2s, transform .18s var(--spring), opacity .15s; }
.btn.rippling { overflow: hidden; }
.btn:active:not(:disabled), .icon-btn:active:not(:disabled) { transform: scale(.965); transition-duration: .06s; }
@media (hover: hover) { .btn.dark:hover:not(:disabled), .btn.green:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 16px -8px rgba(23, 25, 28, .45); } }
.btn .rip { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .18; transform: scale(0); animation: rip .55s var(--soft) forwards; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
/* Working on it: a small spinner on the button that's waiting (the label stays) */
.btn.busy { opacity: .85; pointer-events: none; }
.btn.busy::after { content: ""; width: 12px; height: 12px; margin-left: 2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; opacity: .8; }
/* Checks and lists arrive one after another */
@keyframes ckIn { from { opacity: 0; transform: translateY(5px); } }
.so-ck, .so-row, .so-cell, .so-gpost, .so-review, .so-photos figure { animation: ckIn .32s var(--soft) both; }
.so-ck:nth-child(2), .so-row:nth-child(2), .so-cell:nth-child(2), .so-gpost:nth-child(2), .so-review:nth-child(2) { animation-delay: .04s; }
.so-ck:nth-child(3), .so-row:nth-child(3), .so-cell:nth-child(3), .so-gpost:nth-child(3), .so-review:nth-child(3) { animation-delay: .08s; }
.so-ck:nth-child(4), .so-row:nth-child(4), .so-cell:nth-child(4), .so-gpost:nth-child(4), .so-review:nth-child(4) { animation-delay: .12s; }
.so-ck:nth-child(n+5), .so-row:nth-child(n+5), .so-cell:nth-child(n+5), .so-gpost:nth-child(n+5), .so-review:nth-child(n+5) { animation-delay: .16s; }
.so-ck.ok .i, .ck-done .i, .chip.ok .i { animation: ckpop .45s var(--spring) both; }
/* Progress bars grow in from the left */
@keyframes barGrow { from { transform: scaleX(0); } }
.so-quota em { transform-origin: left center; animation: barGrow .8s var(--soft) both; }
/* Tabs: the underline slides in */
.so-nav button { position: relative; transition: color .15s; }
.so-nav button.on { border-bottom-color: transparent; }
.so-nav button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transition: transform .28s var(--spring); }
.so-nav button.on::after { transform: scaleX(1); }
/* Cards that open something lift a little */
@media (hover: hover) { .so-cell, .so-qa button, .so-gpost, .tile, .pcard { transition: transform .2s var(--soft), box-shadow .2s, border-color .15s; } .so-qa button:hover, .so-gpost:hover { transform: translateY(-2px); } }
/* Switches glide */
.switch, .switch::after, .switch::before { transition: background .2s, transform .25s var(--spring), left .25s var(--spring); }
/* Toasts slide up with a little spring */
.toast { animation: toastIn .38s var(--spring) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .btn .rip { display: none; } .btn.busy::after { animation-duration: 1.6s; } }
.cx-plugin { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.cx-plugin > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cx-plugin small { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 640px) { .cx-plugin { flex-wrap: wrap; } }
.cx-from { width: auto; min-width: 280px; max-width: 100%; }
.cx-forms { display: grid; gap: 6px; margin: 12px 0 4px; }
.cx-form { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.cx-form small { color: var(--ink-3); margin-left: auto; }

/* Support access (admin.js) */
.sup-page .card.panel { margin-bottom: 14px; }
.sup-page .card.panel h3 { margin: 0 0 8px; font-size: 15px; }
.sup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sup-grid .sup-wide { grid-column: 1 / -1; }
.sup-main .ipill { font-style: normal; margin-left: 4px; }
.sup-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.sup-list.ok li::marker { color: var(--ok); }
.sup-list.no li::marker { color: var(--danger); }
.sup-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sup-form .field { margin: 0; min-width: 160px; flex: 1; }
.sup-form .field:nth-child(1) { flex: 0 0 230px; }
.sup-form .field:nth-child(3) { flex: 0 0 140px; }
.sup-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sup-row:first-of-type { border-top: 0; }
.sup-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sup-main small { color: var(--ink-2); font-size: 12.5px; }
.sup-new code#sup-key { word-break: break-all; }
@media (max-width: 720px) { .sup-grid { grid-template-columns: 1fr; } .sup-row { flex-wrap: wrap; } }
.sup-grid .card.panel { margin-bottom: 0; }
.sup-grid { margin-bottom: 14px; }

/* The Website tab (connect.js drawSite) */
.site-page { max-width: 1180px; }
.site-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.site-head h1 { margin: 4px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.site-head p { margin: 0; max-width: 680px; font-size: 13.5px; }
.site-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 44px 20px; }
.site-empty span { color: var(--ink-2); max-width: 460px; font-size: 13.5px; }
.cx-tolink { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 13.5px; }
.cx-tolink span { flex: 1; }
.cx-tolink:hover { border-color: var(--line-2); background: var(--hover); }
@media (max-width: 720px) { .site-head { flex-direction: column; align-items: flex-start; } }
.cx-tolink > svg:last-child { transform: rotate(-90deg); opacity: .6; }

/* Leads as an inbox (autopilot.js drawLeads): one line per lead, opened for the details */
.ld-page { max-width: 1080px; }
.ld-find { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.ld-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ld-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.ld-search:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 3px var(--hover); }
.ld-list { padding: 4px; overflow: hidden; }
.ld-item { border-radius: 12px; transition: background .15s; }
.ld-item + .ld-item { border-top: 1px solid var(--line); }
.ld-item.open { background: var(--surface-2); border-top-color: transparent; margin: 4px 0; }
.ld-item.open + .ld-item { border-top-color: transparent; }
.ld-item.spam, .ld-item.duplicate { opacity: .72; }
.ld-line { width: 100%; display: grid; grid-template-columns: 38px minmax(150px, 1.1fr) minmax(0, 2fr) auto 88px; align-items: center; gap: 14px; padding: 12px 14px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; }
.ld-line:hover { background: var(--hover); }
.ld-item.open .ld-line:hover { background: transparent; }
.ld-line .ld-av { width: 38px; height: 38px; }
.ld-main { min-width: 0; display: grid; gap: 2px; }
.ld-name { font-weight: 640; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.ld-sub { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-prev { min-width: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-meta { display: grid; justify-items: end; gap: 3px; }
.ld-form { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--hover); padding: 2px 8px; border-radius: 999px; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.ld-st { justify-self: end; font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--hover); color: var(--ink-2); white-space: nowrap; }
.ld-st.new { background: var(--blue-soft, #e8efff); color: var(--blue, #2f5bd3); }
.ld-st.won { background: var(--ok-soft); color: var(--ok); }
.ld-st.spam { background: var(--danger-soft); color: var(--danger); }
.ld-st.duplicate { background: var(--warn-soft); color: var(--warn); }
.ld-tag { font-size: 10.5px; font-weight: 650; padding: 1px 7px; border-radius: 6px; background: var(--hover); color: var(--ink-3); letter-spacing: .01em; }
.ld-tag.bad { background: var(--danger-soft); color: var(--danger); }
.ld-tag.warn { background: var(--warn-soft); color: var(--warn); }
.ld-body { padding: 2px 18px 18px 66px; display: grid; gap: 14px; animation: ldIn .18s ease-out; }
@keyframes ldIn { from { opacity: 0; transform: translateY(-4px); } }
.ld-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-body .ld-msg { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.ld-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 18px; }
.ld-dl dt { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: none; }
.ld-dl dd { margin: 2px 0 0; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.ld-src { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.ld-note { margin: 0; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.ld-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ld-acts select { width: auto; }
.ld-more { display: flex; justify-content: center; margin: 14px 0 4px; }
@media (max-width: 760px) {
  .ld-line { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .ld-prev, .ld-meta { display: none; }
  .ld-body { padding: 2px 12px 14px 12px; }
  .ld-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* SEO › Website: the live WordPress checks with their points (connect.js webCard) */
.sw-checks { margin: 14px 0 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.sw-ch-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.sw-ch-h b { display: block; font-size: 14.5px; }
.sw-ch-h small { color: var(--ink-2); font-size: 12.5px; }
.sw-pts { display: flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: 12px; background: var(--hover); }
.sw-pts b { font-size: 22px; letter-spacing: -.02em; }
.sw-pts span { font-size: 12px; color: var(--ink-2); }
.sw-pts.ok b { color: var(--ok); } .sw-pts.warn b { color: var(--warn); } .sw-pts.bad b { color: var(--danger); }
.sw-ck + .sw-ck { border-top: 1px solid var(--line); }
.sw-ck-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sw-ck-row:hover:not(:disabled) { background: var(--hover); }
.sw-ck-row:disabled { cursor: default; opacity: .8; }
.sw-ck-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sw-ck-t b { font-size: 13.5px; font-weight: 620; }
.sw-ck-t small { font-size: 12.5px; color: var(--ink-2); }
.sw-ck-p { font-size: 12.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sw-ck.open .sw-ck-row svg:last-child { transform: rotate(180deg); }
.sw-ck-b { padding: 0 16px 14px 38px; display: grid; gap: 8px; font-size: 13px; }
.sw-ck-b p { margin: 0; }
.sw-ck-b ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; color: var(--ink-2); }
.sw-fix { display: flex; gap: 6px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); }

.ld-find { flex-wrap: wrap; }
.ld-search { min-width: 240px; }
.ld-sel { width: auto; height: 40px; border-radius: 12px; }
.ld-count { white-space: nowrap; }
.ld-stats .card { border-radius: 16px; position: relative; overflow: hidden; }
.ld-stats .card::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--brand, var(--ok)), transparent); opacity: .35; }
.ld-bar .seg-mini button .muted { font-variant-numeric: tabular-nums; }

.bl-img-prev { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; margin: 8px 0; border: 1px solid var(--line); }

/* ---------- New client: the nine-step onboarding wizard ---------- */
.modal.wiz { max-width: 780px; }
.wz-lead { margin-bottom: 14px; }
.wz-err { display: flex; align-items: center; gap: 4px; color: var(--danger); font-size: 12px; margin-top: 4px; }
.wb-from { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-size: 10.5px; font-weight: 600; cursor: help; vertical-align: 1px; }
.input.wb-filled { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.wb-paste { margin-top: 12px; }
.wb-paste summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.wb-paste textarea { margin: 8px 0; }
.wb-res { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.wb-res-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; background: var(--ok-soft); color: var(--ok); }
.wb-res-h b { color: var(--ink); }
.wb-res .notice { margin: 10px 14px 0; }
.wb-list { display: flex; flex-direction: column; padding: 6px 0; max-height: 320px; overflow: auto; }
.wb-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2px 14px; padding: 7px 14px; font-size: 13px; border-top: 1px solid var(--line); }
.wb-row:first-child { border-top: 0; }
.wb-row > span { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.wb-row > b { font-weight: 600; white-space: pre-wrap; word-break: break-word; }
.wb-row > small { grid-column: 2; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.wz-more summary { cursor: pointer; font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.wz-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; cursor: pointer; }
.wz-check input { margin-top: 3px; }
.wz-check span { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.wz-check small { color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.wz-thelp { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.wz-thelp summary { cursor: pointer; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.wz-thelp dl { display: grid; grid-template-columns: 74px 1fr; gap: 6px 10px; margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.wz-thelp dt { font-weight: 650; color: var(--ink); }
.wz-thelp dd { margin: 0; line-height: 1.7; }
.wz-thelp code { white-space: nowrap; margin: 0 2px; }
.wz-tlist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.wz-tlist li { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.wz-tlist small { color: var(--ink-3); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
@media (max-width: 640px) { .wz-thelp dl { grid-template-columns: 1fr; } }
.wt-streams { display: flex; flex-direction: column; gap: 8px; }
.wt-stream { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.wt-stream b { font-size: 13px; }
.wg-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wg-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin: 6px 0; }
.wg-opt.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.wg-opt input { margin-top: 3px; }
.wg-opt span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.wg-opt small { color: var(--ink-3); font-size: 12px; }
.wg-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 12px; background: var(--surface); }
.wg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.wg-sub { margin: -2px 0 8px 30px; }
.wb-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.wb-steps > div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.wb-steps b { display: block; margin-bottom: 3px; }
.wr-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.wr-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.wr-row:first-child { border-top: 0; }
.wr-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.wr-row small { color: var(--ink-3); font-size: 12px; word-break: break-word; }
.wr-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); color: var(--ink-3); }
.wr-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.wr-row.ok .wr-ic { background: var(--ok-soft); color: var(--ok); }
.wr-row.fail .wr-ic { background: #fdecea; color: #b42318; }
.wr-row.fail small { color: #b42318; }
.wr-row.later .wr-ic { background: #fff4e0; color: #a15c00; }
.wr-row.run { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.wr-web { margin-top: 14px; }
.wr-web ol { margin: 6px 0 10px 18px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) {
  .wb-row, .wt-stream { grid-template-columns: 1fr; }
  .wb-row > small { grid-column: 1; }
  .wg-sub { margin-left: 0; }
}
.chip-x { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: inherit; display: inline-grid; place-items: center; }

/* ---------- Inbox: every chat in one place ---------- */
.side-new { display: flex; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--brand, #13795b); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; width: calc(100% - 28px); }
.side-new:hover { opacity: .9; }
.side-mini .side-new { justify-content: center; padding: 8px 0; }
.side-mini .side-new .lbl { display: none; }
.content:has(> .ib) { padding: 0; overflow: hidden; }
.ib { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: 100%; min-height: 0; background: var(--surface); }
.ib-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--bg, var(--surface)); }
.ib-h { display: flex; align-items: center; gap: 8px; padding: 18px 16px 10px; }
.ib-h h1 { font-size: 20px; flex: 1; }
.ib-hb { display: flex; gap: 6px; }
#ib-left { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ib-search { padding: 0 16px 8px; }
.ib-search label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-3); }
.ib-search input { border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); flex: 1; min-width: 0; }
.ib-filters { display: flex; gap: 5px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.ib-filters .chip { white-space: nowrap; }
.ib-filters .chip.warn:not(.on) { border-color: #f0b24b; color: #a15c00; }
.ib-list { flex: 1; overflow-y: auto; padding: 0 8px 16px; }
.ib-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 8px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.ib-row:hover { background: var(--hover); }
.ib-row.on { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.ib-row > img, .ib-row > .avatar, .ib-row > span:first-child { flex: none; }
.ib-mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ib-l1, .ib-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ib-l1 b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row.new .ib-l1 b { font-weight: 750; }
.ib-l1 time { margin-left: auto; font-size: 11px; color: var(--ink-3); flex: none; }
.ib-row.new .ib-l1 time { color: var(--brand); font-weight: 600; }
.ib-prev { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ib-row.new .ib-prev { color: var(--ink-2); }
.ib-n { flex: none; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ib-wait { flex: none; padding: 1px 7px; border-radius: 999px; background: #fff1dc; color: #a15c00; font-size: 10.5px; font-weight: 700; }
.ib-tag { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 600; background: var(--hover); color: var(--ink-3); }
.ib-tag.client { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.ib-tag.team { background: #eef0f4; color: #4a5160; }
.ib-pin { color: var(--ink-3); display: inline-flex; }
.ib-gface { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #eaf0ff; color: #3a5bd9; flex: none; }
.ib-gface.feed { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.ib-empty { padding: 30px 12px; text-align: center; color: var(--ink-3); font-size: 13px; }
.ib-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ib-blank { margin: auto; max-width: 360px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13.5px; padding: 30px; }
.ib-blank > svg { width: 40px; height: 40px; opacity: .5; }
.ib-blank b { color: var(--ink); font-size: 15px; }
.ib-ph { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-height: 64px; }
.ib-pt { display: flex; flex-direction: column; min-width: 0; }
.ib-pt b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.ib-pt small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-waittx { color: #a15c00; font-weight: 600; }
.ib-back { display: none; }
.ib-pinb.on { color: var(--brand); }
.ib-msgs { flex: 1; overflow-y: auto; padding: 16px 22px 10px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); }
.ib-day { align-self: center; margin: 12px 0 6px; padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.ib-sys { align-self: center; font-size: 12px; color: var(--ink-3); padding: 4px 10px; text-align: center; }
.ib-loading { margin: auto; }
.ib-m { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; margin-top: 6px; }
.ib-m.cont { margin-top: 1px; }
.ib-m.me { align-self: flex-end; flex-direction: row-reverse; }
.ib-av { width: 30px; flex: none; }
.ib-b { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 11px 6px; min-width: 90px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.ib-m.me .ib-b { background: color-mix(in srgb, var(--brand) 11%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); border-radius: 14px 14px 4px 14px; }
.ib-m.cl .ib-b { border-left: 3px solid var(--brand); }
.ib-from { display: block; font-size: 12px; font-weight: 700; margin-bottom: 1px; }
.ib-from em { font-style: normal; font-weight: 600; font-size: 10.5px; padding: 0 5px; border-radius: 5px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.ib-tt { font-weight: 650; }
.ib-tx { word-break: break-word; }
.ib-tx a { color: var(--brand); }
.ib-del { color: var(--ink-3); font-size: 12.5px; }
.ib-time { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.ib-x { border: 0; background: none; padding: 0; color: var(--ink-3); cursor: pointer; display: none; }
.ib-m:hover .ib-x { display: inline-flex; }
.ib-task { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 8px; border-radius: 7px; background: var(--hover); font-size: 11.5px; color: var(--ink-2); }
.ib-task.done { background: var(--ok-soft); color: var(--ok); }
.ib-task.late { background: #fdecea; color: #b42318; }
.ib-att { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.ib-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; }
.ib-rl { border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; text-decoration: none; }
.ib-rl:hover { color: var(--brand); }
.ib-lastr { display: flex; gap: 6px; align-items: center; margin-top: 5px; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
.ib-lastr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-rbox { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; }
.ib-rbox textarea { flex: 1; min-width: 200px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; font: inherit; font-size: 13px; resize: vertical; background: var(--surface); color: var(--ink); }
.ib-fl { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0 0 3px; font: inherit; font-size: 11.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.ib-fl em { font-style: normal; font-weight: 600; font-size: 10px; padding: 0 5px; border-radius: 5px; background: var(--hover); color: var(--ink-3); }
.ib-fl em.client { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.ib-msgs.feed .ib-m { max-width: 86%; }
.ib-comp { display: flex; gap: 8px; align-items: flex-end; padding: 12px 18px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.ib-comp textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 14px; line-height: 1.45; max-height: 160px; background: var(--surface-2); color: var(--ink); outline: 0; }
.ib-comp textarea:focus { border-color: var(--brand); background: var(--surface); }
.ib-comp .btn { height: 42px; width: 46px; padding: 0; justify-content: center; border-radius: 14px; }
.ib-gm { max-width: 520px; }
.ib-pps { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 360px; overflow-y: auto; }
.ib-pp { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; border: 0; background: none; font: inherit; text-align: left; color: inherit; width: 100%; }
.ib-pp:hover { background: var(--hover); }
.ib-pp > span:not(.avatar) { display: flex; flex-direction: column; font-size: 13.5px; }
.ib-pp small { color: var(--ink-3); font-size: 12px; }
.ib-pp[hidden], .nt-p[hidden] { display: none; }
.nt-modal { max-width: 520px; }
.nt-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; max-height: 420px; overflow-y: auto; }
.nt-p { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: inherit; cursor: pointer; text-align: left; color: inherit; }
.nt-p:hover, .nt-p.on { background: var(--hover); }
.nt-p > span:not(.avatar) { display: flex; flex-direction: column; font-size: 13.5px; }
.nt-p small { color: var(--ink-3); font-size: 12px; }
@media (max-width: 900px) {
  .ib { grid-template-columns: 1fr; }
  .ib .ib-pane { display: none; }
  .ib.open .ib-side { display: none; }
  .ib.open .ib-pane { display: flex; }
  .ib-back { display: inline-flex; }
  .ib-m { max-width: 92%; }
  .ib-msgs { padding: 12px; }
}
.wb-sample { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; color: var(--ink-2); }
.wb-sample > span { flex: 1; }
.wb-sample .btn { flex: none; }
@media (max-width: 640px) { .wb-sample { flex-wrap: wrap; } }
.ib-compw { position: relative; }
.ib-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 18px 0; background: var(--surface); border-top: 1px solid var(--line); font-size: 12px; }
.ib-tags + .ib-mpop + .ib-comp, .ib-tags:not([hidden]) ~ .ib-comp { border-top: 0; }
.ib-tl { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--brand); }
.ib-tg { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); font-weight: 600; }
.ib-due { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--ink-3); }
.ib-due input { border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px; font: inherit; font-size: 12px; background: var(--surface); color: var(--ink); }
.ib-mpop { position: absolute; left: 18px; bottom: calc(100% - 4px); width: 300px; max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 24, 30, .16); padding: 6px; z-index: 30; }
.ib-mh { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 4px 8px 6px; }
.ib-mo { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.ib-mo:hover, .ib-mo.on { background: var(--hover); }
.ib-mo > span:not(.avatar) { display: flex; flex-direction: column; font-size: 13px; }
.ib-mo small { color: var(--ink-3); font-size: 11.5px; }
.ib-mn { padding: 8px; font-size: 12.5px; color: var(--ink-3); }
.ib-subl { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--ink-3); cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ib-subl:hover { color: var(--brand); text-decoration: underline; }
.ib-pp.static { cursor: default; }
.ib-pp.static:hover { background: none; }
.ib-pp.static > span:not(.avatar) { flex: 1; }
.ib-own { font-style: normal; font-weight: 600; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: var(--hover); color: var(--ink-3); margin-left: 4px; }

.ib-pp .avatar, .ib-mo .avatar, .ib-tg .avatar { flex: none; }

/* Archive or delete (project Info), Archived and Bin */
.p-end .p-end-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.p-end .p-end-row:first-of-type { border-top: 0; margin-top: 6px; }
.p-end-row b { display: block; font-size: 14px; }
.p-end-row small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; margin-top: 2px; max-width: 560px; }
.p-end-row .btn { flex-shrink: 0; }
.p-shelf { display: flex; gap: 8px; justify-content: flex-end; margin: -4px 0 12px; }
.bin-item { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.bin-item:first-child { border-top: 0; padding-top: 0; }
.bin-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.bin-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bin-t small { color: var(--ink-3); font-size: 12px; }
.bin-when { display: inline-flex; align-items: center; gap: 4px; }
.bin-keep { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bin-keep .input { width: auto; flex: 0 1 200px; }
.bin-item > .btn.danger { justify-self: start; }
@media (max-width: 640px) { .p-end .p-end-row { flex-direction: column; align-items: flex-start; } }

/* Claude (claude.js): connecting your own Claude, and the Allow page */
.cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cl-steps { margin: 10px 0 12px; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.cl-url { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.cl-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 8px; background: var(--bg-2, rgba(0,0,0,.04)); border: 1px solid var(--line); font-size: 13px; }
.cl-ask { margin: 10px 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.cl-conn, .cl-ap { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cl-conn:first-of-type { border-top: 0; }
.cl-conn > div, .cl-ap > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-conn small, .cl-ap small { color: var(--ink-3); font-size: 12px; }
.cl-appr { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 20px; }
.cl-ap { cursor: pointer; }
.cl-allow { max-width: 520px; margin: 40px auto; padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cl-allow h1 { font-size: 22px; }
.cl-allow p { color: var(--ink-2); line-height: 1.55; }
.cl-allow-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.cl-allow-ic.bad { background: rgba(220, 60, 60, .1); color: var(--danger); }
.cl-allow-ic svg { width: 28px; height: 28px; }
.cl-can { list-style: none; padding: 0; margin: 4px 0; text-align: left; display: grid; gap: 8px; font-size: 14px; }
.cl-can li { display: flex; gap: 8px; align-items: flex-start; }
.cl-can svg { color: var(--brand); margin-top: 3px; flex-shrink: 0; }
.cl-allow .btn-row { margin-top: 8px; display: flex; gap: 10px; }
.iss-claude { margin-bottom: 10px; }
@media (max-width: 900px) { .cl-grid { grid-template-columns: 1fr; } }
.cl-conn .avatar, .cl-ap .avatar { flex: 0 0 auto; }
.bl-claude { display: inline-flex; align-items: center; gap: 6px; max-width: 520px; }

/* A key's checked state (Integrations, Blog writer, Autopilot) */
.key-set.ks-ok svg { color: var(--brand); }
.key-set.ks-bad { border-color: rgba(220, 60, 60, .35); background: rgba(220, 60, 60, .05); }
.key-set.ks-bad svg { color: var(--danger); }
.key-set.ks-warn svg { color: var(--warn); }
.key-set > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.key-set small { color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.bl-key-msg { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.bl-key-msg.bad { color: var(--danger); }
.key-set.ks-warn { background: rgba(200, 140, 0, .08); color: var(--ink); }
.key-set.ks-bad { color: var(--ink); }
.key-set .ks-line { display: block; flex: none; }
/* Brand kit: the logo for blog pictures */
.bb-logo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.bb-logo-prev { display: grid; place-items: center; width: 132px; height: 64px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.bb-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bb-logo-prev.empty { color: var(--ink-3); background: var(--surface-2); }
.bb-logo-c { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.bb-logo-c .input { width: auto; }
.bl-real { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); }
.bb-logo-card.need { border: 1.5px dashed var(--warn); background: var(--warn-soft); }
.bb-logo-card .bb-logo { align-items: flex-start; flex-wrap: nowrap; }
.bb-logo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 200px; padding: 18px 16px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: var(--surface); cursor: pointer; text-align: center; }
.bb-logo-drop:hover { border-color: var(--brand); }
.bb-logo-drop.off { cursor: default; }
.bb-logo-drop small { color: var(--ink-3); font-size: 11.5px; }
.bb-logo-side { flex: 1; min-width: 0; }
.bb-logo-side p { margin: 0 0 8px; }
.bb-logo-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-nologo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.bl-nologo span { flex: 1; min-width: 180px; }
@media (max-width: 600px) { .bb-logo-card .bb-logo { flex-wrap: wrap; } .bb-logo-drop { width: 100%; } }
/* Title tests (Autopilot → analysis) */
.ap-tt { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.ap-tt:first-of-type { border-top: 0; }
.ap-tt-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-tt small { font-size: 12px; overflow-wrap: anywhere; }
.ap-gprev { display: block; margin-top: 6px; }

/* ---------- SEO › Meta titles (metas.js) ---------- */
.smt-wrap { display: flex; flex-direction: column; gap: 14px; }
.smt-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; }
.smt-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 16px; }
.smt-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.smt-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.smt-way { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.smt-way h4 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; }
.smt-way p { margin: 0; }
.smt-csvnote { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.smt-csvnote > div { flex: 1; }
.smt-csvnote code { font-size: 11.5px; background: var(--surface); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.smt-last { margin: 0; }
.smt-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.smt-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.smt-filters .tk-search { flex: 1; min-width: 200px; }
.smt-group { width: auto; min-width: 170px; flex: none; }
.smt-sum { margin: -6px 0 0; }
.smt-h { margin-top: 6px; font-size: 13px; overflow-wrap: anywhere; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.smt-hl { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 4px; flex: none; }
.smt-h1e { display: flex; flex-direction: column; gap: 4px; }
.smt-h1e .smt-hl { align-self: flex-start; }
.smt-h1e > select.input { width: 100%; max-width: none; }
.smt-hm { margin-top: 3px; }
.smt-others { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.smt-other { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.smt-other span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smt-other select.input { width: auto; flex: none; }
.smt-table-wrap { padding: 0; overflow-x: auto; }
.smt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.smt-table th { text-align: left; font-size: 11.5px; font-weight: 650; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.smt-table tr:last-child td { border-bottom: 0; }
.smt-table td { vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.smt-table tr.on td { background: var(--brand-soft); }
.smt-table .smt-cb { width: 42px; }
.smt-table th:nth-child(2) { width: 24%; }
.smt-table th:nth-child(3) { width: 34%; }
.smt-page b { display: block; font-weight: 650; overflow-wrap: anywhere; }
.smt-page a { display: block; overflow-wrap: anywhere; font-weight: 500; }
.smt-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.smt-cur .smt-t { font-weight: 600; color: var(--blue); overflow-wrap: anywhere; }
.smt-cur .smt-d { margin-top: 4px; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.smt-n { font-style: normal; font-size: 11px; font-weight: 650; margin-left: 6px; color: var(--ink-3); white-space: nowrap; }
.smt-n.ok { color: var(--ok); }
.smt-n.warn { color: var(--warn); }
.smt-n.bad { color: var(--danger); }
.smt-edit { display: flex; flex-direction: column; gap: 6px; }
.smt-edit label { display: flex; flex-direction: column; gap: 2px; }
.smt-edit label .smt-n { align-self: flex-end; margin: 0; }
.smt-edit textarea.input { height: auto; min-height: 58px; resize: vertical; padding-top: 7px; line-height: 1.4; }
.smt-src { align-self: flex-start; }
.smt-none { display: flex; flex-direction: column; gap: 6px; }
.smt-row-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.smt-row-btns .link, .smt-bar .link { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.smt-more { padding: 12px; text-align: center; }
.smt-bar { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.smt-prog { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 13px; }
.smt-prog i { flex: 1; max-width: 240px; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.smt-prog i em { display: block; height: 100%; background: var(--brand); }
.smt-head .spinner.sm, .smt-bar .spinner.sm { margin-right: 6px; }
@media (max-width: 760px) {
  .smt-table thead { display: none; }
  .smt-table, .smt-table tbody, .smt-table tr, .smt-table td { display: block; width: 100%; }
  .smt-table tr { position: relative; border-bottom: 1px solid var(--line); padding: 4px 0 4px 34px; }
  .smt-table td { border: 0; padding: 6px 12px; }
  .smt-table td.smt-cb { position: absolute; left: 0; top: 6px; width: 34px; }
}

/* ---------- SEO › Images & alt text (images.js; shares the smt- layout of Meta titles) ---------- */
.sai-table th:nth-child(2) { width: 30%; }
.sai-table th:nth-child(3) { width: 28%; }
.sai-img { display: flex; gap: 10px; align-items: flex-start; }
.sai-img > a { flex: none; }
.sai-page { max-width: 260px; }
@media (max-width: 760px) { .sai-page { max-width: none; } }
.sai-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--hover); border: 1px solid var(--line); display: block; }
.sai-img > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sai-img b { font-weight: 650; overflow-wrap: anywhere; font-size: 13px; }
.sai-img .link { display: inline-flex; gap: 4px; align-items: center; overflow-wrap: anywhere; font-weight: 500; }

/* ---------- Issues & requests (issues.js) ---------- */
.cis-page .page-head .btn-row { flex-wrap: wrap; align-items: center; }
.cis-add { padding: 16px 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.cis-add-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cis-add-h b { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.cis-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cis-row > .input { flex: 1 1 220px; min-width: 0; }
.cis-row > .cim-date { flex: 0 0 160px; }
.cis-end { justify-content: flex-end; }
.cis-kinds .chip { cursor: pointer; }
.cis-svc { align-self: flex-start; }
/* The page's tabs scroll sideways on a phone instead of running off the screen. */
.cis-page .page-head > .btn-row { min-width: 0; max-width: 100%; }
.cis-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cis-tabs::-webkit-scrollbar { display: none; }
.cis-tabs button { flex: none; }
.cis-urg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.cis-ask { margin-bottom: 14px; border-left: 3px solid var(--warn); }
.cis-qrow { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.cis-qrow p { margin: 4px 0 0; overflow-wrap: anywhere; }
.cis-tools { flex-wrap: wrap; }
.cis-tools select.input { max-width: 200px; }
.cis-st { margin: 4px 0 12px; }
.cis-list { padding: 0; overflow: hidden; }
.cis-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.cis-item:first-child { border-top: 0; }
.cis-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
div.cis-main { cursor: default; }
.cis-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cis-t b { font-weight: 600; overflow-wrap: anywhere; }
.cis-main small { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.cis-w { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cis-sel { flex: none; width: auto; max-width: 170px; }
.cis-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--hover); white-space: pre-wrap; overflow-wrap: anywhere; }
.cis-thread { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cis-ev { padding: 8px 12px; border-left: 2px solid var(--line-2); }
.cis-ev.ask { border-left-color: var(--warn); background: var(--warn-soft); border-radius: 0 8px 8px 0; }
.cis-ev small { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cis-ev p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cis-sts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cim-notes { margin-top: 6px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.cim-btns { display: flex; gap: 2px; flex: none; }
.cis-file { cursor: pointer; white-space: nowrap; }
.cis-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.cis-sum > div { display: flex; flex-direction: column; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 120px; }
.cis-sum > div b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cis-sum > div small { color: var(--ink-3); font-size: 12px; }
.cis-sum > div:first-child b { color: var(--ok); }
.cis-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cis-table th { text-align: left; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--hover); }
.cis-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.cis-table tbody tr:first-child td { border-top: 0; }
.cis-table tr.done .cis-t b { color: var(--ink-2); }
.cis-table td small { display: block; margin-top: 3px; font-size: 12px; }
.cis-pj { font-weight: 600; max-width: 160px; overflow-wrap: anywhere; }
.cis-ti { min-width: 220px; }
.cis-table .cis-main { width: 100%; }
.cis-by { white-space: nowrap; }
.cis-wk { white-space: nowrap; }
.cis-wk .ipill { display: inline-flex; align-items: center; gap: 4px; }
.cis-pfb { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 40px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--hover); cursor: pointer; padding: 0; color: var(--ink-2); }
.cis-pfb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cis-pfb.broken img { display: none; }
.cis-pfb.broken::before { content: '🖼'; font-size: 16px; }
.cis-pfb em { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: 10.5px; font-weight: 700; background: rgba(0, 0, 0, .6); color: #fff; padding: 0 4px; border-radius: 4px; }
.cis-table .cis-sel { max-width: 150px; }
.cis-proof { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--ok); border-radius: 12px; background: var(--ok-soft); }
.cis-proof.cis-att { border-color: var(--line); background: var(--hover); }
.cis-proof h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13.5px; }
.cis-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cis-shots:empty { display: none; }
.cis-shot { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
.cis-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: block; }
.cis-shot span { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cis-shot.broken img { display: none; }
.cis-shot.broken::before { content: 'Open picture'; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 8px; border: 1px dashed var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.cis-flink { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
.cis-addf { margin-top: 8px; }
@media (max-width: 760px) {
  .cis-table thead { display: none; }
  .cis-table, .cis-table tbody, .cis-table tr, .cis-table td { display: block; width: 100%; }
  .cis-table tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  .cis-table tbody tr:first-child { border-top: 0; }
  .cis-table td { border: 0; padding: 3px 0; max-width: none; min-width: 0; white-space: normal; }
  .cis-table td.cis-by, .cis-table td.cis-wk, .cis-table td.cis-pf { display: inline-flex; width: auto; align-items: center; gap: 6px; margin-right: 14px; vertical-align: middle; }
  .cis-table td small { display: inline; margin: 0; }
  .cis-table .cis-sel { max-width: none; width: 100%; margin-top: 6px; }
  .cis-pj { font-size: 12px; color: var(--ink-3); font-weight: 600; }
}
@media (max-width: 640px) {
  .cis-item { flex-direction: column; align-items: stretch; gap: 8px; }
  .cis-sel { max-width: none; width: 100%; }
  .cis-tools select.input { max-width: none; flex: 1 1 45%; }
  .cis-row > .cim-date { flex: 1 1 100%; }
}

/* ---------- Client portal (portal.js): a link per client and service, and a signed-in client's Issues tab ---------- */
.pt { --pt-brand: var(--brand, #4f46e5); min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); }
.pt-embed { min-height: 0; background: transparent; }
.pt-loading { display: grid; place-items: center; min-height: 50vh; }
.pt-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(125deg, color-mix(in srgb, var(--pt-brand) 62%, #050a18) 0%, var(--pt-brand) 52%, color-mix(in srgb, var(--pt-brand) 60%, #8b5cf6) 100%); }
.pt-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 85% -20%, rgba(255, 255, 255, .28), transparent 60%), radial-gradient(60% 90% at 0% 120%, rgba(0, 0, 0, .25), transparent 60%); }
.pt-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); z-index: -1; box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 130px rgba(255, 255, 255, .02); }
.pt-embed .pt-hero { border-radius: 22px; }
.pt-hero-in { max-width: 1200px; margin: 0 auto; padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 18px; }
.pt-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); overflow: hidden; }
.pt-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.pt-bname { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-chip { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); white-space: nowrap; }
.pt-me { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 99px; padding: 3px 12px 3px 3px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pt-me span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--pt-brand); font-weight: 800; font-size: 12px; }
.pt-hmain { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pt-hmain h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; color: #fff; }
.pt-hmain p { margin: 6px 0 0; opacity: .85; max-width: 560px; }
.pt-cta { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  color: color-mix(in srgb, var(--pt-brand) 80%, #000); background: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55); transition: transform .15s; }
.pt-cta:hover { transform: translateY(-2px); }
.pt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pt-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1);
  color: #fff; font: inherit; text-align: left; cursor: pointer; backdrop-filter: blur(8px); transition: background .15s; }
.pt-stat:hover, .pt-stat.on { background: rgba(255, 255, 255, .22); }
.pt-stat.on { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.pt-stat b { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-stat span { font-size: 12.5px; opacity: .85; }
.pt-stat.warn b { color: #ffe08a; }
.pt-stat.ok b { color: #b6f5cf; }
.pt-body { max-width: 1200px; margin: 0 auto; padding: 20px 24px 90px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
.pt-embed .pt-body { padding: 18px 0 60px; }
.pt-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; max-height: calc(100vh - 32px); }
.pt-side-h { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.pt-side-h span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.pt-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; background: var(--hover); color: var(--ink-3); }
.pt-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.pt-search.wide { margin-bottom: 8px; }
.pt-plist { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; margin: 0 -4px; padding: 0 4px; }
.pt-plist.sheet { max-height: 60vh; }
.pt-prow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer; }
.pt-prow:hover { background: var(--hover); }
.pt-prow.on { background: color-mix(in srgb, var(--pt-brand) 12%, transparent); color: color-mix(in srgb, var(--pt-brand) 80%, var(--ink)); font-weight: 650; }
.pt-pn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-prow em { font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 99px; background: var(--hover); color: var(--ink-2); }
.pt-prow.on em { background: var(--pt-brand); color: #fff; }
.pt-pav { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--pt-brand); background: color-mix(in srgb, var(--pt-brand) 12%, transparent); }
.pt-pav.all { color: var(--ink-2); background: var(--hover); }
.pt-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); flex: none; }
.pt-none { color: var(--ink-3); font-size: 13px; padding: 10px; text-align: center; }
.pt-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pt-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-projbtn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; max-width: 100%; }
.pt-projbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tabs button { flex: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 7px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.pt-tabs button em { font-style: normal; font-size: 11.5px; opacity: .6; margin-left: 3px; }
.pt-tabs button.on { background: var(--ink); color: var(--surface); }
.pt-tabs button.warn:not(.on) { color: #b45309; }
.pt-bar .pt-search { width: 220px; background: var(--surface); border: 1px solid var(--line); }
.pt-ctx { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pt-list { display: flex; flex-direction: column; gap: 12px; }
.pt-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(15, 20, 30, .04), 0 10px 30px -22px rgba(15, 20, 30, .3); }
.pt-card::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-2); }
.pt-card.st-waiting::before { background: #f59e0b; }
.pt-card.st-doing::before { background: var(--pt-brand); }
.pt-card.st-fixed::before { background: #16a34a; }
.pt-card.flash { animation: ptFlash 1.6s ease; }
@keyframes ptFlash { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pt-brand) 35%, transparent); } }
.pt-card-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.pt-badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--hover); color: var(--ink-2); }
.pt-badge.b-waiting { background: #fef3c7; color: #92400e; }
.pt-badge.b-doing { background: color-mix(in srgb, var(--pt-brand) 14%, transparent); color: color-mix(in srgb, var(--pt-brand) 80%, #000); }
.pt-badge.b-fixed { background: #dcfce7; color: #166534; }
.pt-urg { font-size: 11px; font-weight: 700; color: #b91c1c; background: #fee2e2; padding: 2px 8px; border-radius: 99px; }
.pt-cp { font-weight: 600; color: var(--ink-2); }
.pt-cd { margin-left: auto; }
.pt-card h3 { margin: 10px 0 4px; font-size: 17px; letter-spacing: -.01em; }
.pt-cnote { margin: 0; color: var(--ink-2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 4px; }
.pt-steps span { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.pt-steps i { height: 5px; border-radius: 9px; background: var(--hover); }
.pt-steps span.on { color: var(--ink-2); }
.pt-steps span.on i { background: var(--pt-brand); }
.pt-steps.s3 span.on i { background: #16a34a; }
.pt-steps.ask span:nth-child(2).on i { background: #f59e0b; }
.pt-box-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-box-h small { color: var(--ink-3); margin-left: auto; font-size: 12px; }
.pt-ask, .pt-sol { margin-top: 12px; padding: 12px 14px; border-radius: 14px; }
.pt-ask { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.pt-ask p, .pt-sol p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-reply { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.pt-reply textarea { flex: 1; resize: vertical; min-height: 44px; background: #fff; color: var(--ink); }
.pt-sol { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.pt-proof-h { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #15803d; }
.pt-reopen { margin-top: 10px; border: 0; background: none; padding: 0; color: #166534; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.pt-prog { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--hover); font-size: 13.5px; color: var(--ink-2); }
.pt-prog span { overflow-wrap: anywhere; }
.pt-prog-f { display: block; }
.pt-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.pt-files:empty { display: none; }
.pt-shot { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 3; }
.pt-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-shot.broken img { display: none; }
.pt-shot.broken::before { content: 'Picture'; display: grid; place-items: center; height: 100%; font-size: 12px; color: var(--ink-3); }
.pt-flink { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; color: inherit; }
.pt-mine { margin-top: 6px; }
.pt-hist { margin-top: 12px; font-size: 13px; }
.pt-hist summary { cursor: pointer; color: var(--ink-3); font-weight: 600; }
.pt-ev { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.pt-ev.team { border-left-color: var(--pt-brand); }
.pt-ev small { color: var(--ink-3); }
.pt-ev p { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.pt-more:hover { color: var(--ink); }
.pt-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: 18px; background: var(--surface); }
.pt-empty > span { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--pt-brand); background: color-mix(in srgb, var(--pt-brand) 12%, transparent); }
.pt-empty p { margin: 0 0 6px; color: var(--ink-3); }
.pt-fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border: 0; border-radius: 99px;
  font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: var(--pt-brand); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--pt-brand) 70%, #000); cursor: pointer; }
.pt-lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5, 8, 15, .85); padding: 24px; cursor: zoom-out; }
.pt-lb img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; min-width: 60px; min-height: 60px; }
.pt-lbx { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; cursor: pointer; }
/* Report an issue */
.pt-modal .modal { max-width: 620px; }
.pt-form { display: flex; flex-direction: column; gap: 10px; }
.pt-fl { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-top: 4px; }
.pt-fl b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--brand); }
.pt-fl small { font-weight: 500; color: var(--ink-3); }
.pt-fix, .pt-picked { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--brand); background: var(--brand-soft); }
.pt-picked .link { margin-left: auto; }
.pt-picks { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.pt-pick { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.pt-pick:hover, .pt-pick.on { background: var(--hover); }
.pt-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-kind { padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pt-kind:hover { border-color: var(--ink-3); }
.pt-kind.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.pt-frow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pt-drop { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.pt-drop:hover { border-color: var(--brand); color: var(--brand); }
.pt-urgent { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
/* Gates: password and "your name" */
.pt-gate { --pt-brand: var(--brand, #4f46e5); min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.pt-gate-c { width: 100%; max-width: 440px; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(10, 15, 30, .4); }
.pt-gate-top { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 26px 26px; text-align: center; color: #fff;
  background: linear-gradient(125deg, color-mix(in srgb, var(--pt-brand) 62%, #050a18), var(--pt-brand) 52%, color-mix(in srgb, var(--pt-brand) 60%, #8b5cf6)); }
.pt-gate-top .pt-logo { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
.pt-gate-top small { opacity: .85; font-weight: 600; }
.pt-gate-top h1 { margin: 2px 0 0; font-size: 24px; color: #fff; letter-spacing: -.02em; }
.pt-gate-top p { margin: 0; opacity: .85; font-size: 14px; }
.pt-gate-f { display: flex; flex-direction: column; gap: 12px; padding: 22px 26px 26px; }
.pt-gate-f label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.pt-gate-f label small { font-weight: 500; color: var(--ink-3); }
.pt-gate-f .btn { height: 46px; font-size: 15px; }
.pt-err { color: var(--danger); margin: 0; font-size: 13.5px; }
/* Signed-in client: the tabs above the view */
.cis-cl { max-width: 1240px; }
.cis-cltabs { margin-bottom: 12px; }
/* The team's list of portal links */
.pa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pa-head p { margin: 4px 0 0; max-width: 640px; }
.pa-name { display: flex; align-items: center; gap: 10px; }
.pa-name > div { display: flex; flex-direction: column; min-width: 0; }
.pa-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(135deg, #6366f1, #4338ca); }
.pa-ic.s-seo { background: linear-gradient(135deg, #10b981, #047857); }
.pa-ic.s-social { background: linear-gradient(135deg, #ec4899, #be185d); }
.pa-ic.s-web { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.pa-sec { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-act { white-space: nowrap; text-align: right; }
.pa-table tr.off td { opacity: .55; }
.pa-form { display: flex; flex-direction: column; gap: 4px; }
.pa-svcs { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-svc { padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pa-svc.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.pa-ptools { display: flex; gap: 6px; align-items: center; margin: 8px 0 6px; }
.pa-ptools .pt-search { flex: 1; margin: 0; }
.pa-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 10px; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.pa-prow { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: 13.5px; cursor: pointer; min-width: 0; }
.pa-prow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-prow:hover { background: var(--hover); }
.pa-sec2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pa-send { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.cis-table.pa-table td small { display: block; margin-top: 2px; }
/* Dark mode: the question and solution boxes, and the status badges, in dark tints instead of light pastels. */
html[data-mode="dark"] .pt-ask { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); color: #fcd34d; }
html[data-mode="dark"] .pt-sol { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .32); color: #86efac; }
html[data-mode="dark"] .pt-ask p, html[data-mode="dark"] .pt-sol p { color: var(--ink); }
html[data-mode="dark"] .pt-proof-h, html[data-mode="dark"] .pt-reopen { color: #4ade80; }
html[data-mode="dark"] .pt-reply textarea { background: var(--surface); }
html[data-mode="dark"] .pt-badge.b-waiting { background: rgba(245, 158, 11, .18); color: #fcd34d; }
html[data-mode="dark"] .pt-badge.b-fixed { background: rgba(34, 197, 94, .18); color: #86efac; }
html[data-mode="dark"] .pt-badge.b-doing { background: color-mix(in srgb, var(--pt-brand) 28%, transparent); color: #fff; }
html[data-mode="dark"] .pt-urg { background: rgba(239, 68, 68, .18); color: #fca5a5; }
html[data-mode="dark"] .pt-tabs button.warn:not(.on) { color: #fbbf24; }
@media (max-width: 900px) {
  .pt-body { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 110px; }
  .pt-list { padding-bottom: 20px; }
  .pt-embed .pt-body { padding: 14px 0 90px; }
  .pt-side { display: none; }
  .pt-projbtn { display: inline-flex; }
  .pt-fab { display: inline-flex; }
  .pt-bar .pt-search { width: 100%; order: 3; }
  .pt-tabs { order: 2; flex-basis: 100%; }
}
@media (max-width: 640px) {
  .pt-hero-in { padding: 14px 16px 18px; gap: 14px; }
  .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-cta { display: none; }
  .pt-bname { display: none; }
  .pt-card { padding: 14px; }
  .pt-reply { flex-direction: column; align-items: stretch; }
  .pa-sec2 { grid-template-columns: 1fr; }
  .pa-ptools { flex-wrap: wrap; }
}

/* Buttons that show the work behind them (portal.js btnProgress): a fill that grows with a soft shimmer, a spinner and the
   step ("Uploading 2 of 3…"), then green with a tick that draws itself. */
.bp-on { position: relative; overflow: hidden; isolation: isolate; }
.bp-on:disabled, .bp-on[disabled] { opacity: 1 !important; cursor: progress; }
.btn.bp-on.busy { opacity: 1; }
.btn.bp-on.busy::after { display: none; }
.bp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 4%; z-index: -1; background: rgba(255, 255, 255, .2); transition: width .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; overflow: hidden; }
.btn:not(.dark):not(.danger-solid) .bp-fill, .pt-cta .bp-fill { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.bp-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: bpShimmer 1.15s ease-in-out infinite; }
.bp-l { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.bp-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.bp-done { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; animation: bpPop .4s cubic-bezier(.2, .8, .2, 1); }
.bp-done .bp-fill { opacity: 0; }
.bp-ok { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: bpDraw .45s .05s ease forwards; }
@keyframes bpShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes bpDraw { to { stroke-dashoffset: 0; } }
@keyframes bpPop { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bp-fill::after, .bp-done { animation: none; } .bp-spin { animation-duration: 1.6s; } .bp-ok { animation: none; stroke-dashoffset: 0; } }
/* The client's proof fields: screenshots and a link side by side */
.pt-fl2 { font-size: 13.5px; }
.pt-fl2 .i { color: var(--ink-3); }
.pt-linkin { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 12px; color: var(--ink-3); }
.pt-linkin:focus-within { border-color: var(--brand); }
.pt-linkin input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.pt-frow .pt-drop { flex: 1 1 200px; }
.pt-form > .pt-urgent { align-self: flex-start; min-height: 42px; }
.pt-mine-h { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }

/* Proof of work: the client asks for it with a tick; the team sees "Required" and can't complete without it. */
html.pt-page, html.pt-page body { height: auto; min-height: 100%; overflow: visible; }
.pt-ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.pt-tick { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.pt-tick input { position: absolute; opacity: 0; pointer-events: none; }
.pt-tbox { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s, transform .15s; }
.pt-tick b { display: block; font-size: 14px; }
.pt-tick small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.pt-tick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pt-tick input:checked + .pt-tbox { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.06); }
.pt-tick input:focus-visible + .pt-tbox { box-shadow: 0 0 0 3px var(--brand-soft); }
.pt-drop small { font-weight: 500; color: var(--ink-3); }
.pt-preq { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: color-mix(in srgb, var(--pt-brand) 80%, #000); background: color-mix(in srgb, var(--pt-brand) 12%, transparent); }
html[data-mode="dark"] .pt-preq { color: #fff; background: color-mix(in srgb, var(--pt-brand) 30%, transparent); }
.cis-need { animation: cisNeed 1.6s ease; border-radius: 12px; }
@keyframes cisNeed { 0%, 60% { box-shadow: 0 0 0 3px var(--warn); background: var(--warn-soft); } }

/* Portal 2: logos and avatars, the conversation on each card, the writing box with files in it, months, the activity
   trail, adding a project, the full-page sign-in, and a manager's preview of a link (portal.js). */
.pt-pav { --h: 221; color: hsl(var(--h) 62% 36%); background: hsl(var(--h) 85% 94%); overflow: hidden; letter-spacing: -.02em; }
.pt-pav.img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pt-pav img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.pt-pav.sm { width: 22px; height: 22px; border-radius: 7px; font-size: 10.5px; }
.pt-pav.xs { width: 18px; height: 18px; border-radius: 6px; font-size: 9.5px; }
.pt-pav.add { color: var(--pt-brand); background: color-mix(in srgb, var(--pt-brand) 12%, transparent); border: 1.5px dashed color-mix(in srgb, var(--pt-brand) 45%, transparent); }
.pt-pav.all { --h: 220; }
.pt-new { display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; color: #9a3412; background: #ffedd5; flex: none; }
.pt-av { --h: 221; width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 25) 70% 45%)); box-shadow: 0 2px 6px -2px hsl(var(--h) 60% 40% / .5); }
.pt-av.team { background: linear-gradient(140deg, color-mix(in srgb, var(--pt-brand) 85%, #fff), color-mix(in srgb, var(--pt-brand) 80%, #000)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--pt-brand) 45%, transparent); }
.pt-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.pt-hbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pt-hbtn:hover { background: rgba(255, 255, 255, .2); }
/* Issues | Activity */
.pt-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; box-shadow: 0 1px 2px rgba(15, 20, 30, .04); }
.pt-seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 650; color: var(--ink-2); padding: 8px 16px; border-radius: 10px; cursor: pointer; }
.pt-seg button.on { background: var(--pt-brand); color: #fff; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--pt-brand) 80%, #000); }
.pt-search.grow { flex: 1 1 260px; width: auto !important; }
/* Months */
.pt-months { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.pt-months::-webkit-scrollbar { display: none; }
.pt-mlab { color: var(--ink-3); display: grid; place-items: center; flex: none; padding: 0 2px; }
.pt-months button { flex: none; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.pt-months button em { font-style: normal; opacity: .55; margin-left: 2px; font-size: 11.5px; }
.pt-months button:hover { border-color: var(--ink-3); }
.pt-months button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.pt-mctx { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 12px; background: var(--hover); }
.pt-mctx .link { margin-left: auto; }
.pt-ctx { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.pt-ctx > div { display: flex; flex-direction: column; min-width: 0; }
.pt-ctx small { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12.5px; }
.pt-ctx .link { margin-left: auto; }
/* The card */
.pt-card-h .pt-cp { border: 0; background: none; padding: 0; font: inherit; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.pt-card-h .pt-cp:hover { color: var(--pt-brand); text-decoration: underline; }
.pt-upd { margin-left: 4px; }
.pt-ttl { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pt-ttl h3 { margin: 0; font-size: 17.5px; letter-spacing: -.015em; line-height: 1.3; }
.pt-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pt-preq.ok { color: #166534; background: #dcfce7; }
.pt-steps { margin: 12px 0 2px; }
.pt-conv { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pt-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; animation: ptIn .25s ease; }
.pt-msg.mine { flex-direction: row-reverse; align-self: flex-end; }
.pt-bub { min-width: 0; padding: 9px 13px 10px; border-radius: 16px 16px 16px 5px; background: var(--hover); border: 1px solid transparent; }
.pt-msg.mine .pt-bub { border-radius: 16px 16px 5px 16px; background: color-mix(in srgb, var(--pt-brand) 10%, var(--surface)); border-color: color-mix(in srgb, var(--pt-brand) 18%, transparent); }
.pt-msg.ask .pt-bub { background: #fffbeb; border-color: #fde68a; }
.pt-msg.sol .pt-bub { background: #f0fdf4; border-color: #bbf7d0; }
.pt-bh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.pt-bh time { color: var(--ink-3); font-size: 11.5px; margin-left: 2px; }
.pt-tm { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; color: var(--pt-brand); background: color-mix(in srgb, var(--pt-brand) 12%, transparent); }
.pt-qtag, .pt-stag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.pt-qtag { color: #92400e; background: #fef3c7; }
.pt-stag { color: #166534; background: #dcfce7; }
.pt-bub p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.pt-bub p a { color: var(--pt-brand); text-decoration: underline; text-underline-offset: 2px; }
.pt-bub .pt-files { grid-template-columns: repeat(auto-fill, minmax(110px, 160px)); }
.pt-bub .pt-flink { padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.pt-sys { display: flex; justify-content: center; }
.pt-sys span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); padding: 4px 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.pt-sys b { color: var(--ink-2); }
.pt-sys time { opacity: .8; margin-left: 4px; }
.pt-sys.s-fixed span { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.pt-earlier { align-self: center; border: 0; background: none; padding: 2px 8px; font: inherit; font-size: 12.5px; font-weight: 650; color: var(--pt-brand); cursor: pointer; }
.pt-earlier span { display: inline-flex; align-items: center; gap: 4px; }
.pt-earlier:hover { text-decoration: underline; }
.pt-proofbox { margin-top: 12px; padding: 10px 12px 12px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.pt-proofbox .pt-proof-h { margin: 0 0 2px; }
.pt-cfoot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.pt-cfoot.done { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #166534; font-weight: 600; }
.pt-cfoot.done span { display: inline-flex; align-items: center; gap: 6px; }
.pt-cfoot.done .pt-reopen { margin: 0; }
@keyframes ptIn { from { opacity: 0; transform: translateY(4px); } }
/* The writing box */
.pt-comp { border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.pt-comp.on, .pt-comp:focus-within { border-color: var(--pt-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pt-brand) 14%, transparent); }
.pt-comp.drag { border-style: dashed; border-color: var(--pt-brand); background: color-mix(in srgb, var(--pt-brand) 6%, var(--surface)); }
.pt-comp textarea { display: block; width: 100%; border: 0; outline: none; resize: none; background: transparent; font: inherit; font-size: 14.5px; line-height: 1.5; color: var(--ink); padding: 11px 14px 4px; min-height: 42px; }
.pt-comp.big textarea { min-height: 112px; }
.pt-cfiles { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 0; }
.pt-cfiles:empty { display: none; }
.pt-cf { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 5px 6px 5px 5px; border-radius: 12px; background: var(--hover); border: 1px solid var(--line); animation: ptIn .2s ease; }
.pt-cf img, .pt-cf i { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--surface); color: var(--ink-3); }
.pt-cf > span { display: flex; flex-direction: column; min-width: 0; }
.pt-cf b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cf small { font-size: 11px; color: var(--ink-3); }
.pt-cf button { width: 24px; height: 24px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.pt-cf button:hover { background: var(--surface); color: var(--danger); }
.pt-cbar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px 8px; }
.pt-clip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.pt-clip:hover { background: var(--hover); color: var(--pt-brand); }
.pt-chint { color: var(--ink-3); font-size: 12px; }
.pt-csend { height: 34px; border-radius: 10px; }
.pt-csend .i { margin-right: 2px; }
/* Activity */
.pt-act { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 6px 16px 12px; }
.pt-act .pt-empty { border: 0; padding: 36px 10px; }
.pt-act .pt-loading.sm { min-height: 160px; }
.pt-day { position: sticky; top: 0; z-index: 1; font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 14px 0 6px; background: var(--surface); }
.pt-tr { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.pt-day + .pt-tr { border-top: 0; }
.pt-tri-ic { position: absolute; left: 18px; top: 28px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.pt-tri-ic .i { width: 11px; height: 11px; }
.pt-tr.a-proof .pt-tri-ic, .pt-tr.a-status .pt-tri-ic { color: #16a34a; }
.pt-tr.a-asked .pt-tri-ic { color: #d97706; }
.pt-tr.a-deleted .pt-tri-ic { color: var(--danger); }
.pt-trl { font-size: 14px; line-height: 1.45; }
.pt-trv { color: var(--ink-2); }
.pt-tri { border: 0; background: none; padding: 0; font: inherit; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; text-align: left; }
.pt-tri:hover { color: var(--pt-brand); text-decoration-color: currentColor; }
.pt-trp { color: var(--ink-3); }
.pt-trb p { margin: 3px 0 0; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-tr time { font-size: 12px; color: var(--ink-3); white-space: nowrap; padding-top: 2px; }
/* Adding a project */
.pt-addrow { color: var(--pt-brand) !important; font-weight: 650; margin-top: 4px; }
.pt-addp { color: var(--pt-brand); }
.pt-addp b { font-weight: 750; }
.pt-bigin { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-2); color: var(--ink-3); }
.pt-bigin:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.pt-bigin input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); }
.pt-picked .pt-new, .pt-pick .pt-new { margin-left: 4px; }
.pt-pick > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-picks { max-height: 240px; }
/* Sign-in: a full page */
.pg { --pt-brand: var(--brand, #4f46e5); min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.pg-art { position: relative; overflow: hidden; isolation: isolate; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 40px clamp(28px, 5vw, 72px);
  background: linear-gradient(140deg, color-mix(in srgb, var(--pt-brand) 55%, #050a18) 0%, var(--pt-brand) 55%, color-mix(in srgb, var(--pt-brand) 55%, #8b5cf6) 100%); }
.pg-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 90% 0%, rgba(255, 255, 255, .25), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(0, 0, 0, .3), transparent 60%); }
.pg-art::after { content: ''; position: absolute; z-index: -1; width: 560px; height: 560px; right: -200px; bottom: -220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .035), 0 0 0 150px rgba(255, 255, 255, .025); }
.pg-brand { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.pg-brand .pt-logo { width: 44px; height: 44px; border-radius: 13px; font-size: 18px; }
.pg-mid { max-width: 520px; }
.pg-chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); }
.pg-mid h1 { margin: 18px 0 10px; color: #fff; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.035em; }
.pg-mid > p { margin: 0; font-size: 17px; opacity: .85; line-height: 1.5; }
.pg-feats { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pg-feats li { display: flex; gap: 14px; align-items: flex-start; }
.pg-feats li > .i { flex: none; width: 38px; height: 38px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); box-sizing: border-box; }
.pg-feats span { display: flex; flex-direction: column; font-size: 14px; opacity: .85; }
.pg-feats b { font-size: 15px; opacity: 1; color: #fff; }
.pg-foot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; opacity: .75; }
.pg-main { display: grid; place-items: center; padding: 40px 24px; }
.pg-card { width: 100%; max-width: 420px; animation: ptIn .4s ease; }
.pg-card h2 { margin: 0; font-size: clamp(26px, 3vw, 32px); letter-spacing: -.03em; }
.pg-sub { margin: 8px 0 26px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.pg-form { display: flex; flex-direction: column; gap: 16px; }
.pg-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 650; }
.pg-field small { font-weight: 500; color: var(--ink-3); }
.pg-field .input { height: 52px; font-size: 16px; border-radius: 14px; padding: 0 16px; }
.pg-pw { position: relative; display: block; }
.pg-pw .input { width: 100%; padding-right: 52px; letter-spacing: .04em; }
.pg-eye { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.pg-eye:hover { background: var(--hover); color: var(--ink); }
.pg-go { height: 54px; border-radius: 14px; font-size: 16px; font-weight: 700; gap: 8px; margin-top: 4px; background: var(--pt-brand) !important; border-color: var(--pt-brand) !important;
  box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--pt-brand) 80%, #000); transition: transform .15s, box-shadow .15s; }
.pg-go:hover { transform: translateY(-1px); }
.pg-help { margin: 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.pg-card.shake { animation: ptShake .4s ease; }
@keyframes ptShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
/* A manager's preview of a link */
html.pt-pvon, html.pt-pvon body { overflow: hidden; }
/* Under the modals (100), the confirm box and menus, so Report an issue, the project sheet and Your details open on top. */
.pt-preview { position: fixed; inset: 0; z-index: 95; overflow-y: auto; background: var(--bg); animation: ptIn .2s ease; }
.pt-pvbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: 13.5px; color: #78350f; background: #fef3c7; border-bottom: 1px solid #fde68a; }
.pt-pvbody .pt { min-height: calc(100vh - 50px); }
.pa-act { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.pa-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pa-name small .i { vertical-align: -2px; margin-right: 2px; }
.cis-ttabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Dark mode */
html[data-mode="dark"] .pt-pav:not(.img):not(.add) { color: hsl(var(--h) 85% 80%); background: hsl(var(--h) 45% 50% / .2); }
html[data-mode="dark"] .pt-new { color: #fdba74; background: rgba(249, 115, 22, .18); }
html[data-mode="dark"] .pt-msg.ask .pt-bub { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); }
html[data-mode="dark"] .pt-msg.sol .pt-bub, html[data-mode="dark"] .pt-proofbox { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .3); }
html[data-mode="dark"] .pt-qtag { color: #fcd34d; background: rgba(245, 158, 11, .18); }
html[data-mode="dark"] .pt-stag, html[data-mode="dark"] .pt-preq.ok { color: #86efac; background: rgba(34, 197, 94, .18); }
html[data-mode="dark"] .pt-sys.s-fixed span { color: #86efac; background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .3); }
html[data-mode="dark"] .pt-cfoot.done { color: #4ade80; }
html[data-mode="dark"] .pt-pvbar { color: #fcd34d; background: #2a2210; border-color: #4a3a12; }
html[data-mode="dark"] .pt-msg.mine .pt-bub { background: color-mix(in srgb, var(--pt-brand) 22%, var(--surface)); }
@media (max-width: 900px) {
  .pg { grid-template-columns: minmax(0, 1fr); }
  .pg-art { padding: 22px 20px 26px; gap: 18px; }
  .pg-mid h1 { font-size: 30px; margin: 12px 0 6px; }
  .pg-mid > p { font-size: 15px; }
  .pg-feats, .pg-foot { display: none; }
  .pg-main { place-items: start center; padding: 26px 20px 40px; }
  .pt-seg { align-self: stretch; }
  .pt-seg button { flex: 1; justify-content: center; }
}
@media (max-width: 640px) {
  .pt-msg { max-width: 100%; }
  .pt-av { width: 26px; height: 26px; font-size: 11px; }
  .pt-chint { display: none; }
  .pt-ttl h3 { font-size: 16.5px; }
  .pt-tr { grid-template-columns: 26px minmax(0, 1fr); }
  .pt-tr time { grid-column: 2; padding: 0; }
  .pt-tri-ic { left: 14px; top: 26px; }
  .pa-two { grid-template-columns: 1fr; }
  .pa-act { flex-wrap: wrap; justify-content: flex-start; }
  .pt-pvbar { font-size: 12.5px; padding: 8px 12px; }
  .pt-hbtn span { display: none; }
}
.pg-go .i { transform: rotate(-90deg); }

/* A client's Home (issues.js clientHome): one calm page. A line of where things stand, Needs you, their projects as logo
   cards, the latest updates. Lots of air, few numbers, no dates to meet. */
.ch { max-width: 1040px; display: flex; flex-direction: column; gap: 30px; padding-bottom: 60px; }
.ch-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.ch-date { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ch-head h1 { margin: 6px 0 8px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; }
.ch-line { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15.5px; color: var(--ink-2); }
.ch-line > span { color: var(--line-2); }
.ch-line b { color: var(--ink); }
.ch-line b.warn { color: #b45309; }
.ch-line b.ok { display: inline-flex; align-items: center; gap: 5px; color: #15803d; }
.ch-report { height: 48px; padding: 0 22px; border-radius: 14px; font-size: 15px; gap: 8px; box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .55); }
.ch-sec { display: flex; flex-direction: column; gap: 12px; }
.ch-sh { display: flex; align-items: center; gap: 10px; }
.ch-sh h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.ch-n { font-size: 12px; font-weight: 800; min-width: 22px; text-align: center; padding: 2px 8px; border-radius: 99px; color: #fff; background: #f59e0b; }
.ch-n.plain { color: var(--ink-2); background: var(--hover); }
.ch-all { margin-left: auto; }
.ch-find { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; width: min(280px, 100%); padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); }
.ch-find input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.ch-needs { display: flex; flex-direction: column; gap: 10px; }
.ch-need { display: block; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 20, 30, .04); color: inherit; text-decoration: none; }
a.ch-need:hover { border-color: var(--line-2); box-shadow: 0 10px 26px -18px rgba(15, 20, 30, .35); }
.ch-need:not(.ch-task) { border-color: #fde68a; background: linear-gradient(180deg, #fffdf5, var(--surface)); }
.ch-nh { display: flex; align-items: center; gap: 12px; }
.ch-nh > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-nh b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-nh small { font-size: 12.5px; color: var(--ink-3); }
.ch-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--ink-2); background: var(--hover); }
.ch-tag.q { color: #92400e; background: #fef3c7; }
.ch-q { margin: 10px 0 0 52px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-ans { display: flex; gap: 8px; margin: 10px 0 0 52px; }
.ch-ans .input { flex: 1; height: 44px; border-radius: 12px; }
.ch-ans .btn { height: 44px; border-radius: 12px; gap: 6px; }
.ch-calm { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.ch-calm > .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #dcfce7; box-sizing: border-box; flex: none; }
.ch-calm div { display: flex; flex-direction: column; }
.ch-calm span { font-size: 13.5px; opacity: .85; }
.ch-logo { --h: 221; width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 16px; font-weight: 800; overflow: hidden; color: hsl(var(--h) 62% 36%); background: hsl(var(--h) 85% 94%); }
.ch-logo.img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ch-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ch-proj { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ch-proj:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 14px 30px -20px rgba(15, 20, 30, .4); }
.ch-proj .ch-logo { grid-row: span 2; }
.ch-pn { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-pm { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-pm em { font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--ink-2); padding: 1px 7px; border-radius: 99px; background: var(--hover); }
.ch-pm em.ask { color: #92400e; background: #fef3c7; }
.ch-pm em.ok { color: #166534; background: #dcfce7; }
.ch-pm em.calm { background: transparent; padding: 1px 0; }
.ch-lnk { border: 0; background: none; padding: 0; font: inherit; font-weight: 650; color: var(--brand); cursor: pointer; text-align: left; }
.ch-lnk:hover { text-decoration: underline; }
.ch-pm em.calm { color: var(--ink-3); font-weight: 500; }
.ch-feed { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 16px; }
.ch-up { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ch-up:first-child { border-top: 0; }
.ch-av { --h: 221; width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(140deg, hsl(var(--h) 70% 58%), hsl(var(--h) 65% 42%)); }
.ch-av.team { background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); }
.ch-ut { flex: 1; min-width: 0; color: var(--ink-2); }
.ch-ut b { color: var(--ink); }
.ch-ut .link { font-weight: 650; }
.ch-ut small { color: var(--ink-3); }
.ch-up time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ch-none { padding: 14px 4px; margin: 0; }
.ch-more { grid-column: 1 / -1; text-align: center; }
html[data-mode="dark"] .ch-need:not(.ch-task) { border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .06); }
html[data-mode="dark"] .ch-tag.q { color: #fcd34d; background: rgba(245, 158, 11, .18); }
html[data-mode="dark"] .ch-calm { color: #86efac; background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .3); }
html[data-mode="dark"] .ch-calm > .i { background: rgba(34, 197, 94, .18); }
html[data-mode="dark"] .ch-logo:not(.img) { color: hsl(var(--h) 85% 80%); background: hsl(var(--h) 45% 50% / .2); }
html[data-mode="dark"] .ch-line b.warn { color: #fbbf24; }
html[data-mode="dark"] .ch-line b.ok { color: #4ade80; }
html[data-mode="dark"] .ch-pm em.ok { color: #86efac; background: rgba(34, 197, 94, .16); }
html[data-mode="dark"] .ch-pm em.ask { color: #fcd34d; background: rgba(245, 158, 11, .16); }
@media (max-width: 640px) {
  .ch { gap: 24px; }
  .ch-report { width: 100%; justify-content: center; }
  .ch-q, .ch-ans { margin-left: 0; }
  .ch-ans { flex-direction: column; }
  .ch-grid { grid-template-columns: 1fr; }
  .ch-sh { flex-wrap: wrap; }
  .ch-find { width: 100%; margin-left: 0; }
  .ch-nh b { white-space: normal; }
}

/* Portal 3: the Overview dashboard, the period (all time · a month · any dates), several services, and fixes. */
.pt-form > * { flex-shrink: 0; }
.pt-me .i { opacity: .7; margin-left: 2px; }
.pt-when { display: flex; flex-direction: column; gap: 8px; }
.pt-dbtn { display: inline-flex; align-items: center; gap: 6px; }
.pt-dates { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: ptIn .2s ease; }
.pt-dates label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.pt-dates input { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; }
.pt-dq { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pt-dq button { border: 1px solid var(--line); background: var(--hover); font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.pt-dq button:hover { border-color: var(--ink-3); color: var(--ink); }
.pt-dates .link { margin-left: auto; }
.pt-seg button .i { flex: none; }
/* Overview */
.pt-ov { display: flex; flex-direction: column; gap: 14px; }
.pt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pt-kpi { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px 15px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pt-kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(15, 20, 30, .4); }
.pt-kic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px; color: var(--ink-2); background: var(--hover); }
.pt-kpi b { font-size: 30px; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pt-kpi > span:not(.pt-kic) { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pt-kpi small { font-size: 11.5px; color: var(--ink-3); }
.pt-kpi.warn .pt-kic { color: #b45309; background: #fef3c7; }
.pt-kpi.warn b { color: #b45309; }
.pt-kpi.brand .pt-kic { color: var(--pt-brand); background: color-mix(in srgb, var(--pt-brand) 12%, transparent); }
.pt-kpi.ok .pt-kic { color: #15803d; background: #dcfce7; }
.pt-kpi.ok b { color: #15803d; }
.pt-ovc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.pt-ovh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pt-ovh h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.pt-ovh > span { font-size: 12.5px; color: var(--ink-3); }
.pt-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-big b { font-size: 36px; letter-spacing: -.035em; line-height: 1; }
.pt-big > span { color: var(--ink-2); font-size: 14px; }
.pt-big em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 4px 10px; border-radius: 99px; background: var(--hover); }
.pt-seg-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--hover); gap: 2px; }
.pt-seg-bar i { display: block; height: 100%; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.s-fixed { background: #16a34a; }
.s-doing { background: var(--pt-brand); }
.s-waiting { background: #f59e0b; }
.s-raised { background: color-mix(in srgb, var(--pt-brand) 35%, #cbd5e1); }
.pt-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.pt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pt-legend i, .pt-lg2 i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.pt-lg2 { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.pt-lg2 i + i, .pt-lg2 i:nth-of-type(2) { margin-left: 8px; }
.pt-ovg { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.pt-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; height: 170px; align-items: end; }
.pt-col { display: flex; flex-direction: column; align-items: stretch; gap: 6px; height: 100%; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; border-radius: 10px; }
.pt-col:hover .pt-bars, .pt-col.on .pt-bars { background: var(--hover); }
.pt-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 0 4px; border-radius: 10px; transition: background .15s; }
.pt-bars i { position: relative; width: 38%; max-width: 22px; min-height: 2px; border-radius: 6px 6px 2px 2px; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.pt-bars em { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 2px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.pt-col small { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.pt-col.on small { color: var(--ink); }
.pt-krow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; align-items: center; gap: 10px; width: 100%; padding: 7px 4px; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer; border-radius: 8px; }
.pt-krow:hover { background: var(--hover); }
.pt-krow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-krow i { height: 8px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.pt-krow i b { display: block; height: 100%; border-radius: 99px; background: var(--pt-brand); }
.pt-krow em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pt-ptab { display: flex; flex-direction: column; }
.pt-pth, .pt-ptr { display: grid; grid-template-columns: minmax(0, 1fr) 70px 60px 60px 150px; align-items: center; gap: 10px; }
.pt-pth { padding: 0 8px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.pt-ptr { padding: 9px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.pt-ptr:last-child { border-bottom: 0; }
.pt-ptr:hover { background: var(--hover); border-radius: 10px; }
.pt-ptn { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pt-ptn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-pbar { display: flex; align-items: center; gap: 8px; }
.pt-pbar i { flex: 1; height: 7px; border-radius: 99px; overflow: hidden; }
.pt-pbar i { background: linear-gradient(90deg, #16a34a var(--w, 0), var(--hover) 0); }
.pt-pbar em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); min-width: 34px; text-align: right; }
.pt-more2 { margin-top: 8px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 650; color: var(--pt-brand); cursor: pointer; }
.pt-rc { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 6px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.pt-rc:first-of-type { border-top: 0; }
.pt-rc:hover { background: var(--hover); border-radius: 10px; }
.pt-rc > span:not(.pt-pav) { min-width: 0; display: flex; flex-direction: column; }
.pt-rc b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-rc small { font-size: 12px; color: var(--ink-3); }
.pt-rc > .i { color: var(--ink-3); transform: rotate(-90deg); }
/* Several services on a link */
.pa-svc { display: inline-flex; align-items: center; gap: 6px; }
.pa-tick { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.pa-svc.on .pa-tick { border-color: rgba(255, 255, 255, .7); color: #fff; }
.pt-svcpick .pt-kind { min-width: 110px; }
html[data-mode="dark"] .pt-kpi.warn .pt-kic { color: #fcd34d; background: rgba(245, 158, 11, .18); }
html[data-mode="dark"] .pt-kpi.warn b { color: #fbbf24; }
html[data-mode="dark"] .pt-kpi.ok .pt-kic { color: #86efac; background: rgba(34, 197, 94, .18); }
html[data-mode="dark"] .pt-kpi.ok b { color: #4ade80; }
@media (max-width: 1100px) { .pt-ovg { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .pt-seg button { padding: 8px 10px; } }
@media (max-width: 640px) {
  .pt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-kpi b { font-size: 26px; }
  .pt-pth, .pt-ptr { grid-template-columns: minmax(0, 1fr) 44px 44px 72px; }
  .pt-pth span:nth-child(4), .pt-ptr > span:nth-child(4) { display: none; }
  .pt-chart { height: 140px; gap: 4px; }
  .pt-big b { font-size: 30px; }
  .pt-big em { margin-left: 0; }
  .pt-dates .link { margin-left: 0; }
}
.pt button.link, .pt-modal button.link, .pt-preview button.link, .ch button.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--pt-brand, var(--brand)); cursor: pointer; }
.pt-rc > span.pt-pav { flex: none; }
.pt-rc > span:not(.pt-pav) { flex: 1; }
.pt-chart { margin-top: 22px; }
/* The team: one portal link's issues at a time (chips), and its context bar */
.pt-portals { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.pt-portals::-webkit-scrollbar { display: none; }
.pt-plab { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.pt-portals button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.pt-portals button:first-of-type { padding-left: 14px; }
.pt-portals button .pt-av { width: 26px; height: 26px; font-size: 11px; box-shadow: none; }
.pt-portals button em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; color: #fff; background: #f59e0b; }
.pt-portals button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.pt-poctx { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--pt-brand) 30%, transparent); background: color-mix(in srgb, var(--pt-brand) 7%, var(--surface)); }
.pt-poctx > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-poctx small { font-size: 12.5px; color: var(--ink-3); }
.pa-nm { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.pa-nm:hover { color: var(--brand); text-decoration: underline; }
/* Team access: who sees what */
.td-who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--hover); }
.td-who small { margin-left: 4px; }
.td-plist .pa-prow { gap: 8px; }
.td-table tr.td-none td { color: var(--ink-3); }
.td-table .pa-name .pt-av { width: 34px; height: 34px; }
.pt-plab.sep { margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.pa-ptools .btn.on { background: var(--ink); color: var(--surface); }
.td-table, .td-who, .pa-table { --pt-brand: var(--brand); }
.pg-retry .i { transform: none; }
/* Logos everywhere: the issues table, the portal link's project list, the Client portals head */
.cis-pjn { display: inline-flex; align-items: center; gap: 8px; }
.pa-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pa-nologo { display: flex; align-items: center; gap: 6px; margin: -6px 0 12px; }
.pa-prow .pt-pav { flex: none; }
/* One portal per client: sign-in links, the client's service switcher, who did what on a card, people on a portal */
.pg-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 650; color: var(--pt-brand); cursor: pointer; }
.pg-link:hover { text-decoration: underline; }
.pt-svcbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.pt-svcbar::-webkit-scrollbar { display: none; }
.pt-svcbar button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.pt-svcbar button small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.pt-svcbar button em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; color: #fff; background: #f59e0b; }
.pt-svcbar button.on { background: var(--pt-brand, var(--ink)); border-color: var(--pt-brand, var(--ink)); color: #fff; }
.pt-svcbar button.on small { color: rgba(255, 255, 255, .8); }
.pt-wholine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 10px; font-size: 12.5px; color: var(--ink-3); }
.pt-wholine > span { display: inline-flex; align-items: center; gap: 5px; }
.pt-wholine b { color: var(--ink-2); font-weight: 650; }
.pt-wholine em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.pt-wholine .ok, .pt-wholine .ok b { color: #059669; }
.pt-wholine .warn, .pt-wholine .warn b { color: #b45309; }
.pa-stabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pa-stabs button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.pa-stabs button em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--hover); color: var(--ink-2); }
.pa-stabs button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.pa-stabs button.on em { background: rgba(255, 255, 255, .2); color: var(--surface); }
.ppl-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ppl-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.ppl-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.ppl-row:hover { background: var(--hover); }
.ppl-row.off { opacity: .55; }
.ppl-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ppl-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppl-none { display: flex; align-items: center; gap: 6px; padding: 8px 2px; }
@media (max-width: 640px) { .ppl-row { flex-wrap: wrap; } .ppl-who { flex-basis: calc(100% - 50px); } }
/* The client's portal as an app: an ink sidebar like the team's (views, services, projects with their service tags, them) */
.pt-pnw { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pt-ptags { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-stg { --c: #6366f1; display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px 0 5px; border-radius: 99px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; line-height: 1;
  color: color-mix(in srgb, var(--c) 82%, #000); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 7%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent); }
.pt-stg svg { width: 10px; height: 10px; }
.pt-stg.s-seo { --c: #0ea5e9; }
.pt-stg.s-social { --c: #d946ef; }
.pt-stg.s-web { --c: #f59e0b; }
html[data-mode="dark"] .pt-stg { color: color-mix(in srgb, var(--c) 55%, #fff); }
.pt-app { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.pt-appmain { min-width: 0; }
.pt-app .pt-body { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.pt-app .pt-hero-in { max-width: 1180px; }
.pt-nav { --ink: #f3f3f0; --ink-2: #b4b8c0; --ink-3: #7b808a; --hover: rgba(255, 255, 255, .06);
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 14px; color: var(--ink);
  background: radial-gradient(140% 45% at 0% 0%, color-mix(in srgb, var(--pt-brand) 30%, transparent), transparent 62%), linear-gradient(180deg, #121419 0%, #0d0f12 100%);
  border-right: 1px solid rgba(255, 255, 255, .04); z-index: 5; }
.pt-nbrand { display: flex; align-items: center; gap: 11px; padding: 2px 6px; }
.pt-nbrand .pt-logo { width: 38px; height: 38px; border-radius: 11px; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--pt-brand) 80%, #fff), color-mix(in srgb, var(--pt-brand) 85%, #000)); border: 0; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--pt-brand) 90%, transparent); }
.pt-nbrand div { min-width: 0; display: flex; flex-direction: column; }
.pt-nbrand b { font-size: 15px; color: #fff; }
.pt-nbrand small { font-size: 12px; color: #8a8f99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-nnew { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pt-brand) 88%, #fff), var(--pt-brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px -12px color-mix(in srgb, var(--pt-brand) 95%, transparent); transition: transform .15s; }
.pt-nnew:hover { transform: translateY(-1px); }
.pt-nscroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; }
.pt-nsec { display: flex; flex-direction: column; gap: 2px; }
.pt-nlab { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #626772; }
.pt-nlab span { letter-spacing: 0; color: #7b808a; }
.pt-ni { position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: #a9adb6; cursor: pointer; text-align: left; }
.pt-ni > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-ni svg { color: #8a8f99; }
.pt-ni:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.pt-ni.on { background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 18px -12px rgba(0, 0, 0, .8); }
.pt-ni.on svg { color: color-mix(in srgb, var(--pt-brand) 50%, #fff); }
.pt-ni.on::before { content: ''; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: color-mix(in srgb, var(--pt-brand) 60%, #fff); box-shadow: 0 0 12px color-mix(in srgb, var(--pt-brand) 80%, transparent); }
.pt-ni em { font-style: normal; font-size: 11px; font-weight: 800; min-width: 22px; text-align: center; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #c9ccd2; }
.pt-ni em.warn { background: #f59e0b; color: #1b1300; box-shadow: 0 0 0 2px #121419; }
.pt-nsi { flex: none !important; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.pt-nsv.s-seo .pt-nsi { background: rgba(14, 165, 233, .18); } .pt-nsv.s-seo .pt-nsi svg { color: #7dd3fc; }
.pt-nsv.s-social .pt-nsi { background: rgba(217, 70, 239, .18); } .pt-nsv.s-social .pt-nsi svg { color: #f0abfc; }
.pt-nsv.s-web .pt-nsi { background: rgba(245, 158, 11, .18); } .pt-nsv.s-web .pt-nsi svg { color: #fcd34d; }
.pt-nav .pt-search { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: #9da1aa; margin-bottom: 6px; }
.pt-nav .pt-search input { color: #fff; }
.pt-nav .pt-search input::placeholder { color: #6e737d; }
.pt-nav .pt-plist { overflow: visible; }
.pt-nav .pt-prow { color: #c9ccd2; padding: 7px 8px; }
.pt-nav .pt-prow:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.pt-nav .pt-prow.on { background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.pt-nav .pt-prow em { background: rgba(255, 255, 255, .08); color: #c9ccd2; }
.pt-nav .pt-prow.on em { background: var(--pt-brand); color: #fff; }
.pt-nav .pt-pav.all, .pt-nav .pt-pav.add { background: rgba(255, 255, 255, .08); color: #d6d8dd; }
.pt-nav .pt-stg { color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent); }
.pt-nav .pt-none { color: #7b808a; }
.pt-nme { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-top: 1px solid rgba(255, 255, 255, .06); border-radius: 0; background: none; font: inherit; color: #fff; cursor: pointer; text-align: left; }
.pt-nme:hover:not([disabled]) { background: rgba(255, 255, 255, .05); border-radius: 12px; }
.pt-nme[disabled] { cursor: default; }
.pt-nme svg { color: #8a8f99; transform: rotate(-90deg); }
.pt-nav-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--pt-brand) 75%, #fff), color-mix(in srgb, var(--pt-brand) 80%, #000)); box-shadow: 0 0 0 2px #15171c; }
.pt-nmw { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-nmw b { font-size: 13.5px; }
.pt-nmw small { font-size: 12px; color: #7b808a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 901px) {
  .pt-app .pt-top .pt-logo, .pt-app .pt-bname, .pt-app .pt-me, .pt-app .pt-hmain .pt-cta, .pt-app .pt-svcbar, .pt-app .pt-seg { display: none; }
}
@media (max-width: 900px) {
  .pt-app { display: block; }
  .pt-nav { display: none; }
}
/* Assets: what the team shares with a client, per project */
.pt-ahero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--pt-brand) 22%, var(--line));
  background: radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--pt-brand) 14%, transparent), transparent 60%), var(--surface); box-shadow: 0 18px 40px -30px color-mix(in srgb, var(--pt-brand) 70%, transparent); }
.pt-ahero h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; letter-spacing: -.01em; }
.pt-ahero h2 svg { color: var(--pt-brand); }
.pt-ahero p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.pt-asearch { height: 56px; border-radius: 16px; padding: 0 18px; gap: 12px; background: var(--bg); border: 1.5px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.pt-asearch:focus-within { border-color: var(--pt-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pt-brand) 14%, transparent); background: var(--surface); }
.pt-asearch input { font-size: 16.5px; font-weight: 550; }
.pt-achips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-achips button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.pt-achips button em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--ink-3); }
.pt-achips button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.pt-achips button.on em { color: inherit; opacity: .7; }
.pt-agrp { margin-top: 18px; }
.pt-agh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 2px 10px; }
.pt-agh b { font-size: 16px; }
.pt-agh > span:last-child { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.pt-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.pt-asset { --c: #6366f1; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 25, 28, .04); transition: transform .15s, box-shadow .15s, border-color .15s; }
.pt-asset:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: 0 16px 32px -22px color-mix(in srgb, var(--c) 70%, transparent); }
.pt-asset.busy { opacity: .6; pointer-events: none; }
.pt-asset.k-report { --c: #2563eb; } .pt-asset.k-sheet { --c: #16a34a; } .pt-asset.k-doc { --c: #0891b2; } .pt-asset.k-design { --c: #db2777; } .pt-asset.k-link { --c: #7c3aed; } .pt-asset.k-file { --c: #64748b; }
.pt-aic { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: linear-gradient(140deg, color-mix(in srgb, var(--c) 18%, transparent), color-mix(in srgb, var(--c) 7%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.pt-abody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pt-abody b { font-size: 14.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pt-abody small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--ink-3); }
.pt-ago { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--c); padding: 6px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 9%, transparent); }
.pt-ago span { display: none; }
.pt-ago { width: 36px; height: 36px; padding: 0; justify-content: center; transition: background .15s, color .15s; }
.pt-asset:hover .pt-ago { background: var(--c); color: #fff; }
/* The team's card on a project's Info tab */
.as-card h3 { display: flex; align-items: center; gap: 8px; }
.as-card h3 svg { color: var(--brand); }
.as-sub { margin: 0 0 8px; }
.as-row { --c: #6366f1; display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); }
.as-row.k-report { --c: #2563eb; } .as-row.k-sheet { --c: #16a34a; } .as-row.k-doc { --c: #0891b2; } .as-row.k-design { --c: #db2777; } .as-row.k-link { --c: #7c3aed; } .as-row.k-file { --c: #64748b; }
.as-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.as-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.as-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-t small { font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.as-none { margin: 4px 0 0; }
#as-src { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--hover); }
#as-src button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
#as-src button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 25, 28, .12); }
.as-drop { display: flex; align-items: center; gap: 10px; padding: 18px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--ink-2); cursor: pointer; font-size: 14px; }
.as-drop:hover { border-color: var(--brand); color: var(--ink); }
@media (max-width: 640px) { .pt-ahero { padding: 16px; } .pt-agrid { grid-template-columns: minmax(0, 1fr); } }
.pt-asearch input:focus, .pt-asearch input:focus-visible { outline: none; box-shadow: none; border: 0; }
#pt-navtop { display: flex; flex-direction: column; gap: 16px; }
.bl-ci > span { display: flex; flex-direction: column; min-width: 0; }
.bl-ci > span small { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; margin-top: 1px; }
.cx-mail-bad { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
html[data-mode="dark"] .cx-mail-bad { color: #fca5a5; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); }
/* Names on issue cards, as @mentions like in chats */
.pt-at { display: inline-flex; align-items: center; font-weight: 650; color: var(--pc); background: color-mix(in srgb, var(--pc) 11%, transparent); padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 24%, transparent); white-space: nowrap; line-height: 1.5; }
.pt-at.me { color: #fff; background: var(--pc); box-shadow: none; }
html[data-mode="dark"] .pt-at:not(.me) { color: color-mix(in srgb, var(--pc) 55%, #fff); }
.pt-wholine .ok .pt-at, .pt-wholine .warn .pt-at { font-weight: 650; }
/* The client sidebar folded to icons */
.pt-nbrand > div { flex: 1; }
.pt-nmini { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: #8a8f99; cursor: pointer; }
.pt-nmini:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pt-app, .pt-nav { transition: grid-template-columns .2s; }
.pt-app.mini { grid-template-columns: 76px minmax(0, 1fr); }
.pt-app.mini .pt-nav { padding: 16px 10px 12px; align-items: stretch; }
.pt-app.mini .pt-nbrand { flex-direction: column; gap: 10px; padding: 0; }
.pt-app.mini .pt-nbrand > div, .pt-app.mini .pt-nlab, .pt-app.mini .pt-nav .pt-search, .pt-app.mini .pt-nmw, .pt-app.mini .pt-nme > svg { display: none; }
.pt-app.mini .pt-nnew { width: 46px; height: 42px; margin: 0 auto; padding: 0; }
.pt-app.mini .pt-nnew span { display: none; }
.pt-app.mini .pt-ni { justify-content: center; padding: 0; height: 42px; }
.pt-app.mini .pt-ni > span:not(.pt-nsi) { display: none; }
.pt-app.mini .pt-ni em { position: absolute; top: 3px; right: 3px; min-width: 18px; padding: 1px 5px; font-size: 10px; }
.pt-app.mini .pt-ni.on::before { left: -10px; }
.pt-app.mini .pt-nsec + .pt-nsec, .pt-app.mini #pt-navtop + .pt-nsec { border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 12px; }
.pt-app.mini .pt-prow { justify-content: center; padding: 6px 0; position: relative; }
.pt-app.mini .pt-prow .pt-pnw, .pt-app.mini .pt-prow .pt-new, .pt-app.mini .pt-prow .pt-dot { display: none; }
.pt-app.mini .pt-prow em { position: absolute; top: 0; right: 4px; min-width: 18px; padding: 0 5px; font-size: 10px; }
.pt-app.mini .pt-nme { justify-content: center; padding: 10px 0; }
.pt-app.mini .pt-prow .pt-pn { display: none; }
.pt-app.mini .pt-body, .pt-app.mini .pt-hero-in { max-width: 1480px; }
.pt-stg.s-all { --c: #64748b; }
.pt-asvc button.s-seo:not(.on) svg { color: #0ea5e9; } .pt-asvc button.s-social:not(.on) svg { color: #d946ef; } .pt-asvc button.s-web:not(.on) svg { color: #f59e0b; }
.chip.cat-add { border: 1.5px dashed var(--line-2); background: none; color: var(--brand); font: inherit; font-weight: 650; cursor: pointer; }
.chip.cat-add:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.input.cat-new { width: 200px; height: 34px; border-radius: 99px; }
/* The team's Assets page (#/assets) uses the portal's asset cards */
.ta-page { --pt-brand: var(--brand, #13795b); max-width: 1200px; }
.ta-page .pt-agh .link { font-size: 12.5px; }
.pa-svc.pa-svcnew { border-style: dashed; color: var(--brand); background: none; }
.pa-svc.pa-svcsug { border-style: dashed; background: none; color: var(--ink-2); }
.pa-svc.pa-svcsug:hover { border-color: var(--brand); color: var(--brand); }
.pt-ahh { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pt-ashare { flex: none; height: 42px; border-radius: 12px; background: var(--pt-brand) !important; border-color: var(--pt-brand) !important; }
.pt-afrom { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; }
html[data-mode="dark"] .pt-afrom { color: #fcd34d; background: rgba(245, 158, 11, .16); }
#as-url { margin-top: 2px; }
/* The SOP (sop.js) */
.sop-page { max-width: 1320px; }
.sop-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sop-h h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; }
.sop-h h1 svg { color: var(--brand); }
.sop-kpis { display: flex; gap: 8px; flex-wrap: wrap; }
.sop-kpis span { padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.sop-kpis span b { font-size: 16px; color: var(--ink); margin-right: 4px; }
.sop-kpis span.warn { border-color: #fcd34d; background: #fffbeb; }
html[data-mode="dark"] .sop-kpis span.warn { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); }
.sop-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: 14px; background: var(--hover); margin-bottom: 16px; width: max-content; max-width: 100%; }
.sop-tabs a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); text-decoration: none; }
.sop-tabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 25, 28, .12); }
.sop-tabs a em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: #f59e0b; color: #fff; }
.sop-lead { margin: 0 0 12px; max-width: 760px; }
.sop-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.sop-sub h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.sop-sub .sop-lead { margin: 0; }
.sop-table tbody tr { cursor: pointer; }
.sop-table tbody tr:hover td { background: var(--hover); }
.sop-table tr.sop-red td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.sop-table td.ok { color: #15803d; font-weight: 650; }
.sop-pn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sop-pn > div { display: flex; flex-direction: column; min-width: 0; }
.sop-pn h2 { margin: 0; font-size: 20px; }
.sop-d { margin-left: 4px; font-size: 11px; font-weight: 700; }
.sop-d.up { color: #15803d; } .sop-d.down { color: #b91c1c; }
.sop-gmini { display: grid; grid-template-columns: minmax(0, 1fr) 60px auto; align-items: center; gap: 6px; font-size: 12px; max-width: 280px; }
.sop-gmini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sop-gmini i, .sop-bar { display: block; height: 6px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.sop-gmini i b, .sop-bar b { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.sop-gmini small.bad, .sop-goal .bad { color: #b91c1c; }
.sop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 40px 20px; }
.sop-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.sop-need { padding: 14px; display: flex; flex-direction: column; gap: 6px; border-left: 3px solid #f59e0b; }
.sop-need.red { border-left-color: #dc2626; }
.sop-nh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sop-nt { font-weight: 650; font-size: 14.5px; }
.sop-nr { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: #92400e; }
.sop-nr span { color: var(--ink-2); }
.sop-na { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.sop-ph { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px; }
.sop-pbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.sop-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.sop-goal { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sop-gh { display: flex; align-items: center; gap: 8px; }
.sop-gh b { flex: 1; }
.sop-items { padding: 4px 14px; }
.sop-cat { padding: 4px 14px; margin-bottom: 8px; }
.sop-cat > summary, .sop-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; }
.sop-cat > summary::-webkit-details-marker { display: none; }
.sop-trow { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sop-trow.off { opacity: .55; }
.sop-tt { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 3px; }
.sop-tt b { font-size: 13.5px; font-weight: 650; }
.sop-tt small { font-size: 12px; }
.sop-note { color: var(--ink-2); background: var(--hover); padding: 4px 8px; border-radius: 8px; }
.sop-proof summary { font-size: 12px; color: var(--brand); cursor: pointer; }
.sop-proof p { margin: 4px 0 0; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; }
.sop-acts { display: inline-flex; gap: 4px; }
.sop-done { margin-top: 8px; }
.sop-done summary { cursor: pointer; font-size: 13px; color: var(--ink-2); padding: 6px 0; }
.sop-book { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 4px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.sop-book:hover b { color: var(--brand); }
.sop-book b { flex: 1; font-size: 13.5px; }
.sop-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5; }
.sop-hist pre { white-space: pre-wrap; font-size: 12px; background: var(--hover); padding: 8px; border-radius: 8px; max-height: 240px; overflow: auto; }
.sop-wl td { font-size: 12.5px; vertical-align: top; }
.sop-wrap { max-width: 260px; white-space: pre-wrap; word-break: break-word; }
.sop-set { padding: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.sop-set h3 { margin: 0; }
.sop-cfl { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 4px 16px; max-height: 420px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.sop-cfr { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 8px; }
.sop-cfr:hover { background: var(--hover); }
.sop-cfr .cv-def { display: flex; align-items: center; gap: 8px; margin: 0; }
.sop-cfr select { width: 150px; }
.sop-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.sop-ft { display: flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .sop-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; } .sop-cfl { grid-template-columns: minmax(0, 1fr); } }
.sop-tabs a { white-space: nowrap; }
.sop-gnext { border-top: 1px solid var(--line); padding-top: 6px; }
.sop-gnext .sop-trow { border-top: 0; padding: 4px 0; }
.sop-goal .sop-done .sop-trow { padding: 6px 0; }
.sop-goals { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
@media (max-width: 760px) {
  .sop-table td[data-l]:not(:first-child) { display: inline-flex; width: auto; align-items: baseline; gap: 4px; margin-right: 14px; }
  .sop-table td[data-l]:not(:first-child)::before { content: attr(data-l); font-size: 11px; font-weight: 650; color: var(--ink-3); }
  .sop-table td[data-l="Goals"] { display: block; width: 100%; }
}

/* SOP → Setup: the steps and the connection check */
.sop-setup { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.sop-steps { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sop-side { position: sticky; top: 12px; }
.sop-step { padding: 16px 18px; border-left: 3px solid var(--line); }
.sop-step.ok { border-left-color: var(--ok); }
.sop-step.bad { border-left-color: var(--danger); }
.sop-step.warn { border-left-color: var(--warn); }
.sop-sth { display: flex; align-items: center; gap: 12px; }
.sop-sth > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sop-sth b { font-size: 15.5px; }
.sop-n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 99px; background: var(--hover); font-weight: 800; font-size: 13px; color: var(--ink-2); }
.sop-step.ok .sop-n { background: var(--ok-soft); color: var(--ok); }
.sop-st { font-style: normal; font-size: 11.5px; font-weight: 750; padding: 3px 9px; border-radius: 99px; background: var(--hover); color: var(--ink-2); }
.sop-st.ok { background: var(--ok-soft); color: var(--ok); } .sop-st.bad { background: var(--danger-soft); color: var(--danger); } .sop-st.warn { background: var(--warn-soft); color: var(--warn); }
.sop-stb { padding-left: 40px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sop-stb ol { margin: 10px 0 4px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.sop-stb p { margin: 8px 0; }
.sop-stb code { font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: var(--hover); color: var(--ink); }
.sop-cmd { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 8px 8px 8px 12px; border-radius: 10px; background: #17191c; }
.sop-cmd code { flex: 1; min-width: 0; background: none !important; color: #e8e6df !important; font-size: 12.5px; padding: 0 !important; white-space: pre-wrap; word-break: break-all; }
.sop-cmd .btn { flex: none; background: rgba(255, 255, 255, .08); color: #e8e6df; border-color: transparent; }
.sop-inl { margin: 8px 0 0; }
.sop-inl > div { display: flex; gap: 6px; max-width: 420px; }
.sop-check { padding: 14px 16px; }
.sop-ckh { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sop-ckh h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.sop-ckh p { margin: 4px 0 0; }
.sop-ck { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.sop-ck > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sop-ck b { font-size: 13.5px; }
.sop-ck small { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.sop-ck small.sop-fix { color: var(--ink-2); display: flex; gap: 4px; align-items: flex-start; }
.sop-ck em { font-style: normal; font-size: 11px; font-weight: 750; color: var(--ink-3); }
.sop-dot { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: var(--hover); color: var(--ink-3); }
.sop-ck.ok .sop-dot { background: var(--ok-soft); color: var(--ok); } .sop-ck.ok em { color: var(--ok); }
.sop-ck.bad .sop-dot { background: var(--danger-soft); color: var(--danger); } .sop-ck.bad em { color: var(--danger); }
.sop-ck.warn .sop-dot { background: var(--warn-soft); color: var(--warn); } .sop-ck.warn em { color: var(--warn); }
.sop-ci { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.sop-ci .ok { color: var(--ok); } .sop-ci .bad { color: var(--danger); }
@media (max-width: 1000px) { .sop-setup { grid-template-columns: 1fr; } .sop-side { position: static; order: -1; } }
@media (max-width: 600px) { .sop-stb { padding-left: 0; } }

/* SOP performance: numbers, their change, trend lines (up = better) */
.sop-chg { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.sop-chg i { font-style: normal; font-weight: 600; opacity: .8; margin-left: 2px; }
.sop-chg.up { color: var(--ok); } .sop-chg.down { color: var(--danger); } .sop-chg.same, .sop-chg.none { color: var(--ink-3); font-weight: 600; }
.sop-spark { display: block; flex: none; overflow: visible; }
.sop-spark polyline { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sop-spark circle { fill: var(--ink-3); stroke: var(--surface); stroke-width: 2; }
.sop-spark circle.up { fill: var(--ok); } .sop-spark circle.down { fill: var(--danger); }
.sop-spark .sop-sp-none { stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 4; }
.sop-perf { margin-bottom: 6px; }
.sop-pg { margin: 0 0 14px; }
.sop-pgh { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px 2px; }
.sop-kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
.sop-kpi { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 13px 14px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.sop-kpi:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.sop-kpi:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sop-kpi.static { cursor: default; } .sop-kpi.static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.sop-kpi.empty .sop-kv { color: var(--ink-3); }
.sop-kl { font-size: 12.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sop-kl i { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 6px; background: var(--hover); color: var(--ink-3); vertical-align: 1px; }
.sop-kv { font-size: 24px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sop-kf { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 30px; }
.sop-tot { margin-bottom: 18px; }
.sop-month { margin: 4px 0 10px; }
.sop-month > summary { cursor: pointer; font-weight: 650; font-size: 13.5px; color: var(--ink-2); padding: 6px 2px 10px; }
.sop-perfempty { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin-bottom: 14px; }
.sop-perfempty p { margin: 4px 0 0; }
.sop-cstrip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; width: 100%; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
.sop-lk { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 3px 9px; border-radius: 8px; background: var(--hover); }
.sop-lk:hover { color: var(--ink); }
.sop-cell, .sop-sc { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sop-sc span:first-child { font-weight: 650; font-variant-numeric: tabular-nums; }
.sop-score td { vertical-align: middle; }
.sop-vd { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 150px; }
.sop-kid { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--hover); color: var(--ink-3); font-weight: 600; }
.sop-rg { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 8px; }
.sop-rg > summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 2px 0; }
.sop-rg .sop-res { margin-top: 10px; }
.sop-rg .field small { font-size: 11px; line-height: 1.3; }
.sop-kbig { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.sop-kbig b { font-size: 34px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sop-kbig .sop-chg { font-size: 14px; }
.sop-lc { position: relative; margin: 4px 0 8px; }
.sop-lc svg { display: block; width: 100%; height: auto; }
.sop-lc-g { stroke: var(--line); stroke-width: 1; }
.sop-lc-t { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
.sop-lc-l { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sop-lc-p { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.sop-lc-x { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.sop-lc-h { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.sop-lc-hit { fill: transparent; cursor: crosshair; }
.sop-lc-tip { position: absolute; pointer-events: none; display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.sop-lc-tip small { opacity: .75; font-size: 11px; }
@media (max-width: 600px) { .sop-kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sop-kv { font-size: 20px; } .sop-kpi .sop-spark { width: 64px; } }
.sop-chat { padding: 16px 18px; margin-bottom: 14px; }
.sop-chat h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; }
.sop-says { margin: 6px 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.sop-kl { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.sop-kv i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0; padding: 1px 5px; border-radius: 6px; background: var(--hover); color: var(--ink-3); vertical-align: 5px; margin-left: 6px; }
.sop-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sop-tabs::-webkit-scrollbar { display: none; }
.sop-tabs a { flex: none; }
.sop-score td:first-child, .sop-score td:first-child b { white-space: nowrap; }
.sop-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sop-wt { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sop-wt b { font-size: 22px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sop-wt span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sop-wt small { font-size: 11.5px; color: var(--ink-3); }
.sop-wt.warn { border-color: #fcd34d; background: var(--warn-soft); } .sop-wt.bad { border-color: #fca5a5; background: var(--danger-soft); }

/* SOP channels */
.sop-chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 8px; }
.sop-chc { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.sop-chc:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.sop-chc:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sop-chh { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.sop-chh b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sop-due { font-style: normal; font-size: 10.5px; font-weight: 750; padding: 2px 7px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); }
.sop-chs { display: flex; align-items: baseline; gap: 6px; }
.sop-chs b { font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.sop-chs b.ok { color: var(--ok); } .sop-chs b.warn { color: var(--warn); } .sop-chs b.bad { color: var(--danger); }
.sop-chs small { font-size: 11.5px; color: var(--ink-3); }
.sop-chs.big b { font-size: 34px; }
.sop-chn { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-2); }
.sop-chn .warn { color: var(--warn); } .sop-chn .ok { color: var(--ok); }
.sop-chk { display: flex; flex-direction: column; gap: 1px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.sop-chk small { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.sop-chk span { display: flex; align-items: center; gap: 6px; }
.sop-chtop { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.sop-chsec { margin: 16px 0 0; }
.sop-chsec h4 { margin: 0 0 8px; font-size: 14px; }
.sop-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.sop-ah { display: inline-block; min-width: 42px; text-align: center; padding: 2px 8px; border-radius: 8px; font-weight: 700; font-size: 12.5px; background: var(--hover); color: var(--ink-3); }
.sop-ah.ok { background: var(--ok-soft); color: var(--ok); } .sop-ah.warn { background: var(--warn-soft); color: var(--warn); } .sop-ah.bad { background: var(--danger-soft); color: var(--danger); }
.sop-aud td small.warn { color: var(--warn); }
.sop-aud td, .sop-aud td:first-child b { white-space: nowrap; }
.sop-bprog { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.sop-bprog .sop-bar { flex: 1; }
.sop-bprog small { font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sop-blogs tbody tr { cursor: pointer; }
.sop-blogs tbody tr:hover td { background: var(--hover); }

/* ---------- Dashboard: performance board (sop.js A.perfBoard, PerfBoard.js) ---------- */
.pb-page { max-width: 1520px; }
.pb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 4px 0 20px; }
.pb-head h1 { font-size: 32px; letter-spacing: -.025em; margin: 2px 0 4px; }
.pb-head p { margin: 0; font-size: 13.5px; }
.pb-sum { display: flex; gap: 10px; }
.pb-s { min-width: 100px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pb-s:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.pb-s b { font-size: 28px; line-height: 1.1; font-weight: 760; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pb-s span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pb-s.up b { color: var(--ok); } .pb-s.down b { color: var(--danger); } .pb-s.warn b { color: var(--warn); } .pb-s.flat b { color: var(--ink-2); }
.pb-pers { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pb-perg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--ink); gap: 2px; }
.pb-per { border: 0; background: transparent; color: var(--surface); opacity: .72; font: inherit; font-size: 13px; font-weight: 650; padding: 7px 16px; border-radius: 9px; cursor: pointer; }
.pb-per.on { background: var(--surface); color: var(--ink); opacity: 1; }
.pb-dates { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-dates .input { width: auto; }
.pb-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pb-segs { display: inline-flex; gap: 3px; padding: 4px; border-radius: 12px; background: var(--hover); }
.pb-seg { border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 6px 11px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pb-seg em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pb-seg.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pb-seg.down.on em { color: var(--danger); } .pb-seg.up.on em { color: var(--ok); } .pb-seg.warn.on em { color: var(--warn); }
.pb-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pb-sel .input { width: auto; min-width: 110px; }
.pb-q { max-width: 200px; margin-left: auto; }
.pb-tasks { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pb-card { padding: 0; overflow-x: auto; border-radius: 20px; }
.pb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pb-table > thead th { text-align: left; padding: 14px 8px 11px; border-bottom: 1px solid var(--line); vertical-align: bottom; white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1; }
.pb-table > thead th span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 720; color: var(--ink); }
.pb-sortable { cursor: pointer; user-select: none; }
.pb-sortable:hover span { color: var(--brand); }
.pb-sortable span { position: relative; display: inline-flex !important; }
.pb-arr { position: absolute; left: 100%; top: 0; padding-left: 3px; font-style: normal; font-size: 11px; color: var(--ink-3); opacity: 0; transition: opacity .15s; }
.pb-sortable:hover .pb-arr { opacity: .9; }
.pb-sortable.on .pb-arr { opacity: 1; color: var(--brand); font-weight: 800; }
.pb-sortable.on span { color: var(--brand); }
.pb-table > thead th small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.pb-table > tbody > tr > td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pb-table > thead th:first-child, .pb-prow > td:first-child { padding-left: 20px; }
.pb-prow { cursor: pointer; transition: background .15s; }
.pb-prow:hover, .pb-prow:focus-visible { background: var(--hover); outline: none; }
.pb-prow.open { background: var(--hover); }
.pb-prow.open > td { border-bottom-color: transparent; }
.pb-stc > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pb-table > thead th:last-child, .pb-stc { padding-right: 16px !important; }
.pb-chev { color: var(--ink-3); display: inline-flex; }
.pb-chev svg { transition: transform .2s var(--soft, ease); }
.pb-prow.open .pb-chev svg { transform: rotate(180deg); }
.pb-nm { display: flex; align-items: center; gap: 12px; min-width: 186px; }
.pb-nm > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pb-name b { font-size: 14.5px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.pb-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.pb-chip { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 6px; background: var(--hover); color: var(--ink-2); }
.pb-chip.kw { background: var(--ink); color: var(--surface); }
.pb-chip.aeo { background: var(--blue-soft); color: var(--blue); } .pb-chip.geo { background: var(--warn-soft); color: var(--warn); } .pb-chip.gmb { background: var(--ok-soft); color: var(--ok); }
.pb-nofill { color: var(--warn); font-weight: 650; font-size: 11.5px; }
.pb-c { min-width: 90px; }
.pb-c .sop-spark { width: 78px; margin-top: 3px; }
.pb-v { display: flex; align-items: baseline; gap: 7px; }
.pb-v b { font-size: 20px; font-weight: 740; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.pb-c.empty .pb-v b { color: var(--ink-3); font-weight: 500; }
.pb-sub { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; }
.pb-sub.ok { color: var(--ok); } .pb-sub.warn { color: var(--warn); font-weight: 650; }
.sp-g { color: var(--ok); } .sp-a { color: var(--warn); } .sp-r { color: var(--danger); }
.pb-chg { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pb-chg.up { color: var(--ok); } .pb-chg.down { color: var(--danger); } .pb-chg.same, .pb-chg.none { color: var(--ink-3); font-weight: 600; }
.pb-st { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; background: var(--hover); color: var(--ink-2); }
.pb-st.up { background: var(--ok-soft); color: var(--ok); } .pb-st.down { background: var(--danger-soft); color: var(--danger); } .pb-st.none { color: var(--ink-3); font-weight: 600; }
.pb-foot { margin-top: 14px; line-height: 1.6; }
/* The opened project */
.pb-x > td { padding: 0 !important; background: var(--hover); border-bottom: 1px solid var(--line); }
.pb-xin { margin: 0 14px 14px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: pbIn .22s var(--soft, ease) both; cursor: default; }
@keyframes pbIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pb-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pb-tab { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, background .15s; }
.pb-tab span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.pb-tab b { font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; }
.pb-tab:hover { border-color: var(--line-2); }
.pb-tab.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pb-xgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.pb-chart { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pb-chart .sop-lc svg { max-height: 210px; }
.pb-ch-h b { font-size: 13.5px; }
.pb-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-subs span { display: flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 10px; background: var(--hover); font-size: 12px; }
.pb-subs small { color: var(--ink-3); } .pb-subs b { font-variant-numeric: tabular-nums; }
.pb-subs i { font-style: normal; font-size: 11px; font-weight: 700; } .pb-subs i.up { color: var(--ok); } .pb-subs i.down { color: var(--danger); }
.pb-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pb-box { border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; }
.pb-bh { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pb-vd { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--hover); color: var(--ink-2); white-space: nowrap; }
.pb-vd.match { background: var(--ok-soft); color: var(--ok); } .pb-vd.differs { background: var(--warn-soft); color: var(--warn); } .pb-vd.none { color: var(--ink-3); }
.pb-sp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pb-sp > div { background: var(--hover); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.pb-sp small { font-size: 11px; color: var(--ink-3); font-weight: 600; } .pb-sp b { font-size: 24px; font-weight: 760; font-variant-numeric: tabular-nums; } .pb-sp em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.pb-kv { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.pb-kv b { color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 3px; }
.pb-kv.big b { font-size: 17px; }
.pb-src { display: flex; gap: 6px; flex-wrap: wrap; }
.pb-src span { font-size: 11.5px; padding: 3px 8px; border-radius: 8px; background: var(--hover); color: var(--ink-2); }
.pb-kw { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pb-kwh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pb-kwh b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pb-leg { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); }
.pb-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.pb-kwt { max-height: 300px; overflow: auto; }
.pb-kwt table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pb-kwt th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: 11px; font-weight: 650; color: var(--ink-3); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pb-kwt td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pb-kwt tr:last-child td { border-bottom: 0; }
.pb-kwt th:first-child, .pb-kwt td:first-child { padding-left: 14px; }
.pb-kwn { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.pb-hi { font-style: normal; color: var(--warn); margin-left: 5px; }
.pb-pos { display: inline-block; min-width: 30px; text-align: center; padding: 3px 7px; border-radius: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.pb-wk { text-align: center !important; font-weight: 600 !important; }
.pb-gc { text-align: center; padding: 4px 3px !important; }
.pb-gc i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.b1 { background: #0f7a55; color: #fff; } .b2 { background: #4cbb8a; color: #fff; } .b3 { background: #cfeedd; color: #155c40; } .b4 { background: #fbe7c4; color: #8a5a00; } .b5 { background: #f8d3d0; color: #9c2a22; } .b0 { background: var(--hover); color: var(--ink-3); }
.pb-kwp { color: var(--ink-3); max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.pb-xf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pb-edit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--hover); font-size: 12.5px; }
.pb-edit label { display: inline-flex; align-items: center; gap: 6px; }
.pb-svcs { display: inline-flex; gap: 12px; }
@media (max-width: 1200px) { .pb-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pb-xgrid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .pb-q { margin-left: 0; max-width: none; flex: 1 1 100%; }
  .pb-segs { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .pb-sum { width: 100%; } .pb-s { flex: 1; min-width: 0; padding: 10px 12px; } .pb-s b { font-size: 22px; }
  .pb-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .pb-table > thead { display: none; }
  .pb-table, .pb-table > tbody { display: block; }
  .pb-prow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
  .pb-prow.open { margin-bottom: 0; border-radius: 16px 16px 0 0; }
  .pb-prow > td { border: 0 !important; border-top: 1px solid var(--line) !important; padding: 10px 14px !important; }
  .pb-prow > td.pb-name { grid-column: 1 / -1; border-top: 0 !important; min-width: 0; }
  .pb-prow > td.pb-stc { grid-column: 1 / -1; }
  .pb-c { min-width: 0; }
  .pb-c::before { display: block; font-size: 11px; font-weight: 650; color: var(--ink-3); margin-bottom: 2px; }
  .pb-prow > td:nth-child(2)::before { content: 'Keyword ranking'; } .pb-prow > td:nth-child(3)::before { content: 'Traffic'; }
  .pb-prow > td:nth-child(4)::before { content: 'Bounce rate'; } .pb-prow > td:nth-child(5)::before { content: 'Website speed'; }
  .pb-prow > td:nth-child(6)::before { content: 'Leads'; } .pb-prow > td:nth-child(7)::before { content: 'GMB calls'; }
  .pb-prow > td.pb-c:nth-child(odd) { border-left: 1px solid var(--line) !important; }
  .pb-x { display: block; margin-bottom: 10px; }
  .pb-x > td { display: block; background: transparent; border: 0; }
  .pb-xin { margin: 0; border-radius: 0 0 16px 16px; border-top: 0; padding: 12px; }
  .pb-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-leg { margin-left: 0; }
}

.pb-sl { display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.pb-sl .sop-spark { margin-top: 0; }
.pb-tag { font-style: normal; font-size: 9.5px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; padding: 1px 5px; border-radius: 5px; background: var(--hover); color: var(--ink-3); white-space: nowrap; }
.pb-tag.auto { background: var(--ok-soft); color: var(--ok); }
.pb-cnt-n { font-style: normal; font-size: 11px; color: var(--ink-3); margin-left: 4px; }
.pb-cns { display: flex; flex-direction: column; gap: 5px; }
.pb-cn { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; flex-wrap: wrap; }
.pb-cn small { color: var(--ink-3); font-size: 11.5px; }
.pb-cn.ok { color: var(--ok); } .pb-cn.ok b { color: var(--ink); } .pb-cn.no { color: var(--ink-3); }
.pb-kwnote { margin: 8px 14px 10px; }
.modal.wide.pb-conn { width: min(1000px, calc(100vw - 32px)); max-width: none; }
.pb-cnt { max-height: 60vh; overflow: auto; }
.pb-cl { font-size: 12.5px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.pb-cl.ok { color: var(--ok); font-weight: 650; } .pb-cl.ok span { color: var(--ink); font-weight: 500; }
.pb-cl.warn { color: var(--warn); font-weight: 650; } .pb-cl.no { color: var(--ink-3); }
.pb-cl em { font-style: normal; color: var(--warn); font-weight: 800; margin-left: 4px; }

/* SOP screenshots */
.sop-shotlink { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--hover); color: var(--ink); border-radius: 7px; padding: 1px 7px; font: inherit; font-size: 12px; cursor: pointer; }
.sop-shotbtn { white-space: nowrap; }
.modal.wide.sop-shotm { width: min(1000px, calc(100vw - 32px)); max-width: none; }
.sop-shots { display: grid; gap: 14px; }
.sop-shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sop-shotp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sop-shoth { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sop-shotbox { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 64vh; background: var(--hover); }
.sop-shotbox img { display: block; width: 100%; height: auto; }
.sop-shotbox.empty { display: flex; align-items: center; justify-content: center; min-height: 160px; padding: 16px; text-align: center; }
@media (max-width: 700px) { .sop-shots.two { grid-template-columns: 1fr; } }

/* SOP: Changes & proof */
.sop-cfbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sop-cfbar .input { width: auto; }
.sop-cfq { min-width: 180px; flex: 1; max-width: 280px; }
.sop-ccgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.sop-ccgrid.one { grid-template-columns: 1fr; }
.sop-cc { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 16px; }
.sop-cc-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border: 0; padding: 0; background: var(--line); cursor: zoom-in; font: inherit; }
.sop-cc-img { position: relative; height: 150px; background: var(--hover) center top / cover no-repeat; }
.sop-cc-img span { position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.sop-cc-img em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; color: var(--ink-3); padding: 0 12px; text-align: center; }
.sop-cc-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sop-cc-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sop-cc-h small { margin-right: auto; }
.sop-cc-url { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--brand); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sop-cc-url:hover { text-decoration: underline; }
.sop-cc-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sop-cc-ba small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.sop-cc-ba p { margin: 2px 0 0; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.sop-cc-for { display: flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 11.5px; }
.sop-ccmore { margin-top: 12px; }
.sop-chgchip { white-space: nowrap; }
@media (max-width: 700px) { .sop-ccgrid { grid-template-columns: 1fr; } }

/* Website speed: mobile and desktop, with each number's report link and last check */
.pb-spt { display: flex; flex-direction: column; gap: 6px; }
.pb-spr { display: grid; grid-template-columns: 74px 1fr 1fr; gap: 6px; align-items: stretch; }
.pb-spr.head small { font-size: 11px; color: var(--ink-3); font-weight: 600; line-height: 1.25; }
.pb-spr.head em { display: block; font-style: normal; font-weight: 500; font-size: 10px; }
.pb-spl { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.pb-spc { background: var(--hover); border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pb-spc b { font-size: 21px; font-weight: 760; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pb-ck { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.pb-ck.old { color: var(--warn); } .pb-ck.none { color: var(--ink-3); opacity: .7; }
.pb-splink { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--brand); text-decoration: none; width: fit-content; }
.pb-splink:hover { text-decoration: underline; }
.pb-subrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pb-subrow .pb-sub { margin: 0; }

/* Activity: the audit trail */
.act-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.act-bar .act-q { flex: 1 1 200px; min-width: 160px; }
.act-n { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 9px; background: var(--hover); margin-left: 2px; } .act-n.warn { background: var(--warn-soft); color: var(--warn); }
.act-kinds { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.act-kc { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.act-kc em { font-style: normal; color: var(--ink-3); font-weight: 600; } .act-kc.on { background: #17181c; color: #fff; border-color: #17181c; } .act-kc.on em { color: inherit; opacity: .7; }
.act-day { margin: 18px 0 8px; font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.act-group { display: flex; flex-direction: column; gap: 8px; }
.act-sess { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; padding: 6px 2px 0; color: var(--ink-2); }
.act-sess b { font-weight: 700; } .act-sess span { font-weight: 600; }
.act-c { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.act-c:hover { border-color: var(--ink-3); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.act-c.noproof { border-left: 3px solid var(--warn); }
.act-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); }
.act-c.k-change .act-ic { background: #e8f1ff; color: #2b5fb8; } .act-c.k-task .act-ic { background: #e7f6ee; color: #1d7a4c; } .act-c.k-check .act-ic { background: #f1ecff; color: #6a47c2; }
.act-c.k-issue .act-ic { background: var(--warn-soft); color: var(--warn); } .act-c.k-numbers .act-ic { background: #e6f5f6; color: #16727a; } .act-c.k-lead .act-ic { background: #fdeef3; color: #b23a67; }
.act-cb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.act-ch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.act-kl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; }
.act-t { font-size: 14px; font-weight: 680; min-width: 0; overflow-wrap: anywhere; }
.act-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-3); align-items: center; }
.act-meta span { display: inline-flex; align-items: center; gap: 4px; } .act-pj { color: var(--ink-2); font-weight: 650; }
.act-url { display: inline-flex; align-items: center; gap: 3px; color: var(--brand); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.act-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act-ba > div { background: var(--hover); border-radius: 9px; padding: 6px 9px; min-width: 0; }
.act-ba small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.act-ba p, .act-proof { margin: 2px 0 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.act-m, .act-sent, .act-why { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.act-sent { color: #16727a; } .act-why.bad { color: var(--danger); }
.act-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.act-nums span { background: var(--hover); border-radius: 9px; padding: 5px 9px; display: flex; flex-direction: column; min-width: 90px; }
.act-nums small { font-size: 11px; color: var(--ink-3); font-weight: 600; } .act-nums b { font-size: 16px; font-variant-numeric: tabular-nums; } .act-nums em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.act-shots { display: flex; gap: 6px; border: 0; padding: 0; background: none; cursor: pointer; width: fit-content; }
.act-shots .sop-cc-img { width: 96px; height: 64px; }
.act-more { margin: 12px auto 0; display: block; } .act-tot { text-align: center; }
.act-detail .act-dr { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.act-detail .act-dr small { color: var(--ink-3); font-weight: 650; } .act-detail .act-dr > div { overflow-wrap: anywhere; white-space: pre-wrap; }
.act-detail .sop-shots { margin-top: 12px; }
@media (max-width: 640px) { .act-ba { grid-template-columns: 1fr; } .act-detail .act-dr { grid-template-columns: 1fr; gap: 2px; } .act-c { padding: 10px; gap: 9px; } }
/* Change markers on the Dashboard charts */
.sop-lc-m line { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; } .sop-lc-m rect { fill: var(--ink-3); opacity: .6; }
.sop-lc-m.hot line { stroke: var(--brand); opacity: .9; } .sop-lc-m.hot rect { fill: var(--brand); opacity: 1; }
.sop-lc-leg { display: flex; align-items: center; gap: 6px; } .sop-lc-leg i { width: 8px; height: 8px; background: var(--brand); transform: rotate(45deg); border-radius: 1.5px; display: inline-block; }
.sop-lc-tm { display: block; margin-top: 3px; color: var(--brand); font-weight: 600; }

/* Lead emails health (Leads page and Dashboard) */
.ld-health { padding: 12px 16px; margin-bottom: 12px; }
.ld-health summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.ld-health summary::-webkit-details-marker { display: none; }
.ld-health.ok summary > svg { color: var(--ok, #1d7a4c); } .ld-health.warn summary > svg { color: var(--warn); } .ld-health.bad summary > svg { color: var(--danger); }
.ld-health.bad { border-color: var(--danger); } .ld-health.warn { border-color: var(--warn); }
.ld-hk { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; font-size: 12px; color: var(--ink-3); } .ld-hk b { color: var(--ink); font-weight: 650; }
.ld-hl { list-style: none; padding: 0; margin: 10px 0 6px; display: grid; gap: 5px; }
.ld-hl li { display: flex; align-items: center; gap: 7px; font-size: 13px; } .ld-hl li.ok svg { color: var(--ok, #1d7a4c); } .ld-hl li.warn svg { color: var(--warn); } .ld-hl li.bad { color: var(--danger); font-weight: 600; }
.pb-lh.ok { color: var(--ok, #1d7a4c); } .pb-lh.warn { color: var(--warn); } .pb-lh.bad { color: var(--danger); font-weight: 650; }
.pb-lhline { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 2px 0 6px; text-decoration: none; color: var(--ink-2); }
.pb-lhline.bad { color: var(--danger); font-weight: 650; } .pb-lhline.warn { color: var(--warn); } .pb-lhline.ok svg { color: var(--ok, #1d7a4c); }

/* Website backups (backups.js) */
.bk-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 18px; }
.bk-sum .card { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.bk-sum small { color: var(--ink-3); font-weight: 600; font-size: 12px; } .bk-sum b { font-size: 24px; font-weight: 760; font-variant-numeric: tabular-nums; }
.bk-sum .card.bad b { color: var(--danger); }
.bk-h { display: flex; align-items: center; gap: 7px; font-size: 15px; margin: 18px 0 8px; }
.bk-clients > summary { list-style: none; cursor: pointer; } .bk-clients > summary::-webkit-details-marker { display: none; }
.bk-cls, .bk-list { padding: 4px 0; }
.bk-cl, .bk-row { display: grid; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bk-cl:last-child, .bk-row:last-child { border-bottom: 0; }
.bk-cl { grid-template-columns: minmax(150px, 220px) 120px minmax(0, 1fr) auto; }
.bk-row { grid-template-columns: 190px minmax(0, 1fr) 110px 70px 190px; }
.bk-row > .ipill, .bk-cl > .ipill { justify-self: start; }
.bk-row.gone { opacity: .55; }
.bk-cn, .bk-rd, .bk-rp { display: flex; flex-direction: column; min-width: 0; } .bk-cn small, .bk-rd small, .bk-rp small { overflow-wrap: anywhere; }
.bk-cw { font-size: 12.5px; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.bk-ca, .bk-ra { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.bk-rs { font-size: 12.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.bk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.bk-rss { display: flex; flex-direction: column; gap: 8px; }
.bk-rs-row { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.bk-rs-row p { margin: 3px 0 0; font-size: 13px; } .bk-rs-row div { display: flex; flex-direction: column; }
.bk-rs-row.running svg { color: var(--warn); } .bk-rs-row.done svg { color: var(--ok); } .bk-rs-row.failed svg { color: var(--danger); } .bk-rs-row.failed { border-color: var(--danger); }
.bk-opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.bk-opt span { display: flex; flex-direction: column; gap: 2px; } .bk-opt input { margin-top: 3px; }
.bk-steps { background: var(--hover); border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: 13px; }
.bk-steps ol { margin: 6px 0; padding-left: 20px; display: grid; gap: 3px; }
.bk-offs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; font-size: 13px; margin-top: 8px; }
@media (max-width: 760px) {
  .bk-sum { grid-template-columns: 1fr 1fr; }
  .bk-cl, .bk-row { grid-template-columns: 1fr auto; }
  .bk-cw, .bk-rp { grid-column: 1 / -1; } .bk-ca, .bk-ra { grid-column: 1 / -1; justify-content: flex-start; } .bk-rs { text-align: left; }
}

/* Leads (leads.js): every client's leads in one place */
.lh-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 6px 0 16px; }
.lh-stats .card { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.lh-stats small { color: var(--ink-3); font-weight: 600; font-size: 12px; } .lh-stats b { font-size: 24px; font-weight: 760; font-variant-numeric: tabular-nums; }
.lh-stats .card.bad b { color: var(--danger); }
.lh-d { font-style: normal; font-size: 12px; font-weight: 650; } .lh-d.up { color: var(--ok); } .lh-d.down { color: var(--danger); }
.lh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.lh-tabs button { border: 0; background: none; padding: 9px 12px; font-weight: 650; font-size: 13.5px; color: var(--ink-3); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.lh-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.lh-tabs em { font-style: normal; font-size: 11.5px; background: var(--hover); border-radius: 9px; padding: 0 6px; margin-left: 3px; } .lh-tabs em.bad { background: var(--danger-soft); color: var(--danger); }
.lh-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.lh-q { flex: 1 1 220px; min-width: 180px; }
.lh-list { padding: 4px 0; }
.lh-row { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.lh-row:last-child { border-bottom: 0; } .lh-row:hover { background: var(--hover); }
.lh-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); font-weight: 700; color: var(--ink-2); }
.lh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lh-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .lh-top b { font-size: 14px; }
.lh-pj { font-size: 11.5px; font-weight: 650; color: var(--ink-2); background: var(--hover); border-radius: 6px; padding: 1px 7px; }
.lh-msg { margin: 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lh-why { color: var(--warn); display: flex; gap: 4px; align-items: center; font-size: 12px; }
.lh-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.lh-more { margin: 12px auto 0; display: block; } .lh-tot { text-align: center; }
.lh-hl { padding: 4px 0; }
.lh-hr { display: grid; grid-template-columns: minmax(150px, 230px) 110px minmax(0, 1fr) 170px auto; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.lh-hr:last-child { border-bottom: 0; } .lh-hr > .ipill { justify-self: start; }
.lh-hn { display: flex; flex-direction: column; min-width: 0; } .lh-hn small { overflow-wrap: anywhere; }
.lh-hc { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; min-width: 0; } .lh-hc .bad { color: var(--danger); font-weight: 600; } .lh-hc .warn { color: var(--warn); }
.lh-hk { font-size: 11.5px; line-height: 1.5; }
.lh-acts { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 6px; }
.lh-detail .act-dr { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.lh-detail .act-dr small { color: var(--ink-3); font-weight: 650; } .lh-detail .act-dr > div { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 760px) {
  .lh-stats { grid-template-columns: 1fr 1fr; }
  .lh-hr { grid-template-columns: 1fr auto; } .lh-hc, .lh-hk { grid-column: 1 / -1; }
  .lh-detail .act-dr { grid-template-columns: 1fr; gap: 2px; }
}
/* Backups: logos, live progress */
.bk-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bk-lives { display: grid; gap: 10px; }
.bk-live { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bk-lh { display: flex; align-items: center; gap: 12px; }
.bk-lt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .bk-lt b { font-size: 16px; }
.bk-lp { display: flex; flex-direction: column; align-items: flex-end; } .bk-lp b { font-size: 26px; font-weight: 780; font-variant-numeric: tabular-nums; line-height: 1; }
.bk-bar2 { height: 8px; border-radius: 6px; background: var(--hover); overflow: hidden; }
.bk-bar2 span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #3fb68b); background-size: 200% 100%; animation: bkflow 2.2s linear infinite; transition: width .6s ease; }
@keyframes bkflow { from { background-position: 0 0; } to { background-position: -200% 0; } }
.bk-stgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bk-stg { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--hover); opacity: .6; }
.bk-stg.on { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--brand); background: var(--card); } .bk-stg.done { opacity: 1; }
.bk-stg i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-3); display: grid; place-items: center; margin-top: 1px; }
.bk-stg.on i { border-color: var(--brand); animation: bkpulse 1.4s ease-in-out infinite; } .bk-stg.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
@keyframes bkpulse { 50% { box-shadow: 0 0 0 4px rgba(19, 121, 91, .18); } }
.bk-stg div { display: flex; flex-direction: column; min-width: 0; } .bk-stg b { font-size: 12.5px; } .bk-stg small { font-size: 11.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.bk-warn { margin: 0; font-size: 12.5px; color: var(--warn); display: flex; gap: 6px; align-items: center; }
.bk-cf { margin: 4px 0 10px; }
@media (max-width: 760px) { .bk-stgs { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .bk-bar2 span, .bk-stg.on i { animation: none; } }

/* Social content (social.js): cards per platform, real-site previews, the checklist */
.sc-top { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.sc-pick { display: flex; align-items: center; gap: 10px; } .sc-pick select { max-width: 360px; font-weight: 650; }
.sc-allic { width: 40px; height: 40px; border-radius: 10px; background: var(--hover); display: grid; place-items: center; }
.sc-profiles { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-prof { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; max-width: 100%; }
.sc-prof svg { width: 20px; height: 20px; flex: none; } .sc-prof span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-prof.none { color: var(--ink-3); border-style: dashed; } .sc-prof.none svg { filter: grayscale(1); opacity: .5; }
.sc-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sc-pfs { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-pf { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px 5px 7px; font-weight: 650; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.sc-pf svg { width: 18px; height: 18px; } .sc-pf em { font-style: normal; color: var(--ink-3); } .sc-pf.on { background: #17181c; color: #fff; border-color: #17181c; } .sc-pf.on svg { border-radius: 6px; box-shadow: 0 0 0 1.5px #fff; } .sc-pf.on em { color: inherit; opacity: .7; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.sc-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.sc-card::before { content: ''; height: 4px; background: var(--pf); }
.sc-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.sc-ch { display: flex; align-items: center; gap: 7px; padding: 10px 14px 4px; } .sc-ch svg { width: 22px; height: 22px; flex: none; }
.sc-ch b { font-size: 13px; } .sc-ch small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; } .sc-ch .ipill { margin-left: auto; flex: none; }
.sc-thumb { margin: 8px 14px 0; border-radius: 10px; overflow: hidden; background: var(--hover); aspect-ratio: 16 / 9; } .sc-thumb.tall { aspect-ratio: 2 / 3; max-height: 260px; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-cb { padding: 8px 14px 4px; } .sc-cb h3 { margin: 0 0 4px; font-size: 15.5px; line-height: 1.3; } .sc-cb p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.p-medium .sc-cb h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; } .p-quora .sc-cb h3 { font-weight: 700; }
.sc-cf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-top: auto; font-size: 12px; }
.sc-cl { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; color: var(--ink-2); }
.sc-ck { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; } .sc-ck.ok { color: var(--ok); } .sc-ck.bad { color: var(--danger); }
.sc-sc { font-weight: 700; color: var(--ink-2); } .sc-cf small { margin-left: auto; }
.sc-post { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--pf); text-decoration: none; }
.sc-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 34px; }
/* the modal */
.modal.sc-modal { max-width: min(1240px, 96vw); width: 96vw; }
.sc-mh { border-top: 4px solid var(--pf); } .sc-mt { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; } .sc-mt svg { width: 30px; height: 30px; flex: none; } .sc-mt h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.sc-mb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.sc-copybar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sc-frame { background: #fff; color: #222; border-radius: 14px; border: 1px solid var(--line); padding: 26px; max-height: 66vh; overflow: auto; }
.pv-body { font-size: 15.5px; line-height: 1.65; } .pv-body img { max-width: 100%; border-radius: 6px; display: block; } .pv-body figure { margin: 16px 0; } .pv-body figcaption { font-size: 13px; color: #6b6b6b; text-align: center; margin-top: 6px; }
.pv-body a { color: inherit; text-decoration: underline; } .pv-body blockquote { border-left: 3px solid #222; margin: 12px 0; padding: 2px 14px; font-style: italic; }
.sc-miss { background: #fee; color: #b42318; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.pv-quora { font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.pvq-q { font-size: 21px; font-weight: 700; color: #282829; line-height: 1.3; } .pvq-sp { color: #636466; font-size: 13px; margin-top: 4px; }
.pvq-a { margin-top: 16px; border-top: 1px solid #dee0e1; padding-top: 14px; } .pvq-who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; } .pvq-who div { display: flex; flex-direction: column; } .pvq-who small { color: #939598; font-size: 12px; }
.pvq-a .pv-body { color: #282829; font-size: 15px; } .pvq-act { display: flex; gap: 18px; color: #636466; font-size: 13px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #dee0e1; }
.pv-medium { max-width: 680px; margin: 0 auto; font-family: Georgia, 'Times New Roman', serif; color: #242424; }
.pvm-t { font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 34px; line-height: 1.15; margin: 0 0 8px; font-weight: 700; } .pvm-s { font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 20px; font-weight: 400; color: #6b6b6b; margin: 0 0 18px; }
.pvm-by { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2; margin-bottom: 24px; font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; } .pvm-by div { display: flex; flex-direction: column; } .pvm-by small { color: #6b6b6b; font-size: 13px; }
.pv-medium .pv-body { font-size: 20px; line-height: 1.6; } .pv-medium .pv-body h2, .pv-medium .pv-body h3 { font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 24px; margin: 30px 0 6px; }
.pvm-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; } .pvm-tags span { background: #f2f2f2; border-radius: 99px; padding: 6px 14px; font-size: 14px; font-family: -apple-system, 'Segoe UI', sans-serif; }
.pv-reddit { display: flex; gap: 10px; font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #1c1c1c; }
.pvr-v { display: flex; flex-direction: column; align-items: center; color: #878a8c; font-size: 13px; gap: 3px; } .pvr-m { flex: 1; min-width: 0; }
.pvr-sub { font-size: 12px; color: #787c7e; } .pvr-sub b { color: #1c1c1c; } .pvr-t { font-size: 20px; font-weight: 600; margin: 6px 0 10px; } .pv-reddit .pv-body { font-size: 14.5px; line-height: 1.55; }
.pvr-act { display: flex; gap: 16px; color: #878a8c; font-size: 12.5px; font-weight: 700; margin-top: 12px; }
.pv-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; box-shadow: 0 1px 20px rgba(0,0,0,.1); max-width: 900px; margin: 0 auto; font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.pvp-img img { width: 100%; display: block; } .pvp-no { aspect-ratio: 2/3; display: grid; place-items: center; background: #efefef; color: #767676; }
.pvp-side { padding: 26px; display: flex; flex-direction: column; gap: 10px; } .pvp-top { display: flex; gap: 14px; align-items: center; font-size: 18px; } .pvp-save { margin-left: auto; background: #e60023; color: #fff; border-radius: 99px; padding: 10px 18px; font-size: 15px; }
.pvp-link { color: #111; font-size: 14px; text-decoration: underline; } .pvp-t { font-size: 28px; line-height: 1.2; margin: 0; font-weight: 600; } .pvp-d { font-size: 15px; color: #333; margin: 0; } .pvp-who { display: flex; gap: 8px; align-items: center; }
.sc-imgs { margin-top: 14px; } .sc-imgs h4 { margin: 0 0 8px; font-size: 13px; } .sc-im { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sc-im img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--hover); } .sc-im div { flex: 1; display: flex; flex-direction: column; min-width: 0; } .sc-im small { color: var(--ink-3); font-size: 11.5px; overflow-wrap: anywhere; }
.sc-right { position: sticky; top: 0; max-height: 72vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.sc-ckhead { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; } .sc-ckhead.ok { background: var(--ok-soft, #e7f4ee); color: var(--ok); } .sc-ckhead.bad { background: var(--danger-soft, #fde8e7); color: var(--danger); }
.sc-ckhead div { flex: 1; display: flex; flex-direction: column; } .sc-ckhead small { color: var(--ink-2); font-size: 12px; } .sc-big { font-size: 26px; font-weight: 780; color: var(--ink); } .sc-big small { font-size: 13px; color: var(--ink-3); }
.sc-ckg h4 { margin: 4px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); display: flex; justify-content: space-between; }
.sc-cki { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; } .sc-cki div { display: flex; flex-direction: column; min-width: 0; } .sc-cki small { color: var(--ink-3); overflow-wrap: anywhere; }
.sc-cki.ok > svg { color: var(--ok); flex: none; margin-top: 2px; } .sc-cki.bad > svg { color: var(--danger); flex: none; margin-top: 2px; } .sc-cki.bad b { color: var(--danger); }
.sc-fix { font-size: 12.5px; margin: 0 0 6px; padding-left: 10px; border-left: 2px solid var(--warn); }
.sc-url { max-width: 320px; }
@media (max-width: 900px) { .sc-mb { grid-template-columns: 1fr; } .sc-right { position: static; max-height: none; } .pv-pin { grid-template-columns: 1fr; } .sc-frame { padding: 14px; } .pvm-t { font-size: 26px; } .pv-medium .pv-body { font-size: 18px; } }
/* A selected chip stays readable in every theme (dark text on a dark chip was invisible in the glass theme) */
html[data-mode="dark"] .sc-pf.on, html[data-mode="dark"] .act-kc.on { background: #f2f2f2; color: #111; border-color: #f2f2f2; }
/* Social content: the client's profile logos, the Rules tab, Add image */
.sc-picons { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sc-pic { position: relative; display: inline-flex; align-items: center; gap: 3px; padding: 5px 7px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); text-decoration: none; }
.sc-pic svg:first-child { width: 22px; height: 22px; } .sc-pic:hover { border-color: var(--ink-3); }
.sc-pic.none { border-style: dashed; color: var(--ink-3); } .sc-pic.none svg { filter: grayscale(1); opacity: .45; } .sc-pic.none span { font-weight: 700; font-size: 13px; }
.sc-cf .sc-picons .sc-pic { padding: 2px 4px 2px 2px; } .sc-cf .sc-picons .sc-pic svg:first-child { width: 16px; height: 16px; } .sc-cf .sc-picons .sc-pic.none { display: none; }
.sc-views { margin: 4px 0 14px; } .sc-views button { display: inline-flex; align-items: center; gap: 6px; }
.sc-rinfo { display: flex; gap: 12px; padding: 14px 16px; align-items: flex-start; } .sc-rinfo p { margin: 4px 0 0; }
.sc-sops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .sc-sops .sc-sop:first-child { grid-column: 1 / -1; }
.sc-sop { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); } .sc-sop textarea { font-weight: 400; font-size: 13.5px; line-height: 1.5; resize: vertical; }
.sc-rlist { padding: 6px 10px; margin-bottom: 8px; } .sc-rnone { padding: 8px 4px; margin: 0; }
.sc-rr { display: grid; grid-template-columns: 140px 190px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); } .sc-rr:last-child { border-bottom: 0; }
.sc-rsave { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }
.sc-add { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--card); }
.sc-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; }
.sc-drop.on { border-color: var(--brand); background: var(--brand-soft); } .sc-drop em { font-style: normal; font-weight: 650; font-size: 12.5px; }
@media (max-width: 760px) { .sc-sops { grid-template-columns: 1fr; } .sc-rr { grid-template-columns: 1fr 1fr; } .sc-rr input { grid-column: 1 / -1; } }

.sc-always { padding: 12px 16px; margin: 12px 0 4px; } .sc-always b { display: flex; align-items: center; gap: 6px; } .sc-always ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }

.sc-research { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.sc-research h4 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; } .sc-research h5 { margin: 10px 0 4px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.sc-research ul { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.sc-rt { width: 100%; border-collapse: collapse; font-size: 12.5px; } .sc-rt th { text-align: left; color: var(--ink-3); font-weight: 650; padding: 4px 6px; border-bottom: 1px solid var(--line); } .sc-rt td { padding: 4px 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }

/* ---------- Notetaker (notetaker.js) ---------- */
.nt-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 14px; }
.nt-bot { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; }
.nt-bot b { display: block; font-size: 16px; } .nt-bot small { color: var(--ink-3); font-size: 12.5px; }
.nt-av { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #17181c; color: #fff; flex: none; }
.nt-stats { display: flex; gap: 22px; } .nt-stats div { display: flex; flex-direction: column; } .nt-stats b { font-size: 22px; font-weight: 700; line-height: 1.1; } .nt-stats span { font-size: 12px; color: var(--ink-3); }
.nt-plats { display: flex; gap: 6px; } .nt-plats svg, .nt-pl svg { width: 26px; height: 26px; display: block; }
.nt-setup { display: flex; gap: 10px; padding: 12px 16px; margin-bottom: 14px; background: var(--warn-soft); border-color: transparent; } .nt-setup p { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }
.nt-send { padding: 4px 16px 16px; margin-bottom: 6px; }
.nt-form { display: grid; grid-template-columns: 2fr 1.2fr 1.4fr 1fr auto; gap: 8px; align-items: center; }
.nt-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; }
.nt-pl { flex: none; padding-top: 2px; } .nt-main { flex: 1; min-width: 0; }
.nt-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .nt-t b { font-size: 14.5px; }
.nt-sub { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; align-items: center; } .nt-sub span { display: inline-flex; align-items: center; gap: 4px; }
.nt-cl { color: var(--ink-2); font-weight: 600; }
.nt-err { margin-top: 6px; font-size: 12.5px; color: var(--danger); }
.nt-qa { margin-top: 8px; display: grid; gap: 6px; font-size: 12.5px; } .nt-qa div { background: var(--hover); border-radius: 10px; padding: 7px 10px; } .nt-qa span { color: var(--ink-2); display: inline-flex; gap: 4px; margin-top: 2px; }
.nt-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nt-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 5px; animation: ntPulse 1.4s ease-in-out infinite; }
@keyframes ntPulse { 50% { opacity: .25; } }
.nt-set .card { padding: 4px 16px 16px; margin-bottom: 12px; } .nt-set .nt-form { grid-template-columns: 2fr 1fr auto; }
.nt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; } .nt-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); } .nt-grid .wide { grid-column: 1 / -1; }
.nt-foot { margin-top: 12px; display: flex; justify-content: flex-end; }
@media (max-width: 760px) { .nt-form, .nt-set .nt-form { grid-template-columns: 1fr; } .nt-row { flex-wrap: wrap; } .nt-act { width: 100%; justify-content: flex-start; } }

/* ---------- Meetings page: all meetings (notetaker.js) ---------- */
.nt-stats .warn b { color: var(--warn); } .nt-stats .live b { color: var(--ok); }
.mt-bar { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr auto; gap: 8px; margin: 4px 0 6px; align-items: center; }
.mt-search { position: relative; } .mt-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); } .mt-search .input { padding-left: 32px; width: 100%; }
.mt-hint { margin: 8px 2px 0; }
.mt-month { margin-top: 20px; color: var(--ink-2); }
.mt-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 8px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.mt-card:hover { box-shadow: 0 6px 22px rgba(20, 20, 30, .08); transform: translateY(-1px); }
.mt-date { flex: none; width: 54px; text-align: center; border-radius: 12px; background: var(--hover); padding: 7px 0 6px; display: flex; flex-direction: column; line-height: 1.1; }
.mt-date b { font-size: 20px; font-weight: 700; } .mt-date span { font-size: 11.5px; font-weight: 650; text-transform: uppercase; color: var(--ink-2); } .mt-date small { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.mt-main { flex: 1; min-width: 0; } .mt-main .nt-t a { color: inherit; text-decoration: none; }
.mt-pf svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; display: inline-block; } .mt-pf { font-style: normal; }
.mt-sum { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.mt-chips span, .mt-chips a { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--hover); color: var(--ink-2); text-decoration: none; }
.mt-chips .ok { background: var(--ok-soft); color: var(--ok); } .mt-chips a:hover { color: var(--ink); }
@media (max-width: 900px) { .mt-bar { grid-template-columns: 1fr 1fr; } .mt-search { grid-column: 1 / -1; } }
@media (max-width: 600px) { .mt-bar { grid-template-columns: 1fr; } .mt-card { flex-wrap: wrap; } .mt-date { width: 46px; } }
