/* GIF/QR Lab — responsive application system */
:root{color-scheme:light;--bg:#f5f7fb;--surface:#fff;--surface-soft:#f8faff;--text:#17243b;--muted:#53627b;--border:#dee5ef;--primary:#2456d9;--on-primary:#fff;--primary-soft:#eaf0ff;--green:#167148;--green-soft:#e8f5ed;--amber:#885914;--amber-soft:#fff4dc;--red:#b33440;--red-soft:#fff0f1;--nav:#111d32;--nav-text:#b4c2d8;--shadow:0 4px 20px #1a355408;--radius:16px;--font: 'Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;font-family:var(--font);color:var(--text);background:var(--bg)}
:root[data-theme=dark]{color-scheme:dark;--bg:#101827;--surface:#172237;--surface-soft:#1c2a42;--text:#ecf1fa;--muted:#aab8ce;--border:#34425a;--primary:#5480f1;--on-primary:#081326;--primary-soft:#21345c;--green:#91dfb2;--green-soft:#183a2e;--amber:#f3cf89;--amber-soft:#3d3220;--red:#ffa5ae;--red-soft:#422734;--nav:#0a1220;--nav-text:#b4c2d8;--shadow:none}
*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,a{transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--primary);outline-offset:4px}input:focus,select:focus{outline:3px solid color-mix(in srgb,var(--primary) 20%,transparent);border-color:var(--primary)}[hidden]{display:none!important}a{color:var(--primary);text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,3vw,38px);letter-spacing:-1.2px;line-height:1.2;margin-bottom:12px;font-weight:730}h2{font-size:21px;line-height:1.35;letter-spacing:-.45px;margin-bottom:0}h3{font-size:16px;margin-bottom:8px}p{margin-bottom:0}small{font-size:12px}.muted{color:var(--muted);font-size:14px;line-height:1.8}.icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.skip-link{position:fixed;top:8px;left:8px;z-index:100;transform:translateY(-150%);background:var(--surface);padding:12px;border:2px solid var(--primary);border-radius:8px}.skip-link:focus{transform:none}.brand{display:flex;align-items:center;gap:11px;color:var(--text);font-size:21px;font-weight:730;letter-spacing:-.6px;white-space:nowrap}.brand b{font-weight:400;opacity:.7}.brand-mark{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;background:#426ae6;color:#fff;border-radius:12px;box-shadow:0 5px 14px #0002}.brand-mark .icon{width:24px;height:24px}.sidebar{position:fixed;inset:auto 0 0;z-index:20;background:var(--surface);border-top:1px solid var(--border);padding:8px 8px max(8px,env(safe-area-inset-bottom));display:flex;align-items:center}.sidebar>.brand,.workspace-label,.nav-label,.sidebar-footer{display:none}.sidebar nav{display:flex;justify-content:space-around;width:100%;gap:4px}.nav-button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:10px;min-width:0;min-height:52px;padding:6px 4px;position:relative}.nav-button .icon{width:21px;height:21px}.nav-button .live-dot{display:none}.nav-button:hover,.nav-button.active{color:var(--primary);background:var(--primary-soft)}.workspace{min-width:0;max-width:1900px;margin:0 auto;padding:0 16px 112px;outline:none}.topbar{height:72px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--border)}.breadcrumb{font-size:13px;color:var(--muted)}.breadcrumb>span,.breadcrumb>strong{display:none}.account-tools{display:flex;gap:10px;align-items:center;min-width:0}.account-avatar{display:none}.account-tools #current-user{font-size:12px;max-width:145px;overflow-wrap:anywhere}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px;min-height:44px;border:0;background:transparent;color:var(--muted);font-size:13px;border-radius:8px}.text-button:hover{background:var(--primary-soft);color:var(--primary)}.account-tools #logout span{display:none}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:10px;min-width:44px;min-height:44px;font-size:24px}.icon-button:hover{color:var(--primary);border-color:var(--primary)}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:30px 0 24px}.page-heading>.button{flex-shrink:0;margin-top:26px;padding-inline:12px;font-size:12px}.page-heading .muted{font-size:13px;max-width:580px}.eyebrow,.section-kicker{font-size:10px;letter-spacing:1.6px;font-weight:700;color:var(--muted);margin-bottom:10px;display:flex;align-items:center;gap:9px}.live-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#28b47a;flex-shrink:0;box-shadow:0 0 0 4px #28b47a18}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:10px;font-size:13px;line-height:1.5;font-weight:650;white-space:nowrap}.button .icon{width:17px;height:17px}.primary{background:var(--primary);color:var(--on-primary);box-shadow:0 3px 8px #2456d91a}.primary:hover{filter:brightness(1.08)}.secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.secondary:hover{background:var(--surface-soft);border-color:var(--muted)}.full{width:100%;margin-top:22px}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:17px;box-shadow:var(--shadow);min-width:0}.stat-top{display:flex;gap:9px;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;font-weight:600}.stat-top .icon{width:17px;height:17px;color:var(--primary)}.stat-card>strong{display:block;font-size:33px;font-weight:680;letter-spacing:-1.4px;line-height:1.4;margin:10px 0 4px;font-variant-numeric:tabular-nums}.stat-card>small{color:var(--muted);display:block;font-size:11px}.stat-warning .stat-top .icon{color:var(--amber)}.admin-filter{display:flex;gap:12px;align-items:center;margin:0 0 20px;padding:12px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.admin-filter label{margin:0;white-space:nowrap;font-size:12px}.admin-filter select{max-width:260px}.scope-note{display:none}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;flex-direction:column;gap:18px;padding:22px}.panel-heading .section-kicker{font-size:9px;margin-bottom:7px}.field-help{font-size:12px;line-height:1.75;color:var(--muted);margin:8px 0 0}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.count{display:inline-block;vertical-align:middle;font-size:12px;font-weight:600;letter-spacing:0;padding:3px 9px;border-radius:20px;background:var(--primary-soft);color:var(--primary);margin-left:7px}.filters{display:grid;gap:14px;padding:0 22px 22px}.filter-field{display:flex;flex-direction:column;gap:7px;margin:0;min-width:0}.filter-field>span{font-size:11px;font-weight:650;color:var(--muted)}input,select{width:100%;min-width:0;min-height:44px;padding:11px 13px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:14px;transition:border-color .18s}input::placeholder{color:var(--muted);opacity:.85}.search-box{position:relative}.search-box .icon{position:absolute;top:14px;left:12px;width:17px;height:17px;color:var(--muted);pointer-events:none}.search-box input{padding-left:38px}.table-wrap{overflow-x:auto;overscroll-behavior-x:contain}table{width:100%;border-collapse:collapse;text-align:left}th{padding:15px 18px;background:var(--surface-soft);color:var(--muted);font-size:10px;letter-spacing:.7px;font-weight:650;border-block:1px solid var(--border);white-space:nowrap}td{padding:19px 18px;border-bottom:1px solid var(--border);font-size:13px;vertical-align:top;line-height:1.7}td strong{font-size:13px;font-weight:630;display:block;overflow-wrap:anywhere}td small{display:block;color:var(--muted);font-size:11px;margin-top:6px;overflow-wrap:anywhere}tr:last-child td{border-bottom:0}.logs-table{display:block}.logs-table thead{display:none}#log-rows{display:grid;gap:14px;padding:0 18px 18px}#log-rows tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}#log-rows td{display:block;border:0;padding:0;min-width:0}#log-rows td:first-child{grid-column:1/3;grid-row:1}#log-rows td:first-child strong{font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.1px}#log-rows td:first-child small{display:none}#log-rows td:nth-child(2){grid-column:1/3;grid-row:2}#log-rows td:nth-child(2) strong{font-size:15px}#log-rows td:nth-child(3){grid-row:4;grid-column:1}#log-rows td:nth-child(4){grid-row:3;grid-column:1/3;padding:13px;background:var(--surface-soft);border-radius:8px}#log-rows td:nth-child(4) strong{font-size:14px}#log-rows td:nth-child(4) small{font-size:11px}#log-rows td:nth-child(5){grid-row:4;grid-column:2;max-width:150px}#log-rows td:nth-child(6){grid-row:5;grid-column:1}#log-rows td:nth-child(7){grid-row:5;grid-column:2;text-align:right}.mono{font-family:ui-monospace,Consolas,'SFMono-Regular',monospace;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.chip{display:inline-flex;align-items:center;font-size:11px;font-weight:550;line-height:1.5;padding:5px 9px;border-radius:7px;color:var(--muted);background:var(--surface-soft);white-space:normal}.chip.unattributed{background:var(--amber-soft);color:var(--amber)}.chip.sender-confirmed{background:var(--primary-soft);color:var(--primary)}.chip.sender-network-match{background:var(--surface-soft);color:var(--muted)}.chip.automation-or-proxy-hint{color:var(--muted);background:var(--surface-soft)}.chip.participant-consented{background:var(--green-soft);color:var(--green)}.row-button{min-height:44px;padding:8px 13px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font:600 12px var(--font);white-space:nowrap}.row-button:hover{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}.empty{padding:52px 24px;text-align:center}.empty-icon{display:inline-grid;place-items:center;width:58px;height:58px;border:1px solid var(--border);border-radius:17px;background:var(--surface-soft);color:var(--primary);margin-bottom:15px}.empty-icon .icon{width:29px;height:29px}.empty h3{font-size:17px}.empty p{max-width:400px;margin:8px auto;font-size:13px;color:var(--muted);line-height:1.8}.panel-footer{padding:16px 20px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:11px;background:var(--surface-soft)}.footer-divider{margin-inline:8px}.online{color:var(--green);white-space:nowrap}.online:before{content:'';display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:currentColor}.pagination{display:flex;align-items:center;gap:9px}.pagination .icon-button{font-size:20px;min-width:36px;min-height:36px}.pagination span{font-variant-numeric:tabular-nums}.app-footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:var(--muted);padding:24px 0 0}.app-footer span:last-child{display:none}.card-list{padding:0 20px 20px;display:grid;gap:14px}.card-list>.field-help{padding-block:20px}.item-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px;border:1px solid var(--border);border-radius:12px;min-width:0}.item-card h3{font-size:16px;overflow-wrap:anywhere}.item-card p{font-size:12px;color:var(--muted);line-height:1.8;margin:6px 0;overflow-wrap:anywhere}.item-card .mini-stats{color:var(--primary);font-size:12px}.setup-grid{display:grid;gap:22px}.steps{list-style:none;padding:0 24px 25px;margin:0}.steps li{display:flex;gap:17px;margin-top:26px}.steps li>span{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;background:var(--primary-soft);color:var(--primary);border:1px solid var(--border);font-size:11px;border-radius:10px}.steps strong{font-size:15px}.steps p{font-size:13px;color:var(--muted);line-height:1.8;margin:7px 0 12px}.approval{padding:26px;margin-bottom:24px;border-color:var(--primary)}.approval h2{margin-bottom:8px}.approval form{max-width:500px}.approval .button{margin-top:18px}label{display:block;margin:20px 0 8px;font-size:13px;font-weight:600}.toast{background:var(--green-soft);color:var(--green);border:1px solid var(--border);padding:14px 18px;margin-bottom:20px;border-radius:11px;font-size:13px;line-height:1.75}.toast.error{background:var(--red-soft);color:var(--red)}dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 40px);padding:26px;border:1px solid var(--border);border-radius:18px;background:var(--surface);color:var(--text);box-shadow:0 24px 100px #0004;overscroll-behavior:contain}dialog::backdrop{background:#09162b91;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.dialog-heading h2{font-size:22px}.dialog-heading button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid var(--border);background:var(--surface-soft);color:var(--muted);border-radius:10px;font-size:26px}.detail-fields{display:grid;gap:5px;font-size:13px;line-height:1.8;margin:0}.detail-fields dt{color:var(--muted);font-size:12px;margin-top:10px}.detail-fields dd{margin:0;overflow-wrap:anywhere;padding-bottom:8px;border-bottom:1px solid var(--border)}.raw-json{font:11px/1.8 ui-monospace,monospace;padding:16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere}details>summary{cursor:pointer;font-size:13px;color:var(--muted);min-height:44px;padding-block:12px}.form-status{min-height:22px;font-size:13px;line-height:1.8;color:var(--green);margin-top:14px}.form-status.error{color:var(--red)}.copy-field{display:flex;gap:8px;min-width:0;align-items:center}.copy-field input{flex:1;width:0;font-size:12px}#network-dialog{width:min(780px,calc(100vw - 24px))}.device-intro{display:grid;gap:28px;padding:28px;border:1px solid var(--border);border-radius:var(--radius);margin-bottom:24px;background:var(--surface);box-shadow:var(--shadow)}.feature-icon{display:inline-grid;place-items:center;width:50px;height:50px;border-radius:14px;color:var(--primary);background:var(--primary-soft);margin-bottom:20px}.feature-icon .icon{width:25px;height:25px}.device-intro h2{font-size:25px;margin-bottom:12px}.device-intro p:not(.section-kicker){color:var(--muted);font-size:14px;line-height:1.8;max-width:560px}.device-intro .button{margin-top:22px}.capability-list{display:grid;gap:22px;align-content:center}.capability-list>div{display:flex;gap:13px;align-items:flex-start;font-size:14px;font-weight:600}.capability-list .icon{color:var(--green);margin-top:2px}.capability-list small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:5px}.research-note{margin-top:22px;padding:10px 22px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.research-note p{font-size:13px;line-height:1.9;color:var(--muted);padding-bottom:16px}.users-table{min-width:650px}.users-table .actions{flex-wrap:nowrap}.login-body{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:22px;background:var(--bg)}.login-shell{width:min(1080px,100%);display:grid;border:1px solid var(--border);border-radius:24px;overflow:hidden;background:var(--surface);box-shadow:0 24px 90px #182f5910}.login-story{display:none}.login-card{padding:28px}.login-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:46px;gap:14px}.access-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;letter-spacing:1px;font-weight:650}.access-label .icon{width:16px;height:16px}.login-card h2{font-size:30px;letter-spacing:-.9px;margin-bottom:12px}.login-card form{margin-top:28px}.login-card input{min-height:50px;font-size:16px}.login-card label{font-size:13px}.login-card .full{min-height:50px;justify-content:space-between;font-size:14px}.login-card footer{display:flex;gap:11px;align-items:flex-start;border-top:1px solid var(--border);padding-top:22px;margin-top:25px;color:var(--muted)}.login-card footer .icon{width:17px;height:17px;margin-top:2px}.login-card footer p{font-size:12px;line-height:1.9}.password-field{position:relative}.password-field input{padding-right:70px}.password-field button{position:absolute;right:5px;top:3px;min-height:44px;min-width:54px;border:0;background:transparent;color:var(--muted);border-radius:7px;font-size:12px}.participant-body{min-height:100dvh;padding:24px 16px;background:var(--bg)}.participant-shell{width:min(680px,100%);margin:auto}.participant-shell>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.participant-card{padding:28px}.participant-card h1{font-size:29px}.participant-card h2{font-size:17px;margin-top:25px}.participant-card .notice-box{display:flex;gap:12px;background:var(--primary-soft);padding:16px;border-radius:10px;margin-top:22px;font-size:13px;line-height:1.8;color:var(--text)}.notice-box .icon{color:var(--primary);margin-top:4px}.data-list{padding-left:20px;color:var(--muted);font-size:14px;line-height:1.9}.data-list li{margin-top:9px}.consent-control{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:1.8;margin-top:24px;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);cursor:pointer}.consent-control input{appearance:auto;flex-shrink:0;width:20px;height:20px;min-height:0;margin:4px 0 0;accent-color:var(--primary)}.participant-footer{color:var(--muted);font-size:12px;text-align:center;margin-top:22px}.participant-shell .brand{font-size:20px}.success-heading{color:var(--green)}
@media(min-width:640px){.workspace{padding-inline:26px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading>.button{font-size:13px;padding-inline:18px}.stats{gap:16px}.stat-card{padding:22px}.stat-card>small{font-size:12px}.stat-card>strong{font-size:38px}.breadcrumb>strong,.breadcrumb>span{display:inline}.breadcrumb>span{margin:0 10px;opacity:.6}.account-tools #logout span{display:inline}.account-tools #current-user{max-width:230px}.login-card{padding:44px}.login-shell{max-width:520px}.detail-fields{grid-template-columns:160px minmax(0,1fr);gap:0 20px}.detail-fields dt,.detail-fields dd{margin:0;padding:12px 0;border-bottom:1px solid var(--border)}.item-card{flex-direction:row;align-items:center}.item-card>.actions{flex-shrink:0}.app-footer span:last-child{display:inline}.device-intro{padding:36px}}
@media(min-width:900px){.sidebar{inset:0 auto 0 0;width:82px;flex-direction:column;border:0;border-right:1px solid #24334c;background:var(--nav);padding:28px 12px;gap:32px}.sidebar>.brand{display:flex}.sidebar>.brand>span:last-child{display:none}.sidebar nav{flex-direction:column;gap:8px}.nav-button{flex:auto;flex-direction:column;min-height:60px;color:var(--nav-text);padding:12px 5px;font-size:9px}.nav-button:hover,.nav-button.active{background:#243753;color:#fff}.workspace{margin-left:82px;padding:0 28px 30px}.topbar{height:82px}.page-heading{padding:32px 0 26px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-top{font-size:12px}.stat-card{padding:20px}.panel-heading{flex-direction:row;align-items:center;padding:26px}.filters{padding:0 26px 24px}.scope-note{display:flex;align-items:center;gap:7px;margin-left:auto;font-size:11px;color:var(--muted)}.scope-note .icon{width:15px;height:15px}.login-shell{max-width:1080px;grid-template-columns:1.05fr 1fr;min-height:700px}.login-story{display:flex;flex-direction:column;background:#111d32;color:#f0f5ff;padding:38px;position:relative;overflow:hidden}.login-story:after{content:'';pointer-events:none;position:absolute;inset:30% -40% -40% 10%;background:radial-gradient(ellipse,#3452a52b,transparent 65%)}.login-story .brand{color:white}.login-message{margin:auto 0;position:relative;z-index:1;padding-block:42px}.login-message .eyebrow{color:#99b0db;font-size:9px}.login-message h1{font-size:48px;line-height:1.15;letter-spacing:-2px;margin:16px 0 22px}.login-message h1>span{color:#82a1ff}.login-message>p:last-of-type{font-size:14px;line-height:1.9;color:#b1c1dc;max-width:390px}.flow-preview{margin-top:30px;display:grid;gap:12px}.flow-preview>div{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #344563;background:#1c2e4a80;border-radius:12px;font-size:13px;color:#ecf2ff}.flow-preview .icon{color:#92b0ff;width:21px;height:21px}.flow-preview small{display:block;font-size:11px;color:#9cb1d1;margin-top:4px}.flow-preview b{margin-left:auto;color:#778dac;font:11px ui-monospace,monospace}.story-footer{font-size:11px;color:#9cafcd}.login-card{padding:42px;display:flex;flex-direction:column;justify-content:center}.login-card-top{margin-bottom:40px}.login-card .muted{font-size:14px}.device-intro{grid-template-columns:1.3fr 1fr;gap:50px}.capability-list{padding-left:28px;border-left:1px solid var(--border)}#log-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(min-width:1200px){.sidebar{width:232px;align-items:stretch;padding:30px 20px;gap:0}.sidebar>.brand>span:last-child{display:inline}.workspace-label{display:flex;gap:10px;align-items:center;margin-top:36px;padding:13px 10px;border:1px solid #30405a;border-radius:11px;color:#d6e1f3}.workspace-avatar{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:8px;background:#314464;color:#cfddf5;font-size:12px;font-weight:700}.workspace-label strong{display:block;font-size:11px;font-weight:600}.workspace-label small{font-size:10px;color:#9cabc3;display:block;margin-top:4px}.nav-label{display:block;color:#8a9bb6;font-size:8px;letter-spacing:1.6px;font-weight:650;margin:32px 10px 12px}.sidebar nav{gap:6px}.nav-button{flex-direction:row;justify-content:flex-start;gap:12px;min-height:48px;padding:13px;font-size:13px;font-weight:500}.nav-button .icon{width:19px;height:19px}.nav-button .live-dot{display:inline-block;margin-left:auto;width:5px;height:5px;box-shadow:none}.sidebar-footer{display:block;margin-top:auto;padding:24px 8px 0;border-top:1px solid #2a3b55;color:#93a5c1;font-size:11px}.system-status{display:flex;align-items:center;gap:10px;color:#b9c9df;font-size:11px;margin-bottom:14px}.sidebar-footer p{font-size:10px;line-height:1.9}.sidebar-footer b{font-weight:500;color:#c8d4e7}.workspace{margin-left:232px;padding:0 36px 30px}.account-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-weight:650;font-size:12px}.page-heading>.button{margin-top:20px}.filters{grid-template-columns:1.25fr 1fr 1fr 1.15fr}.panel-heading h2{font-size:21px}.panel-heading .actions{justify-content:flex-end}.logs-table{display:table}.logs-table thead{display:table-header-group}#log-rows{display:table-row-group;padding:0}#log-rows tr{display:table-row;border:0;padding:0}#log-rows td{display:table-cell;padding:19px 15px;border-bottom:1px solid var(--border)}#log-rows tr:last-child td{border-bottom:0}#log-rows td:first-child{width:168px}#log-rows td:first-child strong{white-space:nowrap;font-size:11px}#log-rows td:first-child small{display:block}#log-rows td:nth-child(2) strong{font-size:12px;max-width:200px}#log-rows td:nth-child(2) small{max-width:220px}#log-rows td:nth-child(3){max-width:100px}#log-rows td:nth-child(4){background:transparent;padding:19px 15px;border-radius:0;max-width:240px}#log-rows td:nth-child(4) strong{font-size:12px}#log-rows td:nth-child(4) small{font-size:10px;max-width:220px}#log-rows td:nth-child(5){max-width:150px}#log-rows td:nth-child(6) strong{font-size:12px}#log-rows td:nth-child(6){max-width:160px}#log-rows td:nth-child(7){vertical-align:middle}#log-rows tr:hover{background:var(--surface-soft)}.chip{font-size:10px}.setup-grid{grid-template-columns:1fr 1fr}.panel-footer{padding-inline:26px}.stat-card{padding:23px}.stat-top{font-size:13px}.stat-top .icon{width:19px;height:19px}.stat-card>strong{font-size:42px}.stat-card>small{font-size:11px}}
@media(min-width:1600px){.workspace{padding-inline:48px}#log-rows td{padding:22px 20px}#log-rows td:first-child strong{font-size:12px}#log-rows td:nth-child(2) strong,#log-rows td:nth-child(4) strong,#log-rows td:nth-child(6) strong{font-size:13px}#log-rows td:nth-child(4) small,td small,.chip{font-size:11px}.panel-heading{padding:28px}.filters{padding-inline:28px}}
@media(max-width:374px){.workspace{padding-inline:12px}.page-heading{gap:10px}.page-heading>.button{font-size:11px;padding-inline:9px}.page-heading>.button .icon{display:none}.account-tools{gap:4px}.account-tools #current-user{max-width:105px;font-size:10px}.breadcrumb{font-size:11px}.stat-card{padding:13px}.stat-top{font-size:11px}.stat-card>small{font-size:10px}.copy-field{flex-wrap:wrap}.copy-field input{flex:auto;width:100%}.login-card{padding:23px}.login-card h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Keep the skip link off-screen until keyboard focus, including during capture/zoom. */
.skip-link{transform:none;clip-path:inset(100%);width:1px;height:1px;overflow:hidden;padding:0;border:0;white-space:nowrap}.skip-link:focus-visible{clip-path:none;width:auto;height:auto;padding:12px;border:2px solid var(--primary)}@media(min-width:900px){.sidebar>.brand{color:#f2f6ff}}

.collection-filters{display:grid;gap:14px;padding:0 22px 20px}.collection-filters .select-page{align-self:end}.select-page{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:0;cursor:pointer;font-size:12px;font-weight:550}.select-page input,.record-selector input{appearance:auto;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:var(--primary);cursor:pointer}.record-selector{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;width:34px;min-height:44px;margin:0;cursor:pointer}.record-heading{display:flex;gap:7px;align-items:center;min-width:0}.record-heading h3{margin:0}.record-heading .time-body{min-width:0}.selection-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 22px;background:var(--primary-soft);color:var(--primary);font-size:13px;margin-bottom:14px}.selection-toolbar .actions{flex-wrap:nowrap}.selection-toolbar .button{font-size:12px}.danger{background:var(--red);color:var(--surface);border-color:var(--red)}:root[data-theme=dark] .danger{color:#23111a}.danger:hover{filter:brightness(1.08)}.danger-text{color:var(--red)}.delete-impact{padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--red-soft);color:var(--red);font-size:14px;margin-top:18px;line-height:1.8}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.mobile-selection{padding:0 22px 16px}#log-rows td:first-child small{display:block;font-size:10px}#log-rows td:first-child strong{font-size:12px}.record-heading .time-body small{white-space:nowrap}.item-card>.actions{gap:7px;flex-wrap:wrap;justify-content:flex-end}.item-card>div:first-child{min-width:0}@media(min-width:640px){.collection-filters{grid-template-columns:1.5fr 1fr auto;align-items:end}.mobile-selection{padding-left:26px}}@media(min-width:1200px){.mobile-selection{display:none}#log-rows td:first-child{min-width:162px}.select-page span{font-size:9px}.collection-filters{padding-inline:26px}}@media(max-width:430px){.selection-toolbar{flex-direction:column;align-items:flex-start}.item-card .actions{justify-content:flex-start}.record-selector{width:30px}}

.approval-empty{margin:16px 0;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}.approval-empty>strong{font-size:14px}.approval-empty .button{margin-top:14px;white-space:normal;text-align:center}
/* Account workspace: profiles, retained history and voluntary Telegram linking. */
.account-settings-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin-top:24px}.account-settings{padding:24px;min-width:0}.account-settings>.muted{margin-top:10px}.account-settings .actions{margin-block:14px}.account-settings .field-help{overflow-wrap:anywhere}.account-settings .consent-control{align-items:flex-start}.account-settings input[type=checkbox]{flex-shrink:0}.account-settings #telegram-link-result{margin-block:16px}.account-settings .button{white-space:normal}.account-settings .form-status{overflow-wrap:anywhere}.profile-dialog{width:min(840px,calc(100% - 24px));max-width:840px;padding:24px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}.profile-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-block:20px}.profile-summary>div{padding:14px 10px;border:1px solid var(--border);background:var(--surface-soft);border-radius:12px;display:grid;gap:3px}.profile-summary strong{font-size:26px;font-variant-numeric:tabular-nums}.profile-summary span{font-size:12px;color:var(--muted)}.profile-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:12px}.profile-tabs button{min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--muted);padding:10px 18px;font-size:14px;flex:1}.profile-tabs button[aria-selected=true]{background:var(--primary-soft);color:var(--primary);font-weight:650}.profile-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.profile-field{min-width:0}.profile-field label{margin-top:0}.profile-field textarea{display:block;resize:vertical;min-height:120px;width:100%;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;padding:12px}.profile-field textarea:focus{outline:3px solid var(--primary-soft);border-color:var(--primary)}.history-search{display:flex;gap:8px}.history-search input{min-width:0}.profile-records{margin-block:18px}.history-card{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}.history-card>div{min-width:0}.history-card h3,.profile-dialog h2{overflow-wrap:anywhere}.history-card h3{font-size:15px;margin-bottom:6px}.history-card .row-button{flex-shrink:0}.profile-dialog .panel-footer{padding:16px 0 0}.profile-dialog .form-status:empty{display:none}.profile-dialog .dialog-heading{align-items:flex-start}.profile-dialog .dialog-heading>div{min-width:0}#profile-history[aria-busy=true]{opacity:.65}#profile-status.error{padding:12px;border-radius:8px;background:var(--red-soft);color:var(--red)}@media(min-width:640px){.profile-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-field.wide{grid-column:1/-1}.profile-dialog{padding:28px}}@media(min-width:1100px){.account-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:430px){.profile-dialog{padding:18px}.profile-tabs button{padding-inline:8px}.history-card{align-items:flex-start;flex-direction:column}.profile-dialog .panel-footer{gap:12px;flex-wrap:wrap}.account-settings{padding:20px}.profile-summary>div{padding:12px 8px}.profile-summary span{font-size:11px}}
@media(max-width:1199px){.users-table{display:block;min-width:0;width:100%}.users-table thead{display:none}.users-table tbody{display:grid;gap:14px;padding:0 20px 20px}.users-table tr{display:grid;gap:12px;border:1px solid var(--border);border-radius:12px;padding:18px;min-width:0}.users-table td{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border:0;padding:0;min-width:0;overflow-wrap:anywhere}.users-table td:before{content:attr(data-label);font-size:12px;color:var(--muted);flex-shrink:0}.users-table td:last-child{display:block;padding-top:12px;border-top:1px solid var(--border)}.users-table td:last-child:before{display:none}.users-table .actions{justify-content:flex-start;flex-wrap:wrap;gap:8px}.users-table .row-button{white-space:normal}}@media(min-width:1200px){.users-table td{overflow-wrap:anywhere}.users-table .actions{flex-wrap:wrap}}
