:root {
  --blue: #3b6dff;
  --blue-deep: #2b5cf0;
  --glow: rgba(59, 109, 255, 0.28);
  --bg: #d7eefb;
  --panel: #ffffff;
  --panel-border: rgba(148, 174, 198, 0.35);
  --text: #1b2433;
  --muted: #7b8aa0;
  --fill: rgba(255, 255, 255, 0.72);
  --ok: #22c55e;
  --warn: #f0c14b;
  --danger: #ff6b7a;
  --design-w: 1138px;
  --design-h: 800px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  background: #cfeaf8;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow: hidden;
}

#scale-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
}
#design-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--design-w);
  height: var(--design-h);
  transform-origin: top left;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(255,255,255,0.95), transparent 55%),
    radial-gradient(700px 380px at 88% 8%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1000px 500px at 50% 110%, rgba(170, 214, 245, 0.9), transparent 55%),
    linear-gradient(180deg, #eaf6ff 0%, #c5e6f8 55%, #b7ddf4 100%);
  padding: 28px 36px 24px;
  display: flex;
  flex-direction: column;
}

.g-bar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.g-mini {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 18px; color: #1b2433;
}
.g-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.mac-window.home .g-mini { visibility: hidden; }
.mac-window.home #header-search-slot { display: none; }
.g-home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 40px 80px;
}
.g-home.has-map {
  justify-content: flex-start;
  padding-top: 10px;
  padding-bottom: 24px;
  gap: 10px;
}
.g-home.has-map .g-logo { font-size: 40px; }
.us-map-wrap {
  width: 520px;
  max-width: 100%;
  max-height: 340px;
  margin: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}
