:root {
  --bg: #070b11;
  --bg-card: #101620;
  --bg-panel: #0b1017;
  --border: #232d3d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #2f81f7;
  --accent-glow: rgba(47, 129, 247, 0.45);
  --ok: #3fb950;
  --warn: #d29922;
  --err: #f85149;
  --cyan: #39d0d8;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.hidden { display: none !important; }

/* ---------------- PASSCODE GATE ---------------- */
.gate-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(47, 129, 247, 0.16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(57, 208, 216, 0.08), transparent 45%),
    var(--bg);
}
.gate-card {
  width: 100%;
  max-width: 410px;
  background: rgba(16, 22, 32, 0.94);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
}
.gate-radar {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulseRing 2.4s infinite;
}
.radar-core { font-size: 28px; }
@keyframes pulseRing {
  0% { transform: scale(0.82); opacity: 0.9; }
  100% { transform: scale(1.38); opacity: 0; }
}
.gate-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #79c0ff;
  background: rgba(47, 129, 247, 0.15);
  border: 1px solid rgba(47, 129, 247, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.gate-card h1 { font-size: 1.35rem; margin: 0 0 6px; }
.gate-sub { font-size: 0.84rem; color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.device-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.device-pill code { color: var(--cyan); font-weight: 700; }
.gate-form { text-align: left; display: grid; gap: 8px; }
.gate-form label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.gate-form input {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  outline: none;
}
.gate-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.18); }
.btn-primary {
  margin-top: 4px;
  background: linear-gradient(135deg, #2f81f7, #1f6feb);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.gate-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  background: rgba(248, 81, 73, 0.13);
  border: 1px solid rgba(248, 81, 73, 0.45);
  color: #ffa198;
}
.gate-foot { margin-top: 14px; font-size: 0.74rem; color: var(--muted); }
.gate-foot code { color: #7ee787; }

/* ---------------- APP SHELL & TOPBAR ---------------- */
.app-shell { display: flex; flex-direction: column; width: 100%; height: 100%; }
.topbar {
  height: 60px;
  padding: 0 14px;
  background: rgba(11, 16, 23, 0.96);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 30;
}
.brand-area { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.brand-title { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; }
.tag-live {
  font-size: 0.64rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(47, 129, 247, 0.18);
  color: #79c0ff;
  border: 1px solid rgba(47, 129, 247, 0.4);
}
.brand-meta { font-size: 0.72rem; color: var(--muted); }

.omnibar-wrap { position: relative; flex: 1; max-width: 520px; }
.omnibar-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 34px 8px 34px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}
.omnibar-wrap input:focus { border-color: var(--accent); }
.search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 0.85rem; pointer-events: none; }
.kbd-hint {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-size: 0.68rem; color: var(--muted); background: var(--bg-panel);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  max-height: 410px;
  overflow-y: auto;
  background: #121925;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.75);
  z-index: 60;
}
.sr-item {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(35, 45, 61, 0.65);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.sr-item:hover { background: rgba(47, 129, 247, 0.14); }
.sr-name { font-weight: 700; font-size: 0.86rem; }
.sr-sub { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.sr-loc-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(57, 208, 216, 0.12);
  border: 1px solid rgba(57, 208, 216, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
}

.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.mode-switch { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.mode-btn {
  border: 0; background: transparent; color: var(--muted); font-size: 0.74rem; font-weight: 700;
  padding: 6px 10px; border-radius: 7px; cursor: pointer;
}
.mode-btn.active { background: var(--accent); color: #fff; }
.pill-btn, .key-status-pill {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.pill-btn.active { border-color: var(--warn); color: #e3b341; background: rgba(210,153,34,0.14); }
.pill-btn.danger-outline:hover { border-color: var(--err); color: #ffa198; }
.key-status-pill { color: #7ee787; border-color: rgba(63,185,80,0.35); background: rgba(63,185,80,0.08); cursor: default; }
.icon-btn {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer;
}
.mobile-only { display: none; }

/* ---------------- WORKSPACE SPLIT ---------------- */
.workspace { flex: 1; display: flex; min-height: 0; position: relative; }
.sidebar {
  width: 270px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 14px;
  z-index: 25;
}
.sidebar-section { display: flex; flex-direction: column; gap: 7px; }
.grow-scroll { flex: 1; min-height: 0; }
.section-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.cat-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg-card); padding: 3px; border-radius: 8px; border: 1px solid var(--border); }
.cat-tab {
  border: 0; background: transparent; color: var(--muted); font-size: 0.72rem; font-weight: 700;
  padding: 6px 4px; border-radius: 6px; cursor: pointer;
}
.cat-tab.active { background: rgba(47,129,247,0.2); color: #79c0ff; }
.select-dark {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font-size: 0.8rem; outline: none;
}
.hostel-nav-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.hostel-nav-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 11px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.hostel-nav-item:hover { border-color: var(--accent); }
.hostel-nav-item.active { border-color: var(--accent); background: rgba(47,129,247,0.12); }
.hni-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 700; font-size: 0.83rem; }
.hni-count { font-size: 0.71rem; color: var(--cyan); font-weight: 700; }
.hni-sub { font-size: 0.71rem; color: var(--muted); margin-top: 3px; }

/* ---------------- STAGE & COMPASS ---------------- */
.stage { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 45%, #0e1624 0%, #070b11 80%); }

.compass-widget {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 22;
  background: rgba(11, 16, 23, 0.86);
  border: 1px solid rgba(47, 129, 247, 0.4);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
  cursor: pointer;
  user-select: none;
}
.compass-svg { width: 82px; height: 82px; }
.cmp-ring-outer { fill: rgba(7,11,17,0.9); stroke: rgba(47,129,247,0.45); stroke-width: 1.5; }
.cmp-ring-inner { fill: none; stroke: rgba(139,148,158,0.22); stroke-width: 1; stroke-dasharray: 3 3; }
.cmp-n { fill: #f85149; font-size: 11px; font-weight: 900; }
.cmp-dir { fill: #8b949e; font-size: 9px; font-weight: 700; }
.needle-n { fill: #f85149; }
.needle-s { fill: #475569; }
.needle-target { fill: var(--cyan); }
.cmp-hub { fill: #e6edf3; }
#compassRose { transform-origin: 60px 60px; transition: transform 0.25s ease-out; }
#compassTargetBearing { transform-origin: 60px 60px; transition: transform 0.3s ease-out; }
.compass-readout { text-align: center; margin-top: 3px; }
#compassDeg { display: block; font-size: 0.74rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.cmp-target-sub { display: block; font-size: 0.65rem; color: var(--cyan); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 2D / 3D CAMPUS ENGINE ---------------- */
.campus-view { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.map-controls-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ctrl-btn {
  background: rgba(16, 22, 32, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.ctrl-btn:hover { border-color: var(--accent); }
.ctrl-btn.active { background: rgba(47,129,247,0.22); border-color: var(--accent); color: #79c0ff; }
.ctrl-btn:disabled { opacity: 0.38; cursor: not-allowed; }

.viewport-3d {
  flex: 1;
  position: relative;
  overflow: hidden;
  perspective: 1500px;
  cursor: grab;
  touch-action: none;
}
.viewport-3d:active { cursor: grabbing; }

.campus-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -560px;
  margin-top: -380px;
  width: 1120px;
  height: 760px;
  background: rgba(12, 18, 28, 0.92);
  border: 2px solid rgba(47, 129, 247, 0.35);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.campus-ground-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.buildings-layer { position: absolute; inset: 0; transform-style: preserve-3d; }

.bldg-3d {
  position: absolute;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}
.bldg-footprint {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(20, 29, 43, 0.94);
  border: 1.5px solid rgba(47, 129, 247, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
  transform-style: preserve-3d;
}
.bldg-3d:hover .bldg-footprint {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(57, 208, 216, 0.45);
}
.bldg-3d.has-hit .bldg-footprint {
  border-color: var(--warn);
  box-shadow: 0 0 32px rgba(210, 153, 34, 0.75);
}
.bldg-slab {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1.5px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(145deg, rgba(30, 44, 66, 0.95), rgba(15, 23, 36, 0.96));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s;
  transform-style: preserve-3d;
}
.bldg-roof {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(155deg, rgba(32, 50, 78, 0.97), rgba(16, 25, 39, 0.98));
  border: 2px solid rgba(57, 208, 216, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
}
.bldg-3d.has-hit .bldg-roof {
  border-color: #f59e0b;
  background: linear-gradient(155deg, rgba(66, 48, 16, 0.97), rgba(26, 20, 10, 0.98));
}
.roof-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.roof-code {
  font-size: 0.72rem; font-weight: 900; padding: 2px 7px; border-radius: 5px;
  background: rgba(47, 129, 247, 0.25); color: #79c0ff; border: 1px solid rgba(47, 129, 247, 0.45);
}
.roof-dir { font-size: 0.68rem; font-weight: 800; color: var(--cyan); }
.roof-name { font-weight: 800; font-size: 0.92rem; line-height: 1.2; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }
.roof-stats { display: flex; justify-content: space-between; font-size: 0.72rem; color: #9ecbff; font-weight: 600; }

.beacon-pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateZ(95px) rotateX(-55deg);
  background: #f59e0b;
  color: #000;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 0 22px #f59e0b;
  white-space: nowrap;
  pointer-events: none;
  animation: floatBeacon 1.4s ease-in-out infinite alternate;
}
@keyframes floatBeacon {
  from { margin-top: 0; }
  to { margin-top: -10px; }
}

.campus-legend {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: rgba(11, 16, 23, 0.9);
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot-ok { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot-hit { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.legend-tip { margin-left: auto; }

/* ---------------- HOSTEL FLOORPLAN VIEW ---------------- */
.building-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bldg-header {
  padding: 12px 16px 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 23, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bldg-crumb-row { display: flex; align-items: center; gap: 12px; }
.bldg-crumb-row h2 { margin: 0; font-size: 1.08rem; }
.bldg-sub { font-size: 0.75rem; color: var(--cyan); margin-top: 2px; }
.bldg-stats-badge {
  font-size: 0.76rem; font-weight: 700; color: #79c0ff;
  background: rgba(47,129,247,0.14); border: 1px solid rgba(47,129,247,0.35);
  padding: 5px 10px; border-radius: 999px;
}
.bldg-selectors {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.selector-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.selector-lbl { font-size: 0.68rem; font-weight: 800; color: var(--muted); }
.chip-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-tab {
  border: 1px solid var(--border); background: var(--bg-card); color: var(--muted);
  border-radius: 7px; padding: 5px 10px; font-size: 0.76rem; font-weight: 700; cursor: pointer;
}
.chip-tab.active { background: rgba(47,129,247,0.2); border-color: var(--accent); color: #fff; }

.room-grid-scroll { flex: 1; overflow-y: auto; padding: 16px; }
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 10px;
}
.room-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.room-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.room-tile.selected { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(57,208,216,0.3); }
.room-tile.highlighted { border-color: #f59e0b; box-shadow: 0 0 18px rgba(245,158,11,0.45); background: rgba(245,158,11,0.08); }
.rt-top { display: flex; justify-content: space-between; align-items: center; }
.rt-num { font-weight: 800; font-size: 0.94rem; color: #fff; }
.rt-beds { display: flex; gap: 3px; }
.bed-pip { width: 7px; height: 7px; border-radius: 2px; background: var(--ok); }
.rt-names { font-size: 0.74rem; color: #c9d1d9; line-height: 1.32; }
.rt-depts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.dept-mini {
  font-size: 0.64rem; font-weight: 700; padding: 2px 5px; border-radius: 4px;
  background: rgba(47,129,247,0.16); color: #79c0ff;
}

/* ---------------- DOSSIER DRAWER ---------------- */
.dossier-drawer {
  width: 375px;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 35;
}
.drawer-hdr {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.drawer-loc { font-size: 0.7rem; font-weight: 700; color: var(--cyan); }
.drawer-hdr h3 { margin: 2px 0 0; font-size: 1.12rem; }
.drawer-nav-btns { display: flex; gap: 6px; }
.drawer-dir-banner {
  padding: 7px 14px;
  background: rgba(47, 129, 247, 0.1);
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
  color: #9ecbff;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.stu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stu-top { display: flex; gap: 11px; align-items: center; }
.stu-avatar {
  width: 52px; height: 52px; border-radius: 12px; object-fit: cover;
  background: #1c2638; border: 1px solid var(--border); flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; color: #79c0ff; font-size: 1.1rem;
}
.stu-name { font-weight: 800; font-size: 0.96rem; }
.stu-meta { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.stu-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.stu-pill {
  font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(57,208,216,0.12); color: var(--cyan); border: 1px solid rgba(57,208,216,0.3);
}
.stu-pill.cgpa { background: rgba(63,185,80,0.14); color: #7ee787; border-color: rgba(63,185,80,0.35); }
.stu-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.76rem; border-top: 1px solid rgba(35,45,61,0.7); padding-top: 8px; }
.kv-lbl { color: var(--muted); font-size: 0.67rem; }
.kv-val { font-weight: 600; word-break: break-word; margin-top: 1px; }
.stu-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.act-link {
  flex: 1; text-align: center; text-decoration: none;
  background: var(--bg-panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 8px; font-size: 0.74rem; font-weight: 700;
}
.act-link:hover { border-color: var(--accent); color: #79c0ff; }

/* ---------------- RESPONSIVE MOBILE ---------------- */
@media (max-width: 960px) {
  .mobile-only { display: grid; }
  .sidebar { position: fixed; left: 0; top: 60px; bottom: 0; transform: translateX(-100%); transition: transform 0.22s; }
  .sidebar.open { transform: translateX(0); }
  .dossier-drawer { position: fixed; right: 0; left: 0; bottom: 0; width: 100%; height: 68vh; border-left: 0; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; }
  .key-status-pill, .kbd-hint, .legend-tip { display: none; }
  .compass-widget { top: 10px; right: 10px; padding: 6px 8px; }
  .compass-svg { width: 62px; height: 62px; }
}
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 10px; gap: 8px; }
  .omnibar-wrap { order: 3; max-width: 100%; width: 100%; flex-basis: 100%; }
  #btnPrivacy { display: none; }
}
