/* School Navigation — styles */
:root {
  --accent: #3D6EFF;
  --accent-soft: color-mix(in oklab, var(--accent) 12%, #fff);
  --bg: #f6f4ef;
  --bg-2: #ffffff;
  --bg-3: #efece5;
  --text: #1d232c;
  --text-dim: #6a7281;
  --text-faint: #9aa3b2;
  --border: #e4e0d6;
  --border-2: #d8d3c4;
  --shadow: 0 2px 6px rgba(15,17,22,0.04), 0 12px 32px rgba(15,17,22,0.06);
  --shadow-lg: 0 4px 12px rgba(15,17,22,0.06), 0 24px 48px rgba(15,17,22,0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Onest", var(--font);
}
[data-theme="dark"] {
  --bg: #0e1116;
  --bg-2: #161a20;
  --bg-3: #1c2129;
  --text: #e7ebf2;
  --text-dim: #8d97a8;
  --text-faint: #5c6675;
  --border: #2a313b;
  --border-2: #3b4350;
  --shadow: 0 2px 6px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.4), 0 24px 48px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

#root { min-height: 100vh; }
.app { min-height: 100vh; position: relative; }

/* ===== Декоративные башкирские орнаменты по бокам (только широкий десктоп) ===== */
.app::before,
.app::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 64px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 64px 280px;
  /* Вертикальный узор: кускар → ромб → тюльпан → ромб-солнце → точка → кускар (зеркальный) */
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='280' viewBox='0 0 64 280' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23a5acb5' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3C!--%20Кускар%20--%3E%3Cpath d='M32 12 C 18 18 12 30 18 40 C 22 36 26 37 32 42 C 38 37 42 36 46 40 C 52 30 46 18 32 12 Z M32 28 L32 36'/%3E%3C!--%20Малый%20ромб%20--%3E%3Cpath d='M32 60 L 24 70 L 32 80 L 40 70 Z M32 60 L 32 80 M 24 70 L 40 70'/%3E%3C!--%20Тюльпан%20--%3E%3Cpath d='M32 102 C 24 110 22 122 27 130 L 32 134 L 37 130 C 42 122 40 110 32 102 Z M 32 110 L 32 132'/%3E%3C!--%20Большой%20ромб-солнце%20--%3E%3Cpath d='M32 152 L 16 172 L 32 192 L 48 172 Z'/%3E%3Cpath d='M32 152 L 32 192 M 16 172 L 48 172 M 22 160 L 42 184 M 42 160 L 22 184'/%3E%3C!--%20Точка%20--%3E%3Ccircle cx='32' cy='210' r='2' fill='%23a5acb5'/%3E%3C!--%20Кускар%20(зеркальный)%20--%3E%3Cpath d='M32 268 C 18 262 12 250 18 240 C 22 244 26 243 32 238 C 38 243 42 244 46 240 C 52 250 46 262 32 268 Z M32 250 L 32 244'/%3E%3C/svg%3E");
}
.app::before { left: 20px; }
.app::after { right: 20px; transform: scaleX(-1); }

/* Тёмная тема — узор слегка ярче и теплее */
[data-theme="dark"] .app::before,
[data-theme="dark"] .app::after {
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='280' viewBox='0 0 64 280' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23d4ad6a' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 12 C 18 18 12 30 18 40 C 22 36 26 37 32 42 C 38 37 42 36 46 40 C 52 30 46 18 32 12 Z M32 28 L32 36'/%3E%3Cpath d='M32 60 L 24 70 L 32 80 L 40 70 Z M32 60 L 32 80 M 24 70 L 40 70'/%3E%3Cpath d='M32 102 C 24 110 22 122 27 130 L 32 134 L 37 130 C 42 122 40 110 32 102 Z M 32 110 L 32 132'/%3E%3Cpath d='M32 152 L 16 172 L 32 192 L 48 172 Z'/%3E%3Cpath d='M32 152 L 32 192 M 16 172 L 48 172 M 22 160 L 42 184 M 42 160 L 22 184'/%3E%3Ccircle cx='32' cy='210' r='2' fill='%23d4ad6a'/%3E%3Cpath d='M32 268 C 18 262 12 250 18 240 C 22 244 26 243 32 238 C 38 243 42 244 46 240 C 52 250 46 262 32 268 Z M32 250 L 32 244'/%3E%3C/svg%3E");
}

/* На карте и узких экранах орнамент скрываем — он мешает интерактиву */
.app:has(.map-screen)::before,
.app:has(.map-screen)::after { display: none; }
@media (max-width: 1320px) {
  .app::before, .app::after { display: none; }
}

.screen { max-width: 1180px; margin: 0 auto; padding: 28px 32px 64px; position: relative; z-index: 1; }

/* ============ HOME ============ */
.home-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 8px; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.head-actions { display: flex; gap: 8px; }
.ghost { background: transparent; border: 1px solid var(--border); border-radius: 99px; padding: 9px 14px; color: var(--text); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s, border-color 0.15s; position: relative; }
.ghost:hover { background: var(--bg-3); border-color: var(--border-2); }
.icon-btn { padding: 9px; aspect-ratio: 1; }
.badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.hero { margin-top: 36px; }
.hero-greet { font-size: 14px; color: var(--text-dim); letter-spacing: 0.02em; }
.hero-title { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; margin: 6px 0 28px; font-weight: 700; letter-spacing: -0.025em; text-wrap: pretty; }
.hero-title em { font-style: normal; color: var(--accent); position: relative; }
.hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6%; height: 30%; background: var(--accent); opacity: 0.15; border-radius: 4px; z-index: -1; }

