/* SleuthLens design system — warm paper light theme, deep ink dark theme, crimson accent. */
:root {
  --bg: #f7f6f3; --bg-2: #efede8; --card: #ffffff; --card-2: #faf9f7;
  --ink: #17171a; --ink-2: #3b3b42; --muted: #666670; --line: #e7e5df; --line-2: #d9d6ce;
  --accent: #e11d48; --accent-2: #f43f5e; --accent-ink: #ffffff; --accent-soft: #fff1f3; --accent-ring: rgba(225, 29, 72, .22);
  --green: #146c35; --green-soft: #e8f7ee; --amber: #a14a08; --amber-soft: #fef3e2; --bad: #c91f1f; --bad-soft: #fdeeee; --accent-text: #c4163c; --blue: #1d4ed8; --blue-soft: #e8efff;
  --shadow-sm: 0 1px 2px rgba(23, 23, 26, .05); --shadow: 0 1px 2px rgba(23, 23, 26, .04), 0 10px 28px -14px rgba(23, 23, 26, .16); --shadow-lg: 0 24px 60px -20px rgba(23, 23, 26, .35);
  --r: 14px; --r-sm: 10px; --side: 264px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --red: var(--accent);
  --c-green: #22b866; --c-amber: #f5a524; --c-blue: #4f7cff; --c-orange: #ff7a45; --c-gray: #a3a8b5;   /* brighter colours for charts and fills; the darker --green and --amber stay for text */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d10; --bg-2: #141418; --card: #17171c; --card-2: #1c1c22;
    --ink: #f4f4f5; --ink-2: #d4d4d8; --muted: #9a9aa5; --line: #26262d; --line-2: #34343d;
    --accent: #fb7185; --accent-2: #f43f5e; --accent-ink: #1a0509; --accent-soft: #2a1218; --accent-ring: rgba(251, 113, 133, .28);
    --green: #4ade80; --green-soft: #12281b; --amber: #fbbf24; --amber-soft: #2b2110; --bad: #f87171; --bad-soft: #2c1414; --blue: #7aa2ff; --blue-soft: #14203a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -14px rgba(0, 0, 0, .7); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0d0d10; --bg-2: #141418; --card: #17171c; --card-2: #1c1c22;
    --ink: #f4f4f5; --ink-2: #d4d4d8; --muted: #9a9aa5; --line: #26262d; --line-2: #34343d;
    --accent: #fb7185; --accent-2: #f43f5e; --accent-ink: #1a0509; --accent-soft: #2a1218; --accent-ring: rgba(251, 113, 133, .28);
    --green: #4ade80; --green-soft: #12281b; --amber: #fbbf24; --amber-soft: #2b2110; --bad: #f87171; --bad-soft: #2c1414; --blue: #7aa2ff; --blue-soft: #14203a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -14px rgba(0, 0, 0, .7); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 14px/1.5 var(--font); font-feature-settings: "cv11", "ss01"; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-ring); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ---------- app shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); display: flex; flex-direction: column; background: var(--card); border-right: 1px solid var(--line); padding: 20px 14px 14px; z-index: 40; overflow-y: auto; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 20px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #fb4a6b, #be123c); box-shadow: 0 1px 2px rgba(190, 18, 60, .35), inset 0 1px 0 rgba(255, 255, 255, .22); }
.brand .logo svg { width: 32px; height: 32px; }
#nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.nav-search { position: relative; margin: 2px 0 12px; }
.nav-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.nav-search input { width: 100%; padding: 8px 40px 8px 33px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 13px; box-shadow: none; }
.nav-search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 600 10.5px system-ui; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; pointer-events: none; }
.nav-search input:focus + kbd { display: none; }
.nav-sec { margin-top: 2px; }
.nav-items { display: none; flex-direction: column; gap: 1px; padding: 2px 0 6px; }
.nav-sec.open .nav-items { display: flex; }
.nav-group { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 8px 10px; background: none; border: 0; box-shadow: none; border-radius: 9px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; text-align: left; }
#nav .nav-group, #nav .nav-group:hover, #nav .nav-group:active, #nav .nav-group:focus { box-shadow: none; transform: none; filter: none; }
#nav .nav-group { background: transparent; transition: background .15s, color .15s; }
#nav .nav-group:hover { background: var(--bg-2); color: var(--ink); }
#nav .nav-group:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: -2px; }
#nav .nav-sec.open > .nav-group { color: var(--ink-2); }
.nav-group span { flex: 1; }
.nav-group small { font-size: 10.5px; font-weight: 600; opacity: .7; letter-spacing: 0; }
.nav-group svg { width: 14px; height: 14px; transition: transform .15s; transform: rotate(-90deg); }
.nav-sec.open > .nav-group svg { transform: none; }
#nav a { display: flex; align-items: center; gap: 11px; padding: 7px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 550; transition: background .15s, color .15s; position: relative; }
#nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; opacity: .75; }
#nav a:hover { background: var(--bg-2); color: var(--ink); }
#nav a.on { background: var(--accent-soft); color: var(--accent); }
#nav a.on svg { opacity: 1; }
#nav a.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
#badge:not(:empty) { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.side-foot { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.4; }
.side-foot b { color: var(--ink); font-size: 13px; display: block; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s infinite; }
.dot.warn { background: #f59e0b; } .dot.bad { background: var(--bad); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.content { flex: 1; min-width: 0; margin-left: var(--side); }
.topbar { display: none; position: sticky; top: 0; z-index: 30; align-items: center; gap: 12px; padding: 10px 16px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; background: var(--card-2); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(10, 10, 14, .5); backdrop-filter: blur(3px); z-index: 35; opacity: 0; transition: opacity .25s; }
main { max-width: 1320px; margin: 0 auto; padding: 32px 36px 80px; }
main > * { animation: rise .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- type ---------- */
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
h3 { font-size: 16px; letter-spacing: -.01em; margin: 22px 0 10px; }
.note { color: var(--muted); font-size: 13.5px; margin: -6px 0 18px; max-width: 78ch; }
.muted { color: var(--muted); } .up { color: var(--green); } .down { color: var(--bad); }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

/* ---------- controls ---------- */
.bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
input[type=text], input[type=password], input[type=search], textarea, select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 14px; transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
input[type=text], input[type=password], input[type=search], textarea { flex: 1; min-width: 220px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
select { appearance: none; padding-right: 36px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2370707a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
form.bar#f > input[type=text]:first-child { padding-left: 42px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2370707a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; font-size: 15px; padding-top: 13px; padding-bottom: 13px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); vertical-align: -3px; cursor: pointer; }
label { cursor: pointer; }
button { font: inherit; font-weight: 650; cursor: pointer; border: 0; border-radius: var(--r-sm); padding: 11px 18px; color: var(--accent-ink); background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 14px -8px var(--accent); transition: transform .12s, box-shadow .15s, filter .15s; }
button:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 20px -10px var(--accent); }
button:active { transform: none; }
button.ghost, .icon-btn { color: var(--ink); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
button.ghost:hover { border-color: var(--muted); background: var(--card-2); box-shadow: var(--shadow-sm); filter: none; }
button:disabled { opacity: .5; cursor: progress; transform: none; }
.field { display: grid; gap: 6px; margin-bottom: 16px; } .field label { font-weight: 650; font-size: 13px; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; }
.stat > .muted:first-child, .stat > span.muted:first-child { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat b { display: block; margin-top: 4px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 18px; align-items: center; padding: 18px 20px; flex-wrap: wrap; }
.row .pill { align-self: center; }
.row img { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--accent-ring), var(--shadow); object-fit: cover; }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--card-2); }
.card.empty { box-shadow: none; }
.err { padding: 13px 16px; border-radius: var(--r-sm); background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); margin-bottom: 14px; }

/* ---------- tables ---------- */
table { border-collapse: separate; border-spacing: 0; width: 100%; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { position: sticky; top: 0; z-index: 2; background: var(--card-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; white-space: nowrap; user-select: none; border-bottom: 1px solid var(--line-2); }
th:hover { color: var(--ink); }
tbody tr, tr { transition: background .12s; }
tr:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 550; } td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.thumb { width: 52px; height: 68px; object-fit: cover; border-radius: 10px; background: var(--bg-2); box-shadow: var(--shadow-sm); transition: transform .15s; }
.thumb:hover { transform: scale(1.06); }
.spark { vertical-align: middle; }
tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--accent); } tr.unread { background: var(--accent-soft); }

