:root{--purple:#6b43c5;--purple-dark:#4e2c9c;--lavender:#eee8f9;--lime:#e2efae;--ink:#282332;--muted:#7e7789;--line:#e9e5ef;--canvas:#faf9fc;--white:#fff;--radius:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas);font-size:14px}

*{box-sizing:border-box}
body{margin:0}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:default}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a390d8;outline-offset:3px}
button{border:0}
a{text-decoration:none;color:inherit}
h1,h2,p{margin:0}
h1{font-size:clamp(27px,2.6vw,38px);font-weight:600;letter-spacing:-1.25px;line-height:1.15}
h1 em{font-family:Georgia,serif;color:var(--purple);font-weight:400}
h2{font-size:16px;font-weight:650;letter-spacing:-.25px}
p{line-height:1.6}
small{color:var(--muted);font-size:11px}
[hidden]{display:none!important}
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:42px;padding:11px 17px;border-radius:11px;font-size:12px;font-weight:600;white-space:nowrap;transition:background .2s,transform .2s}
.primary{background:var(--purple);color:#fff}
.primary:not(:disabled):hover{background:var(--purple-dark);transform:translateY(-1px)}
.secondary{background:#fff;border:1px solid #ded7e9;color:var(--ink)}
.secondary:hover{background:#f7f4fb}
.text-button{background:none;color:var(--purple);font-size:12px;font-weight:600;padding:8px 0}
.icon-button{width:34px;height:34px;border-radius:9px;background:transparent;font-size:23px;color:var(--muted)}
.icon-button:hover{background:var(--lavender)}
.pill{display:inline-flex;align-items:center;gap:7px;border-radius:7px;background:#f3f0f6;color:#776d83;padding:6px 9px;font-size:10px;font-weight:600;white-space:nowrap}
.pill.violet{color:var(--purple);background:var(--lavender)}
.pill.approved{background:#eaf3d4;color:#4e6529}
.pill.draft{background:#f2edfb;color:#8162ab}
.pill.archived{background:#eee;color:#777}
.dot:before,.small-dot{content:"";display:inline-block;width:6px;height:6px;background:#92ab4c;border-radius:50%}
.wordmark{display:flex;align-items:center;gap:8px;font-size:22px;letter-spacing:-1px;font-weight:750;white-space:nowrap}
.brand-symbol{font-size:37px;line-height:1;color:var(--purple);font-weight:400}
.powered{font-size:10px;letter-spacing:.3px;color:#aaa2b2}
.powered span{padding:0 4px}

.app-shell{display:flex;min-height:100vh}
.sidebar{width:232px;flex-shrink:0;padding:30px 22px 22px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.sidebar .wordmark{font-size:21px}
.workspace-label{font-size:9px;letter-spacing:1.7px;color:#aaa2b2;margin:47px 0 16px 10px;font-weight:600}
.sidebar nav{display:flex;flex-direction:column;gap:7px}
.nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:11px;border-radius:10px;background:none;color:#7d7487;font-size:12px;text-align:left;font-weight:500;transition:background .2s,color .2s}
.nav-item>span:first-child{font-size:19px;line-height:1;min-width:19px;text-align:center}
.nav-item.selected{color:var(--purple);background:#f0eafa;font-weight:650}
.nav-item:hover{background:#f7f4fb}
.nav-count{margin-left:auto;font-size:10px;background:#f3f0f7;border-radius:5px;padding:3px 6px}
.sidebar-bottom{margin-top:auto;padding-top:24px}
.reviewer{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:22px}
.reviewer strong{font-size:11px;display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reviewer span:not(.avatar){display:block;font-size:10px;color:var(--muted);margin-top:4px}
.avatar{display:grid;place-items:center;background:#f1eaf8;color:var(--purple);width:33px;height:33px;border-radius:50%;font-size:11px;font-weight:600;flex-shrink:0}
.sidebar-bottom>.text-button{font-size:10px;margin:8px 0 23px 43px;color:var(--muted)}
.main-shell{min-width:0;flex:1}
.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 39px;border-bottom:1px solid var(--line);gap:15px;background:#fff}
.breadcrumb{font-size:11px;color:#9c94a7;white-space:nowrap}
.breadcrumb span{padding:0 12px;color:#d1cad9}
.breadcrumb strong{color:#655b72;font-weight:500}
.topbar-actions{display:flex;gap:11px;align-items:center}
.version{font-size:11px;color:var(--muted)}
.page-content{max-width:1450px;margin:0 auto;padding:35px 39px 50px}
.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:650;color:var(--purple);margin-bottom:12px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}
.page-heading>.pill{margin-top:15px}
.heading-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

.test-layout{display:grid;grid-template-columns:minmax(0,1fr) 274px;gap:24px;align-items:start}
.chat-card{border:1px solid var(--line);background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 28px #30204403}
.chat-header{display:flex;align-items:center;gap:12px;padding:20px 23px;border-bottom:1px solid var(--line)}
.chat-header h2{font-size:13px;max-width:310px;overflow-wrap:anywhere}
.chat-header>div>span{font-size:10px;color:var(--muted);display:block;margin-top:5px}
.agent-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:var(--purple);background:#efe9f8;font-size:29px;flex-shrink:0}
.chat-header>.text-button{margin-left:auto;font-size:10px;white-space:nowrap}
.mode-bar{display:flex;justify-content:flex-end;padding:10px 20px;border-bottom:1px solid #f6f3f8}
.mode-bar label{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted);margin:0}
.mode-bar select{width:174px;padding:6px 9px;min-height:30px;font-size:10px;background:#fbfafc;border-radius:7px;margin:0}
.messages{min-height:240px;max-height:440px;overflow-y:auto;padding:26px 24px 14px;scrollbar-width:thin}
.message{margin-bottom:24px;max-width:94%;font-size:12px}
.message-author{display:block;font-size:10px;font-weight:600;color:#a298ad;margin-bottom:7px}
.message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;letter-spacing:.05px}
.message.user{margin-left:auto;max-width:88%;display:flex;flex-direction:column;align-items:flex-end}
.message.user .message-body{padding:12px 16px;background:#f2edfa;border-radius:15px 15px 3px 15px;color:#503778}
.message.user .message-author{padding-right:2px}
.message.assistant .message-body{color:#5d536a}
.message-controls{display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}
.message-controls button{font-size:9px;color:#9a8aaa;background:none;padding:4px 0}
.message-controls button:hover{color:var(--purple)}
.message-controls span{font-size:9px;color:#b3a9be;margin-left:auto}
.waiting .message-body{animation:pulse 1.1s ease-in-out infinite}
.message-error .message-body{color:#a5404e!important}
.suggestions{display:flex;flex-wrap:wrap;gap:7px;padding:4px 24px 22px}
.suggestions button{font-size:10px;border:1px solid #e9e2f1;background:#fff;border-radius:8px;padding:9px 11px;color:#84758f;text-align:left}
.suggestions button:hover{border-color:#b7a0d6;color:var(--purple)}
.chat-compose{display:flex;gap:10px;align-items:flex-end;margin:0 20px;border:1px solid #e2dbea;border-radius:13px;padding:9px 10px 9px 14px;background:#fdfcfe}
.chat-compose textarea{border:0;background:transparent;margin:0;padding:5px 0;resize:none;font-size:12px;min-height:44px;line-height:1.6}
.chat-compose textarea:focus-visible{outline:none}
.chat-compose:focus-within{border-color:#a991cc;box-shadow:0 0 0 2px #a991cc20}
.send-button{height:34px;width:34px;flex-shrink:0;border-radius:9px;background:var(--purple);color:#fff;font-size:22px}
.chat-footer{font-size:9px;text-align:center;color:#a198ad;padding:13px 10px;display:flex;align-items:center;justify-content:center;gap:7px}
.small-dot{width:5px;height:5px;background:#ad9bc3}
.context-column{display:flex;flex-direction:column;gap:17px}
.context-card{padding:23px 21px;background:#fff;border:1px solid var(--line);border-radius:17px}
.context-card.lavender{background:#f0ebf8;border-color:transparent}
.context-card h2{font-size:14px;margin-bottom:18px}
.context-card .eyebrow{font-size:8px;margin-bottom:10px;letter-spacing:1.2px}
.knowledge-summary{display:flex;flex-direction:column;gap:13px}
.summary-item{display:flex;gap:10px;align-items:start;font-size:10px;line-height:1.5;color:#6d5d83}
.summary-check{font-size:14px;line-height:1.1;color:#9c80bc;min-width:12px}
.arrow{display:flex;justify-content:space-between;width:100%;margin-top:18px;padding-top:16px;border-top:1px solid #ded3ed;font-size:10px}
.arrow span{font-size:14px}
.empty-text{font-size:11px;line-height:1.7;color:#aaa0b5}
.source-item{display:grid;grid-template-columns:16px 1fr;gap:7px;font-size:10px;color:#78698a;line-height:1.55;margin:14px 0}
.source-item small{grid-column:2;font-size:9px;color:#ac9abd}
.document-icon{color:#a592be}
.response-metrics{font-size:9px;color:#a89bb5;line-height:1.6;margin-top:10px}
.handoff-card .button{width:100%;font-size:10px;min-height:37px}
.decision-note{font-size:10px;line-height:1.7;color:#a094ac;margin:12px 0}
.notice{margin:15px 39px -12px;padding:12px 17px;border:1px solid #d9e7c4;border-radius:11px;color:#557032;background:#f4faeb;font-size:12px}
.notice.is-error{color:#a64451;background:#fff2f3;border-color:#efd1d7}

.knowledge-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px}
.knowledge-list{display:flex;flex-direction:column;gap:10px}
.knowledge-item{border:1px solid var(--line);border-radius:12px;padding:16px;display:grid;grid-template-columns:18px 1fr;gap:9px;text-align:left;background:#fff;align-items:start}
.knowledge-item strong{font-size:11px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.knowledge-item .pill{grid-column:2;width:max-content;font-size:8px;padding:4px 7px}
.knowledge-item.active{border-color:#a58bc9;background:#f3edf9;box-shadow:0 0 0 1px #a58bc920}
.editor-card{border:1px solid var(--line);background:#fff;border-radius:17px;padding:25px;min-width:0}
.editor-card h2{margin-bottom:23px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px}
.section-heading h2{margin:0}
label{display:block;font-size:11px;color:#786b86;margin:0 0 19px;font-weight:500}
input,textarea,select{display:block;width:100%;margin-top:9px;padding:11px 12px;border:1px solid #e3dce9;border-radius:9px;background:#fdfcfe;color:#4c405a;font-size:12px;min-height:40px}
textarea{resize:vertical;line-height:1.7}
input::placeholder,textarea::placeholder{color:#b6aabc;font-size:11px}
.configuration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.configuration-grid .editor-card{padding:23px}
.configuration-grid h2{font-size:14px}
.approval-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:start}
.approval-summary{color:var(--purple);font-size:14px;font-weight:600;margin-bottom:16px}
.pending-decisions{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:0 0 25px}
.pending-item{font-size:10px;line-height:1.6;color:#9987ab}
.check-label{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.6}
.check-label input{width:15px;min-height:15px;flex-shrink:0;margin:2px 0 0;accent-color:var(--purple)}
.review-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:21px}
.review-actions .button{font-size:10px;min-height:39px;padding:10px 12px}
.review-history{max-height:600px;overflow-y:auto}
.history-item{position:relative;padding:0 0 25px 22px;border-left:1px solid #e9e1f3;margin-left:4px}
.history-item strong{font-size:11px}
.history-item p{font-size:11px;margin:8px 0;color:#887893;white-space:pre-wrap;overflow-wrap:anywhere}
.history-item small{font-size:9px}
.history-dot{width:9px;height:9px;display:block;position:absolute;left:-5px;top:3px;border-radius:50%;background:#d6c5eb;border:2px solid #fff}
.history-dot.approved{background:#89a644}
.review-results{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}
.result-item{padding:15px 0;border-bottom:1px solid var(--line)}
.result-item strong{font-size:11px}
.result-item p{font-size:11px;margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#87778f}
.result-item small{font-size:9px}
details{margin-top:10px;font-size:11px;color:#8d799f}
summary{cursor:pointer}
.access-shell{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 20% 0%,#eee6fa,transparent 50%),var(--canvas)}
.access-card{width:100%;max-width:425px;border:1px solid #e9e1f1;background:#fff;border-radius:26px;padding:37px;box-shadow:0 25px 80px #6a438c0a}
.access-card>.wordmark{margin-bottom:33px}
.access-card h1{font-size:36px;line-height:1.13;margin:20px 0 30px;max-width:280px}
.access-card .button{width:100%;margin-top:8px}
.access-card .powered{display:block;text-align:center;margin-top:29px}
.optional{font-size:9px;color:#b0a4bb;margin-left:5px}
.error{font-size:11px;color:#a44353;margin-top:16px}
dialog{border:1px solid var(--line);border-radius:20px;padding:30px;max-width:450px;width:calc(100vw - 40px);color:var(--ink)}
dialog::backdrop{background:#251c3d66}
dialog h2{margin-bottom:24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tab-panel{animation:enter .22s ease-out}
@keyframes enter{from{opacity:.55;transform:translateY(4px)}
to{opacity:1;transform:translateY(0)}
}
@keyframes pulse{50%{opacity:.4}
}


#knowledge-content { min-height: 10rem; max-height: 26rem; white-space: pre-wrap; overflow-wrap: anywhere; field-sizing: content; font-size: 14px; }

@media(min-width:1600px){.page-content{padding-top:45px}
.messages{min-height:320px;max-height:520px}
}
@media(max-width:1150px){.sidebar{width:202px;padding:26px 17px}
.sidebar .wordmark{font-size:18px}
.sidebar .brand-symbol{font-size:31px}
.page-content{padding:30px 25px}
.topbar{padding:0 25px}
.test-layout{grid-template-columns:minmax(0,1fr) 235px;gap:17px}
.context-card{padding:19px 16px}
.configuration-grid{grid-template-columns:1fr 1fr}
.knowledge-layout{grid-template-columns:240px minmax(0,1fr)}
.page-heading{align-items:flex-start}
.page-heading>.pill{font-size:8px}
.topbar-actions{gap:8px}
.breadcrumb{font-size:10px}
.breadcrumb span{padding:0 6px}
.approval-layout{grid-template-columns:1fr}
.pending-decisions{grid-template-columns:1fr 1fr}
}
@media(max-width:850px){.sidebar{width:175px;padding:24px 11px}
.sidebar .wordmark{font-size:16px;gap:5px}
.sidebar .brand-symbol{font-size:29px}
.workspace-label{font-size:8px;margin-left:7px}
.nav-item{font-size:10px;gap:8px}
.topbar{height:74px;padding:0 19px}
.breadcrumb{display:none}
.topbar-actions{margin-left:auto}
.page-content{padding:25px 20px}
.test-layout{grid-template-columns:1fr}
.context-column{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.context-column .lavender{grid-row:span 2}
.page-heading h1{font-size:30px}
.page-heading>.pill{display:none}
.knowledge-layout{grid-template-columns:1fr}
.knowledge-list{display:grid;grid-template-columns:1fr 1fr}
.configuration-grid{grid-template-columns:1fr}
.heading-actions{gap:6px}
.heading-actions .button{font-size:9px;padding:10px}
.review-results{grid-template-columns:1fr}
.notice{margin-left:20px;margin-right:20px}
}

@media(max-width:600px){.app-shell{display:block}
.sidebar{position:static;width:auto;height:auto;padding:19px 20px 0;border-right:0;border-bottom:1px solid var(--line)}
.sidebar .wordmark{font-size:21px}
.sidebar .brand-symbol{font-size:35px}
.workspace-label,.sidebar-bottom{display:none}
.sidebar nav{flex-direction:row;gap:0;overflow-x:auto;margin-top:18px}
.nav-item{border-radius:0;padding:12px 9px;min-width:max-content;width:auto;font-size:10px;border-bottom:2px solid transparent;min-height:43px}
.nav-item>span:first-child{font-size:14px;min-width:14px}
.nav-item.selected{background:none;border-bottom-color:var(--purple)}
.nav-count{display:none}
.topbar{height:62px;padding:0 20px}
.topbar-actions{width:100%;justify-content:flex-end}
.topbar-actions .version{margin-right:auto}
.topbar-actions .button{min-height:35px;font-size:10px;padding:9px 12px}
.page-content{padding:25px 17px 35px}
.page-heading{margin-bottom:23px;gap:15px;flex-direction:column;align-items:stretch}
.eyebrow{font-size:8px;letter-spacing:1.4px}
.page-heading h1{font-size:30px}
.chat-header{padding:17px}
.chat-header h2{font-size:12px}
.chat-header .text-button{font-size:9px}
.chat-header>div>span{font-size:9px}
.mode-bar{padding:8px 14px}
.mode-bar select{font-size:9px}
.messages{padding:23px 18px 8px;min-height:220px;max-height:420px}
.message{font-size:11px;max-width:100%}
.message-controls{gap:10px}
.message-controls span{font-size:8px}
.suggestions{padding:0 16px 17px}
.suggestions button{font-size:9px;padding:9px}
.chat-compose{margin:0 13px}
.chat-footer{font-size:8px}
.context-column{display:flex;gap:14px}
.context-card{padding:20px}
.knowledge-summary{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.summary-item{font-size:10px}
.context-card h2{margin-bottom:16px}
.heading-actions{justify-content:stretch;gap:10px}
.heading-actions .button{flex:1;font-size:10px}
.knowledge-list{grid-template-columns:1fr}
.knowledge-item{padding:14px}
.editor-card{padding:21px}
.approval-layout{gap:18px}
.review-actions .button{flex:1}
.pending-decisions{grid-template-columns:1fr}
.notice{margin-left:17px;margin-right:17px}
.access-shell{padding:20px}
.access-card{padding:30px}
.access-card h1{font-size:34px}
.review-results{margin-top:18px}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

@media(max-width:600px){
 .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}
 .nav-item{min-width:0;width:100%;padding:11px 2px;gap:5px;font-size:9px;flex-direction:column;justify-content:center}
 .nav-item>span:first-child{font-size:17px}
 .message{font-size:13px}
 .message-author{font-size:11px}
 .suggestions button{font-size:11px}
 .chat-footer{font-size:9px}
 .chat-compose textarea{font-size:13px}
 .summary-item{font-size:11px}
 .topbar-actions{gap:8px}
 #logout{font-size:10px}
}

.sidebar nav { margin-top: 38px; }
.main-shell { flex: 1 1 0; }
.agent-actions { display: flex; align-items: center; gap: 9px; }
.agent-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.agent-tabs button { border-bottom: 2px solid transparent; color: #5d536a; background: transparent; padding: 12px 14px; font-weight: 600; }
.agent-tabs button.selected { color: var(--purple); border-color: var(--purple); }
.board-heading { align-items: center; flex-wrap: wrap; }
.ticket-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.ticket-stage { display: flex; flex-direction: column; gap: 10px; text-align: left; color: #574b67; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ticket-stage strong { font-size: 24px; font-weight: 650; color: var(--ink); }
.ticket-stage.active { background: var(--lavender); border-color: #bdade0; color: var(--purple-dark); }
.board-tools { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.board-tools input, .board-tools label { margin: 0; }
.board-tools input[type=search] { max-width: 330px; }
.archive-filter { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.archive-filter input { min-height: auto; width: auto; accent-color: var(--purple); }
.development-tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 13px; align-items: stretch; }
.development-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.ticket-meta { width: 100%; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11px; }
.ticket-id { margin-right: auto; color: #756584; font-weight: 650; }
.ticket-status, .ticket-priority { padding: 4px 7px; border-radius: 6px; background: #f1edf6; color: #574369; }
.ticket-status.in_progress { background: #eee8fa; color: #59389b; }
.ticket-status.review { background: #fff2d6; color: #77540d; }
.ticket-status.done { background: #e8f3da; color: #416319; }
.ticket-priority.high, .ticket-priority.urgent { background: #f9e8ed; color: #943649; }
.ticket-title { border: 0; margin: 14px 0 9px; padding: 0; background: none; text-align: left; color: var(--ink); font-weight: 700; line-height: 1.4; font-size: 16px; overflow-wrap: anywhere; }
.ticket-title:hover { color: var(--purple); }
.ticket-description { color: #665974; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; }
.ticket-next { display: grid; gap: 5px; margin-top: 13px; padding: 11px; background: #f7f4fb; width: 100%; border-radius: 9px; color: #655273; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.ticket-owner { color: #695578; margin-top: auto; padding-top: 13px; font-size: 12px; overflow-wrap: anywhere; }
.board-empty { color: #695578; padding: 25px 2px; }
#development-dialog { max-width: 560px; max-height: calc(100dvh - 35px); }
.ticket-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#development-activity { border-top: 1px solid var(--line); margin-top: 20px; }
#development-log { max-height: 230px; overflow: auto; margin-bottom: 13px; }
@media (max-width: 600px) {
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .sidebar nav .nav-item { font-size: 12px; flex-direction: row; }
  .board-heading { align-items: start; }
  .ticket-stages { gap: 5px; }
  .ticket-stage { padding: 8px 4px; align-items: center; gap: 5px; font-size: 10px; }
  .ticket-stage strong { font-size: 18px; }
  .agent-tabs { gap: 0; }
  .agent-tabs button { font-size: 10px; padding: 10px 5px; }
  .topbar-actions { gap: 5px; }
  .agent-actions { gap: 3px; }
  .agent-actions .pill { display: none; }
  .agent-actions .button { padding: 5px 8px; }
  .topbar { padding: 0 12px; }
}

#back-main { white-space: nowrap; font-size: 10px; }

.planner-panel {
  --canvas-chat: #16181c;
  --surface-chat: #20242a;
  --line-chat: #394149;
  --soft-chat: #afb8c3;
  --text-chat: #f5f6f8;
  --green-chat: #7fbf7f;
  color-scheme: dark;
  color: var(--text-chat);
  background: var(--canvas-chat);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  display: flex; flex-direction: column; min-width: 0;
  flex: 0 0 clamp(356px, 28vw, 444px); align-self: flex-start;
  position: sticky; top: 0; z-index: 4; height: 100dvh;
  border-left: 1px solid #30363e;
  animation: planner-open 220ms ease-out;
}
@keyframes planner-open { from { opacity: .68; transform: translateX(8px); } }
#planner-toggle[aria-expanded=true] { color: #f5f6f8; background: #20242a; border-color: #20242a; }
.planner-panel :is(button,summary,a,textarea):focus-visible { outline: 2px solid var(--green-chat); outline-offset: 3px; }
.planner-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 17px 17px 21px; border-bottom: 1px solid var(--line-chat); }
.planner-brand { display: grid; gap: 4px; }
.planner-brand img, .planner-byline img { display: block; }
.planner-profile, .planner-model { font-size: 11px; color: var(--soft-chat); }
.planner-profile { padding-left: 2px; }
.planner-tools { display: flex; align-items: center; gap: 4px; }
.planner-panel svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#planner-actions { position: relative; }
.planner-tool, #planner-actions summary { display: grid; place-items: center; cursor: pointer; width: 36px; height: 36px; color: var(--soft-chat); background: transparent; border-radius: 9px; list-style: none; }
#planner-actions summary::-webkit-details-marker { display: none; }
.planner-tool:hover, #planner-actions[open] summary, #planner-actions summary:hover { color: var(--text-chat); background: #2a3037; }
.planner-menu { position: absolute; z-index: 3; top: calc(100% + 5px); right: 0; width: max-content; padding: 5px; border-radius: 12px; background: #272c33; border: 1px solid #46505c; box-shadow: 0 12px 30px #0006; }
.planner-menu button { display: flex; width: 100%; align-items: center; gap: 10px; border-radius: 7px; padding: 10px; font-size: 14px; background: transparent; color: var(--text-chat); text-align: left; }
.planner-menu button:not(:disabled):hover { background: #384049; }
.planner-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.planner-scroll, .planner-archive { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #46505c transparent; overscroll-behavior: contain; }
.planner-scroll { padding: 24px 20px 6px; overflow-anchor: none; }
.planner-welcome { margin: clamp(28px, 13vh, 120px) 0 16px; }
.planner-welcome h3 { font-size: 23px; font-weight: 550; letter-spacing: -.65px; margin: 16px 0; }
.planner-shortcuts { display: grid; gap: 6px; }
.planner-shortcuts button { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border: 1px solid var(--line-chat); border-radius: 10px; background: var(--surface-chat); color: #e1e6eb; text-align: left; font-size: 13px; }
.planner-shortcuts button span { color: var(--green-chat); }
.planner-shortcuts button:hover { border-color: var(--green-chat); }
.planner-message { margin-bottom: 22px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.62; }
.planner-message.user { white-space: pre-wrap; width: fit-content; max-width: 90%; margin-left: auto; padding: 9px 13px; border-radius: 15px 15px 4px 15px; background: #263b30; color: #ecf6ed; }
.planner-byline { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #c5cbd2; font-size: 12px; font-weight: 600; }
.planner-message.error, .planner-panel .error { color: #ffadb5; }
.planner-fresh, .planner-fresh .chat-prose > * { animation: planner-in 260ms cubic-bezier(.18,.76,.32,1) both; }
.planner-fresh .chat-prose > :nth-child(n+2) { animation-delay: 40ms; }
.planner-fresh .chat-prose > :nth-child(n+3) { animation-delay: 75ms; }
@keyframes planner-in { from { opacity: 0; transform: translateY(5px); } }
.planner-wait { display: flex; gap: 7px; align-items: center; color: var(--soft-chat); font-size: 13px; }
.planner-wait i { width: 5px; height: 5px; border-radius: 50%; background: var(--green-chat); animation: planner-dot 1.25s ease-in-out infinite; }
.planner-wait i:nth-child(2) { animation-delay: .13s; }
.planner-wait i:nth-child(3) { animation-delay: .26s; }
@keyframes planner-dot { 50% { opacity: .35; transform: translateY(-2px); } }
.planner-footer { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); }
.planner-form { display: flex; padding: 8px; align-items: flex-end; gap: 2px; border: 1px solid #46505c; border-radius: 16px; background: var(--surface-chat); }
.planner-form:focus-within { border-color: var(--green-chat); }
.planner-form textarea { font: inherit; font-size: 14px; line-height: 1.5; min-width: 0; flex: 1; padding: 5px; margin: 0; background: none; border: 0; color: var(--text-chat); resize: none; }
.planner-form textarea:focus-visible { outline: none; }
.planner-form textarea::placeholder { color: var(--soft-chat); font-size: inherit; }
#planner-send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--green-chat); color: #142218; animation: planner-in 180ms ease-out both; }
.planner-model { margin: 7px 4px 0; font-size: 10px; }
.planner-model span { padding: 0 3px; color: #737f88; }
.planner-proposal { margin: 14px 0; padding: 14px; border: 1px solid #46604e; border-radius: 12px; background: #202923; }
.planner-proposal summary { cursor: pointer; font-weight: 600; }
.planner-proposal dl { margin: 12px 0; }
.planner-proposal dt { color: var(--soft-chat); font-size: 12px; }
.planner-proposal dd { margin: 1px 0 6px; white-space: pre-wrap; }
.planner-proposal .button { margin-top: 8px; background: var(--green-chat); color: #142218; }
.planner-text { background: transparent; color: var(--green-chat); padding: 8px 0; }
.planner-archive { padding: 16px 18px; }
.planner-archive-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.planner-archive h3 { font-size: 18px; margin: 0; }
.planner-thread { width: 100%; text-align: left; border-radius: 10px; color: var(--text-chat); background: transparent; padding: 11px 12px; display: grid; gap: 5px; overflow-wrap: anywhere; }
.planner-thread:hover, .planner-thread[aria-current=true] { background: #29352e; }
.planner-thread small { color: var(--soft-chat); }
@media (max-width: 1249px) { .planner-panel { position: fixed; inset: 0 0 0 auto; width: min(414px, 100%); box-shadow: -12px 0 28px #0003; } }
@media (max-width: 600px) { .planner-panel { border: 0; } .planner-tool, #planner-actions summary, #planner-send { width: 44px; height: 44px; } .planner-form textarea { font-size: 16px; } }

body.planner-overlay-open { overflow: hidden; }

.chat-prose { color: var(--prose-text, #e2e7eb); }
.chat-prose > :first-child, .chat-prose li > :first-child { margin-top: 0; }
.chat-prose > :last-child, .chat-prose li > :last-child { margin-bottom: 0; }
.chat-prose p, .chat-prose ul, .chat-prose ol, .chat-prose pre, .chat-prose blockquote, .chat-prose table { margin: 0 0 .85em; }
.chat-prose p { line-height: inherit; }
.chat-prose strong, .chat-prose :is(h1,h2,h3,h4,h5,h6) { color: var(--prose-strong, #f5f6f8); font-weight: 650; }
.chat-prose :is(h1,h2,h3,h4,h5,h6) { margin: 1em 0 .4em; font-size: 1.12em; line-height: 1.4; letter-spacing: -.2px; }
.chat-prose ul, .chat-prose ol { padding-inline-start: 1.5em; }
.chat-prose li { margin: .5em 0; padding-left: .15em; }
.chat-prose li::marker { color: var(--prose-marker, #a4d4a5); font-weight: 600; }
.chat-prose blockquote { padding-left: 12px; border-left: 2px solid var(--prose-marker, #a4d4a5); color: var(--prose-muted, #bac3cc); }
.chat-prose code { background: var(--prose-code, #2a3037); border-radius: 4px; padding: .12em .3em; font-size: .87em; }
.chat-prose pre { padding: 12px; overflow: auto; background: var(--prose-code, #20242a); border-radius: 9px; }
.chat-prose pre code { background: none; padding: 0; }
.chat-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.chat-prose :is(th,td) { border: 1px solid var(--prose-line, #394149); padding: 5px 8px; text-align: left; }
.chat-prose a { color: var(--prose-link, #83d8e7); text-decoration: underline; }

.chat-card {
  --prose-text: #443950; --prose-strong: #30263c; --prose-marker: #7048ad;
  --prose-muted: #655873; --prose-code: #f2eef7; --prose-line: #ddd4e8; --prose-link: #603a9d;
}
.chat-header { background: linear-gradient(115deg, #f7f3fc, #fff 72%); }
.chat-header h2 { font-size: 15px; }
.test-actions { margin-left: auto; position: relative; }
.test-actions summary { display: grid; place-items: center; width: 40px; height: 40px; list-style: none; cursor: pointer; font-size: 16px; color: #6a5a7b; border-radius: 10px; letter-spacing: 2px; }
.test-actions summary::-webkit-details-marker { display: none; }
.test-actions[open] summary, .test-actions summary:hover { background: var(--lavender); }
.test-actions > div { position: absolute; z-index: 2; right: 0; top: 100%; padding: 4px; border: 1px solid var(--line); background: white; box-shadow: 0 6px 25px #35204018; border-radius: 10px; width: max-content; }
.test-actions button, .test-thread { display: block; width: 100%; color: #4c3a62; background: transparent; padding: 10px 12px; text-align: left; border-radius: 8px; }
.test-actions button:hover, .test-thread:hover { background: #f3eff8; }
.test-archive { min-height: 280px; padding: 14px 22px; }
.test-archive header { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
#test-threads { max-height: 55dvh; overflow-y: auto; }
.test-thread { display: grid; gap: 5px; overflow-wrap: anywhere; }
.chat-card .messages { padding-inline: clamp(16px, 2vw, 25px); overflow-anchor: none; }
.chat-card .message { font-size: 14px; line-height: 1.6; }
.chat-card .message-author { font-size: 11px; color: #756480; }
.test-feedback summary { font-size: 11px; color: #73568b; width: fit-content; padding-block: 6px; cursor: pointer; }
.test-feedback .message-controls { margin: 0; }
.test-feedback button { padding: 5px 0; color: #62447a; font-size: 12px; }
.chat-card .message-fresh { animation: planner-in 240ms ease-out both; }
.chat-card .message-fresh .chat-prose > * { animation: planner-in 260ms ease-out both; }
.chat-card .message-fresh .chat-prose > :nth-child(n+2) { animation-delay: 55ms; }
.chat-card .waiting .message-body { animation: none; color: #786a83; }
.chat-card .waiting .message-body::before { display: inline-block; content: ""; width: 6px; height: 6px; margin-right: 7px; vertical-align: middle; border-radius: 50%; background: var(--purple); animation: planner-dot 1.25s ease-in-out infinite; }
.chat-card .suggestions button { font-size: 12px; color: #675278; }
.chat-card .chat-compose textarea { font-size: 14px; }
.chat-card .chat-compose textarea::placeholder { font-size: 13px; color: #85798e; }
.chat-card .send-button { animation: planner-in 180ms ease-out both; }
@media (max-width: 600px) { .chat-card .chat-compose textarea { font-size: 16px; } .test-actions summary, .chat-card .send-button { width: 44px; height: 44px; } }

.access-options { display: grid; gap: 9px; }
.access-options .button { width: 100%; }
.client-shell { min-height: 100dvh; }
.client-header {
  padding: 18px clamp(18px, 6vw, 70px);
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--line);
}
.client-account { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #5b5165; }
.client-account .text-button { padding-inline: 9px; }
.client-main { max-width: 850px; margin: auto; padding: 26px 24px 48px; }
.client-nav { margin-bottom: 26px; }
.client-main h1 { margin-bottom: 20px; }
#tab-reporting .client-main { margin: 0; padding: 0; }
#reporting-back { margin-bottom: 10px; }
#client-logout-error:not(:empty) { max-width: 850px; margin: 12px auto 0; padding-inline: 24px; }
.report-chat {
  --report-ink: #f5f6f8; --report-muted: #bac4cd; --report-line: #46505c; --report-green: #91cf91;
  color-scheme: dark; color: var(--report-ink); background: #16181c;
  border: 1px solid #394149; border-radius: 20px; box-shadow: 0 12px 34px #21152f12;
  overflow: hidden; animation: planner-in 210ms ease-out;
}
.report-chat-head { display: flex; align-items: center; padding: 17px 24px; border-bottom: 1px solid #30373f; }
.report-chat-head img { display: block; }
#report-form, #report-receipt, #report-followup-form { padding: 24px; }
#report-intro { margin-bottom: 14px; font-size: 15px; line-height: 1.55; }
.report-chat :is(input,textarea) {
  border: 1px solid var(--report-line); background: #20242a; color: var(--report-ink);
  font-size: 15px; resize: vertical; margin-top: 6px; line-height: 1.55;
}
.report-chat :is(input,textarea)::placeholder { color: var(--report-muted); font-size: inherit; }
.report-chat :is(button,summary,textarea,input):focus-visible { outline-color: var(--report-green); }
.report-chat label:not(.sr-only) { color: var(--report-muted); font-size: 13px; margin: 13px 0; }
.report-action, .report-primary {
  padding: 9px 12px; min-height: 40px; border-radius: 9px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.report-action { color: var(--report-muted); background: transparent; }
.report-action:not(:disabled):hover { background: #2a3037; color: var(--report-ink); }
.report-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.report-primary { color: #132516; background: var(--report-green); }
.report-primary:not(:disabled):hover { background: #a7d9a7; }
.report-evidence {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin: 15px 0 9px;
  padding: 9px; border: 1px dashed var(--report-line); border-radius: 10px;
}
.report-paste-tip, .dictation-status { color: var(--report-muted, #afb8c3); font-size: 12px; }
.dictation-status:not(:empty) { margin-top: 5px; }
.dictation-status.is-error, .report-error { color: #ffabb4; }
.report-error { margin-top: 8px; font-size: 13px; }
.report-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.report-files, .report-saved-files { margin: 0; padding: 0; list-style: none; }
.report-files { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; }
.report-files:empty { display: none; }
.report-file-chip {
  display: inline-flex; gap: 7px; align-items: center; max-width: 100%; padding: 4px 6px;
  border-radius: 8px; background: #283030; color: #e8e9eb; font-size: 12px;
}
.report-file-chip span { overflow-wrap: anywhere; }
.report-thumbnail { width: 34px; height: 32px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.report-file-remove { background: transparent; color: inherit; border-radius: 4px; padding: 6px; }
.report-file-remove:hover { background: #394248; }
.report-draft-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report-source { margin: 12px 0; color: var(--ink); font-size: inherit; }
.report-source summary { cursor: pointer; font-size: 13px; }
.report-chat .report-source { color: var(--report-muted); }
.report-issues { display: grid; gap: 8px; margin: 12px 0 6px; }
.report-issue { min-width: 0; margin: 0; color: var(--report-ink); border: 1px solid var(--report-line); border-radius: 12px; }
.report-issue fieldset { min-width: 0; margin: 0; padding: 0 13px 10px; border: 0; }
.report-issue-summary { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.report-remove-issue { min-height: 32px; }
#report-receipt { min-height: 225px; animation: planner-in 230ms ease-out; }
.report-check {
  width: 42px; height: 42px; margin-bottom: 12px; border-radius: 50%;
  display: grid; place-items: center; color: var(--report-green); background: #283d32; font-size: 22px;
}
#report-receipt h2 { font-size: 22px; }
.report-receipt-issues { list-style: none; margin: 8px 0 0; padding: 0; color: var(--report-muted); overflow-wrap: anywhere; }
.report-receipt-issues li { padding: 6px 0; }
.report-receipt-issues .ticket-id { color: #b9c8b8; }
.client-report-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  text-align: left; padding: 15px 17px; width: 100%; min-width: 0;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 8px;
}
.client-report-row:hover { border-color: #bda6dc; }
.client-report-row .ticket-status, .report-issue-count { flex: 0 0 auto; font-size: 11px; }
.client-report-summary { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.report-issue-count { padding: 4px 8px; border-radius: 7px; color: var(--purple-dark); background: #f1eaf8; }
#client-report-detail h2 { margin: 10px 0 16px; overflow-wrap: anywhere; }
.report-records { display: grid; gap: 8px; margin-top: 16px; }
.report-record { border: 1px solid var(--line); border-radius: 12px; min-width: 0; margin: 0; color: var(--ink); font-size: 14px; }
:is(.report-record-summary, .report-issue-summary) {
  display: flex; align-items: center; gap: 10px; padding: 13px; cursor: pointer; border-radius: 11px;
}
:is(.report-record-summary, .report-issue-summary)::-webkit-details-marker { display: none; }
:is(.report-record-summary, .report-issue-summary)::before {
  content: ""; width: 6px; height: 6px; flex: none; margin-right: 3px;
  border-right: 1px solid; border-bottom: 1px solid; transform: rotate(-45deg);
}
:is(.report-record, .report-issue)[open] > summary::before { transform: rotate(45deg); }
.report-record-summary .client-report-summary { flex: 1; }
.report-record-summary .ticket-status { flex: none; }
.report-record-body { padding: 0 13px 13px; }
.report-record-body .button { margin-top: 8px; }
.report-history-status:not(:empty) { color: #396149; margin-bottom: 12px; }
.report-followups { margin: 12px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.report-followup-entry { padding: 8px 0; }
.report-followup-entry small { color: var(--muted); }
#report-followup-dialog { padding: 0; max-width: 580px; max-height: calc(100dvh - 32px); overflow: auto; }
#report-followup-heading { margin: 0; }
#report-followup-target { color: var(--report-muted); overflow-wrap: anywhere; font-size: 13px; }
.report-stored-description { margin: 9px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.report-saved-files li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--line); list-style: none;
}
.report-file { color: var(--purple-dark); text-decoration: underline; overflow-wrap: anywhere; display: inline-flex; gap: 8px; align-items: center; }
.ticket-report { background: #e9f3ec; color: #396149; padding: 4px 7px; border-radius: 6px; }
.development-evidence { border-top: 1px solid var(--line); margin-top: 20px; }
@media (max-width: 600px) {
  .client-header { padding: 14px 16px; }
  .client-header .wordmark { font-size: 18px; }
  .client-header .brand-symbol { font-size: 28px; }
  .client-account { align-items: flex-end; flex-direction: column; gap: 0; font-size: 12px; }
  .client-account .text-button { padding: 5px 0; }
  .client-main { padding: 20px 14px 35px; }
  .client-nav button { font-size: 13px; padding: 10px; }
  #report-form, #report-receipt, #report-followup-form { padding: 16px; }
  .report-chat-head { padding: 14px 16px; }
  .report-chat :is(input,textarea) { font-size: 16px; }
  .report-paste-tip { max-width: 100%; padding: 0 9px; }
}

/* Main Tracey's microphone, 96 × 32 px fading waveform and keep-audio control. */
.dictation-controls { position: relative; display: inline-flex; flex-shrink: 0; align-items: center; }
.report-dictation { display: flex; width: max-content; margin: 8px 0 0 auto; }
.dictation-mic {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; padding: 0;
  color: #cbd5e1; background: rgba(32, 36, 42, .88); border: 1px solid rgba(148, 163, 184, .18);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.dictation-mic svg { width: 16px; height: 16px; }
.dictation-mic:hover:not(:disabled) {
  color: #f8fafc; border-color: rgba(127, 191, 127, .36); background: rgba(42, 48, 55, .94);
}
.dictation-mic[data-state="starting"] {
  color: #f5c46b; border-color: rgba(245, 196, 107, .46); background: rgba(74, 57, 27, .58);
  box-shadow: 0 0 0 3px rgba(245, 196, 107, .12); animation: dictation-preparing 1.2s ease-in-out infinite;
}
@keyframes dictation-preparing { 50% { box-shadow: 0 0 0 6px rgba(245, 196, 107, .24); } }
.dictation-mic[data-state="recording"], .dictation-mic[data-state="transcribing"] {
  color: #7fbf7f; border-color: rgba(127, 191, 127, .36); background: rgba(77, 141, 94, .32);
  box-shadow: 0 0 0 3px rgba(127, 191, 127, .2);
}
.dictation-mic[data-state="recording"]:hover { color: #9ad49a; background: rgba(77, 141, 94, .43); }
.dictation-mic[data-state="transcribing"] { opacity: 1; cursor: wait; }
.dictation-mic[data-state="transcribing"] svg { opacity: .25; }
.dictation-mic[data-state="transcribing"]::before {
  content: ""; position: absolute; inset: 2px; border: 1.5px solid transparent; border-radius: 50%;
  border-top-color: #7fbf7f; border-left-color: #7fbf7f; animation: dictation-spin .7s linear infinite;
}
@keyframes dictation-spin { to { transform: rotate(360deg); } }
.dictation-mic[data-state="retry"] { color: #f5c46b; }
.dictation-mic[data-state="retry"] svg { display: none; }
.dictation-mic[data-state="retry"]::after {
  content: ""; width: 20px; height: 20px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9l3 3 3-3M20 12a8 8 0 1 0-2.34 5.66' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dictation-wave {
  position: absolute; right: 100%; top: 50%; z-index: 2;
  width: 96px; height: 32px; transform: translateY(-50%); pointer-events: none;
}
.dictation-wave-track {
  position: absolute; inset: 0; overflow: hidden; border-radius: 12px 0 0 12px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .3) 25%, black 70%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .3) 25%, black 70%);
}
.dictation-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dictation-wave-keep {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: auto;
  display: flex; align-items: center; justify-content: center; padding: 0;
  width: 20px; height: 20px; border-radius: 50%; color: #fda4af;
  background: rgba(22, 24, 28, .92); border: 1px solid rgba(227, 138, 148, .38);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.dictation-wave-keep:hover {
  border-color: rgba(227, 138, 148, .6); background: rgba(130, 47, 61, .4);
  transform: translate(-50%, -50%) scale(1.08);
}
.dictation-wave-keep svg { width: 10px; height: 10px; }
.dictation-discard {
  padding: 5px 0; background: none; color: #bac4cd; font-size: 11px; text-decoration: underline;
}
.dictation-discard:hover { color: #f5f6f8; }
@media (max-width: 600px) {
  .dictation-mic { width: 44px; height: 44px; }
  .dictation-wave-keep::after { position: absolute; inset: -9px; content: ""; }
}
