:root {
  color-scheme: light;
  --bg: #f4f4fb;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.78);
  --surface-2: #f7f7fd;
  --text: #1f1f35;
  --muted: #666a86;
  --line: #dedff2;
  --brand: #6264a7;
  --brand-2: #464775;
  --accent: #8b5cf6;
  --danger: #dc2626;
  --shadow: 0 20px 55px rgba(70, 71, 117, 0.14);
  --soft-gradient: linear-gradient(135deg, rgba(98, 100, 167, 0.20), rgba(70, 71, 117, 0.14), rgba(139, 92, 246, 0.12));
}

body.dark,
:root[data-mode="dark"] body {
  color-scheme: dark;
  --bg: #14142b;
  --surface: #1f1f3d;
  --glass: rgba(31, 31, 61, 0.84);
  --surface-2: #28284a;
  --text: #f5f5ff;
  --muted: #c4c6e7;
  --line: #3a3b63;
  --brand: #8b8ccf;
  --brand-2: #6264a7;
  --accent: #a78bfa;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

body.large-text {
  font-size: 18px;
}

body.theme-sunrise,
:root[data-theme="sunrise"] body {
  --brand: #b45309;
  --brand-2: #db2777;
  --accent: #0f766e;
  --soft-gradient: linear-gradient(135deg, rgba(180, 83, 9, 0.18), rgba(219, 39, 119, 0.12), rgba(15, 118, 110, 0.10));
}

body.theme-graphite,
:root[data-theme="graphite"] body {
  --bg: #f2f5f4;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.84);
  --surface-2: #eef2f1;
  --brand: #334155;
  --brand-2: #0f766e;
  --soft-gradient: linear-gradient(135deg, rgba(51, 65, 85, 0.16), rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.10));
}

body.theme-teal,
:root[data-theme="teal"] body {
  --bg: #edf7f4;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.78);
  --surface-2: #f6fbf9;
  --text: #10201d;
  --muted: #667a75;
  --line: #d8e7e2;
  --brand: #0f766e;
  --brand-2: #0891b2;
  --accent: #f59e0b;
  --shadow: 0 20px 55px rgba(25, 63, 57, 0.12);
  --soft-gradient: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(8, 145, 178, 0.14), rgba(245, 158, 11, 0.10));
}

html {
  scroll-behavior: smooth;
}

body,
.panel,
.auth-card,
.auth-hero,
.nav-item,
.primary-btn,
.ghost-btn,
.icon-btn {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.auth-active {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  min-width: 0;
}

.auth-gate,
.pin-unlock {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 24px;
  align-items: center;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 20% 15%, rgba(98, 100, 167, 0.22), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(245, 158, 11, 0.16), transparent 30%),
    var(--bg);
}

.pin-unlock {
  grid-template-columns: minmax(320px, 460px);
  justify-content: center;
}

.auth-hero,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-hero {
  display: grid;
  gap: 18px;
  align-content: center;
  min-height: min(780px, 86vh);
  padding: clamp(26px, 5vw, 58px);
}

.auth-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1;
}

.auth-hero p,
.auth-card p,
.auth-card small {
  color: var(--muted);
}

.auth-trust-row,
.auth-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-trust-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand);
  font-weight: 800;
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.auth-tabs {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.auth-tab {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.auth-panel {
  display: none;
  gap: 12px;
}

.auth-panel.active {
  display: grid;
}

.auth-panel h2 {
  margin: 0;
  font-size: 28px;
}

.auth-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.auth-panel input,
.pin-unlock input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}

.link-btn {
  justify-self: start;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 900;
}

.password-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.password-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  transition: width 180ms ease, background 180ms ease;
}

.password-meter span.medium {
  background: var(--accent);
}

.password-meter span.strong {
  background: var(--brand);
}

.auth-feedback {
  min-height: 24px;
  color: var(--brand);
  font-weight: 800;
}

.auth-feedback.error {
  color: var(--danger);
}

.app-shell.hidden,
.auth-gate.hidden,
.pin-unlock.hidden {
  display: none;
}

body.auth-active .fab,
body.auth-active .install-banner,
body.auth-active .notification-drawer {
  display: none;
}


.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  min-width: 0;
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.brand span:last-child,
.eyebrow,
.conversation-header p,
.network-card p,
.panel p,
.weather-cards p,
.video-tile p,
.floating-call small {
  color: var(--muted);
}

.brand div {
  display: grid;
  gap: 2px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.nav-item.active {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--brand);
  font-weight: 800;
}

