:root {
  --bg: #050506;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: #17171a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6f6f8;
  --muted: #9a9aa2;
  --dim: #6d6d75;
  --radius: 22px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
  outline: none;
}

.app {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}

.glow {
  position: fixed;
  inset: -20% -30% auto -30%;
  height: 62vh;
  background:
    radial-gradient(60% 70% at 30% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(45% 55% at 85% 12%, rgba(255, 255, 255, 0.08), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(14px + env(safe-area-inset-top)) 22px calc(74px + env(safe-area-inset-bottom));
}

.screen[hidden] { display: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  flex: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand .mark { width: 21px; height: 21px; color: #fff; }

.glass-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--text);
}

.glass-btn svg { width: 20px; height: 20px; }

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 22px;
  padding-bottom: 10px;
  margin: 0 -2px;
}

.scroll::-webkit-scrollbar { display: none; }

/* ---------- онбординг ---------- */

.onboarding {
  justify-content: flex-end;
  overflow: hidden;
  padding: 0 26px calc(22px + env(safe-area-inset-bottom));
  background:
    radial-gradient(85% 42% at 52% 30%, rgba(0, 0, 0, 0.3), transparent 74%),
    linear-gradient(180deg,
      #c4c4c4 0%,
      #bdbdbd 8%,
      #b0b0b0 14%,
      #969696 19%,
      #707070 24%,
      #4a4a4a 30%,
      #262626 37%,
      #161616 44%,
      #111111 52%,
      #101010 62%,
      #101010 100%);
}

.onboarding-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.onboarding-grid {
  position: absolute;
  inset: -10% -20% 30% -20%;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.085) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.085) 0 1px, transparent 1px 42px);
  -webkit-mask-image: radial-gradient(120% 90% at 40% 20%, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 40% 20%, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 78%);
}

.onboarding-mark {
  position: absolute;
  top: 12%;
  left: 22%;
  width: 112%;
  height: auto;
}

.onboarding-brand {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top));
  left: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2f2f3;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.onboarding-brand .mark { width: 21px; height: 21px; }

.onboarding-copy { position: relative; margin-bottom: 42px; }

.onboarding h1 {
  margin: 0 0 22px;
  font-size: clamp(37px, 11.2vw, 46px);
  line-height: 1.23;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: #f4f4f5;
}

.onboarding p {
  margin: 0;
  max-width: 318px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.56;
  letter-spacing: -0.005em;
}

.onboarding-action { position: relative; flex: none; }

