:root {
  color-scheme: light;
  --outer: #e9e9ee;
  --bg: #f2f2f7;
  --grouped-bg: #ffffff;
  --surface: #ffffff;
  --fill: #f2f2f7;
  --fill-pressed: #e5e5ea;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --hairline: #e5e5ea;
  --accent: #0a6cff;
  --accent-deep: #0050d8;
  --accent-soft: #e8f1ff;
  --accent-contrast: #ffffff;
  --green: #138a4a;
  --green-soft: #e6f6ec;
  --amber: #f59e0b;
  --amber-ink: #a15c00;
  --amber-soft: #fff4df;
  --danger: #d70015;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 0 rgba(0, 0, 0, .02);
  --backdrop: rgba(0, 0, 0, .34);
  --radius: 12px;
  --page-x: 20px;
  --ease-native: cubic-bezier(.22, .8, .24, 1);
  --ink: var(--text);
  --muted: var(--secondary);
  --line: var(--hairline);
  --card: var(--surface);
  --red: var(--danger);
}

* { box-sizing: border-box; }
html {
  min-width: 320px;
  background: var(--outer);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
  overscroll-behavior: none;
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
}
html::-webkit-scrollbar, body::-webkit-scrollbar, dialog::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--outer);
  overscroll-behavior: none;
}
button, input { font: inherit; }
button, .tab, .nav-action {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--text); }
h1 { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.012em; }
h3 { margin: 0; font-size: 17px; line-height: 1.28; font-weight: 600; }
.hidden { display: none !important; }

.app-shell, .boot, .signin {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}
.app-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.screen { display: none; min-height: 100dvh; padding: 0 var(--page-x) calc(40px + env(safe-area-inset-bottom)); }
.screen.active { display: block; animation: screen-in 180ms var(--ease-native); }
.screen-body { width: 100%; }
@keyframes screen-in { from { opacity: .65; transform: translateX(5px); } }

.boot { padding: calc(env(safe-area-inset-top) + 10px) var(--page-x) 100px; overflow: hidden; }
.skeleton-nav { height: 44px; border-bottom: 1px solid transparent; }
.skeleton-title, .skeleton-label, .skeleton-list span {
  background: var(--fill);
  animation: skeleton-pulse 1.1s ease-in-out infinite alternate;
}
.skeleton-title { width: 68%; height: 38px; margin: 24px 0 44px; border-radius: 9px; }
.skeleton-section { margin-top: 30px; }
.skeleton-label { width: 42%; height: 20px; margin-bottom: 10px; border-radius: 6px; }
.skeleton-label.short { width: 30%; }
.skeleton-list { overflow: hidden; border-radius: var(--radius); }
.skeleton-list span { display: block; height: 54px; border-top: 1px solid var(--bg); }
.skeleton-list span:first-child { border-top: 0; }
.skeleton-list.two span { height: 64px; }
@keyframes skeleton-pulse { to { opacity: .46; } }

