/* Materials only. The existing component styles own layout at every breakpoint. */
:root {
  --silver: linear-gradient(#fff, #f0f0f0 52%, #dbdbdb);
  --graphite: linear-gradient(#515151, #393939 50%, #252525);
  --selected-ink: #fff;
  --control-fill: var(--silver);
  --action-fill: var(--graphite);
  --control-shadow: 0 2px 5px #0002;
  --bar-highlight: #fff;
  --bar-edge: #ececec;
  --glass-shine: rgb(255 255 255 / .96);
  --glass-face: rgb(249 249 249 / .72);
  --glass-lower-glint: rgb(255 255 255 / .88);
  --glass-rim-light: #fff;
  --glass-rim-reflection: rgb(255 255 255 / .82);
  --glass-side-light: rgb(197 197 197 / .42);
  --glass-side-tone: rgb(172 172 172 / .38);
  --glass-shadow: .12;
  --glass-blur: blur(10px);
  --field-surface: #fff;
  --field-shadow: inset 0 2px 4px #0002, 0 1px #fff9;
  --ink-3: #646464;
  --focus-edge: #787878;
  --button-edge: #b7b7b7;
  --button-strong-edge: #2f2f2f;
  --toolbar-height: 44px;
  --toolbar-radius: 12px;
  --toolbar-font-size: 14px;
}
:root[data-theme="dark"] {
  --selected-ink: #111;
  --control-fill: var(--graphite);
  --action-fill: var(--silver);
  --control-shadow: 0 2px 5px #0006;
  --bar-highlight: #383838;
  --bar-edge: #282828;
  --glass-shine: rgb(56 56 56 / .94);
  --glass-face: rgb(34 34 34 / .76);
  --glass-lower-glint: rgb(47 47 47 / .84);
  --glass-rim-light: rgb(255 255 255 / .23);
  --glass-rim-reflection: rgb(255 255 255 / .1);
  --glass-side-light: rgb(66 66 66 / .42);
  --glass-side-tone: rgb(39 39 39 / .38);
  --glass-shadow: .25;
  --field-surface: #202020;
  --field-shadow: inset 0 2px 5px #0007, 0 1px #fff2;
  --ink-3: #b4b4b4;
  --focus-edge: #a3a3a3;
  --button-edge: #606060;
  --button-strong-edge: #aaa;
}
.header-glass-shine { stop-color: var(--glass-shine); }
.header-glass-face { stop-color: var(--glass-face); }
.header-glass-lower-glint { stop-color: var(--glass-lower-glint); }
.header-rim-light { stop-color: var(--glass-rim-light); }
.header-rim-reflection { stop-color: var(--glass-rim-reflection); }
.header-side-light { stop-color: var(--glass-side-light); }
.header-side-tone { stop-color: var(--glass-side-tone); }
.header__surface, .menu__surface { fill: url(#barFinish); stroke: none; }
#headerShapePath, #menuShapePath { fill: inherit; stroke: inherit; stroke-width: inherit; }
.header__bevel, .menu__bevel {
  fill: none;
  stroke: url(#headerBevel);
  stroke-width: 3;
}
.header__bevel { clip-path: url(#headerGlassClip); }
.menu__bevel { clip-path: url(#menuGlassClip); }
.header__depth, .menu__depth {
  fill: url(#headerSide);
  stroke: none;
  transform: translateY(4px);
}
.header__glass, .menu__glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.header__glass { clip-path: url(#headerGlassClip); }
.menu__glass { clip-path: url(#menuGlassClip); }
#menu > .menu__shape { filter: none; pointer-events: none; }
.menu__shadow { fill: var(--panel); stroke: none; }
#headerShadowPath, .menu__shadow { filter: url(#headerShadowFilter); }
#headerShadowFilter feDropShadow { flood-opacity: var(--glass-shadow); }
@media (max-width: 700px) {
  .header__glass { height: var(--mobile-brand-height); }
  .header__depth, .menu__depth { transform: translateY(3px); }
  .header::before { background: linear-gradient(var(--browser-canvas) calc(100% - 24px), transparent); }
}

.ranking-launch.chrome, #siteHeader > .ranking-launch.chrome,
.office-feature .ranking-tools .ranking-mobile-back, #loginPanel {
  background: var(--control-fill);
  box-shadow: var(--control-shadow);
}
.site-bottom .foot {
  background: linear-gradient(var(--panel-2), var(--bar-edge));
  box-shadow: inset 0 1px var(--bar-highlight), 0 2px 6px #0002;
}
.brand__controls .theme__track {
  background: var(--graphite);
  box-shadow: inset 0 1px 3px #0009, 0 1px #fff5;
}
.brand__controls .theme__knob {
  background: radial-gradient(circle at 36% 27%, #fff, #f1f1f1 54%, #ccc);
  box-shadow: inset 0 1px #fff, 0 1px 3px #0009;
}
:root[data-theme="dark"] .brand__controls .theme__track { background: var(--silver); }
:root[data-theme="dark"] .brand__controls .theme__knob { background: radial-gradient(circle at 36% 27%, #515151, #353535 54%, #242424); }

.site-bottom #rentSlider {
  color: #eee;
  background: linear-gradient(#242424, #141414 39%, #0c0c0c 76%, #151515);
  border-color: #111;
  box-shadow: inset 0 2px 5px #000b, inset 0 -1px #fff2, 0 3px 9px #0004;
}
#rentSlider::before { background: linear-gradient(#fff1, transparent); }
:root[data-theme="dark"] .site-bottom #rentSlider { border-color: #545454; }
.site-bottom .rent-slider__thumb {
  background: var(--silver);
  box-shadow: inset 0 1px 2px #fff9, 0 2px 5px #0007;
  color: #444;
}
.site-bottom #rentSliderThumb .ui-icon { stroke: currentColor; color: inherit; filter: none; }
:root[data-theme="dark"] :is(.admin-content .chrome.pro-primary, .admin-content form button.chrome[type="submit"],
  #dialog .office-feature .pro-primary, #dialog .office-feature button[type="submit"],
  .pro-tag-filter__action, .admin-head-actions .admin-back, .tl-select .chrome.pro-primary,
  .pro-dayline .pro-listbtn[aria-pressed="true"], .mu-actions .mu-act.is-on) {
  color: #111 !important;
  text-shadow: none !important;
}
.office-feature .field :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]), textarea),
.office-feature .ranking-tools #ranking-search {
  background-color: var(--field-surface);
  box-shadow: var(--field-shadow);
}
.office-feature .tabs:not(.section-head .tabs) {
  box-shadow: inset 0 1px 3px #0003, 0 1px var(--bar-highlight);
}
.office-feature .ranking-list > li { border-color: var(--ios-rule); }
.section-head .tab[aria-selected="true"] {
  background: var(--control-fill);
  box-shadow: var(--control-shadow);
}
:is(.ranking-launch.chrome, .ranking-tools .ranking-mobile-back, .office-feature .chrome, .btn):active {
  box-shadow: inset 0 2px 5px #0005;
}
:root body :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible,
#dialog :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 1px solid var(--focus-edge) !important;
  outline-offset: 2px !important;
}
:root body :is(input:not([type="checkbox"], [type="radio"]), textarea, select):focus-visible,
#dialog :is(input:not([type="checkbox"], [type="radio"]), textarea, select):focus-visible {
  outline-offset: -1px !important;
}
@media (forced-colors: active) {
  :root, :root[data-theme="dark"] { --focus-edge: Highlight; }
  .header__surface, .menu__surface { fill: Canvas; }
  .header__bevel, .header__depth, .menu__bevel, .menu__depth, .menu__shadow { display: none; }
  .site-bottom .rent-slider__thumb, .brand__controls .theme__knob { outline: 1px solid ButtonText; }
}

#driftBox {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(111px, 16%)), 1fr));
  grid-auto-rows: minmax(min-content, 1fr);
  gap: clamp(52px, 10vh, 100px) clamp(10px, 1.6vw, 24px);
  flex: 1 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: clamp(38px, 6vh, 56px) 18px;
  overflow: visible;
}
.polaroid-cell {
  display: grid;
  place-items: center;
  min-width: 0;
}
.polaroid-slot {
  position: relative;
  width: min(100%, 154px);
  will-change: transform;
}
#driftBox .polaroid {
  position: relative;
  inset: auto;
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  filter: none;
  will-change: auto;
}
#driftBox .polaroid__photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  padding: 4px;
  background: var(--control-fill);
  box-shadow: inset 0 0 0 1px var(--panel-edge), inset 0 2px 1px #fff6, 0 1px 2px #0004, 0 4px 10px #0002;
}
.polaroid__image-window {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}
.polaroid__image-window::after {
  position: absolute;
  content: "";
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 2px #0003, inset 0 -1px 1px #fff5;
  pointer-events: none;
}
#driftBox .polaroid__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-position: 50% 36%;
  box-shadow: none;
  transition: transform .24s ease-out;
}
#driftBox .polaroid__cap {
  display: block;
  margin: 0;
  padding: 0 3px;
  background: transparent;
  color: var(--ink) !important;
  font: 600 clamp(11px, 1vw, 14px)/1.24 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
  text-shadow: none;
  box-shadow: none;
}
.polaroid__open {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: radial-gradient(ellipse at 45% 2%, #fff6, transparent 57%), var(--action-fill);
  color: var(--selected-ink);
  box-shadow: inset 0 1px #fff5, inset 0 -1px #0003, 0 2px 4px #0006;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease-out, transform .18s ease-out;
}
.polaroid__open .ui-icon { width: 16px; height: 16px; }
.polaroid-cell:has(.polaroid:is(.is-held, :focus-visible)) { z-index: 2; }
#driftBox .polaroid:focus-visible .polaroid__open { opacity: 1; transform: none; }
@media (hover: hover) {
  .polaroid-cell:has(.polaroid-slot:hover) { z-index: 2; }
  #driftBox .polaroid:hover:not(.is-held) .polaroid__img { transform: scale(1.065); }
  #driftBox .polaroid:hover:not(.is-held) .polaroid__open { opacity: 1; transform: none; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  #driftBox { row-gap: 48px; padding-block: 30px; }
}
@media (max-width: 700px) {
  #driftBox {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr));
    grid-auto-rows: auto;
    align-content: start;
    row-gap: 56px;
    padding: calc(var(--mobile-brand-height) - 21px) 16px 34px;
  }
  .polaroid-slot { width: min(100%, 138px); }
}
@media (prefers-reduced-motion: reduce) {
  .polaroid-slot { will-change: auto; }
  #driftBox .polaroid__img,
  .polaroid__open { transition: none; }
  #driftBox .polaroid:hover:not(.is-held) .polaroid__img { transform: none; }
}
.studio-rules .rules-symbol {
  background: radial-gradient(ellipse at 34% 17%, #fff 0%, #f9f9f9 25%, #e4e4e4 65%, #c7c7c7 100%);
  color: #454545;
}
:root[data-theme="dark"] .studio-rules .rules-symbol {
  background: radial-gradient(ellipse at 34% 17%, #656565 0%, #515151 25%, #3c3c3c 65%, #282828 100%);
  color: #fff;
}


/* Icon tools are raised; a retained selection sits in a contrasting well. */
.master-pass .master-pass__button,
.office-feature .interior-photos__viewport > .chrome {
  background: var(--control-fill);
  color: var(--ink);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--control-shadow);
}
.master-pass .master-pass__button[data-copy-feedback],
body[data-site-tour] .views button[aria-pressed="true"] {
  background: var(--action-fill);
  color: var(--selected-ink);
  box-shadow: inset 0 1px 3px #0004, 0 1px var(--bar-highlight);
}
body[data-site-tour] .views {
  background: var(--panel-2);
  box-shadow: var(--field-shadow);
}
body[data-site-tour] footer nav button:enabled:active,
.master-pass .master-pass__button:enabled:active,
.office-feature .interior-photos__viewport > .chrome:enabled:active,
.office-feature .own-profile__tabs .tab:enabled:active {
  box-shadow: inset 0 2px 4px #0005;
}

/* Toolbar back buttons have one continuous perimeter, including the leading point. */
body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back) {
  --back-shape: url("../assets/toolbar-back.svg") center / 100% 100% no-repeat;
  --back-rim: url("../assets/toolbar-back-rim.svg") center / 100% 100% no-repeat;
  --back-edge: var(--button-strong-edge);
  --back-face: var(--action-fill);
  position: relative;
  inset: auto;
  isolation: isolate;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--selected-ink) !important;
  box-shadow: none !important;
  font-weight: 600;
  text-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
:root:not([data-pointer-input]) body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back):focus-visible {
  --back-edge: var(--focus-edge);
  outline: 1px solid var(--focus-edge) !important;
  outline-offset: 3px !important;
  border-radius: 6px !important;
}
body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back)::before,
body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back)::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--back-face);
  mask: var(--back-shape);
  pointer-events: none;
}
body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back)::after {
  background: var(--back-edge);
  mask: var(--back-rim);
}
body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back):active::before { filter: brightness(.9); }
body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back) > .ui-icon { width: .35em; visibility: hidden; }
@media (forced-colors: active) {
  body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back) {
    --back-edge: ButtonText;
    --back-face: ButtonFace;
    color: ButtonText !important;
  }
  :root:not([data-pointer-input]) body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back):focus-visible { --back-edge: Highlight; }
  body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back)::before,
  body[data-page] :is(.office-feature .window-head .back, .section-head .master-back, .ranking-mobile-back, .admin-back, .payment-back, .toolbar-back)::after { forced-color-adjust: none; }
}
.ranking-row .ranking-avatar {
  box-sizing: border-box;
  padding: 2px;
  border-radius: 9px;
  background: var(--panel-2);
  border-color: color-mix(in srgb, var(--panel-edge) 75%, var(--panel));
  box-shadow: 0 1px 2px #0001;
}
.ranking-avatar img { display: block; border-radius: 6px; }
.ranking-medal {
  position: relative;
  display: inline-flex;
  flex: none;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--panel-edge), 0 1px 2px #0003;
}
.ranking-medal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 12%, #fff6, transparent 58%);
  box-shadow: inset 0 1px 1px #fff9, inset 0 -1px 1px #0006;
  pointer-events: none;
}
#notice:not([hidden]) {
  border: 1px solid var(--panel-edge);
  border-radius: 15px 15px 15px 4px;
  background: var(--control-fill);
  color: var(--ink);
  box-shadow: var(--control-shadow);
}
.site-bottom #rentSlider { container-type: inline-size; }
.site-bottom #rentSlider .rent-slider__label {
  font-size: clamp(17px, 8cqi, 24px);
  font-weight: 500;
  letter-spacing: -.015em;
}
.rent-slider__text {
  line-height: 1.25;
  padding-block: .12em;
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  @supports (background-clip: text) {
    .rent-slider__text {
      background: linear-gradient(90deg, #999 36%, #d7d7d7 43%, #fff 46% 54%, #d7d7d7 57%, #999 64%) 100% 50% / 300% 100% no-repeat;
      background-clip: text;
      color: transparent;
      text-shadow: none;
      animation: booking-label-shine 2.4s linear -.7s infinite;
    }
    .rent-slider.is-dragging .rent-slider__text { animation-play-state: paused; }
    @keyframes booking-label-shine {
      0%, 6% { background-position: 100% 50%; }
      86%, 100% { background-position: 0% 50%; }
    }
  }
}

@media (max-width: 700px) {
  .site-bottom #rentSlider {
    --rent-thumb-width: 52px;
    --rent-thumb-inset: 4px;
    --rent-label-gap: 10px;
  }
  .site-bottom #rentSliderThumb {
    left: var(--rent-thumb-inset);
    width: var(--rent-thumb-width);
  }
  .site-bottom #rentSlider .rent-slider__label {
    inset: 0 var(--rent-label-gap) 0 calc(var(--rent-thumb-inset) + var(--rent-thumb-width) + var(--rent-label-gap));
    line-height: 1.12;
  }
}

