:root {
  --bg: #f6f6f4; --side: #efefec; --panel: #ffffff; --raise: #ffffff; --bubble: #ececea; --line: #e2e2de;
  --text: #17171a; --muted: #6b6b70; --faint: #9a9aa0; --accent: #0f9d63; --accent-ink: #ffffff;
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent); --danger: #c93a3a; --unread: #2f7cf6; --warn: #e8833a;
  --radius: 22px; --shadow: 0 10px 40px rgba(0,0,0,.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c; --side: #121214; --panel: #0e0e10; --raise: #1a1a1d; --bubble: #232326; --line: #26262a;
    --text: #ededee; --muted: #9a9aa1; --faint: #6c6c73; --accent: #12a36c; --shadow: 0 10px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --side: #121214; --panel: #0e0e10; --raise: #1a1a1d; --bubble: #232326; --line: #26262a;
  --text: #ededee; --muted: #9a9aa1; --faint: #6c6c73; --accent: #12a36c; --shadow: 0 10px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* shell */
.shell { display: grid; grid-template-columns: 320px minmax(0, 1fr) 0; height: 100dvh; }
.shell.panel-open { grid-template-columns: 320px minmax(0, 1fr) 380px; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-top { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.ws-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 8px; border-radius: 12px; font-weight: 600; font-size: 16px; text-align: left; }
.ws-name:hover { background: var(--bubble); }
.ws-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--raise); display: grid; place-items: center; flex: none; }
.icon-btn:hover { border-color: var(--faint); }
.icon-btn svg { width: 18px; height: 18px; }
.search { margin: 0 14px 8px; display: none; }
.search.on { display: block; }
.search input, .field input, .field textarea, .field select { width: 100%; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; }
.search input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }

.list { overflow-y: auto; flex: 1; padding: 4px 8px 12px; }
.team-tile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin: 2px 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--raise); text-align: left; }
.team-tile.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.team-tile .meta { flex: 1; min-width: 0; }
.team-tile b { font-weight: 600; }
.sec { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 4px; color: var(--muted); font-size: 13px; }
.sec button { background: none; border: 0; color: var(--muted); padding: 2px 6px; border-radius: 8px; font-size: 13px; }
.sec button:hover { color: var(--text); background: var(--bubble); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 14px; text-align: left; }
.row:hover { background: color-mix(in oklab, var(--bubble) 60%, transparent); }
.row.active { background: var(--bubble); }
.row .meta { flex: 1; min-width: 0; }
.row .name, .team-tile .name { display: flex; align-items: baseline; gap: 6px; }
.row .name b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub, .team-tile .sub { display: block; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub.working { color: var(--accent); }
.row .sub.waiting { color: var(--warn); }
.tag { font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--unread); flex: none; }
.count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--unread); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; padding: 0 6px; flex: none; }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.pill-btn { flex: 1; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--raise); font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pill-btn:hover { border-color: var(--faint); }
.pill-btn svg { width: 17px; height: 17px; }

/* avatars: people get initials, agents get the blob with eyes */
.av { --s: 44px; width: var(--s); height: var(--s); flex: none; position: relative; display: grid; place-items: center; border-radius: 50%; background: var(--c, #555); color: #fff; font-weight: 600; font-size: calc(var(--s) * .4); }
.av.blob { border-radius: 52% 48% 46% 54% / 55% 52% 48% 45%; }
.av.blob::before, .av.blob::after { content: ""; position: absolute; width: calc(var(--s) * .1); height: calc(var(--s) * .24); border-radius: 99px; background: rgba(0,0,0,.72); top: 30%; transform: rotate(-24deg); }
.av.blob::before { left: 34%; } .av.blob::after { left: 54%; top: 25%; }
.av .on { position: absolute; right: -1px; bottom: -1px; width: calc(var(--s) * .28); height: calc(var(--s) * .28); min-width: 10px; min-height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid var(--side); }
.av .badge { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--warn); border: 2px solid var(--raise); display: grid; place-items: center; }
.av.team { border-radius: 14px; background: var(--accent); }
.av.team svg { width: 55%; height: 55%; color: var(--accent-ink); }

/* chat */
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.chat-head { position: absolute; top: 12px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; z-index: 2; }
.chat-head .who { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 26px; border: 1px solid var(--line); background: color-mix(in oklab, var(--raise) 88%, transparent); backdrop-filter: blur(12px); font-weight: 500; }
.chat-head .left, .chat-head .right { position: absolute; top: 0; pointer-events: auto; display: flex; gap: 8px; }
.chat-head .left { left: 16px; } .chat-head .right { right: 16px; }
.back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 76px max(20px, calc((100% - 860px) / 2)) 12px; display: flex; flex-direction: column; gap: 4px; }
.day { align-self: center; color: var(--muted); font-size: 13px; margin: 18px 0 8px; }
.newline { display: flex; align-items: center; gap: 12px; color: var(--unread); font-size: 12px; font-weight: 600; letter-spacing: .04em; margin: 14px 0; }
.newline::before, .newline::after { content: ""; flex: 1; height: 1px; background: color-mix(in oklab, var(--unread) 40%, transparent); }
.m { display: flex; gap: 10px; align-items: flex-end; max-width: 80%; }
.m.mine { align-self: flex-end; flex-direction: row-reverse; }
.m .av { --s: 30px; }
.m .spacer { width: 30px; flex: none; }
.m .stack { display: flex; flex-direction: column; min-width: 0; }
.m .by { font-size: 12.5px; color: var(--muted); margin: 8px 0 3px 14px; }
.bubble { background: var(--bubble); padding: 10px 16px; border-radius: var(--radius); overflow-wrap: anywhere; }
.m.mine .bubble { background: var(--accent); color: var(--accent-ink); }
.m.mine .bubble a { color: inherit; }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin: 0; }
.bubble ul, .bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.bubble pre { background: rgba(0,0,0,.25); padding: 10px 12px; border-radius: 12px; overflow-x: auto; font-size: 13px; margin: 6px 0; }
.bubble code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.bubble :not(pre) > code { background: rgba(127,127,127,.18); padding: 1px 5px; border-radius: 6px; }
.bubble h3, .bubble h4 { margin: 8px 0 4px; font-size: 15px; }
.bubble table { border-collapse: collapse; font-size: 13.5px; margin: 6px 0; display: block; overflow-x: auto; }
.bubble td, .bubble th { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
.mention { color: var(--accent); font-weight: 600; }
.m.mine .mention { color: inherit; text-decoration: underline; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(127,127,127,.14); text-decoration: none; color: inherit; margin-top: 6px; }
.file svg { width: 20px; height: 20px; flex: none; }
.file small { color: inherit; opacity: .7; display: block; }
.file img { max-width: 280px; max-height: 240px; border-radius: 10px; display: block; }
.time { font-size: 11.5px; color: var(--faint); margin: 2px 14px 6px; }
.m.mine .time { text-align: right; }
.typing { color: var(--muted); font-size: 13.5px; padding: 4px max(20px, calc((100% - 860px) / 2)) 4px; min-height: 26px; }
.typing i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: 3px; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.empty { margin: auto; text-align: center; color: var(--muted); max-width: 420px; padding: 20px; }
.empty .av { margin: 0 auto 14px; --s: 72px; }
.empty h2 { color: var(--text); font-size: 20px; margin: 0 0 6px; }

.composer { padding: 8px max(20px, calc((100% - 860px) / 2)) max(16px, env(safe-area-inset-bottom)); position: relative; }
.composer form { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line); background: var(--raise); border-radius: 28px; padding: 7px; }
.composer form:focus-within { border-color: var(--faint); }
.composer textarea { flex: 1; border: 0; background: none; outline: none; resize: none; padding: 9px 6px; max-height: 200px; min-height: 40px; line-height: 1.45; }
.composer .icon-btn { width: 40px; height: 40px; }
.send { background: var(--text) !important; color: var(--bg); border-color: transparent !important; }
.send:disabled { opacity: .35; cursor: default; }
.attach-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px 12px; padding: 6px 10px; border-radius: 12px; background: var(--bubble); font-size: 13px; }
.attach-chip button { border: 0; background: none; color: var(--muted); }
.suggest { position: absolute; bottom: calc(100% - 4px); left: max(20px, calc((100% - 860px) / 2)); background: var(--raise); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; min-width: 260px; z-index: 5; }
.suggest button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; background: none; border-radius: 10px; text-align: left; }
.suggest button.sel, .suggest button:hover { background: var(--bubble); }
.suggest .av { --s: 26px; }
.suggest small { color: var(--muted); }

