:root{--bg:#f4f7fb;--card:#fff;--text:#0f172a;--muted:#64748b;--line:#e2e8f0;--blue:#155eef;--blue-dark:#0f47bd;--green:#0f9f6e;--orange:#f59e0b;--red:#dc2626;--shadow:0 12px 30px #0f172a14;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.w-full{width:100%}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.splash{text-align:center;place-content:center;gap:14px;min-height:100vh;display:grid}.app-shell{grid-template-columns:280px 1fr;min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--line);background:#fff;flex-direction:column;gap:22px;height:100vh;padding:22px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;display:flex}.brand-icon{background:linear-gradient(135deg, var(--blue), #3b82f6);color:#fff;border-radius:14px;place-items:center;width:44px;height:44px;font-weight:900;display:grid;box-shadow:0 10px 24px #155eef3d}.brand h2,.brand p,.auth-brand h1,.auth-brand p{margin:0}.brand h2{font-size:18px}.brand p{color:var(--muted);font-size:12px}.nav-list{gap:6px;display:grid}.nav-item{color:#475569;border-radius:12px;align-items:center;gap:10px;padding:11px 12px;font-weight:650;display:flex}.nav-item:hover{background:#f8fafc}.nav-item.active{color:var(--blue);background:#eef4ff}.sidebar-user{border:1px solid var(--line);background:#f8fafc;border-radius:16px;margin-top:auto;padding:14px}.sidebar-user p{color:var(--muted);text-overflow:ellipsis;margin:4px 0 10px;font-size:12px;overflow:hidden}.main{min-width:0;padding:24px}.topbar{justify-content:space-between;align-items:center;height:76px;margin-bottom:16px;display:flex}.topbar p,.topbar h1{margin:0}.topbar p{color:var(--muted);font-size:13px}.topbar h1{font-size:24px}.page-stack{gap:18px;display:grid}.card,.hero-card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px;padding:20px}.hero-card{background:linear-gradient(135deg,#fff,#eef4ff);justify-content:space-between;align-items:center;gap:18px;display:flex}.hero-card p,.hero-card h2{margin:0}.hero-card p{color:var(--blue);text-transform:uppercase;letter-spacing:.04em;font-size:13px;font-weight:800}.hero-card h2{max-width:720px;margin-top:6px;font-size:26px}.section-head{justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px;display:flex}.section-head.compact{border-bottom:1px solid var(--line);align-items:center;padding-bottom:10px}.section-head h3,.section-head p{margin:0}.muted{color:var(--muted);align-items:center;gap:6px;display:inline-flex}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:14px;display:grid}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.align-start{align-items:start}.stat-card{border:1px solid var(--line);text-align:left;width:100%;box-shadow:var(--shadow);cursor:default;background:#fff;border-radius:18px;gap:14px;padding:18px;display:flex}button.stat-card{cursor:pointer}button.stat-card:hover{transition:all .15s;transform:translateY(-2px)}.stat-icon{width:46px;height:46px;color:var(--blue);background:#eef4ff;border-radius:14px;place-items:center;display:grid}.stat-card p,.stat-card h3,.stat-card small{margin:0}.stat-card p{color:var(--muted);font-size:13px;font-weight:700}.stat-card h3{margin-top:5px;font-size:26px}.stat-card small{color:var(--muted)}.stat-green .stat-icon{color:var(--green);background:#ecfdf5}.stat-orange .stat-icon{color:var(--orange);background:#fffbeb}.stat-red .stat-icon{color:var(--red);background:#fef2f2}.btn{cursor:pointer;white-space:nowrap;border:0;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:11px 15px;font-weight:800;transition:all .15s;display:inline-flex}.btn:disabled{opacity:.65;cursor:not-allowed}.btn-sm{border-radius:10px;padding:8px 10px;font-size:13px}.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover{background:var(--blue-dark)}.btn-secondary{color:var(--blue);background:#eef4ff}.btn-ghost{color:#475569;background:0 0}.btn-danger{background:var(--red);color:#fff}.btn-danger-light{color:var(--red);background:#fef2f2}.field{gap:7px;width:100%;display:grid}.field span{color:#334155;font-size:13px;font-weight:800}input,select,textarea{width:100%;color:var(--text);background:#fff;border:1px solid #cbd5e1;border-radius:12px;outline:none;padding:12px 13px}textarea{resize:vertical;min-height:92px}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px #155eef1a}.native-file{background:#f8fbff;border:1px dashed #93c5fd}.field-error{color:var(--red)}.alert{border-radius:12px;padding:12px 14px;font-weight:700}.alert.danger{color:#b91c1c;background:#fef2f2}.alert.success{color:#047857;background:#ecfdf5}.auth-page{background:radial-gradient(circle at top,#eaf1ff,#f8fafc 48%,#eef2f7);place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{border:1px solid var(--line);background:#fff;border-radius:24px;gap:16px;width:min(440px,100%);padding:28px;display:grid;box-shadow:0 24px 70px #0f172a1f}.auth-card.wide{width:min(720px,100%)}.auth-brand{align-items:center;gap:12px;display:flex}.auth-brand h1{font-size:21px}.auth-brand p,.auth-title p{color:var(--muted)}.auth-title h2,.auth-title p{margin:0}.auth-title h2{font-size:22px}.auth-links{color:var(--blue);justify-content:space-between;font-size:14px;font-weight:800;display:flex}.file-card{border:1px solid var(--line);background:#fff;border-radius:16px;align-items:flex-start;gap:14px;margin-bottom:12px;padding:14px;display:flex}.file-mark{width:44px;height:44px;color:var(--blue);background:#eef4ff;border-radius:14px;flex:none;place-items:center;display:grid}.file-main{flex:1;min-width:0}.file-title-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.file-title-row h3{margin:0;font-size:16px}.row-wrap{flex-wrap:wrap;gap:10px;margin-top:6px}.file-note{color:var(--muted);margin:9px 0 0}.file-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.badge{border-radius:999px;align-items:center;gap:5px;padding:5px 9px;font-size:12px;font-weight:800;display:inline-flex}.badge-green{color:#047857;background:#ecfdf5}.badge-orange{color:#b45309;background:#fffbeb}.badge-red{color:#b91c1c;background:#fef2f2}.badge-dark{color:#fff;background:#111827}.badge-gray{color:#475569;background:#f1f5f9}.empty{text-align:center;color:var(--muted);padding:42px 14px}.empty h3{color:#334155;margin:0 0 6px}.pin-row,.actions-row{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.detail-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.detail-head h2,.detail-head p{margin:0}.detail-head p{color:var(--muted)}.detail-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0;display:grid}.detail-grid p{border:1px solid var(--line);border-radius:14px;gap:5px;margin:0;padding:12px;display:grid}.detail-grid strong{color:var(--muted);font-size:12px}.log-row,.alert-row,.entry-row{border-bottom:1px solid var(--line);padding:12px 0}.log-row:last-child,.alert-row:last-child,.entry-row:last-child{border-bottom:0}.alert-row p,.entry-row p{color:var(--muted);margin:4px 0 0}.camera-box{background:#0f172a;border-radius:18px;place-items:center;min-height:320px;display:grid;overflow:hidden}.camera-box video{object-fit:contain;width:100%;max-height:480px}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:14px 0;display:grid}.photo-preview{border:1px solid var(--line);background:#fff;border-radius:14px;overflow:hidden}.photo-preview img{object-fit:cover;width:100%;height:150px;display:block}.photo-preview div{justify-content:space-between;align-items:center;gap:8px;padding:10px;display:flex}.ledger-row{border:1px solid var(--line);text-align:left;cursor:pointer;background:#fff;border-radius:16px;justify-content:space-between;align-items:center;width:100%;margin-bottom:10px;padding:14px;display:flex}.ledger-row:hover{background:#f8fafc}.ledger-row p,.ledger-row span{color:var(--muted);margin:4px 0 0}.ledger-row div:last-child{text-align:right}.table-wrap{border:1px solid var(--line);border-radius:14px;overflow:auto}table{border-collapse:collapse;width:100%}th,td{border-bottom:1px solid var(--line);text-align:left;white-space:nowrap;padding:12px}th{color:#475569;background:#f8fafc;font-size:13px}.day-group{border:1px solid var(--line);border-radius:16px;margin-bottom:12px;padding:14px}.entry-row{justify-content:space-between;gap:12px;display:flex}.text-green{color:var(--green)}.text-red{color:var(--red)}.modal-backdrop{z-index:50;background:#0f172a73;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:22px;width:min(720px,100%);max-height:90vh;overflow:auto;box-shadow:0 30px 80px #00000040}.modal-head,.modal-footer{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;display:flex}.modal-head h3{margin:0}.modal-body{gap:14px;padding:18px;display:grid}.modal-footer{border-top:1px solid var(--line);border-bottom:0;justify-content:flex-end}.suggestions{flex-wrap:wrap;gap:8px;margin:10px 0;display:flex}.suggestions button{border:1px solid var(--line);color:var(--blue);cursor:pointer;background:#fff;border-radius:999px;padding:8px 10px}@media (width<=980px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line);height:auto;position:static}.nav-list{grid-template-columns:repeat(4,1fr)}.stats-grid,.filter-grid,.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.main,.sidebar{padding:14px}.nav-list{grid-template-columns:repeat(2,1fr)}.hero-card,.section-head,.file-card,.entry-row{flex-direction:column;align-items:stretch}.grid-2,.stats-grid,.filter-grid,.detail-grid{grid-template-columns:1fr}.file-actions{justify-content:flex-start}.auth-page{padding:14px}}.toast-stack{z-index:100;gap:10px;width:min(380px,100vw - 28px);display:grid;position:fixed;top:18px;right:18px}.toast{border:1px solid var(--line);border-left:5px solid var(--blue);background:#fff;border-radius:16px;grid-template-columns:auto 1fr auto;align-items:start;gap:10px;padding:13px;animation:.18s ease-out slideToast;display:grid;box-shadow:0 18px 50px #0f172a29}@keyframes slideToast{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.toast-success{border-left-color:var(--green)}.toast-error{border-left-color:var(--red)}.toast-warning{border-left-color:var(--orange)}.toast-icon{width:32px;height:32px;color:var(--blue);background:#eef4ff;border-radius:10px;place-items:center;display:grid}.toast-success .toast-icon{color:var(--green);background:#ecfdf5}.toast-error .toast-icon{color:var(--red);background:#fef2f2}.toast-warning .toast-icon{color:var(--orange);background:#fffbeb}.toast-body strong,.toast-body p{margin:0}.toast-body p{color:#334155;font-weight:650;line-height:1.35}.toast-close{color:var(--muted);cursor:pointer;background:0 0;border:0;padding:2px}.dialog-backdrop{z-index:90;background:#0f172a73;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.dialog{text-align:center;background:#fff;border-radius:22px;width:min(420px,100%);padding:22px;box-shadow:0 30px 80px #00000040}.dialog-icon{width:52px;height:52px;color:var(--blue);background:#eef4ff;border-radius:18px;place-items:center;margin:0 auto 12px;display:grid}.dialog-danger{color:var(--red);background:#fef2f2}.dialog h3,.dialog p{margin:0}.dialog p{color:var(--muted);margin-top:8px;line-height:1.5}.dialog-actions{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px;display:flex}.page-loader{min-height:280px;color:var(--muted);place-content:center;justify-items:center;gap:12px;display:grid}.skeleton{background:linear-gradient(90deg,#eef2f7,#f8fafc,#eef2f7) 0 0/200% 100%;border-radius:999px;animation:1.3s infinite shimmer;display:block}@keyframes shimmer{to{background-position:-200% 0}}.skeleton-number{border-radius:8px;width:72px;height:30px;margin-top:7px}.skeleton-list{gap:12px;display:grid}.skeleton-row{border:1px solid var(--line);border-radius:16px;grid-template-columns:48px 1fr;align-items:center;gap:12px;padding:12px;display:grid}.skeleton-avatar{border-radius:14px;width:44px;height:44px}.skeleton-line{width:45%;height:12px;margin-top:8px}.skeleton-line.wide{width:78%;height:14px;margin-top:0}.eyebrow{color:var(--blue);letter-spacing:.06em;text-transform:uppercase;margin:0 0 5px;font-size:12px;font-weight:900}.drive-hero-card{background:#fff}.drive-toolbar{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.drive-toolbar h2,.drive-toolbar p{margin:0}.drive-toolbar h2{letter-spacing:-.02em;font-size:28px}.breadcrumbs{color:var(--muted);flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.breadcrumbs button{color:var(--blue);cursor:pointer;background:0 0;border:0;padding:0;font-weight:800}.drive-filter-bar{grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(150px,.65fr));align-items:center;gap:12px;margin-top:18px;display:grid}.search-input{background:#f8fafc;border:1px solid #cbd5e1;border-radius:999px;align-items:center;gap:10px;min-height:46px;padding:0 14px;display:flex}.search-input input{background:0 0;border:0;padding-left:0;box-shadow:none!important}.drive-folder-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;display:grid}.drive-folder-card{border:1px solid var(--line);background:#fff;border-radius:16px;transition:all .15s;overflow:hidden}.drive-folder-card:hover{box-shadow:var(--shadow);border-color:#bfdbfe;transform:translateY(-2px)}.drive-folder-main{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;width:100%;padding:14px;display:flex}.drive-folder-icon{color:#f59e0b;background:#fffbeb;border-radius:13px;flex:none;place-items:center;width:42px;height:42px;display:grid}.drive-folder-main strong,.drive-folder-main small{display:block}.drive-folder-main small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;max-width:150px;margin-top:4px;overflow:hidden}.drive-card-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:10px;padding:8px 12px;display:flex}.drive-card-actions button{color:var(--blue);cursor:pointer;background:0 0;border:0;font-weight:800}.drive-card-actions .danger-link{color:var(--red)}.section-head h3{align-items:center;gap:8px;display:inline-flex}.drive-drop-zone{text-align:center;background:linear-gradient(135deg,#f8fbff,#eef4ff);border:2px dashed #93c5fd;border-radius:20px;place-items:center;gap:10px;margin-bottom:14px;padding:28px;display:grid}.drive-drop-zone h3,.drive-drop-zone p{margin:0}.drop-icon{width:58px;height:58px;color:var(--blue);box-shadow:var(--shadow);background:#fff;border-radius:20px;place-items:center;display:grid}.drive-upload-button{background:var(--blue);color:#fff;cursor:pointer;border-radius:999px;align-items:center;gap:8px;padding:10px 16px;font-weight:900;display:inline-flex}.drive-upload-button input{display:none}.selected-file-pill{border:1px solid var(--line);background:#f8fafc;border-radius:16px;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin:10px 0 14px;padding:12px;display:grid}.selected-file-pill p,.selected-file-pill strong{margin:0}.selected-file-pill p{color:var(--muted);font-size:13px}.form-stack{gap:14px;display:grid}.is-disabled{opacity:.65;pointer-events:none}@media (width<=980px){.drive-filter-bar{grid-template-columns:1fr 1fr}}@media (width<=640px){.toast-stack{top:10px;right:10px}.drive-toolbar{flex-direction:column}.drive-filter-bar,.drive-folder-grid{grid-template-columns:1fr}}.explorer-hero-card{border-bottom-right-radius:18px;border-bottom-left-radius:18px}.explorer-filter-bar{grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(150px,.7fr))}.explorer-card{padding:0;overflow:hidden}.explorer-title-row{border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;gap:14px;padding:18px 18px 12px;display:flex}.explorer-title-row h3,.explorer-title-row p{margin:0}.explorer-title-row h3{letter-spacing:-.01em;font-size:18px}.explorer-counts{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.explorer-counts span{border:1px solid var(--line);color:var(--muted);background:#f8fafc;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}.explorer-table{width:100%;overflow:auto}.explorer-row{border-bottom:1px solid #eef2f7;grid-template-columns:minmax(270px,1.8fr) minmax(120px,.7fr) minmax(170px,.9fr) minmax(145px,.8fr) minmax(165px,.75fr);align-items:center;gap:12px;min-width:920px;padding:11px 18px;display:grid}.explorer-head{color:#64748b;text-transform:uppercase;letter-spacing:.04em;z-index:1;background:#f8fafc;font-size:12px;font-weight:950;position:sticky;top:0}.explorer-item{transition:all .14s}.explorer-item:hover{background:#f8fbff}.explorer-item:last-child{border-bottom:0}.explorer-name{text-align:left;cursor:pointer;min-width:0;color:var(--text);background:0 0;border:0;align-items:center;gap:12px;padding:0;display:flex}.explorer-name strong,.explorer-name small{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.explorer-name strong{font-size:14px;font-weight:950}.explorer-name small{color:var(--muted);max-width:360px;margin-top:3px;font-size:12px}.explorer-icon{border-radius:11px;flex:none;place-items:center;width:38px;height:38px;display:grid}.explorer-folder-icon{color:#f59e0b;background:#fffbeb}.explorer-file-icon{color:var(--blue);background:#eef4ff}.explorer-cell{color:#475569;align-items:center;gap:6px;min-width:0;font-size:13px;font-weight:750;display:inline-flex}.status-cell{flex-wrap:wrap;gap:6px}.explorer-actions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.folder-row .explorer-name strong{color:#0f172a}.file-row .explorer-name strong{color:#1e293b}@media (width<=980px){.explorer-filter-bar{grid-template-columns:1fr 1fr}.explorer-table{border-top:1px solid var(--line)}.explorer-row{grid-template-columns:minmax(250px,1.7fr) minmax(110px,.7fr) minmax(155px,.9fr) minmax(135px,.8fr) minmax(150px,.75fr);min-width:820px}}@media (width<=640px){.explorer-filter-bar{grid-template-columns:1fr}.explorer-title-row{flex-direction:column;align-items:stretch}.explorer-counts{justify-content:flex-start}}html{-webkit-text-size-adjust:100%}body{overflow-x:hidden}img,video,canvas{max-width:100%}@media (width<=1180px){.app-shell{grid-template-columns:240px 1fr}.sidebar,.main{padding:18px}.stats-grid,.filter-grid,.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=900px){.grid-2{grid-template-columns:1fr}.hero-card{align-items:stretch}.hero-card h2{font-size:22px}.drive-toolbar{flex-direction:column;align-items:stretch}.drive-toolbar h2{font-size:23px}.drive-toolbar .actions-row{width:100%}.drive-toolbar .actions-row .btn{flex:150px}.selected-file-pill{grid-template-columns:auto 1fr}.selected-file-pill svg:last-child{display:none}}@media (width<=760px){:root{--shadow:0 8px 22px #0f172a12}.app-shell{min-height:100vh;display:block}.main{padding:12px 12px 94px}.sidebar{z-index:60;height:auto;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-bottom:0;border-right:0;position:fixed;inset:auto 0 0;box-shadow:0 -18px 40px #0f172a1a}.sidebar .brand,.sidebar .sidebar-user{display:none}.nav-list{scrollbar-width:none;-webkit-overflow-scrolling:touch;grid-template-columns:none;gap:6px;padding:2px 2px 4px;display:flex;overflow:auto hidden}.nav-list::-webkit-scrollbar{display:none}.nav-item{text-align:center;border-radius:14px;flex-direction:column;flex:none;justify-content:center;gap:4px;min-width:70px;padding:8px 7px;font-size:11px;line-height:1.1}.nav-item svg{width:18px;height:18px}.topbar{align-items:center;gap:10px;height:auto;margin:-2px 0 12px;padding:8px 0 4px}.topbar h1{font-size:22px}.topbar p{font-size:12px}.topbar .btn{padding:8px 10px}.page-stack{gap:12px}.card,.hero-card{border-radius:16px;padding:14px}.section-head,.section-head.compact,.detail-head{flex-direction:column;align-items:stretch}.actions-row,.pin-row{gap:8px}.actions-row .btn,.pin-row .btn{flex:auto}.btn{min-height:42px;padding:10px 12px}.btn-sm{min-height:36px}input,select,textarea{min-height:44px;padding:11px 12px}.muted{line-height:1.4}.modal-backdrop,.dialog-backdrop{align-items:end;padding:10px}.modal,.dialog{border-radius:20px 20px 14px 14px;width:100%;max-height:calc(100vh - 24px)}.modal-head,.modal-footer,.modal-body{padding:14px}.modal-footer{flex-wrap:wrap}.modal-footer .btn,.dialog-actions .btn{flex:auto}.toast-stack{width:auto;top:10px;left:10px;right:10px}}@media (width<=640px){.auth-page{align-items:start;padding:32px 12px 12px}.auth-card{border-radius:20px;padding:20px}.auth-brand h1{font-size:19px}.auth-title h2{font-size:20px}.auth-links{flex-wrap:wrap;gap:10px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{border-radius:15px;align-items:center;gap:10px;padding:12px}.stat-icon{border-radius:12px;width:38px;height:38px}.stat-card p{font-size:11px;line-height:1.25}.stat-card h3{margin-top:2px;font-size:21px}.stat-card small{display:none}.filter-grid,.detail-grid{grid-template-columns:1fr;gap:10px}.file-card{border-radius:14px;flex-direction:column;gap:10px}.file-mark{width:40px;height:40px}.file-title-row h3{font-size:15px}.file-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;display:grid}.file-actions .btn{width:100%}.detail-grid p{padding:10px}.ledger-row{border-radius:14px;flex-direction:column;align-items:stretch;gap:8px}.ledger-row div:last-child{text-align:left}.entry-row{flex-direction:column;align-items:stretch}.day-group{padding:12px}.table-wrap{margin-inline:-2px}th,td{padding:10px;font-size:13px}.camera-box{border-radius:14px;min-height:220px}.camera-box video{max-height:320px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-preview img{height:118px}.photo-preview div{flex-direction:column;align-items:stretch}.drive-drop-zone{border-radius:16px;padding:20px 14px}.drop-icon{border-radius:16px;width:48px;height:48px}.drive-upload-button{justify-content:center;width:100%}.selected-file-pill{grid-template-columns:1fr;align-items:start}.breadcrumbs{font-size:13px}.search-input{border-radius:14px;min-height:44px}}@media (width<=520px){.explorer-card{box-shadow:none;background:0 0;border:0;padding:0;overflow:visible}.explorer-title-row{border:1px solid var(--line);border-radius:16px;margin-bottom:10px;padding:12px}.explorer-table{background:0 0;border-top:0;gap:10px;display:grid;overflow:visible}.explorer-head{display:none}.explorer-row,.explorer-row[role=row]{border:1px solid var(--line);min-width:0;box-shadow:var(--shadow);background:#fff;border-radius:16px;grid-template-columns:1fr;gap:9px;margin:0;padding:12px;display:grid}.explorer-name{align-items:flex-start;width:100%}.explorer-name strong{white-space:normal;line-height:1.25}.explorer-name small{white-space:normal;max-width:100%;line-height:1.3}.explorer-icon{border-radius:10px;width:36px;height:36px}.explorer-cell{color:#64748b;flex-wrap:wrap;font-size:12px;font-weight:800}.status-cell{gap:5px}.explorer-actions{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;gap:8px;display:grid}.explorer-actions .btn{width:100%}.explorer-counts span{padding:6px 8px}.drive-filter-bar,.explorer-filter-bar{gap:10px}}@media (width<=380px){.main{padding-inline:10px}.stats-grid,.photo-grid,.file-actions,.explorer-actions{grid-template-columns:1fr}.nav-item{min-width:64px;font-size:10px}}.upload-modal{width:min(1120px,100%)}.upload-modal .modal-body{padding:16px}.upload-embedded{gap:14px}.upload-inline-head{border:1px solid var(--line);background:linear-gradient(135deg,#fff,#f8fbff);border-radius:18px;justify-content:space-between;align-items:flex-start;gap:14px;padding:16px;display:flex}.upload-inline-head h2,.upload-inline-head p{margin:0}.upload-inline-head h2{letter-spacing:-.02em;font-size:22px}@media (width<=900px){.upload-inline-head{flex-direction:column;align-items:stretch}}.upload-location-pill{border:1px solid var(--line);background:#f8fbff;border-radius:14px;gap:4px;padding:12px 14px;display:grid}.upload-location-pill span{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:900}.upload-location-pill strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}@media (width<=900px){.explorer-card{box-shadow:none;background:0 0;border:0;padding:0;overflow:visible}.explorer-title-row{border:1px solid var(--line);background:#fff;border-radius:16px;margin-bottom:10px;padding:12px}.explorer-table{background:0 0;border-top:0;gap:10px;display:grid;overflow:visible}.explorer-head{display:none!important}.explorer-row,.explorer-row[role=row]{border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;border-radius:16px;gap:9px;margin:0;padding:12px;grid-template-columns:1fr!important;min-width:0!important;display:grid!important}.explorer-name{align-items:flex-start;width:100%}.explorer-name strong{white-space:normal;line-height:1.25}.explorer-name small{white-space:normal;max-width:100%;line-height:1.3}.explorer-icon{border-radius:10px;width:36px;height:36px}.explorer-cell{color:#64748b;border-top:1px dashed #e2e8f0;flex-wrap:wrap;justify-content:space-between;width:100%;padding-top:8px;font-size:12px;font-weight:800}.explorer-cell:nth-child(2):before{content:"Type";color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;font-weight:950}.explorer-cell:nth-child(3):before{content:"Expiry / Location";color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;font-weight:950}.explorer-cell:nth-child(4):before{content:"Status";color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;font-weight:950}.status-cell{justify-content:flex-start;gap:5px}.status-cell:before{margin-right:auto}.explorer-actions{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;gap:8px;display:grid}.explorer-actions .btn{width:100%}.explorer-counts span{padding:6px 8px}}.upload-root-warning{color:#92400e;background:#fffbeb;border:1px dashed #f59e0b;border-radius:14px;padding:12px 14px;font-weight:700;line-height:1.45}.drive-upload-button.is-disabled{opacity:.55;cursor:not-allowed;pointer-events:none}.camera-app-shell{background:#020617;border:1px solid #111827;border-radius:24px;overflow:hidden;box-shadow:0 26px 70px #02061747}.camera-topbar{color:#fff;background:linear-gradient(#0f172afa,#0f172ab8);justify-content:space-between;align-items:center;gap:12px;min-height:62px;padding:14px 16px;display:flex}.camera-topbar strong,.camera-topbar span{display:block}.camera-topbar strong{letter-spacing:.01em;font-size:15px}.camera-topbar span{color:#94a3b8;margin-top:3px;font-size:12px}.camera-top-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.camera-top-actions button,.camera-tool{color:#fff;cursor:pointer;background:#ffffff14;border:1px solid #ffffff24;border-radius:999px;justify-content:center;align-items:center;gap:7px;padding:9px 12px;font-weight:850;display:inline-flex}.camera-top-actions button:hover,.camera-top-actions button.is-active,.camera-tool:hover{background:#2563ebeb;border-color:#93c5fdbf}.camera-top-actions button:disabled,.camera-tool:disabled,.camera-shutter:disabled{opacity:.48;cursor:not-allowed}.camera-viewfinder{background:radial-gradient(circle at 50% 30%,#1e293b,#020617 68%);place-items:center;min-height:430px;display:grid;position:relative;overflow:hidden}.camera-viewfinder video{object-fit:cover;background:#020617;width:100%;height:100%;position:absolute;inset:0}.camera-viewfinder video.mirror-preview{transform:scaleX(-1)}.camera-start-state{z-index:3;color:#e2e8f0;text-align:center;justify-items:center;gap:7px;padding:24px;display:grid;position:relative}.camera-start-state span{color:#94a3b8;font-size:13px}.scan-frame{z-index:2;pointer-events:none;border:1px solid #ffffff38;border-radius:24px;position:absolute;inset:42px 34px;box-shadow:0 0 0 999px #02061761,inset 0 0 40px #2563eb1a}.scan-frame span{border-color:#60a5fa;width:48px;height:48px;position:absolute}.scan-frame span:first-child{border-top:5px solid;border-left:5px solid;border-top-left-radius:24px;top:-2px;left:-2px}.scan-frame span:nth-child(2){border-top:5px solid;border-right:5px solid;border-top-right-radius:24px;top:-2px;right:-2px}.scan-frame span:nth-child(3){border-bottom:5px solid;border-left:5px solid;border-bottom-left-radius:24px;bottom:-2px;left:-2px}.scan-frame span:nth-child(4){border-bottom:5px solid;border-right:5px solid;border-bottom-right-radius:24px;bottom:-2px;right:-2px}.camera-hint{z-index:3;color:#e2e8f0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);white-space:nowrap;background:#0f172ab8;border:1px solid #ffffff1f;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:800;position:absolute;bottom:18px;left:50%;transform:translate(-50%)}.camera-controls{background:#020617;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:16px;display:grid}.camera-tool{min-height:48px}.camera-shutter{cursor:pointer;background:0 0;border:4px solid #e2e8f0;border-radius:999px;place-items:center;width:72px;height:72px;display:grid;box-shadow:0 0 0 6px #ffffff1a}.camera-shutter span{background:#fff;border-radius:999px;width:52px;height:52px;display:block}.camera-shutter:hover span{background:#dbeafe}.camera-roll{border:1px solid var(--line);background:#f8fafc;border-radius:18px;margin-top:14px;padding:12px}.camera-roll-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.camera-roll-head span{color:var(--muted);font-size:13px;font-weight:700}.scanner-roll-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.scanner-photo img{object-fit:cover;background:#020617;height:170px}.scanner-photo div{align-items:center}@media (width<=640px){.camera-app-shell{border-radius:20px;margin-left:-2px;margin-right:-2px}.camera-topbar{flex-direction:column;align-items:flex-start}.camera-top-actions{grid-template-columns:1fr 1fr;width:100%;display:grid}.camera-viewfinder{min-height:58vh}.scan-frame{border-radius:20px;inset:44px 18px 58px}.camera-controls{grid-template-columns:1fr auto 1fr;gap:10px;padding:13px}.camera-tool{min-height:44px;padding:8px 9px;font-size:12px}.camera-shutter{width:66px;height:66px}.camera-shutter span{width:48px;height:48px}.camera-hint{text-overflow:ellipsis;max-width:calc(100% - 32px);bottom:15px;overflow:hidden}.scanner-roll-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scanner-photo img{height:140px}}
