:root {
  --portal-bg: #f4f5f7;
  --portal-card: rgba(255, 255, 255, 0.97);
  --portal-ink: #111827;
  --portal-muted: #6b7280;
  --portal-line: rgba(17, 24, 39, 0.09);
  --portal-accent: #8c7a3d;
  --portal-accent-dark: #64562a;
  --portal-accent-soft: #f3ecce;
  --portal-warm: #faf7ee;
  --portal-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }
body.portal-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--portal-ink);
  background:
    radial-gradient(circle at top left, rgba(140, 122, 61, 0.14), transparent 36%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 28%),
    linear-gradient(180deg, #f7faf9 0%, var(--portal-bg) 100%);
}
.portal-auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px 96px; }
.portal-auth-card { width: 100%; max-width: 460px; background: var(--portal-card); border: 1px solid var(--portal-line); border-radius: 28px; box-shadow: var(--portal-shadow); padding: 26px; }
.portal-auth-wide { max-width: 720px; }
.portal-brand, .portal-app-brand { display: flex; align-items: center; gap: 14px; }
.portal-brand-link { color: inherit; text-decoration: none; }
.portal-brand img, .portal-app-brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 16px; background: #fff; padding: 6px; }
.portal-brand-title, .portal-app-title { font-size: 1.05rem; font-weight: 800; }
.portal-brand-subtitle, .portal-app-subtitle, .portal-muted { color: var(--portal-muted); }
.portal-copy h1 { margin: 22px 0 8px; font-size: 2rem; font-weight: 800; }
.portal-copy p { margin: 0 0 20px; color: var(--portal-muted); }
.portal-form { display: grid; gap: 14px; }
.portal-grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.portal-grid-span { grid-column: 1 / -1; }
.portal-label { font-size: 0.92rem; font-weight: 700; color: var(--portal-ink); }
.portal-input { min-height: 50px; border-radius: 16px; border: 1px solid var(--portal-line); background: rgba(255, 255, 255, 0.92); }
.portal-inline-input { width: min(240px, 100%); }
.portal-primary-btn, .portal-secondary-btn {
  min-height: 52px;
  border-radius: 18px;
  border: 0;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(0);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.portal-primary-btn { color: #fff; background: linear-gradient(135deg, var(--portal-accent) 0%, var(--portal-accent-dark) 100%); }
.portal-secondary-btn { color: var(--portal-ink); background: var(--portal-warm); border: 1px solid rgba(17, 24, 39, 0.08); }
.portal-primary-btn:hover, .portal-secondary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.portal-primary-btn:active, .portal-secondary-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16), inset 0 2px 3px rgba(0, 0, 0, 0.08);
}
.portal-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.94rem; }
.portal-link, .portal-footer-links a { color: var(--portal-accent-dark); text-decoration: none; font-weight: 700; }
.portal-footer-links { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; }
.portal-two-step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portal-app-shell { min-height: 100vh; padding: 18px 16px 132px; }
.portal-app-shell { overflow-x: clip; }
body.portal-body { overflow-x: hidden; }
body.portal-body { overscroll-behavior-y: contain; }
.portal-app-header { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; margin-bottom: 18px; }
.portal-icon-btn, .portal-whatsapp-btn { border: 0; border-radius: 16px; min-width: 46px; min-height: 46px; display: grid; place-items: center; text-decoration: none; font-weight: 800; }
.portal-icon-btn { background: rgba(255, 255, 255, 0.85); }
.portal-whatsapp-btn { color: #fff; background: #1f8f58; }
.portal-whatsapp-btn svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-notification-btn { position: relative; color: var(--portal-accent-dark); }
.portal-notification-icon {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  color: transparent;
  background: currentColor;
  box-shadow: 0 0 0 7px rgba(140, 122, 61, 0.12), 0 0 0 14px rgba(140, 122, 61, 0.05);
}
.portal-notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d97706;
  border: 2px solid #fff;
  font-size: 0.72rem;
  font-weight: 900;
}
.portal-notification-backdrop {
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
}
.portal-notification-panel {
  position: fixed;
  top: 76px;
  left: 12px;
  right: 12px;
  z-index: 300;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--portal-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.portal-notification-item {
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,247,238,0.72) 100%);
}
.portal-notification-item.is-unread {
  border-color: rgba(140, 122, 61, 0.45);
  box-shadow: 0 12px 30px rgba(140, 122, 61, 0.12);
}
.portal-notification-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}
.portal-notification-title span {
  min-width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d97706;
}
.portal-notification-item:not(.is-unread) .portal-notification-title span { background: #cbd5e1; }
.portal-notification-body { color: var(--portal-muted); margin: 6px 0 10px; font-size: 0.9rem; }
.portal-notification-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.portal-content { display: grid; gap: 18px; }
.portal-badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-badge-chip { padding: 10px 14px; border-radius: 999px; background: var(--portal-accent-soft); font-size: 0.85rem; font-weight: 800; }
.portal-referral-cta {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #8c7a3d 0%, #4f4a19 100%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.portal-referral-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.portal-home-carousel { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scroll-snap-type: x mandatory; max-width: 100%; scrollbar-width: none; }
.portal-home-carousel::-webkit-scrollbar { display: none; }
.portal-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(100%, 100%); gap: 14px; width: 100%; min-width: 100%; }
.portal-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.portal-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 24, 39, 0.18);
  padding: 0;
}
.portal-carousel-dot.is-active {
  width: 22px;
  background: linear-gradient(135deg, var(--portal-accent) 0%, var(--portal-accent-dark) 100%);
}
.portal-campaign-slide {
  min-height: 230px;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid var(--portal-line);
  border-radius: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(140, 122, 61, 0.20), transparent 34%),
    linear-gradient(135deg, #fff 0%, #faf7ee 100%);
  box-shadow: var(--portal-shadow);
}
.portal-campaign-slide img,
.portal-campaign-fallback {
  width: 118px;
  height: 118px;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(140, 122, 61, 0.12);
  display: grid;
  place-items: center;
  color: var(--portal-accent-dark);
}
.portal-campaign-fallback svg { width: 42px; height: 42px; stroke: currentColor; fill: none; }
.portal-campaign-slide h3 { margin: 12px 0 8px; font-weight: 900; }
.portal-campaign-slide p { margin: 0; color: var(--portal-muted); }
.portal-news-feed { display: grid; gap: 10px; }
.portal-news-row {
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  text-align: left;
  align-items: center;
}
.portal-news-row span {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--portal-accent-dark);
  background: var(--portal-accent-soft);
}
.portal-news-row svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.portal-news-row strong { font-weight: 900; }
.portal-news-row small { color: var(--portal-muted); }
.portal-priority-shell {
  background:
    radial-gradient(circle at top left, rgba(140, 122, 61, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.99) 0%, rgba(247,250,252,0.94) 100%);
}
.portal-priority-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(255,255,255,0.76); border: 1px solid rgba(140, 122, 61, 0.10); box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06); }
.portal-priority-summary-main {
  display: grid;
  place-items: center;
  flex: 0 0 84px;
  width: 84px;
  min-height: 84px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f7e7a5 0%, #8b7f2a 58%, #4f4a19 100%);
  color: #fff;
}
.portal-priority-summary-main strong { font-size: 1.7rem; line-height: 1; }
.portal-priority-summary-main span { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.92; }
.portal-priority-summary-meta { flex: 1 1 auto; display: flex; gap: 10px; align-items: center; min-width: 0; color: var(--portal-muted); font-size: 0.86rem; font-weight: 700; white-space: nowrap; overflow: hidden; }
.portal-priority-summary-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.portal-priority-chev { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; flex: 0 0 auto; color: var(--portal-accent-dark); background: rgba(140, 122, 61, 0.12); }
.portal-priority-chev svg { width: 16px; height: 16px; stroke: currentColor; fill: none; transition: transform 0.2s ease; }
.portal-priority-toggle[aria-expanded="true"] .portal-priority-chev svg { transform: rotate(180deg); }
.portal-priority-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 6px;
  text-align: left;
}
.portal-priority-toggle .portal-priority-summary {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.portal-priority-toggle:active .portal-priority-summary,
.portal-priority-toggle:hover .portal-priority-summary {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
.portal-priority-kicker {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--portal-accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portal-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.portal-priority-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 176px;
  padding: 16px;
  border: 1px solid var(--portal-line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.portal-priority-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--portal-accent);
}
.portal-priority-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  color: var(--portal-accent-dark);
}
.portal-priority-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-priority-card h4 { margin: 6px 0 6px; font-size: 1rem; font-weight: 900; }
.portal-priority-card p { margin: 0; color: var(--portal-muted); font-size: 0.86rem; }
.portal-priority-meta { color: var(--portal-muted); font-size: 0.76rem; font-weight: 800; }
.portal-priority-card .portal-secondary-btn { justify-self: start; min-height: 42px; padding-inline: 14px; }
.portal-priority-shell h3 { font-size: 1.15rem; }
.portal-priority-shell .portal-section-head { align-items: center; }
.portal-priority-shell .portal-muted { font-size: 0.88rem; }
.portal-priority-card.is-hot { background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%); }
.portal-priority-card.is-hot::after { background: #f97316; }
.portal-priority-card.is-warm { background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%); }
.portal-priority-card.is-warm::after { background: #d97706; }
.portal-priority-card.is-info { background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%); }
.portal-priority-card.is-info::after { background: #3b82f6; }
.portal-priority-card.is-calm { background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%); }
.portal-priority-card.is-calm::after { background: #22c55e; }
.portal-priority-card.is-soft { background: linear-gradient(180deg, #faf7ee 0%, #ffffff 100%); }
.portal-priority-card.is-family { background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%); }
.portal-priority-card.is-family::after { background: #8b5cf6; }
.portal-priority-card.is-clean { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.portal-priority-card.is-clean::after { background: #64748b; }
.portal-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-picto-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.portal-category-grid { margin-top: 8px; }
.portal-action-grid { margin-top: 6px; }
.portal-category-grid,
.portal-action-grid {
  padding: 12px;
  border-radius: 24px;
}
.portal-category-grid {
  background: linear-gradient(180deg, rgba(248, 243, 225, 0.72) 0%, rgba(255, 255, 255, 0.28) 100%);
  border: 1px solid rgba(140, 122, 61, 0.10);
}
.portal-action-grid {
  background: linear-gradient(180deg, rgba(239, 244, 251, 0.90) 0%, rgba(255, 255, 255, 0.40) 100%);
  border: 1px solid rgba(59, 130, 246, 0.08);
}
.portal-action-grid.is-empty {
  display: block;
  padding: 14px 16px;
}
.portal-action-grid {
  display: none !important;
}
.portal-support-action-placeholder {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.portal-picto-card {
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,247,238,0.92) 100%);
  padding: 16px;
  display: grid;
  gap: 10px;
  justify-items: start;
  text-align: left;
  box-shadow: var(--portal-shadow);
}
.portal-card-chev { justify-self: end; color: var(--portal-muted); opacity: 0.65; }
.portal-card-chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.portal-category-card {
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.portal-category-card.is-expanded .portal-card-chev svg {
  transform: rotate(180deg);
}
.portal-inline-actions {
  grid-column: 1 / -1;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  overflow: hidden;
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
}
.portal-category-card.is-expanded .portal-inline-actions {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.portal-inline-action-btn {
  border: 1px dashed rgba(17, 24, 39, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.portal-inline-action-btn .portal-picto-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}
.portal-inline-action-btn strong {
  font-size: 0.86rem;
  font-weight: 850;
}
.portal-category-grid .portal-picto-card {
  min-height: 172px;
  padding: 18px;
}
.portal-category-card.portal-category-vehicle {
  background: linear-gradient(180deg, rgba(255, 248, 220, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.portal-category-card.portal-category-health {
  background: linear-gradient(180deg, rgba(231, 245, 241, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.portal-category-card.portal-category-home {
  background: linear-gradient(180deg, rgba(244, 239, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.portal-category-card.portal-category-other {
  background: linear-gradient(180deg, rgba(245, 241, 233, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.portal-picto-card.is-active {
  border-color: rgba(140, 122, 61, 0.55);
  background: linear-gradient(180deg, rgba(243,236,206,0.95) 0%, rgba(255,255,255,0.98) 100%);
  transform: translateY(-1px);
}
.portal-action-grid .portal-picto-card {
  min-height: 96px;
  padding: 12px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,247,250,0.98) 100%);
  border-style: dashed;
}
.portal-action-grid[data-category="vehicle"] .portal-action-card {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.portal-action-grid[data-category="health"] .portal-action-card {
  background: linear-gradient(180deg, rgba(236, 252, 245, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.portal-action-grid[data-category="home"] .portal-action-card {
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.portal-action-grid[data-category="other"] .portal-action-card {
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.portal-picto-card-sm { min-height: 118px; }
.portal-picto-card-sm { min-height: 104px; }
.portal-picto-card strong { font-size: 1rem; }
.portal-picto-card span:last-child { color: var(--portal-muted); font-size: 0.88rem; }
.portal-action-hint { color: var(--portal-muted); font-size: 0.82rem; line-height: 1.35; }
.portal-picto-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--portal-accent-soft);
  color: var(--portal-accent-dark);
  font-weight: 800;
}
.portal-picto-icon svg,
.portal-nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-category-card.portal-category-vehicle .portal-picto-icon { background: rgba(245, 158, 11, 0.14); color: #9a3412; }
.portal-category-card.portal-category-health .portal-picto-icon { background: rgba(16, 185, 129, 0.14); color: #047857; }
.portal-category-card.portal-category-home .portal-picto-icon { background: rgba(139, 92, 246, 0.14); color: #6d28d9; }
.portal-category-card.portal-category-other .portal-picto-icon { background: rgba(120, 113, 108, 0.14); color: #57534e; }
.portal-action-grid[data-category="vehicle"] .portal-action-card .portal-picto-icon { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.portal-action-grid[data-category="health"] .portal-action-card .portal-picto-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }
.portal-action-grid[data-category="home"] .portal-action-card .portal-picto-icon { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.portal-action-grid[data-category="other"] .portal-action-card .portal-picto-icon { background: rgba(107, 114, 128, 0.12); color: #4b5563; }
.portal-tool-card { padding: 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,247,238,0.96) 100%); border: 1px solid var(--portal-line); box-shadow: var(--portal-shadow); }
.portal-tool-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; }
.portal-tool-card p { margin: 0; color: var(--portal-muted); font-size: 0.9rem; }
.portal-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.portal-wallet-shell { background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248, 250, 252, 0.94) 100%); }
.portal-wallet-command {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.portal-wallet-score {
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f7e7a5 0%, #8b7f2a 55%, #4f4a19 100%);
  color: #fff;
  width: 120px;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 18px 40px rgba(79, 74, 25, 0.22), inset 0 1px 0 rgba(255,255,255,0.55);
}
.portal-wallet-score strong { display: block; font-size: 2rem; line-height: 1; }
.portal-wallet-score span { display: block; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; }
.portal-wallet-insights {
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  padding: 14px;
  display: flex;
  align-items: center;
  align-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.portal-wallet-perfect {
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}
.portal-wallet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}
.portal-wallet-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(140, 122, 61, 0.12);
  color: var(--portal-accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
}
.portal-wallet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-wallet-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  padding: 0;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}
.portal-wallet-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -42px auto;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  opacity: 0.22;
  pointer-events: none;
}
.portal-wallet-card h3 { margin: 0; font-size: 1rem; font-weight: 900; }
.portal-wallet-card p { margin: 0; color: var(--portal-muted); font-size: 0.84rem; }
.portal-wallet-bar {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}
.portal-wallet-bar strong { display: block; font-weight: 900; }
.portal-wallet-bar small { display: block; color: var(--portal-muted); font-size: 0.78rem; }
.portal-wallet-plate { display: inline-flex; margin-top: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(140, 122, 61, 0.12); color: var(--portal-accent-dark); font-size: 0.76rem; font-weight: 900; }
.portal-wallet-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}
.portal-wallet-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-wallet-status {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}
.portal-wallet-chevron svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.2s ease;
}
.portal-wallet-detail {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}
.portal-wallet-card.is-open .portal-wallet-detail { display: block; }
.portal-wallet-card.is-open .portal-wallet-chevron svg { transform: rotate(180deg); }
.portal-wallet-card.is-active {
  border-color: rgba(22, 163, 74, 0.16);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.92) 0%, rgba(255,255,255,0.98) 82%);
}
.portal-wallet-card.is-active::after { background: #22c55e; }
.portal-wallet-card.is-active .portal-wallet-icon,
.portal-wallet-card.is-active .portal-wallet-status {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}
.portal-wallet-card.is-soon {
  border-color: rgba(245, 158, 11, 0.20);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(255,255,255,0.98) 82%);
}
.portal-wallet-card.is-soon::after { background: #f59e0b; }
.portal-wallet-card.is-soon .portal-wallet-icon,
.portal-wallet-card.is-soon .portal-wallet-status {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}
.portal-wallet-card.is-missing {
  border-color: rgba(220, 38, 38, 0.16);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.92) 0%, rgba(255,255,255,0.98) 82%);
}
.portal-wallet-card.is-missing::after { background: #ef4444; }
.portal-wallet-card.is-missing .portal-wallet-icon,
.portal-wallet-card.is-missing .portal-wallet-status {
  background: rgba(220, 38, 38, 0.11);
  color: #991b1b;
}
.portal-emergency-shell {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.10), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255, 247, 237, 0.94) 100%);
}
.portal-emergency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-emergency-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 10px;
  min-height: 188px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}
.portal-emergency-card h4 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.portal-emergency-card p { margin: 0; color: var(--portal-muted); font-size: 0.88rem; }
.portal-emergency-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}
.portal-emergency-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-emergency-card.is-vehicle { background: linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(255,255,255,0.98) 100%); }
.portal-emergency-card.is-health { background: linear-gradient(180deg, rgba(236, 253, 245, 0.98) 0%, rgba(255,255,255,0.98) 100%); }
.portal-emergency-card.is-home { background: linear-gradient(180deg, rgba(245, 243, 255, 0.98) 0%, rgba(255,255,255,0.98) 100%); }
.portal-emergency-card.is-vehicle .portal-emergency-icon { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.portal-emergency-card.is-health .portal-emergency-icon { background: rgba(16, 185, 129, 0.14); color: #047857; }
.portal-emergency-card.is-home .portal-emergency-icon { background: rgba(139, 92, 246, 0.14); color: #6d28d9; }
.portal-risk-shell {
  background:
    radial-gradient(circle at top right, rgba(140, 122, 61, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(246, 248, 244, 0.96) 100%);
}
.portal-risk-shell.is-clean {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(240, 253, 244, 0.92) 100%);
}
.portal-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.portal-risk-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}
.portal-risk-card .portal-secondary-btn { grid-column: 1 / -1; justify-self: start; }
.portal-risk-card h4 { margin: 6px 0 6px; font-size: 1.02rem; font-weight: 900; }
.portal-risk-card p { margin: 0; color: var(--portal-muted); font-size: 0.88rem; }
.portal-risk-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}
.portal-risk-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-risk-card.is-high {
  border-color: rgba(220, 38, 38, 0.16);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.92) 0%, rgba(255,255,255,0.98) 88%);
}
.portal-risk-card.is-medium {
  border-color: rgba(245, 158, 11, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.94) 0%, rgba(255,255,255,0.98) 88%);
}
.portal-risk-card.is-low {
  border-color: rgba(34, 197, 94, 0.14);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.92) 0%, rgba(255,255,255,0.98) 88%);
}
.portal-risk-card.is-high .portal-risk-icon,
.portal-risk-card.is-high .portal-risk-chip {
  background: rgba(220, 38, 38, 0.11);
  color: #991b1b;
}
.portal-risk-card.is-medium .portal-risk-icon,
.portal-risk-card.is-medium .portal-risk-chip {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}
.portal-risk-card.is-low .portal-risk-icon,
.portal-risk-card.is-low .portal-risk-chip {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}
.portal-risk-chip {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}
.portal-risk-clean {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}
.portal-risk-clean span { color: var(--portal-muted); }
.portal-family-shell {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(240, 249, 255, 0.92) 100%);
}
.portal-family-command {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.portal-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.portal-family-card {
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}
.portal-family-policy-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(238, 243, 241, 0.82);
}
.portal-accordion-bar {
  width: 100%;
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}
.portal-accordion-bar > span:first-child {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--portal-accent-dark);
  background: var(--portal-accent-soft);
}
.portal-accordion-bar svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.portal-accordion-bar small { color: var(--portal-muted); }
.portal-accordion-bar i svg { transition: transform 0.2s ease; }
.portal-accordion-bar.is-open i svg { transform: rotate(180deg); }
.portal-accordion-body { display: none; padding: 14px; }
.portal-accordion-body.is-open { display: block; }
.portal-quote-choice {
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(135deg, #fff 0%, #faf7ee 100%);
}
.portal-quote-choice-card {
  border: 1px solid rgba(140, 122, 61, 0.12);
  border-radius: 20px;
  background: rgba(255,255,255,0.95);
  padding: 12px;
  display: grid;
  gap: 8px;
}
.portal-quote-hint { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(140, 122, 61, 0.08); color: var(--portal-muted); min-width: 0; }
.portal-quote-hint span { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: var(--portal-accent-dark); background: rgba(255,255,255,0.9); flex: 0 0 auto; }
.portal-quote-hint svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.portal-quote-hint small {
  min-width: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portal-quote-choice-card .portal-tool-actions .portal-primary-btn,
.portal-quote-choice-card .portal-tool-actions .portal-secondary-btn {
  min-height: 50px;
  padding-inline: 16px;
  font-weight: 900;
}
.portal-quote-whatsapp {
  background: linear-gradient(135deg, #1f9d55 0%, #0f7a43 100%);
  color: #fff;
  border: 0;
}
.portal-quote-form {
  background: linear-gradient(135deg, #8c7a3d 0%, #4f4a19 100%);
  color: #fff;
  border: 0;
}
.portal-quote-select {
  min-height: 48px;
}
.portal-quote-requests-shell {
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  padding: 12px 14px;
  background: #fff;
}
.portal-quote-requests-shell[open] .portal-quote-requests-toggle::after { transform: rotate(180deg); }
.portal-quote-requests-toggle {
  cursor: pointer;
  font-weight: 900;
  color: var(--portal-ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.portal-quote-requests-toggle::-webkit-details-marker {
  display: none;
}
.portal-quote-requests-toggle::after { content: ""; width: 16px; height: 16px; flex: 0 0 auto; background: currentColor; clip-path: polygon(50% 72%, 84% 28%, 100% 42%, 50% 95%, 0 42%, 16% 28%); opacity: 0.55; transition: transform 0.18s ease; }
.portal-quote-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.portal-quote-stepper span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
}
.portal-quote-choice-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.portal-quote-choice-card strong { display: block; font-size: 1.05rem; }
.portal-quote-choice .portal-secondary-btn svg {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  stroke: currentColor;
  fill: none;
  vertical-align: -4px;
}
.portal-quote-choice .btn.is-selected {
  outline: 2px solid rgba(140, 122, 61, 0.28);
  box-shadow: 0 10px 24px rgba(140, 122, 61, 0.12);
}
.portal-soft-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(31, 41, 55, 0.05);
  color: var(--portal-muted);
  font-size: 0.92rem;
  border: 1px dashed rgba(31, 41, 55, 0.16);
}
.portal-wallet-cta-row { display: flex; justify-content: flex-start; }
.portal-wallet-cta-row .portal-primary-btn { min-height: 48px; }
.portal-view h2 { font-size: 1.25rem; }
.portal-info-card h3 { font-size: 1.02rem; }
.portal-policy-card, .portal-content-card, .portal-info-card { overflow: hidden; }
.portal-section-head h2 { font-size: 1.18rem; }
.portal-wallet-shell .portal-section-head h3 { font-size: 0.98rem; }
.portal-wallet-shell .portal-muted { font-size: 0.84rem; }
.portal-badge-row { gap: 8px; }
.portal-badge-chip.portal-referral-cta { background: linear-gradient(135deg, #1f2937 0%, #8c7a3d 100%); color: #fff; }
.portal-view { display: none; }
.portal-view.active { display: block; }
.portal-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 14px; }
.portal-section-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.portal-card-list { display: grid; gap: 14px; }
.portal-policy-card, .portal-content-card, .portal-info-card { background: var(--portal-card); border: 1px solid var(--portal-line); border-radius: 24px; padding: 18px; box-shadow: var(--portal-shadow); }
.portal-content-card { overflow: hidden; }
.portal-content-card.clickable { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.portal-content-card.clickable:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14); }
.portal-policy-top, .portal-content-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.portal-policy-type { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--portal-accent-soft); font-weight: 800; }
.portal-policy-meta { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-policy-meta div, .portal-profile-row { padding: 12px 14px; border-radius: 16px; background: rgba(238, 243, 241, 0.9); }
.portal-policy-headline { display: flex; align-items: center; gap: 10px; }
.portal-policy-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(140, 122, 61, 0.10);
  font-size: 1.2rem;
}
.portal-policy-status {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  font-weight: 800;
}
.portal-policy-status.is-success {
  background: rgba(22, 163, 74, 0.10);
  color: #166534;
}
.portal-policy-status.is-warning {
  background: rgba(180, 83, 9, 0.12);
  color: #9a3412;
}
.portal-policy-status.is-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}
.portal-policy-link { display: inline-flex; margin-top: 14px; text-decoration: none; font-weight: 800; color: var(--portal-accent-dark); }
.portal-policy-source { margin-top: 8px; font-size: 0.82rem; color: var(--portal-muted); }
.portal-policy-smart-actions {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(140, 122, 61, 0.12), transparent 38%),
    rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(17, 24, 39, 0.06);
}
.portal-smart-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(140, 122, 61, 0.20);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--portal-accent-dark);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}
.portal-smart-action-btn span {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
}
.portal-smart-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-menu-stack { display: grid; gap: 12px; }
.portal-menu-item { text-align: left; background: var(--portal-card); border: 1px solid var(--portal-line); border-radius: 18px; padding: 16px 18px; font-weight: 700; }
.portal-settings-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-bottom-nav { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(64px, 1fr)); gap: 8px; padding: 10px; border-radius: 24px; background: rgba(255,255,255,0.92); border: 1px solid var(--portal-line); box-shadow: var(--portal-shadow); }
.portal-bottom-nav { will-change: transform; transform: translateZ(0); }
.portal-bottom-nav button { min-height: 54px; border: 0; border-radius: 16px; font-size: 0.82rem; font-weight: 800; color: var(--portal-muted); background: transparent; display: grid; gap: 4px; justify-items: center; align-content: center; padding: 6px 4px; min-width: 0; }
.portal-bottom-nav button.active { color: #fff; background: linear-gradient(135deg, var(--portal-accent) 0%, var(--portal-accent-dark) 100%); }
.portal-nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(140, 122, 61, 0.12);
  color: var(--portal-accent-dark);
  font-weight: 800;
}
.portal-bottom-nav button.active .portal-nav-icon {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}
.portal-bottom-nav .portal-nav-quote {
  color: #fff;
  background: linear-gradient(135deg, #1f2937 0%, #8c7a3d 100%);
  transform: translateY(-16px);
  min-height: 68px;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.24);
}
.portal-bottom-nav .portal-nav-quote .portal-nav-icon {
  color: #fff;
  background: rgba(255,255,255,0.18);
}
.portal-wallet-shell .portal-section-head { align-items: center; }
.portal-wallet-shell .portal-muted { font-size: 0.88rem; }
.portal-wallet-command {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}
.portal-wallet-score {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(140, 122, 61, 0.16) 0%, rgba(140, 122, 61, 0.08) 100%);
  text-align: center;
}
.portal-wallet-score strong { font-size: 2.3rem; line-height: 1; font-weight: 900; color: var(--portal-accent-dark); }
.portal-wallet-score span { font-size: 0.78rem; color: var(--portal-muted); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.portal-wallet-insights { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.portal-wallet-insights .portal-primary-btn { min-height: 44px; }
.portal-wallet-score-cta { background: linear-gradient(135deg, #8c7a3d 0%, #f59e0b 100%); color: #fff; border: 0; box-shadow: 0 16px 32px rgba(140, 122, 61, 0.22); }
.portal-wallet-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.portal-wallet-card { border: 1px solid var(--portal-line); border-radius: 22px; overflow: hidden; background: #fff; }
.portal-compact-copy { font-size: 0.92rem; line-height: 1.45; color: var(--portal-ink); }
.portal-referral-people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.portal-referral-person { padding: 8px 10px; border-radius: 999px; background: rgba(17, 35, 29, 0.06); font-size: 0.86rem; font-weight: 700; }
.portal-qr-box { display: grid; place-items: center; gap: 10px; padding: 18px; margin-top: 12px; border-radius: 22px; background: rgba(15, 138, 99, 0.06); }
.portal-qr-box img { width: 180px; height: 180px; border-radius: 18px; background: #fff; padding: 10px; }
.portal-support-guide { margin: 8px 0 4px; padding: 12px 14px; border-radius: 18px; background: var(--portal-warm); border: 1px solid var(--portal-line); }
.portal-policy-card .portal-tool-actions .portal-primary-btn { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); }
.portal-support-step { padding: 10px 0; border-bottom: 1px solid rgba(17, 24, 39, 0.08); }
.portal-support-step:last-child { border-bottom: 0; }
.portal-support-checks { display: grid; gap: 10px; padding: 8px 0; }
.portal-status-note {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(140, 122, 61, 0.12);
  color: var(--portal-accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
}
.portal-support-mini.is-collapsed { display: none; }
.portal-support-mini { margin-top: 4px; }
.portal-accordion-bar.portal-support-toggle {
  border-radius: 18px;
  padding: 14px 16px;
  gap: 10px;
}
.portal-accordion-bar.portal-support-toggle strong { font-size: 0.98rem; }
.portal-accordion-bar.portal-support-toggle small { font-size: 0.8rem; }
.portal-accordion-body.is-open { padding: 12px 0 4px; }
.portal-status-note.is-error {
  background: rgba(185, 28, 28, 0.10);
  color: #991b1b;
}
.portal-status-note.is-warning {
  background: rgba(180, 83, 9, 0.12);
  color: #9a3412;
}
.portal-content-image {
  width: 100%;
  height: clamp(160px, 24vw, 210px);
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  background: #fff;
  display: block;
}
.portal-detail-image {
  width: 100%;
  height: clamp(180px, 28vw, 280px);
  object-fit: cover;
  border-radius: 20px;
  background: #fff;
}
.portal-detail-body {
  white-space: pre-wrap;
  color: var(--portal-ink);
}
.portal-admin-shell { min-height: 100vh; padding: 24px 18px 48px; }
.portal-admin-header { margin-bottom: 24px; }
.portal-admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.portal-admin-tab {
  border: 1px solid var(--portal-line);
  background: #fff;
  color: var(--portal-ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 16px;
  font-weight: 700;
}
.portal-admin-tab.is-active { background: var(--portal-accent-soft); border-color: var(--portal-accent); color: var(--portal-accent-strong); }
.portal-admin-panel[data-admin-section] { display: none; }
.portal-admin-panel[data-admin-section].is-active { display: block; }
.portal-admin-grid { display: grid; gap: 18px; grid-template-columns: 1.15fr 1fr 1fr; }
.portal-admin-panel { background: var(--portal-card); border: 1px solid var(--portal-line); border-radius: 24px; padding: 20px; box-shadow: var(--portal-shadow); }
.portal-admin-notification-card { border-left: 5px solid var(--portal-accent); }
@media (max-width: 900px) {
  .portal-admin-shell { padding: 14px 10px 30px; }
  .portal-admin-panel { padding: 14px; border-radius: 18px; }
  .portal-admin-header .portal-app-brand { width: 100%; }
  .portal-admin-header .btn { width: 100%; min-height: 46px; }
  .portal-admin-tab { flex: 1 1 calc(50% - 10px); justify-content: center; }
}
@media (max-width: 720px) {
  .portal-grid-form, .portal-two-step, .portal-policy-meta, .portal-tool-grid, .portal-picto-grid, .portal-settings-summary, .portal-wallet-grid, .portal-emergency-grid, .portal-risk-grid, .portal-family-grid, .portal-priority-grid { grid-template-columns: 1fr 1fr; }
  .portal-wallet-command { grid-template-columns: 1fr; }
  .portal-copy h1 { font-size: 1.7rem; }
  .portal-priority-summary { flex-wrap: nowrap; }
  .portal-priority-summary-main { flex-basis: 72px; width: 72px; min-height: 72px; }
  .portal-priority-summary-main strong { font-size: 1.45rem; }
  .portal-priority-summary-meta { font-size: 0.8rem; gap: 8px; }
  .portal-priority-chev { width: 30px; height: 30px; }
}
@media (max-width: 520px) {
  .portal-section-head { align-items: center; }
  .portal-section-head h2 { font-size: 1.08rem; }
  #portalViewQuote .portal-section-head { margin-bottom: 10px; }
  #portalViewQuote .portal-section-head .portal-secondary-btn {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
  }
  #portalViewQuote .portal-info-card { padding: 14px; border-radius: 20px; }
  #portalViewQuote .portal-label { font-size: 0.86rem; }
  #portalViewQuote .portal-input { min-height: 46px; }
  #portalViewQuote .portal-tool-actions { gap: 8px; margin-top: 10px; }
  #portalViewQuote .portal-tool-actions .btn {
    flex: 1 1 100%;
    min-height: 48px;
  }
  #portalViewQuote .portal-quote-stepper { gap: 6px; margin-bottom: 10px; }
  #portalViewQuote .portal-quote-stepper span { padding: 6px 9px; font-size: 0.72rem; }
  #portalViewQuote .portal-quote-hint { padding: 9px 10px; }
  #portalViewQuote .portal-quote-requests-shell { padding: 10px 12px; }
  .portal-priority-grid { grid-template-columns: 1fr; }
  .portal-wallet-command { grid-template-columns: 1fr; }
  .portal-wallet-score strong { font-size: 2rem; }
  .portal-picto-grid { grid-template-columns: 1fr 1fr; }
  #portalViewSupport .portal-category-grid { grid-template-columns: 1fr; }
  #portalViewSupport .portal-category-grid .portal-picto-card { min-height: 124px; padding: 14px; }
  #portalViewSupport .portal-inline-actions { grid-template-columns: 1fr; gap: 7px; }
  #portalViewSupport .portal-inline-action-btn {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 12px;
  }
  #portalViewSupport .portal-inline-action-btn strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #portalViewSupport .portal-inline-action-btn .portal-picto-icon { width: 28px; height: 28px; }
  #portalViewSupport .portal-category-card.is-expanded .portal-inline-actions { max-height: 380px; }
  .portal-inline-actions { grid-template-columns: 1fr; }
  .portal-action-grid .portal-picto-card { min-height: 86px; }
  .portal-action-hint { font-size: 0.78rem; }
  .portal-priority-grid { grid-template-columns: 1fr; }
  .portal-wallet-grid { grid-template-columns: 1fr; }
  .portal-wallet-command { grid-template-columns: 1fr; }
  .portal-emergency-grid { grid-template-columns: 1fr; }
  .portal-risk-grid { grid-template-columns: 1fr; }
  .portal-family-grid { grid-template-columns: 1fr; }
  .portal-family-policy-row { grid-template-columns: auto 1fr; }
  .portal-family-policy-row .portal-policy-status { grid-column: 1 / -1; justify-self: start; }
  .portal-app-shell { padding-bottom: 168px; }
  .portal-settings-summary { grid-template-columns: 1fr; }
  .portal-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 8px;
    right: 8px;
    gap: 6px;
    padding: 10px 12px;
  }
  .portal-bottom-nav button {
    min-width: 0;
    font-size: 0.72rem;
    padding: 5px 2px;
  }
  .portal-bottom-nav .portal-nav-quote {
    transform: translateY(-10px);
    min-height: 64px;
  }
}
@media (max-width: 1100px) {
  .portal-admin-grid { grid-template-columns: 1fr; }
}
