:root {
  color-scheme: light;
  --ink: #10131a;
  --ink-soft: #252a35;
  --muted: #687080;
  --faint: #9299a7;
  --line: #dde2ea;
  --line-strong: #cbd2dd;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f0f3f7;
  --blue: #1268f3;
  --blue-dark: #0b4fbd;
  --blue-soft: #eaf2ff;
  --mint: #b9f6dc;
  --mint-dark: #11694d;
  --coral: #ffb8a8;
  --coral-dark: #8b3525;
  --yellow: #f8dc80;
  --danger: #c73737;
  --success: #16825f;
  --shadow-sm: 0 1px 2px rgba(16, 19, 26, 0.06), 0 6px 20px rgba(16, 19, 26, 0.05);
  --shadow-md: 0 16px 48px rgba(16, 19, 26, 0.12);
  --max: 1240px;
  --sidebar: 248px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
.brand-lockup,
.button {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(18, 104, 243, 0.3);
  outline-offset: 2px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
}

.brand-mark img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.brand-lockup-light {
  color: #fff;
}

.brand-lockup-light .brand-mark {
  background: #fff;
}

.brand-lockup-light .brand-mark img {
  filter: none;
}

.button,
.text-button,
.link-button,
.control-button,
.icon-button,
.google-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(18, 104, 243, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--ink);
}

.button-light {
  color: var(--ink);
  background: #fff;
}

.button-small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.88rem;
}

.button-block {
  width: 100%;
}

.text-button,
.link-button {
  padding: 8px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 700;
}

.link-button {
  color: var(--blue-dark);
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.section-label,
.hero-kicker {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.market-header {
  position: relative;
  z-index: 30;
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--paper);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.desktop-nav a {
  position: relative;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

.market-hero {
  position: relative;
  min-height: 660px;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1b2f28;
}

.market-hero-media,
.market-hero-shade {
  position: absolute;
  inset: 0;
}

.market-hero-media {
  z-index: -3;
  background-image: url("https://images.unsplash.com/photo-1558904541-efa843a96f01?auto=format&fit=crop&w=2200&q=86");
  background-position: center 56%;
  background-size: cover;
  transform: scale(1.015);
  animation: heroSettle 1.1s ease-out both;
}

.market-hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 13, 12, 0.16) 0%, rgba(7, 16, 14, 0.24) 32%, rgba(8, 17, 15, 0.84) 100%),
    linear-gradient(90deg, rgba(5, 10, 9, 0.46), transparent 74%);
}

.market-hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 42px;
  color: #fff;
}

.hero-kicker {
  color: var(--mint);
}

.market-hero h1 {
  max-width: 880px;
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  line-height: 1.02;
  font-weight: 800;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.market-search {
  width: min(980px, 100%);
}

.search-mode {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(9, 17, 15, 0.72);
  backdrop-filter: blur(16px);
}

.search-mode button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.search-mode button.is-active {
  color: var(--ink);
  background: #fff;
}

.search-fields {
  display: grid;
  grid-template-columns: minmax(260px, 1.65fr) minmax(190px, 0.85fr) auto;
  gap: 0;
  min-height: 72px;
  padding: 7px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.search-fields label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  color: var(--muted);
}

.search-location-field {
  border-left: 1px solid var(--line);
}

.search-fields input {
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
}

.search-fields input::placeholder {
  color: #949aa5;
  opacity: 1;
}

.search-submit {
  min-width: 122px;
}

.search-privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.market-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-topline h2,
.how-intro h2,
.confidence-copy h2,
.launch-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.section-topline p:not(.section-label),
.how-intro > p:last-child,
.launch-cta > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.category-section {
  padding-bottom: 38px;
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.category-tile {
  min-width: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-tile:hover,
.category-tile.is-active {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.category-tile:nth-child(3n + 2) .category-icon {
  background: #e7f8f1;
  color: var(--mint-dark);
}

.category-tile:nth-child(3n + 3) .category-icon {
  background: #fff0ec;
  color: var(--coral-dark);
}

.category-tile strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.listing-section {
  padding-top: 38px;
}

.listing-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-button,
.control-select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
  font-weight: 700;
}

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

.provider-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.provider-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-soft);
}

.provider-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.provider-card:hover .provider-media img {
  transform: scale(1.035);
}

.provider-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 800;
}

.save-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.save-button.is-saved {
  color: var(--danger);
}