.nav-item b,
.status-pill {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(98, 100, 167, 0.14);
  color: var(--brand-2);
  font-size: 12px;
  text-align: center;
}

.sos-link {
  color: var(--danger);
  font-weight: 800;
}

.network-card,
.panel,
.video-stage,
.weather-hero,
.sos-main,
.alert-hero,
.safety-map,
.hero-dashboard,
.profile-hero,
.premium-hero,
.live-hero,
.story-stage {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.network-card {
  margin-top: auto;
  padding: 16px;
}

.network-top,
.panel-header,
.conversation-header,
.topbar,
.call-toolbar,
.score-row,
.clock-row,
.top-actions,
.call-actions,
.switch {
  display: flex;
  align-items: center;
}

.network-top,
.panel-header,
.conversation-header,
.topbar,
.score-row,
.clock-row {
  justify-content: space-between;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.switch {
  gap: 8px;
  color: var(--muted);
}

.switch input {
  inline-size: 18px;
  block-size: 18px;
}

.workspace {
  min-width: 0;
  padding: 26px;
}

.topbar {
  gap: 18px;
  margin-bottom: 24px;
}

.topbar h1,
.weather-hero h2,
.sos-main h2 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
}

.top-actions {
  gap: 10px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.chat-layout,
.home-grid,
.call-grid,
.sos-layout,
.weather-layout,
.live-layout,
.community-grid,
.contacts-layout,
.alerts-layout,
.map-layout,
.family-layout,
.security-layout,
.humanitarian-layout,
.marketplace-layout,
.more-layout,
.profile-layout,
.stories-layout,
.premium-layout,
.game-layout,
.assistant-layout {
  display: grid;
  gap: 18px;
}

.chat-layout {
  grid-template-columns: minmax(250px, 360px) 1fr;
}

.call-grid,
.contacts-layout,
.alerts-layout,
.map-layout,
.live-layout,
.premium-layout,
.marketplace-layout,
.stories-layout,
.game-layout,
.assistant-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.sos-layout,
.community-grid,
.family-layout,
.humanitarian-layout,
.marketplace-layout,
.home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-layout,
.profile-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 18px;
  min-width: 0;
}

.panel h2 {
  margin: 0;
  font-size: 19px;
}

.search-box input,
.composer input,
.assistant-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-box {
  margin: 14px 0;
}

.chat-list {
  display: grid;
  gap: 8px;
}

.chat-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
}

.message-empty {
  margin: auto;
  max-width: 360px;
}

.chat-item.active,
.chat-item:hover {
  background: var(--surface-2);
  border-color: var(--line);
}

.avatar-sm,
.chat-avatar,
.avatar-xl,
.video-tile span {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 900;
}

.chat-avatar {
  width: 42px;
  height: 42px;
}

.chat-item strong,
.chat-item p {
  margin: 0;
}

.chat-item p {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-panel {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  min-height: 680px;
}

.message-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 18px 0;
}

.message {
  max-width: min(72%, 560px);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.message.mine {
  align-self: flex-end;
  background: rgba(98, 100, 167, 0.14);
}

.message small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.composer,
.assistant-form {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.assistant-form {
  grid-template-columns: 1fr auto;
}

.primary-btn,
.send-btn,
.ghost-btn,
.icon-btn,
.round-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-2);
}

