@font-face {
  font-family: "SF UI Display";
  src: url("../fonts/SFUIDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF UI Display";
  src: url("../fonts/SFUIDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF UI Display";
  src: url("../fonts/SFUIDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF UI Display";
  src: url("../fonts/SFUIDisplay-Heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f8fb;
  --bg-2: #eef3f7;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --ink: #111827;
  --muted: #647080;
  --line: #dce3ea;
  --soft-line: #eef2f5;
  --accent: #0a84ff;
  --accent-2: #5fe0d1;
  --pink: #f63b7b;
  --gold: #d5ad62;
  --green: #10a85a;
  --warning: #8a5d00;
  --shadow: 0 24px 70px rgba(31, 45, 61, .11);
  --section-tint: #f4f6f8;
  --radius: 28px;
  --pill: 40px;
  --font: "SF UI Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #03070d;
  --bg-2: #07111d;
  --surface: #0c1520;
  --surface-2: #111d2a;
  --ink: #f7fbff;
  --muted: #94a4b8;
  --line: #233245;
  --soft-line: #172333;
  --section-tint: #101a26;
  --accent: #0a84ff;
  --accent-2: #68e1d5;
  --pink: #ff3b7f;
  --gold: #e0b967;
  --green: #38d487;
  --warning: #f5c465;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% -10%, rgba(95, 224, 209, .24), transparent 20rem),
    radial-gradient(circle at 110% 8%, rgba(10, 132, 255, .16), transparent 22rem),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

body[data-role="owner"] {
  background:
    radial-gradient(circle at 0% 0%, rgba(10, 132, 255, .17), transparent 28rem),
    radial-gradient(circle at 100% 18%, rgba(246, 59, 123, .12), transparent 26rem),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px;
}

.phone-stage {
  position: relative;
  min-height: calc(100vh - 24px);
  padding: 14px 14px 84px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: var(--shadow);
}

.ommnya-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.ommnya-lockup img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: contain;
}

.ommnya-lockup div {
  display: grid;
  min-width: 0;
}

.ommnya-lockup strong {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: .24em;
  line-height: 1;
}

.ommnya-lockup span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .22em;
}

.ommnya-lockup.large img {
  width: 86px;
  height: 86px;
}

.ommnya-lockup.large strong {
  font-size: clamp(34px, 5vw, 78px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-size: 13px;
  letter-spacing: .08em;
}

.brand-copy small,
.section-label,
small {
  color: var(--muted);
}

.brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organiser-mark {
  display: none;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.release-mark {
  display: none;
  padding: 6px 9px;
  border: 1px solid rgba(95, 224, 209, .28);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(95, 224, 209, .08);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

.top-actions,
.action-row,
.role-switcher,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-actions {
  flex: 0 0 auto;
}

.icon-btn {
  min-height: 36px;
  padding: 0 11px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}

.has-dot {
  position: relative;
}

.has-dot::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: 6px;
  top: 6px;
  border-radius: 50%;
  background: var(--pink);
}

.role-switcher {
  overflow-x: auto;
  padding: 8px 0 10px;
  scrollbar-width: none;
}

.role-switcher a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  font-size: 12px;
}

.role-switcher a.is-active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
}

.content {
  display: grid;
  gap: 10px;
}

.flash {
  margin-bottom: 10px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--ink);
  font-weight: 700;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 2px -3px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.section-label strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, var(--section-tint));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .24) inset;
}

.home-navigation {
  padding: 10px;
  border-radius: 26px;
}

.home-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--soft-line);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.05;
  font-weight: 700;
}

h2 {
  font-size: 15px;
  line-height: 1.15;
}

p {
  color: var(--muted);
}

.home-head p,
.timeline p,
.placement-card p,
.route-summary p,
.notice p,
.exhibitor-hero p,
.organiser-grid p,
.owner-command p,
.builder-main p,
.event-summary-card p,
.ecu-brief p,
.powered p {
  margin-top: 4px;
  font-size: 12px;
}

