:root{font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1f2937;background:#f3f5f9;--primary:#2563eb;--border:#e4e8ef}*{box-sizing:border-box}body{margin:0}main{max-width:1540px;margin:auto;padding:32px}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.eyebrow{font-size:11px;letter-spacing:2px;color:#64748b;margin:0 0 5px}h1{font-size:28px;margin:0;font-weight:700}h2{font-size:17px;margin:0 0 14px}#subtitle{margin:6px 0;color:#64748b}.panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:20px;box-shadow:0 2px 4px #17255403}.login-panel{max-width:440px;margin:50px auto;display:grid;gap:18px}.login-panel h2,.login-panel p{margin:0}form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}label{display:grid;gap:6px;flex:1 1 130px;font-weight:500}input,button,select,textarea,a{font:inherit}input,select,textarea{border:1px solid #cbd5e1;background:#fff;border-radius:7px;padding:9px 11px;min-height:40px;color:inherit;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #93b4fc;outline-offset:1px}button,a{background:var(--primary);color:white;border:1px solid transparent;border-radius:7px;padding:9px 15px;min-height:40px;cursor:pointer;text-decoration:none}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}.secondary{background:#fff;border-color:#cbd5e1;color:#334155}.danger{color:#dc2626!important}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat{background:#fff;border:1px solid var(--border);border-radius:10px;padding:18px 22px;display:grid;gap:6px}.stat span{color:#64748b}.stat strong{font-size:28px}.settings-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:20px}.issue-form{display:grid;grid-template-columns:1fr 1fr;align-items:end}.wide{grid-column:1/-1}.issue-form button{justify-self:start}.hint{font-size:12px;font-weight:400;color:#64748b;line-height:1.7}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.toolbar h2{margin:0}.toolbar p{margin:4px 0 0}.filters{display:flex;gap:8px;align-items:center}.filters input{width:230px}.filters select{width:120px}.filters button{white-space:nowrap}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:1080px;font-size:13px;text-align:left}th{color:#64748b;background:#f8fafc;font-weight:500;white-space:nowrap}th,td{padding:13px 12px;border-bottom:1px solid var(--border);vertical-align:top}td:first-child{min-width:255px}td:nth-child(4){max-width:195px;min-width:170px}td:nth-child(6){min-width:120px;max-width:190px;white-space:pre-wrap;overflow-wrap:anywhere}td:last-child{min-width:180px}code{font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;user-select:all}.device{color:#475569}.muted{color:#94a3b8;font-size:12px}.badge{display:inline-block;padding:3px 9px;border-radius:5px;font-size:12px;white-space:nowrap;background:#eef2f7;color:#475569}.badge.active{background:#ecfdf5;color:#047857}.badge.revoked,.badge.disabled{background:#fef2f2;color:#dc2626}.badge.expired,.badge.legacy{background:#fffbeb;color:#b45309}.badge.unbound{background:#eff6ff;color:#2563eb}.row-actions{display:flex;gap:6px;flex-wrap:wrap;max-width:185px}.row-actions button{font-size:12px;padding:4px 9px;min-height:28px;background:#fff;border-color:#dbe3ee;color:#2563eb}.empty{text-align:center;padding:30px;color:#94a3b8}#status{margin:0 0 18px;min-height:0;position:sticky;top:12px;z-index:5}#status:not(:empty){padding:11px 16px;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:8px;color:#047857;box-shadow:0 4px 16px #00000008}#status.error:not(:empty){color:#b91c1c;background:#fef2f2;border-color:#fecaca}#device-code{display:block;padding:12px;background:#f8fafc}dialog{border:1px solid var(--border);border-radius:12px;max-width:460px;width:calc(100% - 32px);padding:26px;box-shadow:0 24px 80px #0f172a30}dialog::backdrop{background:#0f172a55}dialog form{display:grid}dialog h2{margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}[hidden]{display:none!important}@media(max-width:800px){main{padding:18px}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.settings-grid{grid-template-columns:1fr;gap:0}.toolbar{align-items:start;flex-direction:column}.filters{width:100%;flex-wrap:wrap}.filters input{flex:1;min-width:160px}.panel{padding:18px}h1{font-size:24px}}

.record-tabs{display:flex;gap:10px;margin-bottom:16px}.record-tabs button[aria-pressed="true"]{box-shadow:0 0 0 2px #bfdbfe}
