:root {
  --ink: #102436;
  --muted: #6f7f8e;
  --line: #e3e9ee;
  --surface: #ffffff;
  --page: #f3f6f8;
  --navy: #081a2b;
  --navy-2: #123653;
  --green: #13aa7c;
  --green-soft: #e7f8f2;
  --amber: #de9225;
  --amber-soft: #fff4df;
  --red: #d95151;
  --red-soft: #ffebeb;
  --blue: #3174cb;
  --blue-soft: #eaf2ff;
  --shadow: 0 10px 30px rgba(12, 36, 54, .08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--page); }
body { overflow-x: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
#mobileApp { min-height: 100vh; }
.mobile-app-shell { min-height: 100vh; padding-bottom: calc(84px + var(--safe-bottom)); }
.mobile-topbar { position: sticky; top: 0; z-index: 20; padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 10px; background: rgba(243,246,248,.94); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(227,233,238,.8); }
.mobile-topbar-main { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; }
.mobile-brand-mark, .mobile-icon-button, .mobile-avatar { width: 42px; height: 42px; border: 0; border-radius: 15px; display: grid; place-items: center; font-weight: 800; }
.mobile-brand-mark { color: white; background: linear-gradient(145deg, var(--navy-2), var(--green)); box-shadow: 0 8px 18px rgba(13,87,95,.24); }
.mobile-icon-button { background: var(--surface); color: var(--ink); font-size: 31px; line-height: 1; box-shadow: var(--shadow); }
.mobile-avatar { background: #dff5ed; color: #0b7658; }
.mobile-title-wrap small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mobile-title-wrap h1 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.03em; }
.mobile-sync-line { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.mobile-sync-line button { margin-left: auto; border: 0; background: transparent; color: var(--blue); font-weight: 700; padding: 4px 0 4px 10px; }
.mobile-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(19,170,124,.12); }
.mobile-content { width: min(100%, 560px); margin: 0 auto; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 20px; }
.mobile-content > * { margin-top: 0; margin-bottom: 0; }
.mobile-bottom-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + var(--safe-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(18px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(12,36,54,.08); }
.mobile-nav-item { min-width: 0; border: 0; background: transparent; color: #8493a0; padding: 5px 2px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; }
.mobile-nav-icon { min-width: 34px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: 13px; font-size: 18px; font-weight: 800; }
.mobile-nav-item.active { color: var(--green); }
.mobile-nav-item.active .mobile-nav-icon { background: var(--green-soft); }
.mobile-greeting { margin: 1px 2px 15px; }
.mobile-greeting p { margin: 0 0 3px; color: var(--muted); font-size: 13px; }
.mobile-greeting h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.mobile-hero-card { min-height: 176px; padding: 23px; border-radius: 27px; background: linear-gradient(145deg, #0a2035, #164364); color: white; display: flex; justify-content: space-between; gap: 18px; overflow: hidden; position: relative; box-shadow: 0 18px 38px rgba(8,26,43,.2); }
.mobile-hero-card:after { content: ""; position: absolute; width: 190px; height: 190px; right: -90px; bottom: -115px; border-radius: 50%; background: rgba(255,255,255,.07); }
.mobile-hero-card h2 { margin: 7px 0; font-size: 28px; letter-spacing: -.04em; }
.mobile-hero-card p { margin: 0; max-width: 245px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.45; }
.mobile-hero-card.success { background: linear-gradient(145deg, #0b4437, #12a377); }
.mobile-hero-card.warning { background: linear-gradient(145deg, #5b3915, #cf8323); }
.mobile-hero-card.danger { background: linear-gradient(145deg, #5e2429, #c84c52); }
.mobile-hero-orb { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); font-size: 27px; font-weight: 900; }
.mobile-eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 800; }
.mobile-eyebrow.light { color: rgba(255,255,255,.7); }
.mobile-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; margin-top: 13px; }
.mobile-metric-card { min-width: 0; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(227,233,238,.9); box-shadow: 0 7px 22px rgba(12,36,54,.055); }
.mobile-metric-card > span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.mobile-metric-card strong { display: block; margin-top: 7px; font-size: 19px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.mobile-metric-card small { display: block; color: #8b99a5; margin-top: 3px; font-size: 10px; }
.mobile-card { margin-top: 0; padding: 18px; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); box-shadow: 0 8px 25px rgba(12,36,54,.045); }
.mobile-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.mobile-section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.mobile-section-head button { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 800; padding: 4px; }
.mobile-stat-row, .mobile-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid #edf1f4; }
.mobile-stat-row:first-of-type, .mobile-info-row:first-of-type { border-top: 0; }
.mobile-stat-row span, .mobile-info-row span { color: var(--muted); font-size: 12px; }
.mobile-stat-row strong, .mobile-info-row strong { max-width: 61%; text-align: right; font-size: 12px; overflow-wrap: anywhere; }
.text-danger { color: var(--red); }
.mobile-pill { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.mobile-pill.success { color: #087458; background: var(--green-soft); }
.mobile-pill.warning { color: #976012; background: var(--amber-soft); }
.mobile-pill.danger { color: #a83d43; background: var(--red-soft); }
.mobile-pill.neutral { color: #657786; background: #edf2f5; }
.mobile-inline-empty { padding: 18px 4px 8px; color: var(--muted); text-align: center; font-size: 12px; }
.mobile-inline-empty.tall { min-height: 170px; display: grid; place-items: center; }
.mobile-empty-state { padding: 42px 25px; text-align: center; border: 1px dashed #ccd6dd; border-radius: 24px; background: rgba(255,255,255,.65); }
.mobile-empty-icon { width: 54px; height: 54px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 19px; background: #eaf0f4; color: #778895; font-size: 25px; }
.mobile-empty-state h2 { margin: 0; font-size: 18px; }
.mobile-empty-state p { margin: 8px auto 0; max-width: 320px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.mobile-plant-cover { padding: 26px 23px; border-radius: 28px; background: radial-gradient(circle at 85% 18%, rgba(255,255,255,.25), transparent 18%), linear-gradient(145deg,#0b5c4b,#16ad7e); color: white; box-shadow: 0 18px 38px rgba(11,92,75,.18); }
.mobile-plant-cover .mobile-eyebrow { color: rgba(255,255,255,.7); }
.mobile-plant-cover h2 { margin: 7px 0 4px; font-size: 27px; letter-spacing: -.04em; }
.mobile-plant-cover p { margin: 0 0 15px; color: rgba(255,255,255,.72); font-size: 12px; }
.mobile-plant-cover .mobile-pill { background: rgba(255,255,255,.17); color: white; }
.mobile-plant-sun { float: right; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 22px; background: rgba(255,255,255,.15); font-size: 30px; }
.mobile-search-panel { display: grid; grid-template-columns: 1fr 110px; gap: 9px; }
.mobile-search { height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mobile-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.mobile-search-panel select { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 0 10px; background: var(--surface); color: var(--ink); font-size: 12px; }
.mobile-summary-strip { display: grid; grid-template-columns: repeat(3,1fr); margin: 12px 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.mobile-summary-strip > div { padding: 13px 8px; text-align: center; border-left: 1px solid var(--line); }
.mobile-summary-strip > div:first-child { border-left: 0; }
.mobile-summary-strip strong { display: block; font-size: 18px; }
.mobile-summary-strip span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.mobile-list-stack { display: grid; gap: 9px; }
.mobile-list-card, .mobile-alert-card { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) auto 12px; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); color: var(--ink); text-align: left; box-shadow: 0 6px 20px rgba(12,36,54,.04); }
.mobile-list-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; background: var(--blue-soft); color: var(--blue); font-size: 19px; font-weight: 800; }
.mobile-list-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mobile-list-body strong { font-size: 13px; overflow-wrap: anywhere; }
.mobile-list-body small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.mobile-list-side { display: flex; align-items: flex-end; flex-direction: column; gap: 6px; }
.mobile-list-side small { color: var(--muted); font-size: 9px; max-width: 88px; text-align: right; overflow-wrap: anywhere; }
.mobile-chevron { color: #9dabb6; font-size: 20px; }
.mobile-detail-hero { padding: 19px; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.mobile-detail-hero > .mobile-pill { grid-column: 1 / -1; }
.mobile-detail-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 21px; background: var(--blue-soft); color: var(--blue); font-size: 25px; font-weight: 800; }
.mobile-detail-hero h2 { margin: 3px 0; font-size: 20px; }
.mobile-detail-hero p { margin: 0; color: var(--muted); font-size: 10px; }
.mobile-reading-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.mobile-reading-grid .mobile-metric-card { box-shadow: none; background: #f7f9fa; }
.mobile-filter-chips { display: flex; gap: 7px; margin: 12px 0; overflow-x: auto; scrollbar-width: none; }
.mobile-filter-chips button { flex: 0 0 auto; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; }
.mobile-filter-chips button.active { background: var(--navy); color: white; border-color: var(--navy); }
.mobile-alert-card { grid-template-columns: 7px minmax(0,1fr) auto 12px; }
.mobile-alert-marker { width: 5px; height: 48px; border-radius: 999px; background: #9aa8b3; }
.mobile-alert-card.success .mobile-alert-marker { background: var(--green); }
.mobile-alert-card.warning .mobile-alert-marker { background: var(--amber); }
.mobile-alert-card.danger .mobile-alert-marker { background: var(--red); }
.mobile-alert-detail { padding: 25px; border-radius: 27px; background: #eaf0f4; }
.mobile-alert-detail.warning { background: var(--amber-soft); }
.mobile-alert-detail.danger { background: var(--red-soft); }
.mobile-alert-detail.success { background: var(--green-soft); }
.mobile-alert-symbol { float: right; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 19px; background: rgba(255,255,255,.7); font-size: 25px; font-weight: 900; }
.mobile-alert-detail h2 { margin: 8px 0; max-width: 80%; font-size: 23px; letter-spacing: -.035em; }
.mobile-alert-detail p { margin: 0; color: #5f6f7b; font-size: 12px; line-height: 1.55; }
.mobile-detail-actions { margin-top: 17px; display: flex; align-items: center; gap: 8px; }
.mobile-detail-actions button { border: 0; padding: 7px 11px; border-radius: 999px; background: var(--surface); color: var(--blue); font-size: 10px; font-weight: 800; }
.mobile-period-control { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; padding: 5px; border-radius: 17px; background: #e4e9ed; }
.mobile-period-control button { padding: 9px 4px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.mobile-period-control button.active { color: var(--ink); background: white; box-shadow: 0 4px 12px rgba(12,36,54,.08); }
.mobile-bar-chart { height: 190px; display: flex; align-items: end; gap: 5px; padding: 20px 5px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(to top, rgba(227,233,238,.38) 1px, transparent 1px); background-size: 100% 25%; }
.mobile-bar-chart span { flex: 1; min-width: 3px; max-width: 22px; position: relative; border-radius: 7px 7px 2px 2px; background: linear-gradient(to top, #0d9d75, #5ed3ad); }
.mobile-bar-chart i { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); color: var(--muted); font-size: 7px; font-style: normal; }
.mobile-chart-caption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 9px; }
.mobile-finance-hero { padding: 26px 23px; border-radius: 27px; color: white; background: linear-gradient(145deg,#122e4a,#2368a6); box-shadow: 0 18px 38px rgba(31,91,145,.19); }
.mobile-finance-hero .mobile-eyebrow { color: rgba(255,255,255,.7); }
.mobile-finance-hero h2 { margin: 8px 0 4px; font-size: 34px; letter-spacing: -.045em; overflow-wrap: anywhere; }
.mobile-finance-hero p { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; }
.mobile-feature-intro { text-align: center; padding: 30px 22px; }
.mobile-feature-icon { width: 62px; height: 62px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 22px; color: var(--blue); background: var(--blue-soft); font-size: 28px; }
.mobile-feature-intro h2 { margin: 0; }
.mobile-feature-intro p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.mobile-report-card { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.mobile-report-card div { min-width: 0; }
.mobile-report-card strong, .mobile-report-card small { display: block; overflow-wrap: anywhere; }
.mobile-report-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.mobile-report-card a, .mobile-report-card > span { flex: 0 0 auto; color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.mobile-profile-head { padding: 22px; text-align: center; }
.mobile-profile-avatar { width: 82px; height: 82px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 29px; color: white; background: linear-gradient(145deg,var(--navy-2),var(--green)); font-size: 25px; font-weight: 900; box-shadow: 0 15px 28px rgba(13,87,95,.2); }
.mobile-profile-head h2 { margin: 0; font-size: 23px; }
.mobile-profile-head p { margin: 5px 0 10px; color: var(--muted); font-size: 12px; }
.mobile-danger-button { width: 100%; margin-top: 15px; padding: 14px; border: 1px solid #f0c7c9; border-radius: 17px; background: var(--red-soft); color: #a63f44; font-weight: 800; }
.mobile-more-grid { display: grid; gap: 10px; }
.mobile-more-grid button { display: grid; grid-template-columns: 46px minmax(0,1fr) 16px; grid-template-rows: auto auto; column-gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-align: left; }
.mobile-more-grid button > span { grid-row: 1 / 3; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; color: var(--green); background: var(--green-soft); font-size: 19px; font-weight: 900; }
.mobile-more-grid button strong { align-self: end; font-size: 13px; }
.mobile-more-grid button small { color: var(--muted); font-size: 9px; }
.mobile-more-grid button i { grid-column: 3; grid-row: 1 / 3; align-self: center; color: #9aa8b3; font-size: 20px; font-style: normal; }
.mobile-loading { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mobile-loader { width: 44px; height: 44px; border: 4px solid #dce5eb; border-top-color: var(--green); border-radius: 50%; animation: mobile-spin .85s linear infinite; }
.mobile-loading h2 { margin: 18px 0 5px; font-size: 18px; }
.mobile-loading p { margin: 0; color: var(--muted); font-size: 12px; }
@keyframes mobile-spin { to { transform: rotate(360deg); } }
.mobile-login-page { min-height: 100%; background: var(--page); }
.mobile-login-shell { min-height: 100vh; min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); }
.mobile-login-visual { position: relative; flex: 0 0 auto; padding: calc(24px + env(safe-area-inset-top,0px)) 24px 32px; overflow: hidden; color: white; background: radial-gradient(circle at 85% 18%, rgba(99,232,186,.36), transparent 22%), linear-gradient(145deg,#071827,#12466a); border-radius: 0 0 36px 36px; }
.mobile-login-visual:after { content: ""; position: absolute; width: 280px; height: 280px; right: -140px; bottom: -180px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035),0 0 0 70px rgba(255,255,255,.025); }
.mobile-login-brand { display: flex; align-items: center; gap: 10px; }
.mobile-login-brand span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--green); font-weight: 900; }
.mobile-login-brand strong { font-size: 17px; }
.mobile-login-copy { position: relative; z-index: 1; margin-top: 38px; max-width: 360px; }
.mobile-login-copy h1 { margin: 8px 0 10px; font-size: clamp(34px,10vw,48px); line-height: .98; letter-spacing: -.055em; }
.mobile-login-copy p { margin: 0; color: rgba(255,255,255,.67); font-size: 12px; line-height: 1.55; }
.mobile-login-form-wrap { width: min(100%,520px); flex: 1 0 auto; margin: 0 auto; padding: 28px 22px max(36px, calc(28px + env(safe-area-inset-bottom,0px))); }
.mobile-login-form-head h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.mobile-login-form-head p { margin: 6px 0 20px; color: var(--muted); font-size: 12px; }
.mobile-login-form { display: grid; gap: 14px; }
.mobile-login-form label > span { display: block; margin: 0 0 7px 2px; color: #455969; font-size: 11px; font-weight: 800; }
.mobile-login-form input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 16px; outline: none; color: var(--ink); background: white; }
.mobile-login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(19,170,124,.1); }
.mobile-login-form button { height: 51px; border: 0; border-radius: 17px; color: white; background: linear-gradient(145deg,#0b8062,#12ae80); font-weight: 850; box-shadow: 0 12px 25px rgba(19,170,124,.22); }
.mobile-login-status { padding: 11px 13px; border-radius: 14px; color: #5d7080; background: #e9eff3; font-size: 10px; line-height: 1.45; }
.mobile-login-status.success { color: #087458; background: var(--green-soft); }
.mobile-login-status.error { color: #a63f44; background: var(--red-soft); }
.mobile-login-foot { margin: 20px 0 0; text-align: center; color: #93a0aa; font-size: 9px; }
@media (max-width: 699px) and (max-height: 760px) {
  .mobile-login-visual { padding-top: calc(18px + env(safe-area-inset-top,0px)); padding-bottom: 24px; }
  .mobile-login-copy { margin-top: 28px; }
  .mobile-login-copy h1 { font-size: clamp(32px, 9.5vw, 42px); }
  .mobile-login-form-wrap { padding-top: 23px; }
  .mobile-login-form-head p { margin-bottom: 16px; }
}
@media (min-width: 700px) {
  body:not(.mobile-login-page) { background: #dfe5e9; }
  .mobile-app-shell { width: 480px; margin: 20px auto; min-height: calc(100vh - 40px); overflow: hidden; border-radius: 34px; background: var(--page); box-shadow: 0 30px 70px rgba(12,36,54,.18); }
  .mobile-topbar { top: 20px; width: 480px; border-radius: 34px 34px 0 0; }
  .mobile-bottom-nav { left: 50%; right: auto; width: 480px; transform: translateX(-50%); bottom: 20px; border-radius: 0 0 34px 34px; }
  .mobile-login-shell { min-height: 820px; width: 430px; margin: 35px auto; border-radius: 36px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
}
@media (max-width: 355px) {
  .mobile-content { padding-left: 12px; padding-right: 12px; }
  .mobile-metric-card { padding: 13px; }
  .mobile-metric-card strong { font-size: 16px; }
  .mobile-search-panel { grid-template-columns: 1fr; }
  .mobile-list-card { grid-template-columns: 38px minmax(0,1fr) 11px; }
  .mobile-list-card .mobile-list-side { grid-column: 2; align-items: flex-start; }
  .mobile-list-card .mobile-chevron { grid-column: 3; grid-row: 1 / 3; }
}

/* PWA, offline and session safety */
.mobile-live-dot.offline { background: #9aa7b2; box-shadow: 0 0 0 4px rgba(111,127,142,.12); }
.mobile-update-prompt { position: fixed; z-index: 80; left: 14px; right: 14px; bottom: calc(92px + var(--safe-bottom)); width: min(calc(100% - 28px), 532px); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) auto 32px; align-items: center; gap: 10px; padding: 13px 12px 13px 15px; color: white; background: rgba(8,26,43,.97); border: 1px solid rgba(255,255,255,.12); border-radius: 19px; box-shadow: 0 18px 45px rgba(8,26,43,.28); backdrop-filter: blur(18px); }
.mobile-update-prompt div { min-width: 0; }
.mobile-update-prompt strong, .mobile-update-prompt span { display: block; }
.mobile-update-prompt strong { font-size: 12px; }
.mobile-update-prompt span { margin-top: 2px; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.4; }
.mobile-update-prompt button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 12px; color: white; background: var(--green); font-size: 11px; font-weight: 800; }
.mobile-update-prompt button.dismiss { width: 32px; min-height: 32px; padding: 0; color: rgba(255,255,255,.72); background: transparent; font-size: 22px; font-weight: 500; }
.mobile-dialog-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; align-items: end; padding: 18px 16px max(18px, calc(18px + var(--safe-bottom))); background: rgba(5,18,30,.48); backdrop-filter: blur(5px); }
.mobile-dialog { width: min(100%, 520px); margin: 0 auto; padding: 22px; border-radius: 25px; background: white; box-shadow: 0 24px 70px rgba(5,18,30,.3); animation: mobile-dialog-enter .18s ease-out; }
.mobile-dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 17px; color: #a63f44; background: var(--red-soft); font-size: 23px; font-weight: 800; }
.mobile-dialog h2 { margin: 15px 0 6px; font-size: 21px; letter-spacing: -.035em; }
.mobile-dialog p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.mobile-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.mobile-dialog-actions button { min-height: 48px; border: 0; border-radius: 16px; font-size: 12px; font-weight: 850; }
.mobile-dialog-actions button.secondary { color: var(--ink); background: #edf2f5; }
.mobile-dialog-actions button.danger { color: white; background: var(--red); }
@keyframes mobile-dialog-enter { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.mobile-offline-page { min-height: 100vh; min-height: 100svh; min-height: 100dvh; color: white; background: radial-gradient(circle at 86% 12%, rgba(92,230,181,.24), transparent 24%), linear-gradient(145deg,#071827,#123f5e); }
.mobile-offline-shell { min-height: 100vh; min-height: 100svh; min-height: 100dvh; width: min(100%, 560px); margin: 0 auto; padding: calc(22px + env(safe-area-inset-top,0px)) 20px max(28px, calc(22px + env(safe-area-inset-bottom,0px))); display: flex; flex-direction: column; }
.mobile-offline-brand { display: flex; align-items: center; gap: 11px; font-size: 18px; }
.mobile-offline-brand span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: var(--green); font-weight: 900; box-shadow: 0 10px 25px rgba(19,170,124,.25); }
.mobile-offline-card { margin: auto 0; padding: 27px; border: 1px solid rgba(255,255,255,.12); border-radius: 29px; background: rgba(255,255,255,.08); box-shadow: 0 25px 70px rgba(0,0,0,.18); backdrop-filter: blur(18px); }
.mobile-offline-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 20px; color: #8cf4ce; background: rgba(19,170,124,.16); font-size: 30px; }
.mobile-offline-card .mobile-eyebrow { color: rgba(255,255,255,.58); }
.mobile-offline-card h1 { margin: 8px 0 8px; font-size: 34px; letter-spacing: -.05em; }
.mobile-offline-card p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.6; }
.mobile-offline-card button, .mobile-offline-card a { width: 100%; min-height: 50px; margin-top: 20px; display: grid; place-items: center; border: 0; border-radius: 17px; text-decoration: none; font-size: 12px; font-weight: 850; }
.mobile-offline-card button, .mobile-offline-card a.mobile-offline-retry { min-height: 50px; margin-top: 20px; color: white; background: var(--green); }
.mobile-offline-card a { min-height: 42px; margin-top: 8px; color: rgba(255,255,255,.78); background: transparent; }
@media (min-width: 700px) {
  .mobile-dialog-backdrop { align-items: center; }
  .mobile-update-prompt { bottom: 24px; }
}
