:root {
  --bg: #0b1020;
  --bg-2: #0f1730;
  --panel: #111936;
  --panel-2: #182447;
  --panel-3: #0f1a34;
  --text: #eef2ff;
  --muted: #9aa6d1;
  --line: rgba(255,255,255,.08);
  --accent: #67e8f9;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --pixel-floor-a: #d8d0c2;
  --pixel-floor-b: #cfc5b6;
  --pixel-floor-line: rgba(90, 76, 60, .18);
  --desk-top: #f8f7f4;
  --desk-edge: #5a6275;
  --desk-shadow: rgba(31, 41, 55, .35);
  --monitor-body: #3f4757;
  --monitor-screen: #7dd3fc;
  --chair: #2f3a4a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, Arial, sans-serif; background: linear-gradient(180deg,var(--bg),var(--bg-2)); color: var(--text); }
button, input, textarea, select { font: inherit; }
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); padding: 20px; background: rgba(0,0,0,.15); backdrop-filter: blur(12px); }
.brand { display:flex; gap:12px; align-items:center; margin-bottom:24px; }
.logo { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background: linear-gradient(135deg,#1d4ed8,#06b6d4); font-size: 24px; }
.brand-title { font-weight:700; font-size:20px; }
.brand-subtitle { color:var(--muted); font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
.nav { display:flex; flex-direction:column; gap:8px; }
.nav-btn, .action-btn, .icon-btn { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align:left; cursor:pointer; pointer-events:auto; }
.nav-btn.active, .nav-btn:hover, .action-btn:hover, .icon-btn:hover { background: var(--panel-2); border-color: rgba(103,232,249,.35); }
.action-btn.primary { background: linear-gradient(135deg,#0ea5e9,#2563eb); border-color: transparent; }
.action-btn.danger { background: rgba(239,68,68,.12); color: #fecaca; border-color: rgba(239,68,68,.35); }
.action-btn.slim { padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.icon-btn { padding: 8px 12px; text-align:center; }
.sidebar-note { margin-top: 24px; color: var(--muted); font-size: 13px; display:grid; gap:6px; }
.sidebar-system { margin-top: 18px; padding: 14px; }
.compact-card { border-radius: 16px; }
.sidebar-system h3 { margin: 0 0 10px; font-size: 16px; }
.sidebar-system-grid { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
.sidebar-metric { border:1px solid var(--line); border-radius: 12px; padding: 10px; background: rgba(255,255,255,.03); }
.sidebar-metric-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sidebar-metric-value { margin-top: 4px; font-size: 16px; font-weight: 800; }
.system-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; }
.system-metric-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; }
.system-metric { border:1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(255,255,255,.03); }
.system-metric-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.system-metric-value { margin-top: 8px; font-size: 28px; font-weight: 800; }
.metric-good { color: var(--green); }
.metric-warn { color: var(--yellow); }
.metric-danger { color: var(--red); }
.progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px; }
.progress > span { display:block; height:100%; border-radius: 999px; background: linear-gradient(90deg,#06b6d4,#2563eb); }
.progress > span.metric-good-bar { background: linear-gradient(90deg,#22c55e,#16a34a); }
.progress > span.metric-warn-bar { background: linear-gradient(90deg,#f59e0b,#d97706); }
.progress > span.metric-danger-bar { background: linear-gradient(90deg,#ef4444,#dc2626); }
@media (max-width: 980px) { .system-grid, .system-metric-grid, .sidebar-system-grid, .radio-summary-grid, .radio-station-grid { grid-template-columns: 1fr; } }
.radio-summary-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; }
.radio-station-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap:16px; }
.radio-health-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; margin-top:16px; }
.radio-kv { display:grid; grid-template-columns: 1fr 1fr; gap:8px; margin-top:12px; }
.radio-kv .task { padding:10px 12px; border-radius:12px; }
.radio-stage-list { display:grid; gap:8px; margin-top:12px; }
.radio-stage { border:1px solid var(--line); border-radius:12px; padding:10px 12px; background: rgba(255,255,255,.03); }
.radio-stage-head { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.radio-log-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.save-state { color: var(--accent); }
.main { padding: 24px; }
.topbar { margin-bottom: 20px; display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.topbar h1 { margin: 0 0 6px; font-size: 30px; }
.topbar p { margin: 0; color: var(--muted); }
.top-actions { display:flex; gap:10px; flex-wrap:wrap; }
.view { display:none; }
.view.active { display:block; }
.grid { display:grid; gap:16px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.metric { font-size: 36px; font-weight: 800; margin-top: 10px; }
.list { display:grid; gap:12px; margin-top: 12px; }
.task, .agent, .member, .mini-card { border:1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(255,255,255,.02); }
.clickable { cursor:pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.clickable:hover { transform: translateY(-1px); border-color: rgba(103,232,249,.38); background: rgba(255,255,255,.04); }
.row { display:flex; justify-content: space-between; gap: 12px; align-items: center; }
.badges { display:flex; gap:8px; flex-wrap: wrap; }
.badge { padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border:1px solid transparent; }
.status-planned { background: rgba(96,165,250,.15); color: var(--blue); }
.status-in_progress, .state-working { background: rgba(34,197,94,.15); color: var(--green); }
.status-done { background: rgba(103,232,249,.14); color: var(--accent); }
.status-blocked, .state-error { background: rgba(239,68,68,.14); color: var(--red); }
.state-waiting, .status-waiting { background: rgba(245,158,11,.14); color: var(--yellow); }
.state-planned, .status-review { background: rgba(148,163,184,.18); color: #cbd5e1; }
.muted { color: var(--muted); }
.split { display:grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); gap:16px; align-items:start; }
.panel-note { font-size:13px; color:var(--muted); margin-top:8px; }
.agent-office { display:grid; grid-template-columns: minmax(0, 2.4fr) minmax(300px, .9fr); gap:16px; align-items:start; }
.office-hierarchy-layout { grid-template-columns: minmax(0, 1.8fr) minmax(320px, .8fr); }
.office-hierarchy-panel { display:grid; gap:18px; }
.office-hierarchy-root { display:grid; gap:10px; }
.office-hierarchy-caption, .office-level-title { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.office-hierarchy-lead { display:flex; justify-content:center; }
.office-levels { display:grid; gap:18px; }
.office-tree-lines .office-level-block { position:relative; }
.office-tree-lines .office-level-block::before {
  content:'';
  position:absolute;
  left:18px;
  right:18px;
  top:-10px;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(103,232,249,.32), transparent);
}
.office-level-block { display:grid; gap:10px; }
.office-flat-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:12px; }
.office-flat-grid.compact { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.office-flat-node {
  display:grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  cursor:pointer;
}
.office-flat-node:hover { border-color: rgba(103,232,249,.38); }
.office-flat-node.selected { border-color: rgba(103,232,249,.9); box-shadow: 0 0 0 2px rgba(103,232,249,.12); }
.office-flat-node.lead { max-width: 520px; width:100%; }
.office-flat-node-icon {
  width:56px; height:56px; border-radius:16px; display:grid; place-items:center; font-size:28px;
  background: linear-gradient(135deg, rgba(96,165,250,.18), rgba(167,139,250,.18)); border:1px solid rgba(255,255,255,.08);
}
.office-flat-node-topline { display:flex; gap:8px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.office-flat-node-name { font-size:16px; font-weight:800; line-height:1.2; }
.office-flat-node-role { margin-top:4px; color:var(--text); opacity:.92; }
.office-flat-node-meta { margin-top:6px; color:var(--muted); font-size:12px; line-height:1.4; }
.office-flat-node-side { display:flex; align-items:flex-start; }
.office-badge-soft { background: rgba(255,255,255,.06); color:#dbeafe; border:1px solid rgba(255,255,255,.08); }
.office-level-lead { border-color: rgba(103,232,249,.70); box-shadow: 0 12px 34px rgba(6,182,212,.14), inset 0 0 0 1px rgba(103,232,249,.18); }
.office-level-cyan { border-color: rgba(103,232,249,.55) !important; }
.office-level-violet { border-color: rgba(167,139,250,.52) !important; }
.office-level-amber { border-color: rgba(245,158,11,.52) !important; }
.office-level-slate { border-color: rgba(148,163,184,.40) !important; }
.office-flat-node.office-level-cyan { box-shadow: 0 8px 24px rgba(6,182,212,.08), inset 0 0 0 1px rgba(103,232,249,.12); }
.office-flat-node.office-level-violet { box-shadow: 0 8px 24px rgba(139,92,246,.08), inset 0 0 0 1px rgba(167,139,250,.12); }
.office-flat-node.office-level-amber { box-shadow: 0 8px 24px rgba(245,158,11,.08), inset 0 0 0 1px rgba(245,158,11,.12); }
.office-flat-node.office-level-slate { box-shadow: 0 8px 24px rgba(100,116,139,.08), inset 0 0 0 1px rgba(148,163,184,.10); }
.office-level-block.office-level-cyan .office-level-title { color:#a5f3fc; }
.office-level-block.office-level-violet .office-level-title { color:#ddd6fe; }
.office-level-block.office-level-amber .office-level-title { color:#fde68a; }
.office-level-block.office-level-slate .office-level-title { color:#cbd5e1; }
.office-map-panel {
  position: relative;
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(103,232,249,.10), transparent 34%),
    radial-gradient(circle at bottom, rgba(96,165,250,.08), transparent 36%),
    linear-gradient(180deg, rgba(17,25,54,.98), rgba(8,12,24,.99));
  box-shadow: 0 18px 60px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.03);
}
.office-map-toolbar { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.office-map-filters { display:flex; gap:8px; flex-wrap:wrap; }
.office-map-legend { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.office-legend-chip {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size:12px;
  color: var(--text);
}
.office-legend-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  display:inline-block;
}
.filter-chip {
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-chip.active { background: rgba(96,165,250,.16); border-color: rgba(96,165,250,.4); }
.office-map-canvas {
  position: relative;
  min-height: 760px;
  padding: 24px;
  background:
    linear-gradient(90deg, transparent 47px, rgba(255,255,255,.025) 48px, transparent 49px),
    linear-gradient(transparent 47px, rgba(255,255,255,.025) 48px, transparent 49px),
    radial-gradient(circle at center, rgba(103,232,249,.05), transparent 55%);
  background-size: 48px 48px, 48px 48px, auto;
}
.office-map-svg {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}
.office-link {
  fill: none;
  stroke: rgba(125,211,252,.42);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: .82;
}
.office-link.primary { stroke-width: 3; animation: officePulse 2.8s linear infinite; }
@keyframes officePulse {
  0% { stroke-dashoffset: 0; opacity: .72; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: -36; opacity: .72; }
}
.office-department-label {
  position:absolute;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(11,16,32,.72);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.office-node {
  position:absolute;
  width: 190px;
  min-height: 144px;
  transform: translate(-50%, -50%);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(19,30,63,.96), rgba(12,18,39,.98));
  box-shadow: 0 20px 40px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 16px 14px 14px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.office-node:hover { transform: translate(-50%, -50%) scale(1.03); border-color: rgba(103,232,249,.38); }
.office-node.selected { border-color: rgba(103,232,249,.9); box-shadow: 0 0 0 2px rgba(103,232,249,.15), 0 22px 40px rgba(0,0,0,.34); }
.office-node.lead {
  width: 220px;
  min-height: 164px;
  background: linear-gradient(180deg, rgba(18,47,95,.99), rgba(13,27,56,.99));
  border-color: rgba(103,232,249,.28);
}
.office-node.state-working { box-shadow: 0 16px 34px rgba(0,0,0,.28), 0 0 0 3px rgba(34,197,94,.08); }
.office-node.state-waiting { box-shadow: 0 16px 34px rgba(0,0,0,.28), 0 0 0 3px rgba(245,158,11,.08); }
.office-node.state-error { box-shadow: 0 16px 34px rgba(0,0,0,.28), 0 0 0 3px rgba(239,68,68,.1); }
.office-node-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  font-size: 30px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(96,165,250,.18), rgba(167,139,250,.18));
  border: 1px solid rgba(255,255,255,.08);
}
.office-node.lead .office-node-icon {
  width: 66px;
  height: 66px;
  font-size: 34px;
  background: linear-gradient(135deg, rgba(103,232,249,.22), rgba(37,99,235,.22));
}
.office-node-name { text-align:center; font-weight:800; font-size:16px; }
.office-node-role { text-align:center; color: var(--muted); font-size:12px; margin-top:4px; min-height: 34px; }
.office-node-badges { display:flex; justify-content:center; gap:6px; flex-wrap:wrap; margin-top:10px; }
.office-node-badge { padding:4px 8px; border-radius:999px; font-size:10px; font-weight:700; background: rgba(255,255,255,.06); color: var(--text); border:1px solid rgba(255,255,255,.06); }
.office-inspector { display:grid; gap:14px; }
.office-inspector-empty { min-height: 220px; display:grid; place-items:center; text-align:center; color:var(--muted); }
.office-inspector-card {
  border:1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.office-inspector-head { display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.office-inspector-icon {
  width:58px; height:58px; border-radius:18px; display:grid; place-items:center; font-size:28px;
  background: linear-gradient(135deg, rgba(96,165,250,.18), rgba(167,139,250,.18));
}
.office-inspector-title { font-weight:800; font-size:18px; }
.office-inspector-sub { color:var(--muted); font-size:13px; margin-top:4px; }
.office-inspector-grid { display:grid; gap:10px; margin-top:10px; }
.office-kv {
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.02);
}
.office-kv-label { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.office-kv-value { margin-top:6px; font-size:14px; }
.link-list, .path-list, .subordinates-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.link-chip, .path-chip, .subordinate-chip {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration:none;
  font-size:12px;
}
.link-chip:hover, .subordinate-chip:hover { border-color: rgba(103,232,249,.38); background: rgba(255,255,255,.06); }
.team-tree { display:grid; gap:14px; margin-top:16px; }
.team-tree-root { border:1px solid rgba(103,232,249,.28); }
.team-tree-row { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:14px; }
.team-tree-card { border:1px solid var(--line); border-radius:18px; padding:14px; background: rgba(255,255,255,.03); }
.team-tree-card.level-1 { border-color: rgba(103,232,249,.25); }
.team-tree-card.level-2 { border-color: rgba(96,165,250,.22); }
.team-tree-card.level-3 { border-color: rgba(34,197,94,.22); }
.team-tree-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.team-tree-meta { color: var(--muted); font-size:12px; margin-top:8px; }
.section-title { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.office-theme-cyan.office-node,
.office-theme-cyan.office-dept-card,
.office-theme-cyan.office-department-label { border-color: rgba(103,232,249,.28); }
.office-theme-cyan .office-node-icon,
.office-theme-cyan.office-node .office-node-icon { background: linear-gradient(135deg, rgba(34,211,238,.24), rgba(37,99,235,.18)); }
.office-link.office-theme-cyan { stroke: rgba(103,232,249,.62); }

.office-theme-green.office-node,
.office-theme-green.office-dept-card,
.office-theme-green.office-department-label { border-color: rgba(34,197,94,.26); }
.office-theme-green .office-node-icon,
.office-theme-green.office-node .office-node-icon { background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(16,185,129,.18)); }
.office-link.office-theme-green { stroke: rgba(34,197,94,.52); }

.office-theme-violet.office-node,
.office-theme-violet.office-dept-card,
.office-theme-violet.office-department-label { border-color: rgba(167,139,250,.28); }
.office-theme-violet .office-node-icon,
.office-theme-violet.office-node .office-node-icon { background: linear-gradient(135deg, rgba(167,139,250,.22), rgba(139,92,246,.18)); }
.office-link.office-theme-violet { stroke: rgba(167,139,250,.56); }

.office-theme-blue.office-node,
.office-theme-blue.office-dept-card,
.office-theme-blue.office-department-label { border-color: rgba(96,165,250,.28); }
.office-theme-blue .office-node-icon,
.office-theme-blue.office-node .office-node-icon { background: linear-gradient(135deg, rgba(96,165,250,.22), rgba(59,130,246,.18)); }
.office-link.office-theme-blue { stroke: rgba(96,165,250,.56); }

.office-theme-amber.office-node,
.office-theme-amber.office-dept-card,
.office-theme-amber.office-department-label { border-color: rgba(245,158,11,.28); }
.office-theme-amber .office-node-icon,
.office-theme-amber.office-node .office-node-icon { background: linear-gradient(135deg, rgba(245,158,11,.24), rgba(251,191,36,.18)); }
.office-link.office-theme-amber { stroke: rgba(245,158,11,.56); }

.office-theme-slate.office-node,
.office-theme-slate.office-dept-card,
.office-theme-slate.office-department-label { border-color: rgba(148,163,184,.24); }
.office-theme-slate .office-node-icon,
.office-theme-slate.office-node .office-node-icon { background: linear-gradient(135deg, rgba(148,163,184,.22), rgba(100,116,139,.18)); }
.office-link.office-theme-slate { stroke: rgba(148,163,184,.5); }
.activity-strip { display:flex; gap:10px; flex-wrap:wrap; }
.activity-chip { display:grid; gap:4px; min-width:180px; padding:10px 12px; border-radius:14px; background:rgba(255,255,255,.04); border:1px solid var(--line); }
.activity-chip span { color:var(--muted); font-size:12px; }
.org { display:grid; gap:14px; }
.org-root { padding: 16px; border:1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.member-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:14px; }
ul.clean { margin: 8px 0 0 18px; color: var(--muted); }
.kv { display:grid; gap:10px; }
.kv .row { align-items:flex-start; }
.form-grid { display:grid; gap:12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.field { display:grid; gap:6px; }
.field label { font-size:13px; color:var(--muted); }
.field input, .field textarea, .field select { width:100%; border:1px solid var(--line); border-radius:12px; background: #0b1329; color:var(--text); padding:12px 14px; }
.field textarea { min-height: 100px; resize: vertical; }
.empty { border:1px dashed var(--line); border-radius:18px; padding:20px; color:var(--muted); text-align:center; }
.issue-stale { opacity: .82; }
.modal.hidden { display:none; }
.modal { position:fixed; inset:0; z-index:1000; }
.modal-backdrop { position:absolute; inset:0; background: rgba(3,7,18,.72); backdrop-filter: blur(6px); }
.modal-card { position:relative; z-index:1; width:min(760px, calc(100% - 24px)); margin:32px auto; background: linear-gradient(180deg,#101938,#0b1329); border:1px solid var(--line); border-radius:22px; box-shadow:0 20px 80px rgba(0,0,0,.45); }
.modal-head, .modal-foot { padding:18px 20px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.modal-foot { border-bottom:none; border-top:1px solid var(--line); justify-content:flex-end; }
.modal-body { padding:20px; max-height: calc(100vh - 220px); overflow:auto; }
.hidden { display:none !important; }
.office-legend { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.skill-flow { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.skill-flow-step { display:flex; gap:12px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.03); }
.skill-flow-num { width:34px; height:34px; border-radius:999px; display:grid; place-items:center; font-weight:800; background:linear-gradient(135deg,#06b6d4,#2563eb); color:white; flex:0 0 auto; }
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .grid.cols-3, .grid.cols-2, .form-grid.two { grid-template-columns: 1fr; }
  .topbar { flex-direction:column; }
  .agent-office { grid-template-columns: 1fr; }
  .office-map-panel, .office-map-canvas { min-height: 620px; }
}
