:root{font-family:system-ui,-apple-system,sans-serif;color:#e0e0e0;background-color:#1e1e1e;color-scheme:dark;--dxf-ink: #d6d6d6}body{margin:0}#app{display:flex;flex-direction:column;height:100vh;width:100vw}.tabbar{flex:0 0 auto;display:flex;gap:2px;padding:0 8px;background:#1b1b1b;border-bottom:1px solid #333333}.tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;color:#aaa;padding:.55rem 1.1rem;font-size:.9rem;cursor:pointer;border-bottom:2px solid transparent}.tab:hover{color:#ddd}.tab--active{color:#fff;border-bottom-color:#4a90ff}.tab-panels{flex:1 1 auto;min-height:0;position:relative}.tab-panel{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.tab-panel--active{display:block}.split{display:flex;height:100%;width:100%}.pane{flex:1 1 50%;min-width:0;display:flex;flex-direction:column}.pane--left,.pane--right{background:#161616}.pane__title{padding:.5rem .75rem;font-size:.9rem;font-weight:600;border-bottom:1px solid #333333;background:#252525}.pane__toolbar{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-bottom:1px solid #2a2a2a}.btn{padding:.4rem .8rem;font-size:.9rem;border:1px solid #444444;border-radius:4px;background:#2b2b2b;color:#e0e0e0;cursor:pointer}.btn:hover{background:#383838}.mode-group{display:inline-flex;align-items:center;gap:.6rem;padding:.2rem .6rem;border:1px solid #3a3a3a;border-radius:4px;background:#202020}.mode-opt{display:inline-flex;align-items:center;gap:.25rem;font-size:.85rem;color:#ccc;cursor:pointer;-webkit-user-select:none;user-select:none}.mode-opt input{cursor:pointer}.hidden-file{display:none}.dxf-status{font-size:.85rem;color:#999}.pane__body{flex:1 1 auto;display:flex;align-items:center;justify-content:center;color:#777;font-size:.9rem;overflow:hidden;position:relative}.pane__body--types{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;padding:6px;overflow-y:auto}.pane__body--resizable{gap:0}.stack__divider{flex:0 0 6px;background:#333;cursor:row-resize;touch-action:none}.stack__divider:hover,.stack__divider:active{background:#4a90ff}.type-window{flex:1 0 calc((100% - 24px)/4);min-height:90px;display:flex;flex-direction:column;border:1px solid #333333;border-radius:4px;background:#1c1c1c;overflow:hidden;cursor:pointer}.type-window:hover:not(.type-window--selected){outline:2px dashed #4a90d9;outline-offset:-2px}.type-window--static{cursor:default}.type-window--static:hover{outline:none}.type-window--selected{outline:2px solid #ff9f43;outline-offset:-2px}.type-window--selected .type-window__title{color:#ff9f43}.type-window__title{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:.25rem .6rem;font-size:.8rem;font-weight:600;color:#ccc;background:#252525;border-bottom:1px solid #333333}.type-window__title>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-self:start}.type-window__title .mode-group{grid-column:2;justify-self:center;white-space:nowrap}.type-window__title .type-window__controls,.type-window__title .type-window__delete{grid-column:3;justify-self:end}.type-window__controls{display:inline-flex;align-items:center;gap:.5rem}.type-window__has{display:inline-flex;align-items:center;gap:.15rem;font-size:.75rem;font-weight:400;color:#ccc;cursor:pointer;-webkit-user-select:none;user-select:none}.type-window__delete,.type-window__action{padding:.1rem .5rem;font-size:.75rem;border:1px solid #444444;border-radius:4px;background:#2b2b2b;color:#e0e0e0;cursor:pointer}.type-window__delete:hover,.type-window__action:hover{background:#383838}.type-window__filter{padding:.1rem .35rem;font-size:.75rem;border:1px solid #444444;border-radius:4px;background:#2b2b2b;color:#e0e0e0;cursor:pointer}.type-window__filter:disabled{opacity:.5;cursor:default}.type-window__body{font-size:.85rem}.type-count-input{width:3.4rem;padding:.2rem .3rem;font-size:.85rem;border:1px solid #444444;border-radius:4px;background:#2b2b2b;color:#e0e0e0}.type-select{min-width:7rem;padding:.2rem .3rem;font-size:.85rem;border:1px solid #444444;border-radius:4px;background:#2b2b2b;color:#e0e0e0;cursor:pointer}.type-select:disabled{color:#666;cursor:default}.dxf-hud{display:none;position:absolute;top:6px;left:8px;margin:0;font:12px/1.5 ui-monospace,monospace;color:#7fe08a;background:#0000008c;padding:3px 7px;border-radius:4px;pointer-events:none;white-space:pre}body.show-hud .dxf-hud{display:block}.tabbar-right{margin-left:auto;display:inline-flex;align-items:center;gap:.6rem;padding:4px 0}.tabbar-right .btn{padding:.25rem .6rem;font-size:.85rem}.build-badge{font-size:11px;opacity:.55;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:default;-webkit-user-select:text;user-select:text;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.hud-toggle{display:inline-flex;align-items:center;gap:.3rem;font-size:.85rem;color:#ccc;cursor:pointer;-webkit-user-select:none;user-select:none}.pane__body>.dxf-svg{width:100%;height:100%}.pane__body>.dxf-canvas{width:100%;height:100%;display:block;cursor:none}.pane__body>.dxf-overlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.dxf-cross-h,.dxf-cross-v,.dxf-cross-box{position:absolute;pointer-events:none;display:none;z-index:2}.dxf-cross-h{left:0;width:100%;height:0;border-top:1px solid #8a8a8a}.dxf-cross-v{top:0;height:100%;width:0;border-left:1px solid #8a8a8a}.dxf-cross-box{width:13px;height:13px;border:1px solid #8a8a8a;transform:translate(-50%,-50%)}.dxf-svg *{vector-effect:non-scaling-stroke}.dxf-loading{display:flex;flex-direction:column;align-items:center;gap:.75rem;color:#aaa;font-size:.9rem}.dxf-spinner{width:28px;height:28px;border:3px solid #3a3a3a;border-top-color:#4a90ff;border-radius:50%;animation:dxf-spin .8s linear infinite}@keyframes dxf-spin{to{transform:rotate(360deg)}}.app-busy{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#00000059;z-index:1000}.app-busy__box{display:flex;align-items:center;gap:.7rem;padding:.9rem 1.3rem;background:#252525;color:#e0e0e0;border:1px solid #3a3a3a;border-radius:8px;font-size:.95rem}.app-toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%,12px);padding:.7rem 1.1rem;background:#2b6b3a;color:#eaffea;border-radius:8px;font-size:.95rem;opacity:0;transition:opacity .25s,transform .25s;z-index:1001;pointer-events:none}.app-toast--show{opacity:1;transform:translate(-50%)}.pane__body>.dxf-report{width:100%;height:100%;overflow:auto;box-sizing:border-box;padding:1rem;text-align:left;color:#ddd;font-size:.85rem;line-height:1.6}.dxf-report h3{margin:0 0 .5rem;font-size:1rem}.dxf-report table{border-collapse:collapse;margin-top:.5rem}.dxf-report th,.dxf-report td{border:1px solid #3a3a3a;padding:2px 10px;text-align:left}.dxf-report td:last-child{text-align:right}.split__divider{flex:0 0 6px;background:#333;cursor:col-resize;touch-action:none}.split__divider:hover,.split__divider:active{background:#4a90ff}.pane__title-action{margin-left:.75rem;font-size:.8rem;padding:.15rem .6rem}.view3d-bar{position:absolute;top:8px;right:8px;display:inline-flex;gap:4px;z-index:5}.view3d-bar button{font-size:.78rem;padding:.2rem .5rem;border:1px solid #4a4a4a;border-radius:4px;background:#282828d1;color:#e6e6e6;cursor:pointer}.view3d-bar button:hover{background:#464646eb}.view3d-bar button.is-on{background:#ff9f43d9;border-color:#ff9f43;color:#1a1a1a;font-weight:600}.view3d-bar span{align-self:center;font-size:.78rem;color:#e6e6e6;padding-left:4px}.view3d-bar select{font-size:.78rem;padding:.2rem .35rem;border:1px solid #4a4a4a;border-radius:4px;background:#282828d1;color:#e6e6e6;cursor:pointer}.sel3d-box{position:absolute;border:1px solid rgba(80,160,255,.95);background:#50a0ff1a;pointer-events:none;z-index:4}.mgt-dialog{background:#1e1e1e;color:#e0e0e0;border:1px solid #444444;border-radius:8px;padding:1rem 1.25rem;min-width:26rem;max-height:90vh;overflow-y:auto}.mgt-dialog::backdrop{background:#0000008c}.mgt-dialog h3{margin:0 0 .75rem;font-size:1rem}.mgt-dialog__row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:.3rem 0}.mgt-dialog__row>span{font-size:.85rem;white-space:nowrap}.mgt-dialog__row>input,.mgt-dialog__row>select{width:13rem;background:#161616;color:#e0e0e0;border:1px solid #444444;border-radius:4px;padding:.25rem .4rem}.mgt-dialog__row>input[type=checkbox]{width:auto;padding:0}.mgt-dialog__section{border:1px solid #3a3a3a;border-radius:6px;padding:.4rem .6rem .55rem;margin:.5rem 0;background:#1a1a1a}.mgt-dialog__section-title{font-size:.85rem;font-weight:600;color:#cfe3ff;margin-bottom:.25rem}.mgt-dialog__mode{display:flex;gap:.9rem;width:13rem}.mgt-dialog__radio{display:flex;align-items:center;gap:.25rem;font-size:.82rem;white-space:nowrap;cursor:pointer}.mgt-dialog__radio>input{margin:0}.mgt-dialog__dims{display:flex;flex-wrap:wrap;gap:.35rem;width:13rem}.mgt-dialog__dim{display:flex;flex-direction:column;gap:.1rem;flex:1 1 5.5rem}.mgt-dialog__dim>span{font-size:.72rem;color:#b0b0b0}.mgt-dialog__dim>input{width:100%;background:#161616;color:#e0e0e0;border:1px solid #444444;border-radius:4px;padding:.2rem .3rem}.mgt-dialog__preview{margin-top:.35rem;font-size:.8rem;font-family:ui-monospace,monospace;color:#8fd18f}.mgt-dialog__auto{margin:.6rem 0 .2rem;font-size:.78rem;color:#9ac0e8}.mgt-dialog__buttons{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.75rem}.unreg-dialog{min-width:22rem}.unreg-dialog__all{display:flex;align-items:center;gap:.4rem;padding:.3rem 0 .4rem;border-bottom:1px solid rgba(255,255,255,.12);font-weight:600;cursor:pointer}.unreg-dialog__list{display:flex;flex-direction:column;gap:.15rem;max-height:18rem;overflow-y:auto;margin-top:.4rem}.unreg-dialog__row{display:flex;align-items:center;gap:.4rem;padding:.2rem .1rem;cursor:pointer}.unmarked-panel{position:fixed;top:4.5rem;right:1rem;z-index:60;width:min(32rem,calc(100vw - 2rem));background:#1e1e1e;color:#e0e0e0;border:1px solid #555555;border-radius:8px;padding:0 0 .75rem;box-shadow:0 6px 24px #00000080}.unmarked-panel__title{padding:.55rem 1rem;font-size:.95rem;font-weight:600;border-bottom:1px solid #3a3a3a;cursor:move;-webkit-user-select:none;user-select:none}.unmarked-panel__note{margin:.5rem 1rem .4rem;font-size:.78rem;color:#9ac0e8}.unmarked-panel__rows{max-height:calc(100vh - 18rem);overflow-y:auto}.unmarked-panel__row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.5rem;margin:0 .6rem;padding:.25rem .4rem;border-radius:5px;cursor:pointer}.unmarked-panel__row:hover{background:#ffaa281f}.unmarked-panel__row--active{background:#ffaa2833}.unmarked-panel__label{min-width:0;display:flex;flex-direction:column;gap:.1rem;font-size:.85rem}.unmarked-panel__label-main,.unmarked-panel__label-note{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unmarked-panel__label-note{font-size:.75rem;color:#9a9a9a}.unmarked-panel__row>select{width:9rem;background:#161616;color:#e0e0e0;border:1px solid #444444;border-radius:4px;padding:.25rem .4rem}.unmarked-panel__show{white-space:nowrap}.unmarked-panel__buttons{display:flex;justify-content:flex-end;gap:.5rem;margin:.75rem 1rem 0}.member-dialog{min-width:46rem}.member-dialog__layout{display:flex;gap:1rem;align-items:flex-start}.member-dialog__list-pane{flex:0 0 18rem}.member-dialog__form-pane{flex:1 1 auto;min-width:22rem;border-left:1px solid #333333;padding-left:1rem}.member-list{width:100%;border-collapse:collapse;font-size:.82rem}.member-list th,.member-list td{border:1px solid #383838;padding:.2rem .35rem;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:8rem}.member-list th{background:#252525;color:#ccc;font-weight:600}.member-list tbody tr{cursor:pointer}.member-list tbody tr:hover{background:#262626}.member-list__row--selected{outline:2px solid #ff9f43;outline-offset:-2px}.member-list__buttons{display:flex;gap:.4rem;margin-top:.5rem}.member-dialog__empty{color:#888;font-size:.85rem;padding:1rem 0}.quantity-dialog{min-width:56rem;max-width:90vw}.quantity-table-wrap{overflow-x:auto;max-height:55vh;overflow-y:auto;margin-top:.4rem}.quantity-table tbody tr{cursor:default}.quantity-table th.quantity-fire,.quantity-table td.quantity-fire{background:#ff9f4312}.quantity-table th.quantity-fire{background:#2d2820}.quantity-table th.quantity-len{background:#202a2d}.quantity-table td.quantity-face{color:#8fbccc}.quantity-table td.num{text-align:right;font-variant-numeric:tabular-nums}.quantity-row--detail td{color:#9a9a9a}.quantity-row--subtotal td{font-weight:600}.quantity-row--total td{font-weight:700;background:#252525}.quantity-detail-toggle{font-size:.85rem;color:#ccc;-webkit-user-select:none;user-select:none}.quantity-warn{color:#ff9f43;font-size:.85rem;margin:.4rem 0 0}.member-dialog__add-grade{display:flex;gap:.3rem;align-items:center}.member-dialog__add-grade>input{width:6.5rem;background:#161616;color:#e0e0e0;border:1px solid #444444;border-radius:4px;padding:.2rem .35rem}
