:root {
  --color-primary: #c24e3d;
  --color-primary-soft: #e7b1a3;
  --color-bg: #f5f2ee;
  --color-bg-alt: #eee8e2;
  --color-ink: #121212;
  --color-muted: #5f615f;
  --color-navy: #1e2738;

  --bg: var(--color-bg);
  --bg-2: #fffdf9;
  --surface: #ffffff;
  --surface-warm: #fff7f3;
  --brand: var(--color-primary);
  --brand-dark: #9d372b;
  --brand-soft: #f1c8bc;
  --danger: #b32121;
  --danger-soft: #fde7e2;
  --safe: #2fbf64;
  --safe-soft: #e4f5ec;
  --ink: #241f1d;
  --muted: var(--color-muted);
  --faint: #a79f9a;
  --line: #e8ddd5;
  --shadow: 0 16px 36px rgba(55, 39, 33, 0.11);
  --shadow-soft: 0 8px 18px rgba(55, 39, 33, 0.07);
  --radius: 18px;
  --radius-lg: 28px;
  --nav-height: 78px;
  font-family: "Manrope", "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--color-bg-alt);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.phone-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  box-shadow: 0 0 0 1px rgba(80, 49, 42, 0.06);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, #fffdf9 0%, #f5f2ee 100%);
  opacity: 0;
  transform: translateX(16px) scale(0.995);
  transition: opacity 180ms ease, transform 180ms ease;
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  padding: max(22px, env(safe-area-inset-top)) 22px 24px;
  -webkit-overflow-scrolling: touch;
}

.with-nav {
  padding-bottom: calc(var(--nav-height) + 24px + env(safe-area-inset-bottom));
}

.center-screen {
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
}

.onboarding-space {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
  letter-spacing: 0;
}

.muted,
.helper-text,
.fine-print {
  color: var(--muted);
  line-height: 1.5;
}

.helper-text,
.fine-print {
  font-size: 0.82rem;
}

.center-text {
  max-width: 320px;
}

.brand-lockup,
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup {
  flex-direction: column;
  gap: 10px;
}

.brand-lockup h1,
.brand-row span {
  color: var(--brand);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand-lockup p {
  color: var(--muted);
}

.brand-logo {
  object-fit: contain;
}

.brand-logo-main {
  width: min(180px, 44vw);
}

.brand-logo-mini {
  width: 36px;
  height: 36px;
}

.brand-logo-compact {
  width: 60px;
  height: 60px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--brand), #d77863);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.soft-loader {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(194, 78, 61, 0.16);
  border-top-color: var(--brand);
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-card,
.home-map-card,
.alert-info-card,
.summary-card,
.profile-card,
.status-card,
.benefit-item,
.rule-list,
.bullet-card,
.settings-section,
.participant-summary,
.auto-message,
.received-card,
.record-card,
.trusted-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(234, 219, 212, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.hero-card p,
.home-map-card p {
  color: var(--muted);
  line-height: 1.45;
}

.map-visual,
.zone-visual,
.permission-visual {
  position: relative;
  width: 100%;
  min-height: 150px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(194, 78, 61, 0.10), transparent 42%),
    repeating-linear-gradient(135deg, rgba(194, 78, 61, 0.05) 0 1px, transparent 1px 18px),
    #fff7f1;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-visual.large {
  min-height: 190px;
}

.map-radius {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 2px solid rgba(194, 78, 61, 0.26);
  background: radial-gradient(circle, rgba(194, 78, 61, 0.14), transparent 62%);
  animation: breathe 2.8s ease-in-out infinite;
}

.map-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  left: calc(50% - 11px);
  top: calc(50% - 11px);
  background: var(--brand);
  box-shadow: 0 0 0 8px rgba(194, 78, 61, 0.14);
}

.zone-visual {
  min-height: 180px;
}

.zone-visual span {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  left: calc(50% - 65px);
  top: 24px;
  background: radial-gradient(circle, rgba(194, 78, 61, 0.22), rgba(194, 78, 61, 0.05) 68%, transparent);
  border: 1px solid rgba(194, 78, 61, 0.18);
}

.permission-visual {
  min-height: 150px;
}