.signin { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: calc(32px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.signin-card { width: 100%; align-self: center; }
.brand-lockup { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 34px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.brand-symbol { width: 42px; height: 42px; }
.brand-symbol rect { fill: var(--accent); stroke: none; }
.brand-symbol path { fill: none; stroke: var(--accent-contrast); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.signin h1 { max-width: 330px; margin: 0 auto 34px; font-size: 32px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 12px; background: var(--accent); color: var(--accent-contrast); font-size: 24px; font-weight: 700; }
.brand-mark.large { width: 60px; height: 60px; font-size: 30px; }
.signin-copy { max-width: 310px; margin: 14px auto 26px; color: var(--secondary); font-size: 17px; line-height: 1.45; }
.telegram-slot { min-height: 50px; display: flex; justify-content: center; align-items: center; }
.helper, .privacy-note { color: var(--secondary); font-size: 13px; line-height: 1.45; }
.helper { margin: 14px 0 0; }
.privacy-note { max-width: 310px; }

.demo-banner { padding: calc(7px + env(safe-area-inset-top)) 16px 7px; border-bottom: .5px solid var(--hairline); background: var(--grouped-bg); color: var(--secondary); text-align: center; font-size: 13px; line-height: 1.25; }
.native-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  height: calc(44px + env(safe-area-inset-top));
  margin: 0 calc(var(--page-x) * -1);
  padding: env(safe-area-inset-top) var(--page-x) 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: .5px solid transparent;
  transition: border-color 180ms ease;
}
.native-nav.collapsed { border-bottom-color: var(--hairline); }
.nav-title { grid-column: 2; justify-self: center; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transform: translateY(3px); font-size: 17px; font-weight: 600; transition: opacity 160ms ease, transform 160ms ease; }
.native-nav.collapsed .nav-title { opacity: 1; transform: none; }
.nav-action { grid-column: 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); text-decoration: none; }
.nav-action { border: 0; background: transparent; }
.nav-action:active { background: var(--fill); }
.nav-action svg, .icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.large-title { margin: 22px 0 34px; }

.pull-indicator { height: 0; display: grid; place-items: center; color: var(--secondary); transform: translateY(var(--pull-distance, 0)); opacity: 0; transition: opacity 120ms ease; }
.pull-indicator[style], .pull-indicator.refreshing { opacity: 1; }
.pull-indicator svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pull-indicator.ready svg { transform: rotate(180deg); }
.pull-indicator.refreshing svg { animation: spin 700ms linear infinite; }

.home-section { margin: 0 0 34px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.section-heading h2 { margin: 0; font-size: 20px; font-weight: 600; }
.section-heading > span { color: var(--secondary); font-size: 13px; }
.inset-list { overflow: hidden; border-radius: var(--radius); background: var(--grouped-bg); }
.native-row { min-height: 52px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-top: .5px solid var(--hairline); background: transparent; color: var(--text); text-align: left; font-size: 17px; line-height: 1.3; }
.native-row:first-child { border-top: 0; }
button.native-row:active { background: var(--fill-pressed); }
.row-label { min-width: 0; flex: 1; }
.row-value { color: var(--secondary); text-align: right; font-size: 15px; }
.row-secondary { display: block; margin-top: 3px; color: var(--secondary); font-size: 15px; line-height: 1.3; }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--text); }
.attention-item .row-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { flex: 0 0 auto; color: var(--secondary); font-size: 24px; font-weight: 300; line-height: 1; }
.summary-row { min-height: 48px; }
.summary-row .row-value { min-width: 28px; font-size: 17px; font-variant-numeric: tabular-nums; }
.schedule-row { min-height: 65px; }
.schedule-row .row-main { min-width: 0; flex: 1; }
.rule { align-items: flex-start; }
.rule .row-label { max-width: 46%; }
.rule-value { max-width: 54%; line-height: 1.35; }
.section-footnote, .quiet-empty { margin: 8px 14px 0; color: var(--secondary); font-size: 13px; line-height: 1.4; }
.quiet-empty { margin: 0 2px; font-size: 15px; }

.tab-bar {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  border-top: .5px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.tab { min-height: 52px; border: 0; display: grid; place-items: center; align-content: center; gap: 2px; background: transparent; color: var(--secondary); font-size: 10px; font-weight: 500; }
.tab.active { color: var(--accent); }
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab.active svg { stroke-width: 2.2; }

.family-list, .tool-list, .unavailable-list { display: block; }
.family-row { min-height: 70px; }
.family-row .row-main, .tool-row .row-main { min-width: 0; flex: 1; }
.row-status { flex: 0 0 auto; color: var(--secondary); font-size: 13px; }
.person-avatar, .site-badge { flex: 0 0 auto; }
.screen-section { margin-top: 34px; }
.tool-row { min-height: 68px; }
.tool-row.unavailable { opacity: .72; }
.site-badge.large { width: 58px; height: 58px; border-radius: 15px; font-size: 18px; }
.row-plus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--fill); font-size: 23px; font-weight: 300; }
.request-helper { margin: 8px 14px 0; color: var(--secondary); font-size: 13px; line-height: 1.4; }
.requested-row { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.requested-date { flex: 0 0 auto; color: var(--secondary); font-size: 13px; }

.detail-view {
  position: fixed;
  z-index: 14;
  inset: 0;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow-y: auto;
  background: var(--bg);
  transform: translateX(calc(100% + var(--detail-drag, 0px)));
  visibility: hidden;
  transition: transform 220ms var(--ease-native), visibility 220ms;
  scrollbar-width: none;
}
.detail-view.open { transform: translateX(var(--detail-drag, 0px)); visibility: visible; }
.detail-nav { position: sticky; top: 0; z-index: 2; height: calc(44px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0; display: grid; grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr); align-items: center; border-bottom: .5px solid var(--hairline); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.back-button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--accent); text-align: left; font-size: 17px; }
.back-button span { display: inline-block; margin-right: 3px; font-size: 30px; line-height: 0; vertical-align: -2px; }
.detail-nav-title { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.nav-placeholder { min-width: 88px; }
.detail-view-content { padding: 30px var(--page-x) calc(42px + env(safe-area-inset-bottom)); }
.tool-detail-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.tool-detail-hero h1 { font-size: 30px; }
.detail-section h2 { margin: 0 2px 10px; font-size: 20px; }
.detail-list .native-row { min-height: 50px; }
.capability-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.detail-value-row { align-items: flex-start; }
.detail-value-row .row-value { max-width: 62%; line-height: 1.35; }
.detail-actions { margin-top: 34px; }
.destructive-row { width: 100%; min-height: 52px; justify-content: center; border: 0; background: transparent; color: var(--danger); font-size: 17px; }
.destructive-row:active { background: var(--fill-pressed); }
.quiet-note { margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.45; }
body.detail-open { overflow: hidden; }
body.detail-open .tab-bar { opacity: 0; pointer-events: none; }

.settings-section { margin-bottom: 34px; }
.settings-identity { display: flex; align-items: center; gap: 14px; margin: 0 2px 22px; }
.settings-avatar { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 15px; font-size: 18px; }
.settings-list { display: block; }
.settings-row { min-height: 50px; }
.settings-value { max-width: 62%; overflow-wrap: anywhere; line-height: 1.35; }
.settings-link { color: var(--text); text-decoration: none; }
.row-svg, .status-svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.logout-section { margin-top: 56px; }

/* Shared compatibility rules retained for generated content and controls. */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: calc(18px + env(safe-area-inset-top)); margin-bottom: 24px; }
.page-header.stacked { display: block; }
.page-header h1 { font-size: 34px; }
.page-intro, .dialog-copy { color: var(--secondary); font-size: 15px; line-height: 1.45; }
.card { background: var(--grouped-bg); border-radius: var(--radius); }
.people-list, .login-list, .tool-list { display: grid; gap: 12px; }
.person-card, .tool-card, .login-card { border: 0; padding: 16px; }
.person-card { width: 100%; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; text-align: left; }
.person-avatar, .site-badge, .settings-avatar { display: grid; place-items: center; background: var(--fill); color: var(--text); font-weight: 650; }
.person-avatar, .site-badge { width: 44px; height: 44px; border-radius: 11px; }
.person-meta, .tool-usage, .tool-purpose, .login-meta, .card-facts { color: var(--secondary); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { color: var(--secondary); font-size: 13px; font-weight: 500; }
.chip + .chip::before { content: "·"; margin-right: 6px; }
.card-facts { grid-column: 2/-1; display: flex; gap: 10px; }
.tool-capabilities { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-capability { color: var(--secondary); font-size: 13px; }
.tool-capability + .tool-capability::before { content: "·"; margin-right: 8px; }
.tool-unavailable { opacity: .62; }
.safety-note, .inline-alert { color: var(--secondary); font-size: 13px; line-height: 1.4; }
.request-section, .detail-section { margin-top: 28px; }
.requested-row, .settings-row, .record, .fact { border-top: .5px solid var(--hairline); }
.requested-row:first-child, .settings-row:first-child, .record:first-child, .fact:first-child { border-top: 0; }

.button { min-height: 50px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--fill); color: var(--text); font-size: 17px; font-weight: 600; }
.button:active { background: var(--fill-pressed); }
.button.primary { background: var(--accent); color: var(--accent-contrast); }
.button.secondary { background: var(--fill); }
.button.danger, .text-button.danger { color: var(--danger); }
.button.compact { min-height: 44px; padding: 9px 12px; }
.button.full, .text-button.full { width: 100%; }
.button[disabled] { opacity: .42; }
.text-button { min-height: 44px; border: 0; background: transparent; color: var(--accent); font-size: 17px; }
label { display: block; margin: 20px 0 7px; font-size: 15px; font-weight: 600; }
input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--fill); color: var(--text); font-size: 16px; outline: none; }
input:focus { border-color: var(--secondary); }
.phone-input { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--hairline); border-radius: 10px; background: var(--fill); overflow: hidden; }
.phone-prefix { padding-left: 14px; }
.phone-input input { border: 0; }
.field-error { color: var(--danger); font-size: 13px; }

