:root {
  color-scheme: light;
  --bg: #f5eef3;
  --surface: #ffffff;
  --surface-soft: #fbf6f9;
  --ink: #2a1c27;
  --muted: #75606e;
  --line: #eadce5;
  --accent: #9f456e;
  --accent-dark: #70304d;
  --trust: #3f7567;
  --ok: #2f8a63;
  --warn: #c4861f;
  --danger: #bd2734;
  --shadow: 0 18px 45px rgba(92, 45, 72, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(180deg, #fffafd 0, var(--bg) 340px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  overflow: hidden;
}

.app-shell {
  margin: 0 auto;
  max-width: 1240px;
  min-height: 100vh;
  padding: 0 clamp(16px, 3vw, 32px);
}

.app-content {
  height: 100vh;
  position: relative;
}

.topbar {
  align-items: center;
  background: rgba(255, 250, 253, 0.86);
  backdrop-filter: blur(16px);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  left: 0;
  margin: 0;
  padding: 16px 0 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.section-head,
.signal-head,
.origins,
.categories {
  display: flex;
}

.brand {
  align-items: center;
  gap: 13px;
}

.brand-mark {
  height: 42px;
  width: 42px;
}

.account-status {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.account-pill,
.account-logout {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(159, 69, 110, 0.18);
  color: var(--accent-dark);
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
}

.account-pill {
  border-radius: 999px;
  gap: 7px;
  max-width: 230px;
  padding: 7px 11px;
}

.account-pill:hover,
.account-logout:hover {
  background: rgba(255, 250, 253, 0.95);
  border-color: rgba(159, 69, 110, 0.32);
  color: var(--accent-dark);
}

.account-pill svg,
.account-logout svg {
  fill: none;
  flex: 0 0 auto;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  width: 19px;
}

.account-identity {
  display: grid;
  min-width: 0;
  text-align: left;
}

.account-pill strong,
.account-pill small {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-pill strong { font-weight: 800; }
.account-pill small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.account-logout {
  border-radius: 50%;
  padding: 0;
  width: 38px;
}

.hibiscus-petal {
  opacity: 0.96;
}

.petal-main {
  fill: #c85e8b;
}

.petal-soft {
  fill: #e58ab0;
}

.hibiscus-core {
  fill: #3f7567;
}

.hibiscus-stamen {
  fill: none;
  stroke: #70304d;
  stroke-linecap: round;
  stroke-width: 4;
}

.hibiscus-dot {
  fill: #fffafd;
  stroke: #70304d;
  stroke-width: 1.5;
}

.access-wizard {
  align-items: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 250, 253, 0.82), rgba(245, 238, 243, 0.92)),
    rgba(245, 238, 243, 0.88);
  backdrop-filter: blur(18px) saturate(130%);
  display: flex;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
  position: fixed;
  -webkit-overflow-scrolling: touch;
  z-index: 40;
}

.access-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(92, 45, 72, 0.18);
  max-height: calc(100vh - 44px);
  max-height: calc(100dvh - 44px);
  max-width: 430px;
  overflow-y: auto;
  padding: 24px;
  text-align: center;
  width: min(100%, 430px);
  -webkit-overflow-scrolling: touch;
}

.access-mark {
  height: 58px;
  margin-bottom: 12px;
  width: 58px;
}

.access-card h2 {
  font-size: 25px;
  margin-bottom: 10px;
}

.access-copy,
.access-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.access-copy {
  margin-bottom: 18px;
}

.access-note {
  margin: 14px 0 0;
}

.access-actions {
  display: grid;
  gap: 10px;
}

.access-demo-form {
  display: grid;
  gap: 11px;
  margin: 16px 0;
  text-align: left;
}

.access-mail-step {
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 13px;
  text-align: left;
}

.access-mail-step strong,
.access-mail-step span,
.access-mail-step em {
  display: block;
}

.access-mail-step strong {
  color: var(--ink);
  font-size: 15px;
}

.access-mail-step span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.access-mail-step em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.access-demo-form label {
  color: var(--muted);
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: -2px;
}

.field-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: -2px;
}

.access-check {
  align-items: center;
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 10px 11px;
}

.access-check input:disabled + span {
  color: var(--muted);
}

.access-check input {
  min-height: 18px;
  width: 18px;
}

.access-check span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.demo-terms-box {
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  max-height: 132px;
  overflow-y: auto;
  padding: 11px;
  scrollbar-width: thin;
}

.demo-terms-box strong {
  color: var(--ink);
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}

.demo-terms-box p {
  margin: 0 0 10px;
}

.terms-scroll-hint {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: -4px;
}

.eyebrow {
  color: var(--trust);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 3px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 25px;
  line-height: 1;
  margin-bottom: 0;
}

.tagline {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  margin: 5px 0 0;
}

h2 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.app-main {
  height: calc(100vh - 88px - 74px);
  overflow-y: auto;
  padding: 18px 0 22px;
  scrollbar-width: thin;
}

.app-main:has(#view-home.active) {
  overflow: hidden;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.workspace,
.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.workspace {
  min-height: calc(100vh - 210px);
  padding: clamp(18px, 3vw, 30px);
}

#view-home {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  min-height: 0;
  padding: 0;
}

#view-home.active {
  display: flex;
  flex-direction: column;
}