.provider-card-body {
  padding: 16px;
}

.provider-card-topline,
.provider-meta,
.provider-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-card-topline {
  margin-bottom: 7px;
}

.provider-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 800;
}

.rating svg {
  fill: #f5b83e;
  color: #f5b83e;
}

.provider-service {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.9rem;
}

.provider-meta {
  justify-content: flex-start;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.78rem;
}

.provider-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.provider-card-footer {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.provider-price strong {
  font-size: 1rem;
}

.provider-price span {
  color: var(--muted);
  font-size: 0.76rem;
}

.provider-card-footer .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.empty-listing {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 42px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.empty-listing > div {
  max-width: 520px;
}

.empty-listing .category-icon {
  margin: 0 auto 18px;
}

.empty-listing h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.empty-listing p {
  color: var(--muted);
}

.listing-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.confidence-band {
  width: min(1360px, calc(100% - 24px));
  margin: 20px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.8fr);
  gap: 64px;
  align-items: center;
  padding: clamp(42px, 7vw, 88px);
  border-radius: 8px;
  color: #fff;
  background: #111d1a;
}

.confidence-copy {
  max-width: 650px;
}

.confidence-copy .section-label {
  color: var(--mint);
}

.confidence-copy > p:not(.section-label) {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.7);
}

.confidence-points {
  display: grid;
  gap: 4px;
}

.confidence-points article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.confidence-points article:last-child {
  border-bottom: 0;
}

.confidence-points > article > svg {
  width: 24px;
  height: 24px;
  color: var(--mint);
}

.confidence-points strong,
.confidence-points span {
  display: block;
}

.confidence-points span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.how-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 70px;
}

.how-intro {
  align-self: center;
}

.how-steps {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.how-steps article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
}

.how-steps article > span {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 800;
}

.how-steps article div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
}

.how-steps h3 {
  margin: 0;
  font-size: 1.06rem;
}

.how-steps p {
  grid-column: 2;
  margin: 4px 0 0;
  color: var(--muted);
}

.how-steps svg {
  margin-top: 2px;
  color: var(--blue);
}

.launch-cta {
  width: min(var(--max), calc(100% - 40px));
  margin: 18px auto 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 38px;
  border: 1px solid #b8d5ff;
  border-radius: 8px;
  background: var(--blue-soft);
}

.launch-cta > div:first-child {
  max-width: 720px;
}

.launch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.market-footer {
  display: grid;
  grid-template-columns: 0.85fr 1.65fr;
  gap: 72px;
  padding: 60px max(32px, calc((100% - var(--max)) / 2));
  color: #d9dde5;
  background: #11131a;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 18px;
  color: #8f97a7;
}

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

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-columns strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.82rem;
}

.footer-columns a {
  width: fit-content;
  color: #949cac;
  font-size: 0.84rem;
}

.footer-columns a:hover {
  color: #fff;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid #292d36;
  color: #7f8797;
  font-size: 0.78rem;
}

.request-dialog,
.dashboard-dialog {
  width: min(660px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: var(--shadow-md);
}

.request-dialog::backdrop,
.dashboard-dialog::backdrop {
  background: rgba(10, 13, 19, 0.62);
  backdrop-filter: blur(4px);
}

.request-sheet,
.dashboard-dialog-panel {
  overflow-y: auto;
  max-height: calc(100vh - 28px);
  padding: 28px;
  background: #fff;
}

.request-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.request-sheet-head h2 {
  margin-bottom: 4px;
  font-size: 1.75rem;
}

.request-sheet-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.request-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 24px 0;
}

.request-progress span {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}

.request-progress span.is-active {
  background: var(--blue);
}

.request-body {
  display: grid;
  gap: 16px;
}

.request-sheet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.request-sheet-actions p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.field,
.request-field {
  display: grid;
  gap: 6px;
}

.field > span:first-child,
.request-field > span:first-child,
.account-type-fieldset legend {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.request-field input,
.request-field select,
.request-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.field textarea,
.request-field textarea {
  min-height: 96px;
  resize: vertical;
}

.field small {
  color: var(--muted);
  font-size: 0.75rem;
}

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

/* Authentication */
.auth-page {
  min-height: 100vh;
  background: #fff;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
}

.auth-story {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 64px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 14, 13, 0.2), rgba(8, 14, 13, 0.84)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=84") center / cover;
}