dialog { color: var(--text); border: 0; background: var(--surface); }
dialog::backdrop { background: var(--backdrop); }
.sheet-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 430px);
  max-height: 88dvh;
  margin: 0 auto;
  padding: 30px var(--page-x) calc(24px + env(safe-area-inset-bottom));
  border-radius: 14px 14px 0 0;
  overflow: auto;
  transform: translateY(var(--sheet-drag, 0));
  animation: sheet-in 220ms var(--ease-native);
}
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet-handle { position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; transform: translateX(-50%); border-radius: 3px; background: var(--hairline); }
.detail-hero { display: flex; align-items: center; gap: 14px; padding: 6px 0 24px; }
.detail-hero .person-avatar { width: 54px; height: 54px; border-radius: 14px; }
.detail-subtitle { margin: 4px 0 0; color: var(--secondary); font-size: 15px; }
.detail-section { padding-top: 22px; border-top: .5px solid var(--hairline); }
.detail-section h3 { margin-bottom: 10px; }
.facts { display: block; }
.fact { min-height: 48px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 10px 14px; }
.fact-label { color: var(--secondary); font-size: 15px; }
.fact-value { text-align: right; font-size: 15px; line-height: 1.35; }
.records { display: block; }
.record { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 15px; }
.record span:last-child { color: var(--secondary); white-space: nowrap; }
.button-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.sheet-title { margin-bottom: 12px; }
.action-sheet { position: fixed; inset: auto 0 calc(10px + env(safe-area-inset-bottom)); width: min(calc(100% - 20px), 410px); margin: 0 auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.action-sheet-group { overflow: hidden; border-radius: 14px; background: var(--surface); }
.action-sheet-copy { padding: 18px 18px 14px; text-align: center; }
.action-sheet-copy h2 { font-size: 15px; font-weight: 600; }
.action-sheet-copy p { margin: 6px 0 0; color: var(--secondary); font-size: 13px; line-height: 1.35; }
.action-sheet-copy #confirm-safety { margin-top: 10px; }
.action-sheet-button { width: 100%; min-height: 56px; border: 0; border-top: .5px solid var(--hairline); background: var(--surface); color: var(--text); font-size: 20px; }
.action-sheet-button.destructive { color: var(--danger); }
.action-sheet-button.cancel { margin-top: 8px; border: 0; border-radius: 14px; font-weight: 600; }
.action-sheet-button:active { background: var(--fill-pressed); }
.action-sheet-button[disabled] { opacity: .46; }
.connect-status { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--secondary); text-align: center; }
.spinner { width: 34px; height: 34px; border: 2px solid var(--hairline); border-top-color: var(--accent); border-radius: 50%; animation: spin 700ms linear infinite; }
.connect-symbol { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--text); }
.connect-symbol.failed-mark { color: var(--danger); }
.status-svg { width: 26px; height: 26px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.suggestion { min-height: 36px; padding: 7px 11px; border: 0; border-radius: 10px; background: var(--fill); color: var(--text); }
.link-box { margin-top: 16px; padding: 13px; border-radius: 10px; background: var(--fill); font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.optional { color: var(--secondary); font-size: 13px; font-weight: 400; }
.empty-state, .error-state { padding: 44px 20px; text-align: center; color: var(--secondary); }
.empty-state p, .error-state p { margin: 7px 0 0; color: var(--secondary); font-size: 15px; line-height: 1.45; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 32px), 398px); padding: 12px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-contrast); text-align: center; font-size: 15px; }

