:root {
  --studio-night: #19232d;
  --studio-steel: #364653;
  --studio-paper: #f5f6f4;
  --studio-mist: #e8eceb;
  --studio-copper: #9b431c;
  --studio-light: #f6d2af;
  --studio-hairline: #d6dcd9;
}
body { background: var(--studio-paper); }
.btn.primary { background: var(--studio-copper); }
.hero .hero-grid {
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  gap: 0;
  padding-block: 0 3rem;
  min-height: 530px;
}
.hero { background: var(--studio-night); }
.hero .hero-copy {
  z-index: 1;
  padding-block: clamp(2rem,6vw,6rem);
  padding-inline-end: clamp(1rem,4vw,4rem);
}
.hero h1 { letter-spacing: -.065em; line-height: 1.04; }
.hero h1 em { color: var(--studio-light); }
.hero .city-photo {
  position: relative;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--studio-night);
}
.hero .city-photo::after {
  background: linear-gradient(90deg,var(--studio-night),transparent 24%),linear-gradient(0deg,#19232dd9,transparent 34%);
}
.hero .city-photo img { filter: saturate(.72); object-position: center; transform: none; }
.hero .city-photo figcaption { left: auto; background: var(--studio-night); }
.search-stats { box-shadow: 0 12px 28px rgb(25 35 45 / .1); }
.yo-account .yo-account-head {
  background: transparent;
  color: var(--studio-night);
  border: 0;
  border-bottom: 1px solid var(--studio-hairline);
  border-radius: 0;
  padding: .5rem 0 1.1rem;
}
.yo-account .yo-account-head .eyebrow { color: var(--studio-copper); }
.yo-account .yo-account-head p { color: var(--muted); }
.yo-account .yo-account-head h1 { letter-spacing: -.055em; }
.yo-account .yo-panel-nav { padding: .4rem; background: #fff; }
.yo-account .yo-panel-nav a[aria-current] { background: var(--studio-mist); color: var(--studio-night); }
.yo-account .yo-avatar { background: var(--studio-night); color: #fff; }
.yo-focus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem,3vw,2.5rem);
  min-width: 0;
  background: var(--studio-night);
  color: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--studio-steel);
}
.yo-focus::after {
  content:'';
  position:absolute;
  z-index:-1;
  inset: -30% -8% -65% 41%;
  background: repeating-linear-gradient(90deg, transparent 0 33px, rgb(246 210 175 / .12) 34px 35px),
              repeating-linear-gradient(0deg, transparent 0 33px, rgb(246 210 175 / .12) 34px 35px);
  transform: perspective(350px) rotateY(-28deg) rotateZ(-20deg);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events:none;
}
.yo-focus-copy { min-width: 0; }
.yo-focus .eyebrow { color: var(--studio-light); margin: 0 0 .6rem; }
.yo-focus h2 {
  color: inherit;
  margin: 0;
  font: 800 clamp(1.65rem,4vw,2.7rem)/1.1 var(--font-display);
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.yo-focus h2 + p { color: #e2e8ed; max-width: 47ch; margin: .7rem 0 0; overflow-wrap: anywhere; }
.yo-focus .btn.primary { background: var(--studio-light); color: var(--studio-night); }
.yo-focus .btn.primary:hover { background: #ffe5cc; color: var(--studio-night); }
.yo-focus .btn:focus-visible { outline-color: var(--studio-light); }
.yo-focus-queue { display: grid; align-content: start; gap: .45rem; min-width: 0; }
.yo-focus-queue a {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .45rem .65rem;
  color: #fff;
  border: 1px solid #71808d;
  background: var(--studio-night);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.yo-focus-queue a:focus-visible { outline-color: var(--studio-light); }
.yo-focus-queue a:hover { background: var(--studio-steel); text-decoration: none; }
.yo-focus-queue .yo-lock-symbol { width: 35px; height: 35px; background: var(--studio-steel); color: var(--studio-light); }
.yo-focus-queue svg { width: 17px; height: 17px; }
.yo-focus-queue small { color: var(--studio-light); display: block; }
.yo-compare-filter {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto;
  gap: .65rem;
  align-items: end;
  margin-block: .8rem;
}
.yo-compare-filter label { display: grid; gap: .25rem; min-width: 0; font-weight: 700; font-size: .875rem; }
.yo-compare-filter select {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: .4rem;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  background: white;
  color: var(--studio-night);
  font: inherit;
}
.yo-compare-filter button { min-height: 44px; }
.yo-compare-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,330px),1fr)); gap: .75rem; }
.yo-comparison-offer { min-width: 0; padding: 1rem; border: 1px solid var(--studio-hairline); border-radius: 8px; }
.yo-comparison-offer dl { display: grid; gap: .5rem; margin-block: .65rem; }
.yo-comparison-offer dl > div {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .15rem .5rem;
  align-items: baseline;
  padding-block: .5rem;
  border-bottom: 1px solid var(--studio-hairline);
}
.yo-comparison-offer dt { color: var(--muted); font-size: .875rem; }
.yo-comparison-offer dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.yo-comparison-offer small { grid-column: 2; color: var(--success-ink); font-weight: 700; }
@media(min-width: 1160px) {
  .yo-focus:has(.yo-focus-queue) { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; }
}
@media(max-width: 850px) {
  .hero .hero-grid { grid-template-columns: minmax(0,1fr); min-height: 0; padding-block: 0 2.5rem; }
  .hero .hero-copy { padding: 1.65rem 0 1.4rem; }
  .hero .city-photo { min-height: 0; aspect-ratio: 2.2/1; }
  .hero .city-photo::after { background: linear-gradient(0deg,#19232db3,transparent 42%); }
}
@media(max-width: 640px) {
  .yo-compare-filter { grid-template-columns: minmax(0,1fr); }
  .yo-compare-filter button { justify-self: start; }
}

.yo-review-records a {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: .6rem;
  align-items: center;
  min-height: 48px;
  padding: .55rem .25rem;
  color: var(--studio-night);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.yo-review-records a + a { border-top: 1px solid var(--studio-hairline); }
.yo-review-records a:hover { background: var(--studio-paper); }
.yo-review-records .yo-lock-symbol { width: 34px; height: 34px; background: var(--studio-mist); color: var(--studio-steel); }
.yo-review-records svg { width: 17px; height: 17px; }

.yo-journey { margin-top: clamp(2rem, 4vw, 3.75rem); }
.yo-journey > div { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.65rem; }
.yo-journey h2 { font: 800 clamp(1.4rem, 3vw, 2.05rem)/1.16 var(--font-display); letter-spacing:-.045em; margin:0; }
.yo-journey ol {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding:0;
  margin:1rem 0 0;
  list-style:none;
  border-block:1px solid var(--studio-hairline);
}
.yo-journey li { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.7rem; padding:1.1rem; align-items:start; }
.yo-journey li + li { border-inline-start:1px solid var(--studio-hairline); }
.yo-journey li:first-child { padding-inline-start:0; }
.yo-journey h3 { margin:0 0 .2rem; font-size:1rem; }
.yo-journey p { margin:0; color:var(--muted); font-size:.875rem; }
@media(max-width: 760px) {
  .yo-journey ol { grid-template-columns:minmax(0,1fr); }
  .yo-journey li { padding-inline:0; }
  .yo-journey li + li { border-inline-start:0; border-block-start:1px solid var(--studio-hairline); }
}

#hero-search { grid-template-columns: minmax(0,1.55fr) repeat(2,minmax(0,1fr)) auto; }
.directory-filter[data-kind="listings"] { grid-template-columns: minmax(0,1.55fr) repeat(2,minmax(0,1fr)) auto; }
:is(#hero-search,.directory-filter,.yo-fields) select:disabled { opacity: 1; color: var(--muted); background: var(--paper); }
@media (max-width: 850px) {
  #hero-search,.directory-filter[data-kind="listings"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #hero-search label:first-child,.directory-filter[data-kind="listings"] label:first-child,
  #hero-search button { grid-column: 1 / -1; }
}

.nav-actions .account-trigger {
  min-height: 44px;
  min-width: 0;
  gap: .5rem;
  padding: .3rem .55rem;
  text-align: left;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  height: 29px;
  border-radius: 6px;
  background: var(--studio-night);
  color: var(--white);
  font-size: .75rem;
}
.account-identity { display: grid; min-width: 0; gap: .05rem; line-height: 1.2; }
.account-identity > span { color: var(--muted); font-size: .75rem; }
.account-identity strong { overflow: hidden; max-width: 9rem; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger > svg { width: 14px; height: 14px; flex: none; rotate: 90deg; }
@media (max-width: 600px) {
  .navbar .nav-actions.signed-in { display: flex; width: 100%; order: 4; }
  .nav-actions.signed-in .account-trigger { display: inline-flex; flex: 1 1 0; }
  .navbar .nav-actions > .btn.secondary { display: inline-flex; }
}

.delivery-rules { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:.65rem; }
.delivery-rules .yo-entry { margin:0; border:1px solid var(--studio-hairline); border-radius:8px; padding:.65rem; }
.delivery-channels { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.4rem; }
.delivery-log { margin-top:.65rem; overflow-wrap:anywhere; }
.delivery-log summary { min-height:44px; }
.delivery-log summary span { display:block; margin-top:.25rem; color:var(--muted); }

.ledger-filter { display:flex; flex-wrap:wrap; align-items:end; gap:.65rem; margin-block:.75rem; }
.ledger-filter label { flex:1 1 8rem; min-width:0; display:grid; gap:.25rem; font-size:.875rem; font-weight:650; }
.ledger-filter :is(input,select) { width:100%; min-width:0; min-height:44px; padding:.35rem; background:var(--white); color:var(--studio-night); border:1px solid var(--border-control); border-radius:6px; font:inherit; }
.ledger-filter .btn { min-height:44px; }

.role-capabilities { display:grid; gap:.55rem; margin:.75rem 0 1rem; padding:0; list-style:none; }
.role-capabilities li { display:flex; gap:.55rem; align-items:flex-start; color:var(--muted); font-size:.875rem; }
.role-capabilities svg { flex:none; width:17px; height:17px; margin-top:.1rem; color:var(--studio-copper); }
.role-card .btn { min-height:44px; }
/* Keep controls aligned when only one field has helper text. */
.yo-fields { align-items:start; }
.yo-field { align-content:start; }
.yo-field input:is([type="tel"],[type="email"],[type="password"]) { height:44px; }
.yo-field input[type="tel"] { font-variant-numeric:tabular-nums; }
.login-identifier { min-width:0; }
.login-methods { margin:0 0 .9rem; padding:0; border:0; min-width:0; }
.login-methods legend { padding:0; margin:0 0 .35rem; font-size:.875rem; font-weight:750; }
.login-methods > div {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:20rem;
  gap:4px; padding:4px; border:1px solid var(--line); border-radius:8px; background:var(--studio-mist);
}
.login-methods label { position:relative; min-width:0; cursor:pointer; }
.login-methods input {
  position:absolute; inset:0; margin:0; width:100%; height:100%; opacity:0; cursor:pointer;
}
.login-methods span {
  display:grid; place-items:center; min-height:44px; padding:.3rem .6rem;
  border:1px solid transparent; border-radius:5px; color:var(--muted); font-size:.875rem; font-weight:700;
}
.login-methods input:checked + span { background:var(--white); color:var(--studio-night); border-color:var(--line); }
.login-methods input:focus-visible + span { outline:2px solid var(--studio-copper); outline-offset:2px; }

#modal.yo-modal:has(.login-fields) {
  width:min(calc(100% - 24px), 448px);
  border-radius:14px;
  box-shadow:0 24px 72px rgb(16 26 36 / .35);
}
#modal:has(.login-fields) .yo-modal-head {
  position:relative;
  padding:clamp(18px,5vw,28px);
  background:linear-gradient(115deg,var(--studio-night),var(--studio-steel));
  color:var(--white);
  border:0;
}
#modal:has(.login-fields) .yo-modal-head h2 { color:inherit; font-size:clamp(1.3rem,5vw,1.65rem); }
#modal:has(.login-fields) .yo-close {
  color:var(--white);
  border-color:rgb(255 255 255 / .35);
  background:transparent;
  flex:none;
}
#modal:has(.login-fields) .yo-close:hover { background:rgb(255 255 255 / .12); }
#modal:has(.login-fields) .yo-modal-content {
  padding:clamp(18px,5vw,28px);
  gap:1rem;
}
.login-brand {
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-bottom:.8rem;
  color:var(--white);
  font-size:.95rem;
}
.login-brand svg { color:var(--studio-copper-light,#f2c3a4); width:19px; height:19px; flex:none; }
.login-fields .login-methods > div { max-width:none; }
.login-inputs { display:grid; gap:.85rem; }
.login-password { position:relative; }
.login-password input { padding-inline-end:5rem; }
.login-password-toggle {
  position:absolute;
  inset-inline-end:1px;
  inset-block-end:1px;
  min-height:42px;
  padding:0 .8rem;
  border:0;
  border-radius:5px;
  color:var(--muted);
  background:transparent;
  font:inherit;
  font-size:.8rem;
  font-weight:700;
  cursor:pointer;
}
.login-password-toggle:hover { color:var(--ink); background:var(--paper); }
.login-actions { display:grid; gap:.4rem; }
.login-actions .btn { width:100%; justify-content:center; }

.login-recovery {
  justify-self:end;
  min-height:44px;
  margin-block-start:-.35rem;
  padding:0;
  border:0;
  background:none;
  color:var(--studio-copper);
  font:inherit;
  font-size:.875rem;
  font-weight:750;
  cursor:pointer;
}
.login-recovery:hover { text-decoration:underline; }

.gsm-control {
  position:relative;
  display:block;
  min-width:0;
  font-family:ui-monospace,monospace;
  font-size:1rem;
  letter-spacing:0;
}
.yo-field .gsm-control input[type="tel"] { display:block; font-family:inherit; font-size:inherit; letter-spacing:inherit; }
.gsm-guide {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  padding-inline:11px;
  pointer-events:none;
  white-space:pre;
  color:var(--muted);
  font-weight:500;
}
.gsm-guide [data-gsm-entered] { color:transparent; }