.primary-btn,
.send-btn {
  padding: 0 16px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.ghost-btn,
.icon-btn,
.round-btn {
  padding: 0 12px;
}

.icon-btn {
  min-width: 42px;
}

.full {
  width: 100%;
}

.video-stage {
  padding: 18px;
}

.call-console {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.call-status-bar,
.call-mode-tabs,
.call-start-actions,
.call-history-item,
.participant-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.call-status-bar {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.call-status-bar strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.call-mode-tabs {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.call-mode-tabs button {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.call-mode-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.main-video {
  min-height: 390px;
  padding: 24px;
}

.video-tile {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: center;
}

.main-video {
  position: relative;
  overflow: hidden;
}

.main-video::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 15%, rgba(14, 165, 233, 0.18), transparent 36%),
    radial-gradient(circle at 75% 85%, rgba(98, 100, 167, 0.2), transparent 36%);
}

.main-video > * {
  position: relative;
}

.main-video.video-active {
  background:
    linear-gradient(145deg, rgba(31, 31, 61, 0.94), rgba(98, 100, 167, 0.36)),
    var(--surface-2);
  color: #fff;
}

.main-video.audio-active,
.main-video.group-active {
  background:
    linear-gradient(145deg, rgba(98, 100, 167, 0.18), rgba(70, 71, 117, 0.12)),
    var(--surface-2);
}

.main-video h2,
.main-video p {
  margin: 0;
}

.audio-wave {
  display: none;
  grid-template-columns: repeat(5, 8px);
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 42px;
}

.audio-wave.active {
  display: grid;
}

.audio-wave span {
  width: 8px;
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  animation: wavePulse 1.1s ease-in-out infinite;
}

.audio-wave span:nth-child(2) {
  animation-delay: 0.12s;
}

.audio-wave span:nth-child(3) {
  animation-delay: 0.24s;
}

.audio-wave span:nth-child(4) {
  animation-delay: 0.36s;
}

.audio-wave span:nth-child(5) {
  animation-delay: 0.48s;
}

@keyframes wavePulse {
  0%, 100% {
    height: 14px;
  }

  50% {
    height: 40px;
  }
}

.avatar-xl {
  width: 96px;
  height: 96px;
  font-size: 28px;
}

.mini-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0;
}

.mini-tiles .video-tile {
  min-height: 120px;
}

.participant-tile {
  min-width: 0;
}

.participant-tile small {
  color: var(--muted);
}

.participant-tile.camera-off {
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(148, 163, 184, 0.08) 10px 20px),
    var(--surface-2);
}

.video-tile span {
  width: 52px;
  height: 52px;
}

.call-toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.round-btn.danger,
.sos-button {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.round-btn.active {
  border-color: var(--brand);
  background: rgba(98, 100, 167, 0.14);
  color: var(--brand);
}

.round-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.call-side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.call-start-actions {
  flex-direction: column;
  margin-top: 14px;
}

.muted-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.participant-list,
.call-history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.participant-row,
.call-history-item {
  justify-content: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.participant-row span:nth-child(2),
.call-history-item span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.participant-row strong,
.participant-row small,
.call-history-item strong,
.call-history-item small {
  display: block;
}

.participant-row small,
.call-history-item small {
  color: var(--muted);
}

.call-history-item b,
.participant-row b {
  color: var(--brand);
  font-size: 12px;
}

.metric-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.metric-list div,
.contact-row,
.announcement,
.channel-list button,
.trust-list div,
.recommendation-list div,
.family-list div,
.zone-list div,
.security-list div,
.session-list div,
.help-list div,
.premium-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.sos-main {
  grid-column: span 2;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 420px;
  padding: 34px;
  text-align: center;
}

.sos-main h2 {
  max-width: 720px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.04;
}

.sos-button {
  width: min(64vw, 230px);
  height: min(64vw, 230px);
  margin: 26px 0 10px;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(220, 38, 38, 0.32);
}

.contact-list,
.channel-list,
#announcementList,
.trust-list,
.recommendation-list,
.family-list,
.zone-list,
.security-list,
.session-list,
.help-list,
.premium-list,
.hourly-list,
.alert-list,
.control-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hero-dashboard {
  grid-column: span 2;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 340px;
  padding: 34px;
  background: var(--soft-gradient), var(--glass);
}

.hero-dashboard h2,
.premium-hero h2,
.profile-hero h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
}

.hero-actions,
.quick-contact-actions,
.contact-tools,
.contact-tabs,
.theme-swatches,
.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-widgets article,
.mini-contact,
.smart-contact,
.qr-card,
.notification-drawer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.install-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(680px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.install-banner div {
  display: grid;
  flex: 1;
  min-width: 0;
}

.install-banner span {
  color: var(--muted);
}

.dashboard-widgets article {
  min-height: 155px;
  padding: 18px;
}

.dashboard-widgets strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 34px;
}

.mini-contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-contact {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 128px;
  padding: 14px;
  text-align: center;
}

.contact-tools {
  margin: 14px 0;
}

.contact-tools input,
.contact-tools select,
.contact-notes textarea,
.quick-reply input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
}

.contact-tools input {
  flex: 1 1 260px;
}

.contact-tools select {
  flex: 0 0 170px;
}

.contact-tab {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-2);
}

.contact-tab.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.smart-contact-list {
  display: grid;
  gap: 10px;
  max-height: 650px;
  overflow: auto;
  padding-right: 4px;
}