/* right panel */
.panel { background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; display: none; min-width: 0; }
.panel-open .panel { display: block; }
.panel-top { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 14px 0; }
.profile { text-align: center; padding: 6px 20px 8px; }
.profile .av { --s: 84px; margin: 0 auto 12px; }
.profile h2 { margin: 0; font-size: 21px; font-weight: 600; }
.profile p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tabs { display: flex; justify-content: center; gap: 4px; margin: 14px 0 10px; }
.tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 16px; color: var(--muted); font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--bubble); color: var(--text); }
.pane { padding: 6px 20px 28px; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--raise); margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.on::before { background: #22c55e; }
.lib-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: inherit; }
.lib-item:hover { background: var(--bubble); }
.lib-item .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--bubble); display: grid; place-items: center; flex: none; }
.lib-item .ico svg { width: 17px; height: 17px; }
.lib-item small { display: block; color: var(--muted); font-size: 12.5px; }
.lib-item .meta { min-width: 0; } .lib-item b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn { height: 40px; border-radius: 20px; border: 1px solid var(--line); background: var(--raise); padding: 0 16px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--danger); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.code { position: relative; background: var(--bubble); border-radius: 12px; padding: 10px 12px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; margin: 6px 0 10px; }
.code button { position: absolute; top: 6px; right: 6px; }
.hint { color: var(--muted); font-size: 13px; }

