:root{--ink: #1b1b1b;--ink-soft: #454545;--muted: #696969;--muted-2: #929292;--line: #e2e0d8;--line-strong: #c9c6bb;--bg: #faf9f5;--surface: #ffffff;--yellow: #ffde75;--yellow-strong: #ffd84d;--yellow-light: #fff5d3;--yellow-faint: #fffbee;--blue: #2b71db;--blue-bg: #e8f0fc;--green: #2f8f52;--green-bg: #e9f6ed;--orange: #c4621f;--orange-bg: #fff0e6;--red: #c8243f;--red-bg: #fde9ee;--radius: 10px;--radius-sm: 6px;--shadow: 0 1px 2px rgba(27, 27, 27, .06), 0 4px 14px rgba(27, 27, 27, .05);--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 var(--font);-webkit-font-smoothing:antialiased}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}h1{font-size:22px;line-height:1.2;margin:0 0 4px;font-weight:650;letter-spacing:-.01em}h2{font-size:15px;margin:0 0 12px;font-weight:650}p{margin:0}button,input,select,textarea{font:inherit;color:inherit}.mono{font-family:var(--mono);font-size:12.5px}.muted{color:var(--muted)}.small{font-size:12.5px}.nowrap{white-space:nowrap}.num{font-variant-numeric:tabular-nums;text-align:right}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100%}.side{background:var(--yellow-faint);border-right:1px solid var(--line);padding:18px 12px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 18px}.brand-mark{width:30px;height:30px;border-radius:50%;background:var(--yellow);border:2px solid var(--ink);display:grid;place-items:center;font-weight:800;font-size:14px}.brand b{display:block;font-size:15px}.brand span{font-size:12px;color:var(--muted)}.nav{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--radius-sm);color:var(--ink-soft);font-weight:500}.nav:hover{background:#ffde754d;text-decoration:none}.nav.active{background:var(--yellow-light);color:var(--ink);box-shadow:inset 2px 0 0 var(--ink)}.nav svg{width:17px;height:17px;flex:none}.side-foot{margin-top:auto;padding:10px;border-top:1px solid var(--line);font-size:12.5px}.side-foot b{display:block;font-size:13px}.main{padding:28px 32px 48px;min-width:0}.page{max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:20px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.card.flush{padding:0;overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}.card-head h2{margin:0}.grid{display:grid;gap:14px}.grid.tiles{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.grid.two{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}.tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow)}.tile .label{color:var(--muted);font-size:12.5px}.tile .value{font-size:26px;font-weight:650;margin-top:2px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}.tile .sub{color:var(--muted);font-size:12px;margin-top:2px}.kv{display:grid;grid-template-columns:170px 1fr;gap:8px 14px}.kv dt{color:var(--muted)}.kv dd{margin:0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:left;font-weight:600;font-size:12px;color:var(--muted);padding:10px 14px;border-bottom:1px solid var(--line);background:#fcfbf8;white-space:nowrap}td{padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:top}tr:last-child td{border-bottom:none}tr.click{cursor:pointer}tr.click:hover td{background:var(--yellow-faint)}.badge{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:550;border:1px solid transparent;white-space:nowrap}.badge.gray{background:#f0efe9;color:var(--ink-soft)}.badge.yellow{background:var(--yellow-light);color:#7a5a00;border-color:#f3dc8b}.badge.green{background:var(--green-bg);color:var(--green)}.badge.red{background:var(--red-bg);color:var(--red)}.badge.blue{background:var(--blue-bg);color:var(--blue)}.badge.orange{background:var(--orange-bg);color:var(--orange)}.badge svg{width:12px;height:12px}.tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:-4px}.tab{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;font:inherit;font-size:14px;color:var(--ink-soft);background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer}.tab:hover{color:var(--ink)}.tab.active{color:var(--ink);font-weight:600;border-bottom-color:var(--ink)}.tab .count{font-size:12px;padding:0 7px;border-radius:999px;background:#f0efe9;color:var(--ink-soft);font-variant-numeric:tabular-nums}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 14px;border-radius:var(--radius-sm);border:1px solid var(--line-strong);background:var(--surface);cursor:pointer;font-weight:550;white-space:nowrap}.btn:hover{border-color:var(--ink-soft)}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--yellow);border-color:#e9c44f}.btn.primary:hover{background:var(--yellow-strong);border-color:var(--ink-soft)}.btn.danger{color:var(--red)}.btn.small{height:28px;padding:0 10px;font-size:13px}.btn svg{width:15px;height:15px}.input,select.input,textarea.input{height:36px;padding:0 11px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%}textarea.input{height:auto;padding:9px 11px;resize:vertical;min-height:72px}.input:focus{outline:none;border-color:var(--ink-soft);box-shadow:0 0 0 3px var(--yellow-light)}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:12.5px;color:var(--muted);font-weight:550}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:12px}.search{position:relative}.search svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--muted-2)}.search .input{padding-left:34px;width:300px}.note{padding:10px 12px;border-radius:var(--radius-sm);font-size:13px;display:flex;gap:8px;align-items:flex-start}.note svg{width:16px;height:16px;flex:none;margin-top:1px}.note.error{background:var(--red-bg);color:var(--red)}.note.info{background:var(--blue-bg);color:#1d4f9c}.note.warn{background:var(--yellow-light);color:#6b4f00}.note.ok{background:var(--green-bg);color:var(--green)}.empty{padding:36px 18px;text-align:center;color:var(--muted)}.lockbox{border:1px dashed var(--line-strong);border-radius:var(--radius);padding:18px;background:var(--yellow-faint);display:flex;flex-direction:column;gap:12px}.lockbox h3{margin:0;font-size:14px;display:flex;gap:8px;align-items:center}.lockbox h3 svg{width:17px;height:17px}.transcript{display:grid;grid-template-columns:280px 1fr;min-height:420px}.chat-list{border-right:1px solid var(--line);overflow-y:auto;max-height:620px}.chat-item{padding:10px 14px;border-bottom:1px solid var(--line);cursor:pointer}.chat-item:hover{background:var(--yellow-faint)}.chat-item.active{background:var(--yellow-light)}.chat-item b{display:block;font-weight:550;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.messages{padding:16px 18px;overflow-y:auto;max-height:620px;display:flex;flex-direction:column;gap:10px}.msg{max-width:82%;padding:9px 12px;border-radius:10px;white-space:pre-wrap;word-break:break-word}.msg.user{align-self:flex-end;background:var(--yellow-light);border:1px solid #f3dc8b}.msg.assistant{align-self:flex-start;background:var(--surface);border:1px solid var(--line-strong)}.msg.blocked{border-style:dashed;opacity:.85}.msg-meta{font-size:11.5px;color:var(--muted);margin-top:4px;display:flex;gap:6px;flex-wrap:wrap}.bars{position:relative;display:flex;align-items:flex-end;gap:2px;height:140px;padding-top:8px;border-bottom:1px solid var(--line-strong)}.bar-col{flex:1;height:100%;display:flex;align-items:flex-end;position:relative;cursor:default}.bar{width:100%;background:var(--blue);border-radius:4px 4px 0 0;min-height:0}.bar-col:hover .bar{filter:brightness(.88)}.bar-tip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);background:var(--ink);color:#fff;font-size:12px;padding:4px 8px;border-radius:6px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .1s;z-index:2}.bar-col:hover .bar-tip{opacity:1}.bar-axis{display:flex;gap:2px;margin-top:6px}.bar-axis span{flex:1;text-align:center;font-size:11px;color:var(--muted)}.bar-max{position:absolute;top:-4px;left:0;font-size:11px;color:var(--muted)}.auth{min-height:100%;display:grid;place-items:center;padding:24px;background:var(--yellow-faint)}.auth-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:16px}.auth-card .brand{padding:0}.qr{align-self:center;border:1px solid var(--line);border-radius:10px;padding:8px;background:#fff}.secret{font-family:var(--mono);font-size:13px;background:#f4f3ee;padding:8px 10px;border-radius:6px;word-break:break-all;text-align:center;letter-spacing:.04em}.code-input{text-align:center;font-size:22px;letter-spacing:.3em;height:46px;font-family:var(--mono)}.overlay{position:fixed;inset:0;background:#1b1b1b59;display:grid;place-items:center;padding:20px;z-index:20}.dialog{background:var(--surface);border-radius:12px;padding:22px;width:100%;max-width:460px;box-shadow:0 10px 40px #0000002e;display:flex;flex-direction:column;gap:14px}.dialog h2{margin:0}.pager{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}@media(max-width:860px){.shell{grid-template-columns:1fr}.side{position:static;height:auto;flex-direction:row;flex-wrap:wrap;padding:10px}.brand{padding:4px 8px;width:100%}.side-foot{display:none}.main{padding:18px 16px 40px}.transcript{grid-template-columns:1fr}.chat-list{border-right:none;border-bottom:1px solid var(--line);max-height:220px}.search .input{width:100%}.grid.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tile .value{font-size:22px}.kv{grid-template-columns:1fr;gap:2px 0}.kv dd{margin-bottom:8px}}.id-cell{background:none;border:1px dashed transparent;border-radius:6px;padding:1px 4px;margin:-1px -4px;color:var(--ink-soft);cursor:copy;white-space:nowrap}.id-cell:hover{border-color:var(--line, #ddd);color:inherit}.limit-share{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.limit-bar{display:inline-block;width:56px;height:6px;border-radius:999px;background:#f0efe9;overflow:hidden}.limit-bar>span{display:block;height:100%;min-width:2px;background:var(--yellow, #ffde75)}.limit-bar>span.high{background:var(--orange, #ff8b45)}.budget-bar{height:10px;margin-top:8px;border-radius:999px;background:#f0efe9;overflow:hidden}.budget-bar.thin{height:5px;margin-top:6px}.budget-bar>span{display:block;height:100%;min-width:3px;border-radius:inherit;background:var(--yellow, #ffde75)}.budget-bar>span.high{background:var(--orange, #ff8b45)}.card-head h2{display:flex;align-items:center;gap:8px}.card-head h2 svg{color:var(--muted)}.funnel{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.funnel-step{display:flex;flex-direction:column;gap:6px;min-width:0}.funnel-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:14px}.funnel-head b{font-size:20px;font-variant-numeric:tabular-nums}.funnel-bar{height:8px;border-radius:999px;background:#f0efe9;overflow:hidden}.funnel-bar span{display:block;height:100%;border-radius:inherit;background:var(--yellow)}