.smart-contact {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  color: var(--text);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.smart-contact:hover,
.smart-contact.active {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.smart-contact p,
.smart-contact strong {
  margin: 0;
}

.smart-contact p,
.contact-detail p,
.premium-hero p {
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.status-dot.busy {
  background: var(--accent);
}

.profile-card-small,
.profile-identity {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-photo {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}

.profile-photo.large {
  width: 116px;
  height: 116px;
  font-size: 34px;
}

.qr-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
}

.contact-profile-meta,
.contact-action-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.contact-profile-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.contact-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.more-grid button {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
}

.more-grid span {
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 20, 18, 0.56);
  backdrop-filter: blur(8px);
}

.modal-card {
  display: grid;
  gap: 12px;
  width: min(92vw, 520px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
}

.modal-card textarea {
  padding-top: 10px;
}

.fake-qr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 110px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-2);
}

.fake-qr span {
  border-radius: 3px;
  background: var(--text);
}

.fake-qr span:nth-child(3n) {
  opacity: 0.35;
}

.contact-notes {
  display: grid;
  gap: 8px;
}

.contact-notes textarea {
  min-height: 130px;
  padding-top: 12px;
  resize: vertical;
}

.profile-hero,
.premium-hero {
  grid-column: span 2;
  overflow: hidden;
  padding: 0;
}

.live-hero,
.story-stage {
  grid-column: span 2;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 360px;
  padding: 34px;
  background: var(--soft-gradient), var(--glass);
}

.live-hero h2,
.story-card h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.03;
}

.hourly-list {
  max-height: 360px;
  overflow: auto;
}

.hourly-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.hourly-row strong,
.hourly-row span,
.hourly-row small {
  min-width: 0;
}

.user-pin {
  background: #111827;
}

.story-stage {
  min-height: 620px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(98, 100, 167, 0.94), rgba(70, 71, 117, 0.86)),
    var(--glass);
}

.story-stage .eyebrow,
.story-stage p {
  color: rgba(255, 255, 255, 0.86);
}

.story-card {
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.profile-cover {
  height: 150px;
  background: var(--soft-gradient);
}

.profile-identity {
  padding: 0 28px 24px;
  margin-top: -42px;
}

.badge-row {
  padding: 0 28px 28px;
}

.badge-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand);
  font-weight: 800;
}

.theme-swatches {
  margin: 16px 0;
}

.swatch {
  width: 54px;
  height: 54px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #6264a7, #464775);
}

.swatch.teal {
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.swatch.sunrise {
  background: linear-gradient(135deg, #b45309, #db2777);
}

.swatch.graphite {
  background: linear-gradient(135deg, #334155, #6264a7);
}

.swatch.active {
  border-color: var(--accent);
}

.premium-hero {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 360px;
  padding: 34px;
  background: var(--soft-gradient), var(--glass);
}

.fab {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 16;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.notification-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  width: min(420px, calc(100vw - 36px));
  padding: 18px;
}

.notification-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.notification-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.notification-item.priority {
  border-left: 5px solid var(--danger);
}

.quick-reply {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.medical-card p {
  margin: 12px 0 0;
}

.weather-layout {
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
}

.weather-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 30px;
  min-height: 470px;
}

.weather-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(14, 165, 233, 0.18), transparent 34%),
    radial-gradient(circle at 82% 74%, rgba(98, 100, 167, 0.18), transparent 36%);
}

.weather-hero > * {
  position: relative;
}

.weather-hero h2 {
  margin: 0;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 1;
}

.weather-hero > p:not(.eyebrow) {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 20px;
}

.weather-animation {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 150px;
  height: 120px;
  opacity: 0.95;
}

.sun-core,
.cloud,
.rain {
  position: absolute;
  display: block;
}

.sun-core {
  top: 10px;
  right: 22px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a 0 42%, #f59e0b 43% 100%);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.45);
  animation: weatherGlow 3.2s ease-in-out infinite;
}

.cloud {
  width: 86px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.16);
  animation: cloudDrift 5.5s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 14px;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  left: 14px;
  width: 40px;
  height: 40px;
}

.cloud::after {
  right: 12px;
  width: 48px;
  height: 48px;
}

.cloud-one {
  right: 44px;
  top: 54px;
}

.cloud-two {
  right: 6px;
  top: 76px;
  width: 68px;
  transform: scale(0.82);
  opacity: 0.82;
  animation-delay: 0.8s;
}

.rain {
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-2);
  opacity: 0;
  animation: rainFall 0.9s linear infinite;
}

.rain-one {
  right: 82px;
  top: 86px;
}

.rain-two {
  right: 56px;
  top: 92px;
  animation-delay: 0.18s;
}

