/* Clarity + Ember share layout and behavior; only semantic color tokens change. */
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;color-scheme:light;--bg:#f4f6f5;--surface:#fff;--surface-alt:#f5f7f6;--ink:#1b302d;--muted:#697d74;--line:#e1e9e4;--accent:#227361;--accent-soft:#eaf4ee;--accent-text:#fff;--sidebar:#172d29;--nav-ink:#aebfb6;--nav-active:#d7f88c;--hero:#e3eedb;--hero-ink:#23482d;--hero-muted:#627c55;--ring:#4b774e;--ring-track:#cbdac1;--good:#328258;--good-bg:#eaf6ee;--warning:#ac762c;--warning-bg:#fff3e1;--shadow:0 7px 25px #183d2710;--radius:20px;color:var(--ink);background:var(--bg)}
:root[data-theme=ember]{color-scheme:dark;--bg:#101215;--surface:#191d23;--surface-alt:#20252c;--ink:#edf0f3;--muted:#9ba4af;--line:#30363d;--accent:#ff895b;--accent-soft:#ff895b14;--accent-text:#261a14;--sidebar:#14171b;--nav-ink:#9ba4af;--nav-active:#ff895b;--hero:#222329;--hero-ink:#f5dfd3;--hero-muted:#b2a297;--ring:#ffa877;--ring-track:#4a3830;--good:#9fceae;--good-bg:#80be9412;--warning:#efb087;--warning-bg:#ffa06415;--shadow:0 7px 25px #0003}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:32px;font-weight:650;letter-spacing:-1px;line-height:1.3}h2{font-size:20px;letter-spacing:-.4px;font-weight:650}h3{font-size:18px;font-weight:600}p{line-height:1.7}.muted{color:var(--muted)}.orange{color:var(--warning)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;top:-100px;left:20px;z-index:200;background:var(--accent);color:var(--accent-text);padding:12px;border-radius:8px}.skip:focus{top:10px}[hidden]{display:none!important}
.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:var(--sidebar);color:var(--nav-ink);padding:32px 17px 22px;display:flex;flex-direction:column;z-index:30;border-right:1px solid #ffffff09}.brand{display:flex;align-items:center;gap:12px;padding:0 10px;margin-bottom:45px;font-size:25px;font-weight:700;letter-spacing:1px;color:#fff}.brand>img{background:var(--nav-active);border-radius:12px}.brand-sub{display:block;font-size:11px;font-weight:400;letter-spacing:3px;color:#8ea79a;margin-top:3px}.nav-caption{font-size:10px;letter-spacing:1.6px;padding:0 13px;margin-bottom:15px;color:#7d978a}#navigation{display:flex;flex-direction:column;gap:7px}.nav-link{display:flex;align-items:center;gap:11px;font-size:14px;padding:14px 13px;border-radius:10px;min-height:48px;transition:background .2s,color .2s,transform .2s}.nav-link svg{width:19px;height:19px}.nav-link:hover{background:#ffffff0a;color:white;transform:translateX(2px)}.nav-link.active{background:var(--nav-active);color:#1b3528;font-weight:650}.nav-new{font-size:9px;padding:3px 5px;border:1px solid currentColor;opacity:.7;border-radius:4px;margin-left:auto}.sidebar-bottom{margin-top:auto;padding:25px 13px 0}.environment{display:inline-block;font-size:9px;letter-spacing:1.5px;border:1px solid #ffffff20;border-radius:5px;padding:6px 9px;color:#a4b7aa}.sidebar-bottom p{font-size:14px;margin:18px 0;color:#a5b8ae}.version{font-size:11px;color:#6d897b}.shell{margin-left:230px;min-height:100dvh}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 34px;background:var(--surface);border-bottom:1px solid var(--line)}.breadcrumbs{font-size:12px;color:var(--muted)}.breadcrumbs span{padding:0 10px;opacity:.4}.breadcrumbs strong{color:var(--ink);font-weight:500}.top-actions{display:flex;align-items:center;gap:16px}.network{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.status-dot{width:6px;height:6px;border-radius:50%;display:inline-block;flex-shrink:0}.green{background:var(--good)}.amber{background:var(--warning)}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:600}.theme-switch{display:flex;padding:4px;background:var(--surface-alt);border:1px solid var(--line);border-radius:11px;gap:3px}.theme-switch button{border:0;background:none;border-radius:7px;padding:7px 10px;font-size:12px;color:var(--muted);min-height:32px;transition:background .25s,color .25s,box-shadow .25s}.theme-switch button span{margin-right:3px;font-size:15px}.theme-switch button[aria-pressed=true]{background:var(--surface);color:var(--accent);box-shadow:0 2px 6px #15322415}.mode-strip{padding:11px 34px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.5;background:var(--surface-alt)}.mode-strip strong{font-weight:600;color:var(--ink)}main{padding:30px 34px 0;max-width:1640px;margin:auto;outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:650;letter-spacing:1.4px;color:var(--muted);margin-bottom:10px}.page-heading p{font-size:14px;color:var(--muted);margin-top:10px}.heading-actions{display:flex;gap:10px;align-items:center}.button{border:1px solid transparent;min-height:44px;border-radius:10px;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:11px 16px;font-size:14px;font-weight:600;white-space:nowrap;background:none;transition:transform .2s,box-shadow .2s,background .25s,border-color .25s}.button svg{width:18px;height:18px}.button:hover:not(:disabled){transform:translateY(-2px)}.button:active:not(:disabled){transform:translateY(0)}.primary{background:var(--accent);color:var(--accent-text);box-shadow:0 4px 12px #173a2614}.primary:hover{box-shadow:0 8px 24px #173a2624}.subtle{border-color:var(--line);color:var(--ink);background:var(--surface)}.subtle:hover{background:var(--surface-alt)}.primary-soft{background:var(--accent-soft);color:var(--accent)}.small{min-height:36px;padding:7px 13px;font-size:13px}.session-picker{display:flex;align-items:center;gap:15px;margin-bottom:23px;min-height:36px}.session-picker .eyebrow{margin-bottom:0;font-size:9px}.session-picker>strong{font-size:13px;color:var(--muted);font-weight:500}.session-picker select{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:8px 30px 8px 11px;font-size:13px;max-width:350px;min-height:36px}
.overview-hero{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px;margin-bottom:23px}.counting-hero{background:var(--hero);border:1px solid var(--line);border-radius:var(--radius);padding:31px 32px;display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--hero-ink);position:relative;overflow:hidden;min-height:284px}.counting-hero:after{content:"";position:absolute;width:390px;height:390px;right:-155px;bottom:-250px;border:65px solid #a7c48619;border-radius:50%;pointer-events:none}.hero-copy{position:relative;z-index:2;min-width:0}.hero-copy .eyebrow{color:var(--hero-muted);font-size:9px}.hero-copy h2{font-size:27px;line-height:1.4;letter-spacing:-.8px;max-width:370px;overflow-wrap:anywhere}.hero-copy p{font-size:13px;color:var(--hero-muted);margin-top:12px}.hero-buttons{margin-top:23px}.hero-button{background:#2b583c;color:white;font-size:12px;min-height:42px}.progress-orbit{position:relative;width:194px;height:194px;flex-shrink:0;display:grid;place-items:center}.progress-ring{width:194px;height:194px;transform:rotate(-90deg);z-index:1}.progress-ring circle{fill:none;stroke-width:7}.ring-track{stroke:var(--ring-track)}.ring-value{stroke:var(--ring);stroke-linecap:round;transition:stroke-dasharray .8s cubic-bezier(.2,.8,.2,1),stroke .3s}.progress-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:2}.progress-label>span{font-size:10px;color:var(--hero-muted)}.progress-label>span:first-child{font-size:8px;letter-spacing:1.5px;margin-bottom:6px}.progress-label strong{font-size:49px;letter-spacing:-2px;font-weight:550;line-height:1.25;font-variant-numeric:tabular-nums}.progress-label small{font-size:24px;letter-spacing:-1px;font-weight:400}.orbit-halo{position:absolute;width:160px;height:160px;border-radius:50%;pointer-events:none}.quick-panel{padding:24px}.quick-panel h2{font-size:19px;margin-bottom:16px}.quick-link{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);transition:transform .2s}.quick-link:last-child{border-bottom:0;padding-bottom:0}.quick-link:hover{transform:translateX(3px)}.quick-link>svg{width:16px;height:16px;margin-left:auto;color:var(--muted)}.quick-link strong{font-size:13px;font-weight:600}.quick-link small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.quick-link .module-icon{width:35px;height:35px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:25px}.stat{border:1px solid var(--line);border-radius:15px;background:var(--surface);padding:20px 21px;transition:background .25s,transform .25s,border-color .25s,box-shadow .25s;position:relative;overflow:hidden}.stat:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--accent)}.stat>span{display:block;color:var(--muted);font-size:13px;margin-bottom:11px}.stat-value{font-size:32px;letter-spacing:-1px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}.stat-value small{font-size:19px;font-weight:400}.stat p{font-size:11px;color:var(--muted);margin-top:12px}.stat progress{height:4px;width:100%;border:0;display:block;appearance:none;margin-top:13px;border-radius:5px;overflow:hidden;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--accent);transition:width .6s}progress::-moz-progress-bar{background:var(--accent)}.stat.accent .stat-value{color:var(--accent)}.stat.accent p{margin-top:9px}.module-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:25px}.module-card{display:block;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);transition:transform .25s,box-shadow .25s,border-color .25s}.module-card:hover{transform:translateY(-4px);border-color:var(--accent);box-shadow:var(--shadow)}.module-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.module-icon{width:42px;height:42px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex-shrink:0}.pill{display:inline-block;background:var(--surface-alt);color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:6px 11px;font-size:11px}.module-card h2{font-size:20px}.module-card>p{font-size:13px;color:var(--muted);margin-top:9px}.module-foot{display:flex;justify-content:space-between;align-items:center;padding-top:20px;margin-top:20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.module-foot svg{width:16px;height:16px;color:var(--accent)}.overview-bottom{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0;overflow:hidden;transition:background .25s,border-color .25s}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:23px 24px 0}.panel-title h2{font-size:18px}.panel-title a{font-size:12px;color:var(--accent)}.activity{padding:10px 24px 20px}.activity-row{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.activity-row:last-child{border-bottom:0}.activity-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--accent);flex-shrink:0}.activity-icon svg{width:17px;height:17px}.activity-row>div:not(.activity-result){min-width:0}.activity-row strong{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:310px}.activity-row span:not(.activity-icon){display:block;font-size:11px;color:var(--muted);margin-top:5px}.activity-result{margin-left:auto;text-align:right;flex-shrink:0}.guide ol{list-style:none;counter-reset:steps;margin:0;padding:20px 25px}.guide li{counter-increment:steps;position:relative;padding:0 0 23px 38px}.guide li:last-child{padding-bottom:0}.guide li:before{content:counter(steps);position:absolute;left:0;top:0;width:24px;height:24px;border:1px solid var(--line);background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;border-radius:7px;font-size:11px}.guide strong{display:block;font-size:13px;font-weight:600}.guide span{display:block;font-size:12px;color:var(--muted);margin-top:6px;line-height:1.6}.guide>.button{margin:0 24px 23px;font-size:12px}.page-footer{display:flex;justify-content:space-between;gap:20px;padding:25px 34px;max-width:1640px;margin:auto;color:var(--muted);font-size:11px}
.records-panel{padding-top:0}.filters{display:flex;align-items:center;gap:12px;padding:22px 24px;flex-wrap:wrap}.search-field{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:0 13px;flex:1;min-width:220px;background:var(--surface-alt);height:44px}.search-field svg{width:18px;height:18px;color:var(--muted)}.search-field input{border:0;background:transparent;color:var(--ink);font-size:14px;min-width:0;width:100%;height:100%;outline:0}.search-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.search-field input:focus-visible{outline:0}.filter-field select{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:10px;padding:10px 30px 10px 12px;min-height:44px;max-width:220px;font-size:13px}.result-meta{display:flex;justify-content:space-between;gap:15px;padding:0 24px 16px;color:var(--muted);font-size:11px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;font-weight:600;letter-spacing:.8px;white-space:nowrap;color:var(--muted);background:var(--surface-alt);padding:13px 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}th:first-child,td:first-child{padding-left:24px}th:last-child,td:last-child{padding-right:24px}td{font-size:14px;padding:18px 14px;border-bottom:1px solid var(--line);min-height:74px;vertical-align:middle}tbody tr{transition:background .18s;animation:row-in .25s backwards}tbody tr:hover{background:var(--surface-alt)}td small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.item-code{display:block;font-size:11px;letter-spacing:.3px;color:var(--accent);margin-bottom:6px}.item-name{display:block;font-size:14px;font-weight:600;min-width:180px;max-width:370px;line-height:1.5}.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.numeric>.muted{font-size:11px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap;padding:6px 9px;border-radius:7px}.neutral{background:var(--surface-alt);color:var(--muted)}.success{background:var(--good-bg);color:var(--good)}.warning{background:var(--warning-bg);color:var(--warning)}.note-cell{font-size:12px;color:var(--muted);min-width:160px;max-width:300px;overflow-wrap:anywhere;line-height:1.6}.row-action{text-align:right}.pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 24px;font-size:12px;color:var(--muted)}.pagination>div{display:flex;align-items:center;gap:14px}.empty{text-align:center;padding:45px 24px;color:var(--muted)}.empty>svg{width:33px;height:33px;margin-bottom:15px;opacity:.6}.empty h3{font-size:17px;color:var(--ink);line-height:1.5}.empty p{font-size:13px;max-width:400px;margin:10px auto 0}.empty-actions{display:flex;justify-content:center;margin-top:20px;gap:10px}.empty-actions:empty{display:none}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-panel{padding:27px}.section-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:var(--accent);background:var(--accent-soft);margin-bottom:20px}.settings-panel h2{font-size:20px}.settings-panel p{font-size:14px;color:var(--muted);margin:15px 0}.settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.settings-actions .button{font-size:12px}.settings-panel hr{border:0;border-top:1px solid var(--line);margin:24px 0}.connection{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid var(--line);font-size:14px}.notice{background:var(--accent-soft);border:1px solid var(--line);border-radius:11px;font-size:13px;line-height:1.7;padding:15px;color:var(--muted);margin-top:18px}
dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:28px;width:490px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);box-shadow:0 30px 100px #001c2240;animation:dialog-in .25s ease-out}dialog::backdrop{background:#0b1a2670;backdrop-filter:blur(6px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.dialog-heading h2{font-size:22px}.dialog-heading .eyebrow{font-size:9px}.icon-button{display:grid;place-items:center;border:0;background:var(--surface-alt);color:var(--muted);width:36px;height:36px;flex-shrink:0;border-radius:9px}.icon-button:hover{color:var(--accent)}.item-summary{padding:18px;background:var(--surface-alt);border:1px solid var(--line);border-radius:13px;margin-bottom:24px}.item-summary h3{font-size:17px;margin-bottom:8px;overflow-wrap:anywhere}.item-summary>span:last-child{font-size:12px;color:var(--muted)}.form-field{display:block;font-size:14px;font-weight:500;margin-bottom:21px}.form-field .muted{font-size:12px;font-weight:400}input,textarea,select{accent-color:var(--accent)}.form-field>input,.form-field>textarea{display:block;width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface-alt);color:var(--ink);font-size:16px;margin-top:9px;resize:vertical}.form-hint{color:var(--muted);font-size:12px;line-height:1.7}.form-error{color:var(--warning);font-size:13px;line-height:1.5;margin-top:12px}.form-error:empty{display:none}.dialog-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:24px}.status-options{display:flex;border:0;gap:9px;padding:0;margin:0 0 22px;flex-wrap:wrap}.status-options legend{font-size:14px;margin-bottom:11px}.status-options label{flex:1;min-width:100px;padding:12px 9px;border:1px solid var(--line);border-radius:9px;font-size:13px;white-space:nowrap;cursor:pointer}.status-options label:has(input:checked){background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.status-options input{margin-right:5px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--surface);box-shadow:0 10px 40px #0b1b2233;border-radius:12px;padding:16px 23px;z-index:200;max-width:calc(100vw - 32px);font-size:14px;line-height:1.5}.scan-preview{background:var(--surface-alt);border:1px dashed var(--line);border-radius:13px;min-height:180px;display:grid;place-items:center;overflow:hidden;margin-bottom:17px}.scan-preview video{display:block;width:100%;max-height:270px;object-fit:cover}.scan-preview svg{width:55px;height:55px;color:var(--accent)}#scan-placeholder{text-align:center;padding:25px;font-size:13px;color:var(--muted)}#scan-placeholder p{margin-top:12px}#scanner>.button{margin:16px 0}#scanner form{margin-top:15px}
:root[data-theme=ember] .nav-link.active{background:#ff895b15;color:#ffa47e;box-shadow:inset 3px 0 #ff895b;border-radius:0 9px 9px 0}:root[data-theme=ember] .sidebar-bottom p{color:#88929d}:root[data-theme=ember] .version,:root[data-theme=ember] .nav-caption{color:#6d7a85}:root[data-theme=ember] .brand-sub{color:#82909b}:root[data-theme=ember] .environment{color:#98a4ad}:root[data-theme=ember] .counting-hero{background:radial-gradient(ellipse at 87% 60%,#813e2545,transparent 65%),linear-gradient(125deg,#24272e,#191c22);border-color:#3a302d;box-shadow:inset 0 1px #ffffff05}:root[data-theme=ember] .counting-hero:after{border-color:#ff885508}:root[data-theme=ember] .hero-button{background:var(--accent);color:var(--accent-text);box-shadow:0 4px 20px #ff784722}:root[data-theme=ember] .orbit-halo{background:radial-gradient(circle,#ff9c6240,#8e432412 50%,transparent 70%);filter:blur(12px);animation:glow 6s ease-in-out infinite}:root[data-theme=ember] .progress-ring{filter:drop-shadow(0 0 9px #ff895b22)}:root[data-theme=ember] .progress-label strong{text-shadow:0 0 25px #ffa05c29;font-weight:500}:root[data-theme=ember] .stat{background:linear-gradient(130deg,#1e232a,#191d23)}:root[data-theme=ember] .stat:hover{border-color:#ff895b55;box-shadow:0 12px 30px #0004}:root[data-theme=ember] .primary:hover{box-shadow:0 7px 24px #ff895b23}
@keyframes glow{0%,100%{opacity:.55;transform:scale(.95)}50%{opacity:1;transform:scale(1.06)}}@keyframes row-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes dialog-in{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:1600px){main{padding-top:36px}.overview-hero{grid-template-columns:minmax(0,1.8fr) minmax(340px,1fr)}.counting-hero{padding:35px 42px}.hero-copy h2{font-size:31px}.progress-orbit{margin-right:30px;width:220px;height:220px}.progress-ring{width:220px;height:220px}.progress-label strong{font-size:56px}}
@media(max-width:1250px){.sidebar{width:200px;padding-left:13px;padding-right:13px}.shell{margin-left:200px}.topbar{padding:0 25px}.breadcrumbs{font-size:11px}.top-actions{gap:10px}main{padding:25px 25px 0}.mode-strip{padding-left:25px;padding-right:25px}.page-footer{padding:24px 25px}.page-heading h1{font-size:28px}.page-heading p{font-size:13px}.heading-actions .button{font-size:12px;padding:10px 12px}.overview-hero{grid-template-columns:minmax(0,1.5fr) minmax(265px,1fr);gap:18px}.counting-hero{padding:25px 23px}.hero-copy h2{font-size:24px}.hero-copy p{font-size:12px}.progress-orbit,.progress-ring{width:155px;height:155px}.progress-label strong{font-size:41px}.progress-label>span{font-size:8px}.progress-label>span:first-child{font-size:7px}.hero-button{font-size:11px;padding:10px 12px}.quick-panel{padding:22px}.quick-panel h2{font-size:17px}.quick-link{gap:9px}.quick-link strong{font-size:12px}.quick-link small{font-size:10px}.stats{gap:12px}.stat{padding:18px}.stat>span{font-size:12px}.stat p{font-size:10px}.stat-value{font-size:28px}.filters{padding:20px}.filter-field select{max-width:180px}.module-card{padding:22px}}
@media(max-width:1050px){.overview-hero{grid-template-columns:1fr}.counting-hero{min-height:270px;padding:27px 30px}.hero-copy h2{font-size:28px}.progress-orbit,.progress-ring{width:200px;height:200px}.progress-label strong{font-size:49px}.progress-label>span{font-size:10px}.progress-label>span:first-child{font-size:8px}.quick-panel{display:none}.stats{grid-template-columns:repeat(2,1fr)}.stat-value{font-size:33px}.stat>span{font-size:14px}.stat p{font-size:12px}.overview-bottom{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.network{display:none}.topbar{gap:12px}.breadcrumbs{white-space:nowrap}.module-card h2{font-size:18px}.module-card>p{font-size:12px}.module-foot{font-size:11px}.activity-row strong{max-width:380px}}
@media(max-width:760px){.sidebar{position:fixed;inset:auto 0 0;width:100%;padding:0;background:var(--surface);border:0;border-top:1px solid var(--line);box-shadow:0 -4px 25px #102a1907;z-index:40}.sidebar .brand,.nav-caption,.sidebar-bottom{display:none}#navigation{flex-direction:row;gap:0;padding:7px 8px max(8px,env(safe-area-inset-bottom));justify-content:space-between}.nav-link{flex:1;flex-direction:column;gap:6px;justify-content:center;padding:9px 3px;font-size:10px;min-height:56px;color:var(--muted);border-radius:10px}.nav-link.active,:root[data-theme=ember] .nav-link.active{color:var(--accent);background:var(--accent-soft);border-radius:10px;box-shadow:none}.nav-link:hover{color:var(--accent);transform:none;background:var(--accent-soft)}.nav-link svg{width:20px;height:20px}.nav-new{display:none}.shell{margin-left:0}.topbar{height:67px;padding:0 18px;position:relative}.breadcrumbs{font-size:12px}.breadcrumbs>span{display:none}.breadcrumbs{font-size:0}.breadcrumbs strong{font-size:14px}.top-actions{gap:9px}.theme-switch{padding:3px;gap:1px;border-radius:10px}.theme-switch button{font-size:11px;padding:7px 8px;min-height:34px}.theme-switch button span{font-size:14px;margin-right:2px}.avatar{width:29px;height:29px;font-size:11px}#install{font-size:11px;padding:8px;min-height:34px}.mode-strip{padding:10px 18px;font-size:10px;align-items:flex-start;gap:7px;line-height:1.55}.mode-strip>.status-dot{margin-top:5px}main{padding:23px 18px 0}.page-heading{gap:13px;align-items:flex-start;flex-wrap:wrap;margin-bottom:20px}.page-heading h1{font-size:25px;letter-spacing:-.7px;line-height:1.35}.page-heading p{font-size:12px;line-height:1.6;margin-top:9px}.page-heading .eyebrow{font-size:8px}.heading-actions{gap:8px;width:100%;flex-wrap:wrap}.heading-actions .button{font-size:12px;min-height:40px;padding:10px 13px}.session-picker{gap:9px;align-items:flex-start;flex-direction:column;margin-bottom:18px}.session-picker .eyebrow{font-size:8px;letter-spacing:1.2px}.session-picker select{max-width:100%;width:100%;font-size:13px;min-height:40px}.session-picker>strong{font-size:12px}.overview-hero{margin-bottom:18px}.counting-hero{min-height:290px;padding:23px 20px;align-items:flex-start;border-radius:19px}.hero-copy{max-width:100%;padding-bottom:40px}.hero-copy .eyebrow{font-size:8px}.hero-copy h2{font-size:24px;line-height:1.4;max-width:280px}.hero-copy p{font-size:11px;max-width:215px}.hero-buttons{margin-top:22px}.hero-button{font-size:11px;min-height:40px;padding:9px 12px}.progress-orbit{position:absolute;right:15px;bottom:16px;width:105px;height:105px;margin:0}.progress-ring{width:105px;height:105px}.progress-label strong{font-size:29px;letter-spacing:-1px}.progress-label small{font-size:14px}.progress-label>span{font-size:6px}.progress-label>span:first-child{font-size:5px;letter-spacing:1px;margin-bottom:3px}.orbit-halo{width:95px;height:95px}.stats{gap:11px;margin-bottom:22px}.stat{padding:16px 14px;border-radius:13px}.stat>span{font-size:12px;margin-bottom:9px}.stat-value{font-size:29px}.stat p{font-size:10px;line-height:1.5;min-height:15px}.module-grid{grid-template-columns:1fr;gap:15px;margin-bottom:22px}.module-card{padding:21px}.module-top{margin-bottom:16px}.module-card h2{font-size:20px}.module-card>p{font-size:13px}.module-foot{font-size:12px;padding-top:16px;margin-top:17px}.module-icon{width:39px;height:39px}.overview-bottom{gap:18px}.panel-title{padding:20px 20px 0}.panel-title h2{font-size:17px}.panel-title a{font-size:11px}.activity{padding:8px 20px 15px}.activity-row{gap:9px;padding:16px 0}.activity-row strong{font-size:12px;max-width:165px}.activity-row span:not(.activity-icon){font-size:10px}.activity-result strong{font-size:12px}.activity-icon{width:31px;height:31px}.guide ol{padding:22px 20px}.guide>.button{margin-left:20px;margin-right:20px}.page-footer{padding:23px 18px 99px;gap:10px;flex-direction:column;font-size:10px}.records-panel{border-radius:17px}.filters{padding:17px 16px;gap:10px}.search-field{min-width:0;width:100%;flex:none;height:44px}.search-field input{font-size:14px}.filter-field{flex:1;min-width:0}.filter-field select{width:100%;max-width:none;font-size:12px;min-height:40px;padding:9px 22px 9px 9px}.result-meta{padding:0 16px 13px;font-size:10px}.result-meta>span:last-child{display:none}.table-scroll{overflow:visible}table,tbody,tr,td{display:block;width:100%}thead{display:none}tbody{padding:0 16px}tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,auto);gap:13px 12px;padding:18px 0;border-bottom:1px solid var(--line)}tbody tr:first-child{padding-top:8px}tbody tr:hover{background:transparent}td,td:first-child,td:last-child{padding:0;min-height:0;border:0;font-size:14px}.item-name{min-width:0;max-width:none;font-size:15px;line-height:1.5}.item-code{font-size:11px}.numeric{white-space:normal}.numeric>.muted{font-size:11px}.badge{font-size:10px;padding:5px 7px}td:nth-child(1){grid-column:1/-1;grid-row:1}td:nth-child(2){grid-column:1;grid-row:2;color:var(--muted);font-size:12px}td:nth-child(3){grid-column:1;grid-row:3;text-align:left;font-size:13px}td:nth-child(3):before{content:'Бүртгэл: ';color:var(--muted);font-size:11px}td:nth-child(4){grid-column:2;grid-row:3;font-size:14px}td:nth-child(4):before{content:'Тоолсон: ';color:var(--muted);font-size:11px}td:nth-child(5){grid-column:2;grid-row:2;text-align:right}td:nth-child(6){grid-column:1/-1;grid-row:4}td.row-action .button{width:100%;min-height:40px;font-size:13px}td.numeric:nth-child(6){text-align:left;font-size:14px}td.numeric:nth-child(6):before{content:'Зөрүү: ';color:var(--muted);font-size:12px}td:nth-child(7){grid-column:1/-1;grid-row:5;font-size:12px}td:nth-child(7):before{content:'Тайлбар: ';color:var(--muted)}td small{font-size:10px}.pagination{padding:17px 16px;font-size:11px;gap:8px;flex-wrap:wrap}.pagination>div{gap:10px}.pagination .small{font-size:11px;min-height:36px;padding:7px 10px}.empty{padding:36px 19px}.empty h3{font-size:16px}.empty p{font-size:12px}.empty-actions .button{font-size:12px;padding:10px 12px;white-space:normal}.settings-grid{gap:18px}.settings-panel{padding:23px 21px}.settings-panel h2{font-size:19px}.settings-panel p{font-size:13px}.connection{font-size:13px}.settings-actions .button{font-size:12px;min-height:42px}.notice{font-size:12px}dialog{padding:23px;max-width:calc(100vw - 24px);border-radius:20px}.dialog-heading h2{font-size:21px}.dialog-heading .eyebrow{font-size:8px}.item-summary{padding:16px}.item-summary h3{font-size:16px}.form-field{font-size:14px}.form-field>input,.form-field>textarea{font-size:16px}.form-field .muted{font-size:11px}.status-options{gap:7px}.status-options label{font-size:12px;min-width:95px;padding:12px 7px}.dialog-footer .button{font-size:14px;min-height:44px}.toast{bottom:90px;font-size:13px;width:calc(100vw - 32px);max-width:430px;padding:15px 20px}}
@media(max-width:360px){.topbar{padding:0 12px}.top-actions{gap:6px}.theme-switch button{padding:7px 6px;font-size:10px}.avatar{display:none}main{padding-left:12px;padding-right:12px}.mode-strip{padding-left:12px;padding-right:12px}.counting-hero{padding-left:17px;padding-right:17px}.hero-copy h2{font-size:22px}.hero-button{font-size:10px;padding-left:9px;padding-right:9px}.progress-orbit,.progress-ring{width:88px;height:88px}.progress-orbit{right:10px;bottom:25px}.stat>span{font-size:11px}.stat p{font-size:9px}.activity-row strong{max-width:140px}.nav-link{font-size:9px}.hero-copy p{font-size:10px}}
.search-actions{padding:0 24px 16px}.item-photo{width:64px;height:64px;border-radius:12px;float:left;margin:0 13px 8px 0;position:relative;overflow:hidden;background:var(--surface-alt);border:1px solid var(--line);flex-shrink:0}.item-photo img{width:100%;height:100%;object-fit:cover}.photo-placeholder{display:grid;place-items:center;width:100%;height:100%;font-size:15px;font-weight:650;letter-spacing:1px;color:var(--muted);background:linear-gradient(140deg,var(--accent-soft),var(--surface-alt))}.photo-source{position:absolute;bottom:0;left:0;right:0;font-size:8px;line-height:16px;background:#10241ccc;color:white;text-align:center}.item-photo.large{float:none;width:100%;height:172px;margin:0 0 16px}.item-photo.large img{object-fit:contain}.item-photo.large .photo-placeholder{font-size:32px}.photo-actions{display:flex;align-items:center;gap:12px;margin:-7px 0 22px}.photo-actions small{font-size:11px;color:var(--muted);line-height:1.6}.photo-upload{position:relative;cursor:pointer;overflow:hidden;flex-shrink:0;font-size:12px}.photo-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.photo-upload:focus-within{outline:2px solid var(--accent);outline-offset:3px}.report-control{padding:22px;display:flex;align-items:end;gap:24px;margin-bottom:22px;flex-wrap:wrap}.report-control .form-field{margin:0;font-size:12px}.report-control .form-field input,.report-control .form-field select{display:block;margin:9px 0 0;padding:10px 12px;border:1px solid var(--line);background:var(--surface-alt);color:var(--ink);border-radius:9px;min-height:44px;font-size:14px}.report-control>div{margin-right:auto}.report-tabs{display:flex;gap:8px;flex-wrap:wrap}.report-tabs .button{font-size:12px;min-height:42px}.report-stats .stat-value{font-size:34px}.finance-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.finance-stats .stat-value{font-size:22px;letter-spacing:-.5px;white-space:normal;line-height:1.5}.report-caveat{display:flex;align-items:start;gap:10px;margin:0 0 24px;padding:15px 18px;border:1px solid var(--line);background:var(--surface-alt);border-radius:12px}.report-caveat .status-dot{margin-top:5px;flex-shrink:0}.report-caveat p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}.report-charts{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;margin-bottom:24px}.chart-panel{overflow:hidden;min-width:0}.chart-panel .panel-title{align-items:start}.chart-panel .eyebrow{font-size:9px}.chart-panel h2{font-size:18px;line-height:1.5}.trend-chart{display:block;width:100%;margin:22px 0 0;padding:0 16px}.chart-grid{stroke:var(--line);stroke-dasharray:3 5;fill:none}.trend-line{stroke:var(--accent);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}.trend-point{fill:var(--surface);stroke:var(--accent);stroke-width:2}.trend-bar{fill:var(--accent);opacity:.12}.trend-chart text{fill:var(--muted);font-size:11px}.trend-chart g:hover .trend-bar{opacity:.4}.trend-chart g:hover .trend-point{r:6}.trend-details{padding:16px 24px 22px;font-size:12px;color:var(--muted)}.trend-details summary{cursor:pointer;min-height:32px}.daily-list>div{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.warehouse-progress{padding:14px 24px 24px;max-height:340px;overflow:auto}.warehouse-progress button{display:grid;grid-template-columns:minmax(80px,1fr) minmax(60px,1fr) 50px;gap:13px;align-items:center;width:100%;padding:16px 0;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);text-align:left;cursor:pointer}.warehouse-progress button:hover{color:var(--accent)}.warehouse-progress strong{display:block;font-size:13px;overflow-wrap:anywhere}.warehouse-progress small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}.warehouse-progress progress{width:100%;height:7px;accent-color:var(--accent)}.warehouse-progress b{font-size:13px;font-variant-numeric:tabular-nums;text-align:right}
@media(max-width:1050px){.report-charts{grid-template-columns:1fr}.finance-stats{grid-template-columns:1fr}.report-control{gap:16px}.report-control>div{width:100%}}
@media(max-width:760px){.item-photo{width:72px;height:72px;margin-right:13px}.item-name{overflow-wrap:anywhere}.item-photo.large{height:145px}.photo-actions{flex-wrap:wrap;gap:8px}.photo-actions small{font-size:10px}.report-control{padding:18px;gap:13px}.report-tabs{gap:6px}.report-tabs .button{font-size:11px;padding:9px 10px;flex:1;white-space:nowrap}.report-control .form-field{flex:1;min-width:100px}.report-control .form-field input,.report-control .form-field select{width:100%;min-width:0;font-size:14px}.report-charts{gap:18px}.report-stats .stat-value{font-size:29px}.chart-panel .panel-title{gap:10px}.chart-panel .pill{font-size:9px}.chart-panel h2{font-size:16px}.report-caveat{padding:13px}.report-caveat p{font-size:11px}.warehouse-progress{padding:10px 20px 20px}.search-actions{padding:0 16px 14px}.search-actions .button{min-height:40px}.dialog-footer{position:sticky;bottom:-23px;padding:16px 0;background:var(--surface);border-top:1px solid var(--line);margin-top:16px}.dialog-footer .primary{flex:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep sign-in and theme controls reachable on narrow phones and enlarged text. */
@media(max-width:760px){
  .topbar{height:auto;min-height:67px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:8px}
  .breadcrumbs{min-width:0;white-space:normal}
  .top-actions{min-width:0;max-width:100%;flex-wrap:wrap;gap:8px}
  .top-actions .button{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:12px;min-height:44px}
  .theme-switch{flex-shrink:0}
  .settings-actions{flex-wrap:wrap}
  .settings-actions .button{white-space:normal;overflow-wrap:anywhere;max-width:100%}
  .settings-panel .panel-title{padding:0;flex-wrap:wrap;gap:8px}
}
.bc-recording-list { margin-top: 12px; }
.bc-recording-line { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.bc-recording-line > div { min-width:0; overflow-wrap:anywhere; }
.bc-recording-line p { margin:6px 0 0; }
.bc-recording .form-field { min-width:0; }
.bc-recording select, .bc-recording input { width:100%; min-width:0; }
.bc-recording-editor { padding:20px; margin-top:20px; border:1px solid var(--line); border-radius:16px; }
.bc-recording .settings-actions { align-items:center; }
.bc-recording-setup summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--accent)}
.bc-recording-setup summary::before{content:'▸';margin-right:8px}.bc-recording-setup[open] summary::before{content:'▾'}
.bc-recording .bc-storage-note{font-size:12px;margin:10px 0;color:var(--muted)}
.bc-recording-editor{scroll-margin-top:130px}
.bc-recording-editor:focus{outline:2px solid var(--accent);outline-offset:3px}
.bc-recording-editor .button{width:100%;min-height:48px}
.bc-recording .settings-actions>.form-field{flex:1}
@media(max-width:600px) {
  .bc-recording { padding:20px; }
  .bc-recording-line { align-items:center; gap:10px; padding:12px 0; }
  .bc-recording-line .button { min-height:46px; flex-shrink:0; padding:10px 12px; }
  .bc-recording-line p { font-size:12px; }
  .bc-recording-editor { padding:14px; }
  .bc-recording select { font-size:14px; }
  .bc-count-page main { padding-top:14px; }
  .bc-count-page .page-heading { margin-bottom:14px;gap:8px; }
  .bc-count-page .page-heading h1 { font-size:22px; }
  .bc-count-page .page-heading .eyebrow,.bc-count-page .page-heading p { display:none; }
}
.topbar{position:sticky;top:0;z-index:30}
.remember-device{display:flex;align-items:center;gap:12px;min-height:48px;margin:18px 0;cursor:pointer;line-height:1.5}
.remember-device input{width:22px;height:22px;flex:0 0 22px;accent-color:var(--accent,#1d7664)}
.remember-note{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.admin-sections{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.admin-sections .button{min-height:48px;flex:1 1 180px}.count-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.count-admin-heading h2{margin-top:0}.count-admin-heading p{margin-bottom:0}.count-admin-heading .button{min-height:48px}.count-admin h3{margin-top:24px}
@media(max-width:640px){.count-admin-heading .button{width:100%}.admin-sections .button{flex-basis:140px}}
.issue-admin{margin:22px 0;min-width:0}.issue-admin .panel-title{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.issue-admin .settings-grid{gap:28px}.issue-admin-locations{margin:20px 0;border:1px solid var(--line);border-radius:12px;min-width:0;padding:12px}.issue-admin-locations label{display:flex;gap:10px;align-items:center;min-height:46px;overflow-wrap:anywhere;cursor:pointer}.issue-admin-locations input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;accent-color:var(--accent)}.issue-admin-location-list{max-height:260px;overflow:auto;border-top:1px solid var(--line)}.issue-admin form,.issue-admin .settings-grid>div{min-width:0}.issue-admin .notice{overflow-wrap:anywhere}
@media(max-width:640px){.issue-admin.settings-panel{padding:18px}.issue-admin .panel-title>.button{width:100%}.issue-admin .count-admin{grid-template-columns:minmax(0,1fr)}}

/* Counting administration follows the existing settings layout. */
.count-admin{align-items:start}.count-admin .form-field{margin-top:18px}.admin-person{border-bottom:1px solid var(--border,#dce5e0);padding:18px 0;overflow-wrap:anywhere}.admin-person p{margin:7px 0}.admin-message{overflow-wrap:anywhere}.count-admin input,.count-admin select{min-width:0;width:100%;box-sizing:border-box}.count-admin form .button{min-height:46px;margin-top:12px}
.count-admin select{min-height:48px;border:1px solid var(--border,#dce5e0);border-radius:12px;background:var(--surface,#fff);color:inherit;padding:10px;font:inherit}
@media(max-width:640px){.count-admin{grid-template-columns:1fr}.count-admin .settings-panel{padding:22px}.count-admin form .button{width:100%}.admin-person .settings-actions{display:flex;flex-wrap:wrap}}
.operator-signin .sidebar,.operator-signin .topbar,.operator-signin .mode-strip,.operator-signin .page-footer{display:none}
.operator-signin .shell{margin:0}
.operator-signin main{display:grid;min-height:100svh;place-items:center;padding:20px;margin:auto}
.operator-entry{width:min(100%,24rem);padding:clamp(24px,6vw,40px);display:grid;justify-items:start;gap:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}
.operator-entry h1{font-size:1.65rem}
.operator-entry p,.operator-entry a{color:var(--muted)}
.operator-entry .remember-device{margin:0}
.operator-entry .button{width:100%;min-height:48px}
.operator-entry a{justify-self:center;text-decoration:underline;text-underline-offset:3px}