/* ---------- chips, pills, tabs ---------- */
.chip { display: inline-block; padding: 4px 11px; margin: 3px 4px 3px 0; border-radius: 99px; background: var(--card); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 550; cursor: pointer; transition: all .15s; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.chip small { color: var(--muted); margin-left: 5px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.score { display: inline-block; min-width: 34px; text-align: center; padding: 2px 9px; border-radius: 99px; color: #fff; font-weight: 700; font-size: 12px; }
.tabs { display: inline-flex; gap: 2px; padding: 4px; margin: 0 0 18px; background: var(--bg-2); border-radius: 13px; flex-wrap: wrap; max-width: 100%; border: 0; }
.tabs a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; transition: all .15s; border: 0; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- dialog + toast ---------- */
dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); padding: 24px; min-width: 300px; max-width: min(640px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
dialog::backdrop { background: rgba(10, 10, 14, .55); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
#toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 99px; z-index: 60; display: none; font-weight: 600; box-shadow: var(--shadow-lg); }
#toast[style*="block"] { animation: toast .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }


/* ---------- pins: rows, grid, slide-over panel ---------- */
.thumb { width: 64px; height: 84px; border-radius: 12px; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover .ptitle { color: var(--accent); }
.ptitle { font-weight: 650; line-height: 1.3; }
.ext { color: var(--muted); font-size: 12px; margin-left: 4px; } .ext:hover { color: var(--accent); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border-radius: 12px; }
.seg button { padding: 7px 14px; border-radius: 9px; background: transparent; color: color-mix(in srgb, var(--muted) 72%, var(--ink)); box-shadow: none; font-weight: 600; transform: none; }
.seg button:hover { color: var(--ink); filter: none; transform: none; box-shadow: none; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.gimg { position: relative; background: var(--bg-2); }
.gimg img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gsel { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; }
.gbody { padding: 11px 13px 13px; }
.gtitle { font-weight: 650; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.g-stats { font-size: 12.5px; }

.drawer-scrim { position: fixed; inset: 0; background: rgba(10, 10, 14, .5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 70; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); z-index: 71; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.icon-btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.icon-btn:disabled { opacity: .4; cursor: default; transform: none; }
.drawer-body { overflow-y: auto; padding: 22px 24px 40px; }
.pv-top { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 22px; margin-bottom: 20px; }
.pv-img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); background: var(--bg-2); object-fit: cover; align-self: start; }
.pv-meta h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; margin: 6px 0 12px; }
.pv-domain { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pv-by { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 8px; }
.pv-by a, .pv-line a { text-decoration: underline; text-underline-offset: 3px; }
.pv-line { font-size: 13.5px; }
.pv-desc { margin: 12px 0 0; color: var(--ink-2); max-height: 190px; overflow: auto; white-space: pre-line; }
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); }
.av-fallback { display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.pv-perf, .pv-ann { padding: 18px 20px; margin-bottom: 14px; }
.pv-perf h3 { margin: 0 0 14px; font-size: 18px; }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; text-align: center; }
.pv-stat span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.pv-stat b { font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .pv-top { grid-template-columns: 1fr; } .pv-img { max-width: 320px; } .drawer-body { padding: 16px 16px 32px; } .pgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } .pv-stat b { font-size: 24px; } }


/* ---------- responsive ---------- */
@media (max-width: 1100px) { main { padding: 26px 22px 72px; } .layout { grid-template-columns: 210px 1fr; } }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-102%); box-shadow: var(--shadow-lg); width: min(300px, 86vw); }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .scrim { display: block; opacity: 1; }
  .content { margin-left: 0; }
  .topbar { display: flex; }
  .topbar .brand { padding: 0; font-size: 17px; } .topbar .brand .logo { width: 32px; height: 32px; } .topbar .brand .logo svg { width: 26px; height: 26px; }
  main { padding: 20px 14px 64px; }
  h1 { font-size: 25px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: 240px; }
  .row { gap: 14px; } .row img { width: 60px; height: 60px; } .row > div:last-child { width: 100%; }
  .card table { min-width: 560px; }
  input[type=text], input[type=password], textarea { min-width: 0; width: 100%; flex-basis: 100%; }
  .bar > button, .bar > select { flex: 1 1 auto; }
  .tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; } .tabs a { white-space: nowrap; }
  th, td { padding: 10px 11px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .stat b { font-size: 22px; }
  dialog { padding: 18px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   Design pass 2: calmer buttons, page headers, sticky tables, density,
   skeletons, theme-aware status pills, tooltips, command palette
   ===================================================================== */

/* buttons: flat and solid, no lift or glow */
button { background: var(--accent); color: var(--accent-ink); box-shadow: none; padding: 9px 16px; border-radius: var(--r-sm); transition: background .15s, border-color .15s, color .15s, opacity .15s; }
button:hover { filter: none; transform: none; box-shadow: none; background: color-mix(in srgb, var(--accent) 86%, #000); }
button:active { background: color-mix(in srgb, var(--accent) 74%, #000); transform: none; }
button.ghost, .icon-btn { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
button.ghost:hover, .icon-btn:hover { background: var(--bg-2); border-color: var(--muted); box-shadow: none; filter: none; }
button:disabled { opacity: .5; cursor: default; }
.chip:hover { transform: none; }
form.bar > button { padding: 12px 22px; }

/* page header: one pattern for every page */
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; max-width: 74ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
main > h1 { margin-bottom: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 550; font-size: 13px; margin-bottom: 10px; }
.back:hover { color: var(--accent); }

/* tables: header stays in view while scrolling long lists */
.card { overflow: clip; }
@media (max-width: 1100px) { .card { overflow-x: auto; } }
th { top: 0; box-shadow: 0 1px 0 var(--line-2); }
body.dense th, body.dense td { padding: 6px 12px; font-size: 13px; }
body.dense .thumb { width: 38px; height: 50px; }
body.dense .stat { padding: 12px 14px; }
.side-tools { margin-top: 8px; display: flex; gap: 6px; }
.side-tools button { flex: 1; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.side-tools button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* loading skeletons */
.loading { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.loading .sk { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--bg-2) 25%, var(--line) 45%, var(--bg-2) 65%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
.loading .sk.s { width: 62%; } .loading .sk.m { width: 82%; }
.loading span { color: var(--muted); font-size: 13px; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* status pills: soft tints that read well in light and dark */
.pill[data-tone=ok] { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 28%, transparent); }
.pill[data-tone=warn] { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 28%, transparent); }
.pill[data-tone=bad] { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 28%, transparent); }
.pill[data-tone=info] { background: var(--blue-soft); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 28%, transparent); }
.pill[data-tone=neutral] { background: var(--bg-2); color: var(--ink-2); }

/* chart tooltip */
#tip { position: fixed; z-index: 90; pointer-events: none; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transition: opacity .1s; white-space: nowrap; }
#tip.on { opacity: 1; }
[data-tip] { cursor: default; }
svg circle[data-tip]:hover { fill: var(--accent); fill-opacity: 1; }

/* command palette */
#pal { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(10, 10, 14, .5); backdrop-filter: blur(4px); }
#pal.on { display: flex; }
.pal-box { width: min(620px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .18s ease both; }
.pal-box input { width: 100%; flex: none; min-width: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 18px; font-size: 16px; background: transparent; box-shadow: none; }
.pal-box input:focus { box-shadow: none; border-color: var(--line); }
.pal-list { overflow-y: auto; padding: 6px; }
.pal-h { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pal-i { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--ink-2); font-weight: 550; }
.pal-i small { margin-left: auto; color: var(--muted); font-weight: 500; }
.pal-i.on { background: var(--accent-soft); color: var(--accent); }
.pal-i svg { width: 17px; height: 17px; flex: none; stroke: currentColor; opacity: .75; }
.pal-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pal-foot kbd, .nav-search kbd { font-family: inherit; }
.nav-search input { cursor: pointer; }
@media (max-width: 860px) { #pal { padding-top: 8vh; } .page-head p { font-size: 13.5px; } }

/* ---------------- sign-in, account and admin ---------------- */
body.locked .shell { display: none; }
#auth { display: none; }
body.locked #auth { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 15% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; box-shadow: var(--shadow-lg); }
.auth-card .logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #fb4a6b, #be123c); margin-bottom: 18px; }
.auth-card .logo svg { width: 38px; height: 38px; }
.auth-card h1 { font-size: 26px; margin: 0 0 4px; } .auth-card > p { margin: 0 0 22px; color: var(--muted); }
.auth-card input[type=text], .auth-card input[type=password], .auth-card input[type=email] { width: 100%; min-width: 0; margin-bottom: 12px; flex: none; }
.auth-card button { width: 100%; } .auth-err { color: var(--bad); min-height: 1.4em; margin-top: 10px; font-size: 14px; }
.who { display: block; margin-top: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); } .who:hover { border-color: var(--muted); color: var(--ink); }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--card-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.linkbox code { flex: 1; word-break: break-all; font-size: 12.5px; background: none; padding: 0; }
.meter { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-top: 6px; } .meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
body.not-admin .admin-only { display: none; }
input[type=email] { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

/* thin loading bar shown while the app waits for the server */
#apibar{position:fixed;top:0;left:0;right:0;height:3px;z-index:99999;overflow:hidden;opacity:0;transition:opacity .2s;pointer-events:none}
#apibar.on{opacity:1}#apibar::after{content:"";display:block;height:100%;width:30%;background:var(--accent,#d6202b);border-radius:3px;animation:apibar 1.1s ease-in-out infinite}
@keyframes apibar{0%{margin-left:-30%}100%{margin-left:100%}}

/* get started checklist */
.st-bar{height:6px;border-radius:6px;background:var(--line,#ececec);margin-top:10px;overflow:hidden}.st-bar i{display:block;height:100%;background:var(--accent);border-radius:6px;transition:width .4s}
.st-step{display:flex;gap:14px;padding:16px 18px;margin-bottom:12px}.st-step.done{opacity:.7}
.st-n{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-weight:700}.st-step.done .st-n{background:var(--accent);color:var(--accent-ink,#fff)}
.st-f input{flex:1;min-width:150px}.btn{display:inline-block;padding:8px 14px;border-radius:99px;background:var(--accent);color:var(--accent-ink,#fff);text-decoration:none;font-weight:600;font-size:13px}.btn.ghost{background:transparent;color:inherit;border:1px solid var(--line,#ddd)}

/* friendly empty screens */
.em{padding:40px 24px 28px;text-align:center;border:1.5px dashed var(--line-2);border-radius:var(--r);background:var(--card-2)}
.em-ic{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--accent-soft);color:var(--accent);margin-bottom:10px}.em-ic svg{width:26px;height:26px}
.em b{display:block;font-size:18px;margin-bottom:6px}.em p{max-width:520px;margin:0 auto 16px;color:var(--muted);line-height:1.55}
.em-sample{position:relative;max-width:560px;margin:26px auto 0;text-align:left;opacity:.7;pointer-events:none;user-select:none}.em-sample table{width:100%}
.em-tag{position:absolute;top:6px;right:10px;background:var(--ink,#17171a);color:#fff;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 9px;border-radius:99px;z-index:1}

.auth-fine{margin:14px 0 0;font-size:13px;color:var(--muted);text-align:center}.auth-fine a{color:var(--accent)}.auth-ok{margin:0;color:var(--green,#1a8a4a);line-height:1.5}

/* subscription notice */
#billbar{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap;padding:9px 16px;font-size:14px;background:#fff7e6;color:#7a4b00;border-bottom:1px solid #f3dca8}
#billbar[data-tone=bad]{background:#fdecea;color:#8a1f16;border-color:#f3c6c1}#billbar a{font-weight:700;color:inherit;text-decoration:underline}

/* ---- extension + account pages ---- */
.hero2 { position: relative; overflow: hidden; border-radius: 20px; padding: 28px 28px 26px; margin-bottom: 18px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #fb7185 0%, #e11d48 45%, #9f1239 100%); box-shadow: 0 18px 40px -22px rgba(225, 29, 72, .6); }
.hero2::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .10); }
.hero2 h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; position: relative; z-index: 1; } .hero2 p { margin: 0; max-width: 560px; opacity: .92; font-size: 15px; position: relative; z-index: 1; }
.hero2 .hero-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero2 .btn, .hero2 button { background: #fff; color: #be123c; border-color: #fff; font-weight: 700; } .hero2 .btn.ghost, .hero2 button.ghost { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero2 a:hover { color: inherit; }
.ext-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 640px) { .ext-how { grid-template-columns: 1fr; gap: 8px; } .ext-how > div { padding: 11px 14px; } }
.ext-how > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ext-how i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 800 14px var(--font); font-style: normal; background: var(--accent-soft); color: var(--accent); }
.ext-how b { display: block; font-size: 14px; } .ext-how span { color: var(--muted); font-size: 13px; }
.br-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.br { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); cursor: pointer; font: inherit; box-shadow: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.br:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .35); }
.br[aria-pressed=true] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.br .logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; background: var(--card-2); border: 1px solid var(--line); } .br .logo svg { width: 28px; height: 28px; }
.br b { font-size: 16px; } .br span { color: var(--muted); font-size: 12.5px; }
.ext-panel { border-radius: 20px; background: var(--card); border: 1px solid var(--line); padding: 22px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 760px) { .ext-panel { grid-template-columns: 1fr; } }
.ext-panel h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; } .ext-panel ol { list-style: none; counter-reset: s; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.ext-panel li { counter-increment: s; position: relative; padding-left: 36px; color: var(--ink-2); } .ext-panel li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--font); background: var(--accent-soft); color: var(--accent); }
.ext-side { border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); padding: 16px; } .ext-side ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--ink-2); font-size: 13.5px; } .ext-side li { padding-left: 22px; position: relative; } .ext-side li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.acc-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font: 800 24px var(--font); color: #fff; background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 10px 22px -12px rgba(225, 29, 72, .7); }
.acc-hero h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; } .acc-hero .grow { flex: 1; min-width: 200px; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; } @media (max-width: 820px) { .acc-grid { grid-template-columns: 1fr; } }
.acc-card { border-radius: 20px !important; padding: 22px !important; }
.acc-card h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 9px; } .acc-card h3 .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 15px; }
.acc-card .sub { color: var(--muted); margin: 0 0 14px; font-size: 13.5px; }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 4px; } .acc-stats > div { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; } .acc-stats .meter { height: 6px; }
.acc-stats .n { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .acc-stats .n small { color: var(--muted); font-size: 13px; font-weight: 600; }
.acc-grid #billcard { order: -1; border-radius: 20px !important; padding: 22px !important; }
.keyrow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); margin-top: 8px; } .keyrow .k { flex: 1; min-width: 0; } .keyrow small { color: var(--muted); display: block; }
button.br:hover, button.br:active, button.br:focus { background: var(--card); color: var(--ink); filter: none; }
button.br[aria-pressed=true], button.br[aria-pressed=true]:hover { background: var(--accent-soft); }
button.br:hover span:not(.logo), button.br:active span:not(.logo) { color: var(--muted); }
button.br:hover b { color: var(--ink); }

.acc-stats { grid-template-columns: 1fr; } .acc-stats > div { padding: 16px 18px; } @media (min-width: 1100px) { .acc-stats { grid-template-columns: 1fr 1fr; } }
.plans-wrap { margin-top: 4px; } .plans-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .plans-head b { font-size: 19px; letter-spacing: -.01em; }
.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); } .seg button { border: 0; background: none; box-shadow: none; color: var(--ink-2); border-radius: 99px; padding: 6px 14px; font-weight: 650; font-size: 13px; } .seg button em { font-style: normal; color: var(--green); font-size: 11.5px; margin-left: 4px; }
.seg button[aria-pressed=true], .seg button[aria-pressed=true]:hover { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); } .seg button:hover { background: none; color: var(--ink); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: stretch; }
.plan-c { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); } .plan-c.pop { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring), 0 18px 36px -24px rgba(225, 29, 72, .55); }
.plan-c .ptag { position: absolute; top: -11px; left: 20px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.plan-c h4 { margin: 0; font-size: 18px; } .plan-c .for { margin: 4px 0 14px; color: var(--muted); font-size: 13px; min-height: 36px; }
.plan-c .pprice { font-size: 15px; color: var(--muted); } .plan-c .pprice b { font-size: 40px; letter-spacing: -.03em; color: var(--ink); line-height: 1; } .plan-c .pbilled { color: var(--muted); font-size: 12.5px; margin: 4px 0 14px; }
.plan-c ul { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; flex: 1; font-size: 13.5px; color: var(--ink-2); } .plan-c li { position: relative; padding-left: 24px; } .plan-c li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 10px; font-weight: 800; margin-top: 2px; }
.plan-c li.soon { color: var(--muted); } .plan-c li em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.plan-c button { width: 100%; }

