:root {
  --bg: #f5f5f7;
  --panel: rgba(255,255,255,.84);
  --solid: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29,29,31,.1);
  --shadow: 0 18px 54px rgba(20,20,24,.11);
  --mint: #bdf5e4;
  --coral: #ffd1c8;
  --blue: #b9e6ff;
  --accent: #147ce5;
  --danger: #d70015;
  --composer-height: 56px;
}

html[data-theme="dark"] {
  --bg: #050507;
  --panel: rgba(28,28,30,.82);
  --solid: #1c1c1e;
  --ink: #f5f5f7;
  --muted: #98989d;
  --line: rgba(255,255,255,.12);
  --shadow: 0 22px 65px rgba(0,0,0,.44);
  --mint: #164d40;
  --coral: #63362f;
  --blue: #153f5a;
  --accent: #64d2ff;
  --danger: #ff6961;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0a0a0c; }
body { color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:active { transform: scale(.982); }
.hidden { display: none !important; }

.device {
  position: relative;
  width: min(430px, 100%);
  height: min(932px, 100svh);
  min-height: 720px;
  margin: max(0px, calc((100svh - 932px)/2)) auto 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 46px;
  background: var(--bg);
  box-shadow: 0 35px 100px rgba(0,0,0,.46);
  transition: background .35s ease;
}

.splash { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; background: #050507; transition: opacity .65s ease, visibility .65s ease; }
.splash.done { opacity: 0; visibility: hidden; }

.auth { height: 100%; overflow-y: auto; padding: max(78px, env(safe-area-inset-top)) 24px 40px; background: radial-gradient(circle at 70% 5%, rgba(80,220,255,.18), transparent 30%), var(--bg); }
.auth-brand { margin-bottom: 34px; }
.auth-brand img { display: block; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 50%; object-fit: cover; }
.auth-brand span { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.auth-brand h1 { margin: 8px 0 0; font-size: clamp(34px, 10vw, 48px); line-height: .98; letter-spacing: 0; }
.auth-card { padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.offline-screen { display: grid; align-content: center; justify-items: center; height: 100%; padding: 28px; color: var(--ink); background: var(--bg); text-align: center; }
.offline-screen img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.offline-screen span { margin-top: 20px; color: var(--muted); font-size: 12px; font-weight: 750; }
.offline-screen h1 { margin: 8px 0 26px; font-size: 38px; letter-spacing: 0; }

.segment { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; padding: 4px; border-radius: 13px; background: rgba(118,118,128,.12); }
.segment button { min-height: 36px; border: 0; border-radius: 10px; background: transparent; font-weight: 650; }
.segment button.active { background: var(--solid); box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.stack { display: grid; gap: 13px; margin-top: 18px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--ink); background: var(--solid); }
input, select { min-height: 48px; padding: 0 14px; }
textarea { min-height: 96px; padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 17%, transparent); }
.check { display: flex; grid-template: none; align-items: flex-start; gap: 9px; line-height: 1.45; }
.check input { width: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.occupations { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.occupations button { flex: 0 0 auto; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 19px; background: var(--solid); }
.occupations button.active { color: #fff; border-color: #1d1d1f; background: #1d1d1f; }
.text-button { width: 100%; margin-top: 14px; border: 0; color: var(--accent); background: transparent; font-size: 13px; }
.error { min-height: 18px; margin: 8px 2px 0; color: var(--danger); font-size: 12px; }

.shell { height: 100%; }
.topbar { position: absolute; inset: 0 0 auto; z-index: 12; display: flex; align-items: center; justify-content: space-between; height: 84px; padding: max(22px, env(safe-area-inset-top)) 20px 9px; background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: saturate(150%) blur(22px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.brand strong, .brand span { display: block; white-space: nowrap; }
.brand strong { font-size: 12px; letter-spacing: 0; }
.brand span { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 0; }
.connection-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #30d158; box-shadow: 0 0 8px rgba(48,209,88,.5); vertical-align: 0; }
.connection-dot.offline { background: var(--muted); box-shadow: none; }
.avatar-button { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #fff; background: #1d1d1f; font-size: 15px; font-weight: 750; }

.content { height: 100%; overflow-y: auto; padding: 99px 18px calc(100px + env(safe-area-inset-bottom)); scrollbar-width: none; scroll-behavior: smooth; }
.content::-webkit-scrollbar { display: none; }
.page { display: none; animation: pageIn .34s ease both; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.page-title { margin: 10px 2px 24px; }
.page-title span, .kicker { display: block; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0; }
.page-title h1 { margin: 4px 0 0; font-size: 40px; line-height: 1; letter-spacing: 0; }
.page-title.compact { display: grid; grid-template-columns: 1fr auto; align-items: end; }
.page-title.compact span { grid-column: 1; }
.page-title.compact h1 { grid-column: 1; }
.page-title.compact small { grid-column: 2; grid-row: 1 / span 2; padding-bottom: 3px; color: var(--muted); font-size: 10px; }
.web-mode { grid-column: 2; grid-row: 1 / span 2; align-self: end; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 17px; color: var(--muted); background: var(--solid); font-size: 12px; font-weight: 700; }
.web-mode b { margin-right: 3px; font-size: 15px; }
.web-mode.active { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 8px 24px color-mix(in srgb,var(--accent) 28%,transparent); }
.web-mode.automatic { color: var(--accent); border-color: color-mix(in srgb,var(--accent) 32%,var(--line)); background: color-mix(in srgb,var(--accent) 9%,var(--solid)); }
.web-mode:disabled { opacity: .38; }

.feature-card { position: relative; display: block; width: 100%; min-height: 238px; padding: 26px; overflow: hidden; border: 0; border-radius: 26px; text-align: left; background: var(--solid); box-shadow: var(--shadow); }
.feature-card::before { position: absolute; content: "Z"; right: -8px; bottom: -52px; color: rgba(255,255,255,.06); font-size: 230px; font-weight: 800; line-height: 1; }
.feature-dark { color: #fff; background: radial-gradient(circle at 80% 75%, #184b63, transparent 45%), linear-gradient(140deg,#111216,#262c31); }
.feature-card h2 { position: relative; max-width: 290px; margin: 22px 0 9px; font-size: 35px; line-height: 1.04; letter-spacing: 0; }
.feature-card p { position: relative; max-width: 290px; margin: 0; color: rgba(255,255,255,.64); font-size: 14px; line-height: 1.55; }
.circle-action { position: absolute; right: 22px; bottom: 22px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #111; background: #fff; font-size: 22px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.action-tile { display: grid; align-content: space-between; min-height: 132px; padding: 18px; border: 0; border-radius: 22px; text-align: left; }
.action-tile span { font-size: 12px; font-weight: 650; opacity: .62; }
.action-tile strong { font-size: 20px; line-height: 1.05; }
.mint { background: var(--mint); }
.coral { background: var(--coral); }
.section-block { margin-top: 32px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.section-title h2 { margin: 0; font-size: 21px; }
.section-title button { border: 0; color: var(--accent); background: transparent; font-size: 13px; }
.horizontal { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mini-skill { flex: 0 0 178px; min-height: 126px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: var(--solid); text-align: left; scroll-snap-align: start; }
.mini-skill b, .mini-skill span { display: block; }
.mini-skill b { margin-top: 20px; font-size: 17px; }
.mini-skill span { color: var(--muted); font-size: 11px; }
.empty { padding: 22px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: var(--panel); font-size: 13px; }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 14px 15px; border-radius: 16px; color: #19211f; background: var(--mint); }
.notice span { font-size: 13px; font-weight: 650; }
.notice button { flex: 0 0 auto; border: 0; color: #fff; border-radius: 17px; background: #1d1d1f; min-height: 34px; padding: 0 12px; }
.inbox { display: grid; gap: 10px; margin-bottom: 14px; }
.inbox-card { position: relative; padding: 17px 46px 17px 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--solid); box-shadow: 0 8px 25px rgba(0,0,0,.05); }
.inbox-card h3 { margin: 0 0 5px; font-size: 17px; }
.inbox-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.inbox-card > button { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg); }
.inbox-card .card-actions { padding-right: 0; }
.proactive-card { border-color: color-mix(in srgb,var(--accent) 22%,var(--line)); background: color-mix(in srgb,var(--accent) 5%,var(--solid)); }

.chat-page { min-height: calc(100% - 10px); }
.messages { display: grid; gap: 14px; padding-bottom: calc(var(--composer-height) + 112px + env(safe-area-inset-bottom)); }
.messages > :last-child { scroll-margin-bottom: calc(var(--composer-height) + 112px + env(safe-area-inset-bottom)); }
.message-wrap { display: grid; max-width: 94%; gap: 8px; align-items: end; }
.message-wrap.user { grid-template-columns: minmax(0,1fr) 28px; justify-self: end; }
.message-wrap.assistant { grid-template-columns: 28px minmax(0,1fr); justify-self: start; }
.message-stack { min-width: 0; }
.chat-avatar { display: grid; width: 28px; height: 28px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: #1d1d1f; font-size: 11px; font-weight: 750; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-avatar.thinking { animation: avatarThink 1.5s ease-in-out infinite; }
@keyframes avatarThink { 50% { box-shadow: 0 0 0 6px color-mix(in srgb,var(--accent) 10%,transparent); } }
.message { max-width: 100%; padding: 13px 15px; border-radius: 19px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user { justify-self: end; color: #fff; border-bottom-right-radius: 6px; background: #1d1d1f; }
.message.assistant { justify-self: start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: var(--solid); }
.message.pending { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.message.pending i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: pendingDot .9s ease-in-out infinite; }
.message.pending i:nth-of-type(2) { animation-delay: .14s; }
.message.pending i:nth-of-type(3) { animation-delay: .28s; }
@keyframes pendingDot { 50% { opacity: .2; transform: translateY(-3px); } }
.speak-button { margin: 5px 3px 0; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 10px; }
.retry-message { align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 12px 13px; border: 1px solid color-mix(in srgb,var(--danger) 35%,var(--line)); border-radius: 18px; color: var(--muted); background: var(--solid); font-size: 12px; line-height: 1.4; }
.retry-message button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 16px; color: #fff; background: #1d1d1f; font-weight: 700; }
.message-sources { display: grid; gap: 5px; margin-top: 8px; padding: 0 3px; }
.message-sources > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.message-sources a { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 6px; color: var(--muted); font-size: 11px; line-height: 1.3; text-decoration: none; }
.message-sources a b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--solid); font-size: 9px; }
.composer { position: absolute; z-index: 9; left: 18px; right: 18px; bottom: calc(78px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 9px; padding: 7px; border: 1px solid var(--line); border-radius: 24px; background: color-mix(in srgb,var(--solid) 93%,transparent); box-shadow: 0 12px 40px rgba(0,0,0,.16); backdrop-filter: blur(22px); }
.composer textarea { width: auto; min-width: 0; min-height: 40px; max-height: 130px; flex: 1 1 auto; padding: 10px 5px; border: 0; background: transparent; resize: none; box-shadow: none; }
.composer button { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #fff; background: #1d1d1f; font-size: 20px; }
.composer button:disabled { opacity: .35; }
.composer .composer-tool { color: var(--ink); background: var(--bg); font-size: 23px; font-weight: 300; }
.voice-button svg { display: block; width: 21px; height: 21px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.segment.wide { margin-bottom: 18px; }
.skill-create { min-height: 154px; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg,#25262a,#111); }
.skill-create h2 { margin: 17px 0 0; font-size: 27px; }
.skill-create i { position: absolute; right: 22px; bottom: 17px; font-size: 38px; font-style: normal; font-weight: 250; }
.list { display: grid; gap: 10px; }
.list-card { padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: var(--solid); }
.list-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.list-card h3 { margin: 0; font-size: 17px; }
.list-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 12px; color: var(--muted); background: var(--bg); font-size: 10px; font-weight: 700; }
.card-actions { display: flex; gap: 7px; margin-top: 14px; }
.card-actions button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--bg); font-size: 12px; }
.card-actions button.primary { color: #fff; border-color: #1d1d1f; background: #1d1d1f; }
.skill-publication { display: inline-flex; align-items: center; min-height: 25px; margin-top: 11px; padding: 0 9px; border-radius: 13px; color: var(--muted); background: var(--bg); font-size: 10px; font-weight: 700; }
.skill-publication.approved { color: #08754e; background: color-mix(in srgb,#30d158 15%,var(--solid)); }
.skill-publication.pending { color: #8a5a00; background: color-mix(in srgb,#ffcc00 16%,var(--solid)); }
.skill-mode { display: inline-flex; align-items: center; min-height: 25px; margin-top: 11px; padding: 0 9px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); font-size: 10px; font-weight: 700; }
html[data-theme="dark"] .skill-publication.approved { color: #6ee7ac; }
html[data-theme="dark"] .skill-publication.pending { color: #ffd65a; }

.profile-head { display: flex; align-items: center; gap: 16px; margin: 16px 2px 26px; }
.profile-orb { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#34363a,#08080a); font-size: 26px; font-weight: 750; }
.profile-head h1 { margin: 0; font-size: 30px; }
.profile-head p { margin: 4px 0 0; color: var(--muted); }
.points-card { min-height: 148px; margin-bottom: 20px; padding: 22px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 90% 20%,rgba(100,210,255,.55),transparent 36%),#17181b; }
.points-card span, .points-card strong { display: block; }
.points-card span { color: rgba(255,255,255,.62); font-size: 12px; }
.points-card strong { margin: 10px 0 22px; font-size: 40px; }
.points-card small { color: rgba(255,255,255,.55); }
.settings-group { overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--solid); }
.settings-group button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.settings-group button:last-child { border-bottom: 0; }
.settings-group i { color: var(--muted); font-size: 23px; font-style: normal; font-weight: 300; }

.button { display: inline-grid; min-height: 48px; padding: 0 18px; place-items: center; border: 1px solid var(--line); border-radius: 24px; color: inherit; font-weight: 700; text-decoration: none; background: var(--solid); }
.button.primary { color: #fff; border-color: #1d1d1f; background: #1d1d1f; }
html[data-theme="dark"] .button.primary, html[data-theme="dark"] .card-actions button.primary { color: #111; border-color: #f5f5f7; background: #f5f5f7; }
.button.quiet { color: var(--danger); }
.button.full { width: 100%; }
.button:disabled { opacity: .35; }
.form-grid { display: grid; gap: 13px; }
.skill-editor textarea { min-height: 150px; }
.inline-error { min-height: 18px; color: var(--danger); font-size: 12px; line-height: 1.4; }
.form-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; margin-top: 18px; }
.web-consent-actions { grid-template-columns: .9fr .9fr 1.2fr; }
.web-consent-actions .button { min-width: 0; padding: 0 9px; font-size: 12px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 58px; border-bottom: 1px solid var(--line); }
.toggle-row div { min-width: 0; }
.toggle-row strong, .toggle-row span { display: block; }
.toggle-row span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.switch { position: relative; width: 50px; height: 30px; flex: 0 0 auto; border: 0; border-radius: 15px; background: #d1d1d6; }
.switch::after { position: absolute; left: 2px; top: 2px; width: 26px; height: 26px; border-radius: 50%; content: ""; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .22s ease; }
.switch.on { background: #30d158; }
.switch.on::after { transform: translateX(20px); }
.policy { max-height: 55svh; overflow-y: auto; color: var(--muted); font-size: 13px; line-height: 1.6; }
.policy h3 { color: var(--ink); }
.warning { padding: 13px; border-radius: 13px; color: #7a4900; background: #fff1d2; font-size: 12px; line-height: 1.5; }
html[data-theme="dark"] .warning { color: #ffd88a; background: #3c2c0e; }

.tabbar { position: absolute; z-index: 11; inset: auto 0 0; display: grid; grid-template-columns: repeat(4,1fr); height: calc(76px + env(safe-area-inset-bottom)); padding: 9px 12px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: color-mix(in srgb,var(--bg) 78%,transparent); backdrop-filter: saturate(160%) blur(24px); }
.tabbar button { display: grid; place-items: center; align-content: center; gap: 2px; border: 0; color: var(--muted); background: transparent; font-size: 10px; }
.tabbar b { font-size: 21px; font-weight: 500; line-height: 1; }
.tabbar button.active { color: var(--ink); font-weight: 700; }

.backdrop { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.25); backdrop-filter: blur(4px); animation: fade .24s ease; }
.sheet { position: absolute; z-index: 41; left: 8px; right: 8px; bottom: 8px; max-height: calc(100% - 34px); overflow-y: auto; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 28px; background: var(--solid); box-shadow: 0 30px 90px rgba(0,0,0,.3); transform: translateY(calc(100% + 20px)); transform-origin: 50% 100%; transition: none; }
.sheet.open { animation: sheetSettle .9s cubic-bezier(.18,.84,.16,1) both; }
@keyframes sheetSettle { 0% { transform: translateY(calc(100% + 20px)) scale(.98); } 27% { transform: translateY(-9px) scale(1.008); } 100% { transform: translateY(0) scale(1); } }
@keyframes fade { from { opacity: 0; } }
.grabber { width: 36px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: var(--line); }
.sheet h2 { margin: 0 0 7px; font-size: 28px; }
.sheet .lead { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.sheet-section { padding: 16px 0; border-top: 1px solid var(--line); }
.sheet-section:first-of-type { border-top: 0; }
.sheet-section h3 { margin: 0 0 6px; font-size: 17px; }
.sheet-section p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.media-choices { display: grid; gap: 10px; }
.media-choices button { display: grid; grid-template-columns: 1fr; gap: 4px; min-height: 78px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--bg); text-align: left; }
.media-choices b { font-size: 17px; }
.media-choices span { color: var(--muted); font-size: 12px; }
.photo-preview { width: 100%; max-height: 42svh; margin-bottom: 18px; overflow: hidden; border-radius: 18px; background: var(--bg); }
.photo-preview img { display: block; width: 100%; max-height: 42svh; object-fit: contain; }
.recording-panel { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; }
.recording-pulse { width: 58px; height: 58px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 color-mix(in srgb,var(--danger) 25%,transparent); animation: recording 1.4s ease-out infinite; }
.recording-panel time { color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes recording { 70% { box-shadow: 0 0 0 20px transparent; } }
.install-status { display: grid; justify-items: center; gap: 10px; padding: 22px 12px 26px; text-align: center; }
.install-status img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.install-status strong { font-size: 20px; }
.install-status span { max-width: 280px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.install-steps { display: grid; gap: 1px; overflow: hidden; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.install-step { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; min-height: 58px; padding: 10px 14px; background: var(--solid); }
.install-step b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: #1d1d1f; font-size: 12px; }
.install-step span { color: var(--ink); font-size: 14px; line-height: 1.4; }
.toast { position: absolute; z-index: 60; left: 50%; bottom: calc(95px + env(safe-area-inset-bottom)); max-width: calc(100% - 40px); padding: 10px 14px; border-radius: 20px; color: #fff; background: rgba(25,25,27,.9); opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: .25s ease; font-size: 12px; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 470px) {
  .device { width: 100%; height: 100svh; min-height: 100svh; margin: 0; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