.home-head > strong {
  align-self: start;
  flex: 0 0 auto;
  max-width: 124px;
  padding: 8px 10px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent-2) 18%, var(--surface));
  color: color-mix(in srgb, var(--accent-2) 72%, var(--ink));
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

.timeline {
  display: grid;
  gap: 6px;
  padding: 9px 0;
}

.home-now-next {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 20px;
  background: var(--surface-2);
}

.home-session-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
}

.home-session-row time {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
}

.home-session-row time span {
  display: block;
}

.home-session-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.home-session-copy small {
  color: var(--muted);
  font-size: 9px;
}

.home-session-copy strong {
  font-size: 13px;
  line-height: 1.12;
}

.home-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.home-session-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.timeline article,
.audit-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 9px;
}

.timeline time,
.audit-list time {
  width: 44px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.timeline strong,
.lead-list strong,
.audit-list strong,
.campaign-table strong {
  display: block;
}

.change-strip {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
}

.change-strip span {
  color: var(--ink);
}

.primary-action,
.secondary-action,
.mini-action,
.save-contact,
.contact-actions a,
.route-menu a,
.route-menu button,
.status-form button {
  min-height: 42px;
  border: 0;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}

.primary-action,
.save-contact {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-2) 75%, var(--accent)));
  color: #fff;
}

.inline-form {
  display: grid;
}

.secondary-action,
.mini-action,
.contact-actions a,
.route-menu a,
.route-menu button {
  background: var(--surface-2);
  color: var(--ink);
}

.action-row {
  margin-top: 10px;
}

.action-row .primary-action {
  flex: 1;
}

.directions-card {
  display: grid;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--accent-2) 10%, var(--surface)));
}

.directions-card div {
  display: grid;
  gap: 4px;
}

.directions-card span {
  color: var(--muted);
  font-size: 12px;
}

.arrival-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), color-mix(in srgb, var(--accent-2) 10%, var(--surface)));
}

.arrival-strip div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.arrival-strip strong {
  font-size: 12px;
}

.arrival-strip span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.arrival-strip .primary-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
  white-space: nowrap;
}

.route-pill {
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-2) 75%, var(--accent)));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.placement-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  min-height: 108px;
  padding: 8px;
  border-radius: 24px;
}

.placement-card.sponsor {
  border-left: 5px solid #ff7a66;
}

.placement-card.service {
  border-left: 5px solid #7ccfff;
}

.ad-visual,
.booth-image,
.contact-photo,
.contact-logo,
.scan-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent),
    var(--surface-2);
}

.ad-visual {
  min-height: 92px;
  border-radius: 18px;
}

