:root{--primary: #00a761;--primary-dark: #006d3d;--primary-soft: #e7f7ef;--secondary: #00239f;--bg: #f5f6fa;--surface: #ffffff;--surface-hover: #f9fafb;--surface-alt: #f2f3f7;--text: #181818;--text-muted: #5b6470;--text-faint: #8a929e;--border: #e5e7eb;--border-input: #d1d5db;--danger: #e5484d;--danger-soft: #fdecec;--radius-sm: 6px;--radius: 8px;--radius-lg: 12px;--radius-xl: 16px;--sidebar-w: 260px;--shadow-1: 0 4px 12px rgba(0, 0, 0, .04);--shadow-2: 0 8px 24px rgba(0, 0, 0, .08);--shadow-toast: 0 12px 32px rgba(0, 0, 0, .18)}*{box-sizing:border-box;margin:0}html,body,#root{height:100%}body{font-family:Inter,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-size:14px;line-height:1.45}button{font-family:inherit;cursor:pointer}img{display:block}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;height:42px;border-radius:var(--radius);font-size:14px;font-weight:600;border:1px solid transparent;white-space:nowrap;transition:background .15s,color .15s,border-color .15s,opacity .15s}.btn svg{width:18px;height:18px}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-outline{background:var(--surface);color:var(--primary);border-color:var(--primary)}.btn-outline:hover{background:var(--primary-soft)}.btn-ghost{background:transparent;color:var(--text-muted);border-color:transparent}.btn-ghost:hover{background:var(--surface-alt);color:var(--text)}.btn-danger{background:var(--danger-soft);color:var(--danger)}.btn-danger:hover{background:#f9d7d8}.btn-sm{height:34px;padding:0 12px;font-size:13px}.btn:disabled{opacity:.45;cursor:not-allowed}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text-muted);position:relative}.icon-btn:hover{background:var(--surface-alt);color:var(--text)}.icon-btn svg{width:18px;height:18px}.icon-btn .dot{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--primary);border:1.5px solid var(--surface)}.upload-btn{cursor:pointer}.upload-btn input[type=file]{display:none}.layout{display:flex;min-height:100vh}.sidebar{width:var(--sidebar-w);flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:24px 16px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 24px}.brand .logo-mark{width:40px;height:40px;border-radius:var(--radius);background:var(--primary);color:#fff;display:grid;place-items:center;flex-shrink:0}.brand .logo-mark svg{width:22px;height:22px}.brand-name{font-size:18px;font-weight:700;color:var(--primary-dark);line-height:1.1}.brand-sub{font-size:12px;color:var(--text-muted)}.nav{display:flex;flex-direction:column;gap:4px}.nav-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:var(--radius);border:none;background:transparent;color:var(--text-muted);font-size:15px;font-weight:500;text-align:left;width:100%;position:relative}.nav-item svg{width:20px;height:20px}.nav-item:hover{background:var(--surface-alt);color:var(--text)}.nav-item.active{background:var(--primary-soft);color:var(--primary-dark);font-weight:600}.nav-item.active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:4px;border-radius:0 4px 4px 0;background:var(--primary)}.sidebar-footer{margin-top:auto;display:flex;flex-direction:column;gap:4px;padding-top:16px}.sidebar-user{display:flex;align-items:center;gap:10px;padding:12px 14px 0;margin-top:8px;border-top:1px solid var(--border)}.avatar{width:36px;height:36px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:600;font-size:13px;flex-shrink:0}.sidebar-user .who{font-size:13px;font-weight:600}.sidebar-user .who small{display:block;font-weight:400;color:var(--text-muted)}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:16px;padding:20px 32px;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:5}.topbar h1{font-size:24px;font-weight:600;letter-spacing:-.01em}.topbar .breadcrumb{font-size:12px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--text-faint);margin-bottom:2px}.topbar .breadcrumb .here{color:var(--primary)}.topbar .subtitle{font-size:13px;color:var(--text-muted);margin-top:2px}.topbar .spacer{flex:1}.topbar-actions{display:flex;align-items:center;gap:10px}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:var(--radius-full, 999px);background:var(--primary-soft);color:var(--primary-dark);font-size:12px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}.status-pill svg{width:14px;height:14px}.content{padding:24px 32px 48px;flex:1}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-1)}.toolbar-card{display:flex;align-items:center;gap:16px;padding:16px 20px;margin-bottom:20px;flex-wrap:wrap}.toolbar-card .grow{flex:1}.divider-v{width:1px;align-self:stretch;background:var(--border);margin:2px 4px}.hint{font-size:12px;color:var(--text-muted);font-style:italic}.table-card{overflow:hidden}table{width:100%;border-collapse:collapse}thead th{text-align:left;padding:14px 20px;font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-faint);border-bottom:1px solid var(--border);background:var(--surface-alt)}tbody td{padding:14px 20px;border-bottom:1px solid var(--border);vertical-align:middle}tbody tr:last-child td{border-bottom:none}tbody tr:hover td{background:var(--surface-hover)}tbody tr.editing td{background:var(--primary-soft)}.col-actions{text-align:right;white-space:nowrap}.col-actions .btn{margin-left:8px}td.url-cell{font-size:12px;color:var(--text-faint);font-family:ui-monospace,SF Mono,Menlo,monospace;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logo-thumb{width:52px;height:52px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-alt);display:grid;place-items:center;overflow:hidden}.logo-thumb img{max-width:100%;max-height:100%;object-fit:contain}.logo-thumb.drop{border-style:dashed;color:var(--text-faint);cursor:pointer}.logo-thumb.drop:hover{border-color:var(--primary);color:var(--primary)}.logo-thumb.drop svg{width:20px;height:20px}.pill{display:inline-block;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:.01em}.field{width:100%;height:40px;padding:0 12px;border:1px solid var(--border-input);border-radius:var(--radius);font-family:inherit;font-size:14px;background:var(--surface);color:var(--text);outline:none}.field:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}select.field{cursor:pointer}tr.add-row td{background:var(--surface-hover)}.empty-state{text-align:center;padding:48px 20px;color:var(--text-muted)}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-top:20px}.stat{padding:20px 22px}.stat .label{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-faint)}.stat .value{font-size:30px;font-weight:700;margin-top:8px;letter-spacing:-.02em}.stat .value small{font-size:14px;font-weight:500;color:var(--text-muted);margin-left:4px}.hall-grid{display:grid;grid-template-columns:280px 1fr;gap:20px;align-items:start}.info-card{padding:22px}.info-card h3{font-size:18px;font-weight:600;margin-bottom:16px}.info-row{margin-bottom:14px}.info-row .k{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-faint)}.info-row .v{font-size:15px;font-weight:600;margin-top:2px}.meter{height:8px;border-radius:999px;background:var(--surface-alt);overflow:hidden;margin:6px 0 8px}.meter span{display:block;height:100%;background:var(--primary);border-radius:999px}.pdf-panel{padding:20px}.pdf-panel .pdf-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.pdf-panel .pdf-head .fname{display:flex;align-items:center;gap:8px;font-weight:600}.pdf-panel .pdf-head .fname svg{width:18px;height:18px;color:var(--text-muted)}.pdf-panel a.download{color:var(--primary);font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:6px}.pdf-panel a.download svg{width:16px;height:16px}.pdf-frame{width:100%;height:70vh;border:1px solid var(--border);border-radius:var(--radius)}.dropzone{border:2px dashed var(--border-input);border-radius:var(--radius-lg);padding:56px 24px;text-align:center;color:var(--text-muted);transition:border-color .15s,background .15s}.dropzone.over{border-color:var(--primary);background:var(--primary-soft)}.history-list{display:flex;flex-direction:column}.history-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.history-item:last-child{border-bottom:none}.history-item .h-icon{width:38px;height:38px;border-radius:var(--radius);background:var(--surface-alt);color:var(--text-muted);display:grid;place-items:center;flex-shrink:0}.history-item .h-icon svg{width:18px;height:18px}.history-item .h-meta{flex:1;min-width:0}.history-item .h-name{font-weight:600;display:flex;align-items:center;gap:8px}.history-item .h-date{font-size:12px;color:var(--text-muted);margin-top:2px}.badge-current{font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--primary-dark);background:var(--primary-soft);padding:2px 8px;border-radius:999px}.history-item .h-actions{display:flex;gap:6px;flex-shrink:0}.dropzone .up-circle{width:64px;height:64px;border-radius:50%;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;margin:0 auto 16px}.dropzone .up-circle svg{width:26px;height:26px}.dropzone h4{font-size:18px;font-weight:600;color:var(--text);margin-bottom:6px}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,#eaf6f0,var(--bg) 60%);padding:24px}.login-inner{width:100%;max-width:400px;text-align:center}.login-logo{width:64px;height:64px;border-radius:var(--radius-lg);background:var(--primary);color:#fff;display:grid;place-items:center;margin:0 auto 20px;box-shadow:var(--shadow-2)}.login-logo svg{width:32px;height:32px}.login-inner h1{font-size:32px;font-weight:700;letter-spacing:-.02em}.login-inner .tagline{color:var(--text-muted);font-size:16px;margin-top:2px;margin-bottom:28px}.login-card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-2);padding:28px;text-align:left}.form-group{margin-bottom:18px}.form-group .row{display:flex;align-items:center;justify-content:space-between}.form-group label{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);display:block;margin-bottom:8px}.form-group .link{font-size:13px;font-weight:600;color:var(--primary);background:none;border:none;padding:0}.input-wrap{position:relative;display:flex;align-items:center}.input-wrap>svg.lead{position:absolute;left:12px;width:18px;height:18px;color:var(--text-faint);pointer-events:none}.input-wrap .field{padding-left:40px}.input-wrap .toggle{position:absolute;right:10px;background:none;border:none;color:var(--text-faint);display:grid;place-items:center;padding:4px}.input-wrap .toggle svg{width:18px;height:18px}.login-card .btn{width:100%;height:48px;margin-top:4px}.login-error{color:var(--danger);font-size:13px;margin-top:12px;text-align:center}.login-footer{display:flex;justify-content:center;gap:24px;margin-top:24px;color:var(--text-muted);font-size:13px}.login-footer span{display:inline-flex;align-items:center;gap:6px}.login-footer svg{width:15px;height:15px}.toast-wrap{position:fixed;bottom:24px;right:24px;display:flex;flex-direction:column;gap:10px;z-index:100}.toast{display:flex;align-items:center;gap:12px;background:#1e2124;color:#fff;padding:12px 16px;border-radius:var(--radius);box-shadow:var(--shadow-toast);min-width:260px;animation:toast-in .2s ease}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.toast .ic{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.toast.success .ic{background:var(--primary)}.toast.error .ic{background:var(--danger)}.toast .ic svg{width:14px;height:14px}.toast .msg{flex:1;font-size:14px}.toast .close{background:none;border:none;color:#9aa0a6;padding:2px;display:grid;place-items:center}.toast .close svg{width:16px;height:16px}.page-footer{display:flex;justify-content:space-between;padding:16px 32px;border-top:1px solid var(--border);color:var(--text-faint);font-size:13px}.page-footer .links{display:flex;gap:20px}@media (max-width: 900px){.sidebar{width:72px;padding:20px 10px}.brand-text,.nav-item span,.sidebar-user .who{display:none}.brand,.nav-item{justify-content:center}.hall-grid{grid-template-columns:1fr}.topbar,.content,.page-footer{padding-left:20px;padding-right:20px}}