.us-map-wrap.is-away {
  opacity: 0;
  max-height: 0;
  margin: 0;
  pointer-events: none;
}
.us-map {
  width: 520px;
  height: 306px;
  max-width: 100%;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.04));
}
.us-map svg { width: 100%; height: 100%; display: block; }
.us-map .us-state { cursor: pointer; fill: transparent; }
.us-map .us-state:hover { fill: rgba(219,234,254,0.8); }
.us-map .us-state.is-active { fill: rgba(191,219,254,0.9); }
.us-map-hint {
  margin-top: 6px;
  text-align: center;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 400;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: #64748B;
  font-size: 12px;
  font-weight: 500;
}
.home-search-slot { width: 580px; max-width: 100%; }
.g-logo {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1b2433;
  line-height: 1;
}
.g-ask { color: #5b6b80; font-size: 16px; }
.g-promise {
  max-width: 640px;
  margin: -4px 0 4px;
  color: #7a8798;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.g-search, .mac-search {
  position: relative;
  display: flex; align-items: center;
  height: 52px;
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 999px;
  padding: 0 8px 0 18px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
}
.g-search:hover, .g-search:focus-within {
  box-shadow: 0 2px 12px rgba(32, 33, 36, 0.16);
}
.g-search input, .mac-search input {
  flex: 1; border: 0; background: transparent; box-shadow: none;
  font-size: 16px; color: #1b2433; padding: 0 10px;
}
.answer-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.rate-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dce6f0;
  background: #fff;
  color: #5b6b80;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.rate-btn svg { width: 16px; height: 16px; }
.rate-btn.on {
  background: #e8f0ff;
  color: #3b6dff;
  border-color: #c5d6ff;
}
.rate-status { font-size: 12px; color: #7b8aa0; }

.mac-window {
  position: relative;
  flex: 1;
  min-height: 0;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(80, 130, 180, 0.22), 0 2px 0 rgba(255,255,255,0.8) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.mac-bar {
  height: 52px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 14px;
  border-bottom: 1px solid rgba(190, 210, 230, 0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,252,255,0.8));
}
.header-search-slot { min-width: 0; }
.mac-window.home .header-search-slot { display: none; }
.mac-window.home .mac-bar { grid-template-columns: auto 1fr auto; border-bottom-color: transparent; background: transparent; }
.mac-window.results .mac-label { display: none; }
.mac-window.home .gen-pill { display: none !important; }
.home-search-slot {
  width: 580px;
  max-width: 100%;
  z-index: 5;
}
.mac-window.home .mac-search {
  width: 100%;
  height: 52px;
  padding-right: 6px;
  box-shadow: 0 10px 30px rgba(140, 170, 200, 0.18);
}
.mac-window.home .mac-go { width: 40px; height: 40px; }
.mac-window.home .mac-search input { font-size: 15px; }
.mac-window.results .header-search-slot .mac-search,
.mac-window.results .header-search-slot .g-search { width: 100%; max-width: 640px; }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.traffic .r { background: #ff5f57; }
.traffic .y { background: #febc2e; }
.traffic .g { background: #28c840; }
.wp-mark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; color: #1b2433;
  font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.wp-cloud-mini {
  width: 22px; height: 16px; border-radius: 10px;
  background: linear-gradient(180deg, #7ec8ff, #3b6dff);
  box-shadow: 0 4px 10px rgba(59,109,255,0.35);
  position: relative;
}
.wp-cloud-mini::after {
  content: '';
  position: absolute; left: 5px; top: -5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(180deg, #9fd6ff, #5b8cff);
}
.mac-search {
  position: relative;
  display: flex; align-items: center;
  height: 36px;
  background: #fff;
  border: 1px solid #e3ebf4;
  border-radius: 999px;
  padding: 0 4px 0 12px;
  box-shadow: 0 6px 18px rgba(140, 170, 200, 0.12);
  overflow: visible;
}
.mac-search-ico { width: 16px; height: 16px; color: #9aa8ba; display: flex; }
.mac-search-ico svg, .mac-go svg { width: 16px; height: 16px; }
.mac-search input {
  flex: 1; border: 0; background: transparent; box-shadow: none;
  font-size: 13px; color: #1b2433; padding: 0 8px;
}
.mac-search input:focus { outline: none; box-shadow: none; border: 0; }
.mac-clear {
  border: 0; background: transparent; color: #9aa8ba; font-size: 18px; cursor: pointer; padding: 0 4px;
}
.mac-go {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: #3b6dff; color: #fff; display: grid; place-items: center; cursor: pointer;
}
.mac-right { display: flex; align-items: center; gap: 10px; }
button.mac-label {
  border: 0; background: transparent; font-family: inherit; cursor: pointer;
}
.mac-label { font-size: 12px; color: #93a1b5; font-weight: 500; }
.gen-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: #6b7c92;
}
.spin {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #c9d6e6; border-top-color: #3b6dff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.light-chip { background: #eef3fb; border-color: #e3ebf4; padding: 2px; }
.light-chip .acct-chip-ava { margin: 0; }

.view-home {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 22px; padding: 72px 40px 48px;
  background:
    radial-gradient(720px 320px at 50% 8%, rgba(255,255,255,0.98), transparent 62%);
}
.hero-cloud {
  width: 118px; height: 92px; border: 0; background: transparent; cursor: pointer; position: relative;
}
.cloud-body {
  position: absolute; inset: 18px 8px 8px;
  background: linear-gradient(180deg, #8fd0ff 0%, #3d7dff 70%, #2f63f0 100%);
  border-radius: 40px;
  box-shadow: 0 18px 30px rgba(47, 99, 240, 0.28);
}
.cloud-body::before, .cloud-body::after {
  content: ''; position: absolute; background: inherit; border-radius: 50%;
}
.cloud-body::before { width: 54px; height: 54px; left: 8px; top: -22px; }
.cloud-body::after { width: 70px; height: 70px; right: 6px; top: -28px; }
.cloud-arrow {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(180deg, #5aa0ff, #2f63f0);
  display: grid; place-items: center;
  box-shadow: 0 8px 16px rgba(47,99,240,0.35);
  z-index: 1;
}
.cloud-arrow svg { width: 22px; height: 22px; }
.home-pills { display: flex; gap: 12px; }
.soft-pill {
  background: #fff; border: 1px solid #e4edf6; color: #5b6b80;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500;
  font-family: inherit; cursor: pointer; box-shadow: 0 6px 16px rgba(140,170,200,0.12);
}
.pill-drop { position: relative; }
.pill-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 6;
  background: #fff; border: 1px solid #e4edf6; border-radius: 12px;
  min-width: 120px; box-shadow: 0 12px 30px rgba(80,120,160,0.16);
}
.pill-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  border: 0; background: transparent; font-family: inherit; cursor: pointer; color: #1b2433;
}
.g-home .hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 2px auto 0;
}
.search-error { color: #c2410c; font-size: 13px; min-height: 16px; }

.view-results {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 18px 28px 0; background: #fff;
}
.results-grid {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: 1.45fr 0.85fr; gap: 18px;
}
.place-row { display: flex; align-items: center; gap: 8px; color: #7b8aa0; font-size: 13px; }
.pin {
  width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #3b6dff;
}
.verified {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: #16a34a; font-size: 12px; font-weight: 600;
}
.vdot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.parcel-col h1 { font-size: 28px; letter-spacing: -0.03em; margin: 6px 0 4px; }
.res-addr { color: #7b8aa0; font-size: 13px; margin-bottom: 14px; }
.fact-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px 12px;
  padding: 12px 0 16px; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7;
}
.fact-grid span { display: block; font-size: 11px; color: #8b97a8; margin-bottom: 4px; }
.fact-grid strong { font-size: 15px; font-weight: 700; color: #1b2433; }
.summary-card {
  margin-top: 16px; background: #f7fbff; border: 1px solid #e6eef7; border-radius: 16px; padding: 14px 16px;
}
.summary-card h2 { font-size: 14px; margin-bottom: 8px; }
.summary-card p { font-size: 13px; color: #5b6b80; line-height: 1.5; }
.summary-cta {
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between;
  background: #eaf3ff; color: #3b6dff; text-decoration: none;
  border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600;
}
.insights-col {
  background: #f7fbff; border: 1px solid #e6eef7; border-radius: 16px; padding: 16px;
  overflow: auto;
}
.insights-col h2 { font-size: 15px; margin-bottom: 12px; }
.insight-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.insight-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.insight-ico {
  width: 28px; height: 28px; border-radius: 8px; background: #e8f0ff; color: #3b6dff;
  display: grid; place-items: center; font-size: 14px;
}
.insight-list strong { display: block; font-size: 13px; }
.insight-list em { display: block; font-style: normal; font-size: 13px; color: #3b6dff; font-weight: 600; }
.insight-list span { display: block; font-size: 11px; color: #8b97a8; }
.insight-ico svg { width: 16px; height: 16px; }
.heal-toggle {
  margin-top: 16px; width: 100%;
  background: #fff; color: #5b6b80; border: 1px solid #e6eef7;
  border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 13px; cursor: pointer;
}
.heal-box { margin-top: 12px; }
.heal-box textarea { min-height: 72px; resize: vertical; }
.soft-cta {
  margin-top: 8px; width: 100%;
  background: #3b6dff; color: #fff; border: 0; border-radius: 10px;
  padding: 10px 12px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.res-tabs {
  display: flex; gap: 22px; padding: 8px 4px 0; border-top: 1px solid #eef2f7; margin-top: 8px;
}
.res-tab {
  border: 0; background: transparent; color: #8b97a8; font-family: inherit;
  font-size: 13px; padding: 10px 0 12px; cursor: pointer;
}
.res-tab.on { color: #3b6dff; box-shadow: inset 0 -2px 0 #3b6dff; }
.tab-panels { padding: 8px 0 12px; font-size: 13px; color: #5b6b80; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

.batch-overlay, .perm-overlay {
  position: absolute; inset: 0; z-index: 35;
  background: rgba(20, 40, 70, 0.28);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.batch-card, .perm-card {
  background: #fff; color: #1b2433;
  border-radius: 18px; width: 100%; max-width: 980px; max-height: 100%;
  overflow: auto; padding: 20px;
  box-shadow: 0 24px 60px rgba(40, 80, 120, 0.25);
}
.batch-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.perm-card { max-width: 520px; position: relative; }
.perm-card h2 { font-size: 22px; margin-bottom: 10px; }
.perm-card p { color: #5b6b80; font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.text-signin {
  border: 0; background: transparent; font-family: inherit; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #3b6dff; padding: 4px 8px;
}
.gate-card { max-width: 400px; padding: 22px 24px 18px; }
.gate-card h2 { font-size: 20px; margin-bottom: 6px; }
.gate-card form { display: flex; flex-direction: column; gap: 10px; }
.gate-card .auth-tabs { margin: 12px 0 10px; }
.gate-card .primary { width: 100%; margin-top: 4px; }
.gate-card .auth-note { margin-top: 10px; color: #8b97a8; font-size: 12px; }
.gate-card .auth-error { color: #c2410c; font-size: 13px; }
.oauth-stack { display: flex; flex-direction: column; gap: 8px; }
.oauth-btn {
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #d5e2ef;
  background: #fff;
  color: #1b2433;
  cursor: pointer;
}
.oauth-btn:hover { background: #f7fbff; }
.oauth-or {
  text-align: center;
  color: #8b97a8;
  font-size: 12px;
  font-weight: 600;
  margin: 10px 0 4px;
}
.confirm-hold-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background: #3b6dff;
  color: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  text-decoration: none;
  margin: 8px 0 10px;
}
.ghost-skip {
  width: 100%;
  margin-top: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #d5e2ef;
  background: #f4f8fd;
  color: #1b2433;
  cursor: pointer;
}
.gate-confirm, .gate-member { display: flex; flex-direction: column; gap: 10px; }
.perm-actions .primary, .about-card .guide-link {
  background: #3b6dff; color: #fff; border: 0; border-radius: 12px;
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.perm-actions .ghost, .batch-card .ghost {
  background: #f4f8fd; color: #1b2433;
}
.about-x {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: #f4f8fd; color: #5b6b80;
  cursor: pointer; font-size: 18px;
}
.about-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.about-links .guide-link { display: inline-flex; align-items: center; }

.auth-gate {
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(255,255,255,0.95), transparent 55%),
    linear-gradient(180deg, #eaf6ff 0%, #c5e6f8 100%);
}
.auth-pitch h1 { color: #1b2433; }
.auth-card {
  background: rgba(255,255,255,0.92);
  color: #1b2433;
}
.auth-card label { color: #7b8aa0; }
.primary {
  background: linear-gradient(180deg, #5b8cff, #3b6dff);
  color: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4, 10, 28, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #9ae2ff, #1b6fe0 58%, #0b2c70);
  box-shadow: 0 0 18px var(--glow);
}
.brand-name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  background: linear-gradient(135deg, var(--blue), #fff 55%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 12px; color: var(--muted); }
.top-pills { display: flex; gap: 8px; }
.pill {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 10px; border-radius: 999px;
  background: var(--fill); border: 1px solid var(--panel-border); color: var(--muted);
}
.pill.ok { color: var(--ok); border-color: rgba(61, 220, 138, 0.35); }
.pill.warn { color: var(--warn); border-color: rgba(240, 193, 75, 0.35); }
a.pill, a.guide-link {
  text-decoration: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}
a.pill:hover, a.guide-link:hover {
  color: var(--blue);
  border-color: rgba(62, 196, 255, 0.55);
  box-shadow: 0 0 16px rgba(40, 160, 255, 0.16);
}

.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.modules-5 { grid-template-columns: repeat(5, 1fr); }
.mod {
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: var(--fill);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px; font-weight: 700;
}
.mod span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.mod.active {
  background: linear-gradient(180deg, rgba(40, 140, 255, 0.22), rgba(8, 20, 50, 0.9));
  border-color: rgba(62, 196, 255, 0.55);
  box-shadow: 0 0 24px rgba(40, 160, 255, 0.18);
}

.workspace { flex: 1; display: grid; grid-template-columns: 1.45fr 0.9fr; gap: 12px; min-height: 0; }
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.panel-head h1 { font-size: 20px; font-weight: 700; }
.panel-head p { color: var(--muted); font-size: 12px; margin: 4px 0 12px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
input, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
}
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(62, 196, 255, 0.15); }

.parcel-head { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.parcel-head h2 { font-size: 13px; }
.parcel-head small { color: var(--muted); font-weight: 500; margin-left: 8px; }
.parcel-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.4fr 32px;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}
.parcel-row input { width: 100%; }

.actions { display: flex; gap: 8px; margin-top: 10px; }
.primary, .ghost, .icon-btn {
  border: 0; cursor: pointer; font-family: inherit; font-weight: 700;
}
.primary {
  background: linear-gradient(180deg, #3ec4ff, #1a7ad4);
  color: #041226; border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(30, 140, 255, 0.28);
}
.primary.compact { padding: 8px 12px; }
.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 16px;
}
.ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.icon-btn {
  background: rgba(255, 80, 90, 0.12); color: var(--danger);
  border: 1px solid rgba(255, 107, 122, 0.3); border-radius: 10px; height: 36px;
}

.status-line { min-height: 18px; margin-top: 8px; font-size: 12px; color: var(--muted); }
#cert-list { margin-top: 10px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cert-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 12px;
}
.cert-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.cert-card p { font-size: 12px; color: var(--muted); line-height: 1.45; }
.cert-card a { color: var(--blue); }

.messages { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.msg, .spul-card {
  border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45;
  border: 1px solid var(--panel-border);
}
.msg-user { background: rgba(62, 196, 255, 0.12); align-self: flex-end; max-width: 92%; }
.msg-ai { background: rgba(255,255,255,0.04); }
.spul-card { background: rgba(16, 40, 90, 0.55); }
.spul-card .entity { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.conf { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; }
.conf-verified { background: rgba(61, 220, 138, 0.15); color: var(--ok); }
.conf-pattern_matched, .conf-pattern { background: rgba(240, 193, 75, 0.15); color: var(--warn); }
.conf-not_found, .conf-notfound { background: rgba(255, 107, 122, 0.15); color: var(--danger); }
.spul-card a { color: var(--blue); display: inline-block; margin-top: 6px; }
.host { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 4px; }

.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; }

#db-pill, #spul-pill, #passport-pill,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  display: block !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.hero-search {
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.hero-search input {
  flex: 1;
  font-size: 16px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(4, 12, 32, 0.85);
  box-shadow: 0 0 0 1px rgba(62, 196, 255, 0.22), 0 8px 28px rgba(20, 80, 180, 0.18);
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 500; color: #334155;
  background: #fff; border: 1px solid #d7e3ee;
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-family: inherit;
}
.chip:hover, .chip:focus {
  color: var(--blue);
  border-color: rgba(62, 196, 255, 0.55);
  box-shadow: 0 0 14px rgba(40, 160, 255, 0.16);
  outline: none;
}
.suggest-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 8;
  background: #fff;
  border: 1px solid #e4edf6;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(80, 120, 160, 0.18);
  overflow: hidden;
  max-height: 220px;
}
.suggest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item.active, .suggest-item:hover { background: #f4f8fd; }
.suggest-item .meta { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: #8b97a8; }
.suggest-item .meta.lock { color: #16a34a; }
.spul-card .empty-lock { color: var(--warn); margin-top: 6px; }

[hidden] { display: none !important; }

.acct-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--panel-border);
  background: var(--fill);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.acct-chip-ava, .acct-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3b5cff;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.auth-gate {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 36px 40px;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(255,255,255,0.95), transparent 55%),
    radial-gradient(700px 380px at 88% 8%, rgba(255,255,255,0.7), transparent 50%),
    linear-gradient(180deg, #eaf6ff 0%, #c5e6f8 100%);
}
.auth-pitch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 12px 8px 12px 20px;
}
.auth-brand-row { margin-bottom: 8px; }
.auth-pitch h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 560px;
}
.auth-pitch p { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 520px; }
.auth-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.auth-points li {
  background: rgba(255,255,255,0.78);
  border: 1px solid #e4edf6;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1b2433;
}
.auth-card {
  align-self: center;
  background: rgba(255,255,255,0.94);
  border: 1px solid #e4edf6;
  border-radius: 20px;
  padding: 22px 24px 18px;
  box-shadow: 0 24px 60px rgba(80, 130, 180, 0.18);
  width: 100%;
  max-width: 520px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.auth-tab {
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--fill);
  color: var(--muted);
  cursor: pointer;
}
.auth-tab.active {
  color: #fff;
  background: #3b6dff;
  border-color: transparent;
}
.auth-card form { display: flex; flex-direction: column; gap: 10px; }
.auth-card .primary { margin-top: 6px; width: 100%; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: #5e7ea8; }
.auth-error { color: var(--danger); font-size: 13px; margin-top: 10px; }
.auth-note { color: var(--muted); font-size: 12px; margin-top: 12px; line-height: 1.45; }

.account-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  background: transparent;
}
.account-sheet {
  width: 390px;
  height: 100%;
  background: #121212;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'DM Sans', sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
}
.account-sheet.is-wide {
  width: 860px;
}
.account-peek {
  flex: 1;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.acct-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 0 20px;
}
.ios-status {
  height: 62px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 10px 28px;
  color: #fff;
}
.ios-time {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding-left: 2px;
}
.ios-sys { display: flex; align-items: center; gap: 6px; }
.ios-signal { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.ios-signal i {
  display: block;
  width: 3px;
  background: #fff;
  border-radius: 1px;
}
.ios-signal i:nth-child(1) { height: 4px; }
.ios-signal i:nth-child(2) { height: 6px; }
.ios-signal i:nth-child(3) { height: 8px; }
.ios-signal i:nth-child(4) { height: 11px; }
.ios-5g { font-size: 13px; font-weight: 700; letter-spacing: -0.03em; }
.ios-batt {
  width: 25px;
  height: 12px;
  border: 1.5px solid #fff;
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1px;
}
.ios-batt::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  background: #fff;
  border-radius: 0 1px 1px 0;
}
.ios-batt span {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 1px;
}

.acct-profile-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 18px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.acct-avatar {
  width: 64px;
  height: 64px;
  font-size: 28px;
  background: #3b5cff;
}
.acct-avatar.sm { width: 64px; height: 64px; font-size: 26px; }
.acct-avatar.xl { width: 88px; height: 88px; font-size: 36px; }
.acct-who { display: flex; flex-direction: column; gap: 2px; }
.acct-name { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.acct-sub { font-size: 13px; color: #a7a7a7; font-weight: 400; }
.acct-rule {
  height: 1px;
  background: #3a3a3a;
  margin: 2px 0 4px;
}

.acct-row, .acct-msg-title, .acct-circle-btn, .acct-compose-btn, .acct-back {
  background: transparent;
  border: 0;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}
.acct-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 22px;
  text-align: left;
}
.acct-row-stacked { align-items: flex-start; padding-top: 16px; padding-bottom: 14px; }
.acct-ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.acct-ico svg { width: 24px; height: 24px; }
.acct-row-title { font-size: 16px; font-weight: 400; color: #fff; }
.acct-row-text { display: flex; flex-direction: column; gap: 2px; }
.acct-row-sub { font-size: 13px; color: #a7a7a7; }

.acct-circles {
  display: flex;
  gap: 28px;
  padding: 22px 24px 8px;
}
.acct-circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}
.acct-circle-label { font-size: 12px; font-weight: 500; color: #fff; }
.acct-circle-sub { font-size: 12px; color: #a7a7a7; margin-top: -4px; }
.acct-plus-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2a2a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.acct-plus-circle svg { width: 28px; height: 28px; }
.acct-plus-circle.sm { width: 44px; height: 44px; }
.acct-plus-circle.sm svg { width: 20px; height: 20px; }

.acct-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 0 20px;
}
.acct-msg-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.acct-chev { font-size: 22px; font-weight: 400; color: #fff; line-height: 1; }
.acct-compose-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0;
}
.acct-compose-btn svg { width: 24px; height: 24px; }
.acct-msg-copy {
  color: #a7a7a7;
  font-size: 13px;
  line-height: 1.35;
  padding: 6px 20px 10px;
}
.acct-new-msg { padding-top: 8px; }

.acct-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 12px 8px;
  position: sticky;
  top: 0;
  background: #121212;
  z-index: 1;
}
.acct-subhead h2 { font-size: 20px; font-weight: 700; flex: 1; }
.acct-back {
  width: 40px;
  height: 40px;
  font-size: 32px;
  line-height: 1;
  color: #fff;
}
.acct-profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px 18px;
}
.acct-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
}
.acct-dl div {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 12px;
}
.acct-dl dt { font-size: 11px; color: #a7a7a7; text-transform: uppercase; letter-spacing: 0.04em; }
.acct-dl dd { font-size: 14px; margin-top: 4px; }
.acct-hint { color: #a7a7a7; font-size: 13px; line-height: 1.45; padding: 12px 20px; }
.acct-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 20px 12px;
}
.acct-form label { color: #a7a7a7; }
.acct-form input, .acct-form textarea {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #fff;
}
.acct-form input:focus, .acct-form textarea:focus {
  border-color: #3b5cff;
  box-shadow: 0 0 0 3px rgba(59, 92, 255, 0.2);
}
.acct-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: #fff;
}
.acct-check input { width: 18px; height: 18px; }
.acct-full { width: calc(100% - 40px); margin: 8px 20px; }
.danger-ghost { color: #ff8a96; border-color: rgba(255, 107, 122, 0.35); }
.acct-inline-status { min-height: 16px; color: #a7a7a7; font-size: 12px; padding: 0 20px 8px; }
.acct-list { display: flex; flex-direction: column; padding: 0 12px 12px; gap: 8px; }
.acct-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.acct-item strong { display: block; font-size: 14px; font-weight: 600; }
.acct-item span { display: block; font-size: 12px; color: #a7a7a7; margin-top: 3px; }
.acct-empty { color: #a7a7a7; font-size: 13px; padding: 20px; text-align: center; }

.desktop-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 20px 20px;
}
.desk-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 16px;
  min-height: 160px;
}
.desk-card h3 { font-size: 14px; margin-bottom: 8px; }
.compact-list { padding: 0; max-height: 220px; overflow: auto; }
.compact-ghost { margin-top: 12px; padding: 8px 12px; }

#design-canvas.signed-out .batch-overlay { visibility: hidden; }

.batch-card .mod, .batch-card .ghost {
  background: #f4f8fd; color: #1b2433; border: 1px solid #e4edf6;
}
.batch-card .mod.active {
  background: #eaf3ff; border-color: #3b6dff; color: #1b2433;
  box-shadow: none;
}
.batch-card input, .auth-card input, .gate-card input, .heal-box textarea, .acct-form input, .acct-form textarea {
  background: #f7fbff; color: #1b2433; border: 1px solid #e4edf6;
}

/* Conversation surface: one search box, answers stack, DeepShake decides the collector link. */
.g-new {
  border: 1px solid #dce6f0; background: #fff; color: #1b2433;
  border-radius: 999px; padding: 6px 14px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.g-new:hover { border-color: #c5d6ff; color: #3b6dff; }
.mac-window.results .header-search-slot { display: none; }
.g-results {
  flex: 1; min-height: 0; overflow: auto;
  padding: 4px 40px 12px;
}
.g-thread {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column;
  font-size: 15px; color: #1b2433;
}
.turn {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 0 22px;
  border-bottom: 1px solid #e6edf5;
}
.turn:last-child { border-bottom: 0; }
.turn-q {
  align-self: flex-end;
  max-width: 76%;
  background: #e9f0fa;
  color: #1b2433;
  border-radius: 20px 20px 6px 20px;
  padding: 10px 16px;
  font-size: 15px; line-height: 1.45;
  overflow-wrap: anywhere;
}
.turn-a { display: flex; flex-direction: column; gap: 12px; }
.turn-place {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: #3d4f63;
}
.turn-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa8ba; flex: none; }
.turn-place.is-serve .turn-dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.turn-place.is-held .turn-dot { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }
.turn-status { font-weight: 500; color: #6b7c92; }
.turn-status::before { content: '\00B7'; margin: 0 6px 0 2px; color: #b6c2d1; }
.turn-text { font-size: 16px; line-height: 1.62; color: #1b2433; max-width: 700px; }
.turn-text:empty { display: none; }
.turn-options { display: flex; flex-wrap: wrap; gap: 8px; }
.turn-opt {
  border: 1px solid #d5e2ef; background: #fff; color: #1b2433;
  border-radius: 999px; padding: 7px 14px;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.turn-opt:hover { border-color: #3b6dff; color: #3b6dff; }
.turn-source {
  display: flex; align-items: center; gap: 12px;
  max-width: 600px;
  padding: 12px 12px 12px 14px;
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 16px;
  color: inherit; text-decoration: none;
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.06);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.turn-source:hover { border-color: #c5d6ff; box-shadow: 0 6px 18px rgba(59, 109, 255, 0.12); }
.src-ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px; background: #e8f0ff; color: #3b6dff;
  display: grid; place-items: center;
}
.src-ico svg { width: 20px; height: 20px; }
.src-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.src-title { font-size: 14px; font-weight: 700; color: #1a0dab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-host { font-size: 12px; color: #5f6f84; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-go {
  flex: none;
  background: #3b6dff; color: #fff;
  border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 700;
}
.turn-report {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.report-btn {
  border: 1px solid #d5dee8;
  background: #fff;
  color: #3a4a5c;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.report-btn:hover { background: #f3f7fb; }
.report-status { font-size: 12px; color: #5f6f84; }
.turn-meta { display: flex; align-items: center; gap: 12px; }
.turn-meta .answer-rate { margin-top: 0; }
.turn-agent { font-size: 12px; color: #8b97a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.turn-think { display: flex; flex-direction: column; gap: 12px; }
.think-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.think-radar {
  width: 12px; height: 12px; flex: none;
  border-radius: 50%; background: #3b6dff;
  animation: think-ping 1.4s ease-out infinite;
}
.think-step {
  background: linear-gradient(90deg, #5b6b80 0%, #5b6b80 35%, #b9c7da 50%, #5b6b80 65%, #5b6b80 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: think-shimmer 1.6s linear infinite;
}
.think-lines { display: flex; flex-direction: column; gap: 9px; }
.think-lines span {
  display: block; height: 11px; border-radius: 6px;
  background: linear-gradient(90deg, #e6edf6 0%, #f4f7fb 50%, #e6edf6 100%);
  background-size: 220% 100%;
  animation: think-shimmer 1.6s linear infinite;
}
.think-lines span:nth-child(1) { width: 92%; }
.think-lines span:nth-child(2) { width: 78%; }
.think-lines span:nth-child(3) { width: 54%; }
@keyframes think-shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@keyframes think-ping {
  0% { box-shadow: 0 0 0 0 rgba(59, 109, 255, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(59, 109, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 109, 255, 0); }
}


/* F3 — phone (<640): device-width stack, no ScaleToFit. Base text 18px; chips scroll sideways. */
html.wp-phone,
html.wp-phone body {
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 18px;
  height: auto;
  min-height: 100%;
}
html.wp-phone #scale-outer {
  height: auto !important;
  min-height: 100%;
  overflow: visible;
}
html.wp-phone #design-canvas {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100vh;
  left: 0 !important;
  transform: none !important;
  padding: 10px 8px 28px;
}
html.wp-phone .mac-window {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 20px);
  border-radius: 16px;
}
/* F4: while framed, never bind phone min-height to viewport — that loops with postMessage height. */
html.wp-phone.wp-framed,
html.wp-phone.wp-framed body {
  height: auto;
  min-height: 0;
}
html.wp-phone.wp-framed #design-canvas {
  min-height: 0;
}
html.wp-phone.wp-framed .mac-window {
  min-height: 0;
}
html.wp-phone .g-bar {
  height: auto;
  min-height: 48px;
  padding: 8px 4px;
  flex-wrap: wrap;
  gap: 8px;
}
html.wp-phone .g-home {
  align-items: stretch;
  justify-content: flex-start;
  padding: 12px 4px 32px;
  gap: 14px;
}
html.wp-phone .g-logo { font-size: 40px; text-align: center; }
html.wp-phone .g-ask { font-size: 18px; text-align: center; }
html.wp-phone .g-promise { font-size: 16px; max-width: none; text-align: left; }
html.wp-phone .home-search-slot {
  width: 100%;
  max-width: none;
}
html.wp-phone .g-search,
html.wp-phone .mac-search {
  width: 100%;
  max-width: none;
  height: 52px;
  padding: 0 6px 0 10px;
}
html.wp-phone .mac-search-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
html.wp-phone .mac-search-ico svg { width: 18px; height: 18px; }
html.wp-phone .mac-go {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
html.wp-phone .mac-go svg { width: 18px; height: 18px; }
html.wp-phone .mac-clear { width: 28px; flex: 0 0 28px; }
html.wp-phone .g-search input,
html.wp-phone .mac-search input,
html.wp-phone #hero-input {
  font-size: 18px;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  padding: 0 6px;
}
html.wp-phone .g-home .hero-chips,
html.wp-phone .hero-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
html.wp-phone .hero-chips .chip,
html.wp-phone .chip {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 15px;
}
html.wp-phone .us-map-wrap,
html.wp-phone .us-map {
  width: 100%;
  max-width: 100%;
  height: auto;
}
html.wp-phone .us-map { height: auto; aspect-ratio: 520 / 306; }
html.wp-phone .trust-badges {
  font-size: 14px;
  justify-content: flex-start;
}
html.wp-phone .g-results,
html.wp-phone .view-results {
  padding: 12px 4px 0;
}
html.wp-phone .results-grid {
  grid-template-columns: 1fr;
}
html.wp-phone .dock-search-slot .g-search {
  width: 100%;
  max-width: 100%;
}
html.wp-phone .g-thread,
html.wp-phone .turn-a,
html.wp-phone .turn-q {
  font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .think-radar, .think-step, .think-lines span { animation: none; }
  .think-step { color: #5b6b80; background: none; }
}
.g-tools { max-width: 760px; margin: 0 auto; padding: 2px 0 10px; }
.g-tools .heal-toggle {
  width: auto; margin: 0; padding: 4px 0;
  background: transparent; border: 0; border-radius: 0;
  color: #6b7c92; font-size: 12.5px;
  text-decoration: underline; text-underline-offset: 3px;
}
.g-tools .heal-toggle:hover { color: #3b6dff; }
.g-tools .heal-box { max-width: 560px; }
.dock-search-slot {
  flex: none;
  display: flex; justify-content: center;
  padding: 10px 40px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.86) 45%);
}
.mac-window.home .dock-search-slot { display: none; }
.dock-search-slot .g-search { width: 760px; max-width: 100%; }
.dock-search-slot .suggest-list { top: auto; bottom: calc(100% + 8px); }