.permission-visual::before,
.permission-visual::after {
  content: "";
  position: absolute;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.permission-visual::before {
  width: 210px;
  height: 54px;
  left: 28px;
  top: 34px;
}

.permission-visual::after {
  width: 160px;
  height: 38px;
  right: 28px;
  bottom: 32px;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.98); opacity: 0.92; }
  50% { transform: scale(1.03); opacity: 1; }
}

.benefit-list {
  display: grid;
  gap: 10px;
}

.benefit-list.compact {
  margin: 10px 0;
}

.auth-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.benefit-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.benefit-item span {
  min-width: 76px;
  color: var(--brand);
  font-weight: 800;
}

.benefit-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar,
.app-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 20px 14px;
  background: rgba(255, 250, 246, 0.82);
  border-bottom: 1px solid rgba(234, 219, 212, 0.72);
  backdrop-filter: blur(18px);
}

.app-header.with-leading-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.topbar {
  justify-content: flex-start;
  font-weight: 750;
}

.topbar.translucent {
  background: transparent;
  border: none;
}

.app-header h2 {
  font-size: 1.45rem;
}

.eyebrow,
.step-pill {
  display: inline-flex;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-pill {
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.icon-btn.inverse {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

.btn-primary,
.btn-secondary,
.btn-safe,
.btn-link,
.small-action {
  border: 0;
  border-radius: 18px;
  min-height: 52px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
}

.btn-primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #df765f);
  box-shadow: 0 16px 28px rgba(194, 78, 61, 0.24);
}

.btn-secondary {
  width: 100%;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.btn-safe {
  width: 100%;
  color: #fff;
  background: linear-gradient(145deg, var(--safe), #52bf80);
  box-shadow: 0 14px 26px rgba(57, 159, 104, 0.22);
}

.btn-link {
  width: 100%;
  color: var(--brand-dark);
  background: transparent;
  min-height: 44px;
  box-shadow: none;
}

.small-action {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.btn-primary:active,
.btn-secondary:active,
.btn-safe:active,
.btn-link:active,
.small-action:active,
.icon-btn:active,
.bottom-nav button:active,
.alert-card:active {
  transform: scale(0.975);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  box-shadow: none;
  cursor: not-allowed;
}

.field-label {
  display: block;
  margin: 18px 0 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.input,
.select-like {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
  box-shadow: var(--shadow-soft);
}

.select-like {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input:focus {
  border-color: rgba(194, 78, 61, 0.55);
  box-shadow: 0 0 0 4px rgba(194, 78, 61, 0.10);
}

.check-row,
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.switch-row {
  justify-content: space-between;
}

.switch-row input {
  width: 46px;
  height: 26px;
  accent-color: var(--brand);
}

.rule-list,
.bullet-card,
.summary-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: var(--muted);
}

.rule-list p,
.bullet-card p {
  position: relative;
  padding-left: 18px;
}

.rule-list p::before,
.bullet-card p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.summary-card.center {
  justify-items: center;
  text-align: center;
}

#manual-zone-card {
  margin-top: 8px;
}

#manual-zone-card .input {
  background: #fff;
  box-shadow: none;
}

#manual-zone-card .btn-secondary {
  margin-top: 2px;
}

.chip-group {
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-group h3 {
  flex: 0 0 100%;
}

.chip-group button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  padding: 10px 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 120ms ease;
}

.chip-group button.selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.status-list,
.status-grid {
  display: grid;
  gap: 10px;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card {
  padding: 13px;
  min-width: 0;
}

.status-card span,
.status-list span,
.alert-info-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.status-card strong,
.status-list strong,
.alert-info-card strong {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.state-badge.safe {
  color: var(--safe);
  background: var(--safe-soft);
}

.state-badge.danger {
  color: #fff;
  background: var(--danger);
}

.alert-banner {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 22px;
  padding: 16px;
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: var(--shadow-soft);
}

.alert-banner span,
.alert-banner small {
  display: block;
  color: var(--muted);
}

.home-map-card {
  display: grid;
  grid-template-columns: 122px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.home-map-card .map-visual {
  min-height: 108px;
}

.home-map-card.tall {
  grid-template-columns: 1fr;
  text-align: center;
}

.sos-home {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 0 6px;
}

.sos-button {
  --progress: 0deg;
  position: relative;
  width: 184px;
  height: 184px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--danger) var(--progress), rgba(179, 33, 33, 0.13) 0deg);
  color: #fff;
  box-shadow: 0 20px 38px rgba(179, 33, 33, 0.22);
  cursor: pointer;
}

.sos-button.large {
  width: 210px;
  height: 210px;
}

.sos-button::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d93232, var(--danger));
}

.sos-button strong {
  position: relative;
  font-size: 2.4rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.sos-button:not(:disabled)::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(179, 33, 33, 0.16);
  animation: sosPulse 2.4s ease-in-out infinite;
}

.sos-button:disabled {
  filter: grayscale(0.45);
  opacity: 0.55;
}

@keyframes sosPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.18; }
}