.rain-three {
  right: 32px;
  top: 88px;
  animation-delay: 0.36s;
}

.weather-animation.cloudy .sun-core,
.weather-animation.misty .sun-core {
  opacity: 0.45;
}

.weather-animation.rainy .sun-core {
  opacity: 0.22;
}

.weather-animation.clear .cloud,
.weather-animation.clear .rain {
  opacity: 0;
}

.weather-animation.cloudy .rain,
.weather-animation.misty .rain {
  opacity: 0;
}

.weather-animation.rainy .rain {
  opacity: 1;
}

.weather-live-row,
.weather-source {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weather-source {
  color: var(--muted);
  font-size: 13px;
}

@keyframes weatherGlow {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }
}

@keyframes cloudDrift {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-10px);
  }
}

@keyframes rainFall {
  0% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(20px);
  }
}

.weather-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.weather-cards article,
.quick-prompts button {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.weather-cards article {
  position: relative;
  overflow: hidden;
}

.weather-cards article::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(98, 100, 167, 0.18));
}

.alert-hero {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 360px;
  padding: 30px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.92), rgba(245, 158, 11, 0.86)),
    var(--surface);
}

.community-hero {
  grid-column: span 2;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 340px;
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(98, 100, 167, 0.92), rgba(70, 71, 117, 0.82)),
    var(--surface);
  color: #fff;
}

.community-hero .eyebrow,
.community-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.community-hero h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.intelligence-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.intelligence-ticker span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8);
  animation: pulseBeacon 1.8s ease-out infinite;
}

.community-insight-grid,
.community-feed,
.infrastructure-list,
.incident-form {
  display: grid;
  gap: 10px;
}

.community-insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intel-card,
.feed-item,
.infrastructure-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.intel-card span,
.feed-item span,
.infrastructure-item small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.intel-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.intel-card p,
.feed-item p {
  margin: 0;
  color: var(--muted);
}

.feed-item {
  display: grid;
  gap: 6px;
  border-left: 5px solid var(--brand-2);
}

.feed-item.critical {
  border-left-color: var(--danger);
}

.feed-item.warning {
  border-left-color: var(--accent);
}

.feed-item.info {
  border-left-color: var(--brand);
}

.feed-item small {
  color: var(--muted);
}

.infrastructure-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.infrastructure-item span,
.infrastructure-item small {
  display: grid;
  gap: 3px;
}

.infrastructure-item b {
  color: var(--brand);
}

.infrastructure-item.high b {
  color: var(--danger);
}

.infrastructure-item.medium b {
  color: var(--accent);
}

.incident-form label:not(.switch) {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.incident-form select,
.incident-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

@keyframes pulseBeacon {
  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.alert-hero .eyebrow,
.alert-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.alert-hero h2,
.security-score h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.risk-radar {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.24) 0 3px, transparent 4px),
    repeating-radial-gradient(circle, transparent 0 22px, rgba(255, 255, 255, 0.16) 23px 24px);
}

.risk-radar span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  transform-origin: left center;
  animation: radarSweep 2.4s linear infinite;
}

.risk-radar.elevated {
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), 0 0 36px rgba(255, 255, 255, 0.24);
}

.risk-radar.scanning {
  animation: radarPulse 0.9s ease-in-out infinite;
}

.risk-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.risk-meta-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.risk-meta-grid strong {
  color: #fff;
  font-size: 15px;
}

.risk-findings {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.risk-finding {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: var(--surface-2);
}

.risk-finding.high,
.risk-finding.critical {
  border-left-color: var(--danger);
}

.risk-finding.elevated,
.risk-finding.moderate {
  border-left-color: var(--accent);
}

.risk-finding span,
.risk-finding small {
  color: var(--muted);
}

.risk-finding span {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.risk-finding p {
  margin: 0;
  color: var(--muted);
}

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

@keyframes radarPulse {
  50% {
    transform: scale(1.04);
  }
}

.alert-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-2);
  border-radius: 8px;
  background: var(--surface-2);
}

.alert-card.high {
  border-left-color: var(--danger);
}

.alert-card.medium {
  border-left-color: var(--accent);
}

.alert-card small {
  color: var(--muted);
}

.safety-map {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(98, 100, 167, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(98, 100, 167, 0.12) 1px, transparent 1px),
    var(--surface-2);
  background-size: 54px 54px;
}

.map-grid {
  position: absolute;
  inset: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, transparent 0 33%, rgba(70, 71, 117, 0.18) 34% 38%, transparent 39%),
    linear-gradient(40deg, transparent 0 58%, rgba(98, 100, 167, 0.16) 59% 64%, transparent 65%);
}

