.splash-screen {
  align-items: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(166, 255, 63, .18), transparent 34%),
    linear-gradient(180deg, var(--color-surface), var(--color-card));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 28px 30px;
  text-align: center;
}

.splash-orbit {
  height: 250px;
  left: 50%;
  position: absolute;
  top: 110px;
  transform: translateX(-50%);
  width: 250px;
}

.orbit-dot {
  animation: floatDot 4s var(--ease-out) infinite alternate;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(166, 255, 63, .5);
  height: 12px;
  position: absolute;
  width: 12px;
}

.dot-a {
  left: 34px;
  top: 80px;
}

.dot-b {
  animation-delay: .4s;
  right: 44px;
  top: 34px;
}

.dot-c {
  animation-delay: .8s;
  bottom: 38px;
  right: 86px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-2));
  border-radius: 32px;
  box-shadow: 0 20px 55px rgba(71, 230, 164, .22);
  color: #102016;
  display: flex;
  font-size: 54px;
  font-weight: var(--weight-black);
  height: 116px;
  justify-content: center;
  margin-top: 185px;
  position: relative;
  width: 116px;
}

.brand-pulse {
  animation: pulseRing 2.2s var(--ease-out) infinite;
  border: 1px solid rgba(166, 255, 63, .32);
  border-radius: 42px;
  inset: -18px;
  position: absolute;
}

.splash-copy {
  margin-top: 52px;
}

.splash-copy h1 {
  font-size: 34px;
  line-height: 1.02;
  margin: 0;
}

.splash-copy p:last-child {
  color: var(--color-muted);
  font-size: var(--text-md);
  line-height: 1.5;
  margin: 16px 0 0;
}

.splash-screen .primary-button {
  margin-top: auto;
  width: 100%;
}

.splash-progress {
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-pill);
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  width: 112px;
}

.splash-progress span {
  animation: progressLoop 1.7s var(--ease-out) infinite;
  background: var(--color-primary);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 52%;
}

.main-screen {
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  padding-bottom: 86px;
  overflow: hidden;
}

.app-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
}

.app-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 8px 18px 10px;
}

.org-switcher {
  align-items: center;
  background: transparent;
  color: var(--color-text);
  display: inline-flex;
  gap: 10px;
  padding: 0;
  text-align: left;
}

