:root {
  --green-950: #101f3d;
  --green-900: #193966;
  --green-800: #245bdd;
  --green-700: #326bea;
  --green-100: #eef3ff;
  --yellow: #bde9ff;
  --ink: #182944;
  --muted: #6b7c94;
  --line: #e3e9f2;
  --canvas: #f4f6fb;
  --shadow: 0 8px 28px #203a6510;
  font-family: "Segoe UI", Arial, sans-serif;
}
body { font-size: 15px; }
button, input, select, textarea { border-radius: 10px; }
button:focus-visible, a:focus-visible { outline: 3px solid #4b93ff; outline-offset: 3px; }
.app { grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: 76px 1fr; }
.topbar { padding: 0 30px; }
.brand-mark, .brand-mark.small { border: 0; border-radius: 13px; background: #245bdd; color: #fff; letter-spacing: -1px; }
.topbar-brand strong { letter-spacing: .09em; font-size: 12px; }
.topbar-brand div > span { margin-top: 3px; }
.sidebar { top: 76px; height: calc(100vh - 76px); padding: 28px 14px; background: #101f3d; }
.sidebar nav { gap: 9px; }
.nav-item { border-radius: 11px; font-size: 13px; font-weight: 600; min-height: 49px; color: #b7c6df; }
.nav-item.active { background: #285bce; box-shadow: none; }
.nav-item.active span { color: #fff; }
.sidebar-note { padding: 22px 10px 10px; }
.sidebar-note span { font-size: 10px; color: #8eb7ff; }
.sidebar-note strong { font-size: 12px; font-weight: 500; }
.workspace { padding: 38px clamp(20px, 3vw, 48px) 60px; }
.page-heading h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -.045em; font-weight: 700; }
.page-heading p { font-size: 14px; margin: 10px 0 0; max-width: 700px; }
.eyebrow { font-size: 10px; letter-spacing: .15em; color: #4c73b7; }
.button { border-radius: 10px; font-weight: 600; font-size: 13px; min-height: 44px; }
.button.primary, .button.accent { background: #245bdd; color: white; }
.button.primary:hover, .button.accent:hover { background: #1948bb; }
.button.subtle { color: #365174; }
.scan-bar { border: 1px solid #dbe5f7; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.scan-icon { border-radius: 12px; color: #245bdd; background: #edf3ff; }
.scan-bar label span { font-size: 10px; letter-spacing: .1em; color: #667c9e; }
.status-cards { gap: 12px; }
.status-card { border-radius: 14px; box-shadow: 0 3px 16px #233c6207; padding: 23px 18px; }
.status-card strong { font-size: 34px; letter-spacing: -.04em; font-weight: 650; }
.status-card span { line-height: 1.5; font-size: 10px; letter-spacing: .035em; }
.panel, .card, .table-panel, .point-panel, .admin-card, .analytics-card, .management-kpi,
.total-bubble-panel, .filter-bar, .dashboard-filter { border-radius: 16px; box-shadow: 0 4px 18px #203a6507; }
table { font-size: 13px; }
thead th { background: #f7f9fd; color: #647892; font-size: 10px; letter-spacing: .055em; padding-top: 16px; padding-bottom: 16px; }
tbody td { padding-top: 17px; padding-bottom: 17px; border-bottom-color: #edf0f6; }
tbody tr:hover { background: #f7faff; }
input, select, textarea { border-color: #dce4ef; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #4d7eed; box-shadow: 0 0 0 3px #245bdd16; }
.access-screen { grid-template-columns: minmax(420px, 47%) 1fr; }
.access-aside { background: radial-gradient(ellipse at 90% 10%, #315dd0 0, transparent 55%), #101f3d; }
.access-aside h2 { font-size: clamp(44px, 5vw, 74px); font-weight: 650; line-height: 1.04; }
.access-aside p { color: #b8c9e9; font-size: 16px; }
.access-aside::after { border-width: 1px; width: 650px; height: 650px; right: -240px; bottom: -390px; border-color: #8bb3ff40; }
.access-form h1 { font-size: 36px; }
.flow-preview { flex-wrap: wrap; font-size: 10px; letter-spacing: .08em; }
.flow-preview i { width: 18px; opacity: .6; }
#import-result { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.7; }
.toast { border-radius: 12px; }
@media (max-width: 1000px) {
  .app { grid-template-columns: 190px minmax(0, 1fr); }
  .workspace { padding: 26px 20px 90px; }
}
@media (max-width: 760px) {
  .app { display: block; }
  .topbar { min-height: 68px; padding: 0 16px; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; padding: 8px 6px max(8px, env(safe-area-inset-bottom)); z-index: 20; }
  .sidebar nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
  .nav-item { flex-direction: column; justify-content: center; gap: 4px; padding: 6px 2px; min-height: 52px; font-size: 9px; text-align: center; }
  .nav-item span { font-size: 19px; }
  .sidebar-note { display: none; }
  .workspace { padding: 26px 16px 110px; }
  .access-screen { display: block; }
  .access-panel { padding: 30px 25px; min-height: 100vh; }
  .access-aside { display: none; }
  .page-heading { align-items: flex-start; }
  .status-card { padding: 17px 14px; min-height: 115px; }
  .status-card strong { font-size: 29px; }
  .table-wrap { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