.search-box { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 18px; transition: border-color 0.15s, box-shadow 0.15s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 15%, transparent); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-box input::placeholder { color: var(--text-faint); }
.search-box .clear { background: var(--bg-3); border: 0; border-radius: 99px; padding: 4px; display: flex; }

.search-results { margin-top: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.search-results.overlay { position: absolute; top: 56px; left: 0; right: 0; z-index: 30; max-height: 360px; overflow-y: auto; }
.result-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; width: 100%; border: 0; background: transparent; text-align: left; color: var(--text); border-bottom: 1px solid var(--border); transition: background 0.12s; }
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: var(--bg-3); }
.result-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-text { flex: 1; min-width: 0; }
.result-name { font-weight: 600; font-size: 15px; }
.result-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* Floors */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 16px; }
.section-head h2 { font-size: 22px; letter-spacing: -0.015em; }
.dim { color: var(--text-dim); font-size: 13px; }

.floors {}
.floor-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.floor-card { display: flex; align-items: center; gap: 18px; padding: 22px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); text-align: left; color: var(--text); transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.floor-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.floor-num { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--accent); font-feature-settings: "tnum"; min-width: 60px; }
.floor-info { flex: 1; }
.floor-label { font-weight: 600; font-size: 16px; }
.floor-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* Quick */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.quick-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); text-align: left; color: var(--text); transition: transform 0.15s, border-color 0.15s; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--c); }
.quick-icon { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in oklab, var(--c) 12%, transparent); display: flex; align-items: center; justify-content: center; }
.quick-label { font-weight: 600; font-size: 14px; }
.quick-floor { font-size: 11px; color: var(--text-dim); }

/* Below CTAs */
.below { margin-top: 36px; display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.big-btn { padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); display: flex; align-items: center; justify-content: space-between; color: var(--text); text-align: left; gap: 18px; transition: transform 0.15s, box-shadow 0.15s; }
.big-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.big-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.big-title { font-size: 18px; font-weight: 700; }
.big-sub { font-size: 13px; opacity: 0.7; margin-top: 4px; }

.home-foot { margin-top: 64px; text-align: center; color: var(--text-faint); font-size: 12px; }

/* ============ MAP ============ */
.map-screen { padding: 0; max-width: none; min-height: 100vh; display: flex; flex-direction: column; }
.map-head { display: flex; gap: 12px; align-items: center; padding: 14px 20px; background: var(--bg-2); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.map-search { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 8px 14px; position: relative; }
.map-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 14px; }
.map-search input::placeholder { color: var(--text-faint); }
.map-search .clear { background: var(--bg-3); border: 0; border-radius: 99px; padding: 3px; display: flex; }

