:root {
  --sn-bg: #f3f7f5;
  --sn-surface: #ffffff;
  --sn-surface-soft: #eef6f2;
  --sn-ink: #11251f;
  --sn-muted: #697c75;
  --sn-line: #dce7e2;
  --sn-primary: #0b6b58;
  --sn-primary-strong: #075343;
  --sn-primary-soft: #dff1e9;
  --sn-danger: #a23c3c;
  --sn-warning: #9a6d13;
  --sn-shadow: 0 18px 45px rgba(22, 55, 46, .10);
  --sn-radius: 24px;
  --sn-safe-bottom: env(safe-area-inset-bottom, 0px);
  --sn-safe-top: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, sans-serif;
  color: var(--sn-ink);
  background: var(--sn-bg);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--sn-bg); }
body { min-height: 100vh; min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--sn-primary); text-decoration: none; }
img { max-width: 100%; }

.sn-pwa { min-height: 100vh; min-height: 100dvh; }
.sn-boot {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 35%, rgba(11, 107, 88, .12), transparent 32%),
    var(--sn-bg);
}
.sn-boot-mark {
  width: 92px;
  height: 92px;
  border-radius: 27px;
  display: grid;
  place-items: center;
  background: white;
  box-shadow: var(--sn-shadow);
  overflow: hidden;
}
.sn-boot-mark img { width: 78px; height: 78px; object-fit: contain; }
.sn-boot h1 { margin: 12px 0 0; font-size: 30px; letter-spacing: -.8px; }
.sn-boot p { margin: 0; color: var(--sn-muted); }
.sn-spinner,
.sn-button-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(11, 107, 88, .15);
  border-top-color: var(--sn-primary);
  border-radius: 50%;
  animation: sn-spin .8s linear infinite;
}
.sn-spinner { margin-top: 12px; }
@keyframes sn-spin { to { transform: rotate(360deg); } }