.master-pass .master-pass__share {
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  border-color: var(--button-edge);
  border-radius: 11px;
}

:root #dialog.master-share-dialog {
  position: fixed;
  inset: auto 0 max(14px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 24px));
  max-width: none;
  padding: 14px;
  margin: 0 auto;
  border: 1px solid var(--glass-rim-reflection);
  border-radius: 21px;
  color: var(--ink);
  background: var(--control-fill);
  box-shadow: inset 0 1px var(--glass-rim-reflection), 0 12px 32px rgb(0 0 0 / .24);
}
#dialog.master-share-dialog > form { display: none; }
#dialog-content .master-share h2 {
  margin: 0 0 12px;
  padding: 1px 5px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.master-share__actions {
  border: 1px solid var(--panel-edge);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.master-share__actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  width: 100%;
  padding: 7px 12px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(var(--panel), var(--panel-2));
}
.master-share__actions button + button { border-top: 1px solid var(--panel-edge); }
.master-share__actions button:active { background: var(--control-fill); }
.master-share__actions svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#master-share-qr {
  margin-top: 11px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-2);
}
#master-share-qr img {
  display: block;
  margin: 0 auto 6px;
  width: min(202px, 100%);
  border: 1px solid var(--panel-edge);
  border-radius: 12px;
}
#master-share-qr p { margin: 0; }
.master-share__status { margin: 8px 0 0; text-align: center; font-size: 13px; }
.master-share__status:empty { margin: 0; }
.master-share input[type="url"] {
  width: 100%;
  min-width: 0;
  margin: 7px 0 0;
  padding: 8px;
  font-size: 16px;
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}
.master-share__cancel {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid var(--panel-edge);
  border-radius: 11px;
  background: var(--action-fill);
  color: var(--selected-ink);
  box-shadow: inset 0 1px rgb(255 255 255 / .26), 0 2px 4px rgb(0 0 0 / .17);
  font-size: 15px;
  font-weight: 600;
}
.master-share__cancel:active { box-shadow: inset 0 2px 6px rgb(0 0 0 / .23); }

