:root {
  color-scheme: light;
  --button-text: #fff; --bg: #f2f3f7; --surface: #fff; --surface-alt: #f6f7fb; --text: #1c2030; --muted: #73798a;
  --line: #e9ebf1; --accent: #4c61ed; --accent-soft: #eef0ff; --green: #218365; --green-bg: #e8f6ef;
  --red: #cc3d4c; --red-bg: #fcebed; --yellow: #946315; --yellow-bg: #fff3d8;
  --glass: rgba(242,243,247,.86); --shadow: 0 20px 80px #17234d26; --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark; --button-text: #151a36; --bg: #101116; --surface: #1c1e27; --surface-alt: #252835; --text: #f0f1f8; --muted: #a2a7b8;
    --line: #303340; --accent: #a1afff; --accent-soft: #2b3152; --green: #81d9b4; --green-bg: #18392f;
    --red: #ff9aa5; --red-bg: #42262d; --yellow: #f0ca7d; --yellow-bg: #3c3221; --glass: rgba(16,17,22,.86); --shadow: 0 20px 80px #0008;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark; --button-text: #151a36; --bg: #101116; --surface: #1c1e27; --surface-alt: #252835; --text: #f0f1f8; --muted: #a2a7b8;
  --line: #303340; --accent: #a1afff; --accent-soft: #2b3152; --green: #81d9b4; --green-bg: #18392f;
  --red: #ff9aa5; --red-bg: #42262d; --yellow: #f0ca7d; --yellow-bg: #3c3221; --glass: rgba(16,17,22,.86); --shadow: 0 20px 80px #0008;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); scroll-padding-top: 100px; overscroll-behavior-y: none; }
body { margin: 0; color: var(--text); line-height: 1.45; background: var(--bg); min-height: 100dvh; overscroll-behavior-y: none; }
main { max-width: 1000px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px, 5vw, 42px); font-weight: 750; line-height: 1.1; letter-spacing: -1.3px; margin: 10px 0 14px; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
h3 { font-size: 17px; letter-spacing: -.25px; font-weight: 650; }
a { color: var(--accent); text-decoration: none; }
button, input, select { font: inherit; font-size: 16px; }
button { border: 0; border-radius: 14px; padding: 13px 18px; min-height: 48px; background: var(--accent); color: var(--button-text); font-weight: 650; cursor: pointer; touch-action: manipulation; transition: opacity 180ms, transform 180ms, background 180ms; }
button:active:not(:disabled) { transform: scale(.98); opacity: .8; }
button:disabled { opacity: .42; cursor: default; }
button.secondary { background: var(--accent-soft); color: var(--accent); }
button.danger { color: var(--red); background: var(--red-bg); }
button.text-button { color: var(--accent); background: transparent; padding: 10px 4px; min-height: 44px; }
button.icon-button { background: var(--surface-alt); color: var(--muted); width: 36px; height: 36px; min-height: 36px; flex: 0 0 36px; padding: 0; font-size: 24px; border-radius: 50%; line-height: 1; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button.wide { width: 100%; }
input, select { color: var(--text); }
input { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface-alt); border-radius: 14px; appearance: none; }
input:focus { border-color: var(--accent); }
input::placeholder { color: var(--muted); opacity: 1; }
select { padding: 8px; border: 0; background: var(--surface-alt); border-radius: 10px; max-width: 145px; }
label { display: grid; gap: 8px; font-weight: 550; }
label.search { margin-bottom: 20px; }
label.search input { background: var(--surface); border: 0; padding-left: 18px; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.muted, .section-note { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 0 0 24px; }
.eyebrow { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.7px; font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.grouped-list { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.section-note { font-size: 13px; line-height: 1.6; margin: 18px 4px; max-width: 600px; }
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.inline-icon { width: 18px; height: 18px; display: inline-block; vertical-align: -.2em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-head { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; height: calc(70px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); margin: 0 -20px; padding-left: 20px; padding-right: 20px; background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 20px; font-weight: 750; letter-spacing: -.6px; }
.brand img { border-radius: 10px; }
.avatar, button.avatar { border-radius: 50%; width: 40px; height: 40px; min-height: 40px; padding: 0; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 750; flex-shrink: 0; }
#compact-title { position: absolute; left: 50%; transform: translateX(-50%) translateY(5px); opacity: 0; font-weight: 700; transition: opacity 180ms, transform 180ms; pointer-events: none; }
.scrolled #compact-title { opacity: 1; transform: translateX(-50%) translateY(0); }
.page-heading { padding: 23px 2px 27px; }
.page-heading h1 { transform-origin: left center; transition: transform 180ms; }
.scrolled .page-heading h1 { transform: scale(.87); }
#screen-description { font-size: 15px; }
#navigation { position: fixed; left: 0; bottom: 0; right: 0; z-index: 12; display: flex; justify-content: space-around; background: var(--bg); border-top: 1px solid var(--line); padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); overscroll-behavior: none; }
#navigation button { display: flex; flex: 1 1 0; gap: 3px; align-items: center; flex-direction: column; min-height: 50px; padding: 4px 2px; font-size: 10px; font-weight: 600; color: var(--muted); background: transparent; border-radius: 12px; }
#navigation .icon { width: 25px; height: 25px; }
#navigation .selected { color: var(--accent); }
#navigation .selected .icon { stroke-width: 2; }
body[data-view="dashboard"] main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
body[data-view="dashboard"] footer { display: none; }
.connection { margin-bottom: 20px; padding: 12px 16px; border-radius: 14px; background: var(--yellow-bg); color: var(--yellow); font-size: 13px; }
.group-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px 12px; }
.group-heading h2 { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.phone-group + .phone-group { margin-top: 10px; }
.phone-head { display: flex; gap: 13px; align-items: center; margin-bottom: 22px; }
.phone-head h3 { font-size: 22px; font-weight: 700; }
.phone-head .small { margin-top: 4px; }
.device-icon { width: 29px; height: 41px; color: var(--accent); }
.phone { padding: 22px; }
.track { list-style: none; display: flex; margin: 0 0 20px; padding: 0; gap: 5px; counter-reset: track; }
.track li { position: relative; padding-top: 10px; flex: 1 1 0; font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; }
.track li::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--line); border-radius: 3px; }
.track li.past::before { background: var(--green); }
.track li.now::before { background: var(--accent); }
.track li.now { color: var(--accent); font-weight: 650; }
.track.failed li.now, .track.failed li.now::before { color: var(--red); }
.track.failed li.now::before { background: var(--red); }
.phone-status { position: relative; padding-right: 0; min-height: 34px; }
.phone-status:has(.progress-ring) { padding-right: 82px; min-height: 74px; }
.phone-hint { font-size: 14px; margin-top: 12px; line-height: 1.6; white-space: pre-line; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 8px; font-size: 11px; font-weight: 650; line-height: 1.25; background: var(--surface-alt); color: var(--muted); }
.badge.on { background: var(--green-bg); color: var(--green); }
.badge.warning { background: var(--yellow-bg); color: var(--yellow); }
.badge.danger { background: var(--red-bg); color: var(--red); }
.error-text, .expiry.danger { color: var(--red); }
.error-text { font-size: 14px; margin-top: 10px; overflow-wrap: anywhere; }
.expiry.warning { color: var(--yellow); }
.expiry.neutral { color: var(--muted); }
.progress-ring { --progress: 0%; position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: conic-gradient(var(--accent) var(--progress), var(--line) 0); isolation: isolate; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.progress-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); z-index: -1; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.phone .actions > button:last-child { flex: 1; }
.app-list { list-style: none; padding: 10px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.app-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 13px; }
.app-list b { font-weight: 550; overflow-wrap: anywhere; }
.expiry { font-size: 11px; white-space: nowrap; }
.catalog-app, .install-row { display: flex; align-items: center; gap: 14px; padding: 20px; }
.catalog-app + .catalog-app, .install-row + .install-row { border-top: 1px solid var(--line); }
.catalog-app > button { border-radius: 20px; padding: 8px 12px; font-size: 13px; min-height: 38px; flex-shrink: 0; }
.row-content { min-width: 0; flex: 1; }
.row-content h3 { overflow-wrap: anywhere; }
.row-content p { margin-top: 4px; }
.row-content .badge { margin-top: 8px; }
.app-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 15px; object-fit: cover; background: hsl(var(--icon-hue, 233), 52%, 53%); color: #fff; font-size: 26px; font-weight: 650; }
.box-head { display: flex; align-items: center; gap: 10px; }
.box-head > .icon { color: var(--accent); }
.box-head h3 { flex: 1; }
.fingerprint { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: 14px; background: var(--surface-alt); }
.log { max-height: 230px; overflow: auto; overscroll-behavior: contain; background: var(--surface-alt); padding: 14px; border-radius: 12px; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 12px; }
.log time { color: var(--muted); margin-right: 8px; }
summary { cursor: pointer; font-size: 14px; padding: 4px 0; min-height: 30px; font-weight: 550; }
details > p { margin-top: 12px; font-size: 14px; }
.limits { margin: 18px 0; padding: 17px; }
.limits summary { font-size: 13px; }
.limits ul { color: var(--muted); font-size: 13px; padding-left: 18px; line-height: 1.8; margin-bottom: 0; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 22px; min-height: 180px; text-align: center; background: var(--surface); border-radius: var(--radius); gap: 16px; }
.empty p { color: var(--muted); max-width: 290px; font-size: 14px; line-height: 1.65; }
.empty-icon { width: 42px; height: 42px; stroke-width: 1.1; color: var(--accent); }
.skeleton { height: 170px; border-radius: var(--radius); margin-bottom: 16px; background: var(--surface); overflow: hidden; position: relative; }
.skeleton::after { content: ''; position: absolute; inset: 22px; border-radius: 14px; background: linear-gradient(100deg,var(--surface-alt) 20%,var(--surface) 45%,var(--surface-alt) 70%); background-size: 240% 100%; animation: shimmer 1.8s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.narrow { max-width: 480px; margin: 0 auto; padding-top: 28px; }
#login-view { padding-top: 36px; }
.welcome-mark { margin-bottom: 28px; }
.welcome-mark img { border-radius: 27px; }
#login-view h1 { margin: 13px 0 18px; font-size: clamp(38px, 8vw, 52px); letter-spacing: -1.8px; }
#login-passkey { min-height: 56px; margin: 6px 0 12px; }
.welcome-steps { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.welcome-steps li { display: flex; align-items: center; gap: 14px; }
.welcome-steps li > span { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); width: 34px; height: 34px; border-radius: 11px; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.welcome-steps b { font-size: 14px; font-weight: 600; }
.welcome-steps p { margin-top: 3px; }
.onboarding-steps { display: flex; justify-content: space-between; gap: 6px; padding: 0; margin: 0 0 30px; list-style: none; font-size: 11px; color: var(--muted); }
.onboarding-steps li { background: var(--surface); padding: 9px 10px; border-radius: 12px; flex: 1; text-align: center; white-space: nowrap; }
.onboarding-steps .current { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
#box-view > .card { margin-top: 20px; }
#box-fingerprint { display: block; margin-top: 6px; }
#box-view > .small { margin: 14px 4px 24px; }
#apple-panel { margin-bottom: calc(20px + env(safe-area-inset-bottom)); }
#apple-form { gap: 20px; margin-top: 8px; }
#apple-submit { margin-top: 8px; }
#box-passkey { font-size: 13px; }
#apple-code { font-size: 28px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
#code-form, #job-view > .card { margin-top: 20px; }
#job-back { width: 100%; margin-top: 18px; }
.status { background: var(--accent-soft); color: var(--accent); padding: 16px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.status.error { background: var(--red-bg); color: var(--red); font-weight: 600; }
.status.done { background: var(--green-bg); color: var(--green); }
.status.attention { background: var(--yellow-bg); color: var(--yellow); }
footer { margin: 36px 0 14px; text-align: center; font-size: 11px; color: var(--muted); }
.install-card { position: relative; max-width: 600px; margin: 10px auto 8px; display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 18px; padding: 16px 44px 16px 16px; }
.install-card > img { border-radius: 13px; flex-shrink: 0; }
.install-card b { display: block; font-size: 13px; }
.install-card p { margin-top: 5px; font-size: 12px; }
.install-card > .icon-button { position: absolute; top: 6px; right: 6px; background: transparent; width: 30px; min-height: 30px; height: 30px; }
.toast { position: fixed; z-index: 100; display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); max-width: 520px; bottom: calc(88px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 14px 16px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); font-size: 13px; animation: toast-in 180ms ease-out; }
.toast > span { flex: 1; }
.toast > .text-button { flex-shrink: 0; font-size: 13px; }
.toast .icon-button { width: 28px; height: 28px; min-height: 28px; flex-basis: 28px; font-size: 20px; }
#update-toast { bottom: auto; top: calc(78px + env(safe-area-inset-top)); }
body:not([data-view="dashboard"]) .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
@keyframes toast-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
body.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: auto 0 0; margin: auto auto 0; border: 0; background: var(--surface); color: var(--text); width: 100%; max-width: 600px; max-height: calc(94dvh - env(safe-area-inset-top)); border-radius: 28px 28px 0 0; padding: 12px max(22px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow); }
.sheet[open] { animation: sheet-in 220ms ease-out; }
.sheet::backdrop { background: #080f2b66; }
@keyframes sheet-in { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sheet-handle { width: 100%; height: 18px; margin: 0 auto 8px; position: relative; touch-action: none; }
.sheet-handle::after { content: ''; width: 36px; height: 5px; border-radius: 4px; position: absolute; left: calc(50% - 18px); top: 1px; background: var(--muted); opacity: .4; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; touch-action: pan-x; }
.dialog-head h2 { font-size: 23px; letter-spacing: -.6px; }
#catalog-target { margin: -8px 0 20px; }
#catalog .search input { background: var(--surface-alt); }
#catalog-apps { gap: 0; }
#catalog .catalog-app { padding: 18px 0; }
#catalog .app-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 13px; }
#confirmation h2 { margin: 6px 0 12px; }
#confirmation-message { margin-bottom: 24px; }
#confirmation-actions { gap: 10px; }
.selected-app, .profile-identity { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.profile-identity { margin-bottom: 24px; }
.profile-identity .avatar { width: 56px; height: 56px; font-size: 19px; }
.profile-identity p { margin-top: 4px; overflow-wrap: anywhere; }
.profile-settings { background: var(--surface-alt); }
.settings-row { padding: 17px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.settings-row > div { min-width: 0; }
.settings-row .text-button { flex: 0 0 95px; text-align: right; font-size: 13px; }
.settings-row p { margin-top: 5px; }
button.switch { min-width: 48px; width: 48px; height: 29px; min-height: 29px; border-radius: 20px; padding: 0; background: var(--muted); position: relative; flex-shrink: 0; }
button.switch::before { content: ''; position: absolute; width: 23px; height: 23px; border-radius: 50%; top: 3px; left: 3px; background: #fff; transition: transform 180ms; }
button.switch[aria-checked="true"] { background: var(--green); }
button.switch[aria-checked="true"]::before { transform: translateX(19px); }
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .site-head, #navigation { background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
  .sheet::backdrop { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
}
@media (min-width: 600px) {
  main { padding-left: 32px; padding-right: 32px; }
  .site-head { padding-left: 32px; padding-right: 32px; margin: 0 -32px; }
  #phones > .phone-group > .stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .sheet { border-radius: 28px 28px 0 0; }
}
@media (min-width: 900px) {
  body[data-view="dashboard"] main { max-width: 1252px; padding-left: 260px; padding-right: 32px; padding-bottom: 40px; }
  body[data-view="dashboard"] .site-head { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  body[data-view="dashboard"] .brand { opacity: 0; pointer-events: none; }
  body[data-view="dashboard"] #navigation { top: 0; bottom: 0; right: auto; width: 228px; padding: calc(112px + env(safe-area-inset-top)) 18px 24px; flex-direction: column; justify-content: flex-start; gap: 8px; border-top: 0; border-right: 1px solid var(--line); }
  #navigation::before { content: 'iBox'; position: absolute; top: calc(36px + env(safe-area-inset-top)); left: 28px; font-size: 28px; letter-spacing: -1px; font-weight: 750; }
  #navigation button { flex: 0 0 auto; flex-direction: row; gap: 14px; padding: 13px 16px; font-size: 14px; border-radius: 14px; }
  #navigation button.selected { background: var(--accent-soft); }
  #compact-title { display: none; }
  .page-heading { padding-top: 16px; }
  .page-heading h1 { font-size: 40px; }
  .toast { bottom: 30px; }
  .sheet { max-width: 540px; bottom: 32px; border-radius: 26px; max-height: calc(90dvh - 50px); }
  #install-card { margin-bottom: 20px; }
}
@media (max-width: 360px) {
  .card, .phone { padding: 17px; }
  .catalog-app, .install-row { padding: 16px; gap: 10px; }
  .catalog-app .app-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .catalog-app > button { padding: 8px 10px; }
  .onboarding-steps li { padding: 9px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 899px) {
  body[data-view="box"] main, body[data-view="job"] main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  #apple-submit, #code-form > button { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: calc(100% - 40px); max-width: 480px; }
  #apple-submit:active:not(:disabled), #code-form > button:active:not(:disabled) { transform: translateX(-50%) scale(.98); }
  #apple-form { padding-bottom: 12px; }
}
.sheet .toast { position: sticky; bottom: 0; left: auto; transform: none; width: 100%; margin-top: 16px; }
/* Обновления и установка по воздуху. */
.install-row { align-items: flex-start; }
.install-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.install-title h3 { padding-top: 4px; }
button.app-menu { flex-basis: 32px; width: 32px; height: 32px; min-height: 32px; font-size: 22px; background: transparent; }
.install-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.install-badges .badge { margin: 0; }
.badge.update-badge { background: var(--accent-soft); color: var(--accent); }
.install-row .row-content > button { margin-top: 14px; width: 100%; }
.ota-status { padding: 12px 14px; margin-top: 14px; border-radius: 14px; background: var(--surface-alt); font-size: 13px; }
.ota-status b { color: var(--accent); font-weight: 600; }
.ota-offer { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--accent-soft); }
.ota-offer p { margin: 0; }
.primary-link { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 14px; text-align: center; border-radius: 13px; background: var(--accent); color: var(--button-text); font-size: 15px; font-weight: 650; touch-action: manipulation; transition: opacity 180ms, transform 180ms; }
.primary-link:active { transform: scale(.98); opacity: .8; }
a[aria-disabled="true"] { opacity: .45; cursor: default; }
.safari-link { text-decoration: underline; text-underline-offset: 3px; line-height: 1.6; }
@media (max-width: 360px) {
  .install-row > .app-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; }
  .ota-offer { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary-link { transition: none; }
}