.auth-story-copy {
  max-width: 610px;
}

.auth-story-copy .section-label {
  color: var(--mint);
}

.auth-story-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.7vw, 4.7rem);
  line-height: 1.02;
}

.auth-story-copy > p:last-child {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
}

.auth-story-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.auth-story-proof svg {
  color: var(--mint);
}

.auth-form-side {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 88px clamp(24px, 7vw, 110px) 48px;
  background: #fff;
}

.auth-back {
  position: absolute;
  left: clamp(24px, 7vw, 110px);
  top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-form,
.auth-success {
  width: min(450px, 100%);
  display: grid;
  gap: 16px;
}

.auth-heading {
  margin-bottom: 8px;
}

.auth-heading h2,
.auth-success h2 {
  margin-bottom: 7px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
}

.auth-heading p,
.auth-success p {
  margin-bottom: 0;
  color: var(--muted);
}

#loginEmailStep,
#loginPasswordStep {
  display: grid;
  gap: 14px;
}

.google-auth-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.google-auth-button:hover {
  background: var(--surface-soft);
}

.google-g {
  color: #4285f4;
  font-size: 1.15rem;
  font-weight: 800;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 0.74rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-switch-copy,
.auth-legal {
  margin: 0;
  text-align: center;
}

.auth-switch-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-switch-copy button {
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.auth-legal {
  color: var(--faint);
  font-size: 0.72rem;
}

.auth-legal a,
.legal-check a,
.form-inline a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.email-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 700;
}

.email-summary button {
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

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

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

.password-field button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.form-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
}

.check-control {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.check-control input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.account-type-fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-type-fieldset legend {
  margin-bottom: 7px;
}

.account-type-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}

.account-type-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.account-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-type-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.account-type-option > span:last-child,
.account-type-option strong,
.account-type-option small {
  display: block;
}

.account-type-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.legal-check {
  padding: 10px 0;
  line-height: 1.45;
}

.auth-success {
  justify-items: center;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: var(--mint-dark);
  background: #e2f8ef;
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

/* Dashboard */
.dashboard-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f4f5f7;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.sidebar-brand {
  padding: 2px 8px 18px;
}

.workspace-label {
  margin: 2px 8px 12px;
  padding: 10px 11px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.workspace-label strong,
.workspace-label span {
  display: block;
}

.workspace-label strong {
  font-size: 0.82rem;
}

.workspace-label span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.dashboard-nav {
  display: grid;
  gap: 2px;
}

.dashboard-nav-group {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

.dashboard-nav-group > span {
  padding: 0 10px 5px;
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-nav button,
.sidebar-home-link {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-nav button:hover,
.dashboard-nav button.is-active,
.sidebar-home-link:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.dashboard-nav button.is-active {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.nav-count {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 0.65rem;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.sidebar-profile {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.sidebar-profile strong,
.sidebar-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile strong {
  font-size: 0.76rem;
}

.sidebar-profile small {
  color: var(--muted);
  font-size: 0.65rem;
}

.dashboard-main {
  grid-column: 2;
  min-width: 0;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-left p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.topbar-left h1 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.mobile-sidebar-toggle {
  display: none;
}

.command-search {
  min-width: 210px;
  min-height: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 0.78rem;
}

.command-search kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  background: var(--surface-soft);
  font-size: 0.68rem;
}

.has-indicator {
  position: relative;
}

.has-indicator > span {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral-dark);
}

.connection-toast {
  margin: 12px 28px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e4b66f;
  border-radius: 8px;
  color: #71480f;
  background: #fff8e9;
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-content {
  width: min(1440px, 100%);
  padding: 28px;
}

.dashboard-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.dashboard-welcome h2 {
  margin-bottom: 6px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.dashboard-welcome p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}

.status-chip,
.table-status,
.request-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.68rem;
  font-weight: 800;
}

.status-chip.success,
.table-status.success,
.request-status.accepted {
  color: var(--mint-dark);
  background: #def7ed;
}

.status-chip.warning,
.table-status.warning,
.request-status.pending {
  color: #76510c;
  background: #fff3cd;
}

.status-chip.danger,
.table-status.danger {
  color: #8e2929;
  background: #ffe8e8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.metric:nth-child(4n + 2) .metric-icon {
  color: var(--mint-dark);
  background: #e3f8ef;
}

.metric:nth-child(4n + 3) .metric-icon {
  color: var(--coral-dark);
  background: #fff0ec;
}

.metric-value {
  display: block;
  margin-top: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.metric-foot {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 16px;
}

.dashboard-stack {
  display: grid;
  align-content: start;
  gap: 16px;
}

.workspace-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workspace-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.workspace-panel-head h3 {
  margin: 0;
  font-size: 0.96rem;
}

.workspace-panel-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.workspace-panel-head button,
.workspace-panel-head a {
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.next-action-panel {
  padding: 20px;
  color: #fff;
  background: var(--ink);
}

.next-action-panel .workspace-panel-head {
  padding: 0;
  border: 0;
}

.next-action-panel .workspace-panel-head h3,
.next-action-panel .workspace-panel-head button {
  color: #fff;
}

.next-action-panel > p {
  margin: 16px 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.next-action-progress {
  height: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.next-action-progress span {
  display: block;
  width: 72%;
  height: 100%;
  background: var(--mint);
}

.next-action-panel .button {
  min-height: 40px;
  color: var(--ink);
  background: #fff;
  font-size: 0.78rem;
}

.activity-list,
.request-list,
.message-preview-list,
.schedule-list,
.queue-list {
  display: grid;
}

.activity-row,
.request-row,
.message-preview-row,
.schedule-row,
.queue-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.activity-row:last-child,
.request-row:last-child,
.message-preview-row:last-child,
.schedule-row:last-child,
.queue-row:last-child {
  border-bottom: 0;
}

.request-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.request-avatar,
.activity-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.request-row strong,
.request-row span,
.message-preview-row strong,
.message-preview-row span,
.schedule-row strong,
.schedule-row span {
  min-width: 0;
}

.request-row strong,
.request-row small,
.message-preview-row strong,
.message-preview-row small,
.schedule-row strong,
.schedule-row small {
  display: block;
}

.request-row small,
.message-preview-row small,
.schedule-row small,
.queue-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.request-row button,
.queue-row button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

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

.date-tile {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 7px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.date-tile strong {
  font-size: 1rem;
  line-height: 1;
}

.schedule-time {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.checklist {
  display: grid;
  padding: 8px 16px 14px;
}

.checklist-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.checklist-row:last-child {
  border-bottom: 0;
}

.check-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--faint);
}

.checklist-row.is-done .check-dot {
  border-color: var(--success);
  color: #fff;
  background: var(--success);
}

.checklist-row button {
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 0.76rem;
}

.data-table th {
  color: var(--muted);
  background: #fafbfc;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td strong,
.data-table td small {
  display: block;
}

.data-table td small {
  color: var(--muted);
}

.data-table button {
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar-search {
  min-width: min(360px, 100%);
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.toolbar-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.segment-control {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segment-control button {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.segment-control button.is-active {
  color: var(--ink);
  background: var(--surface-soft);
}

.calendar-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.calendar-toolbar h3 {
  margin: 0;
  font-size: 1rem;
}

.calendar-toolbar div {
  display: flex;
  gap: 6px;
}

.calendar-toolbar button {
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  overflow-x: auto;
}

.calendar-weekday,
.calendar-day {
  min-width: 90px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-weekday:nth-child(7n),
.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-weekday {
  padding: 8px;
  color: var(--muted);
  background: #fafbfc;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 104px;
  padding: 8px;
}

.calendar-day > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.calendar-day.is-today > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
}

.calendar-event {
  width: 100%;
  margin-top: 6px;
  padding: 5px 6px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  cursor: pointer;
  font-size: 0.63rem;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-shell {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(250px, 0.36fr) minmax(0, 0.64fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.thread-list {
  border-right: 1px solid var(--line);
}

.thread-list-head,
.conversation-head {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.thread-list-head h3,
.conversation-head h3 {
  margin: 0;
  font-size: 0.92rem;
}

.thread-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.thread-row.is-active {
  background: var(--blue-soft);
}

.thread-row strong,
.thread-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-row strong {
  font-size: 0.78rem;
}

.thread-row small,
.thread-row time {
  color: var(--muted);
  font-size: 0.65rem;
}

.unread-dot {
  width: 7px;
  height: 7px;
  align-self: center;
  border-radius: 50%;
  background: var(--blue);
}

.conversation {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.conversation-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.message-bubble {
  max-width: 74%;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 0.8rem;
}

.message-bubble.is-own {
  align-self: flex-end;
  color: #fff;
  background: var(--blue);
}

.message-bubble time {
  display: block;
  margin-top: 4px;
  color: inherit;
  opacity: 0.65;
  font-size: 0.62rem;
}

.message-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.message-compose input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.listing-manager-card,
.guide-card,
.settings-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.listing-manager-card h3,
.guide-card h3,
.settings-card h3 {
  margin-bottom: 6px;
  font-size: 0.94rem;
}

.listing-manager-card p,
.guide-card p,
.settings-card p {
  color: var(--muted);
  font-size: 0.76rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.card-actions button,
.card-actions a {
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.chart-panel {
  min-height: 320px;
  padding: 18px;
}

.chart-bars {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 12px;
  padding-top: 20px;
  border-bottom: 1px solid var(--line);
}

.chart-bars div {
  position: relative;
  min-height: 14px;
  border-radius: 5px 5px 0 0;
  background: var(--blue);
}

.chart-bars div:nth-child(even) {
  background: #70a7fa;
}

.chart-bars span {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  color: var(--muted);
  font-size: 0.62rem;
  transform: translateX(-50%);
}

.admin-queue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-queue-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.admin-queue-card:nth-child(2) {
  border-top-color: var(--coral-dark);
}

.admin-queue-card:nth-child(3) {
  border-top-color: var(--mint-dark);
}

.admin-queue-card:nth-child(4) {
  border-top-color: #9d6b13;
}

.admin-queue-card strong,
.admin-queue-card span {
  display: block;
}

.admin-queue-card strong {
  font-size: 1.55rem;
}

.admin-queue-card span {
  color: var(--muted);
  font-size: 0.72rem;
}

.dashboard-dialog-panel h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.dashboard-dialog-panel > p {
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* Information pages */
.info-page {
  background: #fff;
}

.info-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.info-main {
  min-height: 70vh;
}

.info-hero {
  padding: 90px max(20px, calc((100% - var(--max)) / 2));
  background: var(--paper);
}

.info-hero-inner {
  max-width: 820px;
}

.info-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.02;
}

.info-hero p:not(.section-label) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.info-content {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.info-feature-grid,
.info-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 64px;
}

.info-feature,
.info-step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-feature .card-icon,
.info-step .card-icon {
  margin-bottom: 20px;
}

.info-feature h2,
.info-step h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.info-feature p,
.info-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.info-section {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 52px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.info-section h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.info-section > div:last-child {
  color: var(--muted);
}

.info-section ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.info-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 42px;
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.info-callout h2 {
  margin-bottom: 6px;
}

.info-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr);
  gap: 42px;
}

.support-options {
  display: grid;
  align-content: start;
  gap: 10px;
}

.support-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-option strong,
.support-option span {
  display: block;
}

.support-option span {
  color: var(--muted);
  font-size: 0.76rem;
}

.support-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.support-form h2 {
  margin-bottom: 0;
}

.support-success {
  padding: 28px;
  border: 1px solid #b7e3d3;
  border-radius: 8px;
  background: #effbf6;
  text-align: center;
}

.support-success strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 1.2rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 52px;
}

.legal-toc {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 5px;
}

.legal-toc strong {
  margin-bottom: 7px;
  font-size: 0.76rem;
}

.legal-toc a {
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.legal-copy section {
  padding: 0 0 32px;
}

.legal-copy h2 {
  margin-bottom: 9px;
  font-size: 1.2rem;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
  font-size: 0.88rem;
}

.compact-footer {
  margin-top: 0;
}

@keyframes heroSettle {
  from { opacity: 0.72; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .category-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .metric-grid,
  .admin-queue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .listing-manager-grid,
  .guide-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell {
    grid-template-columns: minmax(320px, 0.78fr) minmax(460px, 1.22fr);
  }
}

@media (max-width: 860px) {
  .market-header {
    width: calc(100% - 28px);
    min-height: 66px;
    grid-template-columns: auto 1fr;
  }

  .desktop-nav,
  .header-actions > .text-button,
  .header-actions > .button {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-md);
  }

  .mobile-nav a {
    padding: 10px;
    border-radius: 7px;
    font-weight: 700;
  }

  .market-hero {
    min-height: 620px;
  }

  .market-hero-content {
    width: calc(100% - 28px);
    padding-bottom: 26px;
  }

  .market-hero h1 {
    font-size: clamp(2.4rem, 9vw, 4rem);
  }

  .search-fields {
    grid-template-columns: 1fr 0.8fr auto;
  }

  .market-section,
  .launch-cta {
    width: calc(100% - 28px);
  }

  .confidence-band,
  .how-section,
  .launch-cta {
    grid-template-columns: 1fr;
  }

  .confidence-band {
    gap: 34px;
    padding: 42px 28px;
  }

  .how-section {
    gap: 30px;
  }

  .launch-cta {
    display: grid;
  }

  .launch-actions {
    justify-content: flex-start;
  }

  .market-footer {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .auth-story {
    position: relative;
    min-height: 420px;
  }

  .auth-form-side {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 70px;
  }

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

  .dashboard-sidebar {
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow-md);
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }

  .dashboard-main {
    grid-column: 1;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
  }

  .command-search {
    min-width: 40px;
    width: 40px;
    grid-template-columns: 1fr;
  }

  .command-search span,
  .command-search kbd {
    display: none;
  }

  .info-header .header-actions > .button,
  .info-header .header-actions > .text-button {
    display: inline-flex;
  }

  .info-section,
  .support-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .brand-lockup > span:last-child {
    font-size: 0.9rem;
  }

  .market-hero {
    min-height: 690px;
  }

  .market-hero-media {
    background-position: 58% center;
  }

  .market-hero-content {
    padding-top: 68px;
  }

  .market-hero h1 {
    max-width: 500px;
    font-size: clamp(2.25rem, 11vw, 3.3rem);
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .search-mode {
    width: 100%;
  }

  .search-mode button {
    flex: 1;
    justify-content: center;
  }

  .search-fields {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
  }

  .search-fields label {
    padding: 0 10px;
  }

  .search-location-field {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .search-submit {
    width: 100%;
    min-height: 48px;
  }

  .search-privacy {
    align-items: flex-start;
  }

  .market-section {
    padding: 50px 0;
  }

  .section-topline,
  .listing-heading,
  .request-sheet-actions,
  .dashboard-welcome,
  .toolbar,
  .info-callout {
    align-items: stretch;
    flex-direction: column;
  }

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

  .category-tile {
    min-height: 108px;
  }

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

  .listing-controls,
  .launch-actions,
  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .listing-controls > *,
  .launch-actions > *,
  .toolbar-actions > * {
    width: 100%;
  }

  .confidence-band {
    width: calc(100% - 16px);
  }

  .launch-cta {
    padding: 24px;
  }

  .market-footer {
    padding: 46px 22px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .request-form-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .request-sheet,
  .dashboard-dialog-panel {
    padding: 20px;
  }

  .request-sheet-actions .button {
    width: 100%;
  }

  .auth-story {
    min-height: 360px;
    padding: 24px;
  }

  .auth-story-copy h1 {
    font-size: 2.35rem;
  }

  .auth-form-side {
    padding: 82px 22px 58px;
  }

  .auth-back {
    left: 22px;
  }

  .dashboard-topbar,
  .dashboard-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar-actions .button {
    display: none;
  }

  .metric-grid,
  .admin-queue-grid,
  .listing-manager-grid,
  .guide-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

  .thread-list {
    max-height: 270px;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .message-bubble {
    max-width: 88%;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, 88px);
  }

  .info-hero {
    padding: 64px 20px;
  }

  .info-hero h1 {
    font-size: 2.55rem;
  }

  .info-content {
    width: calc(100% - 32px);
    padding-top: 44px;
  }

  .info-feature-grid,
  .info-step-grid {
    grid-template-columns: 1fr;
  }

  .info-section {
    gap: 16px;
  }

  .support-layout {
    gap: 24px;
  }

  .legal-toc {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dashboard dark theme and final responsive containment */
html,
body.dashboard-page,
.dashboard-shell,
.dashboard-main {
  min-height: 100%;
}

.dashboard-main {
  background: #f4f5f7;
}

body.dashboard-page.is-dark {
  --ink: #f5f7fb;
  --ink-soft: #e1e6ef;
  --muted: #aab4c3;
  --faint: #7f8a9b;
  --line: #293446;
  --line-strong: #3a4659;
  --paper: #0b1018;
  --surface: #111927;
  --surface-soft: #172131;
  --blue: #5b9cff;
  --blue-dark: #9bc1ff;
  --blue-soft: rgba(65, 126, 221, 0.18);
  color: var(--ink);
  background: #0b1018;
}

body.dashboard-page.is-dark .dashboard-main,
body.dashboard-page.is-dark .dashboard-content {
  background: #0b1018;
}

body.dashboard-page.is-dark .dashboard-sidebar,
body.dashboard-page.is-dark .dashboard-topbar,
body.dashboard-page.is-dark .workspace-panel,
body.dashboard-page.is-dark .metric,
body.dashboard-page.is-dark .listing-manager-card,
body.dashboard-page.is-dark .guide-card,
body.dashboard-page.is-dark .settings-card,
body.dashboard-page.is-dark .calendar-shell,
body.dashboard-page.is-dark .message-shell,
body.dashboard-page.is-dark .thread-row,
body.dashboard-page.is-dark .support-form,
body.dashboard-page.is-dark .sidebar-profile,
body.dashboard-page.is-dark .command-search,
body.dashboard-page.is-dark .control-button,
body.dashboard-page.is-dark .control-select,
body.dashboard-page.is-dark .toolbar-search,
body.dashboard-page.is-dark .segment-control,
body.dashboard-page.is-dark .calendar-toolbar button,
body.dashboard-page.is-dark .message-compose input {
  border-color: var(--line);
  color: var(--ink);
  background: #111927;
}

body.dashboard-page.is-dark .dashboard-topbar {
  background: rgba(17, 25, 39, 0.94);
}

body.dashboard-page.is-dark .calendar-weekday,
body.dashboard-page.is-dark .data-table th {
  background: #151e2d;
}

body.dashboard-page.is-dark .thread-row.is-active,
body.dashboard-page.is-dark .dashboard-nav button.is-active {
  background: var(--blue-soft);
}

body.dashboard-page.is-dark .message-bubble {
  background: #1b2637;
}

body.dashboard-page.is-dark .message-bubble.is-own {
  background: #256fdc;
}

@media (max-width: 640px) {
  .marketplace-page,
  .dashboard-page {
    overflow-x: hidden;
  }

  .section-topline,
  .section-topline > div,
  .dashboard-main,
  .dashboard-content,
  .dashboard-content > *,
  .dashboard-welcome,
  .topbar-left,
  .topbar-left > div,
  .workspace-panel,
  .metric-grid,
  .metric {
    min-width: 0;
    max-width: 100%;
  }

  .section-topline h2 {
    max-width: 100%;
    font-size: 1.9rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .dashboard-topbar {
    gap: 8px;
  }

  .topbar-left {
    flex: 1;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .dashboard-welcome {
    display: grid;
    gap: 14px;
  }

  .request-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .request-row > button,
  .request-row > .request-status,
  .request-row > .table-status {
    grid-column: 2;
    justify-self: start;
  }
}
/* Final type lock for consistent rendering across local browsers */
body,
body button,
body input,
body select,
body textarea,
body a,
body p,
body span,
body small,
body label,
body table,
body h1,
body h2,
body h3,
body h4,
body strong {
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

@media (max-width: 640px) {
  .dashboard-layout,
  .dashboard-stack {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-content {
    padding-right: 20px;
  }

  .command-search {
    display: none;
  }

  .workspace-panel-head {
    min-width: 0;
  }

  .workspace-panel-head > div {
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .dashboard-main {
    width: 100vw;
    max-width: 100vw;
  }

  .dashboard-content {
    width: auto;
    max-width: none;
    margin: 0;
    padding-left: 16px;
    padding-right: 34px;
  }

  .dashboard-content > * {
    width: 100%;
  }

  .dashboard-welcome p,
  .workspace-panel-head p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .workspace-panel-head > button,
  .workspace-panel-head > a {
    flex: 0 0 auto;
  }
}
@media (max-width: 640px) {
  .dashboard-content > * {
    width: calc(100vw - 50px);
    max-width: calc(100vw - 50px);
  }

  .workspace-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .workspace-panel-head > button,
  .workspace-panel-head > a {
    justify-self: start;
  }
}
/* State-aware service request screening */
.request-dialog {
  width: min(760px, calc(100% - 28px));
}

.request-section {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.request-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.request-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.request-section-heading strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.request-section-heading small,
.eligibility-disclaimer {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

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

.eligibility-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface-soft, #f8fafc);
  cursor: pointer;
}

.eligibility-option:hover,
.eligibility-option:has(input:checked) {
  border-color: var(--blue);
  color: var(--ink);
  background: var(--blue-soft, #eef5ff);
}

.eligibility-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.request-confirmations {
  gap: 11px;
}

.eligibility-disclaimer {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--line-strong);
  background: var(--surface-soft, #f8fafc);
}

.request-screening-summary {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface-soft, #f8fafc);
}

.request-screening-summary > strong {
  color: var(--ink);
}

.request-screening-summary > p {
  margin: -4px 0 0;
  color: var(--muted);
}

.request-screening-summary .detail-list {
  margin: 0;
}

.eligibility-review-summary h3 {
  margin: 12px 0 4px;
}

.eligibility-review-summary p,
.eligibility-review-block p {
  color: var(--muted);
}

.eligibility-review-block {
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.eligibility-review-block ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.eligibility-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 16px 0;
  font-size: 0.78rem;
}

html[data-theme="dark"] .request-sheet,
html[data-theme="dark"] .dashboard-dialog-panel {
  color: var(--ink);
  background: #121822;
}

html[data-theme="dark"] .request-field input,
html[data-theme="dark"] .request-field select,
html[data-theme="dark"] .request-field textarea,
html[data-theme="dark"] .eligibility-option {
  color: var(--ink);
  border-color: #3a4658;
  background: #171f2b;
}

html[data-theme="dark"] .eligibility-option:hover,
html[data-theme="dark"] .eligibility-option:has(input:checked) {
  border-color: #6da0ff;
  background: #1c2d48;
}

html[data-theme="dark"] .eligibility-disclaimer {
  color: #aab6c8;
  background: #171f2b;
}

html[data-theme="dark"] .request-screening-summary {
  border-color: #3a4658;
  background: #171f2b;
}

@media (max-width: 640px) {
  .eligibility-options {
    grid-template-columns: 1fr;
  }

  .request-section-heading {
    display: grid;
    gap: 3px;
  }

  .eligibility-review-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
/* Account privacy and production health */
.privacy-center {
  display: grid;
  gap: 16px;
}

.privacy-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft, #f7f9fc);
}

.privacy-summary > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.privacy-summary .card-icon {
  flex: 0 0 auto;
  margin: 0;
}

.privacy-summary strong,
.privacy-details strong,
.privacy-danger-zone strong {
  display: block;
  font-size: 0.92rem;
}

.privacy-summary p,
.privacy-details small,
.privacy-danger-zone p,
.retention-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.privacy-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.privacy-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.privacy-details summary::-webkit-details-marker {
  display: none;
}

.privacy-details summary svg {
  width: 18px;
  transition: transform 180ms ease;
}

.privacy-details[open] summary svg {
  transform: rotate(180deg);
}

.consent-list,
.retention-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.consent-row,
.retention-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.consent-row:last-child,
.retention-row:last-child {
  border-bottom: 0;
}

.consent-row > div:last-child {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.retention-row > div {
  min-width: 0;
}

.retention-row > span {
  flex: 0 0 150px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.privacy-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.privacy-danger-zone > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.health-runtime,
.health-events {
  margin-top: 16px;
}

.health-runtime-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.health-runtime-grid > div {
  min-width: 0;
  padding: 14px;
  background: #fff;
}

.health-runtime-grid span,
.health-runtime-grid strong {
  display: block;
}

.health-runtime-grid span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.health-runtime-grid strong {
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

html[data-theme="dark"] .privacy-summary,
html[data-theme="dark"] .privacy-details,
html[data-theme="dark"] .health-runtime-grid > div {
  color: var(--ink);
  border-color: var(--line);
  background: #111927;
}

@media (max-width: 760px) {
  .privacy-summary,
  .privacy-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .privacy-summary .button,
  .privacy-danger-zone .button {
    justify-content: center;
    width: 100%;
  }

  .privacy-danger-zone > div:last-child {
    flex-direction: column;
  }

  .consent-row,
  .retention-row {
    display: grid;
  }

  .consent-row > div:last-child {
    justify-items: start;
    text-align: left;
  }

  .retention-row > span {
    text-align: left;
  }

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

@media (max-width: 430px) {
  .privacy-quick-actions {
    display: grid;
  }

  .privacy-quick-actions .button {
    justify-content: center;
    width: 100%;
  }

  .health-runtime-grid {
    grid-template-columns: 1fr;
  }
}