:root {
  --yon-navy: #001850;
  --on-blue: #0068f8;
  --trust-blue: #003090;
  --ink: #071b45;
  --muted-ink: #4b5e83;
  --inverse-ink: #ffffff;
  --background: #ffffff;
  --surface: #f7faff;
  --surface-raised: #ffffff;
  --line: #d8e4f5;
  --success: #0f9f6e;
  --warning: #d98a00;
  --danger: #d92d20;
  --info: #0068f8;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-card: 0 12px 32px rgba(0, 24, 80, 0.08);
  --shadow-popover: 0 16px 44px rgba(0, 24, 80, 0.14);
  --phone-width: 390px;
  --phone-height: 762px;
  font-family: "Pretendard", "Noto Sans KR", "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface); color: var(--ink); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, a:focus-visible { outline: 3px solid rgba(0, 104, 248, 0.35); outline-offset: 2px; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: -56px; padding: 10px 16px; background: var(--yon-navy); color: white; text-decoration: none; border-radius: var(--radius-md); transition: top 0.18s ease; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; overflow: hidden; }
.site-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1580px) / 2)); background: var(--surface-raised); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand-lockup { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.brand-logo-frame { display: flex; align-items: center; width: 120px; height: 32px; overflow: hidden; flex: none; }
.brand-logo-frame img { display: block; width: 120px; height: auto; object-fit: contain; }
.brand-product { display: grid; gap: 1px; padding-left: 16px; border-left: 1px solid var(--line); }
.brand-product strong { font-size: 14px; line-height: 1.3; color: var(--yon-navy); }
.brand-product span { font-size: 10px; letter-spacing: 0.04em; color: var(--muted-ink); }
.header-status { display: flex; align-items: center; gap: 8px; }
.status-chip, .model-status { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised); font-size: 11px; font-weight: 700; color: var(--muted-ink); white-space: nowrap; }
.status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #91a1bd; box-shadow: 0 0 0 3px rgba(145, 161, 189, 0.12); }
.status-success, .model-status.ready { color: #087b57; border-color: #c6ebde; background: #f1fbf7; }
.status-success .status-dot, .model-status.ready .status-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.12); }
.status-danger, .model-status.offline { color: #b42318; border-color: #f6d1cc; background: #fff6f5; }
.status-danger .status-dot, .model-status.offline .status-dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12); }
.model-status.busy, .model-status.checking { color: #9b6100; border-color: #f1d9ab; background: #fffaf0; }
.model-status.busy .status-dot, .model-status.checking .status-dot { background: var(--warning); }
.account-button { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-size: 12px; font-weight: 700; }
.account-button:hover { border-color: #b9cae5; background: var(--surface); }
.account-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--yon-navy); color: white; font-size: 11px; }

.product-intro { max-width: 1580px; min-height: 132px; margin: 0 auto; padding: 18px 24px 14px; display: grid; grid-template-columns: minmax(370px, 0.86fr) minmax(360px, 0.9fr) minmax(260px, 0.7fr); align-items: center; gap: 28px; background: var(--surface); }
.eyebrow { margin: 0 0 7px; color: var(--on-blue); font-size: 10px; font-weight: 800; line-height: 1.35; letter-spacing: 0.1em; }
.product-intro h1 { margin: 0; color: var(--yon-navy); font-size: 27px; line-height: 1.25; font-weight: 800; }
.product-intro h1 span { color: var(--trust-blue); }
.intro-copy { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted-ink); }
.intro-summary { justify-self: end; min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 8px 22px rgba(0, 24, 80, 0.05); font-size: 11px; line-height: 1.45; font-weight: 700; color: var(--ink); }
.summary-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.1); }

.simulation-stage { max-width: 1580px; margin: 0 auto; padding: 0 24px 40px; display: grid; grid-template-columns: minmax(292px, 0.72fr) minmax(410px, 0.88fr) minmax(430px, 1fr); align-items: start; gap: 22px; }
.device-column, .intelligence-column { min-width: 0; }
.section-kicker { height: 37px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 4px 8px; border-bottom: 1px solid var(--line); }
.section-kicker span { font-size: 9px; color: var(--on-blue); letter-spacing: 0.11em; font-weight: 800; }
.section-kicker strong { font-size: 13px; color: var(--yon-navy); }
.terminal-column { display: flex; flex-direction: column; align-items: stretch; }
.terminal-column .section-kicker { width: 100%; }
.interaction-hint { margin: 12px auto 0; max-width: 390px; text-align: center; color: var(--muted-ink); font-size: 11px; line-height: 1.5; }
.interaction-hint span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 3px; border: 1px solid var(--line); border-radius: 50%; color: var(--on-blue); background: white; }