.ad-visual span,
.scan-frame span {
  width: 38px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.sponsor-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.placement-card h2 {
  font-size: 13px;
  line-height: 1.12;
}

.placement-card p {
  font-size: 10px;
  line-height: 1.35;
}

.mini-action {
  min-height: 30px;
  margin-top: 7px;
  padding: 0 12px;
  color: var(--accent);
  font-size: 11px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(100%, 460px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  min-height: 68px;
  padding: 7px 18px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(5, 7, 10, .96);
  box-shadow: 0 -18px 34px rgba(0, 0, 0, .26), 0 -1px 0 rgba(255, 255, 255, .05) inset;
  backdrop-filter: blur(22px) saturate(1.25);
  z-index: 30;
}

.bottom-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  place-items: center;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 46px;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  text-align: center;
  transition: color .18s ease, transform .18s ease;
}

.bottom-nav .nav-icon,
.bottom-nav a > svg {
  display: block;
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  overflow: visible;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav .nav-icon path,
.bottom-nav a > svg path {
  fill: none !important;
  stroke: currentColor !important;
}

.bottom-nav .nav-label {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: currentColor;
}

.bottom-nav a.is-active {
  color: var(--accent);
}

.bottom-nav .nav-scan {
  transform: translateY(-3px);
}

.bottom-nav .nav-scan .nav-icon,
.bottom-nav .nav-scan > svg {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px;
  min-height: 26px;
  max-width: 26px;
  max-height: 26px;
  padding: 11px;
  box-sizing: content-box;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  color: rgba(255, 255, 255, .78);
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
  box-shadow: 0 11px 24px rgba(0, 0, 0, .34), 0 1px 0 rgba(255, 255, 255, .08) inset;
}

.bottom-nav .nav-scan.is-active .nav-icon,
.bottom-nav .nav-scan.is-active > svg {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 62%, rgba(255, 255, 255, .16));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 42%, #1f2730), #161b22);
}

:root[data-theme="light"] .bottom-nav {
  border-top-color: rgba(17, 24, 39, .08);
  background: rgba(8, 10, 14, .96);
}

.map-scene {
  position: relative;
  min-height: 300px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(35deg, transparent 47%, rgba(10, 132, 255, .18) 48%, rgba(10, 132, 255, .18) 52%, transparent 53%),
    linear-gradient(140deg, transparent 38%, rgba(95, 224, 209, .22) 39%, rgba(95, 224, 209, .22) 44%, transparent 45%),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--line) 28%, transparent) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--line) 28%, transparent) 0 1px, transparent 1px 38px),
    var(--surface-2);
}

.map-label,
.you-dot {
  position: absolute;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}

.poi {
  transform: translate(-50%, -50%);
  z-index: 3;
}

.you-dot {
  left: 32px;
  bottom: 72px;
  background: var(--accent);
  color: #fff;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.route-svg polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 16px rgba(10, 132, 255, .22));
}

.route-summary,
.exhibitor-hero,
.owner-command,
.campaign-builder,
.people-manager,
.event-setup-grid,
.ecu-brief,
.contact-card {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.push-panel,
.upload-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.upload-panel form {
  display: grid;
  gap: 10px;
}

.upload-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.upload-panel input {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
}

.steps {
  margin: 0;
  padding: 0 0 0 22px;
  color: var(--muted);
}

.steps li {
  margin: 8px 0;
}

.notice {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.notice.critical {
  border-color: color-mix(in srgb, var(--pink) 45%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--pink) 10%, var(--surface)), var(--surface));
}

.notice-meta,
.campaign-table article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.booth-image {
  min-height: 150px;
  border-radius: 24px;
  color: var(--muted);
}

.booth-image img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

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

.metric-grid article {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.metric-grid strong {
  font-size: 22px;
}

.metric-grid span,
.lead-list small,
.campaign-table small,
.audit-list p {
  color: var(--muted);
  font-size: 11px;
}

.lead-list,
.audit-list,
.campaign-table,
.route-menu {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.lead-list article {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--soft-line);
}

.lead-list article span,
.campaign-table b {
  align-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 13%, var(--surface));
  color: var(--green);
  font-size: 11px;
}

.organiser-grid {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.organiser-grid article {
  padding: 12px;
  border-radius: 22px;
  background: var(--surface-2);
}

.organiser-grid .needs {
  background: color-mix(in srgb, var(--pink) 9%, var(--surface-2));
}

.owner-sidebar {
  display: none;
}

.owner-command {
  align-items: center;
}

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

.owner-toggle-card,
.event-summary-card,
.ecu-brief {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.owner-toggle-card form,
.event-summary-card {
  align-items: center;
}

.owner-toggle-card form {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: var(--surface-2);
}

.owner-toggle-card form strong {
  color: var(--green);
}

.builder-form {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.builder-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.builder-form input,
.builder-form select,
.status-form input,
.status-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
}

.builder-form button {
  width: 100%;
}

.builder-side {
  padding: 14px;
  border-radius: 24px;
  background: var(--surface-2);
}

.slot-stack {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.slot-stack span {
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--green);
  font-weight: 700;
}

.slot-stack .locked {
  color: var(--pink);
}

.campaign-table article,
.people-table article {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--soft-line);
}

.funnel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: -6px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--soft-line);
}