/* modal */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; }
.modal h2 { margin: 0 0 4px; font-size: 20px; }
.modal > p { margin: 0 0 16px; color: var(--muted); }
.seg { display: flex; gap: 4px; background: var(--bubble); padding: 4px; border-radius: 16px; margin-bottom: 16px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 12px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--raise); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 5px; }
.field small { color: var(--muted); display: block; margin-top: 4px; font-size: 12.5px; }
.field textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.err { color: var(--danger); font-size: 14px; margin: 6px 0; min-height: 1em; }
.grants { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.grants td { padding: 6px 4px; border-top: 1px solid var(--line); }
.grants select { background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; }
.conn-head { display: flex; align-items: center; gap: 12px; }
.conn-logo { width: 38px; height: 38px; border-radius: 10px; background: #111; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.conn-logo.k { background: #232426; }
.conn-head .meta { flex: 1; min-width: 0; }

/* sign in */
.signin { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.signin .modal { text-align: center; }
.signin .av { margin: 0 auto 14px; --s: 64px; }
.signin form { display: flex; gap: 8px; margin-top: 16px; }
.signin input { flex: 1; min-width: 0; background: var(--raise); border: 1px solid var(--line); border-radius: 20px; padding: 0 16px; height: 44px; outline: none; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 20px; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; font-size: 14px; }
#toast.on { opacity: 1; transform: translateX(-50%); }

/* phone and tablet */
@media (max-width: 1180px) {
  .shell.panel-open { grid-template-columns: 300px minmax(0, 1fr) 0; }
  .panel-open .panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(380px, 100%); z-index: 10; box-shadow: var(--shadow); }
}
@media (max-width: 820px) {
  .shell, .shell.panel-open { grid-template-columns: 100%; }
  .shell .chat { display: none; }
  .shell.in-chat .side { display: none; }
  .shell.in-chat .chat { display: flex; }
  .back { display: grid; }
  .msgs { padding: 70px 12px 10px; }
  .m { max-width: 92%; }
  .composer, .typing { padding-left: 10px; padding-right: 10px; }
  .chat-head .left { left: 10px; } .chat-head .right { right: 10px; }
  .chat-head .who { max-width: calc(100% - 120px); }
  .chat-head .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* work: Klaviyo newsletters and flows */
.work { display: none; min-width: 0; min-height: 0; overflow-y: auto; background: var(--bg); }
.work-mode .work, .item-open .work { display: block; }
.work-mode .chat { display: none; }
.shell.work-mode, .shell.work-mode.panel-open { grid-template-columns: 320px minmax(0, 1fr); }
.shell.item-open, .shell.item-open.panel-open { grid-template-columns: 320px minmax(0, 1fr) minmax(360px, 440px); }
.item-open .chat { border-left: 1px solid var(--line); background: var(--panel); }
.item-open .panel { display: none; }
.item-open .msgs, .item-open .composer, .item-open .typing { padding-left: 16px; padding-right: 16px; }
.item-open .m { max-width: 92%; }
.view-work { display: none; }
.work-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.work-head h1 { font-size: 19px; margin: 0; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-head .back { display: none; }
.work-body { padding: 18px 24px 40px; }
.work-ic { background: var(--bubble) !important; color: var(--text); border-radius: 12px !important; }
.work-ic svg { width: 52%; height: 52%; }
.work-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.seg.small { margin: 0; padding: 3px; border-radius: 13px; }
.seg.small button { padding: 5px 12px; font-size: 13.5px; border-radius: 10px; flex: none; }
.wq { flex: 1; min-width: 180px; max-width: 320px; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; outline: none; }
.wq:focus { border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.nl { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); background: var(--raise); border-radius: 18px; overflow: hidden; }
.nl:hover { border-color: var(--faint); }
.thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; color: #555; font-weight: 600; text-align: center; font-size: 14px; }
.cmt { position: absolute; z-index: 2; top: 8px; right: 8px; background: var(--unread); color: #fff; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 8px; }
.cmt::before { content: "💬 "; }
.nl-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.nl-body b { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.nl-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.nl-subj { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stats b { color: var(--text); font-weight: 600; }
.stats.muted { color: var(--faint); }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 8px; background: var(--bubble); color: var(--muted); text-transform: capitalize; }
.chip.s-sent, .chip.s-live { background: color-mix(in oklab, #22c55e 18%, transparent); color: #16a34a; }
.chip.s-scheduled, .chip.s-sending, .chip.s-manual { background: color-mix(in oklab, var(--unread) 18%, transparent); color: var(--unread); }
.flows { display: flex; flex-direction: column; gap: 8px; }
.fl { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); background: var(--raise); border-radius: 16px; }
.fl:hover { border-color: var(--faint); }
.fl .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fl .meta b { font-weight: 600; }
.fl-stats { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; color: var(--muted); }
.fl-stats .stats { justify-content: flex-end; }
.item-top { margin-bottom: 16px; }
.fl.mt .nl-subj { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.mt-h { font-size: 15px; font-weight: 600; margin: 4px 0 8px; }
.mt-tasks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.mt-task { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 12px; border: 1px solid var(--line); background: var(--raise); border-radius: 12px; }
button.mt-task:hover { border-color: var(--faint); }
.mt-task span { display: flex; flex-direction: column; min-width: 0; } .mt-task small { color: var(--muted); font-size: 12.5px; }
.mt-task.off { opacity: .75; }
.mt-notes { line-height: 1.55; } .mt-notes h2 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; }
.mt-tx { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); }
.mt-tx summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.mt-tx-body { padding: 0 14px 12px; max-height: 70dvh; overflow: auto; font-size: 14px; line-height: 1.5; }
.mt-tx-body p { margin: 0 0 8px; } .mt-ts { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 12px; margin-right: 4px; }
.kv.subj { grid-template-columns: 70px 1fr; margin: 10px 0 6px; }
iframe.email { width: 100%; height: 1400px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: block; }
.modal-email { height: 70dvh !important; margin-top: 12px; }
.modal:has(.modal-email) { width: min(760px, 100%); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.step { margin-left: calc(var(--d) * 28px); position: relative; }
.branch { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--accent); margin: 2px 0 4px; }
.step-other { display: inline-block; font-size: 13.5px; color: var(--muted); padding: 4px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.step-mail { display: flex; gap: 12px; width: 100%; text-align: left; padding: 10px; border: 1px solid var(--line); background: var(--raise); border-radius: 16px; }
.step-mail:hover { border-color: var(--faint); }
.step-mail .mini { width: 84px; height: 64px; border-radius: 10px; background: #fff; overflow: hidden; flex: none; border: 1px solid var(--line); }
.step-mail .mini img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step-mail .meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* proposals: an agent's suggested change, decided by a person */
.proposal { border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--line)); background: var(--raise); border-radius: 18px; padding: 12px 14px; min-width: 260px; }
.proposal.rejected { opacity: .65; border-color: var(--line); }
.p-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.p-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 8px; }
.p-row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.p-row > span { color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.p-row p { margin: 0 0 4px; }
.p-row.new div { font-weight: 500; }
.p-why { color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 6px; }
.p-why p { margin: 0 0 4px; }
.p-done { font-size: 13px; color: var(--muted); margin-top: 8px; }
.proposal.approved .p-done { color: #16a34a; font-weight: 600; }

@media (max-width: 1180px) {
  .shell.item-open, .shell.item-open.panel-open { grid-template-columns: 300px minmax(0, 1fr) 360px; }
}
@media (max-width: 820px) {
  .shell.work-mode, .shell.item-open, .shell.item-open.panel-open, .shell.work-mode.panel-open { grid-template-columns: 100%; }
  .work-mode .work, .item-open .work { display: none; }
  .work-mode.in-chat .work { display: block; }
  .item-open.in-chat .chat { display: flex; }
  .item-open.show-work .work { display: block; }
  .item-open.show-work .chat { display: none; }
  .work-head { padding: 12px; } .work-head .back { display: grid; }
  .work-body { padding: 14px 12px 30px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .view-work { display: inline-flex; }
  .fl { flex-wrap: wrap; } .fl-stats { align-items: flex-start; width: 100%; }
  .step { margin-left: calc(var(--d) * 14px); }
}
a.btn { color: inherit; text-decoration: none; }

/* boards: Monday-style task table, one per person */
.grp { margin-bottom: 22px; }
.grp-h { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0 8px; font-weight: 600; font-size: 16px; color: var(--sc); }
.grp-h .hint { font-weight: 500; font-size: 13px; }
.t-exp { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; background: none; color: var(--muted); border-radius: 6px; transition: transform .15s; flex: none; }
.t-exp.on { transform: rotate(90deg); }
.t-exp:hover { background: var(--bubble); }
.tbl { border: 1px solid var(--line); border-left: 4px solid var(--sc); border-radius: 12px; overflow: hidden; background: var(--raise); }
.t-head, .t-row { display: grid; grid-template-columns: minmax(220px, 1fr) 130px 140px 140px 36px; align-items: stretch; }
.t-head { font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.t-head span { padding: 8px 12px; text-align: center; } .t-head span:first-child { text-align: left; }
.t-row { border-bottom: 1px solid var(--line); min-height: 42px; }
.t-row > * { border-right: 1px solid var(--line); }
.t-row.sel { background: var(--accent-soft); }
.t-row.sub { background: color-mix(in oklab, var(--bubble) 35%, var(--raise)); }
.t-row.sub .t-name { padding-left: 40px; }
.t-name { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 8px; min-width: 0; }
.t-input { flex: 1; min-width: 0; border: 1px solid transparent; background: none; padding: 5px 6px; border-radius: 8px; outline: none; }
.t-input:hover { border-color: var(--line); } .t-input:focus { border-color: var(--accent); background: var(--bg); }
.t-subcount { font-size: 11.5px; color: var(--muted); background: var(--bubble); border-radius: 8px; padding: 1px 6px; flex: none; }
.t-notes { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; color: var(--faint); padding: 4px 6px; border-radius: 8px; flex: none; }
.t-notes:hover { color: var(--text); background: var(--bubble); }
.t-notes.has { color: var(--unread); } .t-notes b { font-size: 12px; }
.t-own { border: 0; background: none; display: grid; place-items: center; padding: 0 6px; }
.t-own:hover { background: var(--bubble); }
.owners { display: flex; } .owners .av { margin-left: -6px; border: 2px solid var(--raise); font-size: 10px; } .owners .av:first-child { margin-left: 0; }
.owners .more { font-size: 11.5px; color: var(--muted); margin-left: 4px; align-self: center; }
.empty-owner { color: var(--faint); }
.t-status { border: 0; color: #fff; font-weight: 600; font-size: 13px; padding: 0 8px; }
.t-status:hover { filter: brightness(1.08); }
.t-due { border: 0; background: none; text-align: center; padding: 0 8px; color: var(--muted); font-size: 13px; min-width: 0; }
.t-del { border: 0 !important; background: none; color: var(--faint); opacity: 0; display: grid; place-items: center; font-size: 12px; }
.t-row:hover .t-del, .t-del:focus-visible { opacity: 1; } .t-del:hover { color: var(--danger); }
.subs { border-bottom: 1px solid var(--line); }
.t-add { border-bottom: 1px solid var(--line); }
.t-add:last-child { border-bottom: 0; }
.t-add input { width: 100%; border: 0; background: none; padding: 11px 14px; outline: none; color: var(--text); }
.t-add input::placeholder { color: var(--faint); }
.t-add.sub input { padding-left: 48px; }
.t-add input:focus { background: var(--bg); }
.pop { position: fixed; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 190px; max-height: 60dvh; overflow-y: auto; }
.pop-status { border: 0; color: #fff; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.pop-own { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.pop-own:hover { background: var(--bubble); }
@media (max-width: 820px) {
  .tbl { overflow-x: auto; }
  .t-head, .t-row { grid-template-columns: minmax(180px, 1fr) 84px 116px 0 0; }
  .t-due, .t-del, .t-head span:nth-child(4) { display: none; }
}
.av.pic { background: var(--bubble); overflow: hidden; }
.av.pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.av.pic .on { z-index: 1; }
.pop-own > span:not(.av) { flex: 1; }
.pop-own .av { flex: none; }
.me-pic { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pic-btn { cursor: pointer; }
.t-due.late { color: var(--danger); font-weight: 600; }
.t-due:hover { background: var(--bubble); }
.cal-pop { width: 264px; max-width: calc(100vw - 20px); padding: 10px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-h button, .cal button, .cal-f button { border: 0; background: none; border-radius: 8px; }
.cal-h button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); }
.cal-h button:hover, .cal button:hover, .cal-f button:hover { background: var(--bubble); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { font-size: 11.5px; color: var(--faint); padding: 4px 0; }
.cal button { height: 32px; font-size: 13.5px; }
.cal button.out { color: var(--faint); }
.cal button.today { color: var(--accent); font-weight: 700; }
.cal button.sel { background: var(--accent); color: var(--accent-ink); }
.cal-f { display: flex; justify-content: space-between; margin-top: 6px; }
.cal-f button { color: var(--accent); padding: 6px 10px; font-size: 13.5px; }
.pop-edit { border: 0; background: none; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); margin-top: 2px; text-align: left; font-size: 13.5px; }
.pop-edit:hover { color: var(--text); }
.color-in { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); cursor: pointer; }
.color-in.sm { width: 26px; height: 22px; border-radius: 6px; margin-left: 4px; }
.sl-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sl-name { flex: 1; min-width: 0; border: 0; border-radius: 10px; padding: 8px 12px; color: #fff; font-weight: 600; outline: none; }
.sl-name:focus { box-shadow: 0 0 0 2px var(--text); }
.sl-done { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sl-row button { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.sl-row button:hover:not(:disabled) { background: var(--bubble); color: var(--text); }
.sl-row button:disabled { opacity: .3; }
/* the board sizes to its own column (narrower when a task's notes are open), never past it */
.work { container-type: inline-size; overflow-x: hidden; }
.tbl { overflow-x: auto; }
@container (max-width: 820px) {
  .t-head, .t-row { grid-template-columns: minmax(170px, 1fr) 92px 118px 82px 30px; }
  .t-status { font-size: 12.5px; }
}
@container (max-width: 560px) {
  .t-head, .t-row { grid-template-columns: minmax(150px, 1fr) 70px 104px 0 0; }
  .t-due, .t-del, .t-head span:nth-child(4) { display: none; }
}
.grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.field input.color-in { width: 56px; height: 38px; padding: 3px; }
.modal.dropping { outline: 2px dashed var(--accent); outline-offset: -8px; }
.pic-hint { font-size: 12.5px; align-self: center; }
/* discussion column closed on an item: the work takes the full width */
.shell.item-open.discuss-closed { grid-template-columns: 320px minmax(0, 1fr); }
.item-open.discuss-closed .chat { display: none; }
.dtog { margin-left: auto; }
.dslot { display: contents; }
@media (max-width: 1180px) { .shell.item-open.discuss-closed { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 820px) {
  .dtog, .desk-only { display: none !important; }
  .shell.item-open.discuss-closed { grid-template-columns: 100%; }
  .item-open.discuss-closed.in-chat .chat { display: flex; }
}
.item-open:not(.discuss-closed) .dtog { display: none; }
.shell { overflow: hidden; }
.board-ic { background: var(--bc) !important; color: #fff !important; }
.work-head .board-ic { flex: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.sw.on { border-color: var(--text); }
.pop-item { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 9px 12px; border-radius: 9px; text-align: left; }
.pop-item:hover { background: var(--bubble); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-own { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--raise); font-size: 13.5px; }
.chip-own.on { border-color: var(--accent); background: var(--accent-soft); }
#toast.clickable { pointer-events: auto; }
.toast-btn { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; margin-left: 8px; }
.bubble blockquote { margin: 6px 0 2px; padding: 4px 0 4px 12px; border-left: 3px solid currentColor; opacity: .85; }
.grp-h { display: flex; align-items: center; gap: 4px; padding: 4px 0 8px; }
.grp-name { border: 1px solid transparent; background: none; color: var(--sc); font-weight: 600; font-size: 16px; padding: 2px 8px; border-radius: 8px; }
.grp-name:hover { border-color: var(--line); background: var(--raise); }
.gpop { width: 300px; max-width: calc(100vw - 20px); padding: 12px; gap: 10px; }
.gedit #gn { width: 100%; border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--raise); outline: none; font-weight: 600; margin-bottom: 10px; }
.gedit .sw { width: 24px; height: 24px; }
.gedit .btns { align-items: center; }
.add-grp { margin: 2px 0 30px; }
/* notifications */
.bell { position: relative; }
.bell-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--side); }
.nt-pop { width: 380px; max-width: calc(100vw - 20px); padding: 0; gap: 0; }
.nt-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.nt-all { border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; }
.nt-list { overflow-y: auto; max-height: 60dvh; padding: 6px; }
.nt { display: flex; align-items: flex-start; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 10px; border-radius: 12px; }
.nt:hover { background: var(--bubble); }
.nt.unread { background: var(--accent-soft); }
.nt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-text { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nt .dot { margin-top: 6px; }
/* drag and move */
.t-grip { display: grid; place-items: center; width: 16px; height: 26px; color: var(--faint); cursor: grab; opacity: 0; flex: none; }
.t-row:hover .t-grip { opacity: 1; }
.t-grip:active { cursor: grabbing; }
.dragging-task .grp, .dragging-task #list [data-b] { transition: box-shadow .1s, background .1s; }
.grp.drop-on .tbl { box-shadow: 0 0 0 2px var(--sc); }
#list [data-b].drop-on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.pop-label { font-size: 12px; color: var(--muted); padding: 8px 12px 2px; }
.pop-item.danger { color: var(--danger); }
.board-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.grp-arch { margin-left: 8px; height: 26px; font-size: 12.5px; }
#barch.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tbl.arch .t-row { opacity: .85; }
.t-del[data-arch]:hover { color: var(--text) !important; }
.room-av { color: #fff; font-weight: 700; font-size: calc(var(--s) * .45); }
.sec > span:last-child { display: flex; gap: 2px; }
.chip-own:disabled { opacity: 1; cursor: default; }
.bell-n[hidden] { display: none; }
.room-pick.flash { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 10px; transition: outline-color .4s; }
.sec-fold { display: flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font-size: 13px; padding: 2px 6px 2px 2px; border-radius: 8px; margin-left: -4px; }
.sec-fold:hover { color: var(--text); background: var(--bubble); }
.sec-fold svg { transition: transform .15s; }
.sec-fold.open svg { transform: rotate(90deg); }
.list [hidden] { display: none !important; }
/* newsletters: summary strip, month-grouped list */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 10px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); background: var(--raise); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi b { font-size: 22px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-top b { font-size: 15px; margin-top: 4px; } .kpi-top small { color: var(--accent); font-weight: 600; font-size: 12.5px; }
.kpi-top:hover { border-color: var(--faint); }
.nl-sort { background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.nl-tests { margin: 0; font-size: 13.5px; color: var(--muted); }
.nl-view { margin-left: auto; }
.nl-month { display: flex; align-items: baseline; gap: 10px; margin: 18px 2px 8px; font-weight: 600; }
.nl-month .hint { font-weight: 400; font-size: 13px; }
.nl-list { border: 1px solid var(--line); border-radius: 16px; background: var(--raise); overflow: hidden; }
.nl-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 84px 72px 72px 64px 150px 40px; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.nl-row:first-child { border-top: 0; }
.nl-row:not(.nl-head):hover { background: var(--bubble); }
.nl-head { font-size: 12px; color: var(--muted); padding-top: 9px; padding-bottom: 9px; cursor: default; }
.nl-thumb { width: 48px; height: 48px; border-radius: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.nl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.nl-main { min-width: 0; display: flex; flex-direction: column; }
.nl-main b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-when { font-size: 13px; color: var(--muted); white-space: nowrap; }
.nl-num { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.nl-rev { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 28px; font-variant-numeric: tabular-nums; }
.nl-rev b { position: relative; font-weight: 600; font-size: 14px; }
.nl-bar { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 6px; border-radius: 3px; background: var(--accent-soft); max-width: 55%; }
.nl-head .nl-rev, .nl-head .nl-num { font-weight: 400; }
.nl-cmt { display: flex; align-items: center; gap: 3px; color: var(--unread); font-size: 12.5px; font-weight: 600; justify-content: flex-end; }
.nl-cmt svg { width: 15px; height: 15px; }
@container (max-width: 980px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-top { grid-column: span 3; }
  .nl-row { grid-template-columns: 44px minmax(0, 1fr) 64px 90px 30px; }
  .nl-row > :nth-child(4), .nl-row > :nth-child(5), .nl-row > :nth-child(6) { display: none; }
}
@container (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-top { grid-column: span 2; }
  .nl-row { grid-template-columns: 40px minmax(0, 1fr) 80px; } .nl-when, .nl-cmt { display: none; }
  .nl-view { margin-left: 0; }
}
.nl-head .nl-num, .nl-head .nl-rev { font-size: 12px; }
/* drive */
.conn-logo.gd { background: #1a73e8; }
.d-tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.d-tabs button { border: 1px solid var(--line); background: var(--raise); border-radius: 18px; padding: 6px 14px; font-size: 13.5px; }
.d-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.d-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 4px 0 12px; font-size: 15px; color: var(--muted); }
.d-crumbs button { border: 0; background: none; padding: 3px 6px; border-radius: 8px; color: var(--muted); }
.d-crumbs button:hover, .d-crumbs button.drop-on { background: var(--bubble); color: var(--text); }
.d-crumbs b { color: var(--text); font-weight: 600; }
.d-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 160px 120px 80px; gap: 12px; align-items: center; width: 100%; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.d-row:first-child { border-top: 0; }
.d-row:not(.d-head):hover { background: var(--bubble); }
.d-row.drop-on, .d-card.drop-on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.d-head { font-size: 12px; color: var(--muted); cursor: default; }
.d-ic { width: 28px; height: 28px; display: grid; place-items: center; }
.d-ic.folder svg { width: 22px; height: 22px; color: #8a8f98; }
.d-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-star { color: #f5a623; }
.d-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.d-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--raise); border-radius: 14px; overflow: hidden; padding: 0; text-align: left; }
.d-card:hover { border-color: var(--faint); }
.d-thumb { aspect-ratio: 4 / 3; background: var(--bubble); display: grid; place-items: center; overflow: hidden; }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.d-thumb > svg { width: 44px; height: 44px; color: #8a8f98; }
.d-card-name { display: flex; align-items: center; gap: 6px; padding: 8px 10px; min-width: 0; }
.d-card-name b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive.dropping { outline: 2px dashed var(--accent); outline-offset: -6px; border-radius: 16px; }
.d-preview { height: 78dvh !important; }
.d-preview-img { max-width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.d-perm { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.d-perm > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 760px) { .d-row { grid-template-columns: 32px minmax(0, 1fr) 90px; } .d-row > :nth-child(3), .d-row > :nth-child(5) { display: none; } }
#list [data-bdrag] { position: relative; }
#list [data-bdrag].dragging-row { opacity: .45; }
#list [data-bdrag].ins-before::before, #list [data-bdrag].ins-after::after { content: ""; position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 2px; background: var(--accent); }
#list [data-bdrag].ins-before::before { top: -2px; } #list [data-bdrag].ins-after::after { bottom: -2px; }
.grp { position: relative; }
.g-grip { display: grid; place-items: center; width: 16px; height: 26px; color: var(--faint); cursor: grab; opacity: 0; }
.grp-h:hover .g-grip { opacity: 1; }
.grp.dragging-row { opacity: .45; }
.grp.ins-before::before, .grp.ins-after::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--accent); }
.grp.ins-before::before { top: -10px; } .grp.ins-after::after { bottom: -10px; }
#list .sec { position: relative; cursor: grab; }
#list .sec.dragging-row { opacity: .45; }
#list .sec.ins-before::before { content: ""; position: absolute; left: 6px; right: 6px; top: 2px; height: 3px; border-radius: 2px; background: var(--accent); }
.mic.on { background: var(--danger) !important; color: #fff; border-color: var(--danger) !important; animation: micpulse 1.4s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--danger) 45%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
/* studio */
.bal { margin-left: auto; font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 16px; padding: 5px 12px; background: var(--raise); }
.bal b { color: var(--text); }
.st-form { max-width: 860px; }
.st-form .seg { max-width: 260px; }
.st-form textarea { min-height: 84px; }
.st-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.st-row .field { flex: 1; min-width: 150px; }
#strefn { cursor: pointer; align-self: center; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-top: 16px; }
.st-card { border: 1px solid var(--line); background: var(--raise); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.st-media { aspect-ratio: 1; background: var(--bubble); display: grid; place-items: center; overflow: hidden; }
.st-media img, .st-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-media a { display: contents; }
.st-body { padding: 10px 12px 12px; }
.st-body p { margin: 0 0 4px; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-body .btns { margin-top: 8px; }
.st-working { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.st-working i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 0 2px; animation: blink 1.2s infinite; }
.st-working i:nth-child(2) { animation-delay: .2s; } .st-working i:nth-child(3) { animation-delay: .4s; }
.st-failed { color: var(--danger); text-align: center; padding: 12px; } .st-failed small { display: block; color: var(--muted); }
.st-dur[hidden] { display: none; }
.st-tools { margin-top: 18px; }
.st-open { border: 0; padding: 0; background: none; width: 100%; height: 100%; position: relative; display: block; cursor: zoom-in; }
.st-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.modal.wide { width: min(980px, 100%); }
.st-view { background: #000; border-radius: 14px; overflow: hidden; display: grid; place-items: center; max-height: 68dvh; }
.st-view img, .st-view video { max-width: 100%; max-height: 68dvh; display: block; }
/* studio v2: settings panel + prompt bar + masonry */
.studio2 { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100dvh - 63px); }
.st-side { border-right: 1px solid var(--line); padding: 18px 16px 30px; position: sticky; top: 63px; align-self: start; max-height: calc(100dvh - 63px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.st-bal { border-radius: 16px; padding: 14px 16px; background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 22%, var(--raise)), var(--raise)); border: 1px solid var(--line); display: grid; }
.st-bal span { font-size: 12.5px; color: var(--muted); } .st-bal b { font-size: 28px; letter-spacing: -.02em; } .st-bal small { color: var(--muted); font-size: 12px; }
.st-sec { padding: 10px 0 6px; border-bottom: 1px solid var(--line); }
.st-sec:last-child { border-bottom: 0; }
.st-sec h4 { margin: 0 0 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.st-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bubble); padding: 4px; border-radius: 14px; }
.st-mode button { border: 0; background: none; padding: 8px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.st-mode button[aria-pressed="true"] { background: var(--raise); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.st-model { display: flex; flex-direction: column; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--raise); border-radius: 12px; padding: 9px 12px; margin-bottom: 6px; }
.st-model b { font-weight: 600; font-size: 14px; } .st-model small { color: var(--muted); font-size: 12.5px; }
.st-model:hover { border-color: var(--faint); }
.st-model.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.st-tip { font-size: 12.5px; margin: 4px 2px 0; }
.st-aspects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.st-aspect { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--raise); border-radius: 10px; padding: 8px 2px 6px; }
.st-aspect i { display: block; border: 2px solid var(--muted); border-radius: 3px; }
.st-aspect small { font-size: 10.5px; color: var(--muted); }
.st-aspect.on { border-color: var(--accent); background: var(--accent-soft); } .st-aspect.on i { border-color: var(--accent); }
.st-style { margin: 0 0 4px; font-size: 14px; } .st-house { font-size: 12.5px; margin: 0 0 8px; }
.st-main { padding: 18px 24px 40px; min-width: 0; }
.st-prompt { display: flex; gap: 12px; align-items: stretch; border: 1px solid var(--line); background: var(--raise); border-radius: 22px; padding: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.st-prompt:focus-within { border-color: var(--faint); }
.st-prompt.dropping { outline: 2px dashed var(--accent); }
.st-prompt textarea { flex: 1; border: 0; outline: none; background: none; resize: vertical; min-height: 64px; font-size: 15.5px; padding: 8px 4px; }
.st-refslot { width: 72px; min-height: 72px; flex: none; border: 1.5px dashed var(--line); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); cursor: pointer; position: relative; overflow: hidden; }
.st-refslot svg { width: 18px; height: 18px; } .st-refslot span { font-size: 11px; }
.st-refslot:hover { border-color: var(--accent); color: var(--accent); }
.st-refslot.has { border-style: solid; }
.st-refslot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-refx { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; font-size: 10px; z-index: 1; }
.st-go { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.st-go .btn { height: 44px; padding: 0 20px; border-radius: 22px; }
.st-go .hint { font-size: 12px; max-width: 170px; text-align: right; }
.st-masonry { columns: 4 240px; column-gap: 14px; margin-top: 14px; }
.st-tile { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 16px; overflow: hidden; background: var(--bubble); cursor: zoom-in; border: 1px solid var(--line); }
.st-tile img, .st-tile video { width: 100%; display: block; }
.st-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; opacity: 0; transition: opacity .15s; display: flex; flex-direction: column; gap: 2px; }
.st-tile:hover figcaption, .st-tile:focus-within figcaption { opacity: 1; }
.st-tile.working figcaption, .st-tile.failed figcaption { position: static; opacity: 1; background: none; color: var(--text); padding: 8px 12px 10px; }
.st-tile.working .st-meta, .st-tile.failed .st-meta { color: var(--muted); }
.st-cap { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-meta { font-size: 11.5px; opacity: .8; }
.st-tile.working, .st-tile.failed { cursor: default; }
.st-working { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: linear-gradient(110deg, var(--bubble) 30%, color-mix(in oklab, var(--accent) 12%, var(--bubble)) 50%, var(--bubble) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.st-failed { aspect-ratio: 1; display: grid; place-content: center; text-align: center; color: var(--danger); padding: 14px; } .st-failed small { color: var(--muted); }
.st-del { position: absolute; top: 8px; right: 8px; }
.st-play { position: absolute; top: 10px; right: 12px; color: #fff; font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none; }
.st-empty { text-align: center; padding: 60px 20px; color: var(--muted); } .st-empty svg { width: 40px; height: 40px; color: var(--accent); } .st-empty h3 { color: var(--text); margin: 8px 0 4px; }
.st-viewer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 18px; }
.st-view { background: #0b0b0c; border-radius: 14px; overflow: hidden; display: grid; place-items: center; max-height: 74dvh; }
.st-view img, .st-view video { max-width: 100%; max-height: 74dvh; display: block; }
.st-info h4 { margin: 14px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.st-ptext { margin: 0 0 10px; font-size: 14.5px; }
.st-info .kv { grid-template-columns: 84px 1fr; font-size: 13.5px; }
.st-toolbtns { display: flex; flex-wrap: wrap; gap: 6px; }
#svtool { margin-top: 10px; }
.linkish { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; }
.modal.wide { width: min(1100px, 100%); }
@container (max-width: 860px) {
  .studio2 { grid-template-columns: 100%; } .st-side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .st-main { padding: 14px 12px 30px; }
}
@media (max-width: 820px) { .st-viewer { grid-template-columns: 100%; } .st-prompt { flex-wrap: wrap; } .st-go { flex-direction: row; width: 100%; align-items: center; } }
/* studio settings on the right, like the Details panel */
.studio2 { grid-template-columns: minmax(0, 1fr) 340px !important; }
.studio2.side-closed { grid-template-columns: minmax(0, 1fr) !important; }
.studio2.side-closed .st-side { display: none; }
.st-side { border-right: 0 !important; border-left: 1px solid var(--line); background: var(--panel); padding: 18px 20px 30px !important; }
.st-sidehead { text-align: center; padding: 4px 0 10px; }
.st-sideic { margin: 0 auto 10px; border-radius: 18px !important; background: var(--accent) !important; color: var(--accent-ink) !important; }
.st-sidehead h2 { margin: 0; font-size: 19px; } .st-sidehead p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.st-headbal { margin-left: auto; font-size: 14px; color: var(--muted); } .st-headbal b { color: var(--text); }
.studio2:not(.side-closed) ~ * .st-headbal { display: none; }
@container (max-width: 860px) { .studio2, .studio2.side-closed { grid-template-columns: 100% !important; } .st-side { border-left: 0; border-top: 1px solid var(--line); } }
.st-mtop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.st-price { font-size: 11.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.st-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.st-resb { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); background: var(--raise); border-radius: 10px; padding: 8px 4px; }
.st-resb b { font-size: 13.5px; } .st-resb small { font-size: 11px; color: var(--muted); }
.st-resb.on { border-color: var(--accent); background: var(--accent-soft); } .st-resb.on small { color: var(--accent); font-weight: 600; }
.st-go .hint b { color: var(--text); }
/* work from chat */
.file-video { max-width: 360px; width: 100%; border-radius: 12px; display: block; margin-top: 6px; }
.gen-card { width: min(360px, 70vw); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--raise); }
.gen-card img, .gen-card video { width: 100%; display: block; }
.gc-working { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: linear-gradient(110deg, var(--bubble) 30%, color-mix(in oklab, var(--accent) 14%, var(--bubble)) 50%, var(--bubble) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.gc-working i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 0 2px; animation: blink 1.2s infinite; }
.gc-working i:nth-child(2) { animation-delay: .2s; } .gc-working i:nth-child(3) { animation-delay: .4s; }
.gc-failed { padding: 24px; text-align: center; color: var(--danger); } .gc-failed small { display: block; color: var(--muted); }
.gc-cap { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--text); }
.gc-cap small { color: var(--muted); font-size: 12px; }
.m.mine .gen-card .gc-cap { color: var(--text); }
.dp-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; }
.dp-tabs button { border: 1px solid var(--line); background: var(--raise); border-radius: 16px; padding: 5px 12px; font-size: 13px; }
.dp-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.dp-list { max-height: 50dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.dp-row { grid-template-columns: 32px minmax(0, 1fr) 80px !important; }
.pop-item .hint { margin-left: auto; font-size: 12px; }
.sg-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 10px 4px; }
.sg-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--bubble); display: grid; place-items: center; flex: none; }
.suggest b { font-weight: 600; }
/* notifications, calmer */
.nt-pop { width: 400px; }
.nt { align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.nt.unread { background: color-mix(in oklab, var(--unread) 7%, transparent); }
.nt:hover { background: var(--bubble); }
.nt-av { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.nt-av .av { --s: 40px !important; width: 40px; height: 40px; font-size: 15px; }
.nt-pic { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: block; background: var(--bubble); }
.nt-pic img, .nt-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-sys { display: grid; place-items: center; color: var(--accent); } .nt-sys svg { width: 20px; height: 20px; }
.nt-kind { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 9px; background: var(--raise); border: 1.5px solid var(--line); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; color: var(--muted); line-height: 1; }
.nt-kind.k-mention { color: var(--unread); } .nt-kind.k-assigned { color: #16a34a; } .nt-kind.k-studio { color: var(--accent); } .nt-kind.k-room { color: #7c5cff; }
.nt-body { gap: 1px; }
.nt-title { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.35; }
.nt.unread .nt-title { font-weight: 650; }
.nt-detail { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-when { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.nt .dot { align-self: center; width: 8px; height: 8px; margin: 0; }
.nt-list { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.nt + .nt { position: relative; }
.nt + .nt::before { content: ""; position: absolute; left: 12px; right: 12px; top: -4px; height: 1px; background: var(--line); }
.nt:hover::before, .nt:hover + .nt::before { opacity: 0; }

/* help guide */
.help-btn { width: 32px; height: 32px; color: var(--muted); }
.help-btn svg { width: 17px; height: 17px; }
.modal:has(.hlp) { width: min(680px, 100%); }
.seg.hlp-tabs { margin: 16px 0 24px; flex-wrap: wrap; }
.hlp h2 { margin-bottom: 4px; }
.hlp-body { padding: 8px 4px 0; }
.hlp p, .hlp li { font-size: 14.5px; line-height: 1.6; }
.hlp p { margin: 0 0 18px; }
.hlp-list, .hlp-steps { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 14px; }
.hlp-steps li { padding-left: 4px; }
.hlp-grid { margin-bottom: 8px !important; }
.hlp-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.hlp-steps li::marker { color: var(--accent); font-weight: 600; }
.hlp-h { font-size: 15px; margin: 18px 0 8px; }
.hlp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 4px; }
.hlp-c { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--raise); display: grid; gap: 4px; align-content: start; }
.hlp-c b { font-size: 14px; }
.hlp-c span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.hlp-map { width: 100%; height: auto; margin: 0 0 14px; }
.hm-box { fill: var(--raise); stroke: var(--line); }
.hm-room { stroke: var(--accent); }
.hm-in { fill: var(--bubble); stroke: none; }
.hm-h { fill: var(--text); font-size: 12.5px; font-weight: 600; text-anchor: middle; }
.hm-t { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.hm-s { fill: var(--muted); font-size: 11.5px; text-anchor: middle; }
.hm-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* skills */
.sk-intro { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.sk-intro b { color: var(--text); }
.sk-search { width: 100%; height: 42px; border-radius: 21px; border: 1px solid var(--line); background: var(--raise); padding: 0 16px; margin-bottom: 16px; color: var(--text); }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sk-card { text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); padding: 14px; display: grid; gap: 6px; align-content: start; position: relative; color: var(--text); }
.sk-card:hover { border-color: var(--accent); }
.sk-card.off { opacity: .55; }
.sk-card .tag { position: absolute; top: 12px; right: 12px; }
.sk-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.sk-ic svg { width: 18px; height: 18px; }
.sk-desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.sk-empty { text-align: center; max-width: 440px; margin: 48px auto; display: grid; gap: 10px; justify-items: center; }
.sk-empty > svg { width: 40px; height: 40px; color: var(--accent); }
.sk-empty h2 { margin: 0; }
.sk-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.sk-on { margin: 0; }
.sk-doc { max-width: 760px; }
.sk-lead { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }
.sk-refs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 18px; }
.sk-refs .hint { margin-right: 4px; }
.chip-btn { border: 1px solid var(--line); background: var(--raise); border-radius: 14px; padding: 4px 11px; font-size: 13px; color: var(--text); }
.chip-btn:hover { border-color: var(--accent); }
.sk-src { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.sk-pick { display: grid; gap: 6px; max-height: 55dvh; overflow-y: auto; }
.sk-pick button { text-align: left; border: 1px solid var(--line); background: var(--raise); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; color: var(--text); }
.sk-pick button:hover { border-color: var(--accent); }
.sk-srcrow { display: grid; gap: 6px; }
.md { line-height: 1.6; font-size: 14.5px; }
.md p { margin: 0 0 12px; }
.md h4 { font-size: 16px; margin: 24px 0 8px; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; }
.md pre { background: var(--bubble); padding: 12px 14px; border-radius: 12px; overflow-x: auto; font-size: 13px; margin: 0 0 14px; }
.md code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.md table { border-collapse: collapse; font-size: 13.5px; margin: 0 0 14px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.md blockquote { margin: 0 0 14px; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.sk-group { font-size: 15px; margin: 22px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.sk-group:first-of-type { margin-top: 4px; }
.sk-body { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.modal:has(.sk-body) { width: min(760px, 100%); }

/* dashboards: a lane per channel. Series 1 is the reference blue (validated), the period before a dashed neutral. */
:root { --series-1: #2a78d6; --good: #15803d; --bad: #c2410c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --series-1: #3987e5; --good: #4ade80; --bad: #fb923c; } }
:root[data-theme="dark"] { --series-1: #3987e5; --good: #4ade80; --bad: #fb923c; }
.lane-ic.k-web { color: var(--series-1); } .lane-ic.k-socials { color: #c2477a; } .lane-ic.k-email { color: #d4571f; }
.ins-n { color: var(--accent); font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.linkish:hover { text-decoration: underline; }
.mob-only { display: none; }
.lane-head { flex-wrap: wrap; row-gap: 8px; }
.lane-head .lane-ic { flex: none; }
.lane-head .btn svg { margin-right: 2px; }
.lane-head .icon-btn svg { width: 17px; height: 17px; }
.work-body.lane { max-width: 1180px; }
.ln-range { margin: 0 0 12px; font-size: 13px; }
.ln-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ln-kpi { gap: 3px; }
.ln-kpi b { font-variant-numeric: tabular-nums; }
.dl { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl > span { font-size: 9px; vertical-align: 1px; }
.dl.good { color: var(--good); } .dl.bad { color: var(--bad); } .dl.muted { color: var(--faint); font-weight: 500; }
.ln-chart { margin: 0 0 22px; padding: 14px 16px 10px; position: relative; }
.ln-chart figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 6px; }
.ln-chart figcaption b { font-size: 14.5px; font-weight: 600; }
.lg { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.lg-now, .lg-prev { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--series-1); vertical-align: middle; margin-right: 4px; }
.lg .lg-prev { margin-left: 10px; }
.lg-prev { border-top: 2px dashed var(--faint); }
.ln-plot { position: relative; min-height: 220px; }
.ln-plot svg { display: block; overflow: visible; touch-action: pan-y; }
.ln-plot .gr { stroke: var(--line); stroke-width: 1; }
.ln-plot .ax { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.ln-plot .ln-now { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ln-plot .ln-prev { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round; }
.ln-plot .ln-bar { fill: var(--series-1); }
.ln-plot .xh { stroke: var(--faint); stroke-width: 1; }
.ln-plot .dot-now { fill: var(--series-1); stroke: var(--raise); stroke-width: 2; }
.ln-plot .dot-prev { fill: var(--raise); stroke: var(--faint); stroke-width: 2; }
.ln-tip { position: absolute; top: 4px; pointer-events: none; background: var(--raise); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 7px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ln-tip i { display: inline-block; width: 12px; margin-right: 6px; vertical-align: middle; }
.ln-h { font-size: 15px; font-weight: 600; margin: 22px 0 8px; }
.ln-sub { margin: -4px 0 8px; font-size: 12.5px; }
.ln-note { font-size: 12.5px; margin: 14px 0 0; }
.ln-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--raise); }
.ln-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ln-t th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ln-t td { padding: 8px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.ln-t tr:first-child td { border-top: 0; }
.ln-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.ln-t td.t { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.ln-t td.t .linkish { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ln-t td.barc { min-width: 150px; }
.bx { display: flex; align-items: center; gap: 8px; }
.bx .trk { flex: 1; min-width: 36px; display: flex; }
.bx b { font-weight: 600; min-width: 52px; }
.tbar { display: block; height: 6px; border-radius: 0 3px 3px 0; background: color-mix(in oklab, var(--series-1) 45%, transparent); min-width: 2px; }
.ln-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ln-post { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line); background: var(--raise); border-radius: 16px; color: inherit; text-decoration: none; min-width: 0; }
.ln-post:hover { border-color: var(--faint); }
.ln-post img, .ln-noimg { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bubble); }
.ln-pm { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; }
.ln-pt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ln-err { max-width: 560px; }
/* the Insights strip: open suggestions, side by side, each a task in one click */
.ins-strip { margin-bottom: 18px; }
.ins-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ins-head b { font-size: 15px; font-weight: 600; }
.ins-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 360px); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.ins-row > * { scroll-snap-align: start; }
.ins-empty { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 16px; font-size: 13.5px; }
.ins-empty svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
.insight { border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--line)); background: var(--raise); border-radius: 18px; padding: 12px 14px; min-width: 260px; display: flex; flex-direction: column; }
.insight h3 { font-size: 15px; margin: 0 0 6px; line-height: 1.35; }
.insight .ins-by { margin-left: auto; font-size: 12px; }
.insight.dismissed { opacity: .65; border-color: var(--line); }
.insight.task .p-done { color: var(--good); font-weight: 600; }
.ins-rows { margin: 0; font-size: 13.5px; display: grid; grid-template-columns: 96px 1fr; }
.ins-rows dt { color: var(--muted); font-size: 12px; padding: 6px 8px 0 0; border-top: 1px solid var(--line); }
.ins-rows dd { margin: 0; padding: 5px 0; border-top: 1px solid var(--line); }
.ins-rows dd.fix { font-weight: 500; }
.insight.compact .ins-rows { grid-template-columns: 1fr; }
.insight.compact .ins-rows dt { border: 0; padding: 4px 0 0; }
.insight.compact .ins-rows dd { border: 0; padding: 0 0 2px; }
.insight .btns { margin-top: auto; padding-top: 10px; }
.chip.eff-small { background: color-mix(in oklab, var(--good) 16%, transparent); color: var(--good); text-transform: none; }
.chip.eff-medium { background: color-mix(in oklab, var(--series-1) 16%, transparent); color: var(--series-1); text-transform: none; }
.chip.eff-large { background: color-mix(in oklab, var(--bad) 16%, transparent); color: var(--bad); text-transform: none; }
.lm-row .lm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lm-top .lm-name { flex: 1; min-width: 0; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-weight: 600; }
.lm-top .icon-btn { width: 32px; height: 32px; font-size: 11px; }
.lm-top .icon-btn:disabled { opacity: .35; }
.lm-bot { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.lm-bot .field { flex: 1; min-width: 180px; margin: 0; }
.lm-bot > .hint { padding-bottom: 8px; }
.lm-add { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.lm-add .field:first-child { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .mob-only { display: inline-flex; }
  .lane-head h1 { flex: 1 1 calc(100% - 100px); }
  .lane-head .seg { order: 3; }
  .lane-head #lrev { order: 4; }
  .lane-head #ldisc { order: 5; margin-left: auto; }
  .lane-head #lman { order: 2; }
  .ln-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ln-kpi b { font-size: 19px; }
  .ins-row { grid-auto-columns: 86%; }
  .lg { margin-left: 0; width: 100%; }
  .lm-add { grid-template-columns: 1fr; }
  .ln-t td.t { max-width: 170px; }
  .ln-t td, .ln-t th { padding: 8px 10px; }
}

/* the Web lane: GA4 flagship and Search Console. Data hue is series 1 (blue); newsletter sends and brand search take
   slot 2 (orange); chart notes and the period before stay neutral; the funnel's leak wears the status colour. */
:root { --series-2: #eb6834; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --series-2: #d95926; } }
:root[data-theme="dark"] { --series-2: #d95926; }
.ln-cmp select { background: var(--bubble); border: 0; border-radius: 13px; padding: 7px 10px; font-size: 13.5px; color: var(--text); }
.ln-custom { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; color: var(--muted); }
.ln-custom[hidden] { display: none; }
.ln-custom input { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; margin-left: 4px; }
.skel { background: var(--bubble); border-color: transparent; animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
#lbody { transition: opacity .2s; }
#lbody.ln-busy { opacity: .45; pointer-events: none; }
.ln-nav { position: sticky; top: 0; z-index: 3; display: flex; gap: 4px; overflow-x: auto; margin: 0 0 10px; padding: 6px 0; background: var(--panel); scrollbar-width: none; }
.ln-nav button { flex: none; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 10px; }
.ln-nav button:hover { background: var(--bubble); color: var(--text); }
.ln-sec { scroll-margin-top: 52px; }
.ln-sec + .ln-sec, #ls-search { margin-top: 30px; }
#ls-search > .ln-h { font-size: 19px; padding-top: 18px; border-top: 1px solid var(--line); }
.ln-h3 { font-size: 14px; font-weight: 600; margin: 20px 0 6px; }
.ln-finding { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: color-mix(in oklab, var(--bad) 8%, var(--raise)); font-size: 14.5px; }
.ln-finding p { margin: 0; } .ln-finding p + p { margin-top: 4px; }
.ln-finding b { color: var(--bad); }
.ln-kpis.hero { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ln-kpis.hero > * { grid-column: span 2; }
.ln-kpis.hero.n5 > :nth-child(-n+2) { grid-column: span 3; } /* revenue and purchases lead, the three rates follow */
.ln-kpis.hero.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ln-kpis.hero.n4 > * { grid-column: auto; }
@media (min-width: 1360px) { .discuss-closed .ln-kpis.hero.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .discuss-closed .ln-kpis.hero.n5 > * { grid-column: auto; } }
.ln-kpis.hero .ln-kpi { position: relative; padding-bottom: 44px; }
.ln-kpis.hero .ln-kpi b { font-size: 26px; font-variant-numeric: normal; }
.ln-kd { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ln-kd small { font-size: 12px; }
.spark { position: absolute; left: 14px; right: 14px; bottom: 10px; width: calc(100% - 28px); height: 28px; overflow: visible; }
.spark path { fill: none; stroke: var(--series-1); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--series-1); }
.ln-stack .pt { fill: var(--muted); font-size: 12px; font-weight: 600; }
.ln-plot .mk { stroke: var(--faint); stroke-width: 1; }
.ln-plot .mkd { fill: var(--muted); }
.ln-plot .mkt { fill: var(--muted); font-size: 11px; font-weight: 500; }
.ln-plot .snd { fill: var(--series-2); stroke: var(--raise); stroke-width: 2; }
.lg-snd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--series-2); margin: 0 4px 0 10px; }
.ln-tip .tip-mk { color: var(--text); font-weight: 600; } .ln-tip .tip-mk::before { content: "● "; color: var(--muted); }
.ln-tip .tip-snd::before { content: "● "; color: var(--series-2); }
.ln-tip { max-width: 300px; white-space: normal; z-index: 2; }
.ln-tip[hidden] { display: none; }
.ln-tbl { margin-top: 8px; font-size: 13px; }
.ln-tbl summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.ln-tbl .ln-tw { max-height: 320px; overflow: auto; margin-top: 6px; }
.ln-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 12.5px; }
.mk-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bubble); border-radius: 10px; padding: 2px 4px 2px 9px; }
.mk-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.mk-chip .icon-btn { width: 22px; height: 22px; } .mk-chip .icon-btn svg { width: 12px; height: 12px; }
.ln-marks .linkish { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
#lmkf { display: flex; gap: 6px; flex-wrap: wrap; }
#lmkf[hidden] { display: none; }
#lmkf input { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; font-size: 13px; }
#lmkf input[name="label"] { min-width: 220px; }
.ln-funnel { padding: 16px; }
.fn { list-style: none; margin: 0; padding: 0; }
.fn-step { display: grid; grid-template-columns: 150px minmax(0, 1fr) 80px 92px; align-items: center; gap: 12px; padding: 4px 0; }
.fn-l { font-size: 13.5px; font-weight: 500; }
.fn-bar { height: 22px; background: var(--bubble); border-radius: 0 6px 6px 0; overflow: hidden; }
.fn-bar span { display: block; height: 100%; background: var(--series-1); border-radius: 0 6px 6px 0; min-width: 3px; }
.fn-n { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.fn-drop { display: flex; align-items: center; gap: 10px; padding: 1px 0 1px 162px; font-size: 12.5px; color: var(--muted); }
.fn-drop.leak { color: var(--bad); font-weight: 600; }
.fn-drop.leak .hint { font-weight: 400; }
.leak-tag { font-size: 11.5px; background: color-mix(in oklab, var(--bad) 14%, transparent); color: var(--bad); padding: 1px 8px; border-radius: 8px; }
.fn-step.leak .fn-bar span { background: var(--series-1); }
.fn-dev { margin-top: 16px; }
.fn-dev h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 6px; text-transform: none; }
.ln-t td.worse { color: var(--bad); font-weight: 600; }
.ln-t tr.tot td { font-weight: 600; }
.chip.ai { background: color-mix(in oklab, var(--series-1) 14%, transparent); color: var(--series-1); text-transform: none; margin-left: 4px; }
.ln-callout { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--bubble); font-size: 14px; }
.ln-callout.bad { background: color-mix(in oklab, var(--bad) 9%, var(--raise)); } .ln-callout.bad b { color: var(--bad); }
.ln-callout.good b { color: var(--good); }
.ln-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
#lbody { container: lane / inline-size; }
@container lane (max-width: 900px) { .ln-two, .bs-row { grid-template-columns: 1fr; } }
@container lane (max-width: 520px) { .ln-t .xs { display: none; } }
@container lane (max-width: 760px) { .ln-t .sm { display: none; } .ln-t td .pg { max-width: 210px; } .ln-t td.barc { min-width: 92px; } .ln-t td, .ln-t th { padding-left: 9px; padding-right: 9px; } .bx .trk { min-width: 28px; } .bx b { min-width: 40px; } }
.ln-two .wt { min-width: 0; }
.wt-q { display: flex; align-items: center; gap: 6px; max-width: 320px; margin-bottom: 8px; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; }
.wt-q svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.wt-q input { border: 0; background: none; padding: 7px 0; flex: 1; min-width: 0; outline: none; font-size: 13.5px; }
.th-s { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.th-s:hover { color: var(--text); }
.ln-t th.n .th-s { text-align: right; }
.wt-more { margin-top: 8px; font-size: 13px; }
.tbar.bad { background: color-mix(in oklab, var(--bad) 45%, transparent); }
.ln-t tr.flag td { background: color-mix(in oklab, var(--bad) 7%, transparent); }
.ln-t td.t { position: relative; }
.ln-t td .pg { display: inline-flex; flex-direction: column; min-width: 0; max-width: 300px; vertical-align: middle; }
.ln-t td .pg a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-t td .pg a:hover { color: var(--accent); text-decoration: underline; }
.pg-sub { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgw { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pgw .pg { flex: 1; }
.pg-d { width: 28px; height: 28px; flex: none; opacity: .5; }
.pg-d:hover, .pg-d:focus-visible { opacity: 1; }
.pg-d svg { width: 14px; height: 14px; }
.qw-q { display: block; font-weight: 500; }
.sub-n { display: block; font-size: 11.5px; }
.chip.ix-ok { background: color-mix(in oklab, var(--good) 14%, transparent); color: var(--good); text-transform: none; }
.chip.ix-bad { background: color-mix(in oklab, var(--bad) 14%, transparent); color: var(--bad); text-transform: none; }
.ln-brand { padding: 14px 16px; margin-top: 4px; }
.bs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bs { display: flex; flex-direction: column; gap: 2px; }
.bs > span:first-child { font-size: 12.5px; color: var(--muted); }
.bs b { font-size: 22px; font-weight: 600; }
.bs.lead b { font-size: 26px; }
.bs-bar { display: flex; gap: 2px; height: 10px; margin: 12px 0 6px; }
.bs-bar span { display: block; height: 100%; min-width: 2px; }
.bs-bar span:first-child { border-radius: 4px 0 0 4px; } .bs-bar span:last-child { border-radius: 0 4px 4px 0; }
.bs-bar .nb, .bs-lg .nb { background: var(--series-1); } .bs-bar .br, .bs-lg .br { background: var(--series-2); } .bs-bar .hd, .bs-lg .hd { background: var(--bubble); outline: 1px solid var(--line); outline-offset: -1px; }
.bs-lg { margin: 0; font-size: 12.5px; }
.bs-lg span { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 5px 0 10px; vertical-align: -1px; }
.bs-lg span:first-child { margin-left: 0; }
.ln-qtabs { margin: 0 0 10px; display: inline-flex; flex-wrap: wrap; }
.ln-thr { font-weight: 400; } .ln-thr b { font-weight: 600; }
@media (max-width: 820px) {
  .ln-kpis.hero, .ln-kpis.hero.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln-kpis.hero > *, .ln-kpis.hero.n5 > :nth-child(-n+2) { grid-column: auto; }
  .ln-kpis.hero.n5 > :first-child { grid-column: 1 / -1; }
  .ln-kpis.hero .ln-kpi b { font-size: 21px; }
  .fn-step { grid-template-columns: 1fr 64px; row-gap: 4px; }
  .fn-step .fn-bar { grid-column: 1 / -1; grid-row: 2; }
  .fn-step .dl { grid-column: 2; grid-row: 1; justify-self: end; display: none; }
  .fn-drop { padding-left: 0; flex-wrap: wrap; }
  .ln-two, .bs-row { grid-template-columns: 1fr; }
  .ln-t td .pg { max-width: 190px; }
  .ln-cmp { order: 3; }
  .ln-custom { order: 6; }
}

.ln-nav { mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); align-items: center; }
.ln-grp { flex: none; font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 0 2px 0 10px; }
.ln-grp:first-child { padding-left: 2px; }
.ln-nav button[aria-current="true"] { background: var(--bubble); color: var(--text); }
.ln-finding b { color: inherit; font-weight: 700; }
td.quiet .dl { color: var(--faint); font-weight: 500; }
.chip.ix-warn { background: color-mix(in oklab, var(--warn) 16%, transparent); color: var(--text); text-transform: none; }
.pg-d.has { opacity: 1; width: auto; padding: 0 7px; gap: 3px; display: inline-flex; align-items: center; color: var(--accent); }
.pg-d.has b { font-size: 11.5px; }

/* suggestions on the strip: the gist, three lines of what we saw and of the fix, the effect in two; Read it all opens it */
.ins-row { align-items: start; }
.insight.compact:not(.full) .ins-rows .why { display: none; }
.insight.compact:not(.full) .ins-rows dd { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.insight.compact:not(.full) .ins-rows dd:last-of-type { -webkit-line-clamp: 2; }
.ins-more { font-size: 12.5px; margin: 2px 0 8px; }
