.keyboard-hud{position:fixed;bottom:0;left:0;right:0;height:36px;background:#0f1117eb;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-family:var(--font-mono);font-size:.75rem;z-index:200;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.keyboard-hud-left{color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.keyboard-hud-right{display:flex;gap:12px;align-items:center;flex-shrink:0;overflow-x:auto}.keyboard-hud-binding{display:flex;align-items:center;gap:4px;white-space:nowrap}.keyboard-hud-binding kbd{display:inline-block;padding:1px 6px;border-radius:3px;background:var(--surface);border:1px solid var(--border);color:var(--primary);font-family:var(--font-mono);font-size:.7rem;font-weight:600;line-height:1.4}.keyboard-hud-binding span{color:var(--text-muted)}.keyboard-hud-muted{color:var(--text-muted);font-style:italic}*{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0f1117;--surface: #1a1d27;--surface-hover: #222632;--border: #2e3345;--text: #e4e7ef;--text-muted: #8b90a0;--primary: #6c8cff;--primary-hover: #5a7af0;--danger: #ff5c5c;--danger-hover: #e04848;--success: #4cdb8a;--warning: #ffb84d;--radius: 8px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace}html,body{font-family:var(--font);background:var(--bg);color:var(--text);min-height:100vh;font-size:16px;line-height:1.5}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}button{font-family:var(--font);cursor:pointer;border:none;border-radius:var(--radius);padding:10px 20px;font-size:1rem;font-weight:500;transition:background .15s}button.primary{background:var(--primary);color:#fff}button.primary:hover{background:var(--primary-hover)}button.danger{background:var(--danger);color:#fff}button.danger:hover{background:var(--danger-hover)}button.secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}button.secondary:hover{background:var(--surface-hover)}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{font-family:var(--font);font-size:1rem;padding:10px 14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);outline:none;transition:border-color .15s}input:focus,select:focus,textarea:focus{border-color:var(--primary)}textarea{resize:vertical;line-height:1.5}.layout{max-width:960px;margin:0 auto;padding:16px 16px 52px}.layout-header{display:flex;align-items:center;justify-content:space-between;padding:12px 0;margin-bottom:24px;border-bottom:1px solid var(--border)}.layout-header h1{font-size:1.5rem;font-weight:700}.layout-header h1 a{color:var(--text)}.layout-header h1 a:hover{text-decoration:none;color:var(--primary)}.header-user{display:flex;align-items:center;gap:12px}.header-username{color:var(--text-muted);font-size:.9rem}.header-admin-link{font-size:.85rem;color:var(--primary)}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:16px;flex-wrap:wrap}.page-header h2{font-size:1.3rem;font-weight:600}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;transition:border-color .15s}.card:hover{border-color:var(--primary)}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--border)}th{color:var(--text-muted);font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}tr:hover td{background:var(--surface-hover)}.height{font-family:var(--font-mono);font-size:1.2rem;font-weight:600;color:var(--success)}.height-na{color:var(--text-muted);font-style:italic}.form-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.form-group{display:flex;flex-direction:column;gap:4px}.form-group label{font-size:.85rem;color:var(--text-muted);font-weight:500}.checkbox-label{display:flex;align-items:center;gap:6px;font-size:.9rem;cursor:pointer;color:var(--text)}.checkbox-label input[type=checkbox]{width:18px;height:18px;padding:0;cursor:pointer;accent-color:var(--primary);outline:none}.checkbox-label input[type=checkbox]:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.checkbox-label:has(input:focus-visible){color:var(--primary)}.status-badge{display:inline-block;font-size:.7rem;font-weight:600;padding:2px 6px;border-radius:4px;margin-right:6px;vertical-align:middle;text-transform:uppercase;letter-spacing:.03em}.badge-auto{background:#6c8cff33;color:var(--primary)}.badge-dead{background:#ff5c5c33;color:var(--danger)}.badge-muled{background:#ffb84d33;color:var(--warning)}.badge-in-wt{background:#4cdb8a33;color:var(--success)}.badge-out-wt{background:#ff5c5c26;color:var(--danger)}.badge-chain{background:#b482ff33;color:#b482ff}.badge-manual{background:#64c8dc33;color:#64c8dc}.dropdown{position:relative;display:inline-block}.dropdown-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:1.4rem;line-height:1;padding:0}.dropdown-menu{position:absolute;right:0;top:100%;margin-top:4px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:4px 0;min-width:160px;z-index:50;box-shadow:0 4px 12px #0000004d}.dropdown-menu button{display:block;width:100%;text-align:left;padding:8px 16px;font-size:.9rem;border-radius:0;background:transparent;color:var(--text);border:none}.dropdown-menu button:hover{background:var(--surface-hover)}.role-badge{display:inline-block;font-size:.75rem;font-weight:600;padding:2px 8px;border-radius:4px;text-transform:uppercase}.role-admin{background:#6c8cff33;color:var(--primary)}.role-user{background:#8b90a033;color:var(--text-muted)}.history-list{display:flex;flex-direction:column;gap:8px}.history-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:16px}.history-item.current{border-color:var(--primary)}.history-meta{color:var(--text-muted);font-size:.85rem}.reverted-badge{font-size:.75rem;background:var(--warning);color:#000;padding:2px 8px;border-radius:4px;font-weight:600}.breadcrumb{font-size:.9rem;color:var(--text-muted);margin-bottom:16px}.breadcrumb a{color:var(--text-muted)}.breadcrumb a:hover{color:var(--primary)}.loading{text-align:center;padding:40px;color:var(--text-muted)}.error{background:#ff5c5c1a;border:1px solid var(--danger);border-radius:var(--radius);padding:12px 16px;color:var(--danger);margin-bottom:16px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;max-width:480px;width:90%}.modal h3{margin-bottom:12px}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}.search-bar{display:flex;align-items:center;gap:8px;margin-bottom:16px}.search-bar input{flex:1;padding:8px 14px}.search-bar kbd{display:inline-block;padding:1px 6px;border-radius:3px;background:var(--surface);border:1px solid var(--border);color:var(--text-muted);font-family:var(--font-mono);font-size:.7rem}.card.selected{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}tr.selected td{background:var(--surface-hover);box-shadow:inset 3px 0 0 var(--primary)}.help-modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;max-width:640px;width:90%;max-height:80vh;overflow-y:auto}.help-modal h2{font-size:1.3rem}.help-sections{display:grid;grid-template-columns:1fr 1fr;gap:20px}.help-section h3{font-size:.9rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid var(--border)}.help-bindings{display:flex;flex-direction:column;gap:4px}.help-binding-row{display:flex;align-items:center;gap:10px;font-size:.9rem}.help-binding-row kbd{display:inline-block;min-width:48px;text-align:center;padding:2px 8px;border-radius:3px;background:var(--bg);border:1px solid var(--border);color:var(--primary);font-family:var(--font-mono);font-size:.75rem;font-weight:600;flex-shrink:0}.help-binding-row span{color:var(--text)}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:32px;width:100%;max-width:400px}.login-card h1{font-size:2rem;font-weight:700;color:var(--primary);margin-bottom:4px}.login-card input{width:100%}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.dashboard-card{display:flex;align-items:center;gap:16px;padding:20px;text-decoration:none!important;color:var(--text)}.dashboard-card:hover{border-color:var(--primary)}.dashboard-card-icon{font-size:2rem;flex-shrink:0}.dashboard-card-content h3{font-size:1.1rem;font-weight:600;margin-bottom:2px}.dashboard-card-content p{font-size:.85rem;color:var(--text-muted)}.theater-info-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.theater-info-item{display:flex;flex-direction:column;gap:2px}.theater-info-label{font-size:.8rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.theater-info-value{font-family:var(--font-mono);font-size:1.1rem;font-weight:600;color:var(--success)}.notes-editor{display:flex;flex-direction:column;gap:8px}.notes-fullpage{width:100%;min-height:400px}.notes-status{font-size:.85rem;text-align:right}.file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.file-card{display:flex;flex-direction:column;gap:8px}.file-preview{height:140px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:4px;background:var(--bg)}.file-preview img{max-width:100%;max-height:100%;object-fit:contain}.file-pdf-icon{display:flex;align-items:center;justify-content:center;width:80px;height:100px;background:#ff5c5c1a;border:2px solid var(--danger);border-radius:8px;font-weight:700;font-size:1.2rem;color:var(--danger);text-decoration:none!important}.file-info{flex:1}.file-name{font-size:.85rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta{font-size:.75rem;color:var(--text-muted)}.limits-inline{margin-top:4px}.limits-strip{display:flex;align-items:center;gap:16px;font-size:.8rem;color:var(--text-muted)}.limits-label{font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);flex-shrink:0}.limits-item{white-space:nowrap}.limit-ok{color:var(--success);font-weight:700}.limit-no{color:var(--danger);font-weight:700}.limit-val{font-family:var(--font-mono);color:var(--text);font-weight:500}.add-set-btn{display:flex;align-items:center;justify-content:center;width:100%;margin-top:4px;padding:6px 0;font-size:1.2rem;font-weight:300;color:var(--text-muted);background:transparent;border:1px dashed var(--border);border-radius:var(--radius);cursor:pointer;transition:all .15s}.add-set-btn:hover{color:var(--primary);border-color:var(--primary);background:#6c8cff0d}.add-set-form{margin-top:4px;margin-bottom:0}.set-badges{display:flex;gap:4px;margin-bottom:4px}.set-badges .status-badge{font-size:.65rem;padding:1px 6px;margin-right:0}.set-title-row{display:flex;align-items:baseline;gap:10px}.set-title-number{font-size:1.4rem;font-weight:700;font-family:var(--font-mono);color:var(--text-muted);flex-shrink:0}.set-title-name{font-size:1.3rem;font-weight:600}.set-title-name.editable{cursor:pointer;border-bottom:1px dashed var(--border);padding-bottom:1px}.set-title-name.editable:hover{color:var(--primary);border-color:var(--primary)}.set-title-input{font-size:1.3rem;font-weight:600;padding:2px 8px;border:1px solid var(--primary);background:var(--bg);color:var(--text);border-radius:var(--radius);flex:1;min-width:0}.set-name-cell{line-height:1.3}.set-name-top{display:flex;align-items:center;gap:4px}.set-name-link{font-size:1rem;font-weight:500;margin-left:4px}.set-name-sub{display:flex;align-items:center;gap:4px;margin-top:2px}.set-weight{font-size:.8rem;color:var(--text-muted);white-space:nowrap}.row-badge{display:inline-block;font-size:.6rem;font-weight:600;padding:1px 5px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;line-height:1.4;flex-shrink:0}.set-number{font-family:var(--font-mono);font-weight:600;font-size:.9rem;color:var(--text-muted);white-space:nowrap;padding-right:4px}.fuzzy-finder{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:90%;max-width:480px;max-height:70vh;display:flex;flex-direction:column;box-shadow:0 8px 32px #00000080;overflow:hidden}.fuzzy-title{padding:12px 16px 0;font-size:.85rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.fuzzy-input{margin:12px 16px;padding:10px 14px;font-size:1rem;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);outline:none}.fuzzy-input:focus{border-color:var(--primary)}.fuzzy-results{flex:1;overflow-y:auto;padding:0 8px 8px;max-height:50vh}.fuzzy-item{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:6px;cursor:pointer;transition:background .1s}.fuzzy-item:hover,.fuzzy-item.active{background:var(--surface-hover)}.fuzzy-item.active{box-shadow:inset 3px 0 0 var(--primary)}.fuzzy-item-label{font-weight:500;color:var(--text)}.fuzzy-item-sub{font-size:.85rem;color:var(--text-muted)}.fuzzy-item mark{background:transparent;color:var(--primary);font-weight:700}.fuzzy-empty{padding:20px 16px;text-align:center;color:var(--text-muted);font-size:.9rem}.fuzzy-hint{padding:8px 16px;border-top:1px solid var(--border);font-size:.75rem;color:var(--text-muted);display:flex;align-items:center;gap:8px}.fuzzy-hint kbd{display:inline-block;padding:1px 5px;border-radius:3px;background:var(--bg);border:1px solid var(--border);color:var(--text-muted);font-family:var(--font-mono);font-size:.7rem}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.spot-sheet-plot-container{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;width:100vw;max-width:1600px;position:relative;left:50%;transform:translate(-50%);box-sizing:border-box;min-height:300px}.plot-resize-handle{position:absolute;top:0;left:0;right:0;height:6px;cursor:ns-resize;z-index:10;background:transparent}.plot-resize-handle:hover,.plot-resize-handle:active{background:var(--primary);opacity:.5}.point-info-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px;margin-bottom:12px}.point-info-row{display:flex;align-items:center;gap:12px;margin-bottom:8px}.point-info-label{font-size:.95rem}.point-info-details{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:.85rem}.point-info-field{display:flex;align-items:flex-start;gap:6px}.point-info-field-label{color:var(--text-muted);font-size:.8rem;white-space:nowrap}.spot-sheet-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.spot-sheet-legend-item{display:flex;align-items:center;gap:6px;font-size:.8rem;color:var(--text-muted)}.spot-sheet-legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.rp-badge{display:inline-flex;align-items:center;flex-wrap:wrap;gap:2px 4px;font-size:.78rem;font-weight:600;padding:3px 8px;border-radius:6px}.rp-badge-label{display:inline-flex;align-items:center;gap:5px;font-size:.85rem;font-weight:600;padding:3px 10px;border-radius:6px;white-space:nowrap}.rp-badge-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.rp-badge-sub{font-weight:500;opacity:.7;font-size:.72rem;width:100%}.direction-toggle{display:inline-flex;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.direction-toggle button{padding:6px 12px;font-size:.85rem;font-weight:600;border-radius:0;background:var(--surface);color:var(--text-muted);border:none;border-right:1px solid var(--border)}.direction-toggle button:last-child{border-right:none}.direction-toggle button.active{background:var(--primary);color:#fff}.dxf-drop-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:60px 24px;border:2px dashed var(--border);border-radius:var(--radius);background:var(--surface);cursor:pointer;transition:border-color .15s,background .15s}.dxf-drop-zone:hover,.dxf-drop-zone.drag-over{border-color:var(--primary);background:#6c8cff0d}.dxf-drop-icon{font-size:3rem;color:var(--text-muted)}.dxf-drop-title{font-size:1.2rem;font-weight:600}.dxf-drop-hint{font-size:.9rem;color:var(--text-muted)}.dxf-viewer-wrap{position:relative;width:100%;height:100%}.dxf-viewer-wrap svg{background:var(--bg)}.dxf-controls{position:absolute;bottom:12px;right:12px;display:flex;gap:6px}.dxf-controls button{padding:6px 14px;font-size:.85rem}.dxf-controls button.active{background:var(--primary);color:#fff;border-color:var(--primary)}.dxf-coords{position:absolute;bottom:12px;left:12px;font-family:var(--font-mono);font-size:.8rem;color:var(--text);background:#0f1117bf;padding:4px 10px;border-radius:4px;pointer-events:none;white-space:nowrap}.dxf-info-bar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:20px;padding:8px 16px;background:#111318eb;border-bottom:1px solid var(--border);font-size:.85rem;pointer-events:none;z-index:15}.dxf-info-set{color:var(--text-muted);font-family:var(--font-mono);font-weight:600;min-width:20px}.dxf-info-label{font-size:1rem;font-weight:700}.dxf-info-type{font-weight:600}.dxf-info-sub{display:block;font-size:.75rem;font-weight:500;opacity:.7}.dxf-info-field{display:flex;flex-direction:column;gap:1px;color:var(--success);font-family:var(--font-mono);font-size:.82rem}.dxf-info-dim{font-family:var(--font);font-size:.7rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.dxf-info-note{color:var(--text-muted);font-style:italic}.dxf-pick-popup{position:absolute;pointer-events:none;z-index:20;background:#111318eb;border:1px solid var(--border);border-radius:var(--radius);padding:4px 10px;font-family:var(--font-mono);font-size:.82rem;color:var(--success);white-space:nowrap;box-shadow:0 4px 12px #0006;display:flex;gap:12px}.dxf-pick-pl{color:var(--text-muted)}.dxf-layers-panel{position:absolute;top:8px;left:8px;bottom:8px;width:220px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);z-index:20;display:flex;flex-direction:column;box-shadow:0 4px 12px #0000004d}.dxf-layers-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border);flex-shrink:0}.dxf-layers-list{overflow-y:auto;padding:8px;flex:1}.dxf-layer-item{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:4px;cursor:pointer;font-size:.85rem}.dxf-layer-item:hover{background:var(--surface-hover)}.dxf-layer-item input[type=checkbox]{width:16px;height:16px;padding:0;flex-shrink:0;accent-color:var(--primary)}.dxf-layer-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.dxf-layer-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dxf-layer-name.muted{color:var(--text-muted);text-decoration:line-through}.dxf-tabs{display:flex;gap:2px;margin-bottom:4px}.dxf-tab{padding:6px 16px;font-size:.85rem;background:var(--surface);border:1px solid var(--border);border-bottom:none;border-radius:var(--radius) var(--radius) 0 0;color:var(--text-muted);cursor:pointer;transition:background .15s,color .15s}.dxf-tab:hover{background:var(--surface-hover);color:var(--text)}.dxf-tab.active{background:var(--bg);color:var(--text);border-bottom:2px solid var(--primary)}.dxf-drop-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#6c8cff1a;border:2px dashed var(--primary);border-radius:var(--radius);color:var(--primary);font-size:1.1rem;font-weight:600;z-index:30;pointer-events:none}@media(max-width:600px){.layout{padding:12px}.page-header{flex-direction:column;align-items:stretch}.form-row{flex-direction:column}th,td{padding:10px 8px}.help-sections,.dashboard-grid{grid-template-columns:1fr}.header-user{gap:8px}}
