.camera-panel{margin-bottom:18px;max-width:850px}.camera-preview{display:none;position:relative;overflow:hidden;border-radius:12px;background:#000;max-width:600px;aspect-ratio:4/3;margin:14px 0}.camera-preview.active{display:block}.camera-preview video{width:100%;height:100%;object-fit:cover}.camera-guide{position:absolute;left:8%;right:8%;top:34%;bottom:34%;border:2px solid #fff;border-radius:8px;box-shadow:0 0 0 1000px #0005;pointer-events:none}.camera-guide:after{content:"";position:absolute;left:4%;right:4%;top:50%;border-top:2px solid #ff5555}.camera-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.camera-form{display:grid;gap:12px;max-width:580px}.camera-form label{display:grid;gap:6px}.camera-form input{width:100%;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text)}.camera-actions button,.camera-form button{min-height:44px}.scan-cover{max-width:110px;max-height:170px;object-fit:contain;margin:12px 0}.sync-panel{margin-top:20px}.sync-panel a,.sync-panel button{margin:6px 8px 6px 0}.camera-panel [role=alert]{color:var(--accent-text)}.module-form{display:grid;gap:16px;margin-bottom:20px}.module-form form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;align-items:end}.module-form label{display:grid;gap:6px}.module-form input,.module-form select,.module-form textarea{width:100%;min-width:0;padding:11px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text)}.module-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}.module-actions{display:flex;gap:8px;flex-wrap:wrap}.module-actions button,.module-form button:not(.primary){padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-hover);color:var(--text)}.mg-tools,.mg-edit{margin-bottom:20px}.mg-tools form,.mg-pages{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.mg-tools>button{margin:10px 10px 0 0}.mg-tools input,.mg-edit input,.mg-item input{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:10px;min-width:0}.mg-tools input{flex:1}.mg-edit form{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-top:15px}.mg-edit label{display:grid;gap:6px}.mg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:15px}.mg-item{display:flex;gap:14px;align-items:flex-start;overflow-wrap:anywhere}.mg-item img,.mg-cover{width:83px;height:120px;object-fit:contain;flex:none;background:var(--bg);border-radius:6px}.mg-cover{display:grid;place-items:center;color:var(--accent-text);font-size:34px}.mg-item p{font-size:13px}.mg-item input{width:70px}.mg-item button,.mg-pages button,.mg-edit button{margin:5px 4px 0 0}.mg-pages{margin-top:20px}.mg-item>div:last-child{min-width:0}.mg-item button:not(.primary),.mg-pages button,.mg-edit button:not(.primary){background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:10px}button:disabled{opacity:.55;cursor:not-allowed}:root{font-family:Inter,system-ui,-apple-system,sans-serif;color-scheme:dark;--radius: 13px;--bg: #0E1A2B;--sidebar: #122033;--surface: #192A3E;--surface-hover: #24364C;--text: #FAF7F2;--muted: #ADB7C5;--accent: #C33A3A;--accent-text: #EE8181;--border: #2A3A4E;--success: #50BC92}:root[data-theme=light]{color-scheme:light;--bg: #FAF7F2;--sidebar: #F1EAE0;--surface: #FFFFFF;--surface-hover: #E8DCCB;--text: #0E1A2B;--muted: #586575;--accent-text: #A52929;--border: #E1D9CE;--success: #237C57}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}.header{height:72px;display:flex;align-items:center;gap:25px;padding:0 26px;position:fixed;inset:0 0 auto;background:var(--sidebar);border-bottom:1px solid var(--border);z-index:30}.brand{display:flex;align-items:center;gap:11px;font-size:24px;font-weight:750;letter-spacing:-1px;color:var(--text);background:transparent;border:0;padding:0}.brand-icon{display:grid;place-items:center;color:#faf7f2;background:#c33a3a;width:42px;height:42px;border-radius:12px}.search{max-width:550px;flex:1;display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 15px;color:var(--muted)}.search input{background:transparent;color:var(--text);border:0;outline:none;width:100%}.header-actions{display:flex;gap:12px;margin-left:auto}.icon-button{border:0;background:transparent;color:var(--muted);display:grid;place-items:center;border-radius:8px;padding:8px}.icon-button:hover{background:var(--surface-hover);color:var(--text)}.menu-toggle{display:none}.sidebar{position:fixed;top:72px;left:0;bottom:0;width:245px;background:var(--sidebar);border-right:1px solid var(--border);padding:22px 12px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;z-index:25}.nav-label{font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--muted);padding:10px 14px}.nav-item{display:flex;align-items:center;gap:13px;padding:12px 14px;width:100%;border:0;border-radius:9px;background:transparent;color:var(--muted);text-align:left;font-size:14px}.nav-item:hover{background:var(--surface-hover);color:var(--text)}.nav-item.active{background:#c33a3a21;color:var(--accent-text);font-weight:600}.sidebar-footer{margin-top:auto;padding:22px 14px 10px;color:var(--muted);font-size:11px}.sidebar-footer small{display:block;margin-top:8px}.main{margin-left:245px;padding:102px 32px 25px}.hero{min-height:295px;position:relative;overflow:hidden;padding:40px;background:linear-gradient(120deg,#192d45,#0e1a2b);color:#faf7f2;border:1px solid #30425B;border-radius:20px;isolation:isolate}.hero:after{content:"";position:absolute;right:-40px;top:-110px;width:330px;height:330px;border-radius:50%;background:#c33a3a2e;z-index:-1}.hero-content{position:relative;z-index:2}.eyebrow{color:#ee8181;letter-spacing:2.5px;font-size:11px}.hero h1{font-size:clamp(32px,4vw,52px);line-height:1.13;margin:18px 0}.hero h1 strong{color:#e8dccb}.hero p{color:#c8d1df;line-height:1.6}.hero-art{width:270px;height:270px;color:#e8dccb;opacity:.11;position:absolute;right:5%;top:10px}.primary{color:#fff;background:#c33a3a;border:0;padding:12px 20px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:600}.primary:hover{background:#ab3030}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-top:24px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:20px;display:flex;flex-direction:column;gap:9px}.stat-card svg{color:var(--accent-text)}.stat-card span,.stat-card small{color:var(--muted)}.stat-card span{font-size:13px}.stat-card small{font-size:10px}.stat-card strong{font-size:30px}.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-top:24px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px}.panel h2{font-size:17px;margin:0}.panel p{color:var(--muted);line-height:1.7}.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:15px;padding:40px 25px}.empty>svg{color:var(--muted)}.empty p{max-width:450px;margin:0;font-size:14px}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.service{display:flex;justify-content:space-between;gap:8px;padding:15px 0;border-bottom:1px solid var(--border);font-size:13px}.online,.offline{display:flex;align-items:center;gap:5px;font-size:11px}.online{color:var(--success)}.offline{color:var(--accent-text)}.version{color:var(--muted);font-size:12px;margin-top:18px}.notice{padding:12px 18px;border:1px solid var(--border);background:var(--surface);border-radius:10px;display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.page-title{font-size:30px;margin:0 0 25px}footer{text-align:center;font-size:12px;color:var(--muted);margin:35px 0 0}.overlay{display:none}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:760px){.header{padding:0 12px;gap:8px;height:62px}.brand{font-size:20px;gap:7px}.brand-icon{width:34px;height:34px}.header-actions{gap:0}.header-actions .icon-button{padding:6px}.search{display:none}.menu-toggle{display:grid}.sidebar{top:62px;width:250px;transform:translate(-100%);transition:transform .2s}.sidebar.open{transform:translate(0)}.overlay{display:block;position:fixed;top:62px;right:0;bottom:0;left:0;background:#00000073;border:0;z-index:20}.main{margin-left:0;padding:82px 15px 20px}.hero{padding:25px;min-height:250px}.hero-art{width:180px;height:180px;right:0;top:45px}.stat-card{padding:15px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}.brand-logo{display:block;width:185px;height:auto;max-height:48px;object-fit:contain}.brand-logo-light{display:none}:root[data-theme=light] .brand-logo-dark{display:none}:root[data-theme=light] .brand-logo-light{display:block}@media(max-width:760px){.brand-logo{width:clamp(100px,35vw,155px)}}.auth-screen,.auth-modal{min-height:100dvh;display:grid;place-items:center;background:#0e1a2b;color:#faf7f2;padding:24px}.auth-card{width:min(100%,420px);display:grid;gap:16px;padding:32px;border:1px solid #30425B;background:#192a3e;border-radius:20px;box-shadow:0 20px 70px #0004}.auth-card img{width:100%;max-height:80px;object-fit:contain}.auth-card h1,.auth-card h2,.auth-card p{margin:0}.auth-card label{display:grid;gap:8px}.auth-card input:not([type=checkbox]){width:100%;padding:12px;border:1px solid #586575;border-radius:8px;background:#0e1a2b;color:#faf7f2}.auth-card .auth-check{display:flex;align-items:center;font-size:14px}.auth-card [role=alert]{color:#faa}.auth-account{position:fixed;bottom:16px;right:16px;z-index:35;background:#c33a3a;color:#fff;padding:10px 15px;border:0;border-radius:10px}.auth-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0e1a2bef;overflow:auto}.auth-card button{min-height:40px}.menu-toggle{display:grid}.nav-item{text-decoration:none}.nav-item svg{flex-shrink:0}.sidebar{width:var(--nav-width);transition:width .18s,transform .18s}.main{margin-left:var(--nav-width);transition:margin-left .18s;min-width:0}.app{--nav-width:245px}.app.collapsed{--nav-width:76px}.app.collapsed .nav-item{justify-content:center;padding:12px 0}.app.collapsed .nav-item span,.app.collapsed .nav-label,.app.collapsed .sidebar-footer{display:none}.skip-link{position:fixed;top:-100px;left:12px;z-index:100;background:var(--surface);color:var(--text);padding:12px}.skip-link:focus{top:8px}.quick-section{margin-top:24px}.quick-section h2{font-size:17px}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quick-grid a{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--border);padding:17px;border-radius:var(--radius);color:var(--text);text-decoration:none;font-size:14px}.quick-grid a svg{color:var(--accent-text);flex-shrink:0}.quick-grid a:hover{background:var(--surface-hover)}.preferences{display:grid;gap:16px;margin-bottom:16px;max-width:780px}.preferences label{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.preferences select{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);padding:10px;border-radius:8px;max-width:100%}.preferences .primary{justify-self:start}.density-compact .nav-item{padding-block:8px}.density-compact .stat-card,.density-compact .panel{padding:15px}.motion-reduced *{transition:none!important;animation:none!important;scroll-behavior:auto!important}a:focus-visible,select:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}.header .icon-button{min-width:40px;min-height:40px}.auth-card{max-height:none}.auth-modal{min-height:0}.auth-card button:disabled{opacity:.65;cursor:wait}.service{flex-wrap:wrap}.main:focus{outline:none}@media(max-width:1100px){.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header{gap:12px}}@media(max-width:760px){.app,.app.collapsed{--nav-width:250px}.main{margin-left:0;padding-bottom:30px}.app.collapsed .nav-item{justify-content:flex-start;padding:12px 14px}.app.collapsed .nav-item span,.app.collapsed .nav-label,.app.collapsed .sidebar-footer{display:block}.sidebar:not(.open){visibility:hidden}.sidebar.open{visibility:visible}.header{gap:4px}.header .icon-button{min-width:36px;min-height:40px}.header-actions{gap:0}.brand-logo{width:clamp(95px,32vw,155px)}.quick-grid a{padding:13px;font-size:13px}.hero{padding:22px}.auth-screen,.auth-modal{padding:16px}.auth-card{padding:20px}.preferences label{align-items:flex-start;flex-direction:column}.quick-grid a span{overflow-wrap:anywhere}}@media(prefers-reduced-motion:reduce){.app *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