.card-section {
  display: grid;
  gap: 10px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head span {
  color: var(--brand);
  font-weight: 850;
}

.alerts-list,
.records-list,
.trusted-list {
  display: grid;
  gap: 10px;
}

.alert-card,
.record-card,
.trusted-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-align: left;
}

.alert-card strong,
.record-card strong,
.trusted-card strong {
  display: block;
}

.alert-card small,
.record-card small,
.trusted-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.alert-card.far {
  opacity: 0.78;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.bottom-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: max(12px, env(safe-area-inset-bottom));
  height: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 7px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 219, 212, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.bottom-nav button {
  border: 0;
  border-radius: 18px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.bottom-nav button.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 18px rgba(194, 78, 61, 0.18);
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.settings-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin-top: 14px;
}

.settings-section.flush {
  margin-top: 18px;
}

.participant-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.participant-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(194, 78, 61, 0.11);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 850;
}

.status-pill.pending {
  background: #fff1cc;
  color: #8a6515;
}

.status-pill.accepted {
  background: var(--safe-soft);
  color: var(--safe);
}

.status-pill.rejected,
.status-pill.removed {
  background: var(--danger-soft);
  color: var(--danger);
}

.trusted-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

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

.setting-row {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 246, 0.8);
  color: var(--ink);
  text-align: left;
  padding: 12px 14px;
}

.setting-row span,
.setting-row small {
  display: block;
}

.setting-row small {
  margin-top: 3px;
  color: var(--muted);
}

.setting-row.readonly {
  display: block;
}

.emergency-soft {
  background:
    radial-gradient(circle at 50% 24%, rgba(179, 33, 33, 0.13), transparent 36%),
    linear-gradient(180deg, #fff8f5, #f9f0ec);
}

.emergency-screen {
  background: linear-gradient(180deg, #fff7f4, #f8eee9);
}

.app-header.danger {
  background: rgba(179, 33, 33, 0.95);
  color: #fff;
  border: 0;
}

.app-header.danger .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.countdown {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 3rem;
  font-weight: 950;
  box-shadow: 0 18px 36px rgba(179, 33, 33, 0.22);
}

.steps-line {
  width: 230px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(179, 33, 33, 0.12);
}

.steps-line span {
  display: block;
  height: 100%;
  width: 33%;
  border-radius: inherit;
  background: var(--danger);
  animation: sendingLine 3s linear forwards;
}

@keyframes sendingLine {
  to { width: 100%; }
}

.chat-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-action-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.map-action-head strong {
  display: block;
  font-size: 0.9rem;
}

.map-action-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.map-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.map-btn {
  min-height: 44px;
  padding: 10px;
  font-size: 0.78rem;
}

.alert-info-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
}

.auto-message {
  padding: 16px;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-line;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
}

.msg {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 17px;
  line-height: 1.42;
  word-break: break-word;
  box-shadow: var(--shadow-soft);
}

.msg.mine {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.msg.other {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.msg.system {
  align-self: center;
  max-width: 94%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: none;
  font-size: 0.82rem;
  text-align: center;
}

.msg small,
.msg span {
  display: block;
}

.msg small {
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.74;
}

.chat-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 250, 246, 0.9);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.chat-footer.stacked {
  grid-template-columns: 1fr;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-input {
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

.send-btn {
  min-width: 70px;
  min-height: 48px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.success-check {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--safe);
  font-size: 2.6rem;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(57, 159, 104, 0.22);
}

.floating-secondary {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(80px + env(safe-area-inset-bottom));
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  width: min(360px, calc(100vw - 28px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(36, 24, 22, 0.92);
  color: #fff;
  box-shadow: 0 16px 32px rgba(36, 24, 22, 0.20);
  transition: opacity 180ms ease, transform 180ms ease;
  text-align: center;
  font-weight: 700;
}

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

.hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