.funnel-row span {
  padding: 7px 8px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.status-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(100px, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.status-form button {
  min-height: 38px;
  padding: 0 12px;
  background: var(--surface-2);
  color: var(--accent);
}

.campaign-table article:last-child,
.people-table article:last-child,
.lead-list article:last-of-type {
  border-bottom: 0;
}

.people-table {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.people-table article {
  display: grid;
  gap: 9px;
}

.people-table code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.people-table b {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 13%, var(--surface));
  color: var(--green);
  font-size: 11px;
}

.contact-card {
  text-align: center;
}

.contact-photo,
.contact-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border: 3px solid var(--gold);
  border-radius: 50%;
}

.contact-logo {
  border-radius: 34px;
}

.contact-photo img,
.contact-logo img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.save-contact {
  min-height: 62px;
  font-size: 19px;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qr-card {
  width: 168px;
  min-height: 168px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.qr-card img,
.qr-card canvas {
  width: 148px;
  height: 148px;
}

.consent-form {
  margin-top: 2px;
}

.contact-actions a {
  min-height: 58px;
}

.contact-actions .whatsapp {
  background: linear-gradient(180deg, #20b747, #08752d);
  color: #fff;
}

.powered {
  margin-top: 4px;
  padding: 16px;
  border-radius: 24px;
  background: var(--surface-2);
}

.scan-shell {
  display: grid;
  gap: 12px;
  padding: 18px;
  text-align: center;
}

.scanner-stage {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, .18), transparent 38%),
    linear-gradient(315deg, rgba(94, 234, 212, .16), transparent 42%),
    var(--surface-2);
}

.scanner-stage video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  background: #05070c;
}

.scan-reticle {
  position: absolute;
  inset: 16%;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 28px;
  box-shadow: 0 0 0 999px rgba(3, 8, 16, .3), inset 0 0 42px rgba(10, 132, 255, .18);
}

.scan-status {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px);
}

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

.manual-scan {
  grid-template-columns: 1fr;
  text-align: left;
}

.manual-scan input {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface-2);
}

.scan-frame {
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px dashed var(--accent);
}

.route-menu {
  grid-template-columns: 1fr;
}

.permission-grid,
.schedule-manager {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.permission-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: var(--surface-2);
}

.permission-card div {
  display: grid;
  gap: 3px;
}

.permission-card button,
.route-menu button {
  min-height: 42px;
  border: 0;
  border-radius: var(--pill);
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}

.permission-card button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

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

.schedule-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: var(--surface-2);
}

.compact-schedule-form {
  margin: 0;
}

.schedule-board {
  display: grid;
  gap: 12px;
}

.schedule-day {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 68%, var(--surface-2));
}

.schedule-day h2 {
  padding: 2px 4px 6px;
  color: var(--ink);
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(72px, .18fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 18px;
  background: var(--surface-2);
}

.schedule-row time {
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}

.schedule-row p {
  margin-top: 2px;
  font-size: 12px;
}

.schedule-row span {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.ecu-grid,
.funnel-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.ecu-grid article,
.funnel-summary article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 20px;
  background: var(--surface-2);
}

.ecu-grid strong,
.funnel-summary strong {
  font-size: 24px;
}

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

.funnel-summary h2 {
  grid-column: 1 / -1;
}

.schedule-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: var(--surface-2);
}

.schedule-list .schedule-edit-row {
  display: block;
}

.schedule-edit-row form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-edit-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-edit-row .full {
  grid-column: 1 / -1;
}

.schedule-edit-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
}

.schedule-edit-row button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800;
}

.proof-chip {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  color: var(--warning);
}