.sn-auth, .sn-onboarding, .sn-app-shell { min-height: 100vh; min-height: 100dvh; }
.sn-auth-header, .sn-topbar {
  height: calc(66px + var(--sn-safe-top));
  padding: calc(12px + var(--sn-safe-top)) 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(243, 247, 245, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.sn-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sn-brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: contain; background: #fff; }
.sn-brand > div { min-width: 0; display: grid; gap: 1px; }
.sn-brand strong { font-size: 16px; letter-spacing: -.2px; }
.sn-brand span { color: var(--sn-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-language, .sn-icon-button {
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
  color: var(--sn-ink);
  min-width: 42px;
  height: 38px;
  border-radius: 13px;
  font-weight: 700;
}
.sn-top-actions { display: flex; align-items: center; gap: 8px; }
.sn-chip {
  height: 34px;
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--sn-muted);
  font-size: 11px;
}
.sn-chip i { width: 7px; height: 7px; border-radius: 50%; background: #21a177; }
.sn-chip.is-offline i { background: #c04b4b; }

.sn-install-banner {
  max-width: 720px;
  margin: 10px auto 0;
  padding: 12px 14px;
  border: 1px solid #cde3da;
  border-radius: 16px;
  background: #edf8f3;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sn-install-banner > div { flex: 1; display: grid; gap: 3px; }
.sn-install-banner b { font-size: 13px; }
.sn-install-banner span { font-size: 11px; color: var(--sn-muted); line-height: 1.5; }
.sn-install-banner button { border: 0; color: var(--sn-primary); background: transparent; font-weight: 800; }

.sn-auth-main {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: start center;
  padding: 34px 18px 54px;
}
.sn-auth-card, .sn-card {
  width: min(100%, 560px);
  background: var(--sn-surface);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius);
  box-shadow: var(--sn-shadow);
}
.sn-auth-card { padding: 28px; }
.sn-auth-logo {
  width: 64px; height: 64px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--sn-line); border-radius: 19px;
  display: grid; place-items: center; overflow: hidden;
}
.sn-auth-logo img { width: 54px; height: 54px; }
.sn-kicker {
  color: var(--sn-primary); text-transform: uppercase; letter-spacing: .08em;
  font-size: 10px; font-weight: 800;
}
.sn-auth-card h1, .sn-card h2 { margin: 7px 0 8px; letter-spacing: -.55px; }
.sn-auth-card h1 { font-size: 26px; }
.sn-auth-card > p, .sn-card > p { color: var(--sn-muted); margin: 0 0 22px; font-size: 13px; line-height: 1.65; }

.sn-segment {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--sn-surface-soft); border-radius: 14px; padding: 4px; margin: 18px 0;
}
.sn-segment button {
  border: 0; border-radius: 11px; background: transparent; height: 42px;
  font-weight: 750; color: var(--sn-muted);
}
.sn-segment button.is-active { background: #fff; color: var(--sn-primary); box-shadow: 0 2px 9px rgba(15, 65, 52, .08); }

.sn-form { display: grid; gap: 13px; }
.sn-form label { display: grid; gap: 7px; color: var(--sn-muted); font-size: 12px; font-weight: 650; }
.sn-form input {
  width: 100%; height: 48px; border: 1px solid var(--sn-line); border-radius: 14px;
  background: #fbfdfc; color: var(--sn-ink); padding: 0 14px; outline: none;
}
.sn-form input:focus { border-color: var(--sn-primary); box-shadow: 0 0 0 3px rgba(11, 107, 88, .1); }
.sn-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sn-check { grid-template-columns: 21px 1fr !important; align-items: start; line-height: 1.55; }
.sn-check input { width: 18px; height: 18px; margin-top: 1px; }
.sn-code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }

.sn-primary, .sn-secondary, .sn-provider, .sn-connect-button {
  border: 0; min-height: 48px; border-radius: 14px; font-weight: 800;
}
.sn-primary { background: var(--sn-primary); color: #fff; padding: 0 18px; }
.sn-primary:active { background: var(--sn-primary-strong); }
.sn-primary:disabled { opacity: .55; cursor: default; }
.sn-secondary {
  background: var(--sn-surface-soft); color: var(--sn-primary); border: 1px solid #d2e6de; padding: 0 16px;
}
.sn-guest {
  width: 100%; display: flex; align-items: center; text-align: start; gap: 12px;
}
.sn-guest > span:last-child { display: grid; gap: 2px; }
.sn-guest small { font-size: 10px; color: var(--sn-muted); }
.sn-button-icon { width: 28px; font-size: 20px; text-align: center; }
.sn-provider {
  width: 100%; background: #fff; color: var(--sn-ink); border: 1px solid var(--sn-line);
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 9px;
}
.sn-provider span { font-weight: 900; }
.sn-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #91a09b; font-size: 11px; }
.sn-divider::before, .sn-divider::after { content: ""; height: 1px; background: var(--sn-line); flex: 1; }
.sn-legal { display: flex; justify-content: center; gap: 8px; font-size: 11px; color: var(--sn-muted); margin: 18px 0 0 !important; }

.sn-alert, .sn-global-alert {
  border: 1px solid #efd0d0; background: #fff2f2; color: #803838;
  padding: 11px 13px; border-radius: 13px; font-size: 12px; line-height: 1.55; margin: 12px 0;
}
.sn-alert.is-ok, .sn-global-alert.is-ok { background: #edf8f3; border-color: #cae5da; color: #236a55; }
.sn-global-alert { margin: 8px 14px 0; position: relative; z-index: 11; }

.sn-sheet-page { display: grid; place-items: start center; padding: 34px 18px 60px; }
.sn-sheet-page .sn-card { padding: 25px; }

.sn-app-shell { padding-bottom: calc(82px + var(--sn-safe-bottom)); }
.sn-app-topbar { border-bottom: 1px solid rgba(220, 231, 226, .75); }
.sn-offline { margin: 8px 14px; padding: 10px 13px; border-radius: 12px; color: #795a18; background: #fff5d9; font-size: 12px; }
.sn-main { width: min(100%, 820px); margin: 0 auto; padding: 18px 14px 34px; }
.sn-view { animation: sn-view-in .18s ease both; }
@keyframes sn-view-in { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sn-page-title { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 17px; }
.sn-page-title h1 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.7px; }

.sn-connect-card {
  border: 1px solid #d0e3db;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(75, 170, 137, .14), transparent 46%),
    #fff;
  padding: 26px 19px 18px;
  box-shadow: var(--sn-shadow);
}
.sn-connect-visual { display: grid; justify-items: center; text-align: center; }
.sn-shield {
  width: 104px; height: 116px; display: grid; place-items: center; margin: 0 auto 14px;
  clip-path: polygon(50% 0%, 94% 16%, 90% 62%, 73% 83%, 50% 100%, 27% 83%, 10% 62%, 6% 16%);
  background: linear-gradient(160deg, #dcece6, #f7fbf9);
  box-shadow: inset 0 0 0 2px rgba(11,107,88,.16);
  transition: .25s ease;
}
.sn-shield span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #96aaa2; font-size: 21px; font-weight: 900; }
.sn-connect-card.is-connected .sn-shield { background: linear-gradient(160deg, #61b89b, #0b6b58); box-shadow: 0 18px 35px rgba(11,107,88,.2); }
.sn-connect-card.is-connected .sn-shield span { color: var(--sn-primary); }
.sn-connect-card.is-connecting .sn-shield { animation: sn-pulse 1.3s ease-in-out infinite alternate; }
@keyframes sn-pulse { to { transform: scale(1.035); filter: saturate(1.15); } }
.sn-connect-visual > span { font-size: 11px; color: var(--sn-muted); }
.sn-connect-visual h2 { margin: 4px 0; font-size: 23px; letter-spacing: -.6px; }
.sn-connect-visual p { margin: 0; color: var(--sn-muted); font-size: 12px; line-height: 1.55; }
.sn-server-pill {
  width: fit-content; margin: 17px auto 13px; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--sn-line); border-radius: 999px; padding: 7px 11px; color: var(--sn-muted); font-size: 11px;
}
.sn-server-pill b { color: var(--sn-ink); }
.sn-connect-button {
  width: 100%; min-height: 58px; background: var(--sn-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px;
}
.sn-connect-card.is-connected .sn-connect-button { background: #edf5f2; border: 1px solid #d3e5de; color: var(--sn-primary); }
.sn-connect-button:disabled { opacity: .65; }
.sn-power { font-size: 24px; }
.sn-connect-button .sn-button-spinner { border-color: rgba(255,255,255,.28); border-top-color: #fff; display: none; }
.sn-connect-button.is-busy .sn-button-spinner { display: inline-block; }
.sn-connect-button.is-busy .sn-power { display: none; }
.sn-progress { height: 4px; border-radius: 999px; background: #e6efeb; overflow: hidden; margin: 12px 0 0; }
.sn-progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--sn-primary); transition: width .25s ease; }
.sn-connection-metrics { margin: 17px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--sn-line); padding-top: 15px; }
.sn-connection-metrics div { display: grid; gap: 4px; text-align: center; }
.sn-connection-metrics div + div { border-inline-start: 1px solid var(--sn-line); }
.sn-connection-metrics dt { color: var(--sn-muted); font-size: 9px; }
.sn-connection-metrics dd { margin: 0; font-size: 12px; font-weight: 800; }

.sn-profile-card {
  margin-top: 12px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px;
  border: 1px solid #d6e5df; background: #fafdff; border-radius: 18px; padding: 13px;
}
.sn-profile-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--sn-primary-soft); color: var(--sn-primary); font-size: 20px; }
.sn-profile-card > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.sn-profile-card b { font-size: 12px; }
.sn-profile-card span { font-size: 10px; color: var(--sn-muted); line-height: 1.45; }
.sn-profile-card button { border: 0; background: var(--sn-primary); color: #fff; height: 36px; padding: 0 12px; border-radius: 11px; font-weight: 800; }
.sn-profile-card.is-ready { background: #f1f8f5; border-color: #c9e2d8; }
.sn-profile-card.is-ready .sn-profile-icon { background: #d5eee4; }

.sn-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sn-stats-grid article {
  min-height: 76px; display: flex; align-items: center; gap: 11px; padding: 13px;
  border: 1px solid var(--sn-line); background: #fff; border-radius: 17px;
}
.sn-stats-grid article > span { width: 37px; height: 37px; display: grid; place-items: center; background: var(--sn-surface-soft); border-radius: 11px; color: var(--sn-primary); }
.sn-stats-grid article div { display: grid; gap: 2px; }
.sn-stats-grid small, .sn-section-head small { font-size: 9px; color: var(--sn-muted); }
.sn-stats-grid b { font-size: 13px; }

.sn-section-head { display: flex; align-items: end; justify-content: space-between; margin: 24px 2px 10px; }
.sn-section-head h3 { margin: 3px 0 0; font-size: 15px; }
.sn-section-head button { border: 0; background: transparent; color: var(--sn-primary); font-size: 11px; font-weight: 800; }
.sn-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sn-quick-grid button {
  min-height: 94px; text-align: start; display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  border: 1px solid var(--sn-line); background: #fff; border-radius: 18px; padding: 13px;
}
.sn-quick-grid button > span { grid-row: 1 / span 2; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: var(--sn-surface-soft); color: var(--sn-primary); font-size: 18px; }
.sn-quick-grid b { align-self: end; font-size: 12px; }
.sn-quick-grid small { align-self: start; color: var(--sn-muted); font-size: 9px; }

.sn-list { display: grid; gap: 9px; }
.sn-server-row, .sn-device-row, .sn-notification-row {
  width: 100%; border: 1px solid var(--sn-line); background: #fff; border-radius: 17px; padding: 13px;
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; text-align: start; color: var(--sn-ink);
}
.sn-server-flag {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--sn-surface-soft); color: var(--sn-primary); font-size: 12px; font-weight: 900;
}
.sn-server-row > span:nth-child(2), .sn-device-row > span:nth-child(2), .sn-notification-row > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.sn-server-row b, .sn-device-row b, .sn-notification-row b { font-size: 12px; }
.sn-server-row small, .sn-device-row small, .sn-notification-row small { font-size: 9px; color: var(--sn-muted); line-height: 1.4; }
.sn-server-row i { font-style: normal; color: transparent; }
.sn-server-row.is-selected { border-color: #9dcdbb; background: #f5fbf8; }
.sn-server-row.is-selected i { color: var(--sn-primary); }
.sn-server-row.is-offline { opacity: .55; }
.sn-auto-card { padding: 0; margin-bottom: 9px; overflow: hidden; }
.sn-auto-card .sn-server-row { border: 0; border-radius: 23px; }
.sn-helper { font-size: 10px; color: var(--sn-muted); line-height: 1.6; margin: 14px 4px; }

.sn-plan-hero {
  border-radius: 25px; padding: 24px; color: #fff;
  background: linear-gradient(145deg, #0b6b58, #0f8b70);
  box-shadow: 0 18px 42px rgba(11,107,88,.22);
}
.sn-plan-hero > span { font-size: 10px; opacity: .8; }
.sn-plan-hero h2 { margin: 6px 0 7px; font-size: 29px; }
.sn-plan-hero p { margin: 0 0 18px; color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.55; }
.sn-plan-hero .sn-primary { background: #fff; color: var(--sn-primary); width: 100%; }
.sn-plan-list { display: grid; gap: 9px; margin-top: 12px; }
.sn-plan-row {
  border: 1px solid var(--sn-line); background: #fff; border-radius: 18px; padding: 14px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.sn-plan-row > div { display: grid; gap: 3px; }
.sn-plan-row small { color: var(--sn-muted); font-size: 9px; }
.sn-plan-row b { font-size: 13px; }
.sn-plan-row > span { color: var(--sn-primary); font-size: 11px; font-weight: 800; }

.sn-account-hero { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, #eef7f3, #fff); border: 1px solid #d4e6df; margin-bottom: 10px; }
.sn-avatar { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; background: var(--sn-primary); color: #fff; font-size: 24px; font-weight: 900; }
.sn-account-hero > div:last-child { display: grid; gap: 2px; }
.sn-account-hero span { font-size: 9px; color: var(--sn-primary); font-weight: 800; text-transform: uppercase; }
.sn-account-hero h2 { margin: 0; font-size: 19px; }
.sn-account-hero p { margin: 0; color: var(--sn-muted); font-size: 11px; }
.sn-view[data-view="account"] > .sn-card, .sn-view[data-view="more"] > .sn-card { padding: 6px 14px; box-shadow: none; }
.sn-detail-row { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; }
.sn-detail-row + .sn-detail-row { border-top: 1px solid var(--sn-line); }
.sn-detail-row span { color: var(--sn-muted); }
.sn-detail-row b { text-align: end; }
.sn-account-actions, .sn-more-actions { display: grid; gap: 8px; margin-top: 12px; }
.sn-account-actions button, .sn-more-actions button {
  min-height: 51px; border: 1px solid var(--sn-line); background: #fff; border-radius: 16px; padding: 0 14px; text-align: start;
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; color: var(--sn-ink); font-size: 11px;
}
.sn-account-actions button.is-locked {
  background: #f8faf9;
  color: var(--sn-muted);
  border-style: dashed;
}
.sn-account-actions button.is-locked > i::before {
  content: "🔒";
  margin-inline-end: 5px;
  font-size: 9px;
}
.sn-more-actions button { display: block; text-align: center; font-weight: 750; }
.sn-more-actions button.is-danger { color: var(--sn-danger); }

.sn-device-row.is-current { border-color: #a4d0c0; background: #f5fbf8; }
.sn-device-row > i, .sn-notification-row > i { font-style: normal; font-size: 9px; color: var(--sn-primary); font-weight: 800; }
.sn-notification-row.is-unread { border-color: #b6d8cc; background: #f6fbf9; }
.sn-notification-row > .sn-server-flag { font-size: 16px; }
.sn-toggle-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sn-toggle-row > div { display: grid; gap: 4px; }
.sn-toggle-row b { font-size: 12px; }
.sn-toggle-row span { color: var(--sn-muted); font-size: 9px; line-height: 1.45; }
.sn-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sn-switch i { width: 48px; height: 28px; background: #ccd8d3; border-radius: 999px; display: block; position: relative; transition: .2s; }
.sn-switch i::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; top: 3px; inset-inline-start: 3px; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.15); transition: .2s; }
.sn-switch input:checked + i { background: var(--sn-primary); }
.sn-switch input:checked + i::after { transform: translateX(20px); }
[dir="rtl"] .sn-switch input:checked + i::after { transform: translateX(-20px); }
.sn-version { text-align: center; color: #9aa9a4; font-size: 9px; margin: 18px 0; }

.sn-tabbar {
  position: fixed; z-index: 30; bottom: 0; left: 0; right: 0;
  min-height: calc(66px + var(--sn-safe-bottom));
  padding: 6px 8px var(--sn-safe-bottom);
  border-top: 1px solid rgba(211,225,219,.95);
  background: rgba(250,252,251,.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.sn-tabbar button { border: 0; background: transparent; color: #82948d; display: grid; place-items: center; align-content: center; gap: 2px; position: relative; }
.sn-tabbar button > span { font-size: 19px; line-height: 1; }
.sn-tabbar button > b { font-size: 8px; }
.sn-tabbar button.is-active { color: var(--sn-primary); }
.sn-tabbar button > i { position: absolute; top: 3px; inset-inline-end: 18%; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 3px; border-radius: 999px; background: #c03e3e; color: #fff; font-style: normal; font-size: 8px; }

.sn-dialog {
  width: min(calc(100% - 28px), 510px);
  max-height: calc(100dvh - 30px);
  border: 0; border-radius: 27px; padding: 0; background: #fff; color: var(--sn-ink); box-shadow: 0 28px 80px rgba(10,40,31,.28);
}
.sn-dialog::backdrop { background: rgba(16, 35, 29, .46); backdrop-filter: blur(4px); }
.sn-dialog > form, .sn-dialog > div { padding: 25px; position: relative; }
.sn-dialog-close { position: absolute; top: 15px; inset-inline-end: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f4f2; color: var(--sn-muted); font-size: 20px; }
.sn-dialog-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--sn-primary-soft); color: var(--sn-primary); font-size: 25px; }
.sn-dialog h2 { margin: 14px 0 8px; font-size: 20px; letter-spacing: -.4px; }
.sn-dialog p, .sn-dialog li { color: var(--sn-muted); font-size: 11px; line-height: 1.6; }
.sn-dialog ol { padding-inline-start: 22px; margin: 13px 0 18px; }
.sn-dialog .sn-primary, .sn-dialog .sn-secondary { width: 100%; margin-top: 8px; }

.sn-profile-steps { display: grid; gap: 8px; margin: 15px 0; }
.sn-profile-steps span { min-height: 43px; border: 1px solid var(--sn-line); border-radius: 13px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; font-size: 10px; color: var(--sn-muted); }
.sn-profile-steps i { width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; display: grid; place-items: center; background: var(--sn-primary-soft); color: var(--sn-primary); font-style: normal; font-weight: 800; }

.sn-reward-dialog > div { padding: 0 0 22px; overflow: hidden; }
.sn-ad-badge { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; padding: 5px 8px; border-radius: 999px; background: rgba(10,25,21,.72); color: #fff; font-size: 8px; font-weight: 800; }
.sn-ad-media { min-height: 190px; max-height: 290px; background: #eaf1ee; display: grid; place-items: center; overflow: hidden; }
.sn-ad-media img, .sn-ad-media video { width: 100%; height: 100%; max-height: 290px; object-fit: cover; display: block; }
.sn-ad-media iframe { width: 100%; height: 270px; border: 0; }
.sn-ad-copy { padding: 17px 19px 0; }
.sn-ad-copy small { color: var(--sn-primary); font-weight: 800; }
.sn-ad-copy h2 { margin: 5px 0; }
.sn-ad-copy p { margin: 0; }
.sn-ad-cta { margin: 12px 19px 0; min-height: 43px; border-radius: 13px; display: grid; place-items: center; background: var(--sn-primary-soft); color: var(--sn-primary); font-size: 11px; font-weight: 800; }
.sn-ad-countdown { margin: 15px 19px 0; display: flex; justify-content: space-between; font-size: 10px; color: var(--sn-muted); }
.sn-ad-countdown b { color: var(--sn-ink); }
.sn-ad-progress { margin: 9px 19px 0; }

@media (min-width: 700px) {
  .sn-main { padding-top: 26px; }
  .sn-connect-card { padding-inline: 38px; }
  .sn-quick-grid { grid-template-columns: repeat(4, 1fr); }
  .sn-quick-grid button { grid-template-columns: 1fr; grid-template-rows: 38px auto auto; text-align: center; justify-items: center; }
  .sn-quick-grid button > span { grid-row: auto; width: 38px; }
  .sn-auth-card { padding: 34px; }
}
@media (max-width: 390px) {
  .sn-chip { display: none; }
  .sn-form-grid { grid-template-columns: 1fr; }
  .sn-connection-metrics { font-size: 10px; }
  .sn-main { padding-inline: 10px; }
  .sn-profile-card { grid-template-columns: 36px 1fr; }
  .sn-profile-card button { grid-column: 1 / -1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

#sn-browser-recovery:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.7;
}
