:root{--bg:#f4f3ef;--surface:#fff;--border:#ddd9d0;--text:#2c2c2a;--muted:#6f6d66;--accent:#534ab7;--accent-dark:#3c3489;--danger:#a32d2d;--radius:10px;color:var(--text);font-family:ui-sans-serif,system-ui,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0}.layout{max-width:1080px;margin:0 auto;padding:16px}header{justify-content:space-between;align-items:center;padding:8px 4px 16px;display:flex}.brand{font-size:18px;font-weight:700}a{color:var(--accent)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:16px;padding:16px 20px}.card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}h1,h2,h3{margin:4px 0 8px}h2{font-size:17px}h3{font-size:15px}.muted{color:var(--muted);font-size:13px}.mono{font-family:ui-monospace,Cascadia Mono,Consolas,monospace;font-size:13px}.center{text-align:center;margin-top:80px}.error{color:var(--danger);font-size:13px}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;color:var(--muted);border-bottom:1px solid var(--border);padding:8px 10px;font-size:12px;font-weight:600}td{border-bottom:1px solid var(--border);padding:10px}tbody tr:hover{cursor:pointer;background:#faf9f6}.badge{white-space:nowrap;background:#eee;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-block}.status-NEW,.status-TRIAGING,.status-IN_PROGRESS,.status-IMPLEMENTING{color:var(--accent-dark);background:#eeedfe}.status-PENDING_APPROVAL{color:#712b13;background:#faece7}.status-NEEDS_HUMAN,.status-ESCALATED{color:#791f1f;background:#fcebeb}.status-WAITING_CUSTOMER{color:#0f6e56;background:#e1f5ee}.status-RESOLVED,.status-CLOSED{color:#5f5e5a;background:#f1efe8}label{color:var(--muted);margin:12px 0;font-size:13px;display:block}input,textarea{width:100%;font:inherit;color:var(--text);border:1px solid var(--border);background:#fff;border-radius:8px;margin-top:4px;padding:8px 10px;display:block}textarea{resize:vertical}button{font:inherit;border:1px solid var(--accent-dark);background:var(--accent);color:#fff;cursor:pointer;border-radius:8px;padding:8px 16px;font-weight:600}button:hover{background:var(--accent-dark)}button:disabled{opacity:.6;cursor:default}button.ghost{color:var(--accent-dark);border-color:var(--border);background:0 0}button.ghost:hover{background:#f2f1fc}button.danger{background:var(--danger);border-color:#791f1f}button.danger.ghost{color:var(--danger);background:0 0}.actions{gap:10px;margin-top:8px;display:flex}.reject-box{border-top:1px dashed var(--border);margin-top:12px;padding-top:4px}.approval{background:#fffcfa;border-color:#f0997b}.notes{background:#faf5e8;border:1px solid #f0e3bd;border-radius:8px;padding:8px 12px;font-size:13px}.msg{border:1px solid var(--border);border-radius:8px;margin:10px 0;padding:10px 14px}.msg-inbound{background:#fbfaf7}.msg-outbound{background:#f4f8f6;border-color:#b9e0d0}.msg-internal_note{background:#faf5e8;border-style:dashed}.msg-head{justify-content:space-between;font-size:13px;display:flex}.msg-subject{margin-top:4px;font-size:13px;font-weight:600}.msg-body{font:inherit;white-space:pre-wrap;margin:6px 0 0;font-size:14px}.login-wrap{place-items:center;min-height:100vh;display:grid}.login-card{width:340px}.login-card button{width:100%;margin-top:8px}