.install-card {
  position: fixed;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 60;
  width: min(420px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.install-card p {
  font-size: 12px;
}

body[data-role="public"] {
  background: #05070b;
  color: #f8fbff;
  font-size: 16px;
  line-height: 1.55;
}

body[data-role="public"] .public-header,
body[data-role="public"] .public-footer,
body[data-role="public"] .public-main,
body[data-role="public"] .legal-main {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.public-header {
  position: sticky;
  z-index: 20;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 70px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  background: rgba(7, 12, 21, .78);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .25);
}

.public-brand img {
  width: 176px;
  max-height: 46px;
  object-fit: contain;
}

.public-header nav,
.public-footer nav,
.button-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-header nav a,
.public-footer a {
  color: #b7c0ce;
  font-size: 14px;
}

.public-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.public-cta,
.button-primary {
  color: #fff;
  background: #0a84ff;
  box-shadow: 0 18px 44px rgba(10, 132, 255, .24);
}

.button-quiet {
  color: #eff5ff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
}

.public-hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 105px 0 90px;
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: -120px calc(50% - 50vw);
  z-index: -3;
  background:
    radial-gradient(circle at 76% 26%, rgba(10, 132, 255, .42), transparent 24rem),
    radial-gradient(circle at 88% 62%, rgba(246, 59, 123, .32), transparent 18rem),
    radial-gradient(circle at 62% 88%, rgba(95, 224, 209, .20), transparent 20rem),
    linear-gradient(180deg, #05070b 0%, #09121e 56%, #05070b 100%);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: -120px calc(50% - 50vw);
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, .96) 0%, rgba(5, 7, 11, .76) 46%, rgba(5, 7, 11, .26) 100%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 78px);
}

.hero-copy {
  width: min(710px, 100%);
  position: relative;
  z-index: 4;
}

.eyebrow,
.kicker {
  margin: 0;
  color: #5fe0d1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.blue {
  color: #68aaff;
}

.public-hero h1,
.public-section h2,
.legal-hero h1 {
  margin: 22px 0;
  font-weight: 800;
  letter-spacing: 0;
  line-height: .98;
}

.public-hero h1 {
  max-width: 850px;
  font-size: clamp(48px, 7vw, 92px);
}

.public-hero p {
  max-width: 680px;
  color: #c7d0dd;
  font-size: clamp(18px, 2.1vw, 23px);
}

.hero-note,
.form-note {
  color: #8d9aac;
  font-size: 13px;
}

.hero-device {
  position: absolute;
  z-index: 1;
  right: 2vw;
  bottom: 46px;
  width: min(390px, 38vw);
  transform: rotate(-5deg);
  opacity: .92;
}