/* Shared terminal screen */
.terminal-screen { position: relative; width: 100%; height: 100%; overflow: hidden; color: white; background: #061634; font-size: 12px; }
.terminal-status { height: 28px; padding: 8px 11px 0; display: flex; align-items: flex-start; justify-content: space-between; color: #b9c8df; font-size: 8px; font-weight: 700; letter-spacing: 0.06em; }
.terminal-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); color: #dbe6f8; font-size: 9px; font-weight: 700; }
.terminal-state span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.terminal-state.warning span { background: var(--warning); }
.terminal-footnote { margin: 7px 0 0; text-align: center; color: #8fa2c2; font-size: 8px; }
.terminal-detail { display: grid; gap: 4px; padding: 8px 13px 0; }
.terminal-detail small { color: #8fa2c2; font-size: 8px; }
.terminal-detail strong { color: white; font-size: 12px; line-height: 1.3; }
.terminal-detail span { color: #7eaefa; font-size: 8px; }
.terminal-alert { height: calc(100% - 30px); padding: 18px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.terminal-alert > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: rgba(15, 159, 110, 0.16); color: #39ce9c; font-size: 23px; }
.terminal-alert.active > span { background: rgba(217, 45, 32, 0.18); color: #ff7468; }
.terminal-alert strong { font-size: 15px; line-height: 1.35; }
.terminal-alert p { margin: 7px 0 0; color: #9eb0cc; font-size: 9px; line-height: 1.5; }
.terminal-metric-primary { height: 68px; display: flex; justify-content: center; align-items: baseline; gap: 5px; color: white; }
.terminal-metric-primary > span { color: #ff6c72; font-size: 20px; align-self: center; }
.terminal-metric-primary strong { font-size: 39px; line-height: 1; }
.terminal-metric-primary small { color: #91a4c4; font-size: 9px; }
.terminal-metric-grid { margin: 8px 11px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.terminal-metric-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.terminal-metric-grid div { padding: 9px 6px; display: grid; gap: 2px; text-align: center; border: 1px solid rgba(216, 228, 245, 0.12); border-radius: 8px; background: rgba(255, 255, 255, 0.045); }
.terminal-metric-grid small { color: #8fa2c2; font-size: 7px; }
.terminal-metric-grid strong { font-size: 17px; }
.terminal-metric-grid span { color: #8fa2c2; font-size: 7px; }
.terminal-progress { --progress: 260deg; position: relative; width: 105px; height: 105px; margin: 2px auto 7px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--success) var(--progress), rgba(255, 255, 255, 0.1) 0); }
.terminal-progress::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #061634; }
.terminal-progress > div { position: relative; z-index: 1; display: grid; text-align: center; }
.terminal-progress strong { font-size: 27px; }
.terminal-progress small { color: #93a7c8; font-size: 8px; }

/* Pet collar hardware */
.pet-collar-product { position: relative; height: 346px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.collar-band { position: absolute; top: 93px; width: 54%; height: 98px; border: 1px solid #1f355f; background: linear-gradient(180deg, #0f2a57 0%, #061b42 54%, #031230 100%); box-shadow: 0 18px 28px rgba(0, 24, 80, 0.18), inset 0 1px rgba(255, 255, 255, 0.13); }
.collar-band-left { left: -15%; border-radius: 55% 18px 18px 55%; transform: rotate(-4deg); }
.collar-band-right { right: -15%; border-radius: 18px 55% 55% 18px; transform: rotate(4deg); }
.collar-band i { position: absolute; top: 15px; bottom: 15px; width: 2px; border-left: 1px dashed rgba(255, 255, 255, 0.16); }
.collar-band i:nth-child(1) { left: 28%; } .collar-band i:nth-child(2) { left: 50%; } .collar-band i:nth-child(3) { left: 72%; }
.collar-tag-case { position: relative; z-index: 2; width: 216px; height: 238px; margin-top: 42px; padding: 12px; border-radius: 48px 48px 58px 58px; background: linear-gradient(145deg, #163c74, #061b42 58%, #02102a); box-shadow: 0 25px 45px rgba(0, 24, 80, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2); }
.collar-tag-case::before { content: ""; position: absolute; width: 56px; height: 20px; top: -15px; left: 80px; border: 8px solid #071b45; border-bottom: 0; border-radius: 22px 22px 0 0; }
.collar-tag-frame { width: 100%; height: 100%; padding: 7px; border-radius: 38px 38px 46px 46px; background: #020b1e; box-shadow: inset 0 0 0 1px rgba(133, 166, 220, 0.22); }
.collar-tag-frame .terminal-screen { border-radius: 31px 31px 39px 39px; }
.collar-led { position: absolute; bottom: 7px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: #42dca8; box-shadow: 0 0 0 3px rgba(66, 220, 168, 0.12); }
.pet-terminal-home { height: calc(100% - 28px); display: flex; flex-direction: column; align-items: center; }
.terminal-pet-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 2px 0 4px; border-radius: 50%; background: rgba(0, 104, 248, 0.14); color: #67a5ff; font-size: 27px; }
.pet-terminal-home p { margin: 0; color: #8097ba; font-size: 7px; letter-spacing: 0.12em; }
.pet-terminal-home > strong { margin: 2px 0 7px; font-size: 22px; }
.pet-terminal-home time { margin-top: 11px; color: #8ba0c2; font-size: 10px; font-variant-numeric: tabular-nums; }
.terminal-map { position: relative; height: 110px; margin: 2px 10px 0; overflow: hidden; border: 1px solid rgba(216, 228, 245, 0.12); border-radius: 11px; background-color: #0c2144; background-image: linear-gradient(rgba(120, 152, 198, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 152, 198, 0.08) 1px, transparent 1px); background-size: 22px 22px; }
.mini-route { position: absolute; inset: 15px; transform: rotate(-10deg); }
.mini-route::before { content: ""; position: absolute; width: 125px; height: 55px; border: 3px solid #407fdc; border-right-color: transparent; border-radius: 50%; }
.mini-route i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #7babef; }
.mini-route i:nth-child(1) { left: 8px; top: 26px; } .mini-route i:nth-child(2) { left: 62px; top: 3px; } .mini-route i:nth-child(3) { left: 120px; top: 43px; }
.terminal-location-marker { position: absolute; left: calc(50% - 17px); top: calc(50% - 17px); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--on-blue); color: white; font-size: 19px; box-shadow: 0 0 0 7px rgba(0, 104, 248, 0.17); }
.terminal-routine-row { margin: 0 12px; display: flex; justify-content: space-between; color: #b9c8df; font-size: 8px; }
.terminal-routine-row span { display: inline-flex; align-items: center; gap: 4px; }
.terminal-routine-row svg { font-size: 11px; }

/* Sports watch hardware */
.sports-watch-product { position: relative; width: 272px; height: 346px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sports-watch-strap { position: absolute; left: 79px; width: 114px; height: 99px; border: 1px solid #263d65; background: linear-gradient(90deg, #061735, #112a52 50%, #061735); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.025); }
.sports-watch-strap.top { top: -5px; border-radius: 20px 20px 8px 8px; }
.sports-watch-strap.bottom { bottom: -5px; border-radius: 8px 8px 24px 24px; }
.sports-watch-strap i { position: absolute; left: calc(50% - 5px); width: 10px; height: 3px; border-radius: 3px; background: #020c21; box-shadow: inset 0 1px rgba(255, 255, 255, 0.08); }
.sports-watch-strap i:nth-child(1) { top: 18px; } .sports-watch-strap i:nth-child(2) { top: 39px; } .sports-watch-strap i:nth-child(3) { top: 60px; }
.sports-watch-case { position: relative; z-index: 2; width: 238px; height: 242px; padding: 11px; border-radius: 52px; background: linear-gradient(145deg, #53667e 0%, #1b2b42 38%, #071323 75%, #36485f); box-shadow: 0 23px 42px rgba(0, 24, 80, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.38); }
.sports-watch-bezel { width: 100%; height: 100%; padding: 7px; border-radius: 42px; background: #020817; box-shadow: inset 0 0 0 1px #52647c, inset 0 0 0 4px #080f1d; }
.sports-watch-bezel .terminal-screen { border-radius: 35px; }
.sports-watch-crown { position: absolute; z-index: 1; right: 3px; top: 139px; width: 17px; height: 38px; border-radius: 5px; background: repeating-linear-gradient(0deg, #23364e 0 2px, #0b192c 2px 4px); box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.25); }
.sports-watch-live { padding: 3px 15px; text-align: center; }
.sports-watch-live > small { color: #78aaf0; font-size: 8px; letter-spacing: 0.06em; }
.sports-watch-live > strong { display: block; margin: 2px 0 3px; color: white; font-size: 41px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sports-watch-live > strong em { color: #879ab8; font-size: 8px; font-style: normal; font-weight: 600; }
.live-heart { display: inline-flex; align-items: center; gap: 5px; color: #ff7b80; font-size: 10px; font-weight: 700; }
.live-heart svg { font-size: 12px; }
.live-divider { height: 1px; margin: 11px 0 8px; background: rgba(216, 228, 245, 0.13); }
.live-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.live-stats span { display: grid; color: white; font-size: 12px; font-weight: 700; }
.live-stats small { color: #7f93b3; font-size: 7px; font-weight: 500; }
.lap-hero { padding: 4px 14px 9px; display: grid; text-align: center; }
.lap-hero small { color: #8298ba; font-size: 8px; }
.lap-hero strong { font-size: 35px; line-height: 1.15; }
.lap-hero span { color: #71a5ee; font-size: 8px; }
.watch-split-list { margin: 0 12px; border-top: 1px solid rgba(216, 228, 245, 0.12); }
.watch-split-list div { min-height: 23px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; border-bottom: 1px solid rgba(216, 228, 245, 0.08); color: #9caeca; font-size: 8px; }
.watch-split-list div.active { color: white; }
.watch-split-list div.active span { color: #71a5ee; }
.watch-split-list strong { font-size: 11px; }
.watch-split-list em { font-style: normal; color: #7186a8; }
.sports-progress { background: conic-gradient(var(--on-blue) var(--progress), rgba(255, 255, 255, 0.1) 0); }
.load-zone { margin: 0 14px; padding: 8px 10px; display: flex; justify-content: space-between; border: 1px solid rgba(216, 228, 245, 0.1); border-radius: 7px; color: #8fa2c2; font-size: 8px; }
.load-zone strong { color: #a9c9f7; }
.readiness-score { padding-top: 11px; display: grid; justify-items: center; }
.readiness-score strong { color: white; font-size: 57px; line-height: 0.95; }
.readiness-score span { color: #8399bb; font-size: 8px; }
.readiness-score em { margin-top: 7px; padding: 4px 8px; border-radius: 999px; background: rgba(15, 159, 110, 0.14); color: #49d5a5; font-size: 8px; font-style: normal; }

.terminal-controller { max-width: 330px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 8px 24px rgba(0, 24, 80, 0.055); }
.terminal-controller button { min-width: 0; min-height: 51px; padding: 5px 2px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--muted-ink); cursor: pointer; font-size: 9px; font-weight: 700; }
.terminal-controller button span { width: 25px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: var(--muted-ink); font-size: 15px; }
.terminal-controller button:hover { background: var(--surface); }
.terminal-controller button[aria-pressed="true"] { background: #eef5ff; color: var(--trust-blue); }
.terminal-controller button[aria-pressed="true"] span { background: var(--on-blue); color: white; }

/* Mobile hardware and shell */
.phone-column { display: flex; flex-direction: column; align-items: center; }
.phone-column .section-kicker { width: 100%; }
.phone-case { position: relative; width: var(--phone-width); height: var(--phone-height); margin-top: 14px; padding: 10px; border-radius: 48px; background: linear-gradient(145deg, #39485f 0%, #0b1729 32%, #020815 72%, #34445c); box-shadow: 0 26px 52px rgba(0, 24, 80, 0.25), inset 0 1px rgba(255, 255, 255, 0.38); }
.phone-case::after { content: ""; position: absolute; inset: 4px; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 45px; }
.phone-speaker { position: absolute; z-index: 4; top: 18px; left: calc(50% - 42px); width: 84px; height: 23px; border-radius: 999px; background: #030a15; }
.phone-speaker::after { content: ""; position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #10284d; box-shadow: inset 0 0 0 2px #050b14; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 39px; background: #f5f8fc; }
.phone-status-bar { position: relative; z-index: 8; height: 36px; padding: 11px 22px 0; display: flex; align-items: flex-start; justify-content: space-between; background: white; color: #0b1630; font-size: 10px; font-variant-numeric: tabular-nums; }
.companion-app-content { height: calc(100% - 36px); display: flex; flex-direction: column; background: #f5f8fc; }
.mobile-app-header { flex: none; height: 58px; padding: 7px 16px 8px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #e7edf6; }
.mobile-app-header div { display: grid; gap: 1px; }
.mobile-app-header small { color: var(--on-blue); font-size: 7px; font-weight: 800; letter-spacing: 0.1em; }
.mobile-app-header strong { color: var(--yon-navy); font-size: 16px; line-height: 1.25; }
.app-icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dbe5f2; border-radius: 50%; background: white; color: var(--trust-blue); cursor: pointer; font-size: 17px; }
.live-session-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: #eef9f5; color: #087b57; font-size: 8px; font-weight: 800; }
.live-session-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.mobile-view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 14px; }
.mobile-view::-webkit-scrollbar { display: none; }
.mobile-app-nav { flex: none; height: 62px; padding: 5px 11px 6px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e0e8f3; background: white; }
.mobile-app-nav button { min-width: 0; padding: 3px; display: grid; place-items: center; gap: 1px; border: 0; border-radius: 8px; background: transparent; color: #6f7f9c; cursor: pointer; font-size: 8px; font-weight: 700; }
.mobile-app-nav button span { height: 24px; display: grid; place-items: center; font-size: 18px; }
.mobile-app-nav button:hover { background: #f4f7fb; }
.mobile-app-nav button[aria-current="page"] { color: var(--on-blue); background: #f1f6ff; }
.profile-hero { position: relative; height: 188px; margin: 12px 12px 0; overflow: hidden; border-radius: 18px; background: #cfd9e8; }
.profile-hero::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(0, 17, 49, 0.86)); }
.profile-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.profile-hero-overlay { position: absolute; z-index: 2; left: 15px; right: 15px; bottom: 13px; color: white; }
.profile-hero-overlay h2 { margin: 5px 0 1px; font-size: 21px; line-height: 1.2; }
.profile-hero-overlay p { margin: 0; color: #d6e0ee; font-size: 9px; }
.status-label { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border-radius: 999px; background: #edf2f8; color: #4d607f; font-size: 7px; font-weight: 800; white-space: nowrap; }
.status-label.success { background: #e5f8f1; color: #087b57; }
.status-label.warning { background: #fff3db; color: #9d6000; }
.status-label.neutral { border: 1px solid #dae4f1; background: white; color: #5d6f8c; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.section-title-row > div { display: grid; gap: 1px; }
.section-title-row small { color: var(--on-blue); font-size: 7px; font-weight: 800; letter-spacing: 0.09em; }
.section-title-row h3 { margin: 0; color: var(--yon-navy); font-size: 15px; line-height: 1.3; }
.app-section { margin-top: 11px; padding: 0 13px; }
.evidence-note { margin: 10px 0 0; padding: 9px 10px; border-left: 3px solid #a8b9d1; background: #eef3f9; color: #536582; font-size: 8px; line-height: 1.55; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.app-primary-button, .app-secondary-button { min-height: 36px; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 9px; font-weight: 800; }
.app-primary-button { border: 1px solid var(--on-blue); background: var(--on-blue); color: white; }
.app-secondary-button { border: 1px solid #d3dfef; background: white; color: var(--yon-navy); }

/* Pet app */
.location-summary { width: calc(100% - 24px); min-height: 58px; margin: 9px 12px 0; padding: 8px 10px; display: grid; grid-template-columns: 36px 1fr 12px; align-items: center; gap: 8px; border: 1px solid #dce6f3; border-radius: 12px; background: white; text-align: left; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 24, 80, 0.045); }
.location-summary:hover { border-color: #b8cbe7; }
.location-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edf5ff; color: var(--on-blue); font-size: 18px; }
.location-summary > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.location-summary small { color: #687b99; font-size: 7px; }
.location-summary strong { overflow: hidden; color: var(--yon-navy); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.location-summary i { color: #7b8da9; font-style: normal; font-size: 20px; }
.wellness-grid { margin-top: 7px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.metric-card { min-width: 0; padding: 8px; display: grid; border: 1px solid #e0e8f3; border-radius: 11px; background: white; }
.metric-card > span { color: var(--on-blue); font-size: 16px; }
.metric-card strong { margin-top: 4px; color: var(--yon-navy); font-size: 15px; line-height: 1.1; }
.metric-card small { color: #596b88; font-size: 7px; }
.metric-card em { margin-top: 5px; color: #8a9ab3; font-size: 6px; font-style: normal; }
.routine-strip { margin: 10px 12px 0; padding: 9px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; border: 1px solid #e0e8f3; border-radius: 12px; background: white; }
.routine-strip div { display: grid; justify-items: center; gap: 2px; border-right: 1px solid #e7edf6; }
.routine-strip div:last-child { border-right: 0; }
.routine-strip span { color: #43699e; font-size: 15px; }
.routine-strip small { color: #7c8ca5; font-size: 6px; }
.routine-strip strong { color: var(--yon-navy); font-size: 8px; }
.map-view { display: flex; flex-direction: column; padding-bottom: 0; }
.app-map { position: relative; flex: 1; min-height: 360px; overflow: hidden; background: #e8eef5; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(26deg, transparent 46%, #d2dce8 47% 50%, transparent 51%), linear-gradient(-35deg, transparent 48%, #d5dfe9 49% 52%, transparent 53%), linear-gradient(90deg, rgba(120, 142, 170, 0.12) 1px, transparent 1px); background-size: 170px 130px, 210px 150px, 42px 42px; }
.safe-zone-ring { position: absolute; left: 88px; top: 86px; width: 210px; height: 210px; border: 2px solid rgba(15, 159, 110, 0.55); border-radius: 50%; background: rgba(15, 159, 110, 0.08); }
.map-pin { position: absolute; left: 169px; top: 168px; width: 48px; height: 48px; display: grid; place-items: center; border: 4px solid white; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--yon-navy); color: white; box-shadow: 0 8px 20px rgba(0, 24, 80, 0.25); }
.map-pin svg { transform: rotate(45deg); font-size: 22px; }
.map-place { position: absolute; padding: 3px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.88); color: #526480; font-size: 7px; font-weight: 700; }
.map-place.park { left: 34px; top: 65px; } .map-place.home { right: 30px; bottom: 65px; }
.map-live-chip { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #d7e3f1; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #455979; font-size: 7px; font-weight: 700; }
.map-live-chip span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.map-sheet { position: relative; z-index: 2; margin-top: -18px; padding: 14px 13px 13px; border-radius: 18px 18px 0 0; background: white; box-shadow: 0 -10px 24px rgba(0, 24, 80, 0.08); }
.sheet-handle { width: 34px; height: 3px; margin: -5px auto 9px; border-radius: 3px; background: #d6dfeb; }
.map-sheet > p { margin: 7px 0 10px; color: #61728e; font-size: 8px; line-height: 1.5; }
.health-hero { margin: 12px; padding: 18px 16px; border-radius: 16px; background: var(--yon-navy); color: white; }
.health-hero small { color: #9eb6d9; font-size: 7px; }
.health-hero strong { display: block; margin-top: 2px; font-size: 25px; }
.health-hero p { margin: 5px 0 10px; color: #ccd9eb; font-size: 8px; line-height: 1.5; }
.health-hero > span { display: inline-block; padding: 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #88b9ff; font-size: 7px; }
.health-metric-list { margin-top: 7px; border-top: 1px solid #e1e9f3; }
.health-metric-list > div { min-height: 56px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; border-bottom: 1px solid #e5ecf5; }
.health-metric-list > div > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #eef5ff; color: var(--on-blue); font-size: 16px; }
.health-metric-list p { display: grid; margin: 0; }
.health-metric-list small { color: #73849e; font-size: 7px; }
.health-metric-list strong { color: var(--yon-navy); font-size: 12px; }
.health-metric-list em { color: #087b57; font-size: 7px; font-style: normal; }
.care-summary { margin: 12px; padding: 15px; border: 1px solid #dce6f2; border-radius: 14px; background: white; }
.care-summary > small { color: var(--on-blue); font-size: 7px; font-weight: 800; }
.care-summary h2 { margin: 3px 0 8px; color: var(--yon-navy); font-size: 18px; }
.care-progress { height: 6px; overflow: hidden; border-radius: 6px; background: #e7edf5; }
.care-progress i { display: block; height: 100%; border-radius: inherit; background: var(--on-blue); }
.care-summary p { margin: 7px 0 0; color: #61728e; font-size: 8px; }
.care-list { margin: 0 12px; border-top: 1px solid #dde6f1; }
.care-row { min-height: 66px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid #e1e8f2; }
.care-row-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #edf5ff; color: var(--trust-blue); font-size: 17px; }
.care-row p { display: grid; gap: 2px; margin: 0; }
.care-row strong { color: var(--yon-navy); font-size: 10px; }
.care-row small { color: #7788a2; font-size: 7px; }
.care-row button { min-height: 28px; padding: 5px 8px; border: 1px solid var(--on-blue); border-radius: 7px; background: white; color: var(--on-blue); cursor: pointer; font-size: 7px; font-weight: 800; }
.complete-mark { color: #087b57; font-size: 7px; font-weight: 800; }

/* Sports app */
.athlete-profile-hero { height: 196px; }
.athlete-profile-hero img { object-position: center 28%; }
.live-training-card { margin: 9px 12px 0; padding: 11px; border: 1px solid #dce5f1; border-radius: 13px; background: white; }
.live-training-card time { color: var(--yon-navy); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.performance-metric-grid { margin: 10px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e0e8f2; border-radius: 10px; overflow: hidden; }
.performance-metric-grid div { padding: 8px 6px; display: grid; text-align: center; border-right: 1px solid #e0e8f2; }
.performance-metric-grid div:last-child { border-right: 0; }
.performance-metric-grid small { color: #73849e; font-size: 6px; }
.performance-metric-grid strong { color: var(--yon-navy); font-size: 17px; line-height: 1.2; }
.performance-metric-grid span { color: #7b8ca6; font-size: 6px; }
.effort-track { height: 4px; margin-bottom: 9px; overflow: hidden; border-radius: 5px; background: #e6edf6; }
.effort-track i { display: block; height: 100%; border-radius: inherit; background: var(--on-blue); }
.live-coach-note { margin: 9px 12px 0; padding: 9px 10px; display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 8px; border-left: 3px solid var(--on-blue); background: #edf5ff; }
.live-coach-note > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: white; color: var(--on-blue); font-size: 15px; }
.live-coach-note p { display: grid; gap: 2px; margin: 0; }
.live-coach-note strong { color: var(--yon-navy); font-size: 8px; }
.live-coach-note small { color: #5e7393; font-size: 7px; }
.session-summary { padding: 18px 15px 14px; background: var(--yon-navy); color: white; }
.session-summary > small { color: #87b8ff; font-size: 7px; font-weight: 800; }
.session-summary h2 { margin: 3px 0 2px; font-size: 26px; }
.session-summary h2 span { margin-left: 6px; color: #aebfda; font-size: 13px; font-weight: 600; }
.session-summary p { margin: 0; color: #c9d5e8; font-size: 8px; }
.split-chart { height: 188px; margin-top: 10px; padding: 13px 6px 4px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 5px; border-bottom: 1px solid #cfdbea; background-image: repeating-linear-gradient(to top, transparent 0 39px, #edf2f7 40px); }
.split-chart > div { height: 100%; display: grid; grid-template-rows: 1fr 15px 16px; justify-items: center; align-items: end; }
.split-chart i { width: 15px; min-height: 12px; border-radius: 3px 3px 0 0; background: #9fb7d7; }
.split-chart i.active { background: var(--on-blue); }
.split-chart small { color: #7a8aa4; font-size: 7px; }
.split-chart strong { color: var(--yon-navy); font-size: 7px; font-variant-numeric: tabular-nums; }
.session-evidence { margin-top: 11px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.session-evidence span { padding: 7px 5px; display: grid; gap: 2px; border: 1px solid #dfe8f3; border-radius: 8px; color: #6c7e9a; font-size: 6px; text-align: center; }
.session-evidence strong { color: var(--yon-navy); font-size: 9px; }
.recovery-hero { margin: 12px; padding: 15px 13px; display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; border-radius: 15px; background: var(--yon-navy); color: white; }
.recovery-gauge { --progress: 290deg; position: relative; width: 106px; height: 106px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#3f91ff var(--progress), rgba(255, 255, 255, 0.1) 0); }
.recovery-gauge::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--yon-navy); }
.recovery-gauge span { position: relative; z-index: 1; display: grid; justify-items: center; }
.recovery-gauge strong { font-size: 31px; line-height: 1; }
.recovery-gauge small { color: #9db1cf; font-size: 7px; }
.recovery-hero > div:last-child > small { color: #82b5ff; font-size: 7px; font-weight: 800; }
.recovery-hero h2 { margin: 3px 0; font-size: 17px; }
.recovery-hero p { margin: 0; color: #c0cee2; font-size: 7px; line-height: 1.5; }
.recovery-list { margin-top: 7px; border-top: 1px solid #e0e8f2; }
.recovery-list > div { min-height: 58px; display: grid; grid-template-columns: 34px 1fr 50px; align-items: center; gap: 8px; border-bottom: 1px solid #e2e9f3; }
.recovery-list > div > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #eef5ff; color: var(--on-blue); font-size: 15px; }
.recovery-list p { display: grid; grid-template-columns: 1fr auto; gap: 1px 7px; margin: 0; }
.recovery-list small { color: #71839e; font-size: 7px; }
.recovery-list strong { color: var(--yon-navy); font-size: 10px; }
.recovery-list p i { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 3px; background: #e4ebf4; }
.recovery-list p em { display: block; height: 100%; background: var(--on-blue); }
.recovery-list b { color: #087b57; font-size: 7px; text-align: right; }
.plan-header { padding: 17px 14px; background: var(--yon-navy); color: white; }
.plan-header small { color: #81b3fa; font-size: 7px; font-weight: 800; }
.plan-header h2 { margin: 3px 0 5px; font-size: 20px; }
.plan-header p { margin: 0; color: #c1d0e5; font-size: 8px; }
.week-strip { min-height: 67px; padding: 8px 10px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; border-bottom: 1px solid #e0e8f2; background: white; }
.week-strip span { padding: 6px 2px; display: grid; justify-items: center; gap: 3px; border-radius: 8px; color: #5d6f8b; font-size: 8px; font-weight: 800; }
.week-strip small { color: #8998b0; font-size: 5px; font-weight: 600; }
.week-strip .complete { background: #f1f7f5; color: #087b57; }
.week-strip .active { background: var(--on-blue); color: white; }
.week-strip .active small { color: #dceaff; }
.plan-session-list { padding: 2px 12px 10px; }
.plan-session-list article { min-height: 86px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid #e0e8f2; }
.plan-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #edf4fd; color: var(--trust-blue); font-size: 8px; font-weight: 800; }
.plan-session-list article div { display: grid; gap: 2px; }
.plan-session-list small { color: var(--on-blue); font-size: 6px; font-weight: 800; }
.plan-session-list strong { color: var(--yon-navy); font-size: 10px; }
.plan-session-list p { margin: 0; color: #7586a1; font-size: 7px; }
.plan-session-list em { color: #087b57; font-size: 7px; font-style: normal; font-weight: 800; }
.plan-session-list button { min-height: 28px; padding: 5px 8px; border: 1px solid #d2dfee; border-radius: 7px; background: white; color: var(--trust-blue); cursor: pointer; font-size: 7px; font-weight: 800; }

/* Intelligence and controls */
.intelligence-column { display: grid; gap: 12px; }
.ai-panel, .control-panel, .event-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 10px 28px rgba(0, 24, 80, 0.055); }
.ai-panel { padding: 16px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading.compact { align-items: center; }
.ai-panel .panel-heading .eyebrow { margin-bottom: 8px; font-size: 11px; line-height: 1.55; letter-spacing: 0.14em; }
.ai-panel .panel-heading h2 { margin: 0; color: var(--yon-navy); font-size: 21px; line-height: 1.25; }
.panel-heading.compact h2 { font-size: 14px; }
.ai-panel .model-status { min-height: 30px; font-size: 12px; line-height: 1.55; }
.panel-description { margin: 8px 0 10px; color: var(--muted-ink); font-size: 11px; line-height: 1.55; }
.conversation-history-control { min-height: 58px; margin: 0 0 12px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.conversation-history-copy { min-width: 0; display: grid; gap: 3px; }
.conversation-history-copy > span { display: flex; align-items: center; gap: 8px; }
.conversation-history-copy strong { color: var(--yon-navy); font-size: 12px; line-height: 1.4; }
.conversation-history-copy em { padding: 2px 6px; border-radius: 999px; background: #eaf8f3; color: #087653; font-size: 9px; line-height: 1.4; font-style: normal; font-weight: 800; }
.conversation-history-copy em[data-status="disabled"] { background: #edf1f7; color: var(--muted-ink); }
.conversation-history-copy small { color: var(--muted-ink); font-size: 10px; line-height: 1.45; }
.conversation-history-switch { position: relative; flex: 0 0 42px; width: 42px; height: 24px; }
.conversation-history-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.conversation-history-switch i { position: absolute; inset: 0; border-radius: 999px; background: #aebdd2; transition: background 160ms ease; }
.conversation-history-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0, 24, 80, 0.22); transition: transform 160ms ease; }
.conversation-history-switch input:checked + i { background: var(--on-blue); }
.conversation-history-switch input:checked + i::after { transform: translateX(18px); }
.conversation-history-switch input:focus-visible + i { outline: 3px solid rgba(0, 104, 248, 0.35); outline-offset: 3px; }
.conversation-history-control:has(input:disabled) { cursor: wait; opacity: 0.68; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.ai-suggestions button { min-height: 34px; padding: 7px 10px; border: 1px solid #d8e4f3; border-radius: 999px; background: var(--surface); color: var(--trust-blue); cursor: pointer; font-size: 11px; line-height: 1.55; font-weight: 700; }
.ai-suggestions button:hover { border-color: #aac5eb; background: #eef5ff; }
.ai-conversation { min-height: 150px; max-height: 300px; margin: 0; padding: 15px; display: grid; align-content: start; gap: 12px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); scrollbar-width: thin; }
.ai-message { margin: 0; display: flex; align-items: flex-start; gap: 9px; }
.ai-message.user { flex-direction: row-reverse; }
.message-avatar { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; background: var(--yon-navy); color: white; font-size: 11px; line-height: 1.55; font-weight: 800; }
.ai-message.user .message-avatar { background: var(--on-blue); }
.ai-message div { min-width: 0; max-width: calc(100% - 40px); padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px 12px 12px; background: white; }
.ai-message.user div { border-color: var(--trust-blue); border-radius: 12px 4px 12px 12px; background: var(--trust-blue); color: white; }
.ai-message.pending div { color: #7486a1; }
.ai-message strong { display: block; margin-bottom: 3px; color: var(--yon-navy); font-size: 11px; line-height: 1.55; }
.ai-message p { margin: 0; color: #4f6280; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.ai-message.user strong, .ai-message.user p { color: white; }
.ai-message.pending p { display: flex; align-items: center; gap: 8px; color: var(--muted-ink); font-weight: 700; }
.ai-message.pending p::before { content: ""; width: 15px; height: 15px; flex: 0 0 15px; border: 2px solid #c8d7ec; border-top-color: var(--on-blue); border-radius: 50%; animation: ai-thinking-spin 760ms linear infinite; }
@keyframes ai-thinking-spin { to { transform: rotate(360deg); } }
.ai-composer { min-height: 0; display: grid; grid-template-columns: 1fr 40px; gap: 8px; margin-top: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.ai-composer:focus-within { border-color: transparent; box-shadow: none; }
.ai-composer textarea { width: 100%; min-height: 50px; max-height: 120px; padding: 11px 12px; resize: vertical; border: 1px solid #b8cae4; border-radius: var(--radius-md); outline: 0; color: var(--ink); background: white; font-size: 12px; line-height: 1.5; }
.ai-composer textarea::placeholder { color: #92a0b7; }
.ai-composer button { width: auto; height: auto; align-self: stretch; border: 0; border-radius: var(--radius-md); background: var(--on-blue); color: white; cursor: pointer; font-size: 18px; font-weight: 800; }
.ai-composer button:disabled { cursor: wait; opacity: 0.5; }
.composer-guide { margin: 7px 0 0; color: var(--muted-ink); font-size: 10px; line-height: 1.55; }
.control-panel, .event-panel { padding: 16px; }
.control-panel .panel-heading, .event-panel .panel-heading { gap: 14px; }
.control-panel .eyebrow, .event-panel .eyebrow { margin-bottom: 8px; font-size: 11px; line-height: 1.55; letter-spacing: 0.14em; }
.control-panel .panel-heading.compact h2, .event-panel .panel-heading.compact h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.event-panel .status-chip { min-height: 30px; font-size: 12px; line-height: 1.55; }
.text-button { min-height: 0; padding: 5px 2px; border: 0; background: transparent; color: var(--on-blue); cursor: pointer; font-size: 12px; line-height: 1.55; font-weight: 700; }
.scenario-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scenario-grid button { position: relative; min-height: 68px; padding: 11px 11px 9px 42px; display: grid; align-content: stretch; gap: 1px; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.scenario-grid button:hover { border-color: #9fbee9; background: #f5f9ff; }
.scenario-grid span { position: absolute; top: 12px; left: 11px; color: var(--on-blue); font-size: 11px; line-height: 1.55; font-weight: 800; }
.scenario-grid strong { color: var(--ink); font-size: 13px; line-height: 1.55; }
.scenario-grid small { color: var(--muted-ink); font-size: 10px; line-height: 1.55; }
.event-list { max-height: 300px; margin: 14px 0 0; padding: 0; display: grid; gap: 0; overflow-y: auto; list-style: none; }
.event-item { position: relative; min-height: 0; padding: 10px 0; display: grid; grid-template-columns: 18px 1fr auto; align-items: start; gap: 8px; border-top: 1px solid var(--line); }
.event-marker { width: 14px; height: 14px; margin: 4px 0 0 2px; border: 3px solid #dceaff; border-radius: 50%; background: var(--on-blue); box-shadow: none; }
.event-item.success .event-marker { background: var(--success); border-color: #d8f2e9; box-shadow: none; }
.event-item.danger .event-marker { background: var(--danger); border-color: #fde1de; box-shadow: none; }
.event-item strong { display: block; color: var(--ink); font-size: 12px; line-height: 1.55; font-weight: 700; }
.event-item time { color: var(--muted-ink); font-size: 10px; line-height: 1.55; white-space: nowrap; }

.site-footer { max-width: 1580px; margin: 0 auto; padding: 18px 24px 26px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted-ink); font-size: 9px; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--yon-navy); }

/* Login, feedback, responsive states */
.login-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0, 16, 49, 0.74); }
.login-overlay[hidden] { display: none; }
.login-card { width: min(420px, 100%); padding: 28px; border: 1px solid rgba(216, 228, 245, 0.7); border-radius: 16px; background: white; box-shadow: var(--shadow-popover); }
.login-brand { width: 132px; height: 34px; margin-bottom: 21px; overflow: hidden; }
.login-brand img { display: block; width: 132px; height: auto; }
.login-card h2 { margin: 0; color: var(--yon-navy); font-size: 23px; }
.login-card > p:not(.eyebrow, .security-note) { margin: 9px 0 18px; color: var(--muted-ink); font-size: 12px; line-height: 1.65; }
.login-card form { display: grid; }
.login-card label { margin: 10px 0 5px; color: var(--ink); font-size: 11px; font-weight: 700; }
.login-card input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #cdd9e9; border-radius: 8px; color: var(--ink); background: white; font-size: 12px; }
.login-card input::placeholder { color: #93a0b5; }
.form-error { min-height: 18px; margin: 6px 0 0; color: var(--danger); font-size: 10px; line-height: 1.45; }
.primary-button { min-height: 44px; margin-top: 3px; border: 0; border-radius: 8px; background: var(--on-blue); color: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.primary-button:hover { background: #0058d5; }
.primary-button:disabled { cursor: wait; opacity: 0.65; }
.security-note { margin: 13px 0 0; color: #6e7f9a; font-size: 9px; }
.security-note span { color: var(--success); }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 24px; max-width: min(520px, calc(100vw - 32px)); padding: 11px 15px; transform: translate(-50%, 18px); border-radius: 9px; background: var(--yon-navy); color: white; box-shadow: var(--shadow-popover); opacity: 0; pointer-events: none; font-size: 10px; line-height: 1.45; transition: opacity 0.18s ease, transform 0.18s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1180px) {
  .product-intro { grid-template-columns: 1fr 1fr; }
  .intro-summary { display: none; }
  .simulation-stage { grid-template-columns: minmax(290px, 0.72fr) minmax(410px, 1fr); }
  .intelligence-column { grid-column: 1 / -1; grid-template-columns: 1.2fr 0.8fr; }
  .event-panel { grid-column: 2; }
  .control-panel { grid-column: 2; grid-row: 1; }
  .ai-panel { grid-row: 1 / span 2; }
}

@media (max-width: 820px) {
  .site-header { height: auto; min-height: 64px; padding: 10px 16px; }
  .brand-product, .header-status > .status-chip { display: none; }
  .product-intro { min-height: 0; padding: 22px 16px 18px; display: block; }
  .product-intro h1 { font-size: 25px; }
  .intro-copy { margin-top: 10px; }
  .simulation-stage { padding: 0 16px 32px; display: flex; flex-direction: column; gap: 28px; }
  .device-column, .intelligence-column { width: 100%; }
  .intelligence-column { display: grid; grid-template-columns: 1fr; }
  .ai-panel, .control-panel, .event-panel { grid-column: 1; grid-row: auto; }
  .phone-case { transform-origin: top center; }
}

@media (max-width: 450px) {
  :root { --phone-width: calc(100vw - 32px); --phone-height: calc((100vw - 32px) * 1.95); }
  .phone-case { max-height: 762px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .profile-hero { height: 178px; }
  .site-footer { display: grid; gap: 4px; }
  .login-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
