:root {
  --bg: #f6f1ea;
  --bg2: #efe6dc;
  --paper: #fffdf9;
  --panel: #fffdf9;
  --ink: #191510;
  --soft: #756b60;
  --muted: #a79b8d;
  --rule: #e7ded3;
  --rule2: #d8cbbb;
  --accent: #8a623a;
  --accent2: #f4ebe0;
  --accent3: #65431f;
  --ok: #3d765f;
  --stop: #a23f36;
  --warn: #9a5b1d;
  --night: #191510;
  --night2: #2b241d;
  --display: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --shadow: 0 18px 42px rgba(57, 43, 30, .10);
  --shadow-soft: 0 9px 24px rgba(57, 43, 30, .07);
  --lane-conversations: #7b5a37;
  --lane-ad: #6f634f;
  --lane-teams: #5f5668;
}
* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(circle at 18% -10%, #fffaf3 0, var(--bg) 42%, var(--bg2) 100%); color: var(--ink); font: 14px/1.5 var(--text); text-rendering: optimizeLegibility; }
h1, h2, h3, .big { font-family: var(--display); font-weight: 650; letter-spacing: 0; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 0; font-weight: 700; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--rule2); background: #fff; padding: 8px 14px; border-radius: 10px; transition: background .12s, border-color .12s, box-shadow .12s, transform .12s; font-weight: 650; }
button:hover { background: #f8f9fc; border-color: #b8bfd0; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 18px rgba(91,91,214,.18); }
button.primary:hover { background: var(--accent3); border-color: var(--accent3); }
button.link { border: 0; background: transparent; padding: 4px 6px; color: var(--accent3); text-decoration: none; box-shadow: none; }
button.link:hover { background: var(--accent2); }
button.danger { color: var(--stop); }
button:disabled { opacity: .48; cursor: default; box-shadow: none; }
button:disabled:hover { background: inherit; border-color: var(--rule2); transform: none; }
button.primary:disabled:hover { background: var(--accent); border-color: var(--accent); }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, .side-thread:focus-visible, .piece:focus-visible, img:focus-visible { outline: 3px solid rgba(91,91,214,.24); outline-offset: 2px; }
select, input, textarea { border: 1px solid var(--rule2); background: #fff; padding: 10px 12px; border-radius: 10px; max-width: 100%; }
select { appearance: auto; cursor: pointer; color-scheme: light; min-height: 40px; }
select option { background: #fff; color: var(--ink); }
textarea { line-height: 1.6; }
.lede, .note, .why, .side-note { color: var(--soft); }
.error { color: var(--stop); min-height: 1.5em; margin: 0; }

#login { min-height: 100vh; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at top, #ffffff 0, #eef2ff 42%, #f7f8fc 100%); }
#login form { width: min(430px, 100%); display: grid; gap: 14px; padding: 34px; background: rgba(255,255,255,.92); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
#login h1 { font-size: 38px; margin: 0; }
#login label { display: grid; gap: 6px; font-size: 13px; color: var(--soft); font-weight: 600; }

header { display: flex; align-items: center; gap: 22px; padding: 14px 28px; border-bottom: 1px solid var(--rule); background: rgba(255,255,255,.94); color: var(--ink); flex-wrap: wrap; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 rgba(16,24,40,.02); backdrop-filter: blur(16px); }
.brand { display: grid; gap: 1px; }
.brand strong { font-size: 21px; font-weight: 750; color: var(--ink); }
nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
nav button { border: 0; border-radius: 999px; padding: 8px 12px; color: var(--soft); background: transparent; }
nav button:hover { background: #f2f4f7; color: var(--ink); }
nav button.on { background: var(--accent2); color: var(--accent3); box-shadow: inset 0 0 0 1px rgba(91,91,214,.16); }
.count { font-family: var(--mono); font-size: 12px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--soft); }
#live { color: var(--muted); font-size: 10px; }
#live.on { color: var(--ok); }
.banner { background: #fff1f0; color: var(--stop); padding: 10px 28px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid #ffd6d2; }
.dataset { margin: 0; padding: 8px 28px; font-size: 12px; color: var(--soft); border-bottom: 1px solid var(--rule); background: #fff; }

.metric { display: grid; grid-template-columns: minmax(240px, 1.1fr) 1fr 1.2fr; gap: 28px; padding: 22px 38px; border-bottom: 1px solid var(--rule); align-items: start; background: #fff; color: var(--ink); }
.big { font-size: 44px; line-height: 1; margin: 5px 0 10px; }
.bar { position: relative; height: 6px; background: #edf0f6; border-radius: 999px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; transition: width .4s; }
.bar b { position: absolute; left: 99%; top: -4px; bottom: -4px; width: 1px; background: var(--accent3); }
.metric dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; }
.metric dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
.metric dd { margin: 0; font-size: 26px; font-weight: 700; }
.byscenario { display: grid; gap: 5px; font-size: 12px; max-height: 96px; overflow: auto; color: var(--soft); }
.byscenario div { display: grid; grid-template-columns: 1fr 50px 90px; gap: 8px; align-items: center; }
.byscenario span:nth-child(2) { font-family: var(--mono); text-align: right; }

main { padding: 34px 38px 72px; max-width: 1640px; margin: auto; }
.page-intro { margin-bottom: 26px; max-width: 850px; }
.page-intro h2 { margin: 8px 0; font-size: 30px; line-height: 1.18; }
.page-intro p:last-child { color: var(--soft); }
.toolbar, .readiness-toolbar { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; font-size: 13px; color: var(--soft); flex-wrap: wrap; }
.toolbar label, .readiness-toolbar label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.toolbar select, .readiness-toolbar select { min-width: 155px; }
.spacer { flex: 1; }
.group { margin-bottom: 30px; }
.group > h2 { font-size: 22px; margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule2); padding-bottom: 8px; }
.group > h2 small { font: 12px var(--mono); color: var(--soft); }
.group > h2 button { margin-left: auto; font: 13px var(--text); }
.draft, .row, .thread, .readiness-card, .learning, .demo-panel, .demo-result, .handover-result { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-soft); }
.draft { display: grid; grid-template-columns: 210px 1fr 190px; gap: 22px; padding: 22px; margin-bottom: 12px; }
.draft.stale { box-shadow: inset 3px 0 0 var(--accent), var(--shadow-soft); }
.draft:target { outline: 3px solid rgba(91,91,214,.28); }
.meta { font-size: 13px; color: var(--soft); display: grid; gap: 4px; align-content: start; }
.meta strong { color: var(--ink); font-weight: 700; font-size: 15px; }
.tag { display: inline-block; font: 11px var(--mono); border: 1px solid var(--rule2); border-radius: 999px; padding: 2px 8px; margin-right: 4px; color: var(--soft); background: #f8fafc; }
.tag.artist { border-color: #c7d2fe; color: var(--accent3); background: var(--accent2); }
.tag.customer { background: #eef6ff; color: #175cd3; border-color: #cfe3ff; }
.tag.record { border-color: #b2ddff; color: #026aa2; background: #f0f9ff; }
.tag.staleflag { background: #fff1f0; color: var(--stop); border-color: #ffd6d2; }
.body .asked { font-size: 13px; color: var(--soft); border-left: 3px solid var(--rule2); padding-left: 10px; margin: 0 0 10px; }
.body textarea { width: 100%; min-height: 138px; resize: vertical; padding: 14px; background: #fff; }
.body textarea.changed { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,91,214,.12); }
details { font-size: 12px; margin-top: 8px; }
details summary { cursor: pointer; color: var(--soft); padding: 10px 0; border-top: 1px solid var(--rule); }
details pre { font: 12px/1.45 var(--mono); background: #f8fafc; border: 1px solid var(--rule); padding: 10px; overflow: auto; max-height: 260px; margin: 6px 0 0; border-radius: 10px; }
.actions { display: grid; gap: 8px; align-content: start; }
.actions .hint { font-size: 12px; color: var(--soft); margin: 0; }
.empty { color: var(--soft); padding: 40px 0; text-align: center; font-size: 18px; }

.demo-shell { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 22px; align-items: start; }
.demo-copy { background: linear-gradient(180deg, #ffffff, #f7f8ff); color: var(--ink); border: 1px solid var(--rule); border-radius: 16px; padding: 30px; min-height: 340px; display: grid; align-content: start; gap: 12px; box-shadow: var(--shadow-soft); }
.demo-copy h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 0; max-width: 12ch; }
.demo-copy p:not(.eyebrow) { color: var(--soft); max-width: 34ch; margin: 0; }
.demo-status { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 14px; color: var(--accent3); font: 12px/1.6 var(--text); }
.desk-steps { list-style: none; counter-reset: steps; padding: 14px 0 0; margin: 0; }
.desk-steps li { counter-increment: steps; display: flex; gap: 12px; align-items: center; color: var(--soft); padding: 12px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.desk-steps li::before { content: "0" counter(steps); color: var(--accent); font-size: 11px; letter-spacing: .08em; font-weight: 800; }
.demo-panel, .demo-result { padding: 26px; }
.demo-panel { display: grid; gap: 18px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.demo-panel label { display: grid; gap: 6px; color: var(--soft); font-size: 13px; font-weight: 600; }
.demo-panel textarea { min-height: 160px; resize: vertical; color: var(--ink); }
.demo-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; border-top: 1px solid var(--rule); padding-top: 18px; }
.demo-result { grid-column: 2; }
.demo-result h2, .handover-result h2 { margin: 2px 0 10px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.demo-result pre { white-space: pre-wrap; font: 14px/1.55 var(--text); background: #f8fafc; border: 1px solid var(--rule); padding: 12px; border-radius: 10px; }
.reply-copy { padding: 8px 0 18px; font: 15px/1.8 var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-copy p { margin: 0 0 14px; }
.evidence-grid { display: grid; gap: 12px; margin-top: 12px; }
.evidence-item { padding: 12px 14px; background: #f8fafc; border: 1px solid var(--rule); border-radius: 10px; overflow-wrap: anywhere; color: #344054; }
.fact-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); margin-bottom: 6px; font-weight: 750; }
.fact-list { margin: 6px 0; padding-left: 18px; }
.unknown { color: var(--muted); font-style: italic; }

.thread { margin-bottom: 22px; padding: 22px; }
.thread h3 { font-size: 18px; margin: 0 0 8px; border-bottom: 1px solid var(--rule); padding-bottom: 7px; display: flex; gap: 12px; align-items: baseline; }
.thread h3 button { margin-left: auto; font: 13px var(--text); }
.msg { display: grid; grid-template-columns: 190px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.msg .by { color: var(--soft); font-size: 13px; }
.row { display: grid; grid-template-columns: 170px 1fr 150px; gap: 18px; padding: 22px; margin-bottom: 10px; font-size: 14px; }
.row > *, .row p { min-width: 0; overflow-wrap: anywhere; }
.row .was { color: var(--soft); text-decoration: line-through; font-size: 13px; }
.approved { color: var(--ok); } .rejected { color: var(--stop); }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
th { text-align: left; font: 11px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); border-bottom: 1px solid var(--rule2); padding: 8px 10px 8px 0; }
td { border-bottom: 1px solid var(--rule); padding: 8px 10px 8px 0; vertical-align: top; }
td.mono, td:first-child { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
td.detail { max-width: 460px; color: var(--soft); overflow-wrap: anywhere; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; font-size: 14px; border-radius: 12px; max-width: 90vw; box-shadow: var(--shadow); }

.overview-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.overview-heading h1 { font-size: clamp(30px, 3.2vw, 44px); margin: 8px 0; line-height: 1.1; }
.overview-heading p:not(.eyebrow) { color: var(--soft); margin: 0; }
.overview-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.readiness-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 26px; }
.readiness-stat { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 20px; display: grid; gap: 8px; box-shadow: var(--shadow-soft); }
.readiness-stat strong { font-size: 36px; line-height: 1.1; }
.readiness-stat > span:last-child, .case-owner, .case-date { color: var(--soft); font-size: 12px; }
#readiness-source { margin-left: auto; font-size: 12px; color: var(--soft); }
.readiness-cases { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: start; }
.readiness-card { padding: 22px; }
.case-heading { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.priority-pill { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--accent2); color: var(--accent3); font-weight: 750; }
.priority-pill.high { background: #fff1f0; color: var(--stop); }
.readiness-card h2 { font-size: 24px; margin: 16px 0 2px; }
.case-owner { margin: 0 0 18px; }
.case-issues > div { border-top: 1px solid var(--rule); padding: 13px 0 0; margin-top: 13px; }
.case-issues strong { font-size: 13px; font-weight: 700; }
.case-issues p { color: var(--soft); font-size: 13px; line-height: 1.65; margin: 5px 0 14px; }
.case-footer button { width: 100%; margin-top: 14px; }
.handover-result { margin: 28px 0; padding: 28px; }
.learning { padding: 16px 18px; margin-bottom: 22px; }
.learning-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; margin-top: 10px; }
.learning-cell { display: grid; gap: 2px; }
.learning-cell strong { font-size: 24px; }
.learning-cell span { font-size: 12.5px; color: var(--soft); }

.options { display: grid; gap: 10px; margin: 4px 0 12px; }
.option { display: grid; gap: 6px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; }
.option:hover { border-color: #b7bde8; background: #fbfcff; }
.option.on { background: var(--accent2); border-color: #b8baf8; box-shadow: inset 4px 0 0 var(--accent); }
.option-text { white-space: pre-wrap; font-size: 15px; line-height: 1.5; }
.option-meta, .precedents { font-size: 12px; color: var(--soft); }
.precedents { margin: 8px 0 0; padding-left: 18px; }
.precedents li { margin: 8px 0; white-space: pre-wrap; }
.option-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; }
.option-down { border-radius: 10px; padding: 6px 8px; font-size: 14px; line-height: 1; opacity: .7; }
.option-down:hover { opacity: 1; border-color: var(--stop); }
.option-card.down .option { opacity: .5; }
.option-card.down .option-text { text-decoration: line-through; text-decoration-color: var(--stop); }
.option-warning { font-size: 12px; color: var(--stop); }

body.wide #metric, body.wide #dataset { display: none; }
body.wide #app { height: 100vh; display: flex; flex-direction: column; }
body.wide #app > header, body.wide #app > .banner { flex: none; }
body.wide main { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; width: 100%; max-width: none; padding: 0; }
body.wide #tab-side { flex: 1; min-height: 0; display: flex; }
.side { display: grid; grid-template-columns: minmax(282px,320px) minmax(420px,1fr) minmax(340px,430px); flex: 1; height: auto; min-height: 0; width: 100%; background: var(--bg); }
.side-list, .side-panel { overflow-y: auto; background: #fff; }
.side-list { min-width: 0; border-right: 1px solid var(--rule); }
.side-panel { border-left: 1px solid var(--rule); padding: 18px; }
.lanes { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 10px; border-bottom: 1px solid var(--rule); background: #fff; }
.lane { border: 1px solid transparent; border-radius: 12px; padding: 10px 4px; display: grid; gap: 2px; justify-items: center; font-size: 12px; color: var(--soft); min-width: 0; }
.lane:hover { background: #f8f9fc; transform: none; }
.lane.on { color: var(--accent3); background: var(--accent2); border-color: #c7c9ff; }
.lane strong { max-width: 100%; overflow: visible; text-overflow: clip; font-size: 11px; font-weight: 700; }
.lane-count { font: 750 18px var(--text); color: inherit; }
.lane-flag { font: 10px var(--mono); color: var(--stop); text-transform: uppercase; letter-spacing: .06em; }
.lane-about { margin: 0; padding: 12px 16px 8px; font-size: 12.5px; line-height: 1.45; color: #344054; background: #fbfcff; border-bottom: 1px solid var(--rule); }
.lane-source { color: var(--soft); font-family: var(--mono); font-size: 11px; }
.side-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 6px; }
.side-list-head select { min-height: 34px; padding: 5px 8px; font-size: 13px; }
#side-search { margin: 8px 16px 10px; width: calc(100% - 32px); font-size: 13px; padding: 9px 10px; }
#side-source:empty { display: none; }
#side-more { display: block; margin: 10px auto 16px; }
.side-note { font-size: 12.5px; color: var(--soft); margin: 6px 0; }
.side-list > .side-note { padding: 0 16px; }
.side-thread { display: grid; grid-template-columns: 42px 1fr; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--rule); border-left: 3px solid transparent; border-radius: 0; padding: 13px 16px 13px 13px; background: transparent; }
.side-thread:hover { transform: none; background: #f8f9fc; }
.side-thread.on { background: #f4f5ff; border-left-color: var(--accent); }
.side-thread-body { display: grid; gap: 4px; }
.side-thread-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.side-thread-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.side-thread-top span { flex: none; font-size: 11.5px; color: var(--soft); white-space: nowrap; }
.side-thread-preview { font-size: 13px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule2); background: #f8fafc; font: 700 12px var(--mono); color: var(--soft); }
.avatar.big { width: 48px; height: 48px; }
.side-thread.on .avatar { background: var(--accent); color: #fff; border-color: var(--accent); }
.side-chat { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; background: #f7f8fc; }
.side-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--rule); background: #fff; z-index: 1; }
.side-chat-head strong { font-size: 17px; overflow-wrap: anywhere; }
.lane-badge, .phase { margin-left: auto; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; background: #fff; }
.lane-badge.conversations, .tag.lane-tag.conversations { color: var(--lane-conversations); border-color: #c7c9ff; }
.lane-badge.ad, .tag.lane-tag.ad { color: var(--lane-ad); border-color: #99f6e4; }
.lane-badge.teams, .tag.lane-tag.teams { color: var(--lane-teams); border-color: #ddd6fe; }
.lane-badge.cs, .tag.lane-tag.cs { color: #2e6b8a; border-color: #b9d6e6; }
.side-messages { overflow-y: auto; padding: 26px clamp(18px,3vw,38px); display: flex; flex-direction: column; gap: 13px; }
.bubble { max-width: min(72%,560px); padding: 11px 14px; border-radius: 16px 16px 16px 6px; background: #fff; border: 1px solid var(--rule); align-self: flex-start; box-shadow: 0 6px 16px rgba(16,24,40,.04); line-height: 1.55; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.outbound { align-self: flex-end; background: var(--accent); color: #fff; border-color: var(--accent); border-radius: 16px 16px 6px 16px; }
.bubble.auto, .bubble.blast { opacity: .72; font-size: 13.5px; }
.bubble img { display: block; max-width: min(280px,72vw); max-height: 320px; border-radius: 12px; margin-bottom: 6px; background: #eef2f7; cursor: zoom-in; }
.bubble-meta { display: block; margin-top: 6px; font-size: 11px; opacity: .68; }
.photo-missing { display: inline-block; font-size: 12px; padding: 18px 14px; border: 1px dashed currentColor; border-radius: 10px; opacity: .7; margin-bottom: 6px; }
.side-gap, .loading-line { align-self: center; font-size: 12px; color: var(--soft); border: 1px solid var(--rule); padding: 7px 12px; border-radius: 999px; background: #fff; margin: 0; }
.side-reply { border-top: 1px solid var(--rule); background: #fff; padding: 16px 24px 18px; display: grid; gap: 8px; }
.side-reply textarea { width: 100%; resize: vertical; font-size: 15px; min-height: 108px; }
.side-reply-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.side-reply-actions .primary { min-width: 150px; }
.side-attached { display: flex; gap: 8px; flex-wrap: wrap; }
.side-attached:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 8px 3px 3px; background: #fff; }
.chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.panel-block { border: 1px solid var(--rule); border-radius: 14px; background: #fff; padding: 15px 16px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(16,24,40,.04); }
.panel-block.reply-suggestions { border-color: #c7c9ff; box-shadow: 0 10px 28px rgba(91,91,214,.10); }
.panel-block.case-brief { border-color: #d8dcff; background: linear-gradient(180deg, #fff, #fbfcff); }
.panel-block.next { border-color: #c7c9ff; background: #fbfbff; }
.panel-block.next ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#side-voice { width: 100%; min-height: 38px; font-size: 13px; margin-bottom: 10px; }
.tone-control, .reply-label { display: grid; gap: 6px; color: var(--soft); font-size: 12px; font-weight: 700; }
.tone-control span, .reply-label span { color: var(--ink); }
.reply-label { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.reply-label span { color: var(--soft); font-weight: 400; }
.tone-control select { margin: 0 0 10px; }
.suggestion-details, .voice-details { margin-top: 10px; }
.voice-details .panel-block { box-shadow: none; background: #fbfcff; margin: 8px 0 0; }
.case-revision { font: 11px var(--mono); color: var(--soft); background: #f3f4f8; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 7px; }
.case-summary { margin: 8px 0 10px; color: #344054; }
.case-missing { display: grid; gap: 2px; padding: 9px 10px; background: #fff8ed; border: 1px solid #fedf89; color: #7a4b00; border-radius: 10px; font-size: 12.5px; }
.case-question { margin: 10px 0; color: #344054; font-size: 13px; }
.case-copy { margin: 8px 0 2px; }
.case-evidence { margin: 10px 0; }
.case-details { margin-top: 10px; }
.case-form { display: grid; gap: 12px; padding-top: 8px; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.case-grid label { display: grid; gap: 5px; color: var(--soft); font-size: 12px; font-weight: 700; }
.case-grid label.wide { grid-column: 1 / -1; }
.case-grid input, .case-grid textarea { width: 100%; padding: 8px 10px; font-size: 13px; border-radius: 9px; }
.case-grid textarea { resize: vertical; min-height: 64px; }
.case-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 10px; }
.case-candidates { margin: 10px 0; }
.candidate-list { display: grid; gap: 10px; margin-top: 10px; }
.candidate-card { border: 1px solid var(--rule); border-radius: 12px; padding: 10px; background: #fff; }
.candidate-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.calendar-check { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.calendar-check input { min-height: 36px; padding: 7px 9px; font-size: 13px; }
.calendar-result { margin-top: 8px; }
.calendar-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.calendar-day { display: grid; gap: 1px; padding: 7px 8px; border: 1px solid var(--rule); border-radius: 9px; background: #f8fafc; font-size: 12px; }
.calendar-day strong { font-size: 12px; }
.calendar-day span { color: var(--soft); }
.calendar-day.booked { background: #eef4ff; border-color: #c7d7fe; }
.calendar-day.blocked, .calendar-day.off { background: #f2f4f7; }
.calendar-day.needs_confirmation, .calendar-day.available { background: #fff8ed; border-color: #fedf89; }
.facts { display: grid; gap: 7px; margin-top: 8px; }
.fact { display: grid; grid-template-columns: minmax(96px,.42fr) 1fr; gap: 10px; font-size: 13.5px; border-top: 1px solid var(--rule); padding-top: 7px; }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact span { color: var(--soft); }
.fact strong { font-weight: 650; }
.mini-msg, .quoted, .linked-lead { font-size: 13.5px; margin: 6px 0 0; }
.side-panel input[type="search"] { width: 100%; margin: 8px 0 10px; font-size: 14px; }
.pieces { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pieces > .side-note { grid-column: 1 / -1; }
.piece { position: relative; display: grid; gap: 2px; text-align: left; padding: 0 0 10px; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(16,24,40,.04); }
.piece:hover { transform: translateY(-1px); border-color: #b8baf8; box-shadow: var(--shadow-soft); }
.piece img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; background: #eef2f7; cursor: zoom-in; }
.piece.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,91,214,.16); }
.piece-add { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.96); border: 1px solid var(--rule); font-size: 15px; font-weight: 800; }
.piece-title, .piece-artist, .piece-why { padding: 0 10px; font-size: 12.5px; }
.piece-title { font-weight: 700; padding-top: 7px; }
.piece-artist { color: var(--soft); }
.piece-action { justify-self: start; margin: 8px 10px 0; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 750; }
.piece.on .piece-action { background: var(--ok); }
.piece-level { justify-self: start; margin: 5px 10px 0; padding: 2px 7px; border-radius: 999px; background: var(--accent2); color: var(--accent3); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.piece-why { color: #475467; line-height: 1.35; }
.seen { display: block; font-size: 12px; line-height: 1.4; margin: 0 0 6px; padding: 6px 9px; border-left: 3px solid var(--accent); background: var(--accent2); border-radius: 0 8px 8px 0; max-width: min(340px,100%); }
.side-note.learned { color: var(--ok); }
.voice, .linked-item { padding: 9px 0; border-top: 1px solid var(--rule); display: grid; gap: 3px; }
.voice-head, .linked-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.voice-head span, .linked-meta { color: var(--soft); font: 11.5px var(--mono); }
.voice-says { margin: 0; font-size: 13.5px; font-style: italic; }
.panel-block.voices, .panel-block.linked { border-left: 4px solid var(--accent); }
.panel-block.voices.ad { border-left-color: var(--lane-ad); }
.panel-block.voices.teams, .panel-block.linked { border-left-color: var(--lane-teams); }
.panel-block.linked.returning { border-left-color: var(--accent); }
.mini-msg.reply-line { padding-left: 12px; border-left: 2px solid var(--rule2); color: var(--soft); }
.linked-item .link, .voice .link { justify-self: start; padding-left: 0; font-size: 12.5px; }

.image-preview { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 44px 20px 24px; background: rgba(15,23,42,.72); backdrop-filter: blur(10px); }
.image-preview img { max-width: min(92vw,980px); max-height: 86vh; object-fit: contain; border-radius: 16px; box-shadow: 0 28px 90px rgba(15,23,42,.38); background: #fff; }
.image-preview-close { position: fixed; top: 18px; right: 18px; background: #fff; color: var(--ink); border: 0; }
.image-preview img:focus-visible, .image-preview-close:focus-visible { outline-color: rgba(91,91,214,.45); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 1280px) { .side { grid-template-columns: 280px minmax(0,1fr) 360px; } .side-panel { padding: 14px; } }
@media (max-width: 1150px) { .readiness-cases { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 1100px) {
  body.wide #app { height: auto; }
  body.wide #tab-side, body.wide main { display: block; }
  .side { grid-template-columns: minmax(280px,320px) minmax(0,1fr); height: auto; }
  .side-list { max-height: 64vh; }
  .side-chat { min-height: 70vh; }
  .side-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); max-height: none; }
  .pieces { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  header { padding: 12px 16px; gap: 12px; }
  .metric { grid-template-columns: 1fr; padding: 18px 16px; gap: 18px; }
  .metric dl { grid-template-columns: repeat(4,1fr); }
  .byscenario { display: none; }
  main { padding: 16px 16px 60px; }
  .overview-heading { display: block; }
  .overview-actions { margin-top: 18px; }
  .readiness-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .readiness-cases { grid-template-columns: minmax(0,1fr); }
  #readiness-source { margin-left: 0; }
  .demo-shell, .demo-grid { grid-template-columns: 1fr; }
  .demo-result { grid-column: auto; }
  .draft, .row { grid-template-columns: 1fr; gap: 10px; }
  .msg { grid-template-columns: 1fr; gap: 0; }
  #tab-audit { overflow-x: auto; }
}
@media (max-width: 700px) {
  .brand strong { font-size: 19px; }
  nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  nav button { flex: 0 0 auto; }
  .who { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .side { grid-template-columns: 1fr; }
  .side-list { max-height: 46vh; }
  .lanes { position: sticky; top: 0; z-index: 2; }
  .side-chat { min-height: 64vh; }
  .side-chat-head { padding: 12px 14px; }
  .side-messages { padding: 16px 12px; }
  .bubble { max-width: 92%; }
  .side-reply { padding: 12px; }
  .side-reply-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .side-reply-actions .primary { min-width: 0; }
  .side-reply-actions .side-note { grid-column: 1 / -1; }
  .side-panel { padding: 12px; }
  .pieces { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calendar-days { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .readiness-summary, .metric dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.product-tag { color: var(--soft); font-size: 12px; line-height: 1.1; }
.panel-jump { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 0 0 12px; margin: 0 0 12px; background: linear-gradient(180deg, #fff 72%, rgba(255,255,255,0)); }
.panel-jump a { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255,255,255,.94); color: var(--accent3); font-size: 11.5px; font-weight: 700; text-decoration: none; box-shadow: 0 3px 10px rgba(16,24,40,.04); }
.panel-jump a:hover, .panel-jump a:focus-visible { border-color: #b8baf8; background: var(--accent2); outline: none; }
.side-panel .panel-block { scroll-margin-top: 58px; }
.panel-block { transition: border-color .12s, box-shadow .12s, transform .12s; }
.panel-block:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,91,214,.12), var(--shadow-soft); }

.panel-overview { border-color: #d8dcff; background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%); box-shadow: 0 10px 26px rgba(67,56,202,.07); }
.panel-overview .panel-head { align-items: flex-start; }
.panel-overview .eyebrow { color: var(--accent3); letter-spacing: .16em; }
.panel-overview .side-note { font-size: 13px; line-height: 1.55; color: #475467; margin-top: 8px; }
.panel-overview.ad { border-color: #99f6e4; background: linear-gradient(180deg, #ffffff 0%, #f6fffd 100%); }
.panel-overview.teams { border-color: #ddd6fe; background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%); }
.empty-evidence { display: grid; gap: 4px; padding: 12px; border: 1px dashed #cfd5e3; border-radius: 12px; background: #fafbff; color: #475467; }
.empty-evidence strong { color: var(--ink); font-size: 13px; }
.empty-evidence p { margin: 0; font-size: 13px; line-height: 1.5; }
.empty-evidence span { color: var(--accent3); font-size: 12.5px; font-weight: 650; }
.panel-block .eyebrow { letter-spacing: .15em; }
.panel-block.linked .empty-evidence { background: #fbfaff; border-color: #ddd6fe; }
.panel-block.case-brief .panel-head .eyebrow, .panel-block.reply-suggestions .panel-head .eyebrow { color: var(--accent3); }

:root {
  --bg: #f6f1ea;
  --bg2: #efe6dc;
  --paper: #fffdf9;
  --panel: #fffdf9;
  --ink: #191510;
  --soft: #756b60;
  --muted: #a79b8d;
  --rule: #e7ded3;
  --rule2: #d8cbbb;
  --accent: #8a623a;
  --accent2: #f4ebe0;
  --accent3: #65431f;
  --ok: #3d765f;
  --stop: #a23f36;
  --warn: #9a5b1d;
  --night: #191510;
  --night2: #2b241d;
  --display: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --lane-conversations: #7b5a37;
  --lane-ad: #6f634f;
  --lane-teams: #5f5668;
  --shadow: 0 18px 42px rgba(57, 43, 30, .10);
  --shadow-soft: 0 9px 24px rgba(57, 43, 30, .07);
}
body { background: radial-gradient(circle at 18% -10%, #fffaf3 0, var(--bg) 42%, var(--bg2) 100%); color: var(--ink); }
h1, h2, h3, .brand strong, .big { font-family: var(--display); letter-spacing: -.015em; }
.brand strong { font-size: 24px; }
.eyebrow { color: #8b7a67; }
header, .side-list, .side-panel, .side-chat-head, .side-reply, .dataset, .metric { background: rgba(255,253,249,.96); }
.side-chat { background: #f3eee7; }
.panel-block, .option, .piece, .bubble, .readiness-card, .draft, .row, .thread, .learning, .demo-panel, .demo-result, .handover-result { background: var(--paper); border-color: var(--rule); }
button.primary, .bubble.outbound, .piece-action { background: var(--accent); border-color: var(--accent); }
button.primary:hover { background: var(--accent3); border-color: var(--accent3); }
button.link, .panel-jump a, .empty-evidence span { color: var(--accent3); }
nav button.on, .lane.on, .option.on, .panel-jump a:hover, .panel-jump a:focus-visible { background: var(--accent2); color: var(--accent3); }
.panel-block.reply-suggestions, .panel-block.next, .panel-block.case-brief, .panel-overview { border-color: #dcc8b3; box-shadow: 0 12px 30px rgba(101,67,31,.08); }
.panel-overview, .panel-block.case-brief { background: linear-gradient(180deg, #fffdf9 0%, #fbf6ef 100%); }
.panel-overview.ad, .panel-overview.teams { background: linear-gradient(180deg, #fffdf9 0%, #f8f2ea 100%); border-color: #d8cbbb; }
.empty-evidence { background: #fbf6ef; border-color: #d8cbbb; }
.lane-badge.conversations, .tag.lane-tag.conversations, .lane-badge.ad, .tag.lane-tag.ad, .lane-badge.teams, .tag.lane-tag.teams { color: var(--accent3); border-color: #d8cbbb; }
.side-thread:hover, .lane:hover, button:hover { background: #faf4ec; }
.side-thread.on { background: #f4ebe0; border-left-color: var(--accent); }
.side-thread.on .avatar { background: var(--accent); border-color: var(--accent); }
.avatar { background: #faf4ec; }

/* Source-backed enquiry summary, kept visible above the editable form. */
.brief-observations { display: grid; gap: 10px; margin: 14px 0; }
.brief-observation { padding: 12px 14px; border: 1px solid #e5ddd1; border-radius: 12px; background: #fffdf9; min-width: 0; }
.brief-observation p { margin: 6px 0; overflow-wrap: anywhere; line-height: 1.55; }
.brief-observation small, .brief-reference-grid figcaption { color: #756a5d; font-size: 12px; line-height: 1.5; }
.brief-observation summary { cursor: pointer; margin-top: 8px; font-size: 12px; color: #78562e; }
.brief-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.brief-reference-grid figure { margin: 0; min-width: 0; }
.brief-reference-grid img { width: 100%; height: 150px; object-fit: contain; background: #f2eee7; border-radius: 10px; cursor: zoom-in; }
.brief-reference-grid figcaption { margin-top: 6px; overflow-wrap: anywhere; }
/* the contact's timeline */
.tl { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 62px 14px 1fr; gap: 0 8px; align-items: start; padding: 5px 0; position: relative; font-size: 13px; }
.tl-item + .tl-item::before { content: ""; position: absolute; left: 68px; top: -8px; height: 14px; border-left: 2px solid var(--rule); }
.tl-when { font: 11px var(--mono); color: var(--soft); padding-top: 3px; white-space: nowrap; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); margin-top: 4px; justify-self: center; }
.tl-item.confirmed .tl-dot, .tl-item.session .tl-dot { background: var(--ok); }
.tl-item.quoted .tl-dot, .tl-item.asked_about .tl-dot { background: var(--brass); }
.tl-item.returned .tl-dot { background: var(--ink); }
.tl-item.opted_out .tl-dot { background: var(--stop); }
.tl-item.first_contact .tl-dot, .tl-item.last_active .tl-dot { background: var(--soft); }
.tl-item.checked_in .tl-dot, .tl-item.checked_out .tl-dot, .tl-item.walk_in .tl-dot { background: #00838f; }
.tl-text b { font-weight: 600; }
.tl-source { display: block; font: 10.5px var(--mono); color: var(--soft); letter-spacing: .04em; }
/* who is who in a Teams group chat: one colour per person for the whole thread */
.people { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.people-side { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; }
.people-label { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.person { display: inline-flex; align-items: center; gap: 5px; color: var(--person); font-weight: 600; }
.person-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--person); flex: none; }
.bubble.by-person { border-left: 4px solid var(--person); }
.bubble.by-person.outbound { border-left: 1px solid var(--accent); border-right: 4px solid var(--person); }
.bubble-who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--person); margin-bottom: 4px; }
.bubble.outbound .bubble-who { color: #fff; }
.bubble.outbound .bubble-who .person-dot { outline: 2px solid #fff; }
.bubble-side { font: 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; opacity: .75; font-weight: 500; }
/* the specialist ranking */
.specialist { padding: 8px 0; border-top: 1px solid var(--rule); }
.specialist:first-of-type { border-top: 0; }
.specialist.top strong { font-size: 15px; }
.specialist-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 3px; }
.link-out { font: 12px var(--mono); color: var(--brass); text-decoration: none; margin-left: 8px; }
.link-out:hover { text-decoration: underline; }
/* AD checklist: what the AD team still needs */
.ad-items { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.ad-item { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.ad-mark { width: 16px; text-align: center; font-weight: 700; }
.ad-item.in .ad-mark { color: var(--ok); }
.ad-item.missing .ad-mark { color: var(--stop); }
.ad-item.unsure .ad-mark { color: var(--brass); }
.panel-block.ad-check { border-left: 4px solid var(--stop); }
.panel-block.ad-check.complete { border-left-color: var(--ok); }
.studio-filter { margin-left: 6px; }
/* studio buttons with pending badges, as in InkPulse */
.studio-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 4px; }
.studio-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font: 600 12.5px var(--sans, inherit); cursor: pointer; color: var(--ink); }
.studio-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.studio-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #d92d20; color: #fff; font: 700 11px/18px var(--mono); text-align: center; }
.studio-pill { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; margin-right: 6px; }
.handoff { border-left: 4px solid var(--brass); }
.handoff-text { white-space: pre-wrap; background: var(--paper); border: 1px dashed var(--rule); border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.case-edit > summary { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; cursor: pointer; margin: 4px 0 8px; }
button.photo-missing { cursor: pointer; border: 1px dashed var(--rule); background: transparent; border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--soft); }
/* the supervisor's advisory mark on each option */
.supervisor-badge { display: block; margin-top: 6px; font: 600 11px var(--mono); letter-spacing: .03em; }
.supervisor-badge.ready { color: var(--ok); }
.supervisor-badge.check { color: var(--brass); }
.supervisor-badge.hold { color: var(--stop); }
.supervisor-why { font-weight: 400; color: var(--soft); }
/* testers' notes */
.note-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 8px 22px rgba(16,24,40,.22); cursor: pointer; }
.note-fab[hidden] { display: none; }
.note-dialog { border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; width: min(520px, 92vw); background: var(--paper, #fff); color: var(--ink); }
.note-dialog::backdrop { background: rgba(16,24,40,.35); }
.note-dialog textarea { width: 100%; margin-top: 6px; box-sizing: border-box; font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--rule); }
.note-quote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--brass); background: rgba(0,0,0,.03); white-space: pre-wrap; font-size: 13px; max-height: 160px; overflow: auto; }
.note-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.note-link { float: right; border: 0; background: transparent; cursor: pointer; opacity: 0; font-size: 13px; color: inherit; padding: 0 0 0 6px; }
.bubble:hover .note-link, .option-card:hover .note-link, .note-link:focus { opacity: .7; }
.notes-list { display: grid; gap: 10px; }
.notes-toolbar { margin: 8px 0 12px; }
.note-card { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; background: var(--paper, #fff); }
.note-card.resolved { opacity: .65; }
.note-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 6px; }
.note-flash { outline: 3px solid var(--brass); outline-offset: 3px; transition: outline-color .4s; }