.route-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--accent-soft); border-bottom: 1px solid color-mix(in oklab, var(--accent) 25%, transparent); gap: 16px; flex-wrap: wrap; }
[data-theme="dark"] .route-bar { background: color-mix(in oklab, var(--accent) 18%, var(--bg-2)); }
.route-pts { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.route-pt { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.route-pt button { background: transparent; border: 0; color: var(--text-dim); padding: 2px; display: flex; }
.dot { width: 10px; height: 10px; border-radius: 99px; flex-shrink: 0; }
.dot.start { background: #2DA77A; }
.dot.end { background: #E26A4A; }
.route-info { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }

.map-canvas { flex: 1; position: relative; background: var(--bg); }
.map-wrap { position: absolute; inset: 0; overflow: hidden; user-select: none; }

.zoom-controls { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.zoom-controls button { background: transparent; border: 0; padding: 10px 12px; color: var(--text); display: flex; align-items: center; justify-content: center; min-width: 44px; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--border); }
.zoom-controls button:last-child { border-bottom: 0; }
.zoom-controls button:hover { background: var(--bg-3); }

.north { position: absolute; left: 16px; bottom: 16px; }

/* Floor switch */
.floor-switch { position: absolute; left: 16px; top: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--bg-2); padding: 6px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.floor-btn { background: transparent; border: 0; padding: 10px 14px; border-radius: 8px; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 2px; transition: background 0.15s, color 0.15s; position: relative; min-width: 48px; }
.floor-btn:hover { background: var(--bg-3); color: var(--text); }
.floor-btn.active { background: var(--accent); color: #fff; }
.fb-num { font-size: 18px; font-weight: 700; }
.fb-lab { font-size: 10px; opacity: 0.7; }
.fb-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 99px; background: #E26A4A; }

/* Legend */
.legend { position: absolute; right: 16px; top: 16px; width: 240px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.legend-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--border); }
.legend-head button { background: transparent; border: 0; color: var(--text-dim); padding: 2px; display: flex; }
.legend-items { padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* Room card overlay */
.room-card { position: absolute; right: 16px; bottom: 70px; width: 360px; max-height: calc(100% - 100px); background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; z-index: 10; animation: slideUp 0.22s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.room-card-head { padding: 18px 20px 16px; color: #fff; position: relative; }
.card-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.18); border: 0; padding: 6px; border-radius: 99px; color: #fff; display: flex; backdrop-filter: blur(8px); }
.card-close:hover { background: rgba(255,255,255,0.28); }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255,255,255,0.18); border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; backdrop-filter: blur(8px); }
.room-card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.room-card-title h2 { font-size: 22px; font-weight: 700; }
.room-card-num { font-size: 26px; font-weight: 700; font-feature-settings: "tnum"; opacity: 0.85; letter-spacing: -0.02em; }
.room-card-subject { margin: 6px 0 0; font-size: 13px; opacity: 0.9; }
.room-card-body { padding: 16px 20px 18px; overflow-y: auto; }

.kv { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 14px; }
.kv:last-of-type { border-bottom: 0; }
.kv-key { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.kv-val { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; text-align: right; }
.kv-val.mono { font-family: ui-monospace, monospace; font-weight: 600; }
.avatar { width: 28px; height: 28px; border-radius: 99px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-dim); }

.sched { margin-top: 12px; padding: 12px; background: var(--bg-3); border-radius: 10px; }
.sched .kv-key { margin-bottom: 8px; display: block; }
.sched ul { list-style: none; margin: 0; padding: 0; }
.sched li { display: grid; grid-template-columns: 56px 44px 1fr; gap: 8px; padding: 6px 0; font-size: 13px; align-items: center; }
.sched .time { font-family: ui-monospace, monospace; font-weight: 600; }
.sched .cls { font-weight: 700; color: var(--accent); font-size: 12px; }
.sched .sub { color: var(--text-dim); }

.room-photo { margin: 14px 0; height: 160px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.room-photo.clickable { cursor: zoom-in; transition: filter 0.15s, transform 0.15s; }
.room-photo.clickable:hover { filter: brightness(0.95); }

.photo-lightbox { position: fixed; inset: 0; background: rgba(8, 11, 16, 0.94); z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 56px; cursor: zoom-out; animation: lightboxFadeIn 0.18s ease-out; }
.photo-lightbox img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); border-radius: 8px; cursor: default; }
.photo-lightbox-caption { margin-top: 18px; color: rgba(255, 255, 255, 0.85); font-size: 14px; max-width: 600px; text-align: center; }
.photo-lightbox-close { position: absolute; top: 18px; right: 20px; background: rgba(255, 255, 255, 0.12); border: 0; border-radius: 99px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; transition: background 0.15s; }
.photo-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }

.card-actions { display: flex; gap: 8px; margin-top: 4px; }
.btn { flex: 1; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background 0.15s, border-color 0.15s; }
.btn:hover { background: var(--bg-3); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, #000); }
.btn-icon { background: var(--bg-2); border: 1px solid var(--border); width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.btn-icon.is-fav { background: #FFC83D22; border-color: #FFC83D; color: #C99000; }

/* ============ USEFUL ============ */
.sub-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.sub-head h1 { font-size: 32px; letter-spacing: -0.02em; }

.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.card h2 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; color: var(--text); }
.card .small { font-size: 13px; margin: 0 0 14px; }

.bells { display: grid; gap: 6px; }
.bell-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; padding: 10px 12px; align-items: center; background: var(--bg); border-radius: 8px; }
.bell-n { font-weight: 700; font-size: 18px; color: var(--accent); text-align: center; font-feature-settings: "tnum"; }
.bell-time { display: flex; gap: 10px; align-items: center; font-family: ui-monospace, monospace; font-weight: 600; }
.bell-dur { font-size: 12px; color: var(--text-dim); }

.kv-list { display: grid; gap: 12px; }
.kv-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv-list > div:last-child { border-bottom: 0; }
.kv-list .dim { font-size: 13px; }
.kv-list a { color: var(--accent); text-decoration: none; }
.kv-list a:hover { text-decoration: underline; }

.useful-name { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; color: var(--text); }
.useful-about { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin: 0; }
.useful-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.useful-list li { font-size: 14px; color: var(--text); line-height: 1.5; }
.useful-list li::marker { color: var(--accent); }

.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qr-card { padding: 14px; background: var(--bg); border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-img { background: #fff; padding: 6px; border-radius: 6px; }
.qr-label { font-size: 13px; font-weight: 600; }

.empty { text-align: center; padding: 80px 20px; color: var(--text-dim); }
.empty p { max-width: 320px; margin: 16px auto; font-size: 14px; }

.fav-list { display: grid; gap: 8px; }
.fav-row { display: flex; gap: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.fav-main { flex: 1; background: transparent; border: 0; padding: 10px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--text); border-radius: 10px; }
.fav-main:hover { background: var(--bg-3); }

/* ============ TWEAKS PANEL ============ */
.tweaks-panel { position: fixed; right: 20px; bottom: 20px; width: 280px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px; z-index: 100; }
.tw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tw-head span { font-weight: 700; font-size: 14px; }
.tw-head button { background: transparent; border: 0; color: var(--text-dim); padding: 2px; display: flex; }
.tw-section { margin-bottom: 14px; }
.tw-section label { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.tw-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg-3); padding: 3px; border-radius: 8px; }
.tw-seg button { background: transparent; border: 0; padding: 7px 8px; border-radius: 6px; color: var(--text-dim); font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.tw-seg button.on { background: var(--bg-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.tw-swatches { display: flex; gap: 6px; }
.tw-sw { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; }
.tw-sw.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg-2); }
.tw-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); text-transform: none; letter-spacing: 0; margin: 0; }
.tw-toggle input { accent-color: var(--accent); }

/* ========= Home — extra sections ========= */
.hero-tagline { margin: 14px 0 24px; font-size: 15px; color: var(--text-dim); line-height: 1.5; max-width: 680px; }

.stats { margin-top: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: linear-gradient(180deg, var(--bg-2), color-mix(in oklab, var(--accent) 4%, var(--bg-2))); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; text-align: left; transition: transform 0.15s, border-color 0.15s; }
.stat-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.stat-num { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--accent); font-feature-settings: "tnum"; }
.stat-label { font-weight: 600; font-size: 15px; margin-top: 10px; }
.stat-sub { font-size: 12px; color: var(--text-dim); margin-top: 3px; }

.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.highlight-card { padding: 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.highlight-card:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: var(--shadow); }
.highlight-icon { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in oklab, var(--c) 14%, transparent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.highlight-title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.highlight-text { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-top: 6px; }

.achievement-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.achievement-list li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; font-size: 14px; color: var(--text); }
.achievement-list .trophy { display: inline-flex; flex-shrink: 0; width: 24px; height: 24px; border-radius: 99px; background: color-mix(in oklab, var(--accent) 14%, transparent); align-items: center; justify-content: center; margin-top: 1px; }

.contact-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; }
.contact-row > svg, .contact-row > :first-child { flex-shrink: 0; margin-top: 2px; }
.contact-key { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 2px; }
.contact-val { font-size: 15px; color: var(--text); font-weight: 500; }
.contact-val a { color: var(--accent); text-decoration: none; }
.contact-val a:hover { text-decoration: underline; }
.contact-links { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; border-top: 1px dashed var(--border); }
.contact-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--bg-3); border-radius: 99px; color: var(--text); font-size: 13px; text-decoration: none; transition: background 0.15s, color 0.15s; }
.contact-link:hover { background: var(--accent); color: #fff; }

.map-cta { margin-top: 28px; }
.map-cta .big-btn { width: 100%; padding: 26px 30px; }
.map-cta .big-title { font-size: 20px; }
.below { grid-template-columns: 1fr; }

/* ========= Responsive ========= */
@media (max-width: 880px) {
  .screen { padding: 20px 18px 64px; }
  .hero-title { font-size: 36px; }
  .floor-cards, .below { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .qr-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-list { grid-template-columns: 1fr; }
  .room-card { left: 12px; right: 12px; bottom: 80px; width: auto; }
  .legend { display: none; }
  .floor-switch { flex-direction: row; left: 12px; right: auto; top: 12px; }
  .floor-btn { min-width: 44px; padding: 8px 10px; }
  .fb-lab { display: none; }
  .map-search { font-size: 13px; }
}
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 36px; }
  .sub-head h1 { font-size: 24px; }
  .hero-title { font-size: 30px; }
}