.org-logo {
  align-items: center;
  background: linear-gradient(135deg, #1f7a52, var(--color-primary));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: var(--weight-black);
  height: 42px;
  justify-content: center;
  width: 42px;
}

.org-logo.blue {
  background: linear-gradient(135deg, #1769ff, #5ac8ff);
}

.org-logo.amber {
  background: linear-gradient(135deg, #ff8a00, #ffcf4a);
  color: #261600;
}

.org-switcher small {
  color: var(--color-muted);
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.org-switcher strong {
  display: block;
  font-size: var(--text-md);
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.notification-panel,
.search-panel {
  background: color-mix(in srgb, var(--color-card) 94%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 10px;
  left: 18px;
  opacity: 0;
  padding: 14px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 88px;
  transform: translateY(-8px) scale(.98);
  transition: opacity var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
  z-index: 20;
}

.drawer-backdrop {
  background: rgba(0, 0, 0, .42);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity var(--motion-normal) var(--ease-out);
  z-index: 18;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.org-panel {
  background: color-mix(in srgb, var(--color-card) 96%, transparent);
  border: 1px solid var(--color-border);
  border-bottom-right-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  bottom: 0;
  box-shadow: 22px 0 58px rgba(0, 0, 0, .42);
  display: grid;
  gap: 10px;
  left: 0;
  opacity: 1;
  overflow-y: auto;
  padding: 18px;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(-104%);
  transition: transform var(--motion-normal) var(--ease-out);
  width: min(318px, 86%);
  z-index: 21;
}

.notification-panel.is-open,
.search-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.org-panel.is-open {
  pointer-events: auto;
  transform: translateX(0);
}

.notification-panel {
  left: auto;
  width: min(330px, calc(100% - 36px));
}

.search-panel {
  left: 18px;
  right: 18px;
  top: 88px;
}

.search-box {
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  display: grid;
  gap: 10px;
  grid-template-columns: 22px 1fr 38px;
  padding: 8px 8px 8px 14px;
}

.search-box svg {
  fill: none;
  height: 18px;
  stroke: var(--color-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.search-box input {
  background: transparent;
  border: 0;
  color: var(--color-text);
  font: inherit;
  min-width: 0;
  outline: 0;
}

.quick-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.quick-results button {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  padding: 11px 12px;
  text-align: left;
}

.quick-results strong,
.quick-results small {
  display: block;
}

.quick-results small {
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-top: 3px;
}

.org-panel-head,
.org-option {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.drawer-profile {
  align-items: center;
  background: linear-gradient(135deg, rgba(166, 255, 63, .14), transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 12px;
  padding: 14px;
}

.drawer-profile strong,
.drawer-profile small,
.drawer-section-title {
  display: block;
}

.drawer-profile small {
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-top: 4px;
}

.drawer-section-title {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  margin: 8px 0 0;
  text-transform: uppercase;
}

.org-panel-head strong {
  font-size: var(--text-lg);
}

.org-option {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  gap: 10px;
  justify-content: flex-start;
  padding: 11px;
  text-align: left;
}

.org-option.is-active {
  border-color: color-mix(in srgb, var(--color-primary) 48%, var(--color-border));
}

.org-option strong,
.org-option small,
.join-code-box span,
.join-code-box strong {
  display: block;
}

.org-option small,
.join-code-box span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-top: 3px;
}

.join-code-box {
  background: linear-gradient(135deg, rgba(166, 255, 63, .12), transparent);
  border: 1px dashed color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
  border-radius: var(--radius-md);
  padding: 12px;
}

.join-code-box strong {
  color: var(--color-primary);
  font-size: var(--text-lg);
  margin-top: 4px;
}

.drawer-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.drawer-actions button {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  min-height: 46px;
}

.notification-item {
  align-items: flex-start;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  display: grid;
  gap: 10px;
  grid-template-columns: 12px 1fr;
  padding: 12px;
  text-align: left;
}

.notification-item strong,
.notification-item small {
  display: block;
}

.notification-item strong {
  font-size: var(--text-sm);
  line-height: 1.25;
}

.notification-item small {
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-top: 4px;
}

.notification-item.danger {
  border-color: rgba(255, 77, 53, .3);
}

.notification-item.success {
  border-color: rgba(74, 222, 128, .24);
}

.notification-dot {
  background: var(--color-warning);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 176, 32, .45);
  height: 10px;
  margin-top: 3px;
  width: 10px;
}

.notification-dot.info {
  background: var(--color-secondary);
  box-shadow: 0 0 14px rgba(90, 200, 255, .4);
}

.notification-dot.success {
  background: var(--color-success);
  box-shadow: 0 0 14px rgba(74, 222, 128, .4);
}

.hero-card,
.announcement-card,
.benefit-card,
.metric-card {
  box-shadow: var(--shadow-card);
}

.hero-card {
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(255, 77, 53, .18), transparent 48%),
    linear-gradient(145deg, var(--color-card), var(--color-card-soft));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 8px 18px 14px;
  padding: 18px;
}

.hero-card h2 {
  font-size: 22px;
  line-height: 1.05;
  margin: 0;
}

.hero-card p:last-child {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 10px 0 0;
}

.metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 18px 18px;
}

.metric-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.metric-card.accent {
  background: linear-gradient(145deg, rgba(166, 255, 63, .2), var(--color-card));
}

.metric-card span,
.metric-card small {
  color: var(--color-muted);
  display: block;
  font-size: 10px;
}

.metric-card strong {
  display: block;
  font-size: 19px;
  margin: 5px 0 3px;
}

.chip-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 18px 18px;
  scrollbar-width: none;
}

.chip {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  flex: 0 0 auto;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  min-width: 74px;
  min-height: 24px;
  padding: 6px 14px;
  text-align: center;
}

.chip.is-selected {
  background: var(--color-primary);
  color: #102016;
}

.content-stack {
  display: grid;
  gap: 12px;
  overflow: visible;
  padding: 2px 18px 132px;
  position: relative;
  transition: opacity var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
  -webkit-overflow-scrolling: touch;
}

.content-stack.is-switching {
  opacity: .2;
  transform: translateY(8px);
}

.main-screen.detail-mode .hero-card,
.main-screen.detail-mode .metric-grid,
.main-screen.detail-mode .chip-row,
.main-screen.detail-mode .bottom-nav {
  display: none;
}

.main-screen.feed-clean .hero-card,
.main-screen.feed-clean .metric-grid {
  display: none;
}

.main-screen.feed-clean .chip-row {
  padding-top: 12px;
}

.main-screen.section-view .status-bar,
.main-screen.section-view .app-header,
.main-screen.section-view .hero-card,
.main-screen.section-view .metric-grid,
.main-screen.section-view .chip-row {
  display: none;
}

.main-screen.section-view .content-stack {
  padding-top: 18px;
}

.main-screen.detail-mode {
  overflow: hidden;
  padding-bottom: 0;
}

.main-screen.detail-mode .app-scroll {
  display: flex;
  flex-direction: column;
}

.main-screen.detail-mode .content-stack {
  flex: 1;
  gap: 12px;
  overflow-y: auto;
  padding-bottom: 22px;
}

.is-clickable {
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}

.is-clickable:hover {
  border-color: rgba(166, 255, 63, .36);
  transform: translateY(-1px);
}

.announcement-card {
  align-items: flex-start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 12px;
  padding: 14px;
}

.announcement-card.urgent {
  border-color: rgba(255, 77, 53, .3);
}

.card-icon {
  align-items: center;
  background: var(--color-danger);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: var(--weight-black);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.card-icon.soft {
  background: rgba(166, 255, 63, .14);
  color: var(--color-primary);
}

.card-body {
  min-width: 0;
}

.card-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.card-title-row h3,
.benefit-card h3 {
  font-size: var(--text-md);
  line-height: 1.25;
  margin: 0;
}

.announcement-card p,
.benefit-card p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.42;
  margin: 8px 0 0;
}

.progress-line {
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-pill);
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-line span {
  background: linear-gradient(90deg, var(--color-danger), var(--color-warning));
  display: block;
  height: 100%;
}

.meta-row,
.attachment-row {
  color: var(--color-muted);
  display: flex;
  font-size: 10px;
  gap: 10px;
  justify-content: space-between;
  margin-top: 10px;
}

.attachment-row span {
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
}

.benefit-card {
  align-items: center;
  background: linear-gradient(135deg, rgba(90, 200, 255, .18), var(--color-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.sos-card {
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 77, 53, .28), transparent 32%),
    linear-gradient(135deg, rgba(255, 77, 53, .16), var(--color-card));
  border: 1px solid rgba(255, 77, 53, .32);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 150px;
  padding: 18px;
}

.sos-card h3 {
  font-size: 22px;
  line-height: 1.06;
  margin: 9px 0 0;
}

.sos-card p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.42;
  margin: 10px 0 0;
}

.sos-button {
  align-items: center;
  animation: sosPulse 1.9s var(--ease-out) infinite;
  background: var(--color-danger);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 77, 53, .12), 0 18px 42px rgba(255, 77, 53, .28);
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-size: var(--text-md);
  font-weight: var(--weight-black);
  height: 88px;
  justify-content: center;
  width: 88px;
}

.benefit-visual {
  align-items: center;
  background: var(--color-secondary);
  border-radius: 24px;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-size: 32px;
  font-weight: var(--weight-black);
  height: 74px;
  justify-content: center;
  width: 74px;
}

.bottom-nav {
  align-items: center;
  background: color-mix(in srgb, var(--color-card) 88%, transparent);
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(5, 1fr);
  left: 0;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  position: absolute;
  right: 0;
  z-index: 12;
}

.chat-tile,
.channel-tile,
.request-card,
.profile-card,
.settings-list,
.service-grid {
  animation: listItemIn var(--motion-normal) var(--ease-out) both;
}

.chat-tile,
.channel-tile,
.request-card,
.profile-card {
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 12px;
  padding: 13px;
}

.chat-tile.danger,
.channel-tile.danger {
  border-color: rgba(255, 77, 53, .32);
}

.chat-tile.success,
.channel-tile.success {
  border-color: rgba(74, 222, 128, .28);
}

.chat-tile.locked {
  background: linear-gradient(145deg, rgba(166, 255, 63, .08), var(--color-card));
}

.avatar,
.channel-glyph,
.profile-avatar {
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: var(--text-sm);
  font-weight: var(--weight-black);
  height: 42px;
  justify-content: center;
  width: 42px;
}

.channel-glyph {
  background: rgba(90, 200, 255, .12);
  color: var(--color-secondary);
}

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

.tile-title-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.tile-title-row h3 {
  font-size: var(--text-md);
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-title-row span {
  color: var(--color-muted);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: var(--weight-semibold);
}

.tile-body p,
.request-card p,
.profile-card p,
.service-card small,
.settings-list small {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.38;
  margin: 6px 0 0;
}

.unread-pill {
  align-items: center;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  color: #102016;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 7px;
}

.mini-action {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: var(--weight-bold);
  padding: 8px 10px;
}

.service-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  align-items: flex-start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 118px;
  padding: 14px;
  text-align: left;
}

.service-card span {
  align-items: center;
  background: rgba(166, 255, 63, .14);
  border-radius: 15px;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 20px;
  height: 36px;
  justify-content: center;
  margin-bottom: auto;
  width: 36px;
}

.service-card strong,
.settings-list strong {
  display: block;
  font-size: var(--text-md);
  margin-top: 12px;
}

.request-card {
  align-items: flex-start;
  flex-direction: column;
}

.request-card h3,
.profile-card h3 {
  font-size: var(--text-lg);
  margin: 4px 0 0;
}

.profile-card {
  align-items: center;
}

.profile-avatar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  border: 0;
  color: #102016;
  font-size: var(--text-lg);
  height: 72px;
  width: 72px;
}

.settings-list {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  overflow: hidden;
}

.settings-list button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  display: grid;
  gap: 0 12px;
  grid-template-columns: 38px 1fr;
  padding: 13px;
  text-align: left;
}

.settings-list button:last-child {
  border-bottom: 0;
}

.settings-list span {
  align-items: center;
  background: var(--color-surface-2);
  border-radius: 14px;
  color: var(--color-primary);
  display: inline-flex;
  grid-row: span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.settings-list strong {
  margin-top: 0;
}

.detail-header {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px 1fr 40px;
  margin-bottom: 2px;
}

.section-header {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px 1fr;
  margin-bottom: 2px;
}

.section-header strong,
.section-header span {
  display: block;
}

.section-header strong {
  font-size: 24px;
  line-height: 1.05;
}

.section-header span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-top: 4px;
}

.detail-header strong,
.detail-header span {
  display: block;
}

.detail-header strong {
  font-size: var(--text-lg);
  line-height: 1.1;
}

.detail-header span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-top: 4px;
}

.back-button {
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.detail-card,
.edit-form,
.settings-panel,
.chat-detail {
  animation: listItemIn var(--motion-normal) var(--ease-out) both;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.detail-card h2 {
  font-size: 24px;
  line-height: 1.08;
  margin: 12px 0 0;
}

.detail-card p {
  color: var(--color-muted);
  font-size: var(--text-md);
  line-height: 1.5;
  margin: 12px 0 0;
}

.urgent-detail {
  background:
    linear-gradient(135deg, rgba(255, 77, 53, .18), transparent 48%),
    var(--color-card);
}

.benefit-detail {
  background:
    linear-gradient(135deg, rgba(90, 200, 255, .18), transparent 48%),
    var(--color-card);
}

.media-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-top: 16px;
}

.media-thumb {
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  display: flex;
  font-size: var(--text-sm);
  font-weight: var(--weight-black);
  height: 88px;
  justify-content: center;
}

.media-thumb.map {
  background:
    linear-gradient(135deg, rgba(166, 255, 63, .16), transparent),
    var(--color-surface-2);
}

.read-panel {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.read-panel div {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
}

.read-panel strong,
.read-panel span {
  display: block;
}

.read-panel strong {
  font-size: var(--text-lg);
}

.read-panel span {
  color: var(--color-muted);
  font-size: 10px;
  margin-top: 3px;
}

.full-button {
  margin-top: 16px;
  width: 100%;
}

.file-list,
.settings-panel,
.timeline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.file-list button,
.option-row {
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  padding: 13px;
  text-align: left;
}

.option-row.is-active {
  border-color: color-mix(in srgb, var(--color-primary) 46%, var(--color-border));
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.option-row.is-active span {
  color: var(--color-primary);
}

.file-list span,
.option-row span {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.coupon-box {
  background: var(--color-surface-2);
  border: 1px dashed color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
  border-radius: var(--radius-lg);
  margin-top: 16px;
  padding: 16px;
  text-align: center;
}

.coupon-box span,
.coupon-box strong {
  display: block;
}

.coupon-box span {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.coupon-box strong {
  color: var(--color-primary);
  font-size: 22px;
  margin-top: 6px;
}

.chat-detail {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 622px;
  padding: 14px;
}

.chat-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 2px;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.has-scroll-indicator {
  position: relative;
}

.scroll-indicator {
  background:
    linear-gradient(180deg, transparent, var(--color-primary), var(--color-primary-2), transparent);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 16px rgba(166, 255, 63, .42);
  opacity: 0;
  pointer-events: none;
  position: sticky;
  right: 2px;
  top: 8px;
  justify-self: end;
  width: 3px;
  z-index: 8;
  transition: opacity var(--motion-normal) var(--ease-out);
}

.chat-thread > .scroll-indicator {
  align-self: flex-end;
  margin-bottom: calc(-1 * var(--space-2));
  margin-right: 1px;
}

.is-scrolling > .scroll-indicator {
  opacity: .9;
}

.chat-day {
  align-self: center;
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 10px;
  font-weight: var(--weight-bold);
  margin-bottom: 12px;
  padding: 6px 10px;
}

.bubble {
  border-radius: 18px;
  margin-bottom: 10px;
  max-width: 86%;
  padding: 10px 12px;
}

.bubble.is-new {
  animation: bubblePop var(--motion-normal) var(--ease-out) both;
}

.bubble strong {
  color: var(--color-primary);
  display: block;
  font-size: var(--text-xs);
  margin-bottom: 4px;
}

.bubble p {
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 0;
}

.bubble span {
  color: var(--color-muted);
  display: block;
  font-size: 10px;
  margin-top: 5px;
  text-align: right;
}

.bubble.incoming {
  align-self: flex-start;
  background: var(--color-surface-2);
}

.bubble.outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #102016;
}

.bubble.outgoing span {
  color: rgba(16, 32, 22, .72);
}

.mini-attachment {
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  margin-top: 8px;
  padding: 8px;
}

.message-composer {
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  display: grid;
  gap: 8px;
  grid-template-columns: 34px 1fr 34px;
  margin-top: auto;
  padding: 7px;
}

.attachment-panel {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 12px;
  transform: translateY(8px);
  transition:
    max-height var(--motion-normal) var(--ease-out),
    opacity var(--motion-fast) var(--ease-out),
    padding var(--motion-normal) var(--ease-out),
    transform var(--motion-normal) var(--ease-out);
}

.attachment-panel.is-open {
  max-height: 190px;
  opacity: 1;
  padding: 12px;
  transform: translateY(0);
}

.attachment-panel button {
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 76px;
  justify-content: center;
}

.attachment-panel span {
  align-items: center;
  background: rgba(166, 255, 63, .14);
  border-radius: 14px;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 11px;
  font-weight: var(--weight-black);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.attachment-panel strong {
  font-size: 11px;
}

.context-sheet {
  background: color-mix(in srgb, var(--color-card) 96%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  bottom: 0;
  box-shadow: 0 -22px 55px rgba(0, 0, 0, .36);
  left: 0;
  opacity: 0;
  padding: 10px 16px 18px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(100%);
  transition: opacity var(--motion-normal) var(--ease-out), transform var(--motion-normal) var(--ease-out);
  z-index: 24;
}

.context-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sheet-handle {
  background: var(--color-border);
  border-radius: var(--radius-pill);
  height: 4px;
  margin: 0 auto 12px;
  width: 44px;
}

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

.context-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.context-grid button {
  align-items: flex-start;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  text-align: left;
}

.context-grid span {
  align-items: center;
  background: rgba(166, 255, 63, .14);
  border-radius: 14px;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 11px;
  font-weight: var(--weight-black);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.context-grid small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.modal-layer {
  align-items: flex-end;
  background: rgba(0, 0, 0, .46);
  display: flex;
  inset: 0;
  opacity: 0;
  padding: 18px;
  pointer-events: none;
  position: absolute;
  transition: opacity var(--motion-normal) var(--ease-out);
  z-index: 28;
}

.modal-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  max-height: 80%;
  overflow-y: auto;
  padding: 16px;
  transform: translateY(16px);
  transition: transform var(--motion-normal) var(--ease-out);
  width: 100%;
}

.modal-layer.is-open .modal-card {
  transform: translateY(0);
}

.modal-head button {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: 8px 10px;
}

.member-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.member-list div {
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 0 10px;
  grid-template-columns: 42px 1fr;
  padding: 10px;
}

.member-list .avatar {
  grid-row: span 2;
}

.member-list small,
.modal-note,
.search-result span {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.mini-map {
  background:
    linear-gradient(90deg, rgba(166, 255, 63, .08) 1px, transparent 1px),
    linear-gradient(rgba(166, 255, 63, .08) 1px, transparent 1px),
    radial-gradient(circle at 40% 45%, rgba(90, 200, 255, .22), transparent 34%),
    var(--color-surface-2);
  background-size: 32px 32px, 32px 32px, auto, auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  height: 220px;
  margin-top: 14px;
  position: relative;
}

.mini-map span {
  align-items: center;
  background: var(--color-primary);
  border: 3px solid var(--color-card);
  border-radius: 50%;
  color: #102016;
  display: flex;
  font-size: 10px;
  font-weight: var(--weight-black);
  height: 34px;
  justify-content: center;
  position: absolute;
  width: 34px;
}

.dispatch-map {
  background:
    linear-gradient(90deg, rgba(166, 255, 63, .08) 1px, transparent 1px),
    linear-gradient(rgba(166, 255, 63, .08) 1px, transparent 1px),
    radial-gradient(circle at 44% 48%, rgba(255, 77, 53, .18), transparent 28%),
    radial-gradient(circle at 70% 20%, rgba(90, 200, 255, .16), transparent 32%),
    var(--color-surface-2);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  height: 230px;
  margin-top: 16px;
  overflow: hidden;
  position: relative;
}

.incident-pin,
.member-pin {
  align-items: center;
  border-radius: var(--radius-pill);
  display: inline-flex;
  font-size: 10px;
  font-weight: var(--weight-black);
  justify-content: center;
  position: absolute;
  z-index: 2;
}

.incident-pin {
  background: var(--color-danger);
  box-shadow: 0 0 0 8px rgba(255, 77, 53, .14), 0 0 32px rgba(255, 77, 53, .45);
  color: #fff;
  height: 38px;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 62px;
}

.member-pin {
  background: var(--color-primary);
  border: 3px solid var(--color-card);
  color: #102016;
  height: 34px;
  width: 34px;
}

.radius-ring {
  border: 2px dashed rgba(255, 77, 53, .52);
  border-radius: 50%;
  height: 152px;
  left: 50%;
  position: absolute;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 152px;
  z-index: 1;
}

.modal-note {
  line-height: 1.45;
  margin: 12px 0 0;
}

.compact {
  margin-top: 12px;
}

.search-result {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px;
}

.admin-screen {
  display: grid;
  gap: 12px;
}

.admin-card,
.report-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px;
}

.admin-step {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-step > span {
  align-items: center;
  background: var(--color-primary);
  border-radius: 50%;
  color: #102016;
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: var(--weight-black);
  height: 30px;
  justify-content: center;
  width: 30px;
}

.admin-step strong,
.admin-step small {
  display: block;
}

.admin-step small,
.report-card p,
.report-card small,
.delivery-row small,
.report-summary-grid small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.group-picker {
  display: grid;
  gap: 8px;
}

.admin-search-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 76px;
  margin-bottom: 10px;
}

.admin-search-row input {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font: inherit;
  min-width: 0;
  outline: 0;
  padding: 0 14px;
}

.compact-group-list {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: grid;
  max-height: 294px;
  overflow-y: auto;
  padding: 6px;
}

.compact-group-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-text);
  display: grid;
  gap: 0 9px;
  grid-template-columns: 22px 1fr auto;
  min-height: 48px;
  padding: 7px 8px;
  text-align: left;
}

.compact-group-row.child {
  padding-left: 22px;
}

.compact-group-row + .compact-group-row {
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.compact-group-row.is-selected {
  background: rgba(166, 255, 63, .1);
}

.check-dot {
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.compact-group-row.is-selected .check-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.compact-group-row.is-selected .check-dot::after {
  background: #102016;
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.compact-group-row strong,
.compact-group-row small {
  display: block;
  min-width: 0;
}

.compact-group-row strong {
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-group-row small {
  color: var(--color-muted);
  font-size: 10px;
  margin-top: 2px;
}

.compact-group-row em {
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: var(--weight-bold);
  padding: 5px 8px;
}

.compact-group-row.is-selected em {
  background: var(--color-primary);
  color: #102016;
}

.group-node {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  padding: 11px 12px;
  text-align: left;
}

.group-node.child {
  margin-left: 18px;
}

.group-node.is-selected {
  border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.group-node strong,
.group-node small,
.selected-summary span,
.selected-summary strong {
  display: block;
}

.group-node small,
.selected-summary span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-top: 3px;
}

.selected-summary {
  align-items: center;
  background: linear-gradient(135deg, rgba(166, 255, 63, .12), transparent);
  border: 1px dashed color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px;
}

.selected-target-card {
  background: linear-gradient(135deg, rgba(166, 255, 63, .12), transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 32%, var(--color-border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 6px;
  padding: 14px;
}

.selected-target-card strong,
.selected-target-card small {
  display: block;
}

.selected-target-card small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.admin-compose-form {
  margin: 0;
}

.admin-attachment-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.admin-preview-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 7px;
  padding: 12px;
}

.admin-preview-card strong,
.admin-preview-card small {
  display: block;
}

.admin-preview-card small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.report-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.report-summary-grid.detailed {
  grid-template-columns: repeat(2, 1fr);
}

.report-summary-grid div {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 12px;
}

.report-summary-grid span,
.report-summary-grid strong {
  display: block;
}

.report-summary-grid span {
  color: var(--color-muted);
  font-size: 10px;
}

.report-summary-grid strong {
  font-size: var(--text-lg);
  margin-top: 5px;
}

.report-card {
  display: grid;
  gap: 12px;
}

.report-card h3 {
  font-size: var(--text-lg);
  margin: 8px 0 0;
}

.report-card p {
  margin: 5px 0 0;
}

.report-bars {
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  display: flex;
  gap: 3px;
  height: 8px;
  overflow: hidden;
}

.report-bars span {
  display: block;
  height: 100%;
}

.report-bars .sent {
  background: var(--color-success);
}

.report-bars .queued {
  background: var(--color-warning);
}

.report-bars .failed {
  background: var(--color-danger);
}

.report-filter {
  padding: 0;
}

.delivery-list {
  display: grid;
  gap: 9px;
}

.message-report-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px;
}

.message-report-card h2 {
  font-size: 22px;
  line-height: 1.08;
  margin: 12px 0 0;
}

.message-report-card p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 10px 0 0;
}

.report-info-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.report-info-grid div {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
}

.report-info-grid span,
.report-info-grid strong {
  display: block;
}

.report-info-grid span {
  color: var(--color-muted);
  font-size: 10px;
}

.report-info-grid strong {
  font-size: var(--text-sm);
  margin-top: 4px;
}

.compact-report-card .full-button {
  margin-top: 0;
}

.delivery-toolbar {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 64px;
}

.delivery-toolbar input {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font: inherit;
  min-height: 42px;
  min-width: 0;
  outline: 0;
  padding: 0 14px;
}

.paged-note,
.pagination-row {
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  display: flex;
  font-size: var(--text-xs);
  justify-content: space-between;
  padding: 10px 12px;
}

.paged-note strong {
  color: var(--color-primary);
}

.compact-list {
  gap: 6px;
}

.delivery-row {
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 9px 11px;
}

.delivery-row strong,
.delivery-row small {
  display: block;
}

.delivery-row > span {
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--weight-bold);
  padding: 6px 8px;
  white-space: nowrap;
}

.compact-list .delivery-row strong {
  font-size: var(--text-sm);
}

.compact-list .delivery-row small {
  margin-top: 2px;
}

.pagination-row {
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

.delivery-row.sent > span {
  background: rgba(74, 222, 128, .16);
  color: var(--color-success);
}

.delivery-row.queued > span {
  background: rgba(255, 176, 32, .16);
  color: var(--color-warning);
}

.delivery-row.failed > span {
  background: rgba(255, 77, 53, .16);
  color: var(--color-danger);
}

.message-composer button {
  align-items: center;
  background: var(--color-primary);
  border: 0;
  border-radius: 50%;
  color: #102016;
  display: inline-flex;
  font-weight: var(--weight-black);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.message-composer input {
  background: transparent;
  border: 0;
  color: var(--color-text);
  font: inherit;
  min-width: 0;
  outline: 0;
}

.edit-form {
  display: grid;
  gap: 12px;
}

.profile-edit-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.edit-form label {
  color: var(--color-muted);
  display: grid;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  gap: 7px;
}

.edit-form input,
.edit-form textarea,
.edit-form select {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font: inherit;
  min-height: 46px;
  outline: 0;
  padding: 12px;
  width: 100%;
}

.edit-form textarea {
  min-height: 84px;
  resize: vertical;
}

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

.timeline div {
  border-left: 2px solid var(--color-primary);
  padding-left: 12px;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-top: 4px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border-radius: 22px;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  justify-content: center;
}

.nav-item span {
  align-items: center;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.nav-item small {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.nav-item.is-active {
  background: var(--color-primary);
  color: #102016;
}

@keyframes pulseRing {
  0% {
    opacity: .95;
    transform: scale(.86);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes floatDot {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(14px, -18px, 0);
  }
}

@keyframes progressLoop {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(220%);
  }
}

@keyframes listItemIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubblePop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sosPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@media (max-width: 760px), (pointer: coarse) and (max-width: 900px) {
  body {
    background: var(--color-surface);
    overflow: hidden;
  }

  .demo-shell {
    padding: 0;
  }

  .phone-frame {
    background: var(--color-surface);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100svh;
    min-height: 100vh;
    padding: 0;
    width: 100vw;
  }

  .phone-screen {
    border-radius: 0;
    height: 100svh;
    min-height: 100svh;
    width: 100vw;
  }
}
