:root{--bg:#f6f5f2;--surface:#fff;--text:#1d1b16;--muted:#6b665c;--border:#e4e0d6;--accent:#b5832a;--accent-text:#fff;--green:#2f7d4a;--red:#b3372e;--amber:#a86b00;--blue:#2e5d9f;--radius:10px;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.5}@media (prefers-color-scheme:dark){:root{--bg:#17160f;--surface:#211f18;--text:#efece4;--muted:#a59f92;--border:#36332a;--accent:#d9a54a;--accent-text:#1a1408;--green:#6cc28c;--red:#ec7b72;--amber:#e3ac4d;--blue:#86aee6}}*{box-sizing:border-box}body{background:var(--bg);margin:0}h1{margin:0 0 4px;font-size:1.5rem}h2{margin:20px 0 10px;font-size:1.1rem}a{color:var(--blue)}.muted{color:var(--muted)}.small{font-size:.85rem}.center{place-items:center;min-height:100vh;padding:16px;display:grid}.layout{grid-template-columns:240px 1fr;min-height:100vh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:16px;height:100vh;padding:20px 12px;display:flex;position:sticky;top:0}.brand{padding:0 8px;font-weight:700}.brand small{color:var(--muted);font-size:.8rem;font-weight:400;display:block}nav{flex-direction:column;flex:1;gap:2px;display:flex}.nav{text-align:left;color:var(--text);cursor:pointer;font:inherit;background:0 0;border:0;border-radius:8px;padding:9px 10px}.nav:hover{background:var(--bg)}.nav.active{background:var(--accent);color:var(--accent-text)}.user{color:var(--muted);justify-content:space-between;align-items:center;padding:0 8px;font-size:.85rem;display:flex}.content{width:100%;max-width:1100px;padding:28px 32px}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;display:flex}.page-header p{margin:0}.actions{gap:8px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:12px;margin-bottom:16px;padding:18px;display:flex}.card h2{margin:0}.login{width:100%;max-width:380px}label{flex-direction:column;gap:4px;font-size:.9rem;font-weight:600;display:flex}input,textarea,select{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-weight:400}textarea{resize:vertical}input:focus,textarea:focus,select:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}button{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:8px;padding:8px 14px}button:disabled{opacity:.55;cursor:not-allowed}button.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent);font-weight:600}button.danger{color:var(--red)}button.link{color:var(--blue);background:0 0;border:0;padding:0}button.link.block{text-align:left;padding:4px 0;display:block}.row{align-items:center;display:flex}.row.between{justify-content:space-between}.row.gap{gap:8px}.row.wrap{flex-wrap:wrap}.grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;display:grid}.grid2{grid-template-columns:1fr 1fr;gap:20px;display:grid}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:left;flex-direction:column;gap:6px;padding:14px;display:flex}.stat strong{font-size:1.5rem}.stat.clickable:hover{border-color:var(--accent)}.label{color:var(--muted);text-transform:uppercase;letter-spacing:.03em;font-size:.8rem;font-weight:600}.checks{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.badge{white-space:nowrap;border:1px solid;border-radius:999px;padding:2px 8px;font-size:.78rem;font-weight:600;display:inline-block}.badge.green{color:var(--green)}.badge.red{color:var(--red)}.badge.amber{color:var(--amber)}.badge.gray{color:var(--muted)}.badge.blue{color:var(--blue)}.notice{border:1px solid;border-radius:8px;margin:8px 0;padding:10px 12px}.notice.ok{color:var(--green)}.notice.error,.error-text{color:var(--red)}.empty{text-align:center;padding:30px 0}table{border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;overflow:hidden}th,td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:10px 12px}th{color:var(--muted);text-transform:uppercase;letter-spacing:.03em;font-size:.8rem}tr.clickable{cursor:pointer}tr.clickable:hover td,tr.detail td{background:var(--bg)}td.clip{text-overflow:ellipsis;white-space:nowrap;max-width:320px;overflow:hidden}.pre{white-space:pre-wrap;margin:2px 0 10px}pre{white-space:pre-wrap;word-break:break-word;background:var(--surface);border-radius:6px;padding:8px;font-size:.8rem}.thumb{object-fit:cover;border-radius:6px;width:64px;height:64px}.draft .incoming{background:var(--bg);border-radius:8px;padding:10px 12px}.draft .incoming p{white-space:pre-wrap;margin:2px 0}.toggle{cursor:pointer;flex-direction:row;align-items:center;gap:10px;font-weight:400}.toggle input{opacity:0;width:1px;height:1px;position:absolute}.slider{background:var(--border);border-radius:999px;flex:none;width:40px;height:22px;transition:background .15s;position:relative}.slider:after{content:"";background:var(--surface);border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:3px;left:3px}.toggle input:checked+.slider{background:var(--green)}.toggle input:checked+.slider:after{transform:translate(18px)}.toggle input:focus-visible+.slider{outline:2px solid var(--accent)}.chat{min-height:360px;max-height:60vh;overflow-y:auto}.bubble{border-radius:12px;max-width:75%;padding:10px 12px}.bubble p{white-space:pre-wrap;margin:0}.bubble img{border-radius:8px;max-width:200px;margin-bottom:6px;display:block}.bubble.me{background:var(--accent);color:var(--accent-text);align-self:flex-end}.bubble.bot{background:var(--bg);border:1px solid var(--border);align-self:flex-start}.bubble .meta{flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;display:flex}.composer input:first-child{flex:1}.picker{margin-top:8px}@media (width<=760px){.layout{grid-template-columns:1fr}.sidebar{height:auto;position:static}nav{flex-flow:wrap}.content{padding:16px}.grid2{grid-template-columns:1fr}td.clip{max-width:140px}table{display:block;overflow-x:auto}}