.booking-wheels { display: none; }
@media (max-width: 700px) {
  #booking-time-desktop { display: none; }
  .booking-wheels {
    --wheel-row: 40px;
    --wheel-cap: #b7b7b7;
    --wheel-paper: #efefef;
    --wheel-light: #fff;
    --wheel-edge: #a4a4a4;
    --wheel-ink: #191919;
    --wheel-etch: #fff9;
    --wheel-shade: rgb(0 0 0 / .19);
    --wheel-lens: linear-gradient(#fff, #f5f5f5 20%, #e1e1e1 60%, #d2d2d2);
    display: block;
    margin: 14px 0 20px;
  }
  :root[data-theme="dark"] .booking-wheels {
    --wheel-cap: #171717;
    --wheel-paper: #323232;
    --wheel-light: #454545;
    --wheel-edge: #666;
    --wheel-ink: #f7f7f7;
    --wheel-etch: #000c;
    --wheel-shade: rgb(0 0 0 / .46);
    --wheel-lens: linear-gradient(#696969, #555 32%, #383838 75%, #444);
  }
  .booking-wheels__labels, .booking-wheels__drums {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .booking-wheels__labels {
    margin-bottom: 6px;
    color: var(--ink-2);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
  }
  .booking-wheels__drums {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--wheel-edge);
    border-radius: 12px;
    background:
      linear-gradient(90deg, var(--wheel-shade), transparent 2% 98%, var(--wheel-shade)),
      linear-gradient(var(--wheel-cap), var(--wheel-paper) 19%, var(--wheel-light) 50%, var(--wheel-paper) 81%, var(--wheel-cap));
    box-shadow: 0 2px 6px #0002;
  }
  .booking-wheels__drums::before, .booking-wheels__drums::after {
    position: absolute;
    content: "";
    inset-inline: 0;
    pointer-events: none;
  }
  .booking-wheels__drums::before {
    top: 50%;
    z-index: 1;
    box-sizing: border-box;
    height: var(--wheel-row);
    transform: translateY(-50%);
    border-block: 1px solid var(--wheel-edge);
    background: var(--wheel-lens);
    box-shadow: 0 1px 4px #0002;
  }
  .booking-wheels__drums::after {
    z-index: 3;
    inset-block: 0;
    background: linear-gradient(var(--wheel-shade), transparent 22% 78%, var(--wheel-shade));
  }
  .booking-wheel {
    z-index: 2;
    height: calc(var(--wheel-row) * 5);
    padding-block: calc(var(--wheel-row) * 2);
    overflow: hidden auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }
  .booking-wheel + .booking-wheel { border-left: 1px solid var(--wheel-edge); }
  .booking-wheel > button, .booking-wheel__empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: var(--wheel-row);
    min-height: 0;
    padding: 0 4px;
    scroll-snap-align: center;
    color: var(--wheel-ink);
    font-size: 18px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px var(--wheel-etch);
  }
  .booking-wheel > button > span {
    scale: 1 var(--wheel-curve, 1);
    opacity: var(--wheel-opacity, 1);
    pointer-events: none;
  }
  .booking-wheel > button[aria-pressed="true"] { font-size: 22px; font-weight: 650; }
  .office-feature .booking-wheels .booking-wheel > button {
    border: 0;
    box-shadow: none;
    scale: none;
  }
  .office-feature .booking-wheels .booking-wheel > button:focus { box-shadow: none; }
  .office-feature .booking-wheels .booking-wheel > button:focus-visible { outline: none !important; }
  :root:not([data-pointer-input]) .booking-wheel > button[aria-pressed="true"]:focus-visible > span {
    border-radius: 4px;
    outline: 1px solid var(--focus-edge);
    outline-offset: 3px;
  }
  .booking-wheels__status {
    min-height: 1.4em;
    margin: 7px 0 0;
    color: var(--ink-2);
    text-align: center;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
  }
}

.cabinet-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px 18px;
  margin: 0 0 24px;
}
.cabinet-nav__group { min-width: 0; }
.cabinet-nav__group > h3 {
  margin: 0 0 5px;
  padding-inline: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.cabinet-nav__group ul {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  background: var(--panel);
  list-style: none;
}
.cabinet-nav__group li + li { border-top: 1px solid var(--panel-edge); }
.office-feature .cabinet-nav__row {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 7px 11px;
  background: linear-gradient(var(--panel), var(--panel-2));
  color: var(--ink);
  text-align: left;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cabinet-nav__content {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.office-feature .cabinet-nav .cabinet-nav__row:focus { box-shadow: none; }
.office-feature .cabinet-nav .cabinet-nav__row:focus-visible { outline-offset: -4px !important; }
.office-feature .cabinet-nav__row:active { scale: none; }
.office-feature .cabinet-nav__row[aria-pressed="true"] { background: var(--control-fill); }
@media (hover: hover) {
  .office-feature .cabinet-nav__row:not([aria-pressed="true"]):hover { background: var(--panel-2); }
}
.cabinet-nav__icon {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border: 1px solid var(--button-edge);
  border-radius: 8px;
  background: var(--control-fill);
  background-clip: padding-box;
}
.cabinet-nav__icon .ui-icon { width: 16px; height: 16px; }
.cabinet-nav__row .cabinet-nav__chevron { width: 12px; height: 12px; color: var(--ink-2); }
.cabinet-nav__label { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.cabinet-nav__row[aria-pressed="true"] .cabinet-nav__label { font-weight: 600; }
.cabinet-nav__value { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cabinet-booking-quick { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.cabinet-booking-quick a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.cabinet-booking-quick a .ui-icon { width: 13px; height: 13px; }
@media (max-width: 700px) { .cabinet-nav { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 701px) and (max-width: 1000px) { .cabinet-nav { grid-template-columns: minmax(0, 1fr); } }
.cabinet-person {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cabinet-person > img {
  width: 47px;
  height: 47px;
  border: 1px solid var(--panel-edge);
  border-radius: 11px;
  object-fit: cover;
}
.cabinet-person__name { min-width: 0; overflow-wrap: anywhere; }
.cabinet-person__name strong { display: block; font-size: 19px; line-height: 1.15; }
.cabinet-person__name span { color: var(--ink-2); font-size: 12px; }

/* Gloss and contact shadow sit inside and outside one native border. */
:is(.office-feature .chrome, .btn, #dialog .close, .modal__x, .date-open,
  .office-feature .calendar-head button, .office-feature .model-controls button,
  .office-feature .payment-back, .picker-month button,
  .master-pass__button, .photo-viewer__bar button, .photo-viewer__stage button,
  .master-share__cancel, .rent-slider__thumb) {
  background-clip: border-box;
}
:is(.office-feature .calendar-head button, .office-feature .model-controls button,
  .date-open, .picker-month button, #dialog .close, .modal__x) {
  border: 1px solid var(--button-edge);
  box-shadow: var(--control-shadow);
}
.photo-viewer__bar button, .photo-viewer__stage button { border: 1px solid rgb(255 255 255 / .26); }
:is(.office-feature .chrome, .btn, #dialog .close, .modal__x, .date-open,
  .office-feature .calendar-head button, .office-feature .model-controls button,
  .picker-month button, .photo-viewer__bar button, .photo-viewer__stage button,
  .master-share__cancel, .rent-slider__thumb):focus-visible {
  outline-offset: 3px !important;
}

.cabinet-nav a.cabinet-nav__row {
  display: grid;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
}
.cabinet-profile-page {
  display: grid;
  gap: 24px;
  max-width: 860px;
  min-width: 0;
  margin-inline: auto;
}
.own-profile { display: grid; gap: 18px; min-width: 0; }
.own-profile__card {
  display: grid;
  gap: 13px 20px;
  padding: 3px 0 15px;
  border-bottom: 1px solid var(--panel-edge);
}
.own-profile__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.own-profile__avatar {
  box-sizing: border-box;
  width: clamp(52px, 10vw, 66px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--button-edge);
  border-radius: 12px;
  background: var(--control-fill);
}
.own-profile__person { min-width: 0; }
.own-profile__person h2 { margin: 0; overflow-wrap: anywhere; font-size: clamp(18px, 3.8vw, 24px); line-height: 1.17; font-weight: 600; letter-spacing: -.025em; }
.own-profile__person h2 .resident-info-trigger { margin-inline-start: .25em; }
.own-profile__person p { margin: 5px 0 0; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.own-profile__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.own-profile__actions :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  min-width: 0;
  min-height: var(--toolbar-height);
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--button-edge);
  border-radius: var(--toolbar-radius);
  background: var(--control-fill);
  box-shadow: var(--control-shadow);
  color: var(--ink);
  font: inherit;
  font-size: var(--toolbar-font-size);
  font-weight: 600;
  line-height: 1.23;
  text-decoration: none;
  text-align: center;
}
.own-profile__actions .own-profile__view {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-weight: 500;
}
.own-profile__actions :is(.master-pass__share, .own-profile__settings) {
  padding: 0;
  width: var(--toolbar-height);
}
.own-profile__actions :is(.master-pass__share, .own-profile__settings) svg { width: 19px; height: 19px; margin: 0; }
.own-profile__actions .own-profile__view .ui-icon { width: 12px; height: 12px; flex: none; }
.own-profile__actions :is(a, button):active { box-shadow: var(--field-shadow); }
@media (min-width: 1100px) {
  .own-profile__card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-bottom: 18px; }
  .own-profile__tabs { width: min(440px, 100%); }
}
.own-profile__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  background: var(--panel-2);
  box-shadow: inset 0 1px 4px rgb(0 0 0 / .12);
}
.own-profile__tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
}
.own-profile__tabs button[aria-selected="true"] {
  border-color: var(--button-edge);
  background: var(--control-fill);
  box-shadow: var(--control-shadow);
  color: var(--ink);
  font-weight: 600;
}
.own-profile__tabs .pin { width: 15px; height: 15px; }
.office-feature .own-profile__tabs button:focus-visible { outline-offset: -3px !important; }
.own-profile__pane { min-width: 0; }
.profile-settings { display: grid; gap: 24px; }
.profile-settings h2 { margin: 0 0 6px; padding-inline: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.profile-settings ul {
  margin: 0;
  padding: 0;
  border: 1px solid var(--button-edge);
  border-radius: 14px;
  background: var(--panel);
  list-style: none;
}
.profile-settings li:first-child, .profile-settings li:first-child > :is(a, button, label) { border-radius: 13px 13px 0 0; }
.profile-settings li:last-child, .profile-settings li:last-child > :is(a, button, label) { border-radius: 0 0 13px 13px; }
.profile-settings li + li { border-top: 1px solid var(--panel-edge); }
.profile-settings li > :is(button, a, label), .profile-settings__static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 49px;
  padding: 9px 13px;
  font-size: 15px;
  color: var(--ink);
  text-align: start;
  text-decoration: none;
}
@media (hover: hover) {
  .own-profile__actions .own-profile__view:hover, .profile-settings li > :is(button, a, label):hover { background: var(--panel-2); }
}
.profile-settings small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 12px; overflow-wrap: anywhere; }
.profile-settings .ui-icon { flex: none; width: 14px; height: 14px; color: var(--ink-2); }
.profile-settings__visibility { position: relative; cursor: pointer; }
.profile-settings__visibility input[type="checkbox"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-settings__track {
  flex: none;
  display: flex;
  align-items: center;
  width: 45px;
  height: 24px;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid var(--button-edge);
  border-radius: 99px;
  background: var(--panel-2);
  box-shadow: inset 0 1px 3px #0003;
}
.profile-settings__track::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 1px 3px #0006;
  transition: transform .18s ease;
}
.profile-settings__visibility input:checked + .profile-settings__track { background: var(--graphite); }
.profile-settings__visibility input:checked + .profile-settings__track::after { transform: translateX(19px); }
:root:not([data-pointer-input]) .profile-settings__visibility input:focus-visible + .profile-settings__track { outline: 1px solid var(--focus-edge); outline-offset: 3px; }
.profile-settings__visibility input:disabled + .profile-settings__track { opacity: .6; }

#dialog.profile-dialog { width: min(94vw, 560px); max-width: calc(100vw - 20px); }
#dialog .profile-form { display: grid; gap: 14px; min-width: 0; }
#dialog .profile-form__actions {
  position: sticky;
  bottom: -1px;
  padding: 9px 0 2px;
  border-top: 1px solid var(--panel-edge);
  background: var(--panel);
}
#dialog .profile-form :is(.field, .form-error) { margin: 0; min-width: 0; }
#dialog .profile-form .profile-form__actions button { margin: 0; }
#dialog .profile-form .profile-avatar-picker { grid-template-columns: 50px minmax(0, 1fr); display: grid; margin: 0; padding: 12px; gap: 12px; border-style: solid; border-radius: 12px; }
.profile-form .profile-avatar-preview { width: 50px; height: 50px; border-radius: 9px; }
.profile-form .profile-avatar-preview img { object-fit: cover; }
#dialog #avatar-choose { min-height: 36px; }
#dialog .profile-form textarea { min-height: 90px; }
#dialog .profile-form .form-grid { gap: 12px 14px; }

.profile-gallery--tab .gallery-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
}
.profile-gallery--tab .gallery-upload p { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.profile-gallery--tab .gallery-upload small { margin: 0; }
.profile-gallery--tab .gallery-upload--empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 210px;
  justify-items: center;
  justify-content: stretch;
  align-content: center;
  gap: 12px;
  border-style: solid;
  background: linear-gradient(var(--panel), var(--panel-2));
  text-align: center;
}
.profile-gallery--tab .gallery-upload--empty > * { grid-column: 1; }
.profile-gallery--tab .gallery-upload--empty .chrome { justify-self: center; }
.profile-gallery--tab .gallery-upload--empty p { font-size: 16px; }
.gallery-upload__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--button-edge);
  border-radius: 10px;
  color: var(--ink-2);
  background: var(--control-fill);
}
.gallery-upload__icon .ui-icon { width: 23px; height: 23px; }
@media (min-width: 701px) {
  .office-feature .window:has(> .cabinet-profile-page) > .window-head {
    max-width: 860px;
    margin-inline: auto;
  }
  .office-feature .window:has(> .payment-sheet) > .window-head {
    max-width: 610px;
    margin-inline: auto;
  }
}