/* ---- settings ---- */
.set-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 18px; max-width: 100%; overflow-x: auto; }
.set-tabs button { border: 0; background: none; box-shadow: none; color: var(--ink-2); border-radius: 99px; padding: 8px 18px; font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.set-tabs button:hover { background: none; color: var(--ink); } .set-tabs button[aria-pressed=true], .set-tabs button[aria-pressed=true]:hover { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
body.not-admin .set-tabs .admin-only, body.not-admin .set-panel.admin-only { display: none; }
.set-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; align-items: stretch; padding-bottom: 80px; } .set-panel[hidden] { display: none; }
.set-panel .card { border-radius: 20px; } .set-panel .card h3 { font-size: 17px; margin-bottom: 10px; }
.save-dock { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 12px 0 14px; margin-top: -60px; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 5; }

/* a.btn: keep the label readable on hover (the global link hover colour made it vanish on the red button) */
a.btn:hover, a.btn:focus-visible { color: var(--accent-ink, #fff); filter: brightness(1.07); } a.btn.ghost:hover { color: var(--accent); background: var(--accent-soft); filter: none; }
/* dashboard */
.dhero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; } .dhero h1 { margin: 0 0 4px; } .dhero p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 760px; } .dhero-r { display: flex; gap: 10px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; } @media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { position: relative; display: grid; gap: 2px; padding: 16px 18px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; } .kpi:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .4); }
.kpi .kl { font-size: 12.5px; color: var(--muted); font-weight: 650; } .kpi .kv { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; } .kpi .kv small { font-size: 15px; color: var(--muted); font-weight: 700; } .kpi .kd { min-height: 20px; font-size: 12.5px; }
.kpi .dsp { position: absolute; right: 12px; bottom: 12px; opacity: .95; }
.dl { font-weight: 700; font-size: 12.5px; } .dl.up, .up { color: var(--green); } .dl.down, .down { color: var(--bad); } .dl.flat { color: var(--muted); font-weight: 500; }
.dgrid { column-count: 2; column-gap: 14px; margin-bottom: 6px; }  /* cards flow top to bottom in two columns, so there are no holes; a card marked span2 runs across both */
.dgrid > section, .dgrid > .dcard { break-inside: avoid; margin: 0 0 14px; } .dgrid > .span2 { column-span: all; }
.dcard { padding: 18px 20px; border-radius: 20px; display: flex; flex-direction: column; } .dcard { padding: 18px 20px; border-radius: 20px; display: flex; flex-direction: column; } .dcard.span2 { grid-column: 1 / -1; }
@media (max-width: 860px) { .dgrid { column-count: 1; } }
.dh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; } .dh h3 { margin: 0; font-size: 16px; } .dh a { font-size: 12.5px; }
.dchart { width: 100%; height: auto; display: block; } .dleg, .dlegrid { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; } .dleg i, .dlegrid i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; } .dlegrid b { margin-left: 6px; color: var(--ink); } .dlegrid span { display: inline-flex; align-items: center; }
.dstack { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--bg-2); gap: 2px; } .dstack i { display: block; height: 100%; }
.drow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--line); color: var(--ink); } .drow:first-of-type { border-top: 0; } .drow:hover { color: var(--ink); background: var(--card-2); } .drow.unread .dk { font-weight: 700; }
.dk { display: grid; min-width: 0; font-weight: 600; font-size: 14px; } .dk small { color: var(--muted); font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dp { flex: none; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.empty-in { color: var(--muted); font-size: 13.5px; padding: 14px 0; line-height: 1.5; }
.dacct { display: flex; align-items: center; gap: 14px; padding: 10px 2px; color: var(--ink); flex-wrap: wrap; } .dacct:hover { color: var(--ink); } .dacct img, .av2 { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; } .av2 { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.dacct .dk { flex: 1; min-width: 140px; } .dnums { display: grid; text-align: right; min-width: 90px; } .dnums b { font-size: 20px; letter-spacing: -.02em; } .dnums small { color: var(--muted); font-size: 12px; }
.dhot { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 180px)); gap: 12px; justify-content: start; } .dhot a { display: grid; gap: 4px; color: var(--ink); } .dhot img, .dhot .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--bg-2); } .dhot b { color: var(--green); font-size: 13px; } .dhot small { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dmeter { margin: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13.5px; } .dmeter .meter { grid-column: 1 / -1; margin-top: 0; }

/* dashboard hover card */
#dtip { position: fixed; z-index: 90; display: none; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .08); font-size: 12.5px; }
#dtip b { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); font-weight: 650; }
#dtip .tr { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-weight: 650; } #dtip .tr i { width: 9px; height: 9px; border-radius: 3px; flex: none; } #dtip .tr span { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; font-weight: 800; } #dtip .tr.mut { color: var(--muted); font-weight: 500; } #dtip .tr.mut span { color: var(--ink-2); font-weight: 650; }
.dchartw { position: relative; } .dchart { cursor: crosshair; touch-action: pan-y; } .dsp { cursor: crosshair; }

.tblwrap { overflow-x: auto; } .dsec { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 2px 10px; } .dsec h3 { margin: 0; font-size: 16px; } .dsec h3 small { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 6px; } .dsec a { font-size: 12.5px; }
.kpis4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 900px) { .kpis4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phones: sparklines sit under the numbers instead of on top of them, headings wrap tidily */
@media (max-width: 720px) {
  .kpi .dsp { position: static; width: 100%; height: 30px; margin-top: 6px; }
  .kpi { padding: 14px 16px 12px; } .kpi .kv { font-size: 28px; }
  .dsec { flex-wrap: wrap; gap: 2px 12px; } .dsec h3 small { display: block; margin: 2px 0 0; }
  .dhero { align-items: flex-start; } .dhero-r { width: 100%; justify-content: space-between; }
}

/* dashboard and Pin Performance: calmer type, sparklines under the numbers (no overlap), thin lines */
.kpi .dsp { position: static; display: block; width: 100%; height: auto; margin-top: 10px; }
.kpi { padding: 16px 18px 14px; }
.kpi .kl { font-weight: 500; font-size: 12.5px; letter-spacing: 0; }
.kpi .kv { font-weight: 600; font-size: 28px; letter-spacing: -.02em; line-height: 1.2; } .kpi .kv small { font-weight: 500; font-size: 14px; }
.kpi .kd { font-size: 12.5px; }
.dl { font-weight: 600; font-size: 12px; } .dl.flat { font-weight: 400; }
.dhero h1 { font-weight: 650; font-size: 28px; letter-spacing: -.02em; } .dhero p { font-size: 14.5px; color: var(--ink-2); }
.dh h3, .dsec h3 { font-weight: 600; font-size: 15px; } .dsec h3 small { font-weight: 400; }
.dh a, .dsec a { font-weight: 450; color: var(--muted); } .dh a:hover, .dsec a:hover { color: var(--accent); }
.dk { font-weight: 500; font-size: 13.5px; } .dk small { font-weight: 400; }
.dp { font-weight: 400; } .dnums b { font-weight: 600; font-size: 17px; } .dnums small { font-weight: 400; }
.dmeter b, .dhot b, .dlegrid b { font-weight: 600; } .dhot small { font-weight: 400; }
.drow.unread .dk { font-weight: 600; } .dleg, .dlegrid { font-weight: 400; }
.seg button { font-weight: 500; } .dcard .empty-in { font-weight: 400; }
.dstack { height: 12px; }
@media (max-width: 720px) { .kpi .kv { font-size: 26px; } .kpi .dsp { margin-top: 6px; } }

/* ---- skeleton loading screens (skeleton.js): real card shapes with a wide beam sweeping over them ---- */
#apibar { display: none !important; }
.skl { display: block; } .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skb { display: block; border-radius: 7px; background-color: color-mix(in srgb, var(--line-2) 62%, var(--bg-2)); background-image: linear-gradient(100deg, transparent 0%, transparent 34%, var(--card) 50%, transparent 66%, transparent 100%); background-size: 280% 100%; background-repeat: no-repeat; background-position: 160% 0; animation: skbeam 1.7s ease-in-out infinite; }
@keyframes skbeam { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.skc, .skk { display: grid; gap: 12px; align-content: start; } .skk { pointer-events: none; }
.skseg { display: flex; gap: 8px; margin-bottom: 12px; }
.skrow { display: grid; gap: 18px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); } .skrow.skhead { border-top: 0; padding: 14px 0 12px; }
.skl .dgrid .skc, .skl .acc-grid .skc { min-height: 120px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .skb { background-image: linear-gradient(100deg, transparent 0%, transparent 34%, var(--line) 50%, transparent 66%, transparent 100%); } }
@media (prefers-reduced-motion: reduce) { .skb { animation: none; background-image: none; } }

/* ---- calmer type across the app ---- */
h1 { font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
h2, h3, h4 { font-weight: 600; }
b, strong { font-weight: 600; }
button { font-weight: 600; }
th { font-weight: 600; letter-spacing: .05em; }
.pill { font-weight: 600; } .brand { font-weight: 700; }
.nav-group { font-weight: 600; } #nav a { font-weight: 500; } #nav a.on { color: var(--accent-text); }
.card h3, .stat b { font-weight: 600; } .note { color: var(--muted); }
:root[data-theme="dark"] #nav a.on { color: var(--accent); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #nav a.on { color: var(--accent); } }
/* ---- accessibility ---- */
.skip { position: absolute; left: 12px; top: -48px; z-index: 100000; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; transition: top .15s; } .skip:focus { top: 12px; color: var(--bg); }
#app:focus { outline: none; }
input::placeholder, textarea::placeholder { opacity: 1; color: var(--muted); }
@media (forced-colors: active) { .skb { background: GrayText; } }

/* ---- toasts, help, shortcuts, tour, tables as cards, next actions ---- */
.ps-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 96; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.ps-toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 11px 14px 11px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 13.5px; box-shadow: var(--shadow-lg); animation: toastin .22s ease; max-width: min(92vw, 520px); }
.ps-toast.bad { background: var(--bad); color: #fff; } .ps-toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }
.ps-toast-act { background: none; border: 0; box-shadow: none; padding: 4px 8px; color: var(--accent-2); font-weight: 700; } .ps-toast-act:hover { background: rgba(255, 255, 255, .1); transform: none; box-shadow: none; filter: none; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }
.hd { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 5px; border-radius: 50%; font: 600 10px/1 var(--font); color: var(--muted); border: 1px solid var(--line-2); cursor: help; vertical-align: 1px; } .hd:hover, .hd:focus-visible { color: var(--accent-text); border-color: currentColor; outline: none; }
#htip { position: fixed; z-index: 97; display: none; max-width: 280px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.45; font-weight: 400; box-shadow: var(--shadow-lg); pointer-events: none; }
#kbd { position: fixed; inset: 0; z-index: 98; display: none; place-items: center; background: rgba(10, 10, 14, .5); } #kbd.on { display: grid; }
.kbd-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; width: min(92vw, 460px); box-shadow: var(--shadow-lg); } .kbd-grid { display: grid; grid-template-columns: auto 1fr; gap: 9px 22px; align-items: center; font-size: 13.5px; }
kbd { font: 600 11.5px var(--font); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card-2); box-shadow: 0 1px 0 var(--line-2); }
.tour { position: fixed; inset: 0; z-index: 99; } .tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(10, 10, 14, .58); transition: all .25s ease; pointer-events: none; border: 2px solid var(--accent); }
.tour-card { position: fixed; width: min(340px, calc(100vw - 24px)); padding: 18px; border-radius: 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.tour-card b { font-size: 16px; } .tour-card p { margin: 6px 0 14px; color: var(--ink-2); line-height: 1.5; } .tour-n { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; } .tour-btns { display: flex; gap: 8px; align-items: center; } .tour-btns button { padding: 8px 14px; }
.dnext { padding: 6px 18px 8px !important; margin-bottom: 14px; border-radius: 18px !important; } .dnext .dh { padding-top: 12px; }
.dn-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); color: var(--ink); } .dn-row:first-of-type { border-top: 0; } .dn-row:hover { color: var(--ink); background: var(--card-2); }
.dn-dot { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; background: var(--accent-soft); } .dn-row[data-tone=good] .dn-dot { background: var(--green-soft); } .dn-row[data-tone=info] .dn-dot { background: var(--blue-soft); } .dn-row[data-tone=warn] .dn-dot { background: var(--amber-soft); }
.dn-t { flex: 1; min-width: 0; display: grid; } .dn-t b { font-weight: 600; font-size: 14px; } .dn-t small { color: var(--muted); font-size: 12.5px; } .dn-go { color: var(--muted); font-size: 18px; }
.nudge { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 16px !important; margin-bottom: 14px; border-radius: 16px !important; background: var(--amber-soft) !important; border-color: color-mix(in srgb, var(--amber) 30%, transparent) !important; } .nudge > span { flex: 1; min-width: 200px; color: var(--ink); } .nudge .x { background: none; border: 0; box-shadow: none; color: var(--muted); padding: 4px 8px; }
@media (max-width: 640px) {
  table.rt, table.rt tbody { display: block; width: 100%; } table.rt thead, table.rt tr:has(> th) { display: none; }
  table.rt tr { display: grid; gap: 2px; padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  table.rt td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 4px 0; border: 0; text-align: right !important; white-space: normal; }
  table.rt td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; flex: none; max-width: 45%; } table.rt td:not([data-label])::before { display: none; }
  table.rt td:first-child { font-weight: 600; text-align: left !important; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ps-toast, .tour-spot { animation: none; transition: none; } }
.side-tools { display: grid; gap: 8px; } .side-tools #themebtn { margin: 0; width: 100%; }
@media (max-width: 640px) {
  table.rt { min-width: 0 !important; }
  .card:has(> table.rt), .tblwrap:has(> table.rt), div:has(> table.rt) { overflow: visible !important; }
  .card:has(> table.rt) { border: 0; background: transparent; box-shadow: none; padding: 0; }
  table.rt td a { word-break: break-word; } table.rt td:first-child:has(input[type=checkbox]) { justify-content: flex-start; }
}

/* sidebar: a small three-part appearance switch and a small compact-rows button */
.side-tools { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; }
#themeseg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
#themeseg button { flex: none; width: 30px; height: 26px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--muted); font-size: 0; transform: none; filter: none; }
#themeseg button:hover { color: var(--ink); background: none; box-shadow: none; transform: none; filter: none; }
#themeseg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.side-tools #dens { flex: none; width: 34px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 10px; font-size: 0; }
@media (max-width: 640px) {
  table.rt td { flex-wrap: wrap; } table.rt td::before { margin-right: auto; }
  table.rt td .chip, table.rt td a.chip, table.rt td .pill { flex: none; white-space: nowrap; width: auto; }
  table.rt td > div:not(.chips) { max-width: 100%; }
}

@media (max-width: 760px) { table.rt td.al { display: block; text-align: left !important; } }
@media (max-width: 640px) { .dh .seg, .dhero-r .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .dh .seg::-webkit-scrollbar { display: none; } .dh .seg button { white-space: nowrap; flex: none; padding: 7px 12px; } .dh:has(> .seg) { flex-wrap: wrap; gap: 8px; } }

.empty-in.act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.empty-in.act > span { flex: 1 1 220px; }
.empty-in.act .btn { padding: 8px 14px; font-size: 13.5px; white-space: nowrap; flex: none; }

/* setup guide */
.st-note { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; background: var(--bg-2); border-left: 3px solid var(--muted); } .st-note.good { border-left-color: var(--green, #16a34a); } .st-note.warn { border-left-color: var(--amber, #d97706); }
.st-live { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 14px; } .st-live p { margin: 2px 0 0; } .st-live.data { display: block; }
.st-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.st-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .st-kpis span { display: block; color: var(--muted); font-size: 12.5px; } .st-kpis b { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 640px) { .st-kpis { grid-template-columns: repeat(2, 1fr); } }
.st-spin { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: stspin .8s linear infinite; } @keyframes stspin { to { transform: rotate(360deg); } }
.st-big { padding: 11px 20px; font-size: 14.5px; }
.st-alt summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; } .st-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); cursor: pointer; font-size: 14px; } .st-chip small { color: var(--muted); } .st-chip input { margin: 0; accent-color: var(--accent); }