.mini-phone {
  min-height: 690px;
  padding: 24px;
  border: 10px solid rgba(255, 255, 255, .14);
  border-radius: 56px;
  background: linear-gradient(180deg, #eef7ff, #e7edf5);
  box-shadow: 0 45px 120px rgba(0, 0, 0, .56);
  color: #101827;
}

.mini-top,
.mini-nav,
.mini-ad {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 30px;
  background: rgba(255, 255, 255, .82);
}

.mini-top {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.mini-top img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.mini-nav strong {
  font-size: 24px;
  line-height: 1.05;
}

.mini-nav span,
.mini-ad span {
  padding: 10px 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: #516070;
}

.mini-ad.cyan {
  border-left: 5px solid #5fe0d1;
}

.mini-ad.blue {
  border-left: 5px solid #0a84ff;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  background: rgba(255, 255, 255, .1);
}

.proof-strip span {
  padding: 22px;
  background: rgba(9, 18, 30, .88);
  color: #c7d0dd;
  font-weight: 700;
}

.public-section {
  margin: 22px 0;
  padding: 86px;
  border-radius: 34px;
}

.public-section.light {
  color: #101827;
  background: #f4f7fb;
}

.public-section.dark,
.public-section.request {
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(145deg, #09121e, #05070b 62%, #101020);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.public-section h2,
.legal-hero h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.section-heading p,
.public-section p,
.legal-body p {
  color: #637083;
}

.public-section.dark p,
.public-section.request p {
  color: #b8c3d1;
}

.role-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.role-grid article,
.trust-grid article,
.money-panel {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(10, 24, 40, .1);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(31, 45, 61, .08);
}

.role-grid span {
  color: #0a84ff;
  font-weight: 800;
}

.role-grid h3,
.trust-grid h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.commercial-layout,
.public-section.request {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  color: #e9f1fb;
  background: rgba(255, 255, 255, .05);
}

.money-panel {
  color: #f8fbff;
  background:
    radial-gradient(circle at 80% 0%, rgba(95, 224, 209, .2), transparent 15rem),
    rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .13);
}

.money-panel strong {
  display: block;
  margin: 18px 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
}

.public-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 28px;
  border-radius: 30px;
  background: #f8fafc;
  color: #101827;
}

.public-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.public-form input,
.public-form select,
.public-form textarea {
  width: 100%;
  border: 1px solid #d8e0e8;
  border-radius: 17px;
  padding: 14px 15px;
  background: #fff;
  color: #101827;
}

.public-form .full {
  grid-column: 1 / -1;
}

.access-main {
  min-height: 100vh;
}

.access-hero {
  grid-template-columns: minmax(0, .85fr) minmax(360px, .62fr);
  align-items: center;
}

.access-form {
  position: relative;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.access-or {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.access-or::before,
.access-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d8e0e8;
}

.consent-line {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 500;
}

.consent-line input {
  width: auto;
  margin-top: 3px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.public-flash {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(95, 224, 209, .35);
  border-radius: 20px;
  color: #dffdf8;
  background: rgba(95, 224, 209, .1);
}

.legal-main {
  padding: 70px 0;
}

.legal-hero {
  max-width: 840px;
  padding: 70px 0 34px;
}

.legal-hero p {
  color: #c7d0dd;
  font-size: 21px;
}

.legal-body {
  max-width: 850px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 30px;
  background: rgba(255, 255, 255, .06);
}

.legal-body h2 {
  margin: 28px 0 10px;
  font-size: 26px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: #c7d0dd;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 0 70px;
  color: #9ca8b8;
}

.public-footer img {
  width: 180px;
  margin-bottom: 14px;
}

.public-footer p {
  max-width: 460px;
  margin: 0;
}

@media (min-width: 520px) {
  .organiser-mark {
    display: inline-flex;
  }

  .release-mark {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .app-shell.owner-layout {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 16px clamp(16px, 2vw, 34px);
    display: grid;
    grid-template-columns: minmax(270px, 18vw) minmax(0, 1fr);
    gap: clamp(16px, 1.6vw, 28px);
    align-items: start;
  }

  .owner-layout .phone-stage {
    width: 100%;
    min-height: calc(100vh - 32px);
    padding: 22px clamp(22px, 2vw, 34px) 34px;
    overflow: visible;
    border-radius: 30px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
  }

  .owner-layout .bottom-nav {
    display: none;
  }

  .owner-layout .content {
    width: 100%;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
  }

  .owner-layout .section-label,
  .owner-layout .surface,
  .owner-layout .metric-grid {
    grid-column: 1 / -1;
  }

  .owner-sidebar {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 8px;
    min-height: calc(100vh - 32px);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
  }

  .owner-sidebar img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .owner-sidebar a {
    padding: 12px 14px;
    border-radius: 18px;
    color: var(--muted);
  }

.owner-sidebar a.is-active,
.owner-sidebar a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.owner-security-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
}

.owner-security-card {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr);
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 16%, rgba(10, 132, 255, .28), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(94, 234, 212, .18), transparent 24%),
    color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.owner-security-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.owner-security-brand .ommnya-lockup {
  padding: 0;
}

.owner-security-brand span,
.security-context small {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--accent);
  background: var(--surface-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

.owner-security-brand h1 {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 74px);
  line-height: .95;
}

.owner-security-brand p,
.owner-security-form p {
  color: var(--muted);
}

.owner-security-form {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.security-context {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.security-context strong {
  font-size: 22px;
}

.security-context span {
  color: var(--muted);
}

.owner-security-form input {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
}

.security-flash {
  margin: 0;
}

  .owner-command,
  .campaign-builder,
  .people-manager,
  .event-setup-grid,
  .ecu-brief {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
    gap: 18px;
    padding: 18px;
  }

  .owner-actions {
    align-self: stretch;
    align-content: center;
  }

  .owner-toggle-card,
  .event-summary-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .schedule-editor {
    grid-template-columns: minmax(220px, .36fr) minmax(0, 1fr);
    align-items: start;
  }

  .schedule-row {
    grid-template-columns: minmax(112px, .18fr) minmax(0, 1fr) auto;
  }

  .funnel-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

  .builder-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .builder-form .full {
    grid-column: 1 / -1;
  }

  .campaign-table article {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(160px, .7fr) minmax(110px, .32fr) minmax(140px, .35fr) minmax(360px, .95fr);
    gap: 12px;
  }

  .funnel-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .people-table article {
    display: grid;
    grid-template-columns: minmax(230px, .95fr) minmax(260px, 1.25fr) minmax(90px, .22fr) minmax(250px, .65fr);
    gap: 14px;
    align-items: center;
  }
}

@media (min-width: 1440px) {
  .app-shell.owner-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .owner-layout .phone-stage {
    padding-inline: clamp(30px, 2.4vw, 46px);
  }
}

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

  .phone-stage {
    min-height: 100vh;
    border-radius: 0;
    border-width: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .placement-card {
    grid-template-columns: 74px 1fr;
  }

  .top-actions {
    max-width: 168px;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

@media (max-width: 820px) {
  body[data-role="public"] .public-header,
  body[data-role="public"] .public-footer,
  body[data-role="public"] .public-main,
  body[data-role="public"] .legal-main {
    width: min(100% - 24px, 1180px);
  }

  .public-header {
    position: relative;
    top: 0;
    margin-top: 12px;
    align-items: flex-start;
    border-radius: 24px;
  }

  .public-header nav {
    display: none;
  }

  .public-brand img {
    width: 150px;
  }

  .public-hero {
    min-height: 720px;
    align-items: flex-end;
    padding: 78px 0 52px;
  }

  .public-hero::after {
    background:
      linear-gradient(0deg, rgba(5, 7, 11, .98) 0%, rgba(5, 7, 11, .9) 56%, rgba(5, 7, 11, .42) 100%),
      repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 78px);
  }

  .public-hero h1 {
    font-size: 48px;
  }

  .button-row,
  .public-footer,
  .public-footer nav {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-device {
    top: 26px;
    right: -18px;
    bottom: auto;
    width: 260px;
    opacity: .48;
  }

  .mini-phone {
    min-height: 520px;
    border-radius: 46px;
    padding: 18px;
  }

  .proof-strip,
  .role-grid,
  .trust-grid,
  .commercial-layout,
  .public-section.request,
  .public-form {
    grid-template-columns: 1fr;
  }

  .public-section {
    padding: 48px 22px;
    border-radius: 28px;
  }

  .role-grid article,
  .trust-grid article,
  .money-panel {
    min-height: 0;
    padding: 24px;
  }

  .legal-main {
    padding-top: 32px;
  }

  .legal-body {
    padding: 28px 22px;
  }

  .owner-security-card {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 28px;
  }

  .owner-security-brand h1 {
    font-size: 42px;
  }

  .owner-security-brand img {
    width: min(100%, 300px);
  }

  .scan-actions {
    grid-template-columns: 1fr;
  }
}