.profile-gallery--tab .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-block: 12px; }
.profile-gallery--tab .gallery-item { border-radius: 12px; padding: 9px; min-width: 0; }
.profile-gallery--tab .gallery-item > img { border-radius: 8px; }
.profile-gallery--tab .gallery-actions { gap: 5px; }
.profile-gallery--tab .gallery-actions button { min-height: 38px; }
.profile-gallery--tab #gallery-save:disabled { display: none; }

body[data-page="payment"] :is(#view, #view > .view-enter, #office-view, #office-view > .window) {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}
.payment-sheet {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  box-sizing: border-box;
  width: min(100%, 610px);
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.payment-sheet__details {
  display: grid;
  flex: 1 0 auto;
  align-content: space-evenly;
  gap: 14px;
  padding-block: 16px;
}
.payment-sheet__details > :is(p, dl, ul) { margin: 0; }
.payment-sheet__header { gap: 7px 10px; padding-bottom: 12px; }
.payment-sheet__header .payment-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 38px;
  padding: 6px 12px 6px 18px;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.payment-sheet__summary { padding: 0; }
.payment-sheet__summary .eyebrow { display: block; margin-bottom: 4px; color: var(--ink-2); }
.payment-sheet__summary h2 { font-weight: 600; }
.payment-sheet__actions { gap: 8px; }
.office-feature .payment-sheet #payment-refresh {
  background: var(--control-fill);
  color: var(--ink);
  border-color: var(--button-edge);
  text-shadow: none;
}
.payment-sheet__note { padding-top: 11px; }

@media (max-width: 700px) {
  body[data-page="cabinet"] .office-feature .window:has(> .cabinet-profile-page) > .window-head {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 13px;
  }
  body[data-page="cabinet"] .cabinet-profile-page { margin-top: 0; }
  body[data-page="cabinet"] .window:has(> .cabinet-profile-page) .window-head .back { grid-column: 1 / -1; justify-self: start; margin: 10px 0 0; }
  .own-profile__identity { gap: 9px; }
  .own-profile__actions:has(.own-profile__view) {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) repeat(2, 39px);
    gap: 5px;
  }
  .own-profile__actions .own-profile__edit { padding-inline: 5px; font-size: 12px; }
  .own-profile__actions :is(.own-profile__settings, .master-pass__share) { width: 39px; }
  .own-profile__actions .own-profile__view { padding-inline: 5px; }
  .own-profile__actions .own-profile__view .ui-icon { display: none; }
  .profile-gallery--tab .gallery-upload--empty:not(.is-dragover, .is-choosing) { border-color: var(--panel-edge); }
  .profile-gallery--tab .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  #dialog .profile-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dialog .profile-form :is(.field:has([name="name"], [name="city"], [name="birthDate"]), .wide) { grid-column: 1 / -1; }
  .payment-sheet__header .payment-status { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .profile-settings__track::after { transition: none; } }

.booking-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 152px));
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}
.office-feature .booking-action {
  display: flex;
  box-sizing: border-box;
  min-height: var(--toolbar-height);
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--button-edge);
  border-radius: var(--toolbar-radius);
  background: var(--control-fill);
  box-shadow: var(--control-shadow);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--toolbar-font-size);
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  white-space: nowrap;
}
.office-feature .booking-action--primary {
  border-color: var(--button-strong-edge);
  background: var(--action-fill);
  color: var(--selected-ink);
}
.office-feature .booking-action .ui-icon { width: 14px; height: 14px; margin: 0; }
.office-feature .booking-action:enabled:active { box-shadow: var(--field-shadow); }
@media (max-width: 700px) {
  .booking-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

:root[data-pointer-input] body :is(button, a, input, select, textarea, summary, [tabindex]):focus,
:root[data-pointer-input] #dialog :is(button, a, input, select, textarea, summary, [tabindex]):focus {
  outline: none !important;
}
body:is([data-page="master"], [data-page="profile"]) .section-head :is(.crumbs, .crumbs__current, .tab, .tab__label) {
  font-family: inherit;
  font-style: normal;
}
body:is([data-page="master"], [data-page="profile"]) .section-head .tab {
  min-height: var(--toolbar-height);
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.2;
}
.office-feature .profile-gallery--tab #gallery-choose {
  min-height: var(--toolbar-height);
  border-radius: var(--toolbar-radius);
  font-size: var(--toolbar-font-size);
  font-weight: 600;
}

@media (max-width: 700px) {
  body[data-page] {
    --mobile-stage-top: 54px;
    --mobile-panel-bottom-gap: max(12px, env(safe-area-inset-bottom));
  }
  body[data-page]:not([data-page="masters"]) #stage {
    min-height: calc(100dvh - var(--mobile-stage-top) - var(--mobile-panel-bottom-gap)) !important;
  }
  body[data-page]:not([data-page="masters"]) .site-bottom {
    padding-top: calc(var(--mobile-panel-bottom-gap) + 6px);
  }
  body[data-page="masters"] #stage {
    min-height: calc(100dvh - var(--mobile-stage-top)) !important;
  }
  body[data-page="masters"] .site-bottom {
    --home-slider-height: 60px;
    padding-top: calc(var(--home-slider-height) + 30px);
  }
  body[data-page="masters"] .site-bottom #rentSlider {
    height: var(--home-slider-height);
    transform: translate(-50%, calc(-1 * var(--rent-lift, 0px)));
  }
}

@media (max-width: 360px) {
  .site-bottom .foot__links { column-gap: 8px; }
  .site-bottom .foot__links a { overflow-wrap: anywhere; }
}
