:root { --bg: #f4f8f7; --surface: #fff; --surface-2: #e8f1ef; --muted: #415b56; }
html.dark { --bg: #101d1a; --surface: #182924; --surface-2: #223b32; --muted: #bdd0c8; }
html.dark .danger { color: #ff9c93 !important; }
.badge-card.locked { opacity: 1; border-style: dashed; }
* { letter-spacing: 0 !important; }
.brand-mark { background: #fff; padding: 3px; border-radius: 8px; }
.hero-card { min-height: 0; padding: 16px 18px; animation: none; display: block; background: var(--surface-2); color: var(--ink); border-radius: 8px; box-shadow: none; }
.hero-card h1 { font-size: 24px; line-height: 1.25; max-width: none; }
.hero-card h1 em { color: var(--green-2); }
.hero-card p,.hero-card .eyebrow,.hero-orbit,.hero-card:after { display: none; }
.glass,.chat-panel,.section-shell { border-radius: 8px; box-shadow: none; }
.section-shell { border: 0; background: transparent; backdrop-filter: none; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 10000; background: #fff; color: #12382f; padding: 12px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #118d80; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mobile-workspace-actions { display: flex; gap: 8px; padding: 12px 24px 0; }
.mobile-workspace-actions button,.recovery-actions button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-height: 44px; }
.recovery-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.map-tools { flex-wrap: wrap; overflow: visible; }
.map-tools button { min-height: 36px; }
.map-place-item .map-rank { display: grid; color: var(--bg); }
.topbar { flex-wrap: wrap; height: auto; min-height: 76px; position: relative; }
.preloader.hide { display: none; }
.status-badge { color: var(--ink) !important; }
.tabs { top: 0; }
.chat-session-bar { grid-template-columns: auto minmax(0,1fr) auto; }
.history-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
.history-controls button { min-height: 44px; }
.history-controls span { color: var(--muted); font-size: 12px; }
.chat-log { overflow-anchor: none; }
.chat-log > .msg { flex-shrink: 0; }
.composer { position: static; }
@media(max-width:820px) {
  .status-badge { display: block; padding: 4px 6px; font-size: 11px; white-space: normal; max-width: 160px; }
  .topbar { gap: 8px; padding: 10px 16px; }
  .top-actions { flex-wrap: wrap; }
  .profile-panel.settings-open { display: block; }
  .chat-session-bar { display: flex; flex-wrap: wrap; }
  .chat-session-bar select { flex: 1; min-width: 120px; }
  .hero-card h1 { font-size: 21px; }
  .guide-layout { padding: 12px 12px 30px; }
  .chat-panel { padding: 12px; }
  .chat-log { max-height: 55dvh; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
