:root{--font-mono: "Roboto Mono", "Noto Sans TC", monospace;--bg: #111217;--surface: #181b1f;--surface-2: #22252b;--line: #2c3235;--line-strong: #5a5f68;--accent: #ff780a;--accent-soft: #ff9830;--text: #ccccdc;--text-2: #8e8ea3;--text-3: #6e6e80;--danger: #f2495c;--danger-line: #e02f44;--warn: #f2cc0c;--warn-line: #e0b400;--ok: #73bf69;--ok-line: #56a64b;--info: #5794f2;--glass-fill: rgba(28, 31, 40, .5);--glass-fill-strong: rgba(24, 27, 35, .92);--glass-edge: rgba(255, 255, 255, .14);--glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 8px 28px rgba(0, 0, 0, .35);--header-fill: #181b23;--card-fill: rgba(17, 18, 23, .82);--card-edge: rgba(255, 255, 255, .08);--text-on-glass: #b4b4c8;--scrollbar-thumb: rgba(255, 255, 255, .34);--scrollbar-thumb-hover: rgba(255, 255, 255, .52);--scrollbar-thumb-active: rgba(255, 255, 255, .66)}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:transparent}*::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);background-clip:padding-box;border:2px solid transparent;border-radius:999px;min-height:36px;min-width:36px}*::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover);background-clip:padding-box}*::-webkit-scrollbar-thumb:active{background:var(--scrollbar-thumb-active);background-clip:padding-box}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}}.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24;vertical-align:middle;-webkit-user-select:none;user-select:none}html,body,#root{margin:0;height:100%}body{background:var(--bg)}html{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.app-shell,.cell,.nav-item,.top-actions,button{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}input,textarea{-webkit-user-select:text;user-select:text}.app-shell{height:100%;height:100dvh;overflow:hidden;display:grid;grid-template-columns:248px minmax(0,1fr);grid-template-rows:minmax(0,1fr);box-sizing:border-box;padding:10px;gap:10px;background:radial-gradient(900px 620px at 8% 12%,rgba(255,120,10,.22),transparent 62%),radial-gradient(1000px 720px at 92% 8%,rgba(87,148,242,.26),transparent 60%),radial-gradient(900px 700px at 62% 100%,rgba(115,191,105,.14),transparent 62%),#0a0c13}.main-col{min-width:0;min-height:0;display:grid;grid-template-rows:56px minmax(0,1fr);gap:10px}.sidebar{height:100%;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden;background:var(--glass-fill);color:var(--text);border:1px solid var(--glass-edge);border-radius:22px;box-shadow:var(--glass-shadow)}.MuiDrawer-paper.sidebar{background:var(--glass-fill-strong)}.MuiDrawer-anchorLeft .MuiDrawer-paper{border-left:none;border-radius:0 22px 22px 0}.MuiDrawer-anchorRight .MuiDrawer-paper{border-right:none;border-radius:22px 0 0 22px}.sidebar-top{flex-shrink:0;padding:16px 14px 12px}.sidebar-mid{flex:1;min-height:0;overflow:auto;padding:4px 8px 12px}.sidebar-foot{flex-shrink:0;padding:12px;border-top:1px solid var(--glass-edge);display:flex;flex-direction:column;gap:10px}.sidebar-user{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--text-on-glass)}.link-btn{border:0;background:none;color:var(--accent);cursor:pointer;font:inherit}.brand-logo{height:40px;width:auto;display:block}.nav-item{font-family:inherit;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;border:1px solid transparent;background:transparent;color:inherit;border-radius:8px;padding:10px 12px;margin-bottom:4px;cursor:pointer;transition:background .22s cubic-bezier(.2,0,0,1),border-color .22s cubic-bezier(.2,0,0,1)}.nav-item:hover{background:#ffffff0f}.nav-item.on{background:#ffffff1a;border-color:var(--accent-soft)}.nav-label{display:block;font-size:14px}.nav-meta{display:block;font-size:11px;color:var(--text-on-glass);margin-top:2px}.nav-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);flex-shrink:0}.top-actions{display:flex;align-items:center;gap:8px;padding:8px 16px;box-sizing:border-box;background:var(--glass-fill);border:1px solid var(--glass-edge);border-radius:18px;box-shadow:var(--glass-shadow)}.top-spacer{flex:1}.hdr-ico{width:20px;height:20px;display:block;object-fit:contain}.hdr-ico.invert{filter:invert(.88)}.menu-btn{display:none!important}.hdr-warn{font-size:13px;color:var(--warn);white-space:nowrap}.stage{overflow:auto;min-width:0;height:100%}.stage>.MuiPaper-root{max-height:100%;background:var(--card-fill);border:1px solid var(--card-edge);border-radius:18px}.view-body{min-width:0;min-height:0;height:100%;overflow:hidden;perspective:1400px}.grid-card{height:100%;box-sizing:border-box;background:var(--card-fill);border:1px solid var(--card-edge);border-radius:18px;padding:12px;display:flex;flex-direction:column;transform-origin:100% 100%}.grid-wrap{flex:1;min-height:0;overflow:auto}.ip-grid{min-height:100%;display:grid;grid-template-columns:32px repeat(var(--cols, 16),minmax(0,1fr));grid-template-rows:18px repeat(var(--rows, 16),minmax(var(--cell-min, 0px),1fr));gap:5px;-webkit-user-select:none;user-select:none}.ip-grid[data-cols="16"]{--cols: 16;--rows: 16;--cell-min: 36px}.ip-grid[data-cols="8"]{--cols: 8;--rows: 32;--cell-min: 44px}.ip-grid[data-cols="4"]{--cols: 4;--rows: 64;--cell-min: 48px}.ghead,.grow{font-family:var(--font-mono);font-size:10px;color:var(--text-3);display:grid;place-items:center}.cell-wrap{display:block;width:100%;height:100%;min-width:0;min-height:0;transform-origin:50% 100%}.cell{width:100%;height:100%;min-height:var(--cell-min, 0px);border:1px solid var(--line);border-radius:4px;background:var(--surface-2);color:var(--text-2);padding:0;font-family:var(--font-mono);font-size:clamp(11px,1.4vw,13px);cursor:pointer;transition:transform .22s cubic-bezier(.2,0,0,1),box-shadow .22s cubic-bezier(.2,0,0,1),background .22s cubic-bezier(.2,0,0,1)}.cell:hover:not(:disabled){transform:scale(1.06);z-index:2;box-shadow:0 6px 16px #00000059}.cell:disabled{cursor:default}.cell.used{background:var(--ok);color:var(--bg);border-color:var(--ok-line)}.cell.pending{background:var(--accent-soft);color:var(--bg);border-color:var(--accent);animation:pendingPulse 1.8s cubic-bezier(.2,0,0,1) infinite}.cell.clear{background:var(--danger);color:var(--bg);border-color:var(--danger-line)}.cell.invalid{background:var(--warn);color:var(--bg);border-color:var(--warn-line)}.cell.reserved,.cell.dead{background:repeating-linear-gradient(45deg,var(--line),var(--line) 5px,var(--surface) 5px,var(--surface) 10px);color:var(--text-3)}.cell.ro{opacity:.55}.cell.on{outline:2px solid var(--info);outline-offset:1px}@keyframes pendingPulse{0%,to{filter:saturate(1)}50%{filter:saturate(1.2) brightness(1.08)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-6px)}75%{transform:translate(6px)}}.shake{animation:shake .4s cubic-bezier(.2,0,0,1)}.diff-scroll{max-height:360px;overflow:auto}.diff-group{padding:8px 0;border-bottom:1px solid var(--line)}.diff-ip{margin-bottom:4px}.diff-old{color:#ff6b7a;font-family:var(--font-mono);font-size:13px}.diff-new{color:var(--ok);font-family:var(--font-mono);font-size:13px}.diff-note{color:var(--text-2);font-size:12px;margin-top:2px}.dropzone{width:100%;min-height:120px;border:1px dashed var(--info);border-radius:8px;background:var(--bg);color:var(--text);cursor:pointer;font:inherit}.mono{font-family:var(--font-mono)}.sheet-toolbar{display:flex;align-items:center;gap:16px;padding-bottom:12px}.sheet-hint{font-size:12px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet-wrap{flex:1;min-height:0;overflow:auto;scroll-padding-top:36px;-webkit-user-select:text;user-select:text}.sheet{width:100%;min-width:900px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px;color:var(--text);outline:none}.sheet .c-status{width:72px}.sheet .c-ip{width:140px}.sheet .c-mac{width:170px}.sheet .c-notes{width:24%}.sheet th{position:sticky;top:0;z-index:1;height:36px;padding:0 10px;text-align:left;font-weight:500;color:var(--text-on-glass);border-bottom:1px solid var(--glass-edge)}.sheet th,.stage .MuiTableCell-stickyHeader{background:var(--header-fill)}.stage .MuiTableCell-stickyHeader{border-bottom-color:var(--glass-edge)}.sheet td{height:34px;padding:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid var(--surface-2);border-right:1px solid var(--surface-2);cursor:cell}.sheet td.sheet-status{font-size:12px;cursor:default}.sheet-row:hover td{background:#ffffff08}.sheet td.active{box-shadow:inset 0 0 0 1px var(--line-strong)}.sheet:focus td.active,.sheet:focus-within td.active{box-shadow:inset 0 0 0 2px var(--accent)}.sheet td.err{box-shadow:inset 0 0 0 1px var(--danger);background:#f2495c1f}.sheet:focus td.active.err,.sheet:focus-within td.active.err{box-shadow:inset 0 0 0 2px var(--danger)}.st-used .sheet-status{color:var(--ok)}.st-new .sheet-status,.st-edit .sheet-status{color:var(--accent-soft)}.st-new td:not(.err),.st-edit td:not(.err){background:#ff983014}.st-invalid .sheet-status{color:var(--warn)}.st-clear .sheet-status{color:var(--danger)}.st-clear td:not(.sheet-status){text-decoration:line-through;color:var(--text-2)}.st-clear td{background:#f2495c14}.st-dead td,.st-reserved td,.sheet-row.ro td{color:var(--text-3);cursor:default}.sheet.selecting td{cursor:pointer}.sheet-row.on td:not(.err){background:#5794f233}.sheet td:has(.sheet-input){padding:0;overflow:visible}.sheet-input{width:100%;height:34px;padding:0 8px;box-sizing:border-box;border:2px solid var(--accent);border-radius:0;outline:none;background:var(--bg);color:#fff;font:inherit}.sheet-empty{padding:32px;text-align:center;color:var(--text-3);font-size:13px}.ip-grid.flip-out .cell-wrap,.ip-grid.flip-in .cell-wrap{animation-duration:.24s;animation-timing-function:cubic-bezier(.2,0,0,1);animation-fill-mode:both;animation-delay:var(--d, 0ms);pointer-events:none}.ip-grid.flip-out .cell-wrap{animation-name:cellFlipOut}.ip-grid.flip-in .cell-wrap{animation-name:cellFlipIn}.grid-card.flip-out{animation:boardFlipOut .28s .34s cubic-bezier(.2,0,0,1) both;pointer-events:none}.grid-card.flip-in{animation:boardFlipIn .28s cubic-bezier(.2,0,0,1) both}.view-body.flip-out{animation:viewFlipOut .28s cubic-bezier(.2,0,0,1) both;pointer-events:none}.view-body.flip-in{animation:viewFlipIn .34s cubic-bezier(.2,0,0,1) both}@keyframes cellFlipOut{to{transform:rotateX(-88deg);opacity:0}}@keyframes cellFlipIn{0%{transform:rotateX(88deg);opacity:0}to{transform:none;opacity:1}}@keyframes boardFlipOut{to{transform:rotateX(-70deg) scale(.97);opacity:0}}@keyframes boardFlipIn{0%{transform:rotateX(70deg) scale(.97);opacity:0}to{transform:none;opacity:1}}@keyframes viewFlipOut{to{transform:rotateX(-55deg);opacity:0}}@keyframes viewFlipIn{0%{transform:rotateX(55deg);opacity:0}to{transform:none;opacity:1}}@media(hover:none),(pointer:coarse){.ip-grid.flip-out .cell-wrap,.ip-grid.flip-in .cell-wrap,.cell.pending{animation:none}.grid-card.flip-out{animation-delay:0ms}}@media(prefers-reduced-motion:reduce){.cell,.nav-item{transition:none}.cell.pending,.shake{animation:none}.cell:hover:not(:disabled){transform:none}.ip-grid.flip-out .cell-wrap,.ip-grid.flip-in .cell-wrap,.grid-card.flip-out,.grid-card.flip-in,.view-body.flip-out,.view-body.flip-in{animation:none}}@media(prefers-reduced-transparency:reduce){:root{--glass-fill: var(--surface);--glass-fill-strong: var(--surface);--card-fill: var(--surface)}.app-shell{background:var(--bg)}.MuiDialog-paper,.MuiDrawer-paper{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){:root{--glass-fill: var(--surface);--glass-fill-strong: var(--surface)}}@media(max-width:640px){.MuiDrawer-anchorRight .MuiDrawer-paper{border-left:none;border-radius:0}}@media(max-width:860px){.app-shell{grid-template-columns:minmax(0,1fr);padding:6px;gap:6px}.main-col{gap:6px}.menu-btn{display:inline-flex!important}.sidebar{width:280px}}