/* ---------- date range picker */
.rp { position: relative; display: inline-block; }
.rp-btn { display: inline-flex; align-items: center; gap: 12px; padding: 9px 14px 9px 13px; border-radius: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-weight: 500; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rp-btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: none; filter: none; }
.rp-btn[aria-expanded=true] { border-color: var(--accent); }
.rp-btn > svg:first-child { color: var(--accent); flex: none; } .rp-btn > svg:last-child { color: var(--muted); flex: none; transition: transform .2s; } .rp-btn[aria-expanded=true] > svg:last-child { transform: rotate(180deg); }
.rp-main { display: flex; flex-direction: column; line-height: 1.25; } .rp-main b { font-size: 14px; font-weight: 600; } .rp-main small { color: var(--muted); font-size: 12.5px; font-weight: 450; }
.rp-pop { position: fixed; z-index: 90; left: 0; top: 0; display: flex; width: 760px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top left; transition: opacity .16s ease, transform .16s ease; }
.rp-pop.on { opacity: 1; transform: none; } .rp-pop[hidden] { display: none; }
.rp-back { display: none; }
.rp-pre { flex: none; width: 190px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 2px; }
.rp-pre button { text-align: left; padding: 9px 12px; border-radius: 10px; background: transparent; color: var(--ink); font-weight: 500; font-size: 14px; border: 0; transition: background .12s, color .12s; transform: none; }
.rp-pre button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); filter: none; transform: none; }
.rp-pre button[aria-pressed=true] { background: var(--accent); color: var(--accent-ink, #fff); }
.rp-body { flex: 1; min-width: 0; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.rp-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.rp-tabs [role=tab] { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); color: var(--ink); border: 1.5px solid transparent; transform: none; line-height: 1.25; font-weight: 500; }
.rp-tabs [role=tab] small { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; } .rp-tabs [role=tab] b { font-size: 13.5px; font-weight: 600; }
.rp-tabs [role=tab][aria-selected=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.rp-tabs .rp-ctab[aria-selected=true] { border-color: var(--blue, #2563eb); background: color-mix(in srgb, var(--blue, #2563eb) 8%, var(--card)); }
.rp-cmp { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer; margin-left: auto; } .rp-cmp input { position: absolute; opacity: 0; pointer-events: none; }
.rp-sw { width: 34px; height: 20px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 20%, transparent); position: relative; transition: background .18s; flex: none; }
.rp-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s; }
.rp-cmp input:checked + .rp-sw { background: var(--accent); } .rp-cmp input:checked + .rp-sw::after { transform: translateX(14px); } .rp-cmp input:focus-visible + .rp-sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp-tabs select { padding: 7px 28px 7px 12px; border-radius: 10px; font-size: 13.5px; }
.rp-cal { position: relative; display: flex; gap: 22px; justify-content: center; }
.rp-m { flex: 1; min-width: 0; max-width: 280px; } .rp-mh { text-align: center; font-weight: 650; font-size: 14.5px; margin-bottom: 10px; letter-spacing: -.01em; }
.rp-wd, .rp-g { display: grid; grid-template-columns: repeat(7, 1fr); } .rp-wd span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; }
.rp-d { position: relative; aspect-ratio: 1; min-height: 34px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 500; border-radius: 0; transform: none; transition: background .1s, color .1s; }
.rp-d:hover:not(:disabled):not(.start):not(.end) { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 50%; filter: none; transform: none; }
.rp-d.off { color: color-mix(in srgb, var(--muted) 55%, transparent); cursor: not-allowed; opacity: .5; }
.rp-d.mid { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.rp-d.start, .rp-d.end { background: var(--accent); color: var(--accent-ink, #fff); font-weight: 650; z-index: 1; }
.rp-d.start { border-radius: 50% 0 0 50%; } .rp-d.end { border-radius: 0 50% 50% 0; } .rp-d.start.end, .rp-d.one { border-radius: 50%; }
.rp-d.oth:not(.start):not(.end):not(.mid) { background: color-mix(in srgb, var(--blue, #2563eb) 13%, transparent); } .rp-d.oth.mid { background: linear-gradient(color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--blue, #2563eb) 13%, transparent)); }
.rp-d.today::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .55; }
.rp-nav { position: absolute; top: -2px; left: 0; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); font-size: 18px; line-height: 1; transform: none; } .rp-nav.r { left: auto; right: 0; } .rp-nav:hover { background: color-mix(in srgb, var(--ink) 10%, var(--bg-2)); filter: none; transform: none; }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); } .rp-hint { color: var(--muted); font-size: 13px; } .rp-btns { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 639px) {
  .rp, .rp-btn { display: flex; width: 100%; } .rp-btn { justify-content: flex-start; } .rp-btn > svg:last-child { margin-left: auto; }
  .rp-back { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(0, 0, 0, .38); opacity: 0; pointer-events: none; transition: opacity .16s; } .rp-back.on { opacity: 1; pointer-events: auto; }
  .rp-pop { left: 0 !important; right: 0; top: auto !important; bottom: 0 !important; width: auto !important; max-width: none; max-height: 90vh !important; border-radius: 22px 22px 0 0; flex-direction: column; transform: translateY(24px); overflow-y: auto; }
  .rp-pre { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; scrollbar-width: none; } .rp-pre::-webkit-scrollbar { display: none; } .rp-pre button { white-space: nowrap; flex: none; }
  .rp-cal { gap: 0; } .rp-m { max-width: none; } .rp-cmp { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .rp-pop, .rp-btn, .rp-sw, .rp-sw::after { transition: none; } }
/* the global button states (red on hover/press) must not leak into the picker */
.rp-btn, .rp-btn:hover, .rp-btn:active, .rp-btn:focus { background: var(--card); color: var(--ink); }
.rp-nav:active { background: color-mix(in srgb, var(--ink) 14%, var(--bg-2)); }
.rp-d:active:not(.start):not(.end):not(.mid) { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.rp-pre button:active:not([aria-pressed=true]) { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.rp-tabs [role=tab]:active { color: var(--ink); }

/* a quiet icon instead of a button */
.ic-refresh, .ic-refresh:hover, .ic-refresh:active, .ic-refresh:focus { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 0; box-shadow: none; background: transparent; color: var(--muted); transition: color .15s, background .15s; }
.ic-refresh:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); } .ic-refresh:active { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.ic-refresh:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic-refresh svg { transition: transform .45s cubic-bezier(.4, 0, .2, 1); } .ic-refresh:hover svg { transform: rotate(60deg); } .ic-refresh.spin svg { transform: rotate(360deg); }
@media (prefers-reduced-motion: reduce) { .ic-refresh svg { transition: none; } }

/* Pinterest account switch (sidebar) and list (Account page) */
.acctsw { position: relative; margin-top: 8px; }
.as-btn, .as-btn:hover, .as-btn:active, .as-btn:focus { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; background: var(--card-2, var(--card)); color: var(--ink); border: 1px solid var(--line); box-shadow: none; text-align: left; font-weight: 500; transform: none; filter: none; }
.as-btn:hover { border-color: var(--muted); } .as-btn > svg { margin-left: auto; color: var(--muted); flex: none; }
.as-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2, var(--accent)), var(--accent)); color: var(--accent-ink, #fff); font-weight: 700; font-size: 13px; }
.as-av.plus { background: var(--bg-2); color: var(--muted); font-size: 15px; }
.as-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .as-t small { color: var(--muted); font-size: 11.5px; font-weight: 500; } .as-t b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 70; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 48px rgba(0, 0, 0, .22); } .as-menu[hidden] { display: none; }
.as-menu button, .as-menu button:hover, .as-menu button:active, .as-act, .as-act:hover { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px; border-radius: 10px; background: transparent; color: var(--ink); border: 0; box-shadow: none; text-align: left; font-weight: 500; transform: none; filter: none; text-decoration: none; }
.as-menu button:hover, .as-act:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); } .as-menu button[aria-selected=true] { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.as-ok { margin-left: auto; color: var(--accent); font-weight: 700; } .as-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.pa-list { display: grid; gap: 8px; } .pa-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); flex-wrap: wrap; }
.pa-t { flex: 1; min-width: 160px; display: flex; flex-direction: column; line-height: 1.3; } .pa-t small { color: var(--muted); font-size: 12.5px; } .pa-b { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-b button.danger { color: var(--bad, #b91c1c); }

/* dashboard header: greeting and time on the left, dates and refresh together on the right, centred on the greeting */
.dhero { align-items: center; } .dhero .dh-upd { color: var(--muted); font-size: 13.5px; } .dhero-r { display: flex; align-items: center; gap: 4px; }
@media (max-width: 640px) { .dhero { align-items: flex-start; } .dhero-r { width: 100%; } .dhero-r .rp { flex: 1; } }

/* buttons inside the red hero: the hover keeps readable text (white on white before) */
.hero2 .btn:hover, .hero2 button:hover, .hero2 a.btn:hover { background: rgba(255, 255, 255, .9); color: #9f1239; border-color: #fff; filter: none; transform: none; box-shadow: none; }
.hero2 .btn.ghost:hover, .hero2 button.ghost:hover, .hero2 a.btn.ghost:hover { background: rgba(255, 255, 255, .28); color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero2 .btn:active, .hero2 button:active { background: rgba(255, 255, 255, .8); color: #9f1239; } .hero2 .btn.ghost:active { background: rgba(255, 255, 255, .22); color: #fff; }

.cp-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; } .cp-filter .chip, .cp-filter .chip:hover { cursor: pointer; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-weight: 500; transform: none; filter: none; }
.cp-filter .chip[aria-pressed=true] { background: color-mix(in srgb, var(--accent) 12%, var(--card)); border-color: var(--accent); color: var(--accent); } .cp-filter .chip[aria-pressed=false] { opacity: .55; text-decoration: line-through; }

/* to-do detail pages */
.td-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); } .td-row:first-child { border-top: 0; }
.td-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .td-main > a { color: var(--ink); text-decoration: none; } .td-main > a:hover b { text-decoration: underline; }
.td-chips { display: flex; flex-wrap: wrap; gap: 6px; } .td-lost { background: color-mix(in srgb, var(--bad, #b91c1c) 10%, transparent); color: var(--bad, #b91c1c); text-decoration: line-through; } .td-gain { background: color-mix(in srgb, var(--green, #16a34a) 12%, transparent); color: var(--green, #16a34a); }
.td-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: none; } .td-act .btn { padding: 6px 12px; font-size: 13px; }
.td-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; }
.cp-flash { animation: cpflash 2.4s ease-out 1; } @keyframes cpflash { 0%, 55% { outline: 3px solid var(--accent); outline-offset: 3px; } 100% { outline: 3px solid transparent; outline-offset: 3px; } }
@media (max-width: 640px) { .td-row { flex-wrap: wrap; } .td-act { flex-direction: row; align-items: center; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cp-flash { animation: none; outline: 3px solid var(--accent); outline-offset: 3px; } }

/* to-dos you can tick off, snooze or hide */
.dn-item { position: relative; border-top: 1px solid var(--line); transition: opacity .2s, transform .2s, max-height .25s; max-height: 160px; overflow: hidden; } .dh + .dn-item { border-top: 0; } .dn-item.out { opacity: 0; transform: translateX(14px); max-height: 0; }
.dn-item .dn-row { border-top: 0; padding-right: 14px; } .dn-dot svg { width: 19px; height: 19px; color: var(--ink-2, var(--ink)); }
.dn-acts { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; padding: 4px 0 4px 36px; background: linear-gradient(90deg, transparent, var(--card-2, var(--card)) 30%); opacity: 0; pointer-events: none; transition: opacity .15s; } .dn-item:hover .dn-acts, .dn-item:focus-within .dn-acts { opacity: 1; pointer-events: auto; } .dn-item:hover .dn-go, .dn-item:focus-within .dn-go, .dn-item:hover .dn-th, .dn-item:focus-within .dn-th { opacity: 0; }
.dn-a, .dn-a:hover, .dn-a:active, .dn-a:focus { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; background: transparent; color: var(--muted); border: 0; box-shadow: none; transform: none; filter: none; } .dn-a:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); } .dn-a[data-s=done]:hover { color: var(--green, #16a34a); }
.dn-hid-t, .dn-hid-t:hover, .dn-hid-t:active { margin-left: auto; padding: 4px 10px; background: transparent; color: var(--muted); border: 0; box-shadow: none; font-size: 13px; font-weight: 500; transform: none; filter: none; } .dn-hid-t:hover { color: var(--ink); }
.dn-hidden { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; } .dn-hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px; } .dn-hrow span { display: flex; flex-direction: column; min-width: 0; } .dn-hrow small { color: var(--muted); } .dn-hrow .ghost { padding: 5px 12px; font-size: 13px; }
@media (hover: none) { .dn-acts { opacity: 1; position: static; transform: none; padding: 0 0 10px 52px; } .dn-item .dn-row { padding-right: 4px; } .dn-item:hover .dn-go { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dn-item, .dn-acts { transition: none; } }

/* sidebar: show fewer tools, the unread dot for What's new */
.nav-all, .nav-all:hover, .nav-all:active { display: block; width: 100%; margin-top: 6px; padding: 8px 12px; text-align: left; background: transparent; color: var(--muted); border: 0; box-shadow: none; font-size: 13px; font-weight: 500; transform: none; filter: none; border-radius: 10px; } .nav-all:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-dot { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.help-dl { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 8px 18px; margin: 0; } .help-dl dt { font-weight: 600; } .help-dl dd { margin: 0; color: var(--ink-2, var(--ink)); }
.help-q { border-top: 1px solid var(--line); padding: 10px 0; } .help-q:first-of-type { border-top: 0; } .help-q summary { cursor: pointer; font-weight: 600; } .help-q p { margin: 8px 0 0; color: var(--ink-2, var(--ink)); line-height: 1.55; }
kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); font: inherit; font-size: 12.5px; }
@media (max-width: 640px) { .help-dl { grid-template-columns: 1fr; gap: 2px; } .help-dl dd { margin-bottom: 8px; } }

/* goals */
.gl-form { padding: 16px 18px; margin-bottom: 16px; } .gl-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; } .gl-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); } .gl-row label:first-child { flex: 1 1 260px; } .gl-row input, .gl-row select { min-width: 130px; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; } .gl-card { padding: 16px 18px; } .gl-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; } .gl-card.done { opacity: .8; }
.gl-nums { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; } .gl-nums b { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.gl-bar { height: 9px; border-radius: 99px; background: var(--bg-2); overflow: hidden; } .gl-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2, var(--accent)), var(--accent)); transition: width .4s; } .gl-card.done .gl-bar i { background: var(--green, #16a34a); }
.gl-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13px; }
.gl-mini { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr); gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; } .gl-mini:first-of-type { border-top: 0; } .gl-mini-t { display: flex; flex-direction: column; min-width: 0; } .gl-mini-t small { color: var(--muted); } @media (max-width: 640px) { .gl-mini { grid-template-columns: 1fr; gap: 6px; } }