.map-pin {
  position: absolute;
  z-index: 2;
  min-height: 34px;
  padding: 0 10px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.danger-pin {
  background: var(--danger);
}

.warn-pin {
  background: var(--accent);
  color: #17130a;
}

.safe-pin {
  background: var(--brand);
}

.care-pin {
  background: var(--brand-2);
}

.utility-pin {
  background: #7c3aed;
}

.news-pin {
  background: #6264a7;
}

.route-line {
  position: absolute;
  left: 18%;
  top: 62%;
  width: 58%;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  transform: rotate(-18deg);
  transform-origin: left center;
}

.control-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.security-score {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(98, 100, 167, 0.18), rgba(70, 71, 117, 0.14)),
    var(--surface);
}

.danger-text {
  color: var(--danger);
  font-weight: 900;
}

.disaster-card {
  display: grid;
  align-content: center;
  gap: 12px;
}

.weather-cards strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 30px;
}

.announcement {
  display: grid;
}

.channel-list button {
  width: 100%;
  color: var(--text);
}

.score-row div {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.score-row strong {
  display: block;
  font-size: 42px;
}

.tap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.tap-grid button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 30px;
}

.tap-grid button.hot {
  background: var(--accent);
  color: #17130a;
  font-weight: 900;
}

.game-chat,
.assistant-stream {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  max-height: 430px;
  overflow: auto;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.assistant-panel {
  min-height: 620px;
}

.assistant-bubble {
  max-width: 78%;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.assistant-bubble.user {
  justify-self: end;
  background: rgba(98, 100, 167, 0.14);
}

.quick-prompts {
  display: grid;
  gap: 12px;
}

.quick-prompts button {
  min-height: 92px;
  color: var(--text);
  text-align: left;
  font-weight: 800;
}

.floating-call {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 220px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.floating-call.hidden,
.hidden {
  display: none;
}

.avatar-sm {
  width: 38px;
  height: 38px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translateX(-50%) translateY(150%);
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: 8px;
  background: #10201d;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .auth-gate {
    position: static;
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  body.auth-active {
    overflow: auto;
  }

  .auth-hero {
    min-height: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .brand,
  .network-card {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .workspace {
    padding: 18px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .chat-layout,
  .home-grid,
  .call-grid,
  .sos-layout,
  .weather-layout,
  .live-layout,
  .community-grid,
  .contacts-layout,
  .alerts-layout,
  .map-layout,
  .family-layout,
  .security-layout,
  .humanitarian-layout,
  .marketplace-layout,
  .more-layout,
  .profile-layout,
  .stories-layout,
  .premium-layout,
  .game-layout,
  .assistant-layout {
    grid-template-columns: 1fr;
  }

  .hero-dashboard,
  .profile-hero,
  .premium-hero,
  .live-hero,
  .community-hero,
  .story-stage {
    grid-column: auto;
  }

  .sos-main {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .composer {
    width: 100%;
  }

  .composer {
    grid-template-columns: auto 1fr auto;
  }

  .composer .send-btn {
    grid-column: 1 / -1;
  }

  .chat-list-panel {
    display: none;
  }

  .conversation-panel {
    min-height: 620px;
  }

  .message {
    max-width: 88%;
  }

  .main-video {
    min-height: 300px;
  }

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

  .round-btn {
    min-width: 0;
    padding: 0 8px;
  }

  .call-status-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .weather-cards {
    grid-template-columns: 1fr;
  }

  .weather-animation {
    position: relative;
    top: auto;
    right: auto;
    width: 132px;
    height: 106px;
  }

  .weather-hero {
    min-height: 520px;
  }

  .dashboard-widgets,
  .mini-contact-row,
  .community-insight-grid {
    grid-template-columns: 1fr;
  }

  .smart-contact {
    grid-template-columns: 48px 1fr;
  }

  .smart-contact .quick-contact-actions {
    grid-column: 1 / -1;
  }

  .qr-card {
    grid-template-columns: 1fr;
  }

  .more-grid,
  .contact-action-grid {
    grid-template-columns: 1fr;
  }

  .safety-map {
    min-height: 440px;
  }

  .fab {
    right: 12px;
    bottom: 88px;
  }

  .install-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .risk-radar {
    position: relative;
    top: auto;
    right: auto;
    width: 96px;
    height: 96px;
  }

  .risk-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-call {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}
