:root{--bg:#f6f7fb;--card:#fff;--text:#172033;--muted:#667085;--line:#e5e7eb;--accent:#2563eb;--danger:#dc2626;--ok:#16a34a;--warn:#f59e0b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}.topbar{height:64px;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10;box-shadow:0 8px 24px rgba(15,23,42,.18)}.brand{font-weight:800;display:flex;align-items:center;gap:10px}.dot{width:12px;height:12px;border-radius:50%;background:#38bdf8;display:inline-block}.topbar a{color:#e2e8f0;text-decoration:none;margin-left:18px;font-weight:600}.container{max-width:1280px;margin:0 auto;padding:28px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.page-head h1{margin:0 0 6px;font-size:30px}.page-head p{margin:0;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:30px}.card,.panel{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px rgba(16,24,40,.06)}.card{padding:20px}.card span{display:block;color:var(--muted);font-size:14px}.card strong{display:block;font-size:34px;margin-top:6px}.danger strong{color:var(--danger)}.panel{padding:20px;margin-bottom:24px}h2{margin:26px 0 12px;font-size:20px}.grid-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;align-items:end}label{font-size:13px;font-weight:700;color:#344054;display:flex;flex-direction:column;gap:6px}input,select{height:42px;border:1px solid #d0d5dd;border-radius:10px;padding:0 12px;background:#fff;font:inherit}button,.btn{display:inline-flex;align-items:center;justify-content:center;height:42px;border:0;border-radius:10px;background:var(--accent);color:#fff;text-decoration:none;font-weight:800;padding:0 16px;cursor:pointer}.btn.secondary{background:#475569}.btn.small{height:32px;padding:0 10px;font-size:12px}.danger-btn{background:var(--danger)}table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(16,24,40,.05)}th,td{text-align:left;border-bottom:1px solid var(--line);padding:12px 14px;vertical-align:top;font-size:14px}th{background:#f9fafb;color:#475467;font-size:12px;text-transform:uppercase;letter-spacing:.04em}tr:last-child td{border-bottom:0}.badge{display:inline-flex;padding:4px 9px;border-radius:999px;background:#e2e8f0;font-weight:800;font-size:12px}.badge.active,.badge.processed,.badge.sent{background:#dcfce7;color:#166534}.badge.demo,.badge.queued,.badge.uploaded,.badge.processing,.badge.transcribing{background:#fef3c7;color:#92400e}.badge.failed,.badge.disabled,.badge.suspended{background:#fee2e2;color:#991b1b}code{background:#f1f5f9;padding:4px 6px;border-radius:7px;word-break:break-all}.inline{display:inline-block;margin-right:5px}.muted{color:var(--muted);font-size:12px}.login-page,.home{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#dbeafe,#f8fafc 45%,#e0f2fe)}.login-card,.hero{width:min(440px,calc(100vw - 32px));background:#fff;border-radius:24px;padding:32px;box-shadow:0 24px 80px rgba(15,23,42,.18);border:1px solid #e2e8f0}.login-card h1,.hero h1{margin-top:0}.login-card label{margin-bottom:14px}.login-card .btn{width:100%}.alert{background:#fee2e2;color:#991b1b;border-radius:10px;padding:10px;margin-bottom:14px;font-weight:700}.hero{text-align:center}.hero p{color:var(--muted);font-size:18px;line-height:1.5;margin-bottom:24px}@media(max-width:800px){.topbar{height:auto;align-items:flex-start;flex-direction:column;padding:16px}.topbar nav{margin-top:10px}.topbar a{margin:0 14px 0 0}.container{padding:16px}.page-head{flex-direction:column}table{display:block;overflow-x:auto;white-space:nowrap}}
.actions-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.checkline{display:flex;flex-direction:row;gap:10px;align-items:center;height:42px}.checkline input{height:auto}.note-text{white-space:pre-wrap;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:14px;line-height:1.5;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.error-text{background:#fff1f2;color:#991b1b}.small-strong{font-size:16px!important;word-break:break-word}h3{margin:18px 0 8px}.panel ul{margin-top:6px;line-height:1.7}
.qr-small{width:96px;height:96px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px}.mobile-page{min-height:100vh;background:linear-gradient(145deg,#eff6ff,#f8fafc 45%,#e0f2fe);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}.mobile-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:18px}.mobile-card{width:min(520px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:28px;padding:24px;box-shadow:0 24px 80px rgba(15,23,42,.16)}.mobile-logo{display:flex;align-items:center;gap:10px;color:#0f172a;margin-bottom:18px}.mobile-card h1{font-size:28px;margin:0 0 6px}.mobile-user{margin:0 0 18px}.mobile-alert{border-radius:16px;padding:14px;margin:14px 0;font-weight:800;line-height:1.35}.mobile-alert.success{background:#dcfce7;color:#166534}.mobile-alert.error{background:#fee2e2;color:#991b1b}.mobile-upload-form{display:grid;gap:14px;margin-top:20px}.file-picker{border:2px dashed #93c5fd;background:#eff6ff;border-radius:20px;min-height:126px;display:flex;align-items:center;justify-content:center;text-align:center;color:#1e3a8a;font-size:18px;font-weight:900;padding:18px;cursor:pointer}.file-picker input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.selected-file{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px;color:#475467;word-break:break-word}.mobile-submit{height:56px;font-size:18px;border-radius:16px;width:100%}.mobile-help{margin-top:20px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:16px}.mobile-help h2{margin:0 0 8px;font-size:18px}.mobile-help p{margin:8px 0;color:#475467;line-height:1.45}@media(max-width:560px){.mobile-card{padding:18px;border-radius:22px}.mobile-card h1{font-size:24px}.file-picker{font-size:16px;min-height:112px}.mobile-shell{align-items:flex-start}}