/* export menu and printing */
.exp { position: relative; } .exp-s { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-weight: 500; color: var(--ink); } .exp-s::-webkit-details-marker { display: none; } .exp-s:hover { border-color: var(--muted); }
.exp-m { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.exp-m button, .exp-m button:hover, .exp-m button:active { text-align: left; padding: 9px 12px; border-radius: 10px; background: transparent; color: var(--ink); border: 0; box-shadow: none; font-weight: 500; transform: none; filter: none; } .exp-m button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.rp-mail summary { cursor: pointer; color: var(--accent); font-size: 13.5px; } .rp-mail small { display: block; margin-top: 6px; }
@media print {
  .sidebar, .topbar, .scrim, #toast, .rp, .exp, .dhero-r, .ic-refresh, .ps-toast, #dtip, .seg, .dn-acts, .cp-x, .hd, .nav-all, .no-print, .rp-pop, .rp-back, .tour-card, .tour-back { display: none !important; }
  body, .content, main { background: #fff !important; } .content { margin: 0 !important; padding: 0 !important; } .shell { display: block !important; }
  .card, .dcard, .kpi, .cp-card, .cp-pin { box-shadow: none !important; break-inside: avoid; border: 1px solid #ddd !important; }
  .dgrid, .cp-grid, .kpis { display: block !important; } .dgrid > *, .cp-grid > *, .kpis > * { margin-bottom: 10px; }
  a { color: inherit !important; text-decoration: none !important; } * { animation: none !important; transition: none !important; }
}

.cp-sp { vertical-align: middle; margin-left: 2px; }

/* team: workspace banner and the workspace list in the switch */
#wsbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 18px; background: color-mix(in srgb, var(--amber, #d97706) 14%, var(--card)); border-bottom: 1px solid color-mix(in srgb, var(--amber, #d97706) 35%, transparent); font-size: 13.5px; } #wsbar .ghost { padding: 5px 12px; font-size: 13px; }
.as-h { padding: 6px 9px 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@media print { #wsbar { display: none !important; } }

/* small spacing helpers (they replace the most repeated inline styles) */
.mb12 { margin-bottom: 12px !important; } .mb14 { margin-bottom: 14px !important; } .mb16 { margin-bottom: 16px !important; } .mt8 { margin-top: 8px !important; } .mt10 { margin-top: 10px !important; } .mt0 { margin-top: 0 !important; } .mx0 { margin-left: 0 !important; margin-right: 0 !important; } .m0 { margin: 0 !important; } .p16 { padding: 16px !important; } .fs12 { font-size: 12px !important; }

/* export: a quiet icon like the refresh icon, same height as the date picker's neighbours */
.exp-i, .exp-s { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; background: transparent; border: 0; color: var(--muted); } .exp-s:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); border: 0; }
.dhero-r { gap: 2px; } .dhero-r > * { align-self: center; }
/* sign out: the same small square as the compact-rows button next to it */
.side-tools #signout { flex: 1; height: 34px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; margin: 0; font-size: 13px; font-weight: 500; }

/* Settings: appearance */
.theme-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
.theme-seg button, .theme-seg button:hover, .theme-seg button:active { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; font-weight: 500; font-size: 13.5px; transform: none; filter: none; }
.theme-seg button:hover { border-color: var(--muted); } .theme-seg button[aria-pressed=true], .theme-seg button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); color: var(--ink); } .theme-seg button[aria-pressed=true] svg, .theme-seg button.on svg { color: var(--accent); }
.tg { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); cursor: pointer; } .tg > span:first-child { display: flex; flex-direction: column; } .tg small { color: var(--muted); font-size: 13px; }
.tg input { position: absolute; opacity: 0; pointer-events: none; } .tg-sw { flex: none; width: 40px; height: 24px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 20%, transparent); position: relative; transition: background .18s; } .tg-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s; }
.tg input:checked + .tg-sw { background: var(--accent); } .tg input:checked + .tg-sw::after { transform: translateX(16px); } .tg input:focus-visible + .tg-sw { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Goals form */
.gl-form { padding: 22px 24px 24px; } .gl-form h3 { margin: 0; font-size: 17px; } .gl-sub { margin: 4px 0 18px; font-size: 14px; }
.gl-form .gl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: start; }
.gl-form .gl-what { grid-column: 1 / -1; } .gl-form .gl-go { justify-self: start; }
.gl-form .gl-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); margin: 0; }
.gl-form select, .gl-form input { height: 44px; box-sizing: border-box; width: 100%; margin: 0; padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 400; color: var(--ink); }
.gl-form input[type=number] { appearance: textfield; -moz-appearance: textfield; } .gl-form input[type=number]::-webkit-inner-spin-button { display: none; }
.gl-form small { font-size: 13px; font-weight: 400; color: var(--muted); min-height: 18px; } .gl-form small b { color: var(--ink); }
.gl-form .gl-go { height: 44px; margin-top: 25px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border-radius: 12px; }
.gl-empty { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 34px 20px; border: 1.5px dashed var(--line); border-radius: 18px; color: var(--muted); } .gl-empty b { color: var(--ink); font-size: 16px; }
@media (min-width: 1100px) { .gl-form .gl-row { grid-template-columns: minmax(0, 1fr) 150px 190px auto; } .gl-form .gl-what { grid-column: auto; } }
@media (max-width: 560px) { .gl-form .gl-go { justify-self: stretch; justify-content: center; } }
.gl-form select, .gl-form input { border: 1px solid var(--line); background-color: var(--card, #fff); box-shadow: 0 1px 2px rgba(23,23,26,.05); font-family: inherit; }
.gl-form select:focus, .gl-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

.pat-row { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; } .pat-row:first-of-type { border-top: 0; padding-top: 2px; } .pat-row small { margin-top: 2px; font-size: 13px; }
/* touch: small help dots get a larger invisible hit area; colour inputs are not tiny */
.hd { position: relative; } .hd::after { content: ''; position: absolute; inset: -12px; }
@media (max-width: 560px) { input[type=color] { height: 40px; min-width: 52px; } }

/* a button that sits in a row of .btn links: same size and shape, icon beside the label */
button.btn-sm { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 13px; font-weight: 600; line-height: 1.5; border-radius: 99px; } button.btn-sm svg { flex: none; }
@media (max-width: 700px) { .cp-tabs { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } .cp-tabs::-webkit-scrollbar { display: none; } }

/* goal plan */
.gl-grid:has(.gl-plan) { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } .gl-card { display: flex; flex-direction: column; }
.gl-plan { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); } .gl-plan summary { display: flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 650; font-size: 14px; list-style: none; color: var(--accent); } .gl-plan summary::-webkit-details-marker { display: none; }
.gl-plan ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: gl; display: flex; flex-direction: column; gap: 8px; }
.gl-plan li { counter-increment: gl; } .gl-plan li a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 40px; border-radius: 12px; background: var(--bg-2); color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.4; } .gl-plan li a:hover { background: var(--accent-soft); }
.gl-plan li a::before { content: counter(gl); position: absolute; left: 11px; top: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--accent); font-size: 12px; font-weight: 700; box-shadow: 0 0 0 1px var(--line); }
.gl-plan li a span { color: var(--muted); font-size: 13px; font-weight: 400; }

.px-bw { margin: 12px 0; } .px-bw-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; } .px-bw-t b { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; } .px-bw-t input { width: 76px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 14px; }
/* phones and tablets: a field under 16px makes iOS zoom the page in when it is tapped, and it never zooms back out */
@media (pointer: coarse), (max-width: 820px) { input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { font-size: 16px !important; } }

/* Alerts */
.al-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .al-head h1 { margin: 0; } .al-acts { display: flex; gap: 8px; } .al-acts button { display: inline-flex; align-items: center; gap: 7px; }
.al-over { padding: 16px 18px; margin-bottom: 14px; } .al-over-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.al-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.al-tile, .al-tile:hover { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid transparent; transition: border-color .15s, background .15s; } .al-tile:hover { border-color: var(--line-2); background: var(--card-2); } .al-tile:disabled { opacity: .45; cursor: default; } .al-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.al-tile b { font-size: 24px; font-weight: 650; letter-spacing: -.01em; } .al-tile span { font-size: 13px; color: var(--muted); } .al-tile.up b { color: var(--green); } .al-tile.down b { color: var(--bad); } .al-tile.hot b { color: var(--amber); } .al-tile.info b { color: var(--blue); }
.al-movers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); } .al-movers > div { display: flex; flex-direction: column; gap: 4px; } .al-movers a { color: var(--ink); text-decoration: none; font-size: 14px; } .al-movers a:hover { text-decoration: underline; } .al-movers span { font-weight: 650; margin-right: 4px; font-variant-numeric: tabular-nums; }
.al-filter { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; } .al-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.al-chip, .al-chip:hover { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 550; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); } .al-chip:hover { border-color: var(--muted); } .al-chip span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.al-chip[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .al-chip[aria-pressed=true] span { color: var(--accent-ink); } .al-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.al-tools { display: flex; gap: 12px; align-items: center; } .al-search input { height: 36px; width: 230px; padding: 0 12px; border-radius: 10px; font-size: 14px; margin: 0; } .tg-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.al-day { margin: 20px 0 8px; font-size: 14px; font-weight: 650; display: flex; align-items: baseline; gap: 8px; } .al-day small { font-weight: 500; color: var(--muted); }
.al-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; } .al-row.unread { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.al-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); } .al-ic.up { background: var(--green-soft); color: var(--green); } .al-ic.down { background: var(--bad-soft); color: var(--bad); } .al-ic.hot, .al-ic.warn { background: var(--amber-soft); color: var(--amber); } .al-ic.info { background: var(--blue-soft); color: var(--blue); }
.al-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .al-main b { font-size: 15px; font-weight: 600; } .al-main b a { color: var(--ink); text-decoration: none; } .al-main b a:hover { text-decoration: underline; } .al-main small { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.al-delta { font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 3px 9px; border-radius: 99px; background: var(--bg-2); } .al-delta.up { background: var(--green-soft); } .al-delta.down { background: var(--bad-soft); } .al-delta.info { background: var(--blue-soft); color: var(--blue); }
.al-row time { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; } .al-open { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--accent-text, var(--accent)); text-decoration: none; padding: 6px 10px; border-radius: 9px; } .al-open:hover { background: var(--accent-soft); }
.al-none { padding: 22px; text-align: center; color: var(--muted); }
.al-detail-h h1 { margin: 0 0 4px; font-size: 24px; } .al-detail-h .bar { margin: 12px 0 16px; }
.al-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; } .al-pin { display: flex; gap: 12px; padding: 12px; align-items: flex-start; } .al-pin-img { flex: none; width: 84px; height: 112px; border-radius: 10px; overflow: hidden; background: var(--bg-2); } .al-pin-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-pin b { display: block; font-size: 14px; line-height: 1.35; } .al-pin small { display: block; margin-top: 3px; } .al-pin-l { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; } .al-pin-l a { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
@media (max-width: 700px) { .al-row { grid-template-columns: 38px minmax(0, 1fr) auto; row-gap: 6px; } .al-row time { grid-column: 2; grid-row: 2; } .al-row .al-open { grid-column: 3; grid-row: 2; } .al-search input { width: 100%; } .al-tools { width: 100%; } .al-search { flex: 1; } }

/* Pin Health */
.ph-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; margin-bottom: 16px; } .ph-card { padding: 16px 18px; } .ph-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; } .ph-card h3 svg { color: var(--accent); }
.ph-big { font-size: 17px; margin: 0 0 6px; } .ph-big b { font-size: 26px; letter-spacing: -.01em; margin-right: 4px; } .ph-card p { margin: 0 0 8px; } .ph-card .muted { font-size: 13.5px; }
.ph-conc { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; margin: 6px 0; font-size: 13.5px; } .ph-conc b { text-align: right; font-variant-numeric: tabular-nums; }
.ph-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.ph-blurb { margin: 8px 2px 10px; max-width: 760px; }
.ph-t td { vertical-align: middle; } .ph-pin { display: flex; gap: 12px; align-items: center; min-width: 260px; } .ph-pin img, .ph-noimg { flex: none; width: 44px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--bg-2); display: block; } .ph-pin b { display: block; font-size: 14px; line-height: 1.3; } .ph-pin small { display: block; margin-top: 2px; }
.ph-t small.up { color: var(--green); } .ph-t small.down { color: var(--bad); }
.ph-cat, .ph-cat:hover { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--bg-2); color: var(--ink); } .ph-cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ph-cat.down { background: var(--bad-soft); color: var(--bad); } .ph-cat.warn { background: var(--amber-soft); color: var(--amber); } .ph-cat.up { background: var(--green-soft); color: var(--green); } .ph-cat.info { background: var(--blue-soft); color: var(--blue); } .ph-cat.muted { color: var(--muted); } .ph-cat[aria-expanded=true] svg { transform: rotate(180deg); }
.ph-more td { background: var(--bg-2); padding: 14px 18px !important; } .ph-detail ul { margin: 0 0 10px; padding-left: 18px; line-height: 1.6; font-size: 14px; } .ph-detail p { margin: 6px 0; font-size: 14px; } .ph-detail .bar { margin: 10px 0 0; flex-wrap: wrap; gap: 8px; }

/* Pin Health header, second pass */
.ph-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ph-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 132px; }
.ph-kl { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .ph-kn { font-size: 38px; line-height: 1.05; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .ph-ks { font-size: 13.5px; color: var(--muted); }
.ph-kpi.down .ph-kn { color: var(--bad); } .ph-kpi.warn .ph-kn { color: var(--amber); } .ph-kpi.up .ph-kn { color: var(--green); } .ph-kpi.info .ph-kn { color: var(--ink); }
.ph-kb { margin-top: auto; height: 6px; } .ph-kbtn, .ph-kbtn:hover { all: unset; cursor: pointer; font-size: 13px; font-weight: 650; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-top: 4px; } .ph-kbtn:hover { text-decoration-thickness: 2px; } .ph-kbtn:disabled { opacity: .5; cursor: default; } .ph-km { font-size: 12px; }
.ph-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .ph-card { padding: 18px 20px; }
.ph-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 650; } .ph-hi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); } .ph-hi.info { background: var(--blue-soft); color: var(--blue); } .ph-hi.warn { background: var(--amber-soft); color: var(--amber); } .ph-hi.up { background: var(--green-soft); color: var(--green); }
.ph-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 10px; } .ph-mini div { display: flex; flex-direction: column; } .ph-mini b { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; } .ph-mini span { font-size: 12.5px; color: var(--muted); }
.ph-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); } .ph-dot.down { background: var(--bad); } .ph-dot.warn { background: var(--amber); } .ph-dot.up { background: var(--green); } .ph-dot.info { background: var(--blue); } .al-chip[aria-pressed=true] .ph-dot { background: var(--accent-ink); }
@media (max-width: 900px) { .ph-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 480px) { .ph-kn { font-size: 32px; } .ph-kpi { min-height: 118px; padding: 14px; } }

.ph-dash-n { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; } .ph-dash-n b { font-size: 30px; letter-spacing: -.02em; } .ph-dash-n span { color: var(--muted); }

.ph-dash-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; } .ph-donut { width: 140px; height: 140px; flex: none; }
.ph-donut-n { font-size: 30px; font-weight: 700; fill: var(--ink); letter-spacing: -.02em; } .ph-donut-s { font-size: 10.5px; fill: var(--muted); }
.ph-dash-side { flex: 1; min-width: 150px; } .ph-dash-pct b { font-size: 26px; letter-spacing: -.02em; margin-right: 6px; } .ph-dash-pct span { color: var(--muted); font-size: 13px; }
.ph-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; margin-top: 10px; background: var(--bg-2); } .ph-bar i { display: block; min-width: 3px; }
.ph-legs { margin-top: 12px; display: grid; gap: 2px; } .ph-leg { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 7px 4px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 13.5px; } .ph-leg:hover { background: var(--bg-2); }
.ph-leg i { width: 10px; height: 10px; border-radius: 3px; } .ph-leg b { font-variant-numeric: tabular-nums; }