@media (min-width: 700px) {
  .app-shell, .boot, .signin { border-left: .5px solid var(--hairline); border-right: .5px solid var(--hairline); }
}
@media (max-width: 370px) {
  :root { --page-x: 16px; }
  .large-title, .page-header h1 { font-size: 32px; }
  .native-row { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Visual refresh (4 Oct): two accents (blue for action, green for good states), amber only for attention.
   White grouped rows on a light grey page, icon tiles, one summary card, floating Telegram button. Light only (D-011). */
.app-shell, .boot, .signin { background: var(--bg); }
.signin { background: var(--surface); }
.screen { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.inset-list { background: var(--grouped-bg); border-radius: 14px; box-shadow: var(--shadow); }
.section-heading h2, .detail-section h2 { font-size: 20px; font-weight: 650; letter-spacing: -.012em; }
.demo-banner { background: var(--accent-soft); color: var(--accent-deep); border-bottom: 0; font-weight: 500; }

.icon-tile { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; }
.icon-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile.green { background: var(--green); }
.icon-tile.amber { background: var(--amber); }
.icon-tile.soft { background: var(--accent-soft); color: var(--accent); }

.summary-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(10, 108, 255, .7);
}
.summary-stat { min-width: 0; }
.summary-stat strong { display: block; font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.summary-stat span { display: block; margin-top: 5px; color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 1.25; }
.summary-stat + .summary-stat { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .22); }

.person-avatar, .site-badge { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.person-avatar.is-you, .settings-avatar { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); color: #fff; }
.person-avatar, .site-badge { border-radius: 50%; }
.site-badge { border-radius: 10px; }
.site-badge.large, .settings-avatar { border-radius: 16px; }
.row-status { font-weight: 500; }
.row-status.good, .row-secondary.good, .detail-subtitle.good { color: var(--green); }
.row-status.warn, .row-secondary.warn, .detail-subtitle.warn { color: var(--amber-ink); }
.status-dot { width: 8px; height: 8px; flex-basis: 8px; background: var(--amber); }
.capability-check { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.row-plus { background: var(--accent-soft); color: var(--accent); }
.settings-link .row-label { color: var(--text); }
.toast { background: var(--text); }
.sheet-dialog { background: var(--surface); }
.sheet-dialog .inset-list { background: var(--fill); box-shadow: none; }
.detail-view { background: var(--bg); }
.detail-nav, .native-nav { background: color-mix(in srgb, var(--bg) 86%, transparent); }
.tab-bar { background: color-mix(in srgb, var(--surface) 90%, transparent); }

.telegram-fab {
  position: fixed;
  z-index: 11;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  bottom: calc(76px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(10, 108, 255, .55), 0 2px 6px rgba(0, 0, 0, .12);
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms var(--ease-native);
}
.telegram-fab:active { transform: scale(.94); }
.telegram-fab svg { width: 25px; height: 25px; margin-left: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.detail-open .telegram-fab { opacity: 0; pointer-events: none; }
.inset-list > .dialog-copy { margin: 0; padding: 14px; }
.detail-hero .person-avatar.is-you { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); color: #fff; }
.site-badge { font-size: 15px; letter-spacing: -.01em; }