.onboarding .pill {
  height: 54px;
  background: linear-gradient(180deg, #fbfbfc 0%, #eeedef 42%, #d6d5d8 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.25);
  color: #333337;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ---------- кнопки ---------- */

.pill {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  background: #f4f4f6;
  color: #08080a;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.pill:active { transform: scale(0.985); opacity: 0.9; }

.pill.tiny {
  width: auto;
  height: 44px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(180deg, #fbfbfc 0%, #eeeef0 45%, #d9d9dd 100%);
  color: #2c2c30;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 3px 10px rgba(0, 0, 0, 0.3);
}

.pill.small { width: auto; height: 44px; padding: 0 22px; font-size: 14.5px; }

/* ---------- сейф ---------- */

.headline {
  position: relative;
  margin: 2px 0 22px;
  font-size: clamp(34px, 10.6vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: #f7f7f8;
}

.hl-chip {
  display: inline-grid;
  place-items: center;
  width: 0.94em;
  height: 0.94em;
  margin: 0 0.04em;
  border-radius: 50%;
  vertical-align: -0.13em;
  background: radial-gradient(circle at 34% 24%, #4c4c50 0%, #2f2f33 55%, #212124 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.26),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.45);
  color: #f4f4f6;
  line-height: 1;
}

.hl-chip svg { width: 58%; height: 58%; }

.hl-chip-hash {
  width: 2.15em;
  height: 0.86em;
  border-radius: 999px;
}

.hl-chip-hash span {
  font-size: 0.46em;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.search {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-icon { width: 21px; height: 21px; color: #9a9aa1; flex: none; }

.search input { flex: 1; min-width: 0; height: 100%; font-size: 15.5px; }
.search input::placeholder { color: #8d8d94; }
.search input::-webkit-search-cancel-button { display: none; }

.search-filter {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #d3d3d8;
}
.search-filter svg { width: 20px; height: 20px; }
.search-filter:active { background: rgba(255, 255, 255, 0.12); }

.promo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  min-height: 74px;
  padding: 11px 16px 11px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #242427 0%, #171719 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.promo-art {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff, #e6e6e9);
  color: #131315;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.promo-art svg { width: 26px; height: 26px; }

.promo-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.promo-title { font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; }
.promo-sub { font-size: 12px; color: #8d8d94; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chevron { width: 18px; height: 18px; color: #7c7c83; flex: none; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 2px 12px;
}

.section-head span { font-size: 15px; font-weight: 500; color: #f2f2f4; letter-spacing: -0.01em; }
.section-head button { font-size: 13px; color: #9a9aa1; }

.list { display: flex; flex-direction: column; gap: 10px; }

.item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 78px;
  padding: 14px 18px 14px 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, #202023 0%, #191919 100%);
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: background 0.12s ease;
}

.item:active { background: #2a2a2d; }

.avatar {
  width: 47px;
  height: 47px;
  flex: none;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item-title { font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 12.5px; color: #8b8b92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-icons { display: flex; align-items: center; gap: 6px; color: #b6b6bd; flex: none; }
.item-icons svg { width: 21px; height: 21px; }
.item-icons svg.warn { color: #ffb44d; }

.empty {
  margin-top: 26px;
  padding: 26px 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty svg { width: 34px; height: 34px; color: var(--dim); margin-bottom: 2px; }
.empty-title { font-size: 16px; font-weight: 500; }
.empty-text { font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 260px; margin-bottom: 8px; }

/* ---------- безопасность ---------- */

#screen-security { padding-top: calc(6px + env(safe-area-inset-top)); }
#screen-security .scroll { padding-top: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.monitor-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 184px;
  padding: 20px 14px 18px 18px;
  border-radius: 30px;
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(255, 255, 255, 0.13), transparent 62%),
    linear-gradient(180deg, #35353a 0%, #242427 58%, #1b1b1d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.monitor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 27px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 27px);
  pointer-events: none;
}

.monitor-copy { position: relative; z-index: 1; flex: 1; min-width: 0; }
.monitor-title { font-size: 20px; font-weight: 500; letter-spacing: -0.022em; color: #f7f7f8; }
.monitor-sub { margin: 9px 0 18px; font-size: 12.5px; color: #a3a3aa; line-height: 1.45; max-width: 196px; }
.monitor-art { position: relative; z-index: 1; width: 112px; flex: none; align-self: center; margin-right: -6px; }

.sentinel {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #242427 0%, #191919 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 24px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.sentinel-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #eeeef2;
  background: radial-gradient(circle at 35% 25%, #4c4c52 0%, #2c2c31 58%, #232327 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.sentinel-icon svg { width: 24px; height: 24px; }
.sentinel-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sentinel-title { font-size: 15.5px; font-weight: 500; }
.sentinel-sub { font-size: 12.5px; color: #8d8d94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 2px 12px;
  font-size: 13px;
  color: #a3a3aa;
}

.bar {
  height: 36px;
  border-radius: 999px;
  background: #171719;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f7f9 0%, #e2e2e6 50%, #c8c8ce 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: width 0.5s ease;
}

.rows { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 88px;
  padding: 14px 20px 14px 14px;
  border-radius: 34px;
  background: linear-gradient(180deg, #242427 0%, #1b1b1d 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.row-icon {
  position: relative;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, #48484e 0%, #2b2b30 58%, #232327 100%);
  color: #f2f2f5;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 10px rgba(0, 0, 0, 0.35);
}

.row-icon svg { width: 24px; height: 24px; }
.row-icon.empty { color: #a8a8af; }

.row-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f2f2f5;
  color: #17171a;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.row-badge.zero { background: rgba(255, 255, 255, 0.22); color: #e2e2e6; box-shadow: none; }

.row-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-title { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.row-sub { font-size: 12.5px; color: #8d8d94; }
.row .chevron { color: #c2c2c9; width: 19px; height: 19px; }

.footnote { margin: 20px 6px 4px; font-size: 11.5px; color: var(--dim); line-height: 1.5; }

/* ---------- док ---------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: calc(11px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock[hidden] { display: none; }

.dock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(43, 43, 47, 0.94), rgba(27, 27, 30, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.dock-btn {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #e2e2e7;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0 17px, rgba(255, 255, 255, 0) 17.5px);
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.dock-btn svg { width: 18px; height: 18px; }
.dock-btn:active { color: #fff; }

.dock-btn.active {
  background: #f7f7f8;
  color: #09090a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 -1px 2px rgba(0, 0, 0, 0.08);
}

.dock-plus {
  width: 39px;
  height: 39px;
  flex: none;
  border-radius: 50%;
  background: #f7f7f8;
  color: #0a0a0b;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 0.14s ease, background 0.14s ease;
}

.dock-plus:active { transform: scale(0.94); background: #e7e7ea; }

.dock-plus svg { width: 18px; height: 18px; }

/* ---------- шторка ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: fade 0.18s ease;
}

.scrim[hidden] { display: none; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 25;
  width: min(460px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 8px 20px calc(26px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: #131315;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.6);
  animation: rise 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
  scrollbar-width: none;
}

.sheet[hidden] { display: none; }
.sheet::-webkit-scrollbar { display: none; }

.sheet-handle { width: 40px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); margin: 4px auto 16px; }

.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.sheet-head .avatar { width: 46px; height: 46px; border-radius: 13px; font-size: 20px; }
.sheet-head-text { flex: 1; min-width: 0; padding-top: 3px; }
.sheet-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sheet-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

.sheet-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; flex: none; color: var(--muted); }
.sheet-close svg { width: 16px; height: 16px; }

.field { margin-bottom: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 10px 14px; }
.field-label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.01em; }
.field-value { margin-top: 3px; font-size: 15px; overflow-wrap: anywhere; }
.field-row { display: flex; align-items: center; gap: 8px; }
.field-row .field-value { flex: 1; min-width: 0; }
.field-actions { display: flex; gap: 4px; flex: none; }
.icon-mini { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.icon-mini svg { width: 17px; height: 17px; }
.icon-mini:active { color: #fff; }

.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.02em; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; font-size: 11.5px; background: rgba(255, 255, 255, 0.08); color: #d8d8de; }
.badge.good { background: rgba(95, 211, 138, 0.14); color: #7fe0a3; }
.badge.bad { background: rgba(255, 180, 77, 0.14); color: #ffc270; }

.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.btn-ghost {
  flex: 1;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-ghost svg { width: 17px; height: 17px; }
.btn-ghost.danger { color: #ff7a86; }
.btn-ghost:active { background: rgba(255, 255, 255, 0.13); }

.link-btn { display: block; width: 100%; margin-top: 10px; padding: 12px; text-align: center; font-size: 14px; color: #cfcfd6; }

.form-field { margin-bottom: 12px; }
.form-field label { display: block; margin: 0 2px 6px; font-size: 12.5px; color: var(--muted); }
.form-field input, .form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
}
.form-field input:focus, .form-field textarea:focus { border-color: rgba(255, 255, 255, 0.22); }
.form-field textarea { resize: none; min-height: 84px; line-height: 1.45; }
.form-field .with-action { position: relative; }
.form-field .with-action input { padding-right: 108px; }
.mini-link { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.09); font-size: 12px; color: #e6e6ea; }

.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.055); margin-bottom: 12px; }
.switch-row span { font-size: 14px; }
.switch { width: 44px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); position: relative; transition: background 0.18s ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.18s ease; }
.switch.on { background: #f4f4f6; }
.switch.on::after { transform: translateX(18px); background: #111; }

.menu-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); text-align: left; font-size: 15px; }
.menu-item svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.filter-item { justify-content: space-between; }
.filter-title { font-size: 15px; }
.filter-count { font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.08); border-radius: 99px; padding: 3px 10px; }
.menu-note { margin: 14px 4px 2px; font-size: 12px; color: var(--dim); line-height: 1.5; }

.leak-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  z-index: 60;
  max-width: 82%;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(245, 245, 247, 0.96);
  color: #111;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading { opacity: 0.55; pointer-events: none; }

@keyframes rise { from { transform: translate(-50%, 40px); opacity: 0.4; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-height: 700px) {
  .onboarding h1 { font-size: 36px; }
  .headline { font-size: 34px; }
  .monitor-art { width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