/* ===== Boards: overview (table, cards, map) and one board ===== */
.bd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.bd-tile { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; box-shadow: var(--shadow-sm); color: var(--ink); font: inherit; }
button.bd-tile { cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; } button.bd-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); background: var(--card); color: var(--ink); filter: none; }
.bd-tile .k { font-size: 12.5px; color: var(--muted); font-weight: 600; } .bd-tile b { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; } .bd-tile small { color: var(--muted); font-size: 12.5px; }
.bd-tile.hot b { color: var(--accent); } .bd-tile.warn b { color: var(--c-amber); }
.bd-bar-tools { display: grid; gap: 12px; margin-bottom: 14px; } .bd-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.bd-search input { width: 260px; padding: 9px 14px; border-radius: 12px; background: var(--card); } .bd-ctl { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; } .bd-chips button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 13.5px; box-shadow: none; transform: none; }
.bd-chips button em { font-style: normal; font-size: 12px; color: var(--muted); background: var(--bg-2); border-radius: 99px; padding: 1px 7px; } .bd-chips button:hover { border-color: var(--line-2); filter: none; transform: none; box-shadow: none; }
.bd-chips button.on { background: var(--ink); color: var(--card); border-color: var(--ink); } .bd-chips button.on em { background: rgba(255,255,255,.18); color: inherit; }
.bd-views button { display: inline-flex; align-items: center; gap: 6px; } .bd-views svg { flex: none; }
.bd-tablewrap { padding: 0; overflow-x: auto; }
.bd-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.bd-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 13px 10px; border-bottom: 1px solid var(--line); background: var(--card-2); white-space: nowrap; position: sticky; top: 0; }
.bd-table th[data-s] { cursor: pointer; user-select: none; } .bd-table th[data-s]:hover, .bd-table th.sorted { color: var(--ink); } .bd-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.bd-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; } .bd-table tbody tr:last-child td { border-bottom: 0; }
.bd-table tbody tr[data-open] { cursor: pointer; transition: background .15s; } .bd-table tbody tr[data-open]:hover, .bd-table tbody tr[data-open]:focus-visible { background: color-mix(in srgb, var(--accent) 5%, var(--card)); outline: none; }
.bd-name { display: flex; align-items: center; gap: 12px; min-width: 200px; } .bd-name a { color: var(--ink); text-decoration: none; } .bd-name b { font-weight: 650; } .bd-name small { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 3px; font-size: 12px; }
.bd-th { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex: none; background: var(--bg-2); } .bd-th.ph { display: grid; place-items: center; color: var(--muted); font-weight: 700; } .bd-th.lg { width: 76px; height: 76px; border-radius: 18px; }
.bd-flag { font-size: 11.5px; color: color-mix(in srgb, var(--c-amber) 50%, var(--ink)); background: color-mix(in srgb, var(--c-amber) 14%, transparent); padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.bd-perf { white-space: nowrap; min-width: 128px; } .bd-perf > span:last-child { margin-left: 10px; font-weight: 650; font-variant-numeric: tabular-nums; display: inline-block; min-width: 24px; }
.bd-bar { display: inline-block; vertical-align: middle; width: 72px; height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; } .bd-bar i { display: block; height: 100%; border-radius: 99px; background: var(--muted); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bd-bar.t-hi i { background: var(--c-green); } .bd-bar.t-mid i { background: var(--c-amber); } .bd-bar.t-lo i { background: var(--accent); } .bd-bar.pot i { background: linear-gradient(90deg, var(--c-blue), #8b5cf6); }
.bd-sh { display: block; font-size: 11.5px; }
.bd-tr { white-space: nowrap; font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; } .bd-tr.up { color: var(--green); } .bd-tr.down { color: var(--bad); } .bd-tr.flat { color: var(--muted); }
.bd-chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.bd-chip.up { background: color-mix(in srgb, var(--c-green) 18%, transparent); color: color-mix(in srgb, var(--green) 72%, var(--ink)); } .bd-chip.down { background: color-mix(in srgb, var(--accent) 14%, transparent); color: color-mix(in srgb, var(--accent) 72%, var(--ink)); } .bd-chip.mid, .bd-chip.warn { background: color-mix(in srgb, var(--c-amber) 20%, transparent); color: color-mix(in srgb, var(--c-amber) 36%, var(--ink)); }
.bd-chip.hot { background: var(--accent); color: var(--accent-ink, #fff); } .bd-chip.info { background: color-mix(in srgb, var(--c-blue) 16%, transparent); color: color-mix(in srgb, var(--c-blue) 42%, var(--ink)); } .bd-chip.mute { background: var(--bg-2); color: color-mix(in srgb, var(--muted) 70%, var(--ink)); }
/* cards */
.bd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.bd-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; } .bd-card:hover, .bd-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); outline: none; }
.bd-cover { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; } .bd-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; } .bd-card:hover .bd-cover img { transform: scale(1.05); }
.bd-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; font-weight: 800; color: var(--muted); } .bd-cover-s { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); }
.bd-cover-t { position: absolute; left: 16px; right: 16px; bottom: 12px; color: #fff; } .bd-cover-t b { display: block; font-size: 18px; letter-spacing: -.01em; line-height: 1.2; } .bd-cover-t small { opacity: .85; font-size: 12.5px; } .bd-cover-c { position: absolute; top: 12px; right: 12px; }
.bd-card-b { padding: 14px 16px 16px; display: grid; gap: 10px; }
.bd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .bd-stats div { display: grid; } .bd-stats b { font-size: 19px; letter-spacing: -.01em; } .bd-stats small { color: var(--muted); font-size: 11.5px; }
.bd-gauge { display: grid; grid-template-columns: 78px 1fr 28px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); } .bd-gauge .bd-bar { width: 100%; } .bd-gauge em { font-style: normal; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.bd-card-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 22px; }
/* map */
.bd-map { padding: 18px 18px 8px; } .bd-map-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; } .bd-map-h b { display: block; font-size: 16px; } .bd-map-h small { font-size: 13px; }
.bd-map-c { position: relative; } .bd-map-c svg { width: 100%; height: auto; display: block; }
.bd-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; } .bd-ax { font-size: 11.5px; fill: var(--muted); } .bd-axt { font-size: 12.5px; fill: var(--muted); font-weight: 650; } .bd-q { font-size: 11px; font-weight: 800; letter-spacing: .1em; opacity: .85; } .bd-lbl { font-size: 12px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.bd-dot { cursor: pointer; outline: none; } .bd-dot circle { transition: fill-opacity .15s, stroke-width .15s; } .bd-dot:hover circle, .bd-dot:focus circle { fill-opacity: 1; stroke-width: 4; }
.bd-tip { position: absolute; z-index: 5; background: var(--ink); color: var(--card); border-radius: 14px; padding: 11px 14px; font-size: 13px; line-height: 1.45; max-width: 280px; pointer-events: none; box-shadow: var(--shadow); } .bd-tip b { display: block; font-size: 14px; margin-bottom: 2px; } .bd-tip .muted { color: inherit; opacity: .7; margin-top: 4px; }
/* one board */
.bd-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; } .bd-hero-t { flex: 1; min-width: 220px; } .bd-hero h1 { margin: 0; font-size: 30px; } .bd-hero p { margin: 4px 0 0; }
.bd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; } .bd-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; box-shadow: var(--shadow-sm); } .bd-kpi span { font-size: 12.5px; color: var(--muted); font-weight: 600; } .bd-kpi b { font-size: 24px; letter-spacing: -.02em; }
.bd-todo-h { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 12px; } .bd-todo-h h3 { margin: 0; font-size: 18px; }
.bd-tips { display: grid; gap: 12px; }
.bd-tip-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line-2); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.bd-tip-card.high { border-left-color: var(--accent); } .bd-tip-card.medium { border-left-color: var(--c-amber); } .bd-tip-card.low { border-left-color: var(--c-blue); }
.bd-tip-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); } .bd-tip-card.high .ic { background: var(--accent-soft); color: var(--accent); }
.bd-tip-card .t b { font-size: 16px; display: block; } .bd-tip-card .t p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.bd-tip-card .a { display: grid; gap: 8px; justify-items: end; } .bd-impact { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); } .bd-impact.high { color: var(--accent); }
.bd-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; } .bd-pin { display: grid; gap: 7px; color: var(--ink); text-decoration: none; } .bd-pin .im { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--bg-2); } .bd-pin img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .bd-pin:hover img { transform: scale(1.05); }
.bd-pin .ov { position: absolute; left: 8px; top: 8px; } .bd-pin b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .bd-pin .st { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); } .bd-pin .st em { font-style: normal; font-weight: 700; color: var(--ink); } .bd-pin .bd-bar { width: 100%; }
@media (max-width: 860px) { .bd-tip-card { grid-template-columns: 40px 1fr; } .bd-tip-card .a { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; } .bd-ctl { margin-left: 0; } .bd-search input { width: 100%; } .bd-views span { display: none; } }

.bd-tile.wide b { font-size: 19px; line-height: 1.25; }
.bd-cover-c .bd-chip { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.18); padding-left: 22px; position: relative; } .bd-cover-c .bd-chip::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--c-gray); }
.bd-cover-c .bd-chip.up::before { background: var(--c-green); } .bd-cover-c .bd-chip.down::before, .bd-cover-c .bd-chip.hot::before { background: var(--accent); } .bd-cover-c .bd-chip.mid::before { background: var(--c-amber); } .bd-cover-c .bd-chip.hot { color: var(--accent); }

.bd-dlist { display: grid; gap: 4px; } .bd-dr { display: grid; grid-template-columns: 42px minmax(0, 1fr) 72px auto; gap: 12px; align-items: center; padding: 8px 4px; border-radius: 12px; color: var(--ink); text-decoration: none; } .bd-dr:hover { background: var(--bg-2); } .bd-dr .n { min-width: 0; } .bd-dr .n b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bd-dr .n small { color: var(--muted); font-size: 12px; } .bd-dr .bd-bar { width: 72px; }
.bd-dsep { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 10px 4px 2px; }
@media (max-width: 560px) { .bd-dr { grid-template-columns: 42px minmax(0, 1fr) auto; } .bd-dr .bd-bar { display: none; } }
.bd-kpi .bd-tr.flat:only-child { display: none; } .bd-table .num.age { white-space: nowrap; }

/* Website: posts of the blog next to the pins */
.ws-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; } .ws-site { display: inline-flex; align-items: center; gap: 8px; } .ws-acts { display: flex; gap: 8px; }
.ws-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--bg-2); color: var(--ink-2); margin-bottom: 14px; font-size: 14px; } .ws-note.warn { background: color-mix(in srgb, var(--c-amber) 16%, transparent); } .ws-note svg { flex: none; margin-top: 2px; }
.ws-setup { max-width: 640px; margin: 24px auto; padding: 28px; text-align: center; } .ws-setup h3 { margin: 10px 0 6px; font-size: 21px; } .ws-setup .bar { justify-content: center; text-align: left; } .ws-hero { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.ws-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; } .ws-opt { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: none; } .ws-opt:hover { border-color: var(--accent); transform: none; } .ws-opt small { color: var(--muted); font-weight: 500; }
.ws-th { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-2); } .ws-th.ph { display: inline-grid; place-items: center; color: var(--muted); } .ws-th.big { width: 92px; height: 92px; border-radius: 14px; }
.ws-next { padding: 16px 18px; margin-bottom: 16px; } .ws-nextl { display: grid; gap: 4px; } .ws-nrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); } .ws-nrow:first-child { border-top: 0; } .ws-nt { flex: 1; min-width: 0; display: grid; gap: 3px; } .ws-nt b { overflow-wrap: anywhere; } .ws-nt small { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ws-prio { font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); } .ws-prio.high { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); } .ws-prio.medium { background: color-mix(in srgb, var(--c-amber) 20%, transparent); color: var(--amber); }
.ws-kw { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border-radius: 8px; padding: 1px 8px; width: fit-content; }
.ws-cell { display: flex; align-items: center; gap: 12px; min-width: 240px; } .ws-cell > div { display: grid; gap: 2px; min-width: 0; } .ws-cell small { overflow-wrap: anywhere; } .ws-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ws-tbl td { vertical-align: middle; } .btn.sm { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.ws-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; } .ws-card { display: flex; gap: 14px; padding: 14px; } .ws-cb { display: grid; gap: 8px; align-content: start; min-width: 0; } .ws-cb b { overflow-wrap: anywhere; }
.ws-nums { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 13px; } .ws-nums b { color: var(--ink); }
.ws-head { display: flex; flex-wrap: wrap; gap: 18px; padding: 20px; margin-bottom: 14px; align-items: flex-start; } .ws-hb { flex: 1; min-width: 240px; display: grid; gap: 8px; } .ws-hb h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; overflow-wrap: anywhere; } .ws-ha { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 208px; flex: none; } .ws-ha .btn, .ws-ha .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 16px; font-size: 14.5px; font-weight: 600; border-radius: 12px; white-space: nowrap; } .ws-ha .ghost svg { flex: none; } .ws-ha .ghost:disabled { opacity: .7; cursor: progress; } .ws-ha .ws-quiet { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; padding: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; } .ws-ha .ws-quiet:hover { color: var(--ink); }
.ws-sec { padding: 18px 20px; margin-bottom: 14px; } .ws-sec h3 { margin: 0 0 4px; } .ws-sec > p { margin: 0 0 10px; }
.ws-kws { display: flex; flex-wrap: wrap; gap: 8px; } .ws-kwc { display: grid; gap: 1px; padding: 8px 14px; border-radius: 12px; background: var(--bg-2); } .ws-kwc small { color: var(--muted); } .ws-kwc.high { background: color-mix(in srgb, var(--c-green) 14%, transparent); }
.ws-tip { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); } .ws-tip:first-child { border-top: 0; } .ws-tip > div { flex: 1; } .ws-tip p { margin: 2px 0 0; } .ws-heads { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ws-dcta { display: flex; align-items: center; gap: 14px; padding: 6px 0; } .ws-dcta > div { flex: 1; } .ws-dcta p { margin: 2px 0 0; font-size: 13px; }
.ws-dbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; font-size: 13.5px; } .ws-meter { flex: 0 0 38%; height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; } .ws-meter i { display: block; height: 100%; border-radius: 99px; background: var(--c-green); }
@media (max-width: 640px) { .ws-nrow { flex-wrap: wrap; } .ws-ha { flex-direction: row; flex-wrap: wrap; width: 100%; align-items: center; } .ws-ha .btn, .ws-ha .ghost { width: auto; flex: 1 1 160px; } .ws-card { flex-direction: column; } }

