:root {
  color-scheme: dark; font-family: Inter, "Segoe UI", Arial, sans-serif;
  --bg: #081a36; --surface: #122849; --border: rgba(170,201,244,.2);
  --text: #f5f8ff; --muted: #adbfda; --blue: #3d86ff; --blue-light: #9cc4ff;
  --yellow: #ffc85c; --red: #ff7586; --green: #72d7b4;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(circle at 50% -8%, #194781, transparent 38rem), linear-gradient(160deg,#0b2850,var(--bg) 38rem); color: var(--text); }
body::before { background-image: linear-gradient(rgba(157,197,255,.025) 1px, transparent 1px), linear-gradient(90deg,rgba(157,197,255,.025) 1px,transparent 1px); background-size: 40px 40px; content: ""; inset: 0; pointer-events: none; position: fixed; }
button, input { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; } button { cursor: pointer; } a { color: var(--blue-light); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.mobile-frame { margin: 0 auto; max-width: 540px; min-height: 100dvh; padding: max(28px, env(safe-area-inset-top)) 22px calc(118px + env(safe-area-inset-bottom)); position: relative; }
.mobile-eyebrow { color: var(--blue-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.mobile-auth { display: grid; place-items: center; }
.mobile-auth-frame { max-width: 460px; padding-bottom: max(32px, env(safe-area-inset-bottom)); width: 100%; }
.mobile-brand { margin: 26px 0 30px; text-align: center; }
.mobile-brand-mark { filter: drop-shadow(0 14px 32px rgba(36,113,255,.35)); margin: 0 auto 16px; width: 72px; }
.mobile-brand-mark img { border-radius: 18px; display: block; }
.mobile-brand h1 { font-size: clamp(36px,10vw,46px); letter-spacing: -.065em; line-height: 1; margin: 0 0 10px; }
.mobile-brand h1 span { color: var(--yellow); }
.mobile-brand p { color: #c4d7f2; font-size: 14px; margin: 0; }
.mobile-card { background: linear-gradient(155deg,rgba(28,57,98,.96),rgba(10,29,57,.98)); border: 1px solid rgba(151,193,252,.25); border-radius: 28px; box-shadow: 0 28px 75px rgba(1,10,30,.45), inset 0 1px 0 rgba(255,255,255,.06); padding: 27px; }
.mobile-card-heading h2 { font-size: clamp(22px,6vw,27px); letter-spacing: -.035em; line-height: 1.16; margin: 10px 0 8px; }
.mobile-card-heading p { color: #b8cbe5; font-size: 13px; line-height: 1.5; margin: 0 0 26px; }
.mobile-tabs { background: rgba(3,18,42,.72); border: 1px solid var(--border); border-radius: 13px; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; padding: 4px; }
.mobile-tabs button { background: transparent; border: 0; border-radius: 9px; color: #b1c1d8; font-size: 13px; font-weight: 700; min-height: 42px; }
.mobile-tabs button.active { background: #225bb3; box-shadow: 0 3px 12px rgba(8,30,72,.4); color: #fff; }
.mobile-card label { color: #dceaff; display: grid; font-size: 12px; font-weight: 700; gap: 8px; margin: 17px 0; }
.mobile-card input { background: rgba(3,18,40,.56); border: 1px solid rgba(171,205,255,.28); border-radius: 12px; color: #fff; min-height: 50px; outline: none; padding: 0 15px; width: 100%; }
.mobile-card input::placeholder { color: #8298b6; }
.mobile-card input:focus { border-color: #9cc4ff; box-shadow: 0 0 0 3px rgba(61,134,255,.18); }
.mobile-card input:focus-visible { outline: none; }
.mobile-primary { align-items: center; background: linear-gradient(115deg,#1767de,#3b8afa); border: 1px solid rgba(167,207,255,.28); border-radius: 12px; box-shadow: 0 11px 25px rgba(12,85,203,.3); color: white; display: flex; font-size: 14px; font-weight: 800; justify-content: center; min-height: 52px; padding: 12px 18px; position: relative; width: 100%; }
.mobile-primary span { font-size: 21px; position: absolute; right: 17px; top: 10px; }
.mobile-primary:hover:not(:disabled) { filter: brightness(1.1); } .mobile-primary:disabled { cursor: progress; opacity: .65; }
.mobile-message { color: #ffbac3; font-size: 13px; line-height: 1.45; margin: 0; }
.mobile-message:empty { display: none; } .mobile-message:not(:empty) { margin: 12px 0; }
.mobile-helper { color: #b8cbe5; font-size: 12px; line-height: 1.5; margin: -7px 0 12px; }
.mobile-access-note { align-items: flex-start; background: rgba(17,41,75,.6); border: 1px solid var(--border); border-radius: 14px; color: #c6d7ed; display: flex; font-size: 12px; gap: 10px; line-height: 1.55; margin: 17px 0 14px; padding: 14px 16px; }
.mobile-access-note span { color: var(--yellow); font-size: 20px; line-height: 1; } .mobile-access-note p { margin: 0; }
.mobile-site-link { display: block; font-size: 13px; font-weight: 700; padding: 10px; text-align: center; text-decoration: none; }
.mobile-site-link:hover { text-decoration: underline; }
.mobile-topbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 29px; }
.mobile-place { align-items: center; display: flex; gap: 12px; min-width: 0; }
.mobile-place-icon { align-items: center; background: rgba(66,135,240,.18); border: 1px solid rgba(132,181,255,.26); border-radius: 12px; color: var(--blue-light); display: flex; font-size: 24px; height: 44px; justify-content: center; width: 44px; }
.mobile-place > div { display: grid; gap: 4px; min-width: 0; }
.mobile-place small { color: #b2c6e3; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.mobile-place strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-logout { background: rgba(22,49,87,.9); border: 1px solid var(--border); border-radius: 13px; color: #d8e7fb; flex: none; font-size: 23px; height: 44px; line-height: 1; width: 44px; }
.mobile-logout:hover { background: #28517e; }
.mobile-greeting { margin: 0 0 22px; }
.mobile-greeting h1 { font-size: clamp(26px,7vw,34px); letter-spacing: -.04em; line-height: 1.17; margin: 9px 0 6px; overflow-wrap: anywhere; }
.mobile-greeting h1 > span:last-child { color: var(--yellow); }
.mobile-greeting p { color: var(--muted); font-size: 13px; margin: 0; }
.mobile-weather-card { background: radial-gradient(circle at 88% 23%,rgba(101,163,255,.4),transparent 35%),linear-gradient(143deg,#1954a4,#124184 49%,#12315e); border: 1px solid rgba(184,214,255,.32); border-radius: 27px; box-shadow: 0 25px 50px rgba(0,22,63,.35),inset 0 1px 0 rgba(255,255,255,.1); overflow: hidden; padding: 23px 22px 19px; position: relative; }
.mobile-weather-card::after { border: 1px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; height: 280px; pointer-events: none; position: absolute; right: -130px; top: -144px; width: 280px; }
.mobile-weather-top { align-items: center; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.mobile-weather-top .mobile-eyebrow { color: #c7ddff; }
.mobile-weather-badge { background: rgba(4,23,57,.34); border: 1px solid rgba(207,227,255,.21); border-radius: 100px; color: #dceaff; font-size: 9px; font-weight: 800; letter-spacing: .1em; padding: 7px 10px; }
.mobile-weather-main { align-items: center; display: flex; gap: 18px; min-height: 190px; position: relative; z-index: 1; }
.mobile-weather-icon { filter: drop-shadow(0 13px 20px rgba(0,18,57,.4)); flex: 0 0 105px; font-size: clamp(65px,20vw,100px); line-height: 1; text-align: center; }
.mobile-weather-main > div { min-width: 0; } .mobile-weather-main strong { display: block; font-size: clamp(63px,17vw,87px); font-weight: 300; letter-spacing: -.09em; line-height: 1; white-space: nowrap; }
.mobile-weather-main p { color: #e5efff; font-size: 14px; font-weight: 600; line-height: 1.35; margin: 9px 0 0; }
.mobile-metrics { background: rgba(3,20,52,.42); border: 1px solid rgba(193,218,255,.18); border-radius: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 4px 0 15px; overflow: hidden; position: relative; z-index: 1; }
.mobile-metrics span { border-left: 1px solid rgba(193,218,255,.18); display: grid; gap: 9px; min-width: 0; padding: 14px 8px; text-align: center; }
.mobile-metrics span:first-child { border-left: 0; } .mobile-metrics small { color: #c8d9f2; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.mobile-metrics strong { font-size: clamp(12px,3.8vw,16px); white-space: nowrap; }
.mobile-source { color: #d5e5fc; display: inline-block; font-size: 11px; position: relative; text-decoration-color: rgba(213,229,252,.5); z-index: 1; }
.mobile-source:empty { display: none; } .mobile-source:not([href]) { text-decoration: none; }
.mobile-risk-card { align-items: center; background: linear-gradient(120deg,#323241,#222b40 70%); border: 1px solid rgba(255,200,92,.37); border-radius: 21px; display: grid; gap: 14px; grid-template-columns: 44px minmax(0,1fr) 44px; margin: 18px 0 31px; padding: 19px 15px; }
.mobile-risk-icon { align-items: center; background: rgba(255,200,92,.17); border: 1px solid rgba(255,200,92,.5); border-radius: 13px; color: var(--yellow); display: flex; font-size: 24px; font-weight: 900; height: 44px; justify-content: center; width: 44px; }
.mobile-risk-card .mobile-eyebrow { color: #f4c778; font-size: 9px; } .mobile-risk-card h2 { font-size: 15px; line-height: 1.3; margin: 5px 0 3px; }
.mobile-risk-card p { color: #d2d3de; font-size: 12px; line-height: 1.4; margin: 0; }
.mobile-risk-arrow { align-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; color: #fff; display: flex; font-size: 19px; height: 44px; justify-content: center; text-decoration: none; width: 44px; }
.mobile-risk-card[data-risk="clear"] { background: linear-gradient(120deg,#143d48,#172b42); border-color: rgba(114,215,180,.38); }
.mobile-risk-card[data-risk="clear"] .mobile-risk-icon { background: rgba(114,215,180,.16); border-color: rgba(114,215,180,.4); color: var(--green); }
.mobile-risk-card[data-risk="clear"] .mobile-eyebrow { color: var(--green); }
.mobile-risk-card[data-risk="high"] { background: linear-gradient(120deg,#4a2938,#222a41); border-color: rgba(255,117,134,.45); }
.mobile-risk-card[data-risk="high"] .mobile-risk-icon { background: rgba(255,117,134,.16); border-color: rgba(255,117,134,.45); color: var(--red); }
.mobile-risk-card[data-risk="high"] .mobile-eyebrow { color: #ffadb7; }
.mobile-risk-card[data-risk="error"] { border-color: var(--border); }
.mobile-section > header { align-items: end; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.mobile-section h2 { font-size: 21px; letter-spacing: -.03em; margin: 5px 0 0; }
.mobile-section > header a { flex: none; font-size: 12px; font-weight: 700; padding: 10px 0; text-decoration: none; }
.mobile-section > header a:hover { text-decoration: underline; }
.mobile-alert-list { display: grid; gap: 11px; }
.mobile-alert-list article { background: linear-gradient(130deg,rgba(27,51,83,.98),rgba(15,33,59,.98)); border: 1px solid var(--border); border-radius: 16px; display: grid; gap: 8px; overflow: hidden; padding: 17px 18px; position: relative; }
.mobile-alert-list article::before { background: var(--yellow); content: ""; height: 100%; left: 0; position: absolute; top: 0; width: 4px; }
.mobile-alert-list article[data-severity="LOW"]::before { background: var(--green); }
.mobile-alert-list article[data-severity="HIGH"]::before { background: #ff9d62; }
.mobile-alert-list article[data-severity="CRITICAL"]::before { background: var(--red); }
.mobile-alert-list article small { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.mobile-alert-list article[data-severity="LOW"] small { color: var(--green); }
.mobile-alert-list article[data-severity="HIGH"] small { color: #ffb98b; }
.mobile-alert-list article[data-severity="CRITICAL"] small { color: #ffafb9; }
.mobile-alert-list article strong { font-size: 15px; line-height: 1.3; } .mobile-alert-list article span { color: #b9cce8; font-size: 12px; }
.mobile-list-state { background: rgba(24,48,80,.8); border: 1px dashed rgba(170,201,244,.3); border-radius: 16px; color: #c6d7ee; font-size: 13px; line-height: 1.5; margin: 0; padding: 20px; }
.mobile-bottom-nav { background: rgba(7,23,45,.97); border-top: 1px solid rgba(173,205,249,.2); bottom: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); left: 0; padding: 6px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); position: fixed; right: 0; z-index: 10; }
.mobile-bottom-nav a { align-items: center; border-radius: 12px; color: #a5b9d5; display: grid; font-size: 11px; font-weight: 600; gap: 3px; justify-items: center; min-height: 58px; padding: 7px 2px; text-decoration: none; }
.mobile-bottom-nav a:hover { background: rgba(102,159,241,.12); color: #fff; } .mobile-bottom-nav a.active { color: var(--yellow); }
.mobile-nav-icon { font-size: 23px; line-height: 1; } [hidden] { display: none !important; }
@media (max-width: 360px) {
  .mobile-frame { padding-left: 15px; padding-right: 15px; } .mobile-card { padding: 22px; }
  .mobile-weather-icon { flex-basis: 77px; } .mobile-weather-main { gap: 12px; }
  .mobile-risk-card { gap: 9px; grid-template-columns: 40px minmax(0,1fr) 44px; padding: 14px 11px; }
  .mobile-risk-icon { height: 40px; width: 40px; }
}
@media (min-width: 700px) {
  .mobile-frame { margin-bottom: 36px; margin-top: 28px; min-height: calc(100dvh - 56px); }
  .mobile-dashboard { border: 1px solid rgba(170,201,244,.12); border-radius: 32px; box-shadow: 0 28px 90px rgba(0,8,25,.25); }
  .mobile-bottom-nav { border: 1px solid rgba(173,205,249,.2); border-radius: 22px; bottom: 16px; left: 50%; max-width: 520px; right: auto; transform: translateX(-50%); width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-card, .mobile-weather-card, .mobile-risk-card { animation: rise-in .45s ease both; }
  .mobile-weather-card { animation-delay: .08s; } .mobile-risk-card { animation-delay: .15s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}
.light { color-scheme: light; --bg: #eef4fc; --text: #132747; --muted: #536b89; --blue-light: #1855ae; }
.light body { background: radial-gradient(circle at 50% -8%,#d4e7ff,transparent 40rem),#eef4fc; }
.light .mobile-greeting p, .light .mobile-place small { color: #536b89; }
.light .mobile-place strong { color: #163458; } .light .mobile-logout { background: #fff; color: #173b67; }
.light .mobile-weather-card, .light .mobile-risk-card, .light .mobile-alert-list article, .light .mobile-card { color: #fff; }
.light .mobile-access-note { background: #e2ecf8; color: #29496e; }
.light .mobile-bottom-nav { background: rgba(255,255,255,.97); }
.light .mobile-bottom-nav a { color: #4d6480; } .light .mobile-bottom-nav a.active { color: #0759bb; }
.light .mobile-section h2 { color: #163458; } .light .mobile-list-state { background: #fff; color: #365574; }

.mobile-risk-card[data-risk="unknown"] { background: #19364b; border-color: #4e6c80; }
.mobile-risk-card[data-risk="unknown"] .mobile-risk-icon { background: #ffffff12; color: #d3e4ef; }
