:root{--bg:#07111b;--bg2:#0b1723;--panel:#101f2d;--panel2:#142738;--line:#233b4e;--text:#eaf2f7;--muted:#92a7b6;--accent:#6db6ff;--accent2:#1f83e0;--ok:#38c98c;--warn:#f4bd4c;--danger:#ff6b6b;--shadow:0 22px 60px rgba(0,0,0,.28)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}body{min-height:100vh}.hidden{display:none!important}.boot-screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;gap:16px;background:linear-gradient(145deg,#07111b,#10283a);z-index:100}.boot-screen strong{display:block;font-size:24px;letter-spacing:.18em}.boot-screen span{color:var(--muted)}.boot-mark,.brand-mark{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#1e7ac7,#62b7ff);font-weight:900;box-shadow:0 10px 30px rgba(58,143,218,.28)}.brand-mark.small{width:38px;height:38px;border-radius:10px;font-size:13px}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 30% 20%,#153652 0,transparent 33%),linear-gradient(145deg,#06101a,#0b1723 55%,#0a1c29)}.auth-panel{width:min(460px,100%);background:rgba(13,28,41,.94);border:1px solid var(--line);border-radius:24px;padding:30px;box-shadow:var(--shadow)}.auth-brand{display:flex;align-items:center;gap:15px;margin-bottom:26px}.auth-brand h1{margin:0;letter-spacing:.16em}.auth-brand p{margin:5px 0 0;color:var(--muted)}.security-note{display:flex;gap:10px;flex-direction:column;padding:14px 16px;background:#0b2130;border:1px solid #28506c;border-left:4px solid var(--accent);border-radius:12px;margin:16px 0 22px}.security-note.wide{max-width:900px}.security-note span{color:#bfd0dc;font-size:13px;line-height:1.45}.stack{display:grid;gap:15px}label{display:grid;gap:7px;color:#c9d8e2;font-size:13px;font-weight:650}input,select,textarea{width:100%;border:1px solid var(--line);background:#091621;color:var(--text);border-radius:10px;padding:12px 13px;font:inherit;outline:none}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(109,182,255,.12)}.btn{border:1px solid var(--line);border-radius:10px;padding:10px 14px;background:#142433;color:var(--text);font-weight:750;cursor:pointer}.btn:hover{filter:brightness(1.08)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:linear-gradient(145deg,#1977c7,#2795ed);border-color:#3aa2ef}.btn.ghost{background:transparent}.muted,.status{color:var(--muted)}.status{min-height:18px;font-size:13px}.app-shell{min-height:100vh;background:#08131d}.topbar{height:68px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:#0b1824;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.brand-inline{display:flex;align-items:center;gap:11px}.brand-inline strong{display:block;letter-spacing:.15em;font-size:15px}.brand-inline span{display:block;color:var(--muted);font-size:11px;margin-top:3px}.topbar-actions,.head-actions{display:flex;gap:9px;align-items:center}.role-pill{font-size:11px;letter-spacing:.08em;border:1px solid #315a76;background:#10283a;padding:7px 10px;border-radius:999px;color:#bfe1ff}.workspace{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 68px)}.sidebar{background:#0b1722;border-right:1px solid var(--line);padding:18px 12px;display:flex;flex-direction:column;gap:7px}.nav-btn{border:0;background:transparent;color:#9fb2bf;text-align:left;padding:12px 14px;border-radius:10px;font-weight:750;cursor:pointer}.nav-btn.active{background:#152b3d;color:#eaf6ff;border:1px solid #27455a}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:15px 10px 5px;overflow:hidden}.sidebar-bottom span,.sidebar-bottom small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-bottom small{color:var(--muted);margin-top:4px}.main{padding:28px;min-width:0}.view{display:none}.view.active{display:block}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.section-head h2{font-size:28px;margin:3px 0 6px}.section-head p{margin:0;color:var(--muted)}.eyebrow{font-size:11px!important;letter-spacing:.16em;color:#78bfff!important;font-weight:900}.operation-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.operation-card,.panel,.empty-card{background:linear-gradient(145deg,#0e1e2b,#102433);border:1px solid var(--line);border-radius:16px}.operation-card{padding:18px;cursor:pointer}.operation-card:hover{border-color:#3a6c8f;transform:translateY(-1px)}.operation-card h3{margin:8px 0 5px}.operation-card .meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;margin-top:16px}.status-badge{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:850;letter-spacing:.08em;background:#19374a;color:#bfe1ff}.empty-card{padding:28px;color:var(--muted)}.empty-card h3{color:var(--text);margin-top:0}.security-card{max-width:780px;border-left:4px solid var(--warn)}.planner-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{padding:20px}.panel h3{margin-top:0}.span2{grid-column:span 2}.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:1fr 1fr}.locked-feature{display:flex;justify-content:space-between;gap:20px;align-items:center}.locked-feature p{color:var(--muted);max-width:800px;line-height:1.5}.locked-feature span{white-space:nowrap;border:1px solid #624f28;color:#ffd980;background:#2d2719;border-radius:999px;padding:8px 10px;font-size:11px;font-weight:900}.activity-list{display:grid;gap:10px;max-width:900px;margin-bottom:20px}.activity-item{display:grid;grid-template-columns:150px 1fr;gap:18px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#0e1e2b}.activity-item time{color:var(--muted);font-size:12px}.activity-item strong{display:block;margin-bottom:3px}.activity-item span{color:var(--muted);font-size:13px}.toast{position:fixed;right:20px;bottom:20px;background:#152d40;border:1px solid #3f6a86;border-radius:12px;padding:12px 15px;color:#e8f4ff;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1}dialog{border:1px solid var(--line);border-radius:18px;background:#0d1c29;color:var(--text);width:min(520px,calc(100% - 28px));box-shadow:var(--shadow)}dialog::backdrop{background:rgba(0,0,0,.66)}.dialog-form{display:grid;gap:14px;padding:8px}.dialog-form h2{margin:2px 0 6px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}@media(max-width:850px){.workspace{grid-template-columns:1fr}.sidebar{position:sticky;top:68px;z-index:15;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:8px}.sidebar-bottom{display:none}.nav-btn{white-space:nowrap}.main{padding:18px}.planner-grid{grid-template-columns:1fr}.span2{grid-column:span 1}.form-grid.two{grid-template-columns:1fr}.section-head{flex-direction:column}.topbar-actions .role-pill{display:none}}@media(max-width:520px){.topbar{padding:0 12px}.brand-inline span{display:none}.btn{padding:9px 11px}.main{padding:14px}.operation-grid{grid-template-columns:1fr}.locked-feature{align-items:flex-start;flex-direction:column}}
.stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.mini-stat{background:linear-gradient(145deg,#0e1e2b,#102433);border:1px solid var(--line);border-radius:14px;padding:16px}.mini-stat span{display:block;color:var(--muted);font-size:12px;font-weight:700}.mini-stat strong{display:block;font-size:28px;margin-top:5px}.roster-panel{padding:0;overflow:hidden}.roster-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid var(--line)}.roster-toolbar h3{margin:0 0 4px}.roster-toolbar p{margin:0;color:var(--muted);font-size:12px;line-height:1.45;max-width:760px}.table-wrap{overflow:auto}.roster-table{width:100%;border-collapse:collapse;min-width:800px}.roster-table th,.roster-table td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.roster-table th{font-size:11px;color:#91b7d0;letter-spacing:.08em;text-transform:uppercase;background:#0b1824;position:sticky;top:0}.roster-table td{font-size:13px;color:#c8d6df}.roster-table tbody tr:hover{background:#102536}.row-actions{white-space:nowrap;text-align:right!important}.icon-btn{border:1px solid #31506a;background:#132a3b;color:#dcebf5;border-radius:8px;padding:7px 9px;margin-left:5px;cursor:pointer;font-size:11px;font-weight:800}.icon-btn.danger{border-color:#6a3439;color:#ffb8b8;background:#29181c}.roster-empty{padding:22px;text-align:center;color:var(--muted)}
@media(max-width:700px){.stat-row{grid-template-columns:1fr}.roster-toolbar{align-items:flex-start;flex-direction:column}}

.assignment-shell{padding:0;overflow:hidden}.assignment-groups{display:grid;gap:22px;padding:20px}.assignment-group{display:grid;gap:12px}.assignment-group-head{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:1px solid var(--line);padding-bottom:10px}.assignment-group-head h3{margin:2px 0 0;font-size:18px}.assignment-group-head>span{color:var(--muted);font-size:12px}.section-kicker{font-size:10px;color:#78bfff;font-weight:900;letter-spacing:.13em}.assignment-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:12px}.assignment-card{background:#0b1a26;border:1px solid var(--line);border-radius:14px;padding:16px}.assignment-card.open{border-left:4px solid var(--warn)}.assignment-card.staffed{border-left:4px solid var(--ok)}.assignment-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.assignment-card-top h4{margin:7px 0 0;font-size:17px}.assignment-card-actions{white-space:nowrap}.assignment-status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.09em}.assignment-status.open{background:#312919;border:1px solid #6a5524;color:#ffd67a}.assignment-status.staffed{background:#132d25;border:1px solid #255e49;color:#8ce1bc}.assignment-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin:15px 0}.assignment-meta span{font-size:12px;color:#d0dde5}.assignment-meta b{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:3px}.assigned-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.assigned-chips span{display:inline-flex;padding:6px 8px;border-radius:999px;background:#142b3c;border:1px solid #2b506a;color:#d8edf9;font-size:11px}.assigned-chips em{color:var(--muted);font-size:12px}.assignment-note,.assignment-equipment{font-size:12px;line-height:1.5;color:#b9cbd6;margin:12px 0 0;padding-top:10px;border-top:1px solid #1b3243}.field-help{color:var(--muted);font-weight:400}.assignment-dialog-form select[multiple]{min-height:150px}.assignment-dialog-form select[multiple] option{padding:7px}.assignment-stats .mini-stat:last-child strong{color:#ffd67a}@media(max-width:700px){.assignment-card-grid{grid-template-columns:1fr}.assignment-meta{grid-template-columns:1fr}}

.wide-dialog{width:min(860px,calc(100% - 28px))}.import-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.import-review-panel{padding:16px}.import-review-panel h3{margin:0 0 14px}.import-warning{border-left-color:var(--warn);background:#251f13;border-color:#5d4b25}.import-warning strong{color:#ffd67a}.import-source-note{font-size:12px;color:var(--muted)}@media(max-width:760px){.import-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.5 Resources + Contacts */
#resourceCards,#contactCards{margin-top:18px}
#contactCards a{color:inherit;text-decoration:none}
#contactCards a:hover{text-decoration:underline}

/* v0.6 Operational Map */
.map-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;min-height:680px}
.map-toolbox{padding:18px;align-self:stretch}
.map-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}
.map-tool-grid button{min-height:68px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);color:inherit;border-radius:12px;cursor:pointer;font:inherit;font-size:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.map-tool-grid button span{font-size:11px;font-weight:700;letter-spacing:.02em;text-align:center}
.map-tool-grid button:hover,.map-tool-grid button.active{border-color:#46b5ff;background:rgba(70,181,255,.12);transform:translateY(-1px)}
.map-tool-grid button:disabled{opacity:.35;cursor:not-allowed;transform:none}
.map-help{border-top:1px solid rgba(255,255,255,.08);padding-top:14px;display:flex;flex-direction:column;gap:4px}.map-help span{font-size:12px;opacity:.7}
.map-object-summary{margin-top:18px;padding:14px;border-radius:12px;background:rgba(0,0,0,.18);display:flex;align-items:center;justify-content:space-between}.map-object-summary strong{font-size:24px}
.map-stage{padding:0;overflow:hidden;min-width:0}.map-toolbar{padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px}.map-toolbar>div{display:flex;flex-direction:column}.map-toolbar span{font-size:12px;opacity:.65;margin-top:2px}
#operationalMap{height:620px;width:100%;background:#0b1723}
.novagrid-map-icon-wrap{background:transparent!important;border:0!important}
.novagrid-map-icon{width:38px;height:38px;border-radius:11px;background:#102b3f;border:2px solid rgba(255,255,255,.88);box-shadow:0 5px 18px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;font-size:19px;color:#fff;font-weight:900}
.novagrid-map-icon.type-barricade,.novagrid-map-icon.type-cone,.novagrid-map-icon.type-traffic{background:#8a4c0a}.novagrid-map-icon.type-closure{background:#7e1e24}.novagrid-map-icon.type-command{background:#3b2b73}.novagrid-map-icon.type-camera,.novagrid-map-icon.type-drone{background:#164c62}.novagrid-map-icon.type-ems,.novagrid-map-icon.type-fire{background:#68272b}.novagrid-map-icon.type-staging{background:#315233}
.coordinate-readout{display:grid;grid-template-columns:1fr 1fr;gap:10px}.coordinate-readout span{padding:10px;border-radius:9px;background:rgba(255,255,255,.04);font-size:12px;display:flex;justify-content:space-between}
.split-actions{justify-content:space-between}.split-actions>div{display:flex;gap:8px}.danger-outline{border:1px solid rgba(255,90,90,.5)!important;color:#ff9b9b!important;background:transparent!important}
.leaflet-control-attribution{font-size:9px!important}
@media(max-width:1000px){.map-workspace{grid-template-columns:1fr}.map-tool-grid{grid-template-columns:repeat(4,1fr)}#operationalMap{height:560px}}
@media(max-width:650px){.map-tool-grid{grid-template-columns:repeat(2,1fr)}#operationalMap{height:500px}}

/* v0.6.3 Professional operational symbology */
.map-tool-grid button{font-size:inherit}
.tool-symbol{width:29px;height:29px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.12);color:#d9e5ed}
.tool-symbol svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tool-symbol.type-ems svg path:first-child{fill:currentColor;stroke:none}
.tool-symbol.type-officer svg path:first-child{fill:none}
.novagrid-map-icon{width:32px;height:32px;border-radius:7px;border:1.5px solid rgba(255,255,255,.86);box-shadow:0 3px 12px rgba(0,0,0,.48);font-size:inherit}
.novagrid-map-icon svg{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.novagrid-map-icon.type-ems svg path:first-child{fill:#fff;stroke:none}
.novagrid-map-icon.type-officer,.novagrid-map-icon.type-police{background:#173348}
.novagrid-map-icon.type-command{background:#3b315e}
.novagrid-map-icon.type-barricade,.novagrid-map-icon.type-cone,.novagrid-map-icon.type-traffic{background:#73501c}
.novagrid-map-icon.type-closure{background:#6b2930}
.novagrid-map-icon.type-camera,.novagrid-map-icon.type-drone{background:#1f5261}
.novagrid-map-icon.type-ems{background:#365f52}
.novagrid-map-icon.type-fire{background:#6a3535}
.novagrid-map-icon.type-staging{background:#415846}
.novagrid-map-icon.type-custom{background:#48515a}

/* v0.7 3D Walkthrough */
.walkthrough-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}
.walkthrough-stage{position:relative;min-height:690px;border-radius:15px;overflow:hidden;background:#07111a;border:1px solid rgba(255,255,255,.08)}
#walkthrough3D{width:100%;height:690px}
.walkthrough-statusbar{position:absolute;z-index:4;left:14px;right:14px;top:14px;display:flex;justify-content:space-between;gap:12px;pointer-events:none}
.walkthrough-statusbar>div{background:rgba(6,17,26,.88);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:9px 12px;display:flex;flex-direction:column}
.walkthrough-statusbar span{font-size:11px;opacity:.72}
.walkthrough-legend{flex-direction:row!important;align-items:center;gap:14px!important}
.walkthrough-legend span{display:flex;align-items:center;gap:6px}
.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%}.model-dot{background:#8bd1ff}.hidden-dot{background:#78838b}
.walkthrough-tip{position:absolute;z-index:4;left:14px;bottom:14px;background:rgba(6,17,26,.86);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:9px 12px;display:flex;flex-direction:column;pointer-events:none}.walkthrough-tip span{font-size:11px;opacity:.7}
.walkthrough-side{padding:17px;min-height:690px}.walkthrough-object-list{display:flex;flex-direction:column;gap:7px;margin-top:14px;max-height:590px;overflow:auto;padding-right:3px}
.walk-object{display:grid;grid-template-columns:10px 1fr;gap:10px;text-align:left;align-items:center;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:9px;padding:10px;color:inherit;cursor:pointer}
.walk-object:hover{background:rgba(255,255,255,.07);border-color:rgba(139,209,255,.35)}
.walk-object span:nth-child(2){display:flex;flex-direction:column;min-width:0}.walk-object strong{font-size:12px}.walk-object small{font-size:10px;opacity:.62;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.walk-object-mark{width:7px;height:7px;border-radius:50%;background:#8bd1ff;box-shadow:0 0 9px rgba(139,209,255,.6)}.walk-object-mark.muted{background:#69747c;box-shadow:none}
.walkthrough-setup{grid-column:1/2;min-height:480px;border:1px dashed rgba(139,209,255,.28);border-radius:15px;background:linear-gradient(145deg,rgba(25,58,78,.32),rgba(7,17,26,.8));padding:50px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.setup-badge{font-size:10px;font-weight:800;letter-spacing:.16em;padding:6px 9px;border:1px solid rgba(139,209,255,.35);border-radius:999px;color:#a9dcff}
.walkthrough-setup h3{font-size:25px;margin:13px 0 8px}.walkthrough-setup p{max-width:660px;line-height:1.6;opacity:.77}.setup-code{margin-top:16px;padding:13px 16px;background:#07111a;border:1px solid rgba(255,255,255,.1);border-radius:9px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
@media(max-width:1050px){.walkthrough-workspace{grid-template-columns:1fr}.walkthrough-side{min-height:auto}.walkthrough-object-list{max-height:300px}.walkthrough-setup{grid-column:auto}}


/* =========================================================
   GridRivet v0.8 — visual system refresh
   Presentation-only overrides. Existing functional selectors
   and element IDs are intentionally preserved.
   ========================================================= */
:root{
  --bg:#080b0f;
  --bg2:#0d1117;
  --panel:#11161d;
  --panel2:#161c24;
  --line:#27313c;
  --line-strong:#354352;
  --text:#f4f7f9;
  --muted:#8e9aa6;
  --accent:#00c2ff;
  --accent2:#0088ff;
  --ok:#42d392;
  --warn:#f1b84b;
  --danger:#ff666d;
  --shadow:0 20px 55px rgba(0,0,0,.34);
  --shadow-soft:0 8px 24px rgba(0,0,0,.22);
}
html,body{background:var(--bg);color:var(--text)}
body{
  background:
    radial-gradient(circle at 85% -10%,rgba(0,136,255,.08),transparent 30rem),
    linear-gradient(180deg,#080b0f 0,#0a0e13 100%);
}
.boot-screen{
  background:
    radial-gradient(circle at 50% 35%,rgba(0,194,255,.12),transparent 28rem),
    #080b0f;
}
.boot-mark,.brand-mark{
  border-radius:8px;
  background:linear-gradient(145deg,#0f151c,#1a242e);
  border:1px solid #3b4b59;
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 10px 28px rgba(0,0,0,.35);
  position:relative;
}
.boot-mark::after,.brand-mark::after{
  content:"";
  position:absolute;
  left:8px;right:8px;bottom:6px;height:2px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  border-radius:2px;
}
.auth-shell{
  background:
    linear-gradient(rgba(8,11,15,.86),rgba(8,11,15,.96)),
    radial-gradient(circle at 30% 20%,#193247,transparent 40%);
}
.auth-panel{
  background:rgba(15,20,27,.96);
  border:1px solid #303b47;
  border-radius:14px;
  box-shadow:0 30px 90px rgba(0,0,0,.48);
}
.auth-brand h1,.brand-inline strong{letter-spacing:.19em}
.security-note{background:#101a22;border-color:#294354;border-left-color:var(--accent)}
input,select,textarea{
  background:#0b1016;
  border-color:#2a3540;
  border-radius:7px;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(0,194,255,.11);
}
.btn{
  border-radius:7px;
  background:#151c24;
  border-color:#303b47;
  box-shadow:0 1px 0 rgba(255,255,255,.025);
}
.btn:hover{filter:none;border-color:#4a5b6b;background:#1a222c}
.btn.primary{
  color:#061017;
  background:linear-gradient(135deg,#00c2ff,#2396ff);
  border-color:#3dcfff;
  box-shadow:0 8px 22px rgba(0,136,255,.16);
}
.btn.primary:hover{background:linear-gradient(135deg,#20cbff,#3aa3ff)}
.app-shell{background:transparent}
.topbar{
  height:64px;
  background:rgba(10,14,19,.96);
  border-bottom:1px solid #26313c;
  backdrop-filter:blur(14px);
}
.role-pill{
  border-radius:5px;
  border-color:#314555;
  background:#101820;
  color:#a9dff2;
}
.workspace{grid-template-columns:232px 1fr;min-height:calc(100vh - 64px)}
.sidebar{
  background:linear-gradient(180deg,#0b0f14,#0d1218);
  border-right-color:#242e38;
  padding:18px 11px;
  gap:4px;
}
.nav-btn{
  position:relative;
  border-radius:6px;
  color:#8e9aa6;
  padding:11px 13px 11px 16px;
  letter-spacing:.01em;
}
.nav-btn:hover{background:#121820;color:#dce4ea}
.nav-btn.active{
  background:linear-gradient(90deg,rgba(0,194,255,.11),rgba(0,136,255,.035));
  color:#f5fbff;
  border:1px solid #263d4c;
}
.nav-btn.active::before{
  content:"";
  position:absolute;
  left:-1px;top:7px;bottom:7px;width:3px;
  background:linear-gradient(var(--accent),var(--accent2));
  border-radius:0 3px 3px 0;
}
.main{padding:30px 34px 42px}
.section-head{margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #202a33}
.section-head h2{font-size:29px;letter-spacing:-.025em}
.eyebrow{color:#58cfff!important;letter-spacing:.18em}
.operation-grid{gap:14px}
.operation-card,.panel,.empty-card,.mini-stat{
  background:linear-gradient(155deg,#11171e,#0f141a);
  border-color:#29343e;
  border-radius:10px;
  box-shadow:var(--shadow-soft);
}
.operation-card{padding:19px;border-top:1px solid #35424d}
.operation-card:hover{
  border-color:#3b596b;
  transform:translateY(-2px);
  box-shadow:0 16px 38px rgba(0,0,0,.3);
}
.status-badge{
  border-radius:4px;
  background:#102632;
  border:1px solid #234657;
  color:#8edfff;
}
.panel{padding:20px}
.mini-stat{border-radius:8px;position:relative;overflow:hidden}
.mini-stat::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:2px;
  background:linear-gradient(var(--accent),var(--accent2));opacity:.75;
}
.mini-stat strong{letter-spacing:-.04em}
.roster-panel,.assignment-shell{border-radius:10px}
.roster-table th{background:#0d1218;color:#83a8bb}
.roster-table tbody tr:hover{background:#121a22}
.assignment-card{
  background:#0d1319;
  border-radius:8px;
  border-color:#28343e;
}
.assigned-chips span{border-radius:5px;background:#111f29}
.icon-btn{border-radius:5px;background:#121b23}
dialog{border-radius:11px;background:#0f151c;border-color:#35414d}
.toast{border-radius:7px;background:#111d26;border-color:#36576a}

/* Map shell */
.map-workspace{grid-template-columns:300px minmax(0,1fr);gap:14px}
.map-toolbox{background:#0e141a}
.map-tool-grid{gap:7px}
.map-tool-grid button{
  min-height:64px;
  border-radius:7px;
  background:#111820;
  border-color:#29343e;
}
.map-tool-grid button:hover,.map-tool-grid button.active{
  border-color:#278eb5;
  background:linear-gradient(145deg,rgba(0,194,255,.10),rgba(0,136,255,.06));
  transform:none;
}
.tool-symbol{border-radius:5px;background:#161e26}
.map-stage{border-radius:10px}
.map-toolbar{background:#0d1319;border-bottom:1px solid #27323c}
.novagrid-map-icon{border-radius:5px}
.map-help{border-top-color:#26313b}
.map-object-summary{border-radius:7px;background:#090d12;border:1px solid #242e38}
.map-tool-divider{height:1px;background:#26313b;margin:18px 0}
.map-area-heading span{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-top:-5px}
.map-area-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}
.map-area-tool-grid button{
  min-height:42px;padding:8px;
  border:1px solid #2b3741;border-radius:6px;
  background:#111820;color:#c9d4dc;
  font:inherit;font-size:11px;font-weight:750;cursor:pointer;
}
.map-area-tool-grid button:hover,.map-area-tool-grid button.active{
  border-color:#278eb5;
  color:#f5fbff;
  background:rgba(0,194,255,.09);
}
.map-area-tool-grid button:disabled{opacity:.35;cursor:not-allowed}
.area-draw-actions{display:flex;gap:7px;margin:10px 0 14px}
.area-draw-actions .btn{flex:1;padding:8px 9px;font-size:11px}
.gridrivet-area-tooltip{
  background:#0c1218!important;color:#f1f6f9!important;
  border:1px solid #3b4a56!important;border-radius:5px!important;
  box-shadow:0 8px 20px rgba(0,0,0,.3)!important;
}
.gridrivet-area-tooltip::before{display:none}

/* 3D */
.walkthrough-stage{
  border-radius:10px;
  background:#080c10;
  border-color:#2a3540;
  box-shadow:var(--shadow-soft);
}
.walkthrough-statusbar>div{
  background:rgba(8,12,17,.9);
  border-color:rgba(132,160,178,.24);
  border-radius:7px;
}
.walkthrough-object-list button{border-radius:6px!important}

/* Responsive additions */
@media(max-width:1000px){
  .map-workspace{grid-template-columns:1fr}
  .map-area-tool-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:650px){
  .map-area-tool-grid{grid-template-columns:repeat(2,1fr)}
}


/* =========================================================
   GridRivet v0.8.1 — Operational Map usability hotfix
   Keeps all map functionality; reduces visible tool density.
   ========================================================= */
.map-workspace{
  align-items:stretch;
  min-height:0;
}
.map-toolbox{
  padding:0;
  display:flex;
  flex-direction:column;
  height:clamp(520px,calc(100vh - 205px),720px);
  min-height:0;
  overflow:hidden;
  position:sticky;
  top:82px;
}
.map-toolbox-head{
  padding:15px 16px 12px;
  border-bottom:1px solid #27323c;
  flex:0 0 auto;
}
.map-toolbox-head h3{margin:2px 0 3px;font-size:17px}
.map-toolbox-hint{
  display:block;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}
.map-tool-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  padding:8px 10px 0;
  background:#0c1218;
  flex:0 0 auto;
}
.map-tool-tab{
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:#8997a3;
  padding:9px 7px 8px;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.map-tool-tab:hover{color:#dbe7ed}
.map-tool-tab.active{
  color:#eefaff;
  border-bottom-color:var(--accent);
}
.map-tool-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:12px;
  scrollbar-width:thin;
  scrollbar-color:#33434f #0d1319;
}
.map-tool-scroll::-webkit-scrollbar{width:8px}
.map-tool-scroll::-webkit-scrollbar-track{background:#0d1319}
.map-tool-scroll::-webkit-scrollbar-thumb{background:#33434f;border-radius:8px}
.map-tool-panel{display:none}
.map-tool-panel.active{display:block}
.map-panel-intro{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0 0 10px;
}
.map-panel-intro strong{font-size:12px}
.map-panel-intro span{font-size:10px;color:var(--muted);line-height:1.35}
.map-tool-grid{
  margin:0;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.map-tool-grid button{
  min-height:56px;
  padding:7px 5px;
  gap:3px;
}
.map-tool-grid button span{font-size:10px}
.tool-symbol{width:26px;height:26px}
.tool-symbol svg{width:18px;height:18px}
.map-area-tool-grid{
  margin:0;
  grid-template-columns:1fr;
  gap:6px;
}
.map-area-tool-grid button{
  min-height:38px;
  text-align:left;
  padding:8px 10px;
}
.area-draw-actions{
  position:sticky;
  bottom:0;
  z-index:2;
  padding-top:10px;
  margin:0;
  background:linear-gradient(180deg,rgba(14,20,26,0),#0e141a 22%);
}
.map-toolbox-footer{
  flex:0 0 auto;
  padding:10px 12px 12px;
  border-top:1px solid #27323c;
  background:#0b1015;
}
.map-help{
  border-top:0;
  padding-top:0;
  gap:2px;
}
.map-help strong{font-size:11px}
.map-help span{font-size:10px}
.map-toolbox-footer #cancelMapPlacement{
  width:100%;
  margin-top:8px;
  padding:7px 9px;
  font-size:11px;
}
.map-object-summary{
  margin-top:8px;
  padding:8px 10px;
}
.map-object-summary span{font-size:10px;color:var(--muted)}
.map-object-summary strong{font-size:18px}
.map-stage{
  height:clamp(520px,calc(100vh - 205px),720px);
  min-height:0;
  display:flex;
  flex-direction:column;
}
.map-toolbar{
  flex:0 0 auto;
  min-height:52px;
  padding:10px 13px;
}
#operationalMap{
  flex:1 1 auto;
  height:auto;
  min-height:0;
}
@media(max-height:760px) and (min-width:1001px){
  .main{padding-top:20px}
  .section-head{margin-bottom:14px;padding-bottom:12px}
  .section-head h2{font-size:25px}
  .map-toolbox,.map-stage{height:calc(100vh - 170px)}
}
@media(max-width:1000px){
  .map-toolbox{
    position:relative;
    top:auto;
    height:auto;
    max-height:none;
  }
  .map-tool-scroll{
    max-height:330px;
  }
  .map-stage{height:600px}
  .map-area-tool-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:650px){
  .map-area-tool-grid{grid-template-columns:1fr}
  .map-stage{height:520px}
}


/* =========================================================
   GridRivet v0.8.2 — command workspace usability refresh
   ========================================================= */

/* Clearer navigation hierarchy */
.sidebar{gap:2px}
.nav-group-label{
  margin:14px 11px 5px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
  color:#586673;
  user-select:none;
}
.nav-group-label:first-child{margin-top:2px}
.nav-btn{padding:10px 13px 10px 16px;font-size:12px}
.sidebar-bottom{margin-top:auto}

/* Current operation stays visible without crowding the page */
.current-operation-context{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-width:0;
  max-width:260px;
  padding-right:4px;
}
.current-operation-context span{
  font-size:8px;
  font-weight:900;
  letter-spacing:.14em;
  color:#667987;
}
.current-operation-context strong{
  max-width:250px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin-top:2px;
  font-size:11px;
  color:#d9e8ef;
}

/* Slightly calmer page density */
.main{max-width:1800px;width:100%;margin:0 auto}
.section-head{align-items:center}
.section-head>div:first-child{max-width:900px}
.section-head h2{margin-top:2px}
.section-head p:not(.eyebrow){font-size:12px;line-height:1.45}

/* Map becomes the dominant workspace */
.map-workspace{
  grid-template-columns:300px minmax(0,1fr);
  position:relative;
  transition:grid-template-columns .18s ease;
}
.map-workspace.tools-collapsed{
  grid-template-columns:0 minmax(0,1fr);
  gap:0;
}
.map-workspace.tools-collapsed .map-toolbox{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  width:0;
  padding:0;
  border:0;
  overflow:hidden;
}
.map-tools-rail{
  position:absolute;
  z-index:8;
  left:8px;
  top:10px;
  width:30px;
  height:44px;
  border:1px solid #334451;
  border-radius:6px;
  background:rgba(10,15,20,.94);
  color:#9edfff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 7px 20px rgba(0,0,0,.28);
}
.map-tools-rail:hover{border-color:#4f7083;background:#111a22}
.map-toolbox-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.map-tools-toggle{
  flex:0 0 auto;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid #30404b;
  border-radius:5px;
  background:#111820;
  color:#91cce3;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.map-tools-toggle:hover{border-color:#4b6878;background:#17212a}
.map-stage{box-shadow:0 14px 40px rgba(0,0,0,.26)}
.map-toolbar strong{font-size:12px;letter-spacing:.01em}
.map-toolbar span{font-size:10px}
#operationalMap{min-height:520px}

/* Reduce nonessential visual weight inside map tools */
.map-toolbox .eyebrow{font-size:9px!important}
.map-toolbox h3{font-weight:780}
.map-toolbox-footer{background:#090e13}
.map-panel-intro{margin-bottom:8px}
.map-panel-intro strong{font-size:11px}
.map-panel-intro span{font-size:9px}

/* Panels/cards slightly flatter and more work-oriented */
.panel,.operation-card,.empty-card,.mini-stat{box-shadow:0 7px 20px rgba(0,0,0,.18)}
.operation-card:hover{box-shadow:0 12px 26px rgba(0,0,0,.24)}
.operation-card h3{font-size:16px}
.operation-card .meta{margin-top:13px}

/* Responsive behavior */
@media(max-width:1100px){
  .current-operation-context{display:none}
}
@media(max-width:1000px){
  .map-workspace,.map-workspace.tools-collapsed{grid-template-columns:1fr;gap:14px}
  .map-workspace.tools-collapsed .map-toolbox{
    display:none;
  }
  .map-tools-rail{
    left:8px;
    top:8px;
  }
}


/* =========================================================
   GridRivet v0.8.3 — modern 3D object editor
   ========================================================= */
.walkthrough-object-editor{margin-top:12px}
.walk-editor-shell{
  border:1px solid #2c3944;
  border-radius:10px;
  background:#0c1218;
  overflow:hidden;
  box-shadow:0 12px 32px rgba(0,0,0,.24);
}
.walk-add-tray{
  border-bottom:1px solid #25313a;
  background:#0a1015;
}
.walk-add-tray summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
  user-select:none;
}
.walk-add-tray summary::-webkit-details-marker{display:none}
.walk-add-tray summary span:first-child{display:flex;flex-direction:column;gap:2px}
.walk-add-tray summary small{
  color:#657582;
  font-size:8px;
  font-weight:900;
  letter-spacing:.15em;
}
.walk-add-tray summary strong{font-size:12px;color:#dce8ee}
.walk-add-plus{
  width:26px;height:26px;display:grid;place-items:center;
  border:1px solid #30404b;border-radius:5px;
  color:#88dfff;background:#101820;font-size:18px;
  transition:transform .16s ease;
}
.walk-add-tray[open] .walk-add-plus{transform:rotate(45deg)}
.walk-add-content{padding:0 12px 12px}
.walk-place-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.walk-place-tool{
  min-height:36px;
  padding:7px 8px;
  border:1px solid #293641;
  border-radius:6px;
  background:#111820;
  color:#b9c7d0;
  font:inherit;
  font-size:10px;
  font-weight:750;
  text-align:left;
  cursor:pointer;
}
.walk-place-tool:hover{border-color:#3f5968;color:#eef8fc;background:#151e26}
.walk-place-tool.active{
  border-color:#168eb8;
  background:rgba(0,194,255,.09);
  color:#e9faff;
}
.walk-placement-bar{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-top:9px;padding-top:9px;border-top:1px solid #202b33;
}
.walk-placement-bar span{font-size:9px;color:#7f909c;line-height:1.35}
.walk-mini-btn{
  flex:0 0 auto;
  border:1px solid #344450;border-radius:5px;background:#121a21;
  color:#ccd8df;padding:5px 8px;font-size:9px;font-weight:800;cursor:pointer;
}
.walk-inspector{padding:14px}
.walk-inspector-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  margin-bottom:8px;
}
.walk-selected-title{display:flex;flex-direction:column;gap:3px;min-width:0}
.walk-selected-title span,.walk-heading-readout span{
  font-size:8px;font-weight:900;letter-spacing:.15em;color:#667784;
}
.walk-selected-title strong{
  font-size:14px;color:#eef5f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.walk-heading-readout{
  flex:0 0 auto;min-width:58px;padding:6px 8px;border:1px solid #2b3944;
  border-radius:6px;background:#0a1015;text-align:right;
}
.walk-heading-readout strong{display:block;margin-top:1px;font-size:15px;color:#7fdfff}
.walk-editor-help{
  color:#71828e;font-size:10px;line-height:1.45;
  padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #202b33;
}
.walk-control-section{padding:10px 0;border-bottom:1px solid #202b33}
.walk-control-section:last-of-type{border-bottom:0}
.walk-control-label{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:9px;
}
.walk-control-label>span{
  font-size:9px;font-weight:900;letter-spacing:.13em;color:#81929e;
}
.walk-control-label small{font-size:9px;color:#60717c;text-align:right}
.walk-control-label>strong{font-size:11px;color:#9adff6}
.walk-hidden-select{
  position:absolute!important;
  width:1px!important;height:1px!important;
  opacity:0!important;pointer-events:none!important;
}
.walk-step-segment{
  display:flex;border:1px solid #2b3944;border-radius:5px;overflow:hidden;
}
.walk-step-segment button{
  border:0;border-right:1px solid #2b3944;background:#10171e;color:#71818c;
  padding:5px 8px;font:inherit;font-size:9px;font-weight:800;cursor:pointer;
}
.walk-step-segment button:last-child{border-right:0}
.walk-step-segment button.active{background:#16303c;color:#9fe7ff}
.walk-move-pad{
  width:154px;height:154px;margin:5px auto 0;
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  grid-template-rows:1fr 1fr 1fr;
  gap:6px;
}
.walk-pad-btn,.walk-pad-center{
  border:1px solid #33434f;
  background:linear-gradient(145deg,#131b23,#0f151b);
  color:#dce8ee;
  cursor:pointer;
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.walk-pad-btn{
  width:46px;height:46px;border-radius:10px;font-size:22px;
  display:grid;place-items:center;
}
.walk-pad-btn:hover,.walk-pad-center:hover{border-color:#3d6b7e;background:#15232c}
.walk-pad-btn.north{grid-column:2;grid-row:1}
.walk-pad-btn.west{grid-column:1;grid-row:2}
.walk-pad-btn.east{grid-column:3;grid-row:2}
.walk-pad-btn.south{grid-column:2;grid-row:3}
.walk-pad-center{
  grid-column:2;grid-row:2;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:0;color:#8fe1fb;
}
.walk-pad-center span{font-size:19px;line-height:1}
.walk-pad-center small{font-size:7px;font-weight:900;letter-spacing:.08em;margin-top:3px}
.walk-pad-btn:disabled,.walk-pad-center:disabled{opacity:.28;cursor:not-allowed}
.walk-rotation-row{display:grid;grid-template-columns:40px 1fr 40px;gap:8px;align-items:center}
.walk-heading-control{display:grid;grid-template-columns:1fr 62px;gap:8px;align-items:center}
.walk-icon-control{
  height:38px;border:1px solid #33434f;border-radius:7px;background:#111820;
  color:#dce8ee;font-size:18px;cursor:pointer;
}
.walk-icon-control.compact{width:38px}
.walk-icon-control:hover{border-color:#3d6b7e;background:#15232c}
.walk-icon-control:disabled{opacity:.28;cursor:not-allowed}
.walk-number-field{
  height:36px;display:flex;align-items:center;border:1px solid #2d3b46;
  border-radius:6px;background:#090f14;overflow:hidden;
}
.walk-number-field input{
  width:100%;border:0!important;background:transparent!important;padding:7px 4px 7px 9px!important;
  box-shadow:none!important;text-align:right;font-size:11px;
}
.walk-number-field span{padding-right:8px;font-size:10px;color:#738490}
.walk-scale-row{display:grid;grid-template-columns:38px 1fr 38px;gap:8px;align-items:center}
.walk-heading-control input[type="range"],.walk-scale-row input[type="range"]{
  appearance:none;
  width:100%;
  height:4px;
  border:0;
  border-radius:999px;
  padding:0;
  background:#27343d;
  outline:none;
}
.walk-heading-control input[type="range"]::-webkit-slider-thumb,
.walk-scale-row input[type="range"]::-webkit-slider-thumb{
  appearance:none;
  width:16px;height:16px;border-radius:50%;
  background:#8fe3ff;border:3px solid #123141;
  box-shadow:0 0 0 1px #46c7f2;
  cursor:pointer;
}
.walk-heading-control input[type="range"]::-moz-range-thumb,
.walk-scale-row input[type="range"]::-moz-range-thumb{
  width:12px;height:12px;border-radius:50%;
  background:#8fe3ff;border:3px solid #123141;cursor:pointer;
}
.walk-editor-actions{
  display:grid;grid-template-columns:.8fr 1.2fr;gap:8px;
  padding-top:13px;
}
.walk-editor-actions .btn{min-height:38px}
.walk-editor-actions .btn.primary{font-size:11px}
.walk-editor-actions .btn.ghost{font-size:10px}

/* Give the 3D right rail enough room for the inspector without overwhelming the map */
.walkthrough-workspace{grid-template-columns:minmax(0,1fr) 320px}
@media(max-width:1050px){
  .walkthrough-workspace{grid-template-columns:1fr}
  .walk-editor-shell{max-width:none}
  .walk-place-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .walk-move-pad{margin-left:0}
}
@media(max-width:650px){
  .walk-place-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .walk-heading-control{grid-template-columns:1fr 58px}
}


/* =========================================================
   GridRivet v0.8.3.1 — 3D editor position usability hotfix
   Keep selected-object controls immediately beside the map.
   ========================================================= */
.walkthrough-side{
  min-height:690px;
  max-height:690px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.walkthrough-side>div:first-child{
  flex:0 0 auto;
}
.walkthrough-object-editor{
  flex:0 0 auto;
  margin-top:10px;
  margin-bottom:10px;
}
.walk-editor-shell{
  max-height:500px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#33434f #0d1319;
}
.walk-editor-shell::-webkit-scrollbar{width:7px}
.walk-editor-shell::-webkit-scrollbar-track{background:#0d1319}
.walk-editor-shell::-webkit-scrollbar-thumb{background:#33434f;border-radius:8px}
.walkthrough-object-list{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow:auto;
  margin-top:0;
  border-top:1px solid #202b33;
  padding-top:10px;
}

/* On shorter screens, keep the movement pad near the top and let the editor itself scroll. */
@media(max-height:850px) and (min-width:1051px){
  .walkthrough-side{
    min-height:620px;
    max-height:620px;
  }
  .walk-editor-shell{
    max-height:435px;
  }
  .walk-move-pad{
    width:138px;
    height:138px;
  }
  .walk-pad-btn{
    width:42px;
    height:42px;
  }
}

/* Tablet/stacked layout: editor remains before the object list. */
@media(max-width:1050px){
  .walkthrough-side{
    min-height:auto;
    max-height:none;
    overflow:visible;
  }
  .walk-editor-shell{
    max-height:none;
    overflow:visible;
  }
  .walkthrough-object-list{
    max-height:260px;
  }
}


/* =========================================================
   GridRivet v0.8.3.3 — remove 3D scene overlay
   Native Google 3D controls now have an unobstructed map.
   ========================================================= */
.walkthrough-tip{display:none!important}


/* =========================================================
   GridRivet v0.9 — Command UI visual refresh
   Visual only. Existing IDs, handlers, data model, auth,
   Firestore, maps, 3D scene, Street View, and imports remain.
   ========================================================= */
:root{
  --bg:#0a1520;
  --bg2:#0f1e2b;
  --panel:#102333;
  --panel2:#142b3d;
  --panel3:#193247;
  --line:#28506a;
  --line-strong:#3b7697;
  --text:#f4fbff;
  --muted:#89a7b8;
  --accent:#16d6ff;
  --accent2:#0597ff;
  --accent-soft:rgba(22,214,255,.12);
  --accent-glow:0 0 24px rgba(22,214,255,.15);
  --shadow:0 18px 50px rgba(0,0,0,.30);
  --shadow-soft:0 8px 22px rgba(0,0,0,.20);
}
html,body,
button,input,select,textarea{
  font-family:Bahnschrift,"Segoe UI Variable Display","Segoe UI",Arial,sans-serif;
}
body{
  background:
    linear-gradient(rgba(13,43,62,.20) 1px,transparent 1px),
    linear-gradient(90deg,rgba(13,43,62,.20) 1px,transparent 1px),
    radial-gradient(circle at 72% -10%,rgba(0,166,255,.16),transparent 34rem),
    linear-gradient(180deg,#0b1722 0,#0a141e 100%);
  background-size:38px 38px,38px 38px,auto,auto;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(74,201,255,.025),transparent 22%);
  z-index:-1;
}
.gridrivet-logo-svg{width:100%;height:100%;display:block}
.boot-mark,.brand-mark{
  background:linear-gradient(155deg,#152938,#0a1620);
  border:1px solid #3c718d;
  overflow:hidden;
  padding:5px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(0,194,255,.04),
    0 10px 30px rgba(0,0,0,.28);
}
.brand-mark.small{padding:3px}
.brand-inline>div:last-child strong,
.auth-brand h1,
.boot-screen strong{
  font-family:Bahnschrift,"Segoe UI Variable Display",sans-serif;
  font-stretch:condensed;
  font-weight:700;
  letter-spacing:.24em;
  text-transform:uppercase;
}
.brand-inline>div:last-child span,
.boot-screen span{
  color:#6ddfff;
  font-size:9px;
  font-weight:700;
  letter-spacing:.24em;
  text-transform:uppercase;
}
.topbar{
  min-height:76px;
  background:
    radial-gradient(circle at 58% -120%,rgba(0,192,255,.22),transparent 35%),
    linear-gradient(180deg,rgba(10,27,40,.98),rgba(8,21,31,.98));
  border-bottom:1px solid #1f516d;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.topbar::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;height:1px;
  background:linear-gradient(90deg,transparent,#11cfff 22%,rgba(17,207,255,.12) 65%,transparent);
}
.topbar{position:relative}
.current-operation-context{
  background:linear-gradient(180deg,#102a3b,#0d2332);
  border:1px solid #27617e;
  border-radius:8px;
  min-width:190px;
  box-shadow:inset 3px 0 0 #15d1ff;
}
.current-operation-context span{color:#55dafa;font-size:8px;letter-spacing:.14em}
.current-operation-context strong{font-size:11px;letter-spacing:.02em}
.workspace{
  grid-template-columns:228px minmax(0,1fr);
}
.sidebar{
  background:
    radial-gradient(circle at 0 20%,rgba(0,165,255,.10),transparent 18rem),
    linear-gradient(180deg,#0c1c29 0,#091722 100%);
  border-right:1px solid #1d4962;
  box-shadow:12px 0 30px rgba(0,0,0,.12);
  padding-top:14px;
}
.nav-group-label{
  color:#4f91b6;
  font-size:9px;
  font-weight:800;
  letter-spacing:.16em;
  padding:18px 18px 7px;
}
.nav-btn{
  position:relative;
  display:flex;
  align-items:center;
  gap:11px;
  width:calc(100% - 12px);
  min-height:44px;
  margin:2px 6px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:#99bbce;
  font-size:12px;
  font-weight:650;
  letter-spacing:.01em;
  text-align:left;
  transition:.16s ease;
}
.nav-btn:hover{
  color:#eafaff;
  background:rgba(17,151,211,.08);
  border-color:rgba(32,135,182,.18);
}
.nav-btn.active{
  color:#72e7ff;
  background:linear-gradient(90deg,rgba(0,153,226,.20),rgba(0,107,171,.08));
  border-color:#087eae;
  box-shadow:inset 3px 0 0 #19d6ff,0 0 18px rgba(0,176,255,.08);
}
.nav-icon{
  width:20px;height:20px;display:grid;place-items:center;flex:0 0 20px;
  color:#5ebbe7;
}
.nav-icon svg{
  width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;
  stroke-linecap:round;stroke-linejoin:round;
}
.nav-btn.active .nav-icon{color:#22dbff}
.sidebar-bottom{
  border-top:1px solid #1f4257;
  background:rgba(4,14,22,.32);
}
.main{
  padding:20px 22px 28px;
}
.section-head{
  border-bottom:1px solid #1e4259;
  padding-bottom:14px;
  margin-bottom:16px;
}
.section-head h2{
  font-size:27px;
  font-weight:750;
  letter-spacing:.015em;
  margin-top:2px;
}
.eyebrow{
  color:#19d5ff!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.18em!important;
}
.panel,.empty-card,.operation-card,.assignment-card,.stat-card{
  background:
    linear-gradient(180deg,rgba(20,43,59,.96),rgba(13,31,44,.96));
  border:1px solid #24506a;
  border-radius:9px;
  box-shadow:0 12px 28px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.025);
}
.panel:hover,.operation-card:hover{
  border-color:#32708f;
}
.btn{
  border-radius:7px;
  border-color:#2a536a;
  background:linear-gradient(180deg,#17334a,#10283a);
  min-height:36px;
  font-size:11px;
  letter-spacing:.02em;
}
.btn:hover{
  filter:none;
  border-color:#39799a;
  background:linear-gradient(180deg,#1b405b,#133147);
}
.btn.primary{
  background:linear-gradient(180deg,#12aef0,#0784d8);
  border-color:#27caff;
  color:white;
  box-shadow:0 5px 18px rgba(0,154,255,.18),inset 0 1px rgba(255,255,255,.18);
}
.btn.primary:hover{background:linear-gradient(180deg,#25c5ff,#0a94e7)}
.btn.ghost{background:rgba(8,25,36,.50)}
input,select,textarea{
  background:#0b1c29;
  border-color:#285069;
  border-radius:7px;
}
input:focus,select:focus,textarea:focus{
  border-color:#13c4ef;
  box-shadow:0 0 0 2px rgba(19,196,239,.12);
}
.role-pill{
  border:1px solid #285d78;
  background:#102838;
  color:#68dcfb;
  border-radius:6px;
  letter-spacing:.10em;
}

/* Operational map gets the same command-screen treatment */
.map-workspace{
  grid-template-columns:270px minmax(0,1fr);
  gap:12px;
}
.map-toolbox{
  background:linear-gradient(180deg,#10283a,#0d2231);
}
.map-toolbox-head,
.map-toolbar{
  border-bottom:1px solid #234e67;
}
.map-tool-tab{
  border-radius:6px!important;
}
.map-tool-tab.active{
  background:#123f58!important;
  color:#65e0ff!important;
  border-color:#1aa9d4!important;
}
.map-tool-grid button,
.area-tool-grid button{
  border-radius:7px!important;
  background:#102638!important;
  border-color:#27516a!important;
}
.map-tool-grid button:hover,
.map-tool-grid button.active,
.area-tool-grid button:hover,
.area-tool-grid button.active{
  border-color:#1cc9f4!important;
  background:#14384d!important;
  box-shadow:0 0 0 1px rgba(28,201,244,.08),0 0 16px rgba(28,201,244,.07);
}
.map-stage{
  border-color:#2a6381;
  box-shadow:0 18px 40px rgba(0,0,0,.24);
}
#operationalMap{
  background:#0a1b28;
}

/* 3D scene: map first, inspector second */
.walkthrough-workspace{
  grid-template-columns:minmax(0,1fr) 320px;
  gap:12px;
}
.walkthrough-stage{
  border-radius:9px;
  border-color:#2a6887;
  box-shadow:0 18px 44px rgba(0,0,0,.28),0 0 0 1px rgba(0,185,255,.03);
}
.walkthrough-statusbar{
  top:10px;left:10px;right:10px;
}
.walkthrough-statusbar>div{
  background:rgba(6,25,37,.86);
  border-color:#2e617c;
  border-radius:7px;
  box-shadow:0 8px 24px rgba(0,0,0,.20);
}
.walkthrough-side{
  background:linear-gradient(180deg,#10293b,#0c2130);
  border-color:#2b617d;
  border-radius:9px;
}
.walkthrough-side>div:first-child{
  padding-bottom:11px;
  border-bottom:1px solid #224a60;
}
.walkthrough-side h3{font-size:15px;letter-spacing:.025em}
.walk-object{
  border-radius:6px;
  background:#10283a;
  border-color:#285069;
}
.walk-object:hover,.walk-object.active{
  background:#13364b;
  border-color:#18bce7;
}
.walk-object-mark{background:#22d8ff;box-shadow:0 0 9px rgba(34,216,255,.45)}
.walk-editor-shell{
  border-radius:8px!important;
  border-color:#2c627d!important;
  background:#0c2231!important;
}
.walk-add-tray{
  background:#0a1d2a!important;
  border-color:#214a60!important;
}
.walk-add-plus{
  border-radius:5px!important;
  background:#113348!important;
  border-color:#2e6682!important;
}
.walk-place-tool{
  border-radius:5px!important;
  background:#102c3f!important;
  border-color:#28546e!important;
}
.walk-place-tool:hover,.walk-place-tool.active{
  background:#143b51!important;
  border-color:#1bc5ef!important;
}
.walk-heading-readout{
  background:#091c28!important;
  border-color:#2b5b73!important;
}
.walk-heading-readout strong,
.walk-control-label>strong{
  color:#54ddff!important;
}
.walk-step-segment button.active{
  background:#10435c!important;
  color:#72e7ff!important;
}
.walk-pad-btn,.walk-pad-center,.walk-icon-control{
  background:linear-gradient(180deg,#17364a,#10293a)!important;
  border-color:#2c617d!important;
  border-radius:7px!important;
}
.walk-pad-center{
  border-radius:50%!important;
  border-color:#17bce9!important;
  color:#6ae5ff!important;
  box-shadow:0 0 18px rgba(0,190,255,.10);
}
.walk-pad-btn:hover,.walk-pad-center:hover,.walk-icon-control:hover{
  background:#19445b!important;
  border-color:#22cef6!important;
}

/* Futuristic but readable hierarchy */
h1,h2,h3,.brand-inline strong,.nav-group-label,.eyebrow,
button,.role-pill,.mini-stat strong,.stat-card strong{
  font-family:Bahnschrift,"Segoe UI Variable Display","Segoe UI",sans-serif;
}
h1,h2,h3{font-stretch:condensed}
p,.muted,label,small,textarea,input,select{
  font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
}

/* Cleaner login/boot to match product identity */
.auth-shell{
  background:
    linear-gradient(rgba(19,72,99,.15) 1px,transparent 1px),
    linear-gradient(90deg,rgba(19,72,99,.15) 1px,transparent 1px),
    radial-gradient(circle at 50% 15%,rgba(0,193,255,.18),transparent 30rem),
    linear-gradient(145deg,#08141e,#0b1d2a 60%,#07131d);
  background-size:42px 42px,42px 42px,auto,auto;
}
.auth-panel{
  border-radius:12px;
  background:rgba(12,31,44,.95);
  border-color:#2b617e;
}
.security-note{
  border-radius:7px;
  background:#0d2b3c;
  border-color:#2b6685;
}
.boot-screen{
  background:
    linear-gradient(rgba(19,72,99,.14) 1px,transparent 1px),
    linear-gradient(90deg,rgba(19,72,99,.14) 1px,transparent 1px),
    radial-gradient(circle at 50% 40%,rgba(0,193,255,.15),transparent 22rem),
    #08131d;
  background-size:44px 44px,44px 44px,auto,auto;
}

@media(max-width:1100px){
  .workspace{grid-template-columns:205px minmax(0,1fr)}
  .walkthrough-workspace{grid-template-columns:1fr}
}
@media(max-width:760px){
  .workspace{grid-template-columns:1fr}
  .sidebar{border-right:0;border-bottom:1px solid #204b63}
  .nav-btn{width:auto}
  .main{padding:16px}
}


/* =========================================================
   GridRivet v0.9.1 — command scene refinement
   ========================================================= */

/* Compact page headers like a real operations console */
.command-view-head{
  min-height:76px;
  align-items:center;
  margin:-4px 0 12px;
  padding:10px 12px 12px;
  border:1px solid #25536d;
  border-radius:9px;
  background:
    linear-gradient(90deg,rgba(17,73,100,.20),transparent 35%),
    linear-gradient(180deg,#10283a,#0d2130);
  box-shadow:0 10px 28px rgba(0,0,0,.14);
}
.command-view-title{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.command-view-title h2{
  font-size:24px;
  margin:1px 0 2px;
  letter-spacing:.02em;
}
.command-view-title p:last-child{
  font-size:11px;
}
.command-view-icon{
  width:44px;height:44px;
  flex:0 0 44px;
  display:grid;place-items:center;
  border:1px solid #1aa4ce;
  border-radius:9px;
  color:#52defc;
  background:linear-gradient(180deg,#123a50,#0d2b3c);
  box-shadow:inset 0 1px rgba(255,255,255,.05),0 0 20px rgba(21,201,239,.08);
}
.command-view-icon svg{
  width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.75;
  stroke-linecap:round;stroke-linejoin:round;
}
.command-view-actions .btn{
  min-width:94px;
}

/* Map gets a tighter, higher-information-density frame */
.map-workspace{
  min-height:calc(100vh - 180px);
  grid-template-columns:255px minmax(0,1fr);
  gap:10px;
}
.map-toolbox{
  border-radius:8px!important;
  padding:0!important;
}
.map-toolbox-head{
  padding:12px 12px 9px!important;
}
.map-toolbox-title-row h3{
  font-size:15px!important;
}
.map-toolbox-hint{
  font-size:9px!important;
}
.map-tool-tabs{
  padding:7px!important;
  gap:5px!important;
}
.map-tool-scroll{
  padding:0 8px 8px!important;
}
.map-tool-grid{
  gap:5px!important;
}
.map-tool-grid button{
  min-height:48px!important;
  padding:7px!important;
}
.map-tool-grid button>span:last-child{
  font-size:9px!important;
}
.map-stage{
  border-radius:8px!important;
  overflow:hidden;
}
.map-toolbar{
  min-height:50px!important;
  padding:9px 12px!important;
  background:linear-gradient(180deg,#123047,#0d2638)!important;
}
.map-toolbar strong{
  font-size:12px!important;
}
.map-toolbar span{
  font-size:9px!important;
  color:#7f9cab!important;
}

/* 3D workspace now follows the mockup: stage + inspector, objects below */
.walkthrough-workspace{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  grid-template-areas:
    "stage side"
    "strip strip";
  gap:10px;
  align-items:start;
}
.walkthrough-stage{
  grid-area:stage;
  min-height:620px;
  height:calc(100vh - 255px);
  max-height:760px;
  border-radius:8px!important;
  overflow:hidden;
  position:relative;
}
#walkthrough3D{
  height:100%!important;
  min-height:620px!important;
}
.walkthrough-side{
  grid-area:side;
  min-height:620px!important;
  height:calc(100vh - 255px)!important;
  max-height:760px!important;
  padding:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  background:linear-gradient(180deg,#0f2a3c,#0b2130)!important;
}
.walk-editor-side-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 13px 10px;
  border-bottom:1px solid #22516a;
  background:linear-gradient(180deg,#13334a,#102b3e);
}
.walk-editor-side-head h3{
  margin:1px 0 0!important;
  font-size:14px;
}
.editor-live-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 7px;
  border:1px solid #24617a;
  border-radius:5px;
  background:#0c2737;
  color:#6fddfb;
  font-size:8px;
  font-weight:900;
  letter-spacing:.10em;
}
.editor-live-badge i{
  width:6px;height:6px;border-radius:50%;
  background:#35d18a;
  box-shadow:0 0 8px rgba(53,209,138,.55);
}
#walkthroughEditorMount{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
#walkthroughEditorMount .walkthrough-object-editor{
  margin:0!important;
  height:100%;
}
#walkthroughEditorMount .walk-editor-shell{
  height:100%;
  max-height:none!important;
  border:0!important;
  border-radius:0!important;
  overflow:auto!important;
  box-shadow:none!important;
}
.walk-add-tray{
  position:sticky;
  top:0;
  z-index:2;
}
.walk-inspector{
  padding:12px!important;
}
.walk-control-section{
  padding:9px 0!important;
}
.walk-move-pad{
  width:142px!important;
  height:142px!important;
}
.walk-pad-btn{
  width:43px!important;
  height:43px!important;
}
.walk-editor-actions{
  position:sticky;
  bottom:0;
  z-index:2;
  margin:0 -12px -12px;
  padding:10px 12px 12px!important;
  background:linear-gradient(180deg,rgba(12,34,49,.94),#0c2231 35%);
  border-top:1px solid #23516a;
}

/* Scene-object carousel below map + inspector */
.walkthrough-scene-strip{
  grid-area:strip;
  padding:10px 12px 12px!important;
  border-radius:8px!important;
  min-width:0;
  background:linear-gradient(180deg,#0e293b,#0b2130)!important;
}
.scene-strip-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin-bottom:8px;
}
.scene-strip-head h3{
  margin:1px 0 0;
  font-size:13px;
}
.scene-strip-head>span{
  color:#7693a4;
  font-size:9px;
}
.walkthrough-scene-strip .walkthrough-object-list{
  display:flex!important;
  flex-direction:row!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  max-height:none!important;
  min-height:104px!important;
  padding:0 0 3px!important;
  margin:0!important;
  border:0!important;
  scrollbar-width:thin;
  scrollbar-color:#315b71 #0a1d29;
}
.walkthrough-scene-strip .walkthrough-object-list::-webkit-scrollbar{
  height:7px;
}
.walkthrough-scene-strip .walkthrough-object-list::-webkit-scrollbar-track{
  background:#0a1d29;
}
.walkthrough-scene-strip .walkthrough-object-list::-webkit-scrollbar-thumb{
  background:#315b71;
  border-radius:8px;
}
.walkthrough-scene-strip .walk-object{
  flex:0 0 150px;
  min-height:92px;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:6px!important;
  padding:10px!important;
  border:1px solid #28546e!important;
  background:
    radial-gradient(circle at 80% 0,rgba(22,214,255,.07),transparent 80px),
    linear-gradient(180deg,#123047,#0e2637)!important;
}
.walkthrough-scene-strip .walk-object.active{
  border-color:#1dd2fb!important;
  box-shadow:inset 0 -2px 0 #1dd2fb,0 0 16px rgba(29,210,251,.08)!important;
}
.walkthrough-scene-strip .walk-object-mark{
  width:8px!important;height:8px!important;
  flex:0 0 8px!important;
}
.walkthrough-scene-strip .walk-object strong{
  font-size:10px!important;
}
.walkthrough-scene-strip .walk-object span{
  font-size:8px!important;
  color:#6ea2bd!important;
}

/* Brighter overall surfaces */
.panel,.empty-card,.operation-card,.assignment-card,.stat-card{
  background:
    radial-gradient(circle at 100% 0,rgba(36,143,190,.05),transparent 160px),
    linear-gradient(180deg,rgba(22,49,68,.97),rgba(13,32,45,.97))!important;
}
.main{
  background:
    radial-gradient(circle at 72% 0,rgba(20,148,207,.06),transparent 28rem),
    transparent;
}
.sidebar{
  background:
    linear-gradient(180deg,#0d2231 0,#0a1b28 100%)!important;
}
.nav-btn{
  color:#a9c6d6!important;
}
.nav-group-label{
  color:#63a7c8!important;
}
.section-head p,
.muted{
  color:#9bb5c4!important;
}
.walkthrough-statusbar{
  pointer-events:none;
}
.walkthrough-statusbar>div{
  pointer-events:auto;
  backdrop-filter:blur(8px);
}

/* Top brand feels more like a finished product */
.brand-inline{
  gap:12px!important;
}
.brand-inline .brand-mark.small{
  width:42px!important;height:42px!important;
}
.brand-inline strong{
  font-size:16px!important;
  letter-spacing:.20em!important;
}
.brand-inline span{
  color:#67d8f6!important;
  letter-spacing:.20em!important;
}

/* Responsive */
@media(max-width:1100px){
  .walkthrough-workspace{
    grid-template-columns:1fr;
    grid-template-areas:
      "stage"
      "side"
      "strip";
  }
  .walkthrough-stage,
  .walkthrough-side{
    height:auto!important;
    max-height:none!important;
    min-height:560px!important;
  }
  #walkthroughEditorMount .walk-editor-shell{
    max-height:540px!important;
  }
}
@media(max-width:760px){
  .command-view-head{
    align-items:flex-start;
  }
  .command-view-icon{
    width:38px;height:38px;flex-basis:38px;
  }
  .command-view-title h2{
    font-size:20px;
  }
  .walkthrough-stage{
    min-height:500px!important;
  }
  #walkthrough3D{
    min-height:500px!important;
  }
}


/* =========================================================
   GridRivet v0.9.2 — premium command details
   ========================================================= */

/* Top-right identity block */
.command-role-fallback{display:none!important}
.command-profile{
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  min-width:196px;
  min-height:50px;
  padding:6px 7px 6px 8px;
  border:1px solid #285a74;
  border-radius:9px;
  background:
    radial-gradient(circle at 12% 0,rgba(46,191,244,.08),transparent 70px),
    linear-gradient(180deg,#112b3e,#0d2231);
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 8px 24px rgba(0,0,0,.14);
}
.command-avatar{
  width:36px;height:36px;
  flex:0 0 36px;
  display:grid;place-items:center;
  border:1px solid #3a7b9d;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 25%,#2d718f,#12394f 55%,#0b2637 100%);
  color:#dff9ff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  box-shadow:0 0 0 2px rgba(15,205,247,.06),0 4px 14px rgba(0,0,0,.24);
}
.command-profile-copy{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.command-profile-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#eefaff;
  font-size:10px;
  letter-spacing:.01em;
}
.command-profile-copy span{
  color:#62d8f6;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
}
.command-icon-btn{
  width:30px;height:30px;
  flex:0 0 30px;
  display:grid;place-items:center;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#769aaa;
  cursor:pointer;
}
.command-icon-btn:hover{
  background:#15364a;
  border-color:#2c607b;
  color:#70e0fb;
}
.command-icon-btn svg{
  width:17px;height:17px;
  fill:currentColor;
  stroke:none;
}
.profile-quick-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:230px;
  z-index:2000;
  padding:7px;
  border:1px solid #2d637e;
  border-radius:8px;
  background:#0d2637;
  box-shadow:0 20px 50px rgba(0,0,0,.38);
}
.profile-quick-meta{
  padding:8px 9px 10px;
  margin-bottom:5px;
  border-bottom:1px solid #234b61;
}
.profile-quick-meta strong{
  display:block;
  color:#eefaff;
  font-size:10px;
}
.profile-quick-meta small{
  display:block;
  margin-top:3px;
  color:#7696a7;
  font-size:8px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.profile-menu-action{
  width:100%;
  min-height:35px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid transparent;
  border-radius:6px;
  padding:7px 9px;
  background:transparent;
  color:#a8c4d3;
  font:inherit;
  font-size:9px;
  font-weight:750;
  text-align:left;
  cursor:pointer;
}
.profile-menu-action:hover{
  background:#14374c;
  color:#ecfaff;
  border-color:#285b75;
}
.profile-menu-action svg{
  width:15px;height:15px;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.profile-menu-action.danger-soft:hover{
  color:#ffc3c3;
  border-color:#71414b;
  background:#38222a;
}

/* Icon controls */
.command-icon-label{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
}
.command-icon-label svg{
  width:15px;height:15px;
  flex:0 0 15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Scene cards: richer, more product-like object browser */
.walkthrough-scene-strip .walkthrough-object-list{
  min-height:132px!important;
}
.walkthrough-scene-strip .walk-object{
  flex:0 0 174px!important;
  min-height:118px!important;
  justify-content:flex-start!important;
  position:relative;
  overflow:hidden;
  padding:0!important;
  background:
    radial-gradient(circle at 50% -30%,rgba(36,192,244,.14),transparent 85px),
    linear-gradient(180deg,#143349,#0d2637)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.walk-card-preview{
  position:relative;
  width:100%;
  min-height:57px;
  display:grid;
  place-items:center;
  border-bottom:1px solid #244f67;
  background:
    linear-gradient(rgba(28,100,133,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(28,100,133,.10) 1px,transparent 1px),
    radial-gradient(circle at 50% 60%,rgba(17,183,231,.10),transparent 55px),
    #102b3d;
  background-size:14px 14px,14px 14px,auto,auto;
}
.walk-card-icon{
  width:43px;height:43px;
  display:grid;place-items:center;
  color:#86e9ff;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.20));
}
.walk-card-icon svg{
  width:35px;height:35px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.45;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.walk-card-preview .walk-object-mark{
  position:absolute!important;
  left:8px!important;
  top:8px!important;
  margin:0!important;
}
.walk-card-copy{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:8px 9px 9px;
  text-align:left;
}
.walk-card-copy>strong{
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#eafbff!important;
  font-size:10px!important;
}
.walk-card-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  width:100%;
}
.walk-card-meta em{
  display:inline-flex;
  align-items:center;
  max-width:90px;
  padding:3px 5px;
  border:1px solid #27617c;
  border-radius:4px;
  background:#0e3145;
  color:#57d9f9;
  font-style:normal;
  font-size:7px;
  font-weight:900;
  letter-spacing:.07em;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.walk-card-meta small{
  color:#82a3b4!important;
  font-size:7px!important;
  white-space:nowrap;
}
.walk-card-assignment{
  width:100%;
  padding-top:4px;
  border-top:1px solid #1f4559;
  color:#6f95a9!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.walkthrough-scene-strip .walk-object:hover{
  transform:translateY(-1px);
  border-color:#3a7896!important;
  box-shadow:0 8px 20px rgba(0,0,0,.18)!important;
}
.walkthrough-scene-strip .walk-object.active{
  transform:translateY(-1px);
  border-color:#1ed5ff!important;
  box-shadow:
    inset 0 -2px 0 #1ed5ff,
    inset 0 0 0 1px rgba(30,213,255,.06),
    0 0 20px rgba(30,213,255,.10)!important;
}
.walkthrough-scene-strip .walk-object.active .walk-card-preview{
  background:
    linear-gradient(rgba(28,130,168,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(28,130,168,.12) 1px,transparent 1px),
    radial-gradient(circle at 50% 60%,rgba(31,211,255,.18),transparent 60px),
    #123349;
  background-size:14px 14px,14px 14px,auto,auto;
}
.walkthrough-scene-strip .walk-object.active .walk-card-icon{
  color:#d6f9ff;
  filter:drop-shadow(0 0 7px rgba(44,217,255,.28));
}

/* Inspector selection feels more deliberate */
.walk-selected-title strong{
  font-size:15px!important;
  letter-spacing:.01em;
}
.walk-heading-readout{
  min-width:64px!important;
}
.walk-heading-readout strong{
  font-size:17px!important;
}
.walk-control-label>span{
  color:#8db0c1!important;
}
.walk-control-section{
  border-color:#245069!important;
}
.walk-step-segment{
  border-color:#2b5e77!important;
}
.walk-step-segment button{
  min-width:38px;
}
.walk-step-segment button.active{
  box-shadow:inset 0 -2px 0 #22d2fb;
}
.walk-number-field{
  border-color:#2d617a!important;
}
.walk-editor-actions .btn.primary{
  box-shadow:0 6px 20px rgba(0,151,255,.22)!important;
}

/* Operation context gets stronger visual hierarchy */
.current-operation-context{
  min-height:48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:7px 11px 7px 13px;
  position:relative;
  overflow:hidden;
}
.current-operation-context::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:#2be29a;
  box-shadow:0 0 12px rgba(43,226,154,.35);
}
.current-operation-context span{
  color:#55dafa!important;
}
.current-operation-context strong{
  color:#f3fbff;
  max-width:220px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* Sidebar user footer becomes quiet metadata, not a second profile card */
.sidebar-bottom{
  opacity:.72;
}
.sidebar-bottom #userName{
  font-size:9px;
}
.sidebar-bottom #userEmail{
  font-size:7px;
}

/* Slightly more premium depth while staying readable */
.topbar,
.command-view-head,
.walkthrough-side,
.walkthrough-scene-strip,
.map-toolbox{
  backdrop-filter:blur(10px);
}
.btn,
.nav-btn,
.walk-object,
.command-icon-btn,
.profile-menu-action{
  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

@media(max-width:900px){
  .command-profile{min-width:160px}
  .current-operation-context{display:none!important}
}


/* =========================================================
   GridRivet v0.9.3 — Futuristic Interface Refresh
   Visual-only layer. No application logic changed.
   ========================================================= */

:root{
  --gr-cyan:#23d9ff;
  --gr-blue:#0b9dff;
  --gr-ice:#dff9ff;
  --gr-panel:#143044;
  --gr-panel-hi:#19384f;
  --gr-panel-deep:#0c2231;
  --gr-line:#2c647f;
  --gr-line-hi:#42a9cf;
  --gr-text:#f3fbff;
  --gr-muted:#94b2c2;
}

/* Brighter command environment with subtle grid */
body{
  background:
    linear-gradient(rgba(35,217,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,217,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 70% -20%, rgba(27,181,255,.18), transparent 38rem),
    radial-gradient(circle at 15% 10%, rgba(26,102,160,.12), transparent 28rem),
    linear-gradient(180deg,#0e2230 0%,#0a1721 100%)!important;
  background-size:36px 36px,36px 36px,auto,auto,auto!important;
}

/* Technical typography */
body,button,input,select,textarea{
  font-family:Bahnschrift,"Aptos Narrow","Segoe UI Variable",Segoe UI,Arial,sans-serif!important;
}
h1,h2,h3,h4,
.eyebrow,
.nav-group-label,
.brand-inline strong,
.command-profile-copy strong,
.current-operation-context strong{
  font-family:Bahnschrift,"Aptos Display","Segoe UI Variable Display",Segoe UI,sans-serif!important;
  letter-spacing:.03em;
}
.eyebrow,.nav-group-label{
  letter-spacing:.18em!important;
}

/* Global panels use angular tech corners */
.panel,
.operation-card,
.assignment-card,
.stat-card,
.empty-card,
.command-view-head,
.walkthrough-side,
.walkthrough-scene-strip,
.map-toolbox,
.auth-panel{
  position:relative;
  border-color:var(--gr-line)!important;
  background:
    linear-gradient(135deg,rgba(31,78,103,.10),transparent 28%),
    linear-gradient(180deg,rgba(24,58,78,.98),rgba(13,35,49,.98))!important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.035)!important;
}

/* little cut-corner detail */
.panel::before,
.command-view-head::before,
.map-toolbox::before,
.walkthrough-side::before{
  content:"";
  position:absolute;
  top:-1px;
  right:-1px;
  width:22px;
  height:22px;
  border-top:1px solid var(--gr-line-hi);
  border-right:1px solid var(--gr-line-hi);
  clip-path:polygon(45% 0,100% 0,100% 55%);
  pointer-events:none;
  opacity:.75;
}

/* Header feels like a proper control system */
.topbar{
  min-height:80px!important;
  background:
    linear-gradient(90deg,rgba(16,70,98,.38),transparent 28%,transparent 72%,rgba(13,82,113,.20)),
    linear-gradient(180deg,#112b3c,#0b1f2d)!important;
  border-bottom:1px solid #347a99!important;
}
.topbar::before{
  content:"";
  position:absolute;
  left:228px;
  right:0;
  bottom:0;
  height:2px;
  background:linear-gradient(90deg,#22d9ff 0,#0d9df5 22%,rgba(13,157,245,.08) 68%,transparent);
  box-shadow:0 0 10px rgba(34,217,255,.30);
}
.brand-inline .brand-mark.small{
  border-radius:10px!important;
  border-color:#4f93ad!important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.10),
    0 0 22px rgba(35,217,255,.09)!important;
}
.brand-inline strong{
  color:#f7fdff!important;
  text-shadow:0 0 18px rgba(95,222,255,.10);
}

/* Sidebar: brighter, more structured */
.sidebar{
  background:
    linear-gradient(180deg,rgba(20,60,82,.16),transparent 22%),
    linear-gradient(180deg,#10293a,#0b1d29)!important;
  border-right:1px solid #2f6e8d!important;
}
.nav-group-label{
  color:#66c8ed!important;
}
.nav-btn{
  min-height:46px!important;
  border-radius:6px!important;
  color:#b7ceda!important;
}
.nav-btn:hover{
  background:linear-gradient(90deg,rgba(35,217,255,.11),rgba(9,109,160,.04))!important;
  border-color:rgba(53,147,188,.35)!important;
}
.nav-btn.active{
  color:#e9fbff!important;
  background:
    linear-gradient(90deg,rgba(28,196,245,.22),rgba(5,114,171,.07))!important;
  border-color:#2697be!important;
  box-shadow:
    inset 3px 0 0 #30ddff,
    inset 0 0 18px rgba(48,221,255,.035),
    0 0 14px rgba(0,175,255,.06)!important;
}
.nav-btn.active::after{
  content:"";
  position:absolute;
  right:8px;
  width:5px;height:5px;border-radius:50%;
  background:#35e4ff;
  box-shadow:0 0 8px rgba(53,228,255,.7);
}

/* Command headers */
.command-view-head{
  min-height:82px!important;
  border-color:#377c9c!important;
  background:
    linear-gradient(90deg,rgba(28,153,202,.16),transparent 34%),
    linear-gradient(180deg,#17384d,#102838)!important;
}
.command-view-icon{
  border-color:#27bfe8!important;
  background:
    radial-gradient(circle at 50% 35%,rgba(62,229,255,.12),transparent 60%),
    linear-gradient(180deg,#19465d,#113247)!important;
  color:#7cecff!important;
  box-shadow:
    inset 0 0 18px rgba(49,211,255,.05),
    0 0 20px rgba(36,199,242,.08)!important;
}
.command-view-title h2{
  color:#f5fcff!important;
  text-shadow:0 0 18px rgba(80,210,255,.08);
}
.command-view-title p:last-child{
  color:#aac3d0!important;
}

/* Buttons */
.btn{
  border-radius:6px!important;
  border-color:#326984!important;
  background:
    linear-gradient(180deg,#1b4258,#123144)!important;
  color:#dceef6!important;
}
.btn:hover{
  border-color:#44a6ca!important;
  background:linear-gradient(180deg,#21516b,#173d53)!important;
}
.btn.primary{
  color:white!important;
  border-color:#4bd9ff!important;
  background:
    linear-gradient(180deg,#21bff5,#078ddc)!important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.20),
    0 8px 20px rgba(0,148,255,.20),
    0 0 16px rgba(42,214,255,.08)!important;
}

/* Fields */
input,select,textarea{
  background:#0d2737!important;
  border-color:#346c86!important;
  color:#eefaff!important;
}
input:focus,select:focus,textarea:focus{
  border-color:#32d4f8!important;
  box-shadow:
    0 0 0 2px rgba(50,212,248,.10),
    0 0 16px rgba(50,212,248,.05)!important;
}

/* Tabs and pills */
.map-tool-tab,
.role-pill,
.editor-live-badge,
.walk-card-meta em{
  border-radius:5px!important;
}
.map-tool-tab.active,
.walk-step-segment button.active{
  color:#a6f2ff!important;
  background:#14506a!important;
  border-color:#28badd!important;
  box-shadow:inset 0 -2px 0 #2ee0ff!important;
}

/* Map/3D frames feel like actual displays */
.map-stage,
.walkthrough-stage{
  border:1px solid #3c7f9f!important;
  box-shadow:
    0 20px 45px rgba(0,0,0,.24),
    0 0 0 1px rgba(49,211,255,.025),
    inset 0 0 32px rgba(35,217,255,.02)!important;
}
.map-stage::after,
.walkthrough-stage::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border:1px solid rgba(88,217,255,.08);
  box-shadow:inset 0 0 28px rgba(0,180,255,.035);
}

/* subtle top scanline on live map surfaces */
.map-stage::before,
.walkthrough-stage::before{
  content:"";
  position:absolute;
  z-index:20;
  left:0;right:0;top:0;
  height:1px;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,#53e6ff 24%,#139de8 68%,transparent);
  opacity:.42;
}

/* 3D editor refinements */
.walk-editor-side-head{
  background:
    linear-gradient(90deg,rgba(32,164,211,.10),transparent 55%),
    linear-gradient(180deg,#183c51,#123044)!important;
  border-bottom-color:#326c87!important;
}
.walk-editor-shell{
  background:
    linear-gradient(180deg,#102b3c,#0c2332)!important;
}
.walk-control-section{
  border-color:#2b5c74!important;
}
.walk-pad-btn,
.walk-pad-center,
.walk-icon-control{
  border-color:#3b7894!important;
  background:
    radial-gradient(circle at 50% 25%,rgba(67,208,249,.06),transparent 60%),
    linear-gradient(180deg,#1a4258,#113247)!important;
}
.walk-pad-btn:hover,
.walk-pad-center:hover,
.walk-icon-control:hover{
  border-color:#4edcfb!important;
  background:linear-gradient(180deg,#20536d,#174058)!important;
  box-shadow:0 0 16px rgba(47,214,255,.07)!important;
}
.walk-pad-center{
  color:#91efff!important;
  border-color:#30c9ed!important;
}
.walk-heading-readout{
  background:#0b2534!important;
  border-color:#37708b!important;
}

/* Richer scene cards */
.walkthrough-scene-strip .walk-object{
  border-radius:7px!important;
  border-color:#316e8a!important;
  background:
    radial-gradient(circle at 50% -25%,rgba(44,203,248,.16),transparent 90px),
    linear-gradient(180deg,#173a50,#102a3b)!important;
}
.walkthrough-scene-strip .walk-object:hover{
  border-color:#4cb9dc!important;
  box-shadow:0 10px 24px rgba(0,0,0,.18),0 0 15px rgba(40,190,235,.05)!important;
}
.walkthrough-scene-strip .walk-object.active{
  border-color:#38ddff!important;
  box-shadow:
    inset 0 -2px 0 #38ddff,
    0 0 20px rgba(56,221,255,.12)!important;
}
.walk-card-preview{
  background:
    linear-gradient(rgba(40,132,167,.13) 1px,transparent 1px),
    linear-gradient(90deg,rgba(40,132,167,.13) 1px,transparent 1px),
    radial-gradient(circle at 50% 65%,rgba(34,196,241,.16),transparent 60px),
    #123144!important;
  background-size:13px 13px,13px 13px,auto,auto!important;
}
.walk-card-icon{
  color:#9befff!important;
}

/* Operation cards get a clean tech accent */
.operation-card::after,
.assignment-card::after,
.stat-card::after{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:2px;
  border-radius:2px;
  background:linear-gradient(180deg,transparent,#28d6fa,transparent);
  opacity:.45;
}

/* Profile/operation context */
.command-profile,
.current-operation-context{
  border-color:#347793!important;
  background:
    linear-gradient(180deg,#17384d,#102939)!important;
}
.command-avatar{
  border-color:#52a5c3!important;
  box-shadow:
    0 0 0 2px rgba(31,205,242,.08),
    0 0 20px rgba(31,205,242,.08)!important;
}
.current-operation-context::before{
  background:#37e59f!important;
  box-shadow:0 0 14px rgba(55,229,159,.42)!important;
}

/* Auth screen */
.auth-shell{
  background:
    linear-gradient(rgba(35,217,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(35,217,255,.04) 1px,transparent 1px),
    radial-gradient(circle at 50% 18%,rgba(28,185,255,.17),transparent 30rem),
    linear-gradient(145deg,#0c1e2a,#102a3b 58%,#091a25)!important;
  background-size:38px 38px,38px 38px,auto,auto!important;
}
.auth-panel{
  border-color:#397f9e!important;
}

/* Small technical separators */
.section-head{
  border-bottom-color:#2c657f!important;
}
.section-head::after{
  content:"";
  display:block;
  width:84px;
  height:2px;
  margin-top:12px;
  background:linear-gradient(90deg,#29d9ff,#0d97e9,transparent);
}

/* Make tables/data areas feel less generic */
table{
  border-collapse:separate;
  border-spacing:0;
}
thead th{
  background:#15384c!important;
  color:#7cdbf5!important;
  font-size:9px!important;
  letter-spacing:.10em;
  text-transform:uppercase;
}
tbody tr:hover{
  background:rgba(35,169,216,.05)!important;
}

/* Responsive cleanup */
@media(max-width:900px){
  .topbar::before{left:0}
}


/* =========================================================
   GridRivet v0.9.4 — Advanced Command Interface
   Structural visual redesign of Planner + global refinement.
   ========================================================= */

/* Push the shell away from "dashboard template" territory */
.main{
  padding:18px 22px 34px!important;
}
.view{
  animation:grViewIn .18s ease-out;
}
@keyframes grViewIn{
  from{opacity:.72;transform:translateY(3px)}
  to{opacity:1;transform:none}
}

/* Planner command header */
.planner-command-header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:94px;
  margin:-2px 0 14px;
  padding:14px 16px;
  overflow:hidden;
  border:1px solid #3f829f;
  border-radius:8px;
  background:
    linear-gradient(90deg,rgba(39,174,222,.15),transparent 34%),
    radial-gradient(circle at 78% -100%,rgba(37,202,255,.17),transparent 260px),
    linear-gradient(180deg,#17384d,#0e2738);
  box-shadow:
    0 16px 36px rgba(0,0,0,.18),
    inset 0 1px rgba(255,255,255,.04);
}
.planner-command-header::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:190px;
  height:2px;
  background:linear-gradient(90deg,#4be6ff,#0c9eed,transparent);
  box-shadow:0 0 12px rgba(75,230,255,.28);
}
.planner-command-header::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:130px;
  height:30px;
  background:
    linear-gradient(135deg,transparent 48%,rgba(66,183,222,.14) 49%,rgba(66,183,222,.14) 51%,transparent 52%);
  background-size:10px 10px;
  opacity:.45;
}
.planner-command-brand{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.planner-command-symbol{
  width:52px;height:52px;
  flex:0 0 52px;
  display:grid;place-items:center;
  border:1px solid #34bddf;
  border-radius:8px;
  color:#8decff;
  background:
    linear-gradient(rgba(47,177,219,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(47,177,219,.10) 1px,transparent 1px),
    #12364a;
  background-size:10px 10px,10px 10px,auto;
  box-shadow:inset 0 0 18px rgba(36,200,241,.055),0 0 18px rgba(36,200,241,.07);
}
.planner-command-symbol svg{
  width:27px;height:27px;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.planner-command-brand h2{
  margin:1px 0 2px;
  font-size:27px;
  color:#f7fdff;
}
.planner-command-brand p:last-child{
  margin:0;
  color:#9eb9c8;
  font-size:10px;
}
.planner-command-actions{
  display:flex;
  align-items:stretch;
  gap:9px;
  position:relative;
  z-index:1;
}
.planner-live-state{
  min-width:124px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:7px 10px 7px 12px;
  border:1px solid #336f89;
  border-radius:6px;
  background:#102c3d;
}
.planner-live-state span{
  color:#6a9fb4;
  font-size:7px;
  font-weight:900;
  letter-spacing:.13em;
}
.planner-live-state strong{
  margin-top:3px;
  color:#71e7ff;
  font-size:9px;
  letter-spacing:.08em;
}
#plannerStatusDisplay[data-state="active"]{color:#58e5a7}
#plannerStatusDisplay[data-state="approved"]{color:#8ee8ff}
#plannerStatusDisplay[data-state="closed"]{color:#95a8b3}
.planner-save-btn{
  min-width:132px;
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.planner-save-btn svg{
  width:15px;height:15px;
  fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}

/* Empty state */
.planner-empty-state{
  min-height:230px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  text-align:left!important;
  background:
    linear-gradient(rgba(38,138,177,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(38,138,177,.055) 1px,transparent 1px),
    linear-gradient(180deg,#122f42,#0d2535)!important;
  background-size:24px 24px,24px 24px,auto!important;
}
.planner-empty-icon{
  width:58px;height:58px;
  display:grid;place-items:center;
  border:1px solid #367c98;
  border-radius:9px;
  color:#63dff9;
  background:#103044;
}
.planner-empty-icon svg{
  width:28px;height:28px;
  fill:none;stroke:currentColor;stroke-width:1.6;
}

/* Entire Planner becomes a real workspace */
.planner-console{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:12px;
  align-items:start;
}
.planner-console.hidden{display:none!important}
.planner-primary-column{
  display:flex;
  flex-direction:column;
  gap:11px;
  min-width:0;
}
.planner-command-rail{
  position:sticky;
  top:96px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.planner-module,
.planner-command-card,
.planner-rail-hint{
  position:relative;
  overflow:hidden;
  border:1px solid #326c86;
  border-radius:7px;
  background:
    radial-gradient(circle at 100% 0,rgba(35,201,246,.06),transparent 150px),
    linear-gradient(180deg,#15364a,#0e2838);
  box-shadow:0 14px 30px rgba(0,0,0,.15),inset 0 1px rgba(255,255,255,.025);
}
.planner-module::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:2px;
  background:linear-gradient(180deg,#3ce1ff,#108edc 60%,transparent);
  opacity:.9;
}
.planner-module::after{
  content:"";
  position:absolute;
  top:0;right:0;
  width:28px;height:28px;
  border-top:1px solid #45a7c8;
  border-right:1px solid #45a7c8;
  clip-path:polygon(42% 0,100% 0,100% 58%);
  pointer-events:none;
}
.planner-module-head{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 14px 10px 15px;
  border-bottom:1px solid #285c73;
  background:
    linear-gradient(90deg,rgba(31,145,188,.10),transparent 48%),
    #133247;
}
.planner-module-index{
  flex:0 0 auto;
  color:#57dbfa;
  font-size:19px;
  font-weight:800;
  letter-spacing:.02em;
  opacity:.85;
}
.planner-module-head>div p{
  margin:0 0 2px;
  color:#51badc;
  font-size:7px;
  font-weight:900;
  letter-spacing:.16em;
}
.planner-module-head h3{
  margin:0;
  color:#eefbff;
  font-size:14px;
  font-weight:700;
}
.planner-module-line{
  flex:1 1 auto;
  height:1px;
  margin-left:8px;
  background:linear-gradient(90deg,#2a6680,transparent);
}

/* Fields */
.planner-field{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin:0!important;
}
.planner-field>span{
  color:#80a8ba;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.planner-field input,
.planner-field select,
.planner-field textarea{
  width:100%;
  min-height:39px;
  margin:0!important;
  border:1px solid #316a84!important;
  border-radius:5px!important;
  background:
    linear-gradient(180deg,#0e293a,#0b2231)!important;
  color:#edfaff!important;
  box-shadow:inset 0 1px 5px rgba(0,0,0,.12);
}
.planner-field input:focus,
.planner-field select:focus,
.planner-field textarea:focus{
  border-color:#38d8fa!important;
  box-shadow:
    0 0 0 2px rgba(56,216,250,.09),
    inset 0 1px 5px rgba(0,0,0,.14)!important;
}
.planner-field-hero input{
  font-size:15px!important;
  font-weight:700;
  letter-spacing:.01em;
}

/* Individual planner module layouts */
.planner-identity-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px;
  gap:10px;
  padding:13px 14px 15px 15px;
}
.planner-timeline-grid{
  display:grid;
  grid-template-columns:1fr 1fr 132px 1fr 1fr;
  gap:9px;
  align-items:end;
  padding:13px 14px 15px 15px;
}
.planner-timeline-connector{
  height:39px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  color:#4f8da7;
}
.planner-timeline-connector i{
  height:1px;
  flex:1;
  background:#2e647d;
}
.planner-timeline-connector b{
  color:#58c7e7;
  font-size:6px;
  font-weight:900;
  letter-spacing:.10em;
  white-space:nowrap;
}
.planner-control-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:13px 14px 15px 15px;
}
.planner-field-wide{grid-column:1/-1}
.planner-notes-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:13px 14px 15px 15px;
}
.planner-notes-grid textarea{
  min-height:132px!important;
  resize:vertical;
}

/* Command rail */
.planner-command-card{
  border-color:#3b7894;
}
.planner-rail-head{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:64px;
  padding:12px;
  border-bottom:1px solid #2d647b;
  background:
    linear-gradient(90deg,rgba(34,199,241,.12),transparent),
    #15374b;
}
.planner-pulse{
  width:11px;height:11px;
  flex:0 0 11px;
  border:2px solid #39d7f8;
  border-radius:50%;
  position:relative;
  box-shadow:0 0 12px rgba(57,215,248,.24);
}
.planner-pulse::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:50%;
  background:#4ce0ff;
  box-shadow:0 0 8px rgba(76,224,255,.55);
}
.planner-rail-head p{
  margin:0 0 2px;
  color:#5ec6e7;
  font-size:7px;
  font-weight:900;
  letter-spacing:.14em;
}
.planner-rail-head h3{
  margin:0;
  color:#f0fbff;
  font-size:13px;
}
.planner-command-fields{
  display:flex;
  flex-direction:column;
  gap:11px;
  padding:13px 12px;
}
.planner-rail-system{
  display:grid;
  grid-template-columns:1fr;
  border-top:1px solid #2b5e74;
  background:#0d2635;
}
.planner-rail-system>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:33px;
  padding:6px 11px;
  border-bottom:1px solid #224e63;
}
.planner-rail-system>div:last-child{border-bottom:0}
.planner-rail-system span{
  color:#6e91a2;
  font-size:7px;
  font-weight:800;
  letter-spacing:.10em;
}
.planner-rail-system strong{
  color:#5de0a3;
  font-size:7px;
  font-weight:900;
  letter-spacing:.08em;
}
.planner-rail-hint{
  padding:11px 12px;
  border-style:dashed;
  background:
    linear-gradient(135deg,rgba(25,112,148,.08),transparent),
    #0d2534;
}
.planner-rail-hint span{
  color:#4eb9da;
  font-size:7px;
  font-weight:900;
  letter-spacing:.13em;
}
.planner-rail-hint p{
  margin:5px 0 0;
  color:#7897a7;
  font-size:8px;
  line-height:1.45;
}

/* Operation cards no longer feel like generic tiles */
.operation-grid{
  gap:12px!important;
}
.operation-card{
  min-height:160px;
  border-radius:7px!important;
  background:
    linear-gradient(135deg,rgba(44,165,207,.08),transparent 28%),
    linear-gradient(180deg,#17394e,#0f2939)!important;
}
.operation-card:hover{
  transform:translateY(-2px);
  border-color:#4a99b8!important;
  box-shadow:0 18px 38px rgba(0,0,0,.20),0 0 18px rgba(36,194,236,.05)!important;
}

/* Tables/readouts get a cleaner technical treatment */
.table-wrap{
  border:1px solid #2d637b;
  border-radius:6px;
  overflow:hidden;
}
thead th{
  height:36px;
  background:
    linear-gradient(180deg,#173b50,#123145)!important;
  border-bottom:1px solid #36728c!important;
}
tbody td{
  border-bottom-color:#234d61!important;
}

/* Make generic stat blocks look like instrumentation */
.mini-stat{
  position:relative;
  overflow:hidden;
  border:1px solid #316c85!important;
  border-radius:6px!important;
  background:
    linear-gradient(135deg,rgba(37,185,226,.07),transparent 50%),
    linear-gradient(180deg,#14364b,#0e2939)!important;
}
.mini-stat::after{
  content:"";
  position:absolute;
  right:0;top:0;
  width:32px;height:32px;
  background:linear-gradient(135deg,transparent 49%,rgba(63,203,239,.12) 50%);
}
.mini-stat strong{
  color:#c8f7ff!important;
  text-shadow:0 0 14px rgba(46,217,255,.08);
}

/* Responsive */
@media(max-width:1050px){
  .planner-console{
    grid-template-columns:1fr;
  }
  .planner-command-rail{
    position:static;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .planner-timeline-grid{
    grid-template-columns:1fr 1fr;
  }
  .planner-timeline-connector{
    display:none;
  }
}
@media(max-width:720px){
  .planner-command-header{
    align-items:flex-start;
    flex-direction:column;
  }
  .planner-command-actions{
    width:100%;
  }
  .planner-live-state{flex:1}
  .planner-identity-grid,
  .planner-control-grid,
  .planner-notes-grid{
    grid-template-columns:1fr;
  }
  .planner-field-wide{grid-column:auto}
  .planner-command-rail{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   GridRivet v0.9.5 — GRAYOPS
   Neutral graphite / gunmetal command palette.
   Cyan is now instrumentation/status only, not the atmosphere.
   ========================================================= */

:root{
  --gr-cyan:#68d9ef;
  --gr-blue:#7395a8;
  --gr-ice:#f1f4f5;
  --gr-panel:#242a2f;
  --gr-panel-hi:#2d343a;
  --gr-panel-deep:#191e22;
  --gr-line:#4b555d;
  --gr-line-hi:#69757e;
  --gr-text:#f1f3f4;
  --gr-muted:#a2abb1;
}

/* Kill the blue atmospheric wash */
body{
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
    radial-gradient(circle at 72% -20%,rgba(255,255,255,.055),transparent 36rem),
    linear-gradient(180deg,#20252a 0%,#15191d 100%)!important;
  background-size:38px 38px,38px 38px,auto,auto!important;
  color:#eef1f2!important;
}

/* Main shell */
.topbar{
  background:
    linear-gradient(90deg,rgba(255,255,255,.025),transparent 30%,transparent 72%,rgba(255,255,255,.018)),
    linear-gradient(180deg,#2a3035,#1d2226)!important;
  border-bottom-color:#515b62!important;
}
.topbar::before{
  background:linear-gradient(90deg,#9aa5ac 0,#6b7880 26%,rgba(107,120,128,.10) 70%,transparent)!important;
  box-shadow:none!important;
}
.topbar::after{
  background:linear-gradient(90deg,transparent,#707c84 25%,rgba(112,124,132,.12) 68%,transparent)!important;
}
.sidebar{
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),transparent 24%),
    linear-gradient(180deg,#252b30,#191e22)!important;
  border-right-color:#454f56!important;
}
.main{
  background:
    radial-gradient(circle at 72% 0,rgba(255,255,255,.025),transparent 30rem),
    transparent!important;
}

/* Brand: metallic instead of blue-lit */
.brand-inline .brand-mark.small,
.brand-mark,
.boot-mark{
  border-color:#66727a!important;
  background:linear-gradient(145deg,#343b41,#1b2024)!important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.10),
    0 8px 22px rgba(0,0,0,.24)!important;
}
.brand-inline span,
.boot-screen span{
  color:#a9b4ba!important;
}

/* Navigation */
.nav-group-label{
  color:#818d94!important;
}
.nav-btn{
  color:#b2bac0!important;
}
.nav-icon{
  color:#89969e!important;
}
.nav-btn:hover{
  color:#f2f4f5!important;
  background:linear-gradient(90deg,rgba(255,255,255,.055),rgba(255,255,255,.015))!important;
  border-color:#4b555c!important;
}
.nav-btn.active{
  color:#f6f7f8!important;
  background:
    linear-gradient(90deg,rgba(255,255,255,.10),rgba(255,255,255,.025))!important;
  border-color:#626e76!important;
  box-shadow:
    inset 3px 0 0 #aab5bb,
    inset 0 0 18px rgba(255,255,255,.018)!important;
}
.nav-btn.active .nav-icon{color:#d9dfe2!important}
.nav-btn.active::after{
  background:#9fe7d2!important;
  box-shadow:0 0 7px rgba(159,231,210,.38)!important;
}

/* Panels */
.panel,
.operation-card,
.assignment-card,
.stat-card,
.empty-card,
.command-view-head,
.walkthrough-side,
.walkthrough-scene-strip,
.map-toolbox,
.auth-panel,
.planner-module,
.planner-command-card,
.planner-rail-hint{
  border-color:#4b555d!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.025),transparent 30%),
    linear-gradient(180deg,rgba(47,54,60,.98),rgba(30,35,39,.98))!important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.22),
    inset 0 1px rgba(255,255,255,.035)!important;
}
.panel::before,
.command-view-head::before,
.map-toolbox::before,
.walkthrough-side::before{
  border-color:#69757c!important;
}

/* Planner header becomes gunmetal */
.planner-command-header{
  border-color:#5b666d!important;
  background:
    linear-gradient(90deg,rgba(255,255,255,.045),transparent 36%),
    radial-gradient(circle at 78% -100%,rgba(255,255,255,.055),transparent 260px),
    linear-gradient(180deg,#343b40,#252b30)!important;
}
.planner-command-header::before{
  background:linear-gradient(90deg,#aab5bb,#69757c,transparent)!important;
  box-shadow:none!important;
}
.planner-command-header::after{
  opacity:.20!important;
}
.planner-command-symbol{
  border-color:#68757d!important;
  color:#d5dce0!important;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    #2b3237!important;
  background-size:10px 10px,10px 10px,auto!important;
  box-shadow:inset 0 0 18px rgba(255,255,255,.025)!important;
}
.planner-command-brand h2{color:#f3f5f6!important}
.planner-command-brand p:last-child{color:#a3adb3!important}
.planner-live-state{
  border-color:#59646b!important;
  background:#252b30!important;
}
.planner-live-state span{color:#8f999f!important}
.planner-live-state strong{color:#d6dde0!important}

/* Planner modules */
.planner-module::before{
  background:linear-gradient(180deg,#9ba6ac,#5f6a71 60%,transparent)!important;
}
.planner-module::after{
  border-color:#657178!important;
}
.planner-module-head{
  border-bottom-color:#4c565d!important;
  background:
    linear-gradient(90deg,rgba(255,255,255,.035),transparent 50%),
    #30373c!important;
}
.planner-module-index{
  color:#aeb8bd!important;
}
.planner-module-head>div p{
  color:#929da3!important;
}
.planner-module-line{
  background:linear-gradient(90deg,#59646b,transparent)!important;
}

/* Planner fields */
.planner-field>span{
  color:#a3adb3!important;
}
.planner-field input,
.planner-field select,
.planner-field textarea{
  border-color:#505b62!important;
  background:linear-gradient(180deg,#22282d,#1a1f23)!important;
  color:#f0f2f3!important;
}
.planner-field input:focus,
.planner-field select:focus,
.planner-field textarea:focus{
  border-color:#8b989f!important;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.045),
    inset 0 1px 5px rgba(0,0,0,.16)!important;
}
.planner-timeline-connector{color:#818c92!important}
.planner-timeline-connector i{background:#525d64!important}
.planner-timeline-connector b{color:#9ca7ad!important}

/* Command rail */
.planner-command-card{border-color:#59646b!important}
.planner-rail-head{
  border-bottom-color:#4f5960!important;
  background:
    linear-gradient(90deg,rgba(255,255,255,.045),transparent),
    #30373c!important;
}
.planner-pulse{
  border-color:#9ba6ac!important;
  box-shadow:none!important;
}
.planner-pulse::after{
  background:#9fe7d2!important;
  box-shadow:0 0 7px rgba(159,231,210,.32)!important;
}
.planner-rail-head p{color:#949fa5!important}
.planner-rail-system{
  border-top-color:#4a545b!important;
  background:#20262a!important;
}
.planner-rail-system>div{border-bottom-color:#3e474d!important}
.planner-rail-system span{color:#899399!important}
.planner-rail-system strong{color:#9fe7d2!important}
.planner-rail-hint{
  background:
    linear-gradient(135deg,rgba(255,255,255,.025),transparent),
    #22282c!important;
}
.planner-rail-hint span{color:#9aa5ab!important}
.planner-rail-hint p{color:#858f95!important}

/* Buttons: graphite first, color only where action matters */
.btn{
  border-color:#59646b!important;
  background:linear-gradient(180deg,#394147,#292f34)!important;
  color:#e5e9eb!important;
}
.btn:hover{
  border-color:#77838a!important;
  background:linear-gradient(180deg,#444d53,#31383d)!important;
}
.btn.primary{
  border-color:#7f8c93!important;
  background:
    linear-gradient(180deg,#59656c,#3d464c)!important;
  color:#fff!important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.13),
    0 7px 18px rgba(0,0,0,.20)!important;
}
.btn.primary:hover{
  background:linear-gradient(180deg,#667279,#485157)!important;
}

/* Keep a tiny cyan cue on interactive focus only */
input:focus,select:focus,textarea:focus{
  border-color:#78919b!important;
  box-shadow:0 0 0 2px rgba(118,160,174,.08)!important;
}

/* Command view headers */
.command-view-head{
  border-color:#566168!important;
  background:
    linear-gradient(90deg,rgba(255,255,255,.04),transparent 35%),
    linear-gradient(180deg,#343b40,#252b30)!important;
}
.command-view-icon{
  border-color:#68747b!important;
  background:
    radial-gradient(circle at 50% 35%,rgba(255,255,255,.045),transparent 60%),
    linear-gradient(180deg,#373f44,#292f34)!important;
  color:#d5dcdf!important;
  box-shadow:none!important;
}
.eyebrow{
  color:#a8b2b7!important;
}

/* Map and 3D are neutral frames now */
.map-stage,
.walkthrough-stage{
  border-color:#59666d!important;
  box-shadow:
    0 20px 45px rgba(0,0,0,.28),
    inset 0 0 30px rgba(255,255,255,.012)!important;
}
.map-stage::before,
.walkthrough-stage::before{
  background:linear-gradient(90deg,transparent,#89969d 24%,#5e6a71 68%,transparent)!important;
  opacity:.30!important;
}
.map-stage::after,
.walkthrough-stage::after{
  border-color:rgba(255,255,255,.035)!important;
  box-shadow:inset 0 0 28px rgba(255,255,255,.012)!important;
}
.map-toolbar{
  background:linear-gradient(180deg,#343c41,#292f34)!important;
  border-bottom-color:#505b62!important;
}
.map-tool-tab.active{
  background:#41494e!important;
  color:#f0f2f3!important;
  border-color:#6c777e!important;
  box-shadow:inset 0 -2px 0 #aab4b9!important;
}
.map-tool-grid button,
.area-tool-grid button{
  background:#292f34!important;
  border-color:#505a61!important;
}
.map-tool-grid button:hover,
.map-tool-grid button.active,
.area-tool-grid button:hover,
.area-tool-grid button.active{
  background:#363e43!important;
  border-color:#737f86!important;
  box-shadow:none!important;
}

/* 3D editor */
.walk-editor-side-head{
  background:
    linear-gradient(90deg,rgba(255,255,255,.035),transparent 55%),
    linear-gradient(180deg,#353d42,#2a3035)!important;
  border-bottom-color:#505a61!important;
}
.walk-editor-shell{
  background:linear-gradient(180deg,#282f34,#1d2327)!important;
}
.walk-add-tray{
  background:#20262a!important;
  border-color:#485259!important;
}
.walk-add-plus,
.walk-place-tool{
  background:#30373c!important;
  border-color:#555f66!important;
}
.walk-place-tool:hover,.walk-place-tool.active{
  background:#41494e!important;
  border-color:#7b878d!important;
}
.walk-control-section{border-color:#485259!important}
.walk-pad-btn,
.walk-pad-center,
.walk-icon-control{
  border-color:#5a656c!important;
  background:linear-gradient(180deg,#3a4247,#2b3136)!important;
}
.walk-pad-btn:hover,
.walk-pad-center:hover,
.walk-icon-control:hover{
  border-color:#828e94!important;
  background:#464f54!important;
  box-shadow:none!important;
}
.walk-pad-center{
  color:#dbe1e4!important;
  border-color:#737f86!important;
  box-shadow:none!important;
}
.walk-heading-readout{
  background:#20262a!important;
  border-color:#555f66!important;
}
.walk-heading-readout strong,
.walk-control-label>strong{
  color:#d9dfe2!important;
}
.walk-step-segment button.active{
  background:#41494f!important;
  color:#f1f3f4!important;
  box-shadow:inset 0 -2px 0 #aab5ba!important;
}

/* Scene cards */
.walkthrough-scene-strip .walk-object{
  border-color:#515c63!important;
  background:
    radial-gradient(circle at 50% -25%,rgba(255,255,255,.045),transparent 90px),
    linear-gradient(180deg,#343c41,#262c31)!important;
}
.walkthrough-scene-strip .walk-object:hover{
  border-color:#727e85!important;
  box-shadow:0 10px 24px rgba(0,0,0,.20)!important;
}
.walkthrough-scene-strip .walk-object.active{
  border-color:#8d999f!important;
  box-shadow:
    inset 0 -2px 0 #aeb8bd,
    0 0 18px rgba(255,255,255,.025)!important;
}
.walk-card-preview,
.walkthrough-scene-strip .walk-object.active .walk-card-preview{
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
    radial-gradient(circle at 50% 65%,rgba(255,255,255,.045),transparent 60px),
    #2b3237!important;
  background-size:13px 13px,13px 13px,auto,auto!important;
}
.walk-card-icon,
.walkthrough-scene-strip .walk-object.active .walk-card-icon{
  color:#d8dfe2!important;
  filter:none!important;
}
.walk-card-meta em{
  border-color:#59646b!important;
  background:#2b3237!important;
  color:#b9c2c7!important;
}

/* Generic cards/tables/stats */
.operation-card{
  background:
    linear-gradient(135deg,rgba(255,255,255,.025),transparent 30%),
    linear-gradient(180deg,#343b40,#252b30)!important;
}
.operation-card:hover{
  border-color:#747f86!important;
  box-shadow:0 18px 38px rgba(0,0,0,.24)!important;
}
.operation-card::after,
.assignment-card::after,
.stat-card::after{
  background:linear-gradient(180deg,transparent,#858f95,transparent)!important;
}
.mini-stat{
  border-color:#505b62!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.025),transparent 50%),
    linear-gradient(180deg,#32393e,#242a2f)!important;
}
.mini-stat strong{
  color:#e6eaec!important;
  text-shadow:none!important;
}
thead th{
  background:linear-gradient(180deg,#343c41,#292f34)!important;
  border-bottom-color:#555f66!important;
  color:#b8c1c6!important;
}
tbody tr:hover{
  background:rgba(255,255,255,.025)!important;
}

/* Profile */
.command-profile,
.current-operation-context{
  border-color:#566168!important;
  background:linear-gradient(180deg,#343b40,#252b30)!important;
}
.command-avatar{
  border-color:#707c83!important;
  background:radial-gradient(circle at 35% 25%,#555f65,#343b40 55%,#242a2e 100%)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.24)!important;
}
.command-profile-copy span{
  color:#aab4b9!important;
}
.current-operation-context span{
  color:#9da7ac!important;
}

/* Login */
.auth-shell{
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
    radial-gradient(circle at 50% 18%,rgba(255,255,255,.055),transparent 30rem),
    linear-gradient(145deg,#1b2024,#2b3136 58%,#171b1f)!important;
  background-size:40px 40px,40px 40px,auto,auto!important;
}
.auth-panel{border-color:#59646b!important}
.security-note{
  background:#292f34!important;
  border-color:#505a61!important;
}

/* Status colors remain semantic and restrained */
.editor-live-badge{
  border-color:#4e5d61!important;
  background:#252b2f!important;
  color:#aeb8bc!important;
}
.editor-live-badge i,
.current-operation-context::before{
  background:#8fd9bc!important;
  box-shadow:0 0 8px rgba(143,217,188,.28)!important;
}

/* remove excess blue from section separators */
.section-head{
  border-bottom-color:#4a545b!important;
}
.section-head::after{
  background:linear-gradient(90deg,#818c92,#5b656b,transparent)!important;
}


/* =========================================================
   GridRivet v0.9.6 — Operation Management / Delete
   ========================================================= */

.operation-card-top{
  min-height:26px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.operation-card-menu-wrap{
  position:relative;
  z-index:12;
}
.operation-card-menu-btn{
  width:30px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:#98a2a8;
  cursor:pointer;
}
.operation-card-menu-btn:hover{
  border-color:#5f6970;
  background:#343b40;
  color:#f0f2f3;
}
.operation-card-menu-btn svg{
  width:16px;height:16px;
  fill:currentColor;
}
.operation-card-menu{
  position:absolute;
  right:0;
  top:34px;
  width:194px;
  z-index:50;
  padding:5px;
  border:1px solid #59636a;
  border-radius:6px;
  background:#20262a;
  box-shadow:0 18px 44px rgba(0,0,0,.38);
}
.operation-delete-action{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 8px;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:#d5dadd;
  text-align:left;
  cursor:pointer;
}
.operation-delete-action:hover{
  border-color:#78545a;
  background:#3a292d;
  color:#ffd7d7;
}
.operation-delete-action svg{
  width:17px;height:17px;
  flex:0 0 17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.operation-delete-action span{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.operation-delete-action strong{
  font-size:9px;
}
.operation-delete-action small{
  color:#8e989e;
  font-size:7px;
}
.operation-delete-action:hover small{color:#c99b9f}

.delete-operation-dialog{
  width:min(460px,calc(100vw - 30px));
}
.delete-operation-dialog .dialog-form{
  display:grid;
  grid-template-columns:52px 1fr;
  gap:12px 14px;
  padding:18px;
}
.delete-dialog-icon{
  width:50px;height:50px;
  display:grid;place-items:center;
  border:1px solid #74545a;
  border-radius:7px;
  background:#34272a;
  color:#e3b1b5;
}
.delete-dialog-icon svg{
  width:23px;height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.delete-dialog-copy h3{
  margin:2px 0 5px;
  color:#f3f4f5;
  font-size:18px;
}
.delete-dialog-copy p:last-child{
  margin:0;
  color:#a9b0b4;
  font-size:9px;
  line-height:1.5;
}
.delete-dialog-copy strong{color:#fff}
.delete-confirm-field,
.delete-operation-dialog .form-status,
.delete-operation-dialog .dialog-actions{
  grid-column:1/-1;
}
.delete-confirm-field{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.delete-confirm-field span{
  color:#aeb5b9;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.btn.danger{
  border-color:#765258!important;
  background:linear-gradient(180deg,#67434a,#4a3136)!important;
  color:#fff!important;
}
.btn.danger:hover:not(:disabled){
  border-color:#9b626a!important;
  background:linear-gradient(180deg,#7c4b53,#5b373d)!important;
}
.btn.danger:disabled{
  opacity:.42;
  cursor:not-allowed;
}


/* =========================================================
   GridRivet v0.9.7 — Report Engine / Operations Plan Center
   ========================================================= */

.report-command-head{
  position:relative;
  min-height:102px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
  margin-bottom:14px;
  overflow:hidden;
  border:1px solid #59646b;
  border-radius:8px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.045),transparent 38%),
    radial-gradient(circle at 82% -100%,rgba(255,255,255,.06),transparent 260px),
    linear-gradient(180deg,#353c41,#252b30);
  box-shadow:0 18px 38px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.045);
}
.report-command-head::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:linear-gradient(#aeb8bd,#626e75 60%,transparent);
}
.report-command-head::after{
  content:"REPORT // ENGINE";
  position:absolute;
  right:18px;
  bottom:7px;
  color:rgba(255,255,255,.035);
  font:900 26px/1 Bahnschrift,"Segoe UI";
  letter-spacing:.15em;
}
.report-command-brand{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:14px;
}
.report-command-mark{
  width:54px;height:54px;
  display:grid;place-items:center;
  flex:0 0 54px;
  border:1px solid #6c777e;
  border-radius:7px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(145deg,#3d454a,#252b30);
  background-size:10px 10px,10px 10px,auto;
  box-shadow:inset 0 1px rgba(255,255,255,.07),0 8px 18px rgba(0,0,0,.18);
}
.report-command-mark svg{
  width:31px;height:31px;
  fill:none;stroke:#d4dadd;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
.report-command-brand h2{
  margin:2px 0 4px;
  font-size:22px;
  letter-spacing:-.015em;
  color:#f3f5f6;
}
.report-command-brand p:last-child{
  margin:0;
  color:#a6afb4;
  font-size:9px;
}
.report-engine-state{
  position:relative;z-index:1;
  min-width:146px;
  display:grid;
  grid-template-columns:12px 1fr;
  gap:2px 8px;
  align-items:center;
  padding:10px 12px;
  border:1px solid #59646b;
  border-radius:6px;
  background:#252b2f;
}
.report-engine-state i{
  grid-row:1/3;
  width:8px;height:8px;border-radius:50%;
  background:#8fd9bc;
  box-shadow:0 0 8px rgba(143,217,188,.28);
}
.report-engine-state span{
  color:#89949a;
  font-size:6px;
  font-weight:800;
  letter-spacing:.13em;
}
.report-engine-state strong{
  color:#dce2e4;
  font-size:9px;
  letter-spacing:.08em;
}

.report-empty{
  min-height:300px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.report-empty.hidden{display:none!important}
.report-empty-icon{
  width:58px;height:58px;
  display:grid;place-items:center;
  margin-bottom:12px;
  border:1px solid #667178;
  border-radius:7px;
  background:#2d3439;
}
.report-empty-icon svg{
  width:28px;height:28px;fill:none;stroke:#c5cdd1;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;
}
.report-empty h3{margin:0 0 6px}
.report-empty p{max-width:540px;margin:0;color:#8f999e}

.report-workspace{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:14px;
  align-items:start;
}
.report-workspace.hidden{display:none!important}

.report-builder{
  overflow:hidden;
  padding:0!important;
}
.report-builder-top{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:17px 18px 15px;
  border-bottom:1px solid #4e585f;
  background:
    linear-gradient(90deg,rgba(255,255,255,.035),transparent 52%),
    #30373c;
}
.report-builder-top::before{
  content:"";
  position:absolute;left:0;top:0;bottom:0;width:3px;
  background:#929da3;
}
.report-builder-top h3{
  margin:2px 0 4px;
  font-size:17px;
}
.report-builder-top p:last-child{
  margin:0;color:#919ba0;font-size:8px;
}
.report-status-badge{
  min-width:72px;
  padding:6px 8px;
  border:1px solid #646f76;
  border-radius:4px;
  background:#272d31;
  color:#b9c1c5;
  text-align:center;
  font-size:7px;
  font-weight:900;
  letter-spacing:.11em;
}
.report-status-badge[data-state="active"],
.report-status-badge[data-state="approved"]{
  border-color:#5e8174;
  color:#a8ddc8;
}
.report-status-badge[data-state="closed"]{
  border-color:#6c7478;color:#8f999d;
}

.report-readiness-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  margin:14px;
  border:1px solid #4d575e;
  background:#4d575e;
}
.report-readiness-grid article{
  min-height:76px;
  padding:11px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.02),transparent 55%),
    #252b30;
}
.report-readiness-grid span{
  display:block;color:#89949a;font-size:6px;font-weight:800;letter-spacing:.12em;
}
.report-readiness-grid strong{
  display:block;color:#edf0f1;font:900 23px/1 Consolas,monospace;margin:7px 0 4px;
}
.report-readiness-grid small{
  display:block;color:#758086;font-size:6px;
}

.report-section-map{
  margin:0 14px 14px;
  padding:13px;
  border:1px solid #4d575e;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
    #23292d;
  background-size:22px 22px,22px 22px,auto;
}
.report-section-map-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}
.report-section-map-head h4{
  margin:2px 0 0;font-size:12px;
}
.report-section-map-head>span{
  padding:5px 7px;
  border:1px solid #59646b;
  color:#a3adb2;
  background:#2d3438;
  font-size:6px;font-weight:900;letter-spacing:.1em;
}
.report-section-flow{
  display:flex;
  align-items:stretch;
  min-width:0;
  overflow-x:auto;
  padding-bottom:3px;
}
.report-section-flow>div{
  min-width:91px;
  flex:0 0 91px;
  min-height:62px;
  padding:8px;
  border:1px solid #515b62;
  background:linear-gradient(180deg,#343b40,#292f34);
}
.report-section-flow b{
  display:block;color:#9ea8ad;font:800 7px Consolas,monospace;margin-bottom:8px;
}
.report-section-flow span{
  display:block;color:#d6dcdf;font-size:6.5px;line-height:1.3;font-weight:800;
}
.report-section-flow>i{
  flex:0 0 15px;
  height:1px;
  align-self:center;
  background:#6f7a80;
  position:relative;
}
.report-section-flow>i::after{
  content:"";
  position:absolute;right:-1px;top:-2px;
  width:5px;height:5px;
  border-top:1px solid #7e898f;border-right:1px solid #7e898f;
  transform:rotate(45deg);
}

.report-build-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px;
  border-top:1px solid #4c565d;
  background:#20262a;
}
.report-build-note{
  display:flex;align-items:center;gap:9px;min-width:0;
}
.report-build-note svg{
  width:22px;height:22px;flex:0 0 22px;
  fill:none;stroke:#9ba6ac;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
}
.report-build-note strong{
  display:block;color:#cfd5d8;font-size:7px;letter-spacing:.04em;
}
.report-build-note span{
  display:block;color:#818c92;font-size:6.5px;line-height:1.35;margin-top:2px;
}
.report-generate-btn{
  flex:0 0 auto;
  min-height:40px;
  display:flex!important;align-items:center;gap:8px;
}
.report-generate-btn svg{
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
}

.report-side-rail{
  display:grid;
  gap:12px;
  position:sticky;
  top:82px;
}
.report-snapshot{
  padding:0!important;
  overflow:hidden;
}
.report-rail-head{
  padding:13px 14px 11px;
  border-bottom:1px solid #4d575e;
  background:linear-gradient(90deg,rgba(255,255,255,.035),transparent),#30373c;
}
.report-rail-head h3{
  margin:2px 0 0;font-size:13px;
}
.report-snapshot dl{margin:0}
.report-snapshot dl>div{
  padding:10px 13px;
  border-bottom:1px solid #40494f;
}
.report-snapshot dt{
  color:#7f8a90;font-size:6px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
}
.report-snapshot dd{
  margin:4px 0 0;color:#d7dcdf;font-size:8px;font-weight:700;line-height:1.35;
}
.report-integrity{
  padding:8px 12px 10px;background:#20262a;
}
.report-integrity>div{
  min-height:28px;
  display:grid;
  grid-template-columns:8px 1fr auto;
  align-items:center;
  gap:7px;
  border-bottom:1px solid #394247;
}
.report-integrity>div:last-child{border-bottom:0}
.report-integrity i{
  width:5px;height:5px;border-radius:50%;background:#8fd9bc;
}
.report-integrity span{
  color:#808b91;font-size:5.8px;font-weight:800;letter-spacing:.09em;
}
.report-integrity strong{
  color:#aeb8bd;font-size:6px;font-weight:900;letter-spacing:.07em;
}
.report-security-note{
  padding:12px 13px;
  border:1px solid #4d575e;
  border-left:3px solid #68747b;
  border-radius:6px;
  background:#22282c;
}
.report-security-note span{
  display:block;color:#a7b0b5;font-size:6px;font-weight:900;letter-spacing:.13em;margin-bottom:5px;
}
.report-security-note p{
  margin:0;color:#7f898f;font-size:6.7px;line-height:1.45;
}

@media(max-width:1050px){
  .report-workspace{grid-template-columns:1fr}
  .report-side-rail{position:static;grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .report-command-head{align-items:flex-start;flex-direction:column}
  .report-engine-state{width:100%}
  .report-readiness-grid{grid-template-columns:1fr 1fr}
  .report-build-actions{align-items:stretch;flex-direction:column}
  .report-generate-btn{justify-content:center}
  .report-side-rail{grid-template-columns:1fr}
}


/* =========================================================
   GridRivet v0.9.8 — Operations Packet Builder
   ========================================================= */

.packet-command-head{
  position:relative;min-height:102px;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:18px 20px;margin-bottom:14px;overflow:hidden;border:1px solid #59646b;border-radius:8px;
  background:linear-gradient(90deg,rgba(255,255,255,.045),transparent 38%),radial-gradient(circle at 82% -100%,rgba(255,255,255,.06),transparent 260px),linear-gradient(180deg,#353c41,#252b30);
  box-shadow:0 18px 38px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.045);
}
.packet-command-head::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(#aeb8bd,#626e75 60%,transparent)}
.packet-command-head::after{content:"PACKET // ENGINE";position:absolute;right:18px;bottom:7px;color:rgba(255,255,255,.035);font:900 26px/1 Bahnschrift,"Segoe UI";letter-spacing:.15em}
.packet-command-brand{position:relative;z-index:1;display:flex;align-items:center;gap:14px}
.packet-command-mark{width:54px;height:54px;display:grid;place-items:center;flex:0 0 54px;border:1px solid #6c777e;border-radius:7px;background:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(145deg,#3d454a,#252b30);background-size:10px 10px,10px 10px,auto;box-shadow:inset 0 1px rgba(255,255,255,.07),0 8px 18px rgba(0,0,0,.18)}
.packet-command-mark svg{width:31px;height:31px;fill:none;stroke:#d4dadd;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.packet-command-brand h2{margin:2px 0 4px;font-size:22px;letter-spacing:-.015em;color:#f3f5f6}.packet-command-brand p:last-child{margin:0;color:#a6afb4;font-size:9px}
.packet-engine-state{position:relative;z-index:1;min-width:146px;display:grid;grid-template-columns:12px 1fr;gap:2px 8px;align-items:center;padding:10px 12px;border:1px solid #59646b;border-radius:6px;background:#252b2f}
.packet-engine-state i{grid-row:1/3;width:8px;height:8px;border-radius:50%;background:#8fd9bc;box-shadow:0 0 8px rgba(143,217,188,.28)}.packet-engine-state span{color:#89949a;font-size:6px;font-weight:800;letter-spacing:.13em}.packet-engine-state strong{color:#dce2e4;font-size:9px;letter-spacing:.08em}
.packet-empty{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.packet-empty.hidden{display:none!important}
.packet-empty-icon{width:58px;height:58px;display:grid;place-items:center;margin-bottom:12px;border:1px solid #667178;border-radius:7px;background:#2d3439}.packet-empty-icon svg{width:28px;height:28px;fill:none;stroke:#c5cdd1;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.packet-empty h3{margin:0 0 6px}.packet-empty p{max-width:540px;margin:0;color:#8f999e}
.packet-workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:14px;align-items:start}.packet-workspace.hidden{display:none!important}
.packet-builder{overflow:hidden;padding:0!important}.packet-builder-top{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:17px 18px 15px;border-bottom:1px solid #4e585f;background:linear-gradient(90deg,rgba(255,255,255,.035),transparent 52%),#30373c}.packet-builder-top::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#929da3}.packet-builder-top h3{margin:2px 0 4px;font-size:17px}.packet-builder-top p:last-child{margin:0;color:#919ba0;font-size:8px}
.packet-readiness-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin:14px;border:1px solid #4d575e;background:#4d575e}.packet-readiness-grid article{min-height:76px;padding:11px;background:linear-gradient(135deg,rgba(255,255,255,.02),transparent 55%),#252b30}.packet-readiness-grid span{display:block;color:#89949a;font-size:6px;font-weight:800;letter-spacing:.12em}.packet-readiness-grid strong{display:block;color:#edf0f1;font:900 23px/1 Consolas,monospace;margin:7px 0 4px}.packet-readiness-grid small{display:block;color:#758086;font-size:6px}
.packet-section-builder{margin:0 14px 14px;border:1px solid #4d575e;background:#22282c}.packet-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 13px;border-bottom:1px solid #475158;background:linear-gradient(90deg,rgba(255,255,255,.025),transparent),#2b3237}.packet-section-head h4{margin:2px 0 0;font-size:12px}.packet-section-head>span{color:#7f8a90;font-size:6.5px;margin-top:4px}
.packet-section-list{display:grid}.packet-section-row{position:relative;display:grid;grid-template-columns:18px 30px 34px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:64px;padding:8px 11px;border-bottom:1px solid #3f484e;cursor:pointer;transition:background .16s ease,opacity .16s ease}.packet-section-row:last-child{border-bottom:0}.packet-section-row:hover{background:#2a3135}.packet-section-row.locked{cursor:default}.packet-section-row.excluded{opacity:.46;background:#202529}
.packet-section-row input{width:14px;height:14px;accent-color:#aeb8bd}.packet-section-index{color:#758087;font:800 7px Consolas,monospace}.packet-section-icon{width:30px;height:30px;display:grid;place-items:center;border:1px solid #59646b;border-radius:4px;background:#30373c}.packet-section-icon svg{width:17px;height:17px;fill:none;stroke:#aeb8bd;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.packet-section-copy strong{display:block;color:#d7dcdf;font-size:8px;letter-spacing:.025em}.packet-section-copy small{display:block;color:#7e898f;font-size:6.4px;line-height:1.35;margin-top:3px}.packet-section-state{min-width:57px;padding:4px 6px;border:1px solid #525d63;border-radius:3px;color:#89949a;text-align:center;font-size:5.5px;font-weight:900;letter-spacing:.08em}.packet-section-row.map-row{background:linear-gradient(90deg,rgba(255,255,255,.025),transparent),#272e32}.packet-section-row.map-row .packet-section-icon{border-color:#6e7a80}
.packet-build-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px;border-top:1px solid #4c565d;background:#20262a}.packet-build-note{display:flex;align-items:center;gap:9px;min-width:0}.packet-build-note svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:#9ba6ac;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.packet-build-note strong{display:block;color:#cfd5d8;font-size:7px;letter-spacing:.04em}.packet-build-note span{display:block;color:#818c92;font-size:6.5px;line-height:1.35;margin-top:2px}.packet-generate-btn{flex:0 0 auto;min-height:40px;display:flex!important;align-items:center;gap:8px}.packet-generate-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.packet-side-rail{display:grid;gap:12px;position:sticky;top:82px}.packet-snapshot{padding:0!important;overflow:hidden}.packet-rail-head{padding:13px 14px 11px;border-bottom:1px solid #4d575e;background:linear-gradient(90deg,rgba(255,255,255,.035),transparent),#30373c}.packet-rail-head h3{margin:2px 0 0;font-size:13px}.packet-snapshot dl{margin:0}.packet-snapshot dl>div{padding:10px 13px;border-bottom:1px solid #40494f}.packet-snapshot dt{color:#7f8a90;font-size:6px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.packet-snapshot dd{margin:4px 0 0;color:#d7dcdf;font-size:8px;font-weight:700;line-height:1.35}.packet-integrity{padding:8px 12px 10px;background:#20262a}.packet-integrity>div{min-height:28px;display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:7px;border-bottom:1px solid #394247}.packet-integrity>div:last-child{border-bottom:0}.packet-integrity i{width:5px;height:5px;border-radius:50%;background:#8fd9bc}.packet-integrity span{color:#808b91;font-size:5.8px;font-weight:800;letter-spacing:.09em}.packet-integrity strong{color:#aeb8bd;font-size:6px;font-weight:900;letter-spacing:.07em}
.packet-map-note,.packet-security-note{padding:12px 13px;border:1px solid #4d575e;border-left:3px solid #68747b;border-radius:6px;background:#22282c}.packet-map-note span,.packet-security-note span{display:block;color:#a7b0b5;font-size:6px;font-weight:900;letter-spacing:.13em;margin-bottom:5px}.packet-map-note strong{display:block;color:#d0d6d9;font-size:8px;margin-bottom:4px}.packet-map-note p,.packet-security-note p{margin:0;color:#7f898f;font-size:6.7px;line-height:1.45}

@media(max-width:1050px){.packet-workspace{grid-template-columns:1fr}.packet-side-rail{position:static;grid-template-columns:1fr 1fr 1fr}}
@media(max-width:760px){.packet-command-head{align-items:flex-start;flex-direction:column}.packet-engine-state{width:100%}.packet-readiness-grid{grid-template-columns:1fr 1fr}.packet-build-actions{align-items:stretch;flex-direction:column}.packet-generate-btn{justify-content:center}.packet-side-rail{grid-template-columns:1fr}.packet-section-row{grid-template-columns:18px 25px 30px minmax(0,1fr)}.packet-section-state{display:none}}


/* =========================================================
   GridRivet v0.9.9 — Master Names + Smart Map Packet
   ========================================================= */

.master-quick-add{
  margin:0 0 14px;
  padding:12px 13px!important;
  display:grid;
  grid-template-columns:minmax(190px,.7fr) minmax(330px,1.3fr);
  gap:14px;
  align-items:center;
  border-left:3px solid #78858c!important;
}
.master-quick-copy h3{margin:2px 0 3px;font-size:12px}.master-quick-copy p:last-child{margin:0;color:#7f8a90;font-size:6.8px;line-height:1.4}
.master-quick-controls{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:8px;align-items:center}
.master-unit-filter{width:100%;min-width:0}
.master-search-wrap{position:relative;min-width:0}
.master-search-wrap>input{width:100%;padding-right:34px}
.master-search-open{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-left:1px solid #4d575d;background:transparent;color:#aab3b7;cursor:pointer}
.master-quick-results,.person-master-matches{position:absolute;z-index:500;left:0;right:0;top:calc(100% + 5px);max-height:290px;overflow:auto;border:1px solid #59646b;border-radius:6px;background:#20262a;box-shadow:0 18px 32px rgba(0,0,0,.38)}
.master-result{width:100%;display:grid;grid-template-columns:25px 1fr;gap:7px;text-align:left;border:0;border-bottom:1px solid #394248;background:transparent;color:#d7dde0;padding:8px 9px;cursor:pointer}
.master-result:last-child{border-bottom:0}.master-result:hover,.master-result.selected{background:#30383d}
.master-result-check{width:20px;height:20px;border:1px solid #637078;border-radius:3px;display:grid;place-items:center;color:#c8d0d4;font-size:9px}
.master-result strong,.person-master-matches strong{display:block;font-size:7.5px}.master-result small,.person-master-matches small{display:block;color:#7f8a90;font-size:6.3px;margin-top:2px}
.master-result-empty{padding:12px;color:#828d92;font-size:7px}
.master-selected-chips{grid-column:2;display:flex;gap:6px;flex-wrap:wrap;min-height:0}
.master-selected-chips button{border:1px solid #556168;border-radius:4px;background:#2b3237;color:#cbd2d5;padding:4px 6px;font-size:6.3px;cursor:pointer}.master-selected-chips span{color:#879197;margin-left:4px}

.person-master-autocomplete{position:relative}.person-master-matches button{width:100%;display:block;text-align:left;border:0;border-bottom:1px solid #394248;background:transparent;color:#d7dde0;padding:8px 9px;cursor:pointer}.person-master-matches button:hover{background:#30383d}

.master-roster-dialog{width:min(900px,94vw);max-width:900px}.master-roster-form{width:100%;max-width:none;padding:0!important;overflow:hidden}
.master-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:16px 18px;border-bottom:1px solid #4a545a;background:linear-gradient(90deg,rgba(255,255,255,.035),transparent),#2d3439}.master-dialog-head h2{margin:2px 0 3px}.master-dialog-head p:last-child{margin:0;color:#858f94;font-size:7px}
.master-roster-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:8px;padding:11px 13px;border-bottom:1px solid #424c52;background:#22282c}
.master-directory-summary{display:flex;justify-content:space-between;gap:12px;padding:8px 13px;border-bottom:1px solid #424c52;color:#818c91;font-size:6.5px}.master-directory-summary b{color:#d5dcdf;font:900 10px Consolas,monospace;margin-right:3px}
.master-roster-rows{max-height:52vh;overflow:auto}.master-directory-row{display:grid;grid-template-columns:38px minmax(150px,1fr) minmax(140px,.7fr) auto;gap:10px;align-items:center;padding:9px 13px;border-bottom:1px solid #3d464c}.master-directory-row:hover{background:#292f34}
.master-avatar{width:32px;height:32px;border:1px solid #59656c;border-radius:5px;display:grid;place-items:center;background:#30383d;color:#cdd4d7;font:900 8px Bahnschrift,"Segoe UI"}
.master-directory-main strong{display:block;font-size:8px}.master-directory-main span,.master-directory-email{color:#7f8a90;font-size:6.5px;margin-top:2px}.master-directory-actions{display:flex;gap:4px}

.packet-overview-notice{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-bottom:8px;padding:7px 9px;border:1px solid #b7c0c4;border-left:4px solid #596a73;background:#eef1f2;color:#536067}.packet-overview-notice strong{font-size:6.5px;letter-spacing:.08em}.packet-overview-notice span{font-size:6px;line-height:1.35}.packet-overview-notice b{font:800 6px Consolas,monospace}
.packet-master-map{height:6.05in!important}.packet-detail-map{height:6.35in!important}
.packet-leaflet-icon.compact{width:26px;height:26px;border-width:1.5px}.packet-leaflet-icon.compact span{font-size:6.5px}
.packet-detail-index{display:flex;gap:5px;flex-wrap:wrap;padding:7px 8px;border:1px solid #c2c8cb;border-top:0;background:#f5f6f6}.packet-detail-index span{display:flex;align-items:center;gap:4px;color:#596368;font-size:5.8px}.packet-detail-index b{width:18px;height:18px;display:grid;place-items:center;background:#2f373b;color:white;font:800 6px Consolas,monospace}
.packet-index-intro{margin:-9px 0 14px;color:#687378;font-size:7.5px}.packet-index-table .packet-index-id{font:900 9px Consolas,monospace;color:#283034}

@media(max-width:800px){
  .master-quick-add{grid-template-columns:1fr}.master-selected-chips{grid-column:1}.master-quick-controls{grid-template-columns:1fr}.master-roster-toolbar{grid-template-columns:1fr}.master-directory-row{grid-template-columns:38px minmax(0,1fr) auto}.master-directory-email{display:none}
}


/* GridRivet v0.9.9.1 — Table of Organization importer hotfix */
.master-directory-email{
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
}

/* =========================================================
   GridRivet v0.9.10 — Mobile Operations Interface
   Responsive-only enhancement. Desktop logic remains intact.
   ========================================================= */
html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
img,svg,canvas{max-width:100%}

.mobile-nav-toggle{display:none}

@media(max-width:760px){
  body.mobile-nav-open{overflow:hidden}
  .topbar{height:64px!important;min-height:64px!important;padding:0 10px!important;gap:8px}
  .brand-inline{gap:8px;min-width:0}
  .brand-inline .brand-mark.small{width:34px!important;height:34px!important;flex:0 0 34px}
  .brand-inline strong{font-size:12px!important;letter-spacing:.13em!important}
  .brand-inline span{display:none!important}
  .topbar-actions{gap:5px;min-width:0}
  .current-operation-context{display:none!important}
  .command-profile-copy,.command-role-fallback{display:none!important}
  .command-profile{padding:3px!important;gap:3px!important}
  .command-avatar{width:32px!important;height:32px!important;flex:0 0 32px!important}
  .command-icon-btn{width:32px!important;height:32px!important}

  .mobile-nav-toggle{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid #39738e;border-radius:7px;background:#102b3c;color:#dff8ff;cursor:pointer}
  .mobile-nav-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

  .workspace{display:block!important;min-height:calc(100dvh - 64px)!important}
  .sidebar{position:fixed!important;z-index:80!important;top:64px!important;left:0!important;bottom:0!important;width:min(84vw,310px)!important;height:auto!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 10px 24px!important;border-right:1px solid #347a99!important;border-bottom:0!important;box-shadow:18px 0 45px rgba(0,0,0,.48)!important;transform:translateX(-105%);transition:transform .2s ease}
  body.mobile-nav-open .sidebar{transform:translateX(0)}
  .mobile-nav-scrim{display:none;position:fixed;z-index:70;inset:64px 0 0;background:rgba(0,0,0,.58);backdrop-filter:blur(2px)}
  body.mobile-nav-open .mobile-nav-scrim{display:block}
  .sidebar .nav-group-label{display:block!important;padding:15px 12px 6px!important}
  .sidebar .nav-btn{width:100%!important;min-height:48px!important;white-space:normal!important;flex:0 0 auto!important;padding:11px 12px!important}
  .sidebar-bottom{display:block!important;margin-top:16px!important}

  .main{padding:12px!important;width:100%;min-width:0}
  .section-head,.command-view-head{gap:10px!important;margin-bottom:14px!important}
  .section-head h2,.command-view-title h2{font-size:22px!important}
  .head-actions,.section-head>div:last-child{width:100%;flex-wrap:wrap}
  .head-actions .btn,.section-head>button,.section-head>div:last-child .btn{flex:1 1 145px;min-height:44px}
  .btn{min-height:42px;padding:10px 12px!important}
  input,select,textarea{font-size:16px!important;min-height:44px}

  .operation-grid,.planner-grid,.form-grid.two,.stat-row,.assignment-card-grid{grid-template-columns:1fr!important}
  .operation-card,.panel,.empty-card{min-width:0}
  .span2{grid-column:auto!important}
  .activity-item{grid-template-columns:1fr!important;gap:5px!important}
  .locked-feature{flex-direction:column!important;align-items:stretch!important}

  .roster-toolbar,.master-quick-controls,.master-roster-toolbar{grid-template-columns:1fr!important;width:100%}
  .master-quick-add{grid-template-columns:1fr!important}
  .master-selected-chips{grid-column:1!important}
  .master-quick-results,.person-master-matches{position:fixed!important;left:10px!important;right:10px!important;top:auto!important;bottom:10px!important;max-height:48dvh!important;z-index:900!important;border-radius:10px!important}
  .master-result{padding:12px!important;grid-template-columns:30px 1fr!important}
  .master-result strong,.person-master-matches strong{font-size:13px!important}
  .master-result small,.person-master-matches small{font-size:11px!important}

  dialog,.wide-dialog,.master-roster-dialog{width:calc(100vw - 16px)!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;margin:auto!important;padding:10px!important;overflow:auto!important}
  .dialog-form,.master-roster-form{max-height:calc(100dvh - 38px);overflow:auto}
  .dialog-actions{position:sticky;bottom:-8px;z-index:3;padding:10px 0 2px;background:#0f151c;flex-wrap:wrap}
  .dialog-actions .btn{flex:1 1 120px}
  .master-dialog-head{padding:13px!important;gap:10px!important}
  .master-directory-row{grid-template-columns:34px minmax(0,1fr) auto!important;padding:10px 8px!important}
  .master-directory-main strong{font-size:12px!important}.master-directory-main span{font-size:10px!important}.master-directory-email{display:none!important}

  .map-workspace,.walkthrough-workspace,.report-workspace,.packet-workspace{grid-template-columns:1fr!important}
  #operationalMap{height:calc(100dvh - 230px)!important;min-height:430px!important}
  .map-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .map-toolbox,.walkthrough-side{max-height:none!important}
  .leaflet-control-zoom a{width:38px!important;height:38px!important;line-height:38px!important}
  .packet-side-rail,.report-side-rail{grid-template-columns:1fr!important;position:static!important}

  .table-wrap,.roster-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  table{min-width:680px}
  .toast{left:10px!important;right:10px!important;bottom:10px!important;text-align:center}
}

@media(max-width:420px){
  .main{padding:9px!important}
  .brand-inline strong{font-size:11px!important}
  .section-head h2,.command-view-title h2{font-size:20px!important}
  .operation-card,.panel{padding:14px!important}
  #operationalMap{min-height:390px!important}
  .map-tool-grid{grid-template-columns:1fr 1fr!important}
}

/* ==============================================================
   GridRivet v0.9.11 — Mobile Map Workspace
   Phone map is a dedicated full-screen operational surface.
   ============================================================== */
.mobile-map-controls,.map-mobile-scrim{display:none}

@media(max-width:760px){
  body:has(#mapView.active) .main{padding:0!important}
  #mapView.active{position:fixed!important;z-index:45!important;inset:64px 0 0!important;background:#090d11!important;overflow:hidden!important}
  #mapView.active>.section-head{display:none!important}
  #mapView.active #mapPlaceholder{margin:12px!important}
  #mapView.active .map-workspace{display:block!important;position:absolute!important;inset:0!important;height:auto!important;min-height:0!important;overflow:hidden!important}
  #mapView.active .map-stage{position:absolute!important;inset:0!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#080c10!important}
  #mapView.active .map-toolbar{position:absolute!important;z-index:510!important;left:10px!important;top:10px!important;right:auto!important;width:auto!important;max-width:calc(100% - 132px)!important;padding:7px 10px!important;border:1px solid rgba(125,145,155,.5)!important;border-radius:8px!important;background:rgba(15,21,27,.90)!important;backdrop-filter:blur(8px)!important;box-shadow:0 5px 18px rgba(0,0,0,.35)!important;pointer-events:none}
  #mapView.active .map-toolbar>div span{display:none!important}
  #mapView.active .map-toolbar strong{display:block!important;max-width:52vw!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important}
  #mapView.active .map-toolbar>#fitMapBtn{display:none!important}
  #mapView.active #operationalMap{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;border:0!important;border-radius:0!important}

  .mobile-map-controls{display:flex!important;position:absolute;z-index:530;right:10px;top:10px;gap:6px}
  .mobile-map-action{min-width:44px;height:42px;padding:0 10px;border:1px solid #59666d;border-radius:8px;background:rgba(18,25,31,.94);color:#d6dde0;font:800 10px/1 system-ui,sans-serif;box-shadow:0 5px 18px rgba(0,0,0,.35);backdrop-filter:blur(8px)}
  .mobile-map-action.primary{border-color:#66818e;background:#263942;color:#fff}

  #mapView.active .map-toolbox{display:flex!important;position:absolute!important;z-index:560!important;left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;width:auto!important;height:auto!important;max-height:min(72dvh,610px)!important;margin:0!important;border:1px solid #59666d!important;border-radius:14px!important;background:#10161c!important;box-shadow:0 -12px 45px rgba(0,0,0,.58)!important;transform:translateY(calc(100% + 24px));transition:transform .22s ease!important;overflow:hidden!important}
  body.mobile-map-tools-open #mapView.active .map-toolbox{transform:translateY(0)}
  #mapView.active .map-toolbox-head{padding:12px 14px 8px!important}
  #mapView.active .map-toolbox-hint{display:none!important}
  #mapView.active .map-tools-toggle{display:none!important}
  #mapView.active .map-tool-tabs{padding:0 12px 8px!important}
  #mapView.active .map-tool-scroll{overflow-y:auto!important;max-height:48dvh!important;padding:8px 12px!important;-webkit-overflow-scrolling:touch}
  #mapView.active .map-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  #mapView.active .map-tool-grid button{min-height:64px!important;padding:8px 4px!important}
  #mapView.active .map-tool-grid button>span:last-child{font-size:9px!important;line-height:1.15!important}
  #mapView.active .map-area-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  #mapView.active .map-area-tool-grid button{min-height:48px!important}
  #mapView.active .map-toolbox-footer{padding:9px 12px!important;gap:8px!important}
  #mapView.active .map-help span{display:none!important}
  #mapView.active .map-tools-rail{display:none!important}

  .map-mobile-scrim{display:block!important;position:absolute;z-index:550;inset:0;background:rgba(0,0,0,.38);opacity:0;pointer-events:none;transition:opacity .2s ease}
  body.mobile-map-tools-open .map-mobile-scrim{opacity:1;pointer-events:auto}

  #mapView.active .leaflet-control-zoom{margin-left:10px!important;margin-bottom:14px!important}
  #mapView.active .leaflet-control-zoom a{width:42px!important;height:42px!important;line-height:42px!important;font-size:20px!important}
  #mapView.active .leaflet-control-attribution{font-size:8px!important;max-width:70vw!important;white-space:normal!important}
}

@media(max-width:420px){
  #mapView.active .map-toolbar{max-width:43vw!important}
  #mapView.active .map-toolbar strong{max-width:39vw!important}
  .mobile-map-action{padding:0 8px!important;font-size:9px!important}
  #mapView.active .map-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* ==============================================================
   GridRivet v0.9.11.2 — Desktop Layout Guard
   Prevent tablet/mobile legacy breakpoints from collapsing the
   desktop command shell when running on a desktop browser.
   ============================================================== */
@media (min-width:761px){
  .mobile-nav-toggle,
  .mobile-nav-scrim,
  .mobile-map-controls,
  .map-mobile-scrim{display:none!important}

  body{overflow-x:hidden!important}
  body.mobile-nav-open,
  body.mobile-map-tools-open{overflow:auto!important}

  .workspace{
    display:grid!important;
    grid-template-columns:232px minmax(0,1fr)!important;
    align-items:stretch!important;
    min-height:calc(100vh - 64px)!important;
    width:100%!important;
  }

  .sidebar{
    grid-column:1!important;
    grid-row:1!important;
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:232px!important;
    min-width:232px!important;
    height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:visible!important;
    transform:none!important;
    box-shadow:none!important;
    border-bottom:0!important;
  }

  .sidebar .nav-btn{
    width:100%!important;
    white-space:normal!important;
    flex:0 0 auto!important;
  }

  .sidebar-bottom{
    display:block!important;
    margin-top:auto!important;
  }

  .main{
    grid-column:2!important;
    grid-row:1!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding:24px 28px 34px!important;
  }

  .view.active{display:block!important}
  #mapView.active{position:static!important;inset:auto!important;overflow:visible!important}
  #mapView.active>.section-head{display:flex!important}
  #mapView.active .map-workspace{display:grid!important;position:static!important;height:auto!important;overflow:visible!important}
  #mapView.active .map-stage{position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;border-radius:8px!important}
  #mapView.active #operationalMap{position:relative!important;inset:auto!important;width:100%!important;height:650px!important;min-height:650px!important}
  #mapView.active .map-toolbox{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;width:auto!important;height:auto!important;max-height:none!important;transform:none!important;box-shadow:none!important}
}