.ws-opt:hover, .ws-opt:focus-visible { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); filter: none; box-shadow: none; } .ws-opt:hover small { color: var(--ink-2); }
.ph-sub { margin: 16px 0 4px; font-size: 13.5px; font-weight: 650; color: var(--ink); display: flex; flex-direction: column; gap: 2px; } .ph-sub small { font-weight: 400; color: var(--muted); font-size: 12.5px; } .ph-card h3 + .ph-sub, .ph-card .ph-big + .ph-sub { margin-top: 8px; }
.ph-wl { list-style: none; margin: 0; padding: 0; } .ph-wl li { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; } .ph-wl li:first-child { border-top: 0; } .ph-wl li a { color: var(--ink); font-weight: 550; text-decoration: none; } .ph-wl li a:hover { color: var(--accent); text-decoration: underline; } .ph-wl small { font-size: 12.5px; color: var(--muted); }
.ph-more-link { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); color: var(--ink); font-size: 13.5px; font-weight: 550; text-decoration: none; } .ph-more-link:hover { background: var(--accent-soft); }

.ic-refresh { flex: none; min-width: 38px; min-height: 38px; }
.ws-prog > span { flex: 1; } .ws-pbar { display: block; height: 6px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; } .ws-pbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.ws-why { background: none; border: 0; box-shadow: none; padding: 0 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline dotted; cursor: pointer; } .ws-why:hover { color: var(--ink); background: none; transform: none; box-shadow: none; filter: none; } .ws-whyt { margin: 0 0 10px; font-size: 13.5px; }
.ws-plan { padding: 14px 18px; margin-bottom: 16px; } .ws-plan summary { cursor: pointer; font-weight: 600; } .ws-plan select { margin-left: 6px; width: auto; }
.ws-days { display: grid; gap: 4px; } .ws-day { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); } .ws-day a:not(.btn) { overflow-wrap: anywhere; font-weight: 600; color: var(--ink); }
.ws-angles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; } .ws-angle { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); color: var(--ink); text-decoration: none; border: 1px solid transparent; } .ws-angle:hover { border-color: var(--accent); background: var(--accent-soft); } .ws-angle .bd-chip { width: fit-content; } .ws-angle small { color: var(--muted); }
@media (max-width: 640px) { .ws-day { grid-template-columns: 1fr auto; } .ws-day b { grid-column: 1 / -1; } }
.ws-comps { display: flex; flex-wrap: wrap; gap: 8px; } .ws-comp { display: inline-flex; border-radius: 99px; border: 1px solid var(--line); background: var(--card); overflow: hidden; } .ws-comp.on { border-color: var(--accent); background: var(--accent-soft); } .ws-comp button { background: none; border: 0; box-shadow: none; padding: 7px 12px; color: var(--ink); font-weight: 600; transform: none; } .ws-comp button:hover { background: none; color: var(--accent); box-shadow: none; filter: none; transform: none; } .ws-comp button.x { padding: 7px 12px 7px 4px; color: var(--muted); } .ws-comp small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.ws-tiles { grid-template-columns: repeat(4, 1fr); } @media (max-width: 1000px) { .ws-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Import numbers */
.im-nudge { padding: 16px 20px; margin-bottom: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .im-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.im-steps { list-style: none; counter-reset: im; margin: 16px 0; padding: 0; display: grid; gap: 14px; } .im-steps > li { counter-increment: im; display: flex; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); } .im-steps > li::before { content: counter(im); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; } .im-steps > li > div { flex: 1; min-width: 0; } .im-steps p { margin: 4px 0 10px; }
.im-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; } .im-month { display: grid; gap: 2px; padding: 11px 14px; border-radius: 14px; background: var(--bg-2); color: var(--ink); text-decoration: none; border: 1px solid transparent; } .im-month small { color: var(--muted); } .im-month:hover { border-color: var(--accent); background: var(--accent-soft); } .im-month.done { opacity: .7; }
.im-drop { display: grid; gap: 4px; justify-items: center; padding: 28px 16px; border: 2px dashed var(--line-2, var(--line)); border-radius: 16px; cursor: pointer; text-align: center; color: var(--ink); } .im-drop small { color: var(--muted); } .im-drop:hover, .im-drop.on { border-color: var(--accent); background: var(--accent-soft); }
.im-row { padding: 6px 2px; font-size: 14px; color: var(--muted); } .im-row.ok { color: var(--green); } .im-row.bad { color: var(--accent); }
.im-have { padding: 14px 18px; margin-bottom: 4px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

input[type=search] { -webkit-appearance: none; appearance: none; } input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.bd-search input { min-width: 0; } .seg button svg { flex: none; } .seg.bd-views button, .seg button:has(> svg) { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.ws-sug { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--card); border: 1px dashed var(--line-2, var(--line)); color: var(--ink); box-shadow: none; font-weight: 600; } .ws-sug small { color: var(--muted); font-weight: 500; } .ws-sug:hover { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--ink); transform: none; box-shadow: none; filter: none; }
.ws-proof { text-align: left; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); } .ws-proof p { margin: 4px 0 8px; } .ws-code { display: flex; gap: 8px; align-items: center; } .ws-code code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 9px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; user-select: all; }

/* Alerts: read ones are quiet and grey, unread ones stand out with a dot instead of a red wash */
.al-row { background: var(--bg-2); border-color: transparent; } .al-row .al-main b { font-weight: 500; color: var(--ink-2, var(--ink)); } .al-row time { color: var(--muted); }
.al-row .al-ic { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--muted); }
.al-row.unread { background: var(--card); border-color: var(--line); box-shadow: var(--shadow-sm); } .al-row.unread .al-main b { font-weight: 700; color: var(--ink); } .al-row.unread .al-ic { position: relative; } .al-row.unread .al-ic.up { background: var(--green-soft); color: var(--green); } .al-row.unread .al-ic.down { background: var(--bad-soft); color: var(--bad); } .al-row.unread .al-ic.hot, .al-row.unread .al-ic.warn { background: var(--amber-soft); color: var(--amber); } .al-row.unread .al-ic.info { background: var(--blue-soft); color: var(--blue); }
.al-row.unread .al-ic::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); }
.al-who { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--bg-2); color: var(--muted); vertical-align: 1px; } .al-row .al-who { background: color-mix(in srgb, var(--ink) 8%, transparent); } .al-who.mine { background: var(--green-soft) !important; color: var(--green); }

/* the bell: alerts live next to Sign out, with a bubble when something is new */
.side-tools .bell { position: relative; flex: none; width: 40px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); background: transparent; text-decoration: none; padding: 0; } .side-tools .bell:hover { color: var(--ink); background: var(--bg-2); } .side-tools .bell.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.side-tools .bell #badge:not(:empty) { position: absolute; top: -7px; right: -7px; margin: 0; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; font-size: 10.5px; line-height: 1; box-shadow: 0 0 0 2px var(--card, var(--bg)); }
.side-tools .bell #badge { position: absolute; } .side-tools .bell svg { display: block; }

/* Account: connect Claude */
.cn-key { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 14px; } .cn-key .muted { font-size: 13px; }
.cn-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 14px; } .cn-tabs button { border: 0; background: none; box-shadow: none; padding: 7px 16px; border-radius: 99px; color: var(--muted); font-weight: 600; transform: none; } .cn-tabs button:hover { color: var(--ink); background: none; box-shadow: none; filter: none; transform: none; } .cn-tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.cn-code { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); } .cn-code pre { margin: 0; padding: 14px 16px 14px 16px; padding-right: 96px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; user-select: all; } .cn-copy { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12.5px; }
.cn-alt { margin-top: 14px; } .cn-alt summary { cursor: pointer; color: var(--accent-text, var(--accent)); font-weight: 600; } .cn-alt p { margin: 8px 0; }
.cn-prompt { display: inline-flex; align-items: center; gap: 8px; }
/* the bottom margin of the last card in a column is dropped where a full-width card starts: give that card its own space above */
.dgrid > .span2:not(:first-child) { margin-top: 10px; }   /* some browsers drop the 14px under the last card of a column; the rest keep it, so this only tops it up */

/* Changes: edits to pins and how they went */
.ch-top { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; margin-bottom: 16px; } .ch-top .ch-tiles { flex: 1 1 420px; min-width: 0; margin-bottom: 0; grid-template-columns: repeat(3, 1fr); } .ch-top > button { align-self: center; display: inline-flex; align-items: center; gap: 8px; }
.ch-th { width: 44px; height: 58px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-2); } .ch-th.ph { display: inline-grid; place-items: center; color: var(--muted); } .ch-th.big { width: 62px; height: 62px; border-radius: 14px; }
.ch-card { display: flex; gap: 16px; padding: 14px 16px; margin-bottom: 10px; color: var(--ink); text-decoration: none; align-items: center; } .ch-card:hover { border-color: var(--accent); }
.ch-thumbs { display: flex; flex: none; } .ch-thumbs .ch-th { width: 40px; height: 54px; margin-left: -10px; border: 2px solid var(--card); } .ch-thumbs .ch-th:first-child { margin-left: 0; }
.ch-main { min-width: 0; display: grid; gap: 6px; flex: 1; } .ch-t b { font-size: 16px; } .ch-chips { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; } .ch-kind { font-size: 12px; color: var(--muted); background: var(--bg-2); border-radius: 8px; padding: 1px 8px; text-transform: capitalize; }
.ch-lift { font-weight: 650; } .ch-lift.up, .ch-up { color: var(--green); } .ch-lift.down, .ch-down { color: var(--bad); } .ch-note { margin: 0; color: var(--muted); font-size: 13.5px; font-style: italic; }
.ch-learn { padding: 16px 20px; margin-bottom: 16px; } .ch-learn ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; } .ch-fil { margin-bottom: 14px; }
.ch-empty { padding: 28px; text-align: center; max-width: 640px; margin: 20px auto; } .ch-hero { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.ch-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 14px; } .ch-head h2 { margin: 0 0 4px; font-size: 22px; } .ch-head p { margin: 0 0 8px; } .ch-acts2 { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-ctl { margin: 4px 0 16px; font-size: 13.5px; } .ch-tbl td { vertical-align: middle; } .ch-tbl .num small { display: block; } .ch-cell { display: flex; gap: 10px; align-items: center; min-width: 200px; }
.ch-diff { display: grid; gap: 2px; margin-bottom: 8px; font-size: 13.5px; min-width: 260px; } .ch-diff b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } .ch-old { color: var(--muted); text-decoration: line-through; overflow-wrap: anywhere; } .ch-new { overflow-wrap: anywhere; } .ch-diff small { color: var(--muted); }
.ch-notes { padding: 16px 20px; margin-bottom: 14px; } .ch-notes h3 { margin: 0 0 8px; } .ch-n { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); } .ch-n:first-of-type { border-top: 0; } .ch-n span { flex: 1; overflow-wrap: anywhere; }
.ch-pinedits { padding: 16px 20px; } .ch-pe { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; } .ch-pe:first-of-type { border-top: 0; } .ch-pe s { color: var(--muted); }
dialog .ch-form { display: grid; gap: 4px; width: min(560px, calc(100vw - 90px)); max-width: 100%; box-sizing: border-box; } .ch-q { width: 100%; margin-bottom: 8px; } .ch-plist { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px; } .ch-pr { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; cursor: pointer; } .ch-pr:hover { background: var(--bg-2); } .ch-pr input { flex: none; } .ch-pr span { display: grid; min-width: 0; } .ch-pr small { color: var(--muted); } .ch-pmore { text-align: center; margin: 8px 0 0; }
.ch-l { display: grid; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 10px; } .ch-l small { font-weight: 500; } .ch-kinds { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 500; } .ch-k { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; } .ch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .ch-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
@media (max-width: 640px) { .ch-top .ch-tiles { grid-template-columns: repeat(3, 1fr); } .ch-row { grid-template-columns: 1fr; } .ch-card { flex-direction: column; align-items: flex-start; } }
.ch-btns { display: flex; gap: 10px; flex-wrap: wrap; align-self: center; flex: 0 0 auto; } .ch-btns button { display: inline-flex; align-items: center; gap: 8px; }
.keyrow .k small { display: block; }
.ws-dlg { width: min(640px, calc(100vw - 90px)); max-width: 100%; box-sizing: border-box; display: grid; gap: 10px; } .ws-dlg .tbl-wrap { overflow-x: auto; } .ws-dlg .tbl td, .ws-dlg .tbl th { padding-left: 10px; padding-right: 10px; } .ws-dl { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-bottom: 10px; } .ws-dl select { width: auto; } .ws-dact { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.ch-sp { display: block; margin-top: 4px; margin-left: auto; } .ch-try { padding: 16px 20px; margin-bottom: 16px; } .ch-tr { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); } .ch-tr:first-of-type { border-top: 0; } .ch-trm { flex: 1; min-width: 0; display: grid; gap: 3px; } .ch-trm ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2, var(--ink)); display: grid; gap: 2px; } @media (max-width: 640px) { .ch-tr { flex-wrap: wrap; } }

.su-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; } .su-list li { display: flex; align-items: center; gap: 10px; } .su-list li span:nth-child(2) { flex: 1; } .su-list li.done span:nth-child(2) { color: var(--muted, #6b6b78); text-decoration: line-through; }
.su-ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line, #d8d8e0); display: grid; place-items: center; flex: none; } .su-list .done .su-ck { background: var(--accent, #e11d48); border-color: var(--accent, #e11d48); color: var(--accent-ink, #fff); } #dash-setup { margin-bottom: 14px; }

#demobar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 8px 14px; background: var(--accent, #e11d48); color: var(--accent-ink, #fff); font-size: 14px; position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
body.is-demo { padding-top: var(--demoh, 46px); } body.is-demo .sidebar { top: var(--demoh, 46px); }
#demobar .btn { background: #fff; color: #16161d; } #demobar .ghost { background: transparent; color: var(--accent-ink, #fff); border: 1px solid currentColor; }

#demobar .dm-short { display: none; } @media (max-width: 640px) { #demobar { padding: 6px 10px; gap: 8px; font-size: 13px; flex-wrap: nowrap; } #demobar .dm-long { display: none; } #demobar .dm-short { display: inline; } #demobar > span { flex: 1 1 auto; min-width: 0; } #demobar .btn, #demobar .ghost { padding: 5px 10px; white-space: nowrap; min-height: 0; flex: none; } }

@media (max-width: 640px) { .dh { flex-wrap: wrap; row-gap: 2px; } .ch-btns { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; } .ch-btns button { flex: 1 1 auto; } }
@media (max-width: 640px) { .al-row:has(> .al-meta) { grid-template-columns: 38px minmax(0, 1fr); row-gap: 4px; } .al-row > .al-meta { grid-column: 2; font-size: 13px; } }

.demo-tour { position: fixed; right: 16px; bottom: 16px; z-index: 61; width: min(320px, calc(100vw - 32px)); box-sizing: border-box; padding: 14px 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.18)); display: grid; gap: 6px; }
.demo-tour[hidden] { display: none; } .demo-tour .dt-n { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); } .demo-tour p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2, var(--ink)); }
.demo-tour .dt-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