.side-panel {
  padding: 20px;
}

.plan-list,
.info-list {
  display: grid;
  gap: 12px;
}

.recent-list {
  background: var(--bg);
  contain: layout paint;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  padding: 0 0 108px;
  scrollbar-width: thin;
}

.section-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.home-title {
  flex: 0 0 auto;
  margin: 0 0 12px;
  padding: 4px 2px 8px;
}

.profile-card {
  align-items: center;
  background: linear-gradient(180deg, #fffafd, var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 14px;
  padding: 16px;
}

.profile-avatar {
  align-items: center;
  background: rgba(159, 69, 110, 0.1);
  border: 1px solid rgba(159, 69, 110, 0.16);
  border-radius: 50%;
  color: var(--accent-dark);
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.profile-avatar svg {
  fill: none;
  height: 27px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  width: 27px;
}

.profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-copy strong,
.profile-copy span,
.profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 16px;
}

.profile-copy span {
  color: var(--muted);
  font-size: 14px;
}

.profile-copy small {
  color: var(--trust);
  font-size: 12px;
  font-weight: 800;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.language-row {
  align-items: center;
  background: linear-gradient(180deg, #fffafd, var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  margin-bottom: 14px;
  padding: 14px 16px;
}

.community-card {
  background: linear-gradient(180deg, #fffafd, var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
}

.community-card h3 { margin: 2px 0 6px; }
.community-card p { color: var(--muted); margin: 0; }
.community-card > button { justify-self: start; }
.community-request-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.community-request-form label { display: grid; gap: 6px; }
.community-request-form .community-purpose { grid-column: 1 / -1; }
.community-request-form textarea { min-height: 90px; resize: vertical; }
.community-request-form button { grid-column: 1 / -1; justify-self: start; }
.community-request-form .community-invite-found {
  color: var(--trust);
  font-size: 13px;
  font-weight: 800;
  grid-column: 1 / -1;
  margin: 0;
}
.community-request-form #community-invite-dismiss {
  grid-column: auto;
}
.community-invite-result {
  background: rgba(49, 120, 109, 0.07);
  border: 1px solid rgba(49, 120, 109, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 13px;
}
.community-invite-result code {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
  padding: 10px;
}
.community-invite-result small { color: var(--muted); }

.community-manage-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.community-manage-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-manage-summary div,
.community-invite-row {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.community-manage-summary span,
.community-invite-row span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.community-manage-summary strong { display: block; margin-top: 4px; }
.community-invite-list,
.community-member-list { display: grid; gap: 8px; }
.community-invite-row,
.community-member-row { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.community-member-row { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.community-member-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.community-member-actions button { min-height: 34px; padding: 5px 8px; }
.community-invite-row button { min-height: 36px; padding: 6px 10px; }
.community-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 720px) {
  .community-request-form { grid-template-columns: 1fr; }
  .community-request-form .community-purpose,
  .community-request-form button { grid-column: 1; }
}

.language-row span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.plan-list article,
.info-list article {
  background: linear-gradient(180deg, #fffafd, var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.install-info button,
.support-link {
  justify-self: start;
  margin-top: 4px;
}

.support-link {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
}

.plan-list strong,
.info-list strong {
  font-size: 15px;
}

.plan-list span,
.info-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.recent-item,
.recent-empty {
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  box-sizing: border-box;
  flex: 0 0 auto;
  gap: 8px;
  min-height: auto;
  overflow: hidden;
  padding: 12px 14px;
  position: relative;
}

.recent-item.has-report {
  cursor: pointer;
}

.recent-item.has-report:focus-visible {
  border-color: var(--accent);
  outline: 2px solid rgba(159, 69, 110, 0.24);
  outline-offset: 1px;
}

.recent-empty {
  align-items: start;
}

.recent-empty strong,
.recent-empty span {
  display: block;
}

.recent-empty strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.recent-primary,
.recent-secondary {
  align-items: baseline;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.recent-primary {
  align-items: center;
  justify-content: space-between;
}

.recent-primary time {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.recent-number {
  color: var(--ink);
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.2;
  min-width: 0;
}

.recent-risk-phone {
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
}

.recent-risk-phone svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 21px;
}

.recent-item.green .recent-risk-phone {
  color: var(--ok);
}

.recent-item.yellow .recent-risk-phone {
  color: var(--warn);
}

.recent-item.red .recent-risk-phone {
  color: var(--danger);
}

.recent-empty span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-secondary {
  align-items: center;
}

.recent-secondary .recent-category {
  color: var(--muted);
  flex: 1 1 auto;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-secondary small {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 11px;
}

.call-direction {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.call-direction-icon {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 15px;
}

.call-direction-icon.incoming {
  color: var(--ok);
}

.call-direction-icon.outgoing {
  color: #4778a8;
}

.call-direction-icon.missed,
.call-direction-icon.blocked {
  color: var(--danger);
}

.section-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-head.compact {
  margin-bottom: 16px;
}

.search-card {
  align-items: end;
  background: linear-gradient(180deg, #fffafd, var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) 132px;
  padding: 18px;
}

.search-actions {
  display: grid;
  gap: 8px;
}

.search-input {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 7px;
}

input,
select,
button {
  border-radius: 8px;
  font: inherit;
  min-height: 44px;
}

input,
select {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: #d995b5;
  box-shadow: 0 0 0 3px rgba(159, 69, 110, 0.14);
}

button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  background: #ffffff;
  border-color: var(--line);
  color: var(--accent);
}

.secondary-button:hover {
  background: #fffafd;
  border-color: var(--accent);
}

.danger-button {
  border-color: rgba(189, 39, 52, 0.28);
  color: var(--danger);
}

.danger-button:hover {
  background: #fff5f6;
  border-color: rgba(189, 39, 52, 0.52);
  color: var(--danger);
}

.toggle {
  align-items: center;
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
}

.toggle input {
  min-height: 16px;
  width: 16px;
}

.hidden {
  display: none !important;
}

.selected-number {
  align-items: center;
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  padding: 9px 11px;
}

.selected-number-copy {
  display: grid;
  gap: 2px;
}

.selected-number-copy span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.selected-number-copy strong {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.selected-number button {
  background: transparent;
  border-color: var(--line);
  color: var(--accent);
  font-size: 13px;
  min-height: 32px;
  padding: 6px 9px;
}

.result {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  min-height: 270px;
  padding: clamp(18px, 3vw, 28px);
}

.result.empty {
  align-items: center;
  color: var(--muted);
  display: flex;
}

.result.empty strong,
.result.empty span {
  display: block;
}

.result.empty strong {
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 6px;
}

.signal {
  border-left: 8px solid var(--line);
}

.signal.green {
  background: #eef8f4;
  border-color: #acd7c7;
  border-left-color: var(--ok);
}

.signal.yellow {
  background: #fff8e8;
  border-color: #f0d392;
  border-left-color: var(--warn);
}

.signal.red {
  background: #fff0f1;
  border-color: #e6a3aa;
  border-left-color: var(--danger);
}

.signal-head {
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.signal-head strong,
.signal-head span {
  display: block;
}

.signal-head strong {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
}

.signal-head span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.signal-light {
  border: 6px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 58px;
  width: 58px;
}

.green .signal-light {
  background: var(--ok);
}

.yellow .signal-light {
  background: var(--warn);
}

.red .signal-light {
  background: var(--danger);
}

.categories,
.origins {
  flex-wrap: wrap;
  gap: 8px;
}

.category,
.origin {
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 10px;
}

.category {
  background: #f3e9ef;
}

.category.yellow {
  background: #fff0c9;
  color: #734607;
}

.category.red {
  background: #ffe1e3;
  color: #8f1720;
}

.legal-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 16px 0 0;
}

.result-disclaimer {
  background: rgba(255, 250, 253, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 14px 0 0;
  padding: 10px 11px;
}

.persistent-disclaimer {
  margin-top: 12px;
}

.origins {
  margin-top: 12px;
}

.origin {
  background: rgba(255, 250, 253, 0.82);
  border: 1px solid var(--line);
  color: var(--ink);
}

.result-action {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--accent), white 58%);
  color: var(--accent);
  margin-top: 18px;
}

.result-action:hover {
  background: #fffafd;
  border-color: var(--accent);
}

.recent-add-report {
  align-items: center;
  background: rgba(159, 69, 110, 0.72);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(159, 69, 110, 0.18);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  margin: 0 0 0 auto;
  min-height: 44px;
  padding: 0;
  width: 44px;
}

.recent-add-report:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.recent-report-icon {
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.mini-note {
  background: linear-gradient(180deg, #fffafd, var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 13px;
}

.mini-note strong {
  font-size: 14px;
}

.mini-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.warning-note {
  border-color: #f0d392;
}

.warning-note strong {
  color: #734607;
}

.toast {
  background: #42263a;
  border-radius: 8px;
  bottom: 94px;
  box-shadow: var(--shadow);
  color: #ffffff;
  font-size: 14px;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 14px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 25;
}

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

.install-prompt {
  align-items: center;
  background: rgba(255, 250, 253, 0.86);
  backdrop-filter: blur(22px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  bottom: 88px;
  box-shadow: 0 18px 48px rgba(92, 45, 72, 0.14);
  color: var(--ink);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 13px 14px;
  position: fixed;
  transform: translateX(-50%);
  width: min(88vw, 520px);
  z-index: 14;
}

.install-prompt strong,
.install-prompt span {
  display: block;
}

.install-prompt strong {
  font-size: 14px;
  margin-bottom: 4px;
}

.install-prompt span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.install-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.install-actions button {
  min-height: 36px;
  padding: 7px 10px;
  white-space: nowrap;
}

#install-dismiss {
  font-size: 20px;
  line-height: 1;
  min-width: 36px;
  padding: 6px;
}

.bottom-nav {
  align-items: center;
  background: rgba(255, 250, 253, 0.42);
  backdrop-filter: blur(22px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  bottom: 12px;
  box-shadow: 0 18px 48px rgba(92, 45, 72, 0.13);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  left: 50%;
  max-width: 560px;
  padding: 8px 10px;
  position: fixed;
  transform: translateX(-50%);
  width: min(90vw, 560px);
  z-index: 15;
}

.bottom-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(159, 69, 110, 0.58);
  display: flex;
  font-size: 22px;
  justify-content: center;
  min-height: 54px;
  padding: 0;
}

.bottom-nav button.active {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.nav-bubble {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  min-width: 58px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.bottom-nav button.active .nav-bubble {
  background: rgba(159, 69, 110, 0.72);
  color: #fffafd;
  box-shadow: 0 10px 24px rgba(159, 69, 110, 0.18);
}

.bottom-nav button span {
  line-height: 1;
}

.bottom-nav .nav-icon {
  display: block;
  fill: none;
  height: 27px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  width: 27px;
}

.bottom-nav .search-icon {
  height: 29px;
  width: 29px;
}

.bottom-nav .report-icon {
  font-size: 27px;
  font-weight: 900;
}

.bottom-nav .info-icon {
  height: 28px;
  width: 28px;
}

.bottom-nav .info-icon .info-dot {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 920px) {
  .search-card {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 0 16px;
  }

  .access-wizard {
    padding: max(10px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  }

  .access-card {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px;
  }

  .access-mark {
    height: 48px;
    margin-bottom: 8px;
    width: 48px;
  }

  .access-card h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .access-copy {
    margin-bottom: 12px;
  }

  .topbar {
    gap: 8px;
  }

  .account-pill {
    max-width: 150px;
    padding: 7px 9px;
  }

  .account-logout {
    width: 36px;
  }

  .profile-card {
    align-items: stretch;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-actions {
    grid-column: 1 / -1;
  }

  .profile-actions button {
    width: 100%;
  }

  .language-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .app-main {
    height: calc(100vh - 90px - 74px);
  }

  .bottom-nav {
    gap: 4px;
    padding: 8px;
    width: min(94vw, 560px);
  }

  .toast {
    bottom: 92px;
  }

  .nav-bubble {
    min-width: 48px;
  }

  .install-prompt {
    align-items: flex-start;
    bottom: 86px;
    flex-direction: column;
    gap: 10px;
  }

  .install-actions {
    justify-content: space-between;
    width: 100%;
  }
}