#dash-setup[hidden] { display: none !important; }

.gl-form small#gl-dh { display: block; max-width: 280px; margin-top: 4px; line-height: 1.35; font-size: 12px; }

.ph-own { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.ph-cmps { display: grid; } .ph-cmp { display: grid; grid-template-columns: minmax(140px, 1.6fr) 1fr 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 14px; } .ph-cmp b { font-weight: 600; } .ph-cmp-h b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ph-trs { display: grid; } .ph-tr { display: grid; grid-template-columns: minmax(150px, 1.8fr) 1fr 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 14px; } .ph-tr .num { text-align: right; white-space: nowrap; } .ph-tr small { font-size: 11.5px; }
.ph-bds { display: grid; } .ph-bd { display: grid; grid-template-columns: minmax(140px, 2fr) repeat(3, minmax(70px, 1fr)); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 14px; } .ph-bd .num { text-align: right; } .ph-bd-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.ph-fit { margin: 4px 0 10px; padding-left: 0; list-style: none; display: grid; gap: 3px; font-size: 13.5px; } .ph-fit li::before { content: "✓ "; color: var(--green, #2f9e61); font-weight: 700; } .ph-fit li.bad::before { content: "✗ "; color: var(--c-red, #d64545); }
@media (max-width: 640px) { .ph-own { grid-template-columns: 1fr; } .ph-cmp { grid-template-columns: minmax(100px, 1.4fr) 1fr 1fr; font-size: 13.5px; } .ph-tr { grid-template-columns: 1fr auto auto; } .ph-tr span:nth-child(3) { display: none; } .ph-bd { grid-template-columns: minmax(100px, 2fr) repeat(2, minmax(60px, 1fr)); } .ph-bd span:nth-child(4) { display: none; } }

/* Pin Performance: header spacing, "What to improve" with the pins it is about */
.dhero > #expk { margin-right: auto; } .dhero-r { gap: 14px !important; } .dhero-r > .muted { margin-right: 4px; }
.pp-tip { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 8px 0; } .pp-tip + .pp-tip { border-top: 1px solid var(--line); } .pp-tip p { margin: 0; flex: 1; min-width: 0; line-height: 1.5; }
.pp-stack { display: inline-flex; align-items: center; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; flex: none; } .pp-stack:hover { border-color: var(--accent); background: var(--accent-soft); filter: none; transform: none; box-shadow: none; }
.pp-stack img, .pp-ph { width: 28px; height: 38px; object-fit: cover; border-radius: 6px; border: 2px solid var(--card); margin-left: -8px; background: var(--bg-2); display: block; } .pp-stack > :first-child { margin-left: 0; } .pp-more { margin-left: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pp-dlg .ws-dlg { width: min(560px, calc(100vw - 90px)); } .pp-list { display: grid; max-height: min(60vh, 520px); overflow: auto; margin: 6px -6px 0; } .pp-row { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: inherit; } .pp-row:hover { background: var(--bg-2); } .pp-row img, .pp-row .pp-ph { width: 40px; height: 54px; margin: 0; border: 0; flex: none; } .pp-t { display: grid; min-width: 0; gap: 2px; } .pp-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .pp-t small { font-size: 12.5px; }
@media (max-width: 640px) { .pp-tip { flex-wrap: wrap; } .dhero > #expk { margin-right: 0; } }
@media (max-width: 640px) { .dhero:has(> #expk) > #expk { flex: none; order: 2; } .dhero:has(> #expk) > .dhero-r { width: auto; flex: 1 1 0; min-width: 0; order: 3; justify-content: flex-end; } .dhero:has(> #expk) > #rpk { order: 1; width: 100%; } }

.dn-th { display: inline-flex; align-items: center; flex: none; margin-left: auto; padding-left: 10px; } .dn-th img { width: 22px; height: 30px; object-fit: cover; border-radius: 5px; border: 2px solid var(--card); margin-left: -7px; background: var(--bg-2); } .dn-th img:first-child { margin-left: 0; }
@media (max-width: 640px) { .dn-th { display: none; } }
.nav-sec.open .nav-group .nav-dot { display: none; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } #app:focus { outline: none; }

/* installed on a phone: keep clear of the notch and the home bar */
@supports (padding: env(safe-area-inset-top)) { .topbar { padding-top: calc(10px + env(safe-area-inset-top)); } #toast { bottom: max(26px, calc(env(safe-area-inset-bottom) + 14px)); } .content { padding-bottom: env(safe-area-inset-bottom); } }

.ph-dup { margin: 10px 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: grid; gap: 10px; }
.ph-dup-h { display: flex; gap: 8px; align-items: center; font-weight: 650; font-size: 14px; } .ph-dup-k, .ph-dup-c { display: flex; gap: 12px; align-items: center; } .ph-dup-k > div, .ph-dup-c > div { display: grid; gap: 2px; min-width: 0; flex: 1; } .ph-dup-k img, .ph-dup-c img, .ph-dup .ph-noimg { width: 46px; height: 62px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg-2); } .ph-dup-c img, .ph-dup-c .ph-noimg { width: 36px; height: 48px; } .ph-dup small { font-size: 12.5px; }
.ph-keep, .ph-adv { flex: none; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; } .ph-keep { background: var(--green-soft, #e6f6ec); color: var(--ink); } .ph-adv.delete { background: var(--accent-soft); color: var(--ink); } .ph-adv.rewrite { background: var(--bg-2); color: var(--ink); }
.ph-dup-s { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-size: 14px; line-height: 1.45; } .ph-dup-s.delete { background: var(--accent-soft); } .ph-dup-s b { font-weight: 700; }
.ph-dup-list { display: grid; gap: 8px; }
@media (max-width: 640px) { .ph-dup-k { flex-wrap: wrap; } }
.ph-detail { max-width: 880px; } @media (min-width: 641px) { .ph-more > td { max-width: 0; } } .ph-dup { box-sizing: border-box; width: 100%; min-width: 0; } .ph-dup-k > div, .ph-dup-c > div { overflow-wrap: anywhere; }
@media (max-width: 640px) { .ph-dup-k .ph-keep { flex-basis: auto; margin-left: 58px; } .ph-dup-k > div { flex: 1 1 calc(100% - 60px); } }
.ps-demo-link { flex-basis: 100%; font-size: 13.5px; color: var(--accent); text-decoration: underline; }
.pa-stats { color: var(--ink-2); font-weight: 500; }

.ws-fix { border-left: 4px solid var(--warn, #f59e0b); } .ws-found { margin: 2px 0 4px; font-weight: 600; } .ws-steps { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; } .ws-steps li { margin: 3px 0; }

.ph-filter { margin: 22px 0 16px; }
@media (max-width: 700px) { .al-tools { flex-wrap: wrap; } .al-search { flex: 1 1 100%; min-width: 0; } .al-search input { min-width: 0; } }

.cn-steps { margin: 6px 0 12px; padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; } .cn-steps .btn { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; }

.cn-grants { display: grid; gap: 8px; } .cn-grant { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; } .cn-grant small { margin-left: 4px; }
.rp-one { width: 320px; display: block; } .rp-one .rp-body { padding: 14px 12px 12px; } .rp-one .rp-m { max-width: none; } .rp-one .rp-nav:disabled { opacity: .3; cursor: not-allowed; }
.rp-d.one { border-radius: 50%; } .rp-d.today:not(.start) { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 50%; }
.ch-l .rp-one-btn, .gl-sm .rp-one-btn { width: 100%; font-weight: 500; padding: 10px 14px; border-radius: 12px; } .rp-one-btn .rp-main { flex: 1; } .rp-one-btn .rp-main b { font-weight: 550; font-size: 14px; }

/* a returning visitor sees the frame of the app straight away instead of a blank page while the scripts and the session load */
html.ps-warm body.locked .shell { display: flex; } html.ps-warm body.locked #auth { display: none; }
html.ps-warm #nav:empty { min-height: 320px; background: repeating-linear-gradient(180deg, var(--bg-2) 0 34px, transparent 34px 46px); border-radius: 10px; margin: 6px 0; animation: ps-pulse 1.4s ease-in-out infinite; }
html.ps-warm #app:empty { min-height: 70vh; background: linear-gradient(var(--bg-2), var(--bg-2)) 0 0 / 280px 30px no-repeat, linear-gradient(var(--bg-2), var(--bg-2)) 0 48px / 420px 14px no-repeat, repeating-linear-gradient(90deg, var(--card) 0 calc(33.3% - 8px), transparent calc(33.3% - 8px) 33.3%) 0 100px / 100% 120px no-repeat; border-radius: 14px; animation: ps-pulse 1.4s ease-in-out infinite; }
@keyframes ps-pulse { 50% { opacity: .55; } } @media (prefers-reduced-motion: reduce) { html.ps-warm #nav:empty, html.ps-warm #app:empty { animation: none; } }
html.ps-warm #app:empty { margin: 28px clamp(16px, 3vw, 36px); min-height: 60vh; } html.ps-warm #nav:empty { min-height: 260px; }
.ch-plist.busy { opacity: .55; transition: opacity .1s; } .ch-pr small { overflow-wrap: anywhere; }
.ch-bulk { margin: 10px 0 4px; } .ch-bulk summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); } .ch-bulk textarea { width: 100%; margin-top: 8px; font-family: ui-monospace, monospace; font-size: 13px; }
.ch-bulk-go { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ch-chosen { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; max-height: 120px; overflow: auto; } .ch-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg-2); font-size: 12.5px; } .ch-chip .ch-th { width: 22px; height: 22px; border-radius: 50%; } .ch-chip .ic { padding: 0 6px; min-height: 0; line-height: 1; }
.pin-meta { display: block; font-size: 12px; color: var(--muted); font-weight: 400; overflow-wrap: anywhere; } .pin-id { font-variant-numeric: tabular-nums; cursor: copy; border-bottom: 1px dotted var(--muted); } .pin-id:hover { color: var(--ink); } .pin-dest { color: var(--muted); } a.pin-dest:hover { color: var(--accent); }
.ph-mb { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 6px 8px; margin: -6px -8px; border-radius: 10px; background: transparent; color: inherit; border: 0; transform: none; font-weight: 400; cursor: pointer; } .ph-mb:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); filter: none; transform: none; } .ph-mb b { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; } .ph-mb span { color: var(--muted); font-size: 13px; } .ph-mb:hover b { color: var(--accent); }
.ph-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; } .ph-tools select { padding: 4px 26px 4px 8px; border-radius: 8px; } .ph-note { display: block; color: var(--muted); } .ph-note.bad { color: var(--bad, #b42318); }
.ph-next { margin: 14px 0; } .ph-nx { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 2px; } .ph-nx li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); } .ph-nx li:first-child { border-top: 0; } .ph-nx li[hidden] { display: none; } .ph-nx img, .ph-nx .ph-noimg { width: 44px; height: 58px; flex: none; border-radius: 8px; object-fit: cover; background: var(--bg-2); } .ph-nxm { flex: 1; min-width: 0; display: grid; gap: 2px; } .ph-nxa { font-size: 13.5px; }
@media (max-width: 640px) { .ph-nx li { flex-wrap: wrap; } }
.pin-meta a, .pin-meta span { font-weight: 400; }
@media (max-width: 640px) { .ws-acts { flex-wrap: wrap; width: 100%; } .ws-acts > * { flex: 1 1 calc(50% - 6px); white-space: nowrap; } }

/* ---- sortable tables (sortable.js): a quiet pair of arrows that wakes up on hover and shows the direction once chosen ---- */
th[data-sortable] { cursor: pointer; transition: color .15s ease, background-color .15s ease; }
th[data-sortable]:hover { color: var(--ink); background-color: color-mix(in srgb, var(--accent) 7%, var(--card-2, var(--card))); }
th[data-sortable]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
th[aria-sort=ascending], th[aria-sort=descending] { color: var(--ink); }
.ps-sort { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; margin-left: 9px; vertical-align: middle; opacity: 0; transform: translateY(-1px); transition: opacity .15s ease, color .15s ease; }
.ps-sort i { display: block; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; transition: opacity .15s ease, transform .2s ease; }
.ps-sort .u { border-bottom: 4.5px solid currentColor; } .ps-sort .d { border-top: 4.5px solid currentColor; }
th[data-sortable]:hover .ps-sort, th[data-sortable]:focus-visible .ps-sort { opacity: .45; }
th[aria-sort=ascending] .ps-sort, th[aria-sort=descending] .ps-sort { opacity: 1; color: var(--accent); }
th[aria-sort=ascending] .ps-sort .d, th[aria-sort=descending] .ps-sort .u { opacity: .18; }
th.num[data-sortable], th[data-gk].num, th[data-sk].num, th[data-k].num { white-space: nowrap; }
th[aria-sort=ascending]::after, th[aria-sort=descending]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
@keyframes ps-resort { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: none; } }
table.ps-resort tbody { animation: ps-resort .24s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { table.ps-resort tbody { animation: none; } .ps-sort, .ps-sort i, th[data-sortable] { transition: none; } }
@media (hover: none) { th[data-sortable] .ps-sort { opacity: .3; } }
#ph-list > .card { overflow-x: auto; } .ph-t th { padding-right: 12px; }
/* the "Sort by" menu that stands in for the headings on a phone */
.ps-msort { display: none; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--muted); } .ps-msort select { padding: 6px 28px 6px 10px; border-radius: 10px; font-size: 13.5px; }
@media (max-width: 640px) { .ps-msort { display: flex; } }
.ph-tools .ps-msort.ps-always { display: none; } @media (max-width: 640px) { .ph-tools .ps-msort.ps-always { display: flex; margin: 0; } .ph-tools #ph-csv { width: 100%; } }
/* a button with an icon and a label: icon and text on one line, centred, with a steady gap (several buttons put the icon straight before the text) */
button:has(> svg), a.btn:has(> svg) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; } button > svg, a.btn > svg { flex: none; }
/* Changes: kinds of change, the type filter and the test against a control group */
.ch-kchips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; } .ch-typ { margin-top: -4px; } .ch-typ button { padding: 5px 11px; }
.ch-exp { margin: 14px 0; padding: 16px 18px; } .ch-exp .tbl small { display: block; font-size: 12px; } .ch-how { margin-top: 10px; font-size: 13.5px; } .ch-how summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.ch-form input[type=number]#ch-dc { margin-top: 6px; max-width: 200px; }
