/* White glass, graphite gloss and quiet chrome. */
:root {
  --bg:#f7f7f7; --panel-2:#f7f7f7; --ink:#0a0a0a; --ink-2:#555; --ink-3:#888;
  --ios-bar-top:#fff; --ios-bar-mid:#eee; --ios-bar-bottom:#ddd;
  --ios-edge:#c5c5c5; --ios-rule:#e2e2e2; --ios-label:#555;
  --ios-action-top:#484848; --ios-action-mid:#171717; --ios-action-bottom:#303030;
  --control-fill:linear-gradient(#fff,#fafafa 48%,#ededed);
  --action-fill:linear-gradient(#484848,#171717 48%,#303030);
  --control-shadow:inset 0 1px #fff,0 3px 8px #00000012;
}
:root[data-theme="dark"] {
  --bg:#171717; --panel:#222; --panel-2:#292929; --ink:#f5f5f5; --ink-2:#ccc; --ink-3:#999;
  --ios-cell:#272727; --ios-cell-bottom:#222; --ios-edge:#555; --ios-rule:#444; --ios-label:#ccc;
  --ios-bar-top:#444; --ios-bar-mid:#333; --ios-bar-bottom:#292929;
  --control-fill:linear-gradient(#414141,#303030 48%,#292929);
  --control-shadow:inset 0 1px #ffffff22,0 3px 8px #00000030;
}
html { background:#fff; scrollbar-width:none; }
html::-webkit-scrollbar { display:none; }
body { height:auto;min-height:100svh;overflow-y:auto;overflow-x:clip; }
.menu__link,.lang__btn,.login__links a,.who__name { text-decoration:none; }
.menu__item { border:0; }
.menu__item[aria-current="true"] .menu__link { color:var(--ink);font-style:normal;font-weight:600; }
.lang__btn[aria-current="true"] { font-weight:600; }
.lang__btn[aria-current="false"] { color:var(--ink-3); }
.theme { order:-1; }
.brand__controls .theme,.theme__track { width:52px;height:28px; }
.theme__track { border:1px solid #ddd;background:#ededed;box-shadow:inset 0 1px 2px #00000012;color:#555; }
.theme__track::after { display:none; }
.theme__knob { left:2px;top:2px;width:22px;height:22px;border:0;background:linear-gradient(#fff,#fafafa);box-shadow:0 1px 3px #00000022; }
.theme__sun,.theme__moon { top:7px;width:14px;height:14px; }
.theme__sun { left:6px;color:#555; }
.theme__moon { right:6px;color:#888; }
:root[data-theme="dark"] .theme__track { background:#333;border-color:#555; }
:root[data-theme="dark"] .theme__knob { transform:translateX(24px);background:linear-gradient(#eee,#ddd); }
.theme:focus-visible .theme__track { box-shadow:inset 0 1px 2px #0002,0 2px 5px #0003; }

/* Footer is document content. Only the home-page rent control floats. */
.stage__shape { display:none; }
.site-bottom { display:flex;flex-direction:column;align-items:center;gap:18px;min-width:0; }
.site-bottom .rent-slider { position:relative;flex:none;width:min(100%,460px);height:56px;margin:0;border:1px solid #171717;border-radius:15px;overflow:hidden;background:linear-gradient(#0a0a0a,#080808 16%,#292929 49%,#383838);box-shadow:inset 0 1px 2px #fff6,inset 0 -2px 2px #000b,0 5px 14px #0002;color:#eee;user-select:none;-webkit-user-select:none; }
.site-bottom .rent-slider__thumb { height:46px;width:50px;border-radius:10px; }
.site-bottom .rent-slider__label { inset-inline-start:60px;font-size:clamp(16px,1.6vw,20px); }
.site-bottom .foot { width:100%;margin:0;padding:16px 50px 16px 22px;border:1px solid var(--panel-edge);border-radius:24px;background:linear-gradient(var(--panel),var(--panel-2));box-shadow:0 3px 12px #0000000c; }
.foot__links a,.foot__copy a { text-decoration:none; }
.foot__links a:hover,.foot__copy a:hover { color:var(--ink);opacity:1; }
.foot__links { color:var(--ink-2);font-size:12px; }
.foot__copy { font-size:12px;font-weight:500; }
.foot__mark { opacity:.55; }
@media (min-width:701px) {
  body { display:grid;grid-template-columns:minmax(0,1fr) var(--rail-width);column-gap:32px;padding:100px 24px 24px clamp(24px,3vw,54px);align-items:start; }
  .stage,.stage--bare { grid-column:1;position:relative;inset:auto;width:auto;height:auto;min-height:calc(100svh - 134px);margin:0;overflow:visible; }
  .stage__inner { position:relative;inset:auto;height:auto;overflow:visible; }
  .stage--bare .stage__inner { height:calc(100svh - 120px);min-height:520px; }
  .rail { grid-column:2;position:sticky;inset:auto;top:194px;bottom:auto;width:100%;height:auto;margin-top:94px;gap:18px; }
  .site-bottom { grid-column:1/-1;margin-top:24px; }
  body[data-page="masters"] { padding-bottom:94px; }
  body[data-page="masters"] .site-bottom .rent-slider { position:fixed;right:24px;bottom:24px;width:var(--rail-width);z-index:35; }
  body[data-page="masters"] .site-bottom .foot { width:100%; }
  body.admin-session .menu { padding-left:22px;padding-right:18px; }
  body.admin-session .menu__title { width:24%; }
  body.admin-session .menu__list { margin-left:28%; }
  body.admin-session .menu__item { height:36px; }
  body.admin-session .menu__link { font-size:16px;text-align:left; }
}

/* Titles stay on the page, without a second casing around them. */
.office-feature .window-head { padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-shadow:none;min-height:32px;width:100%;margin-bottom:28px; }
.office-feature .window-head h1 { font-weight:500;font-size:22px;white-space:normal; }
:root[data-theme="dark"] .office-feature .window-head { box-shadow:none;text-shadow:none; }
.office-feature .window-head .ios-back { margin:0 8px 0 0; }
.office-feature .window-head .back,.office-feature .window-head .ios-back,.section-head>a[href="#/masters"] { position:static;min-height:32px;padding:6px 12px;border:1px solid var(--panel-edge);border-radius:18px;background:var(--control-fill);box-shadow:var(--control-shadow);color:var(--ink-2);font-weight:400;text-shadow:none; }
.office-feature .window-head .back { margin-left:auto; }
.office-feature .chrome,.office-feature .form-actions .back-btn,.office-feature .admin-tools .chrome,.office-feature .calendar-head button,.office-feature .model-controls button,.btn,.office-select,.date-open,#dialog .chrome {
  border:1px solid var(--panel-edge);border-radius:18px;background:var(--control-fill);box-shadow:var(--control-shadow);color:var(--ink);font-weight:500;text-shadow:none;text-decoration:none;min-height:42px;
}
.office-feature .chrome:active,.btn:active { background:var(--control-fill);box-shadow:inset 0 2px 5px #0002; }
.office-feature .auth-form button[type="submit"],.office-feature .form-actions #booking-next,.office-feature #content-form button[type="submit"],.office-feature #settings-form button[type="submit"],#dialog button[type="submit"],.btn--primary,.office-feature .choice.selected,.office-feature .time.selected,.office-feature .calendar button.selected,.office-feature .steps li.active b,.office-feature .tabs [aria-selected="true"],.office-feature .tabs .active,.office-picker button[aria-selected="true"] {
  border-color:#333;background:var(--action-fill);box-shadow:inset 0 1px #ffffff40,0 3px 8px #0002;color:#fff;text-shadow:0 1px #0005;
}
.office-feature .choice.selected small { color:#ddd; }
.office-feature .field input:focus,.office-feature .field textarea:focus,.office-feature .admin-tools input:focus,#dialog input:focus,#dialog textarea:focus { border-color:#aaa;box-shadow:inset 0 2px 4px #0001,0 2px 7px #0002; }
.office-feature .admin-tools { flex-wrap:wrap;gap:10px;overflow:visible;padding:0;margin-bottom:18px;border:0;border-radius:0;background:none;box-shadow:none; }
.office-feature td button { color:var(--ink);background:var(--control-fill);border:1px solid var(--panel-edge);border-radius:14px;box-shadow:none; }
.office-feature .tabs { width:max-content;max-width:100%;background:var(--panel-2);border:1px solid var(--panel-edge);border-radius:20px;padding:3px;box-shadow:inset 0 1px 3px #0001;gap:3px; }
.office-feature .tabs button,.office-feature .tabs a,.office-feature .tabs :first-child,.office-feature .tabs :last-child { flex:none;border:0;border-radius:17px;background:transparent;box-shadow:none;color:var(--ink-2);text-shadow:none;font-weight:400; }
.section-head .tabs { display:inline-flex;gap:8px;width:max-content;max-width:100%;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible; }
.section-head .tab,.section-head .tab:first-child,.section-head .tab:last-child { display:inline-flex;gap:7px;min-height:38px;padding:8px 14px;border:0;border-radius:22px;background:transparent;box-shadow:none;color:var(--ink-2);font-size:16px;text-shadow:none; }
.section-head .tab[aria-selected="true"] { color:var(--ink);background:var(--control-fill);box-shadow:var(--control-shadow);text-shadow:none; }
.section-head .tab__label { font-style:normal;text-decoration:none; }
.section-head .crumbs a { text-decoration:none; }
.office-feature .admin-shortcuts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:28px; }
.office-feature .admin-shortcuts .chrome { min-height:80px;width:100%;padding:16px;gap:12px;font-size:clamp(16px,1.35vw,22px);border-radius:24px; }
.admin-shortcuts .ui-icon { font-size:25px;opacity:.65; }
.admin-home h2,.admin-section-title { font-size:26px;font-weight:400; }
.office-feature .admin-content { min-width:0; }

/* A quiet space selector, rather than a large form field. */
.space-picker { gap:0; }
.space-picker .office-select { width:auto;min-height:32px;max-width:250px;padding:6px 26px 6px 0;border:0;border-radius:0;background:none;box-shadow:none;font-size:13px;font-weight:400; }
.space-picker .office-select::after { right:4px;font-size:13px; }
:root[data-theme="dark"] .space-picker .office-select { background:none;border:0;box-shadow:none;color:var(--ink-2);text-shadow:none; }
.office-picker { padding:6px;border-radius:16px;border:1px solid var(--panel-edge);background:var(--panel);box-shadow:0 9px 25px #0002; }
.office-picker button { padding:10px 12px;min-height:38px;border:0;border-radius:10px;background:none;box-shadow:none;color:var(--ink);font-size:14px;font-weight:400;text-shadow:none; }
.office-picker button[aria-selected="true"]::before { display:none; }
.office-picker--space button { text-align:left; }

/* The photograph owns the window; controls float on its edges. */
.photo-viewer { width:fit-content;max-width:96vw;max-height:94dvh;padding:0;border:1px solid #ffffff33;border-radius:20px;background:#111;box-shadow:0 24px 80px #0008; }
.photo-viewer::backdrop { background:#000b;backdrop-filter:blur(8px); }
.photo-viewer__bar { position:absolute;z-index:2;inset:12px 12px auto;background:none;border:0;padding:0;min-height:0;justify-content:flex-end; }
.photo-viewer__caption { display:none; }
.photo-viewer__bar button,.photo-viewer__stage button { width:36px;height:36px;border:1px solid #ffffff33;border-radius:50%;background:linear-gradient(#444c,#111c);box-shadow:inset 0 1px #ffffff25,0 2px 8px #0004;color:#fff; }
.photo-viewer__bar button .ui-icon,.photo-viewer__stage button .ui-icon { width:20px;height:20px; }
.photo-viewer__stage { position:relative;display:block;padding:0;background:#111; }
.photo-viewer__stage img { width:auto;max-width:96vw;max-height:94dvh;margin:0;object-fit:contain; }
.photo-viewer__stage button { position:absolute;z-index:2;top:50%;transform:translateY(-50%); }
.photo-viewer__prev { left:12px; }.photo-viewer__next { right:12px; }
.photo-viewer__foot { position:absolute;z-index:2;inset:auto 0 0;padding:22px 20px 14px;border:0;background:linear-gradient(transparent,#0009);color:#eee;pointer-events:none; }
.photo-viewer__count { font-size:12px;text-shadow:0 1px 3px #000; }
.photo-viewer__dots { gap:7px;pointer-events:auto; }
.photo-viewer__dots button { width:6px;height:6px;background:#ffffff60; }
.photo-viewer__dots button[aria-current="true"] { background:#fff;box-shadow:none; }
.photo-viewer .ui-icon { pointer-events:none; }
body:has(.photo-viewer[open]) { overflow:hidden; }

@media (max-width:700px) {
  .stage:not(.stage--bare)::before,.stage:not(.stage--bare)::after { display:none; }
  .stage:not(.stage--bare)>.stage__shape { display:block;position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;filter:drop-shadow(0 7px 10px #00000018); }
  .stage__shape path,.mobile-menu-open .menu__shape path { fill:var(--panel);stroke:none; }
  body { display:block;padding:0; }
  .header { position:fixed;top:0; }
  .header::before { content:"";position:fixed;z-index:-1;inset:calc(-1 * env(safe-area-inset-top)) 0 auto;height:calc(44px + env(safe-area-inset-top));background:var(--panel); }
  .brand__controls { gap:10px;right:calc(100% + 10px);top:8px; }
  .brand__controls .theme,.theme__track { width:44px;height:26px; }
  .theme__knob { width:20px;height:20px; }
  .theme__sun,.theme__moon { width:12px;height:12px;top:7px; }.theme__sun{left:6px}.theme__moon{right:5px}
  :root[data-theme="dark"] .theme__knob { transform:translateX(18px); }
  .lang { font-size:14px; }
  .stage { margin-bottom:22px;min-height:calc(100svh - 145px); }
  .stage--bare { min-height:0; }
  .rail { position:static;inset:auto;width:auto;height:auto;margin:0;padding:0;gap:0;pointer-events:none; }
  .site-bottom { margin:0 3.5vw 22px;padding-bottom:env(safe-area-inset-bottom);gap:18px; }
  .site-bottom .rent-slider { width:min(88vw,480px);height:53px; }
  .site-bottom .rent-slider__thumb { height:43px; }
  .site-bottom .rent-slider__label { font-size:17px; }
  .site-bottom .foot { padding:12px 38px 12px 16px;border-radius:22px; }
  .foot__links,.foot__copy { font-size:10px; }
  body[data-page="masters"] .site-bottom { padding-bottom:80px; }
  body[data-page="masters"] .site-bottom .rent-slider { position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:55; }
  .mobile-menu-open .rail .menu { position:fixed;top:54px;left:3.5vw;width:min(88vw,360px);overflow:visible;pointer-events:auto;background:none;border-radius:0;box-shadow:none; }
  .mobile-menu-open .menu__list { max-height:calc(100dvh - 220px);overflow-y:auto;scrollbar-width:none; }
  .mobile-menu-open .menu__shape { display:block;filter:drop-shadow(0 7px 10px #00000018); }
  .mobile-menu-open .rail .login { position:fixed;top:273px;left:3.5vw;width:min(88vw,360px);pointer-events:auto;box-shadow:0 8px 15px #0001;border:0;border-radius:0 0 18px 18px; }
  body.admin-session.mobile-menu-open .rail .login { display:none; }
  body[data-page] .office-feature .window>.window-head { width:46%;min-height:32px;margin-bottom:24px;gap:7px;align-items:flex-start; }
  .office-feature .window-head h1 { font-size:16px;line-height:1.25;padding-top:2px; }
  .office-feature .window:has(.window-head .ios-back)>.window-head,.office-feature .window:has(.window-head .back)>.window-head { width:100%;margin-bottom:24px;flex-wrap:wrap; }
  .office-feature .window-head .ios-back { position:static;order:3;margin-top:15px; }
  .section-head:has(.crumbs) { grid-template-areas:"crumbs crumbs" "tabs tabs";gap:12px;width:100%;margin-bottom:24px; }
  .section-head:has(.crumbs) .tabs { position:static;justify-self:start;flex-wrap:nowrap;gap:5px;width:max-content; }
  .section-head:has(.crumbs)>a[href="#/masters"] { display:none; }
  .section-head .tab { font-size:15px;padding:8px 12px; }
  .office-feature .admin-shortcuts { grid-template-columns:1fr;gap:12px;margin-top:20px; }
  .office-feature .admin-shortcuts .chrome { justify-content:flex-start;min-height:62px;padding:16px 20px;font-size:18px;border-radius:22px; }
  .office-feature .admin-tools { flex-wrap:wrap; }
  .office-feature .tabs { width:max-content;max-width:100%; }
  .photo-viewer { max-width:96vw;border-radius:16px; }
  .photo-viewer__stage img { max-height:90dvh; }
  .space-picker { margin-top:10px; }
}

/* Shared optical alignment and compact popovers. */
.ui-icon { display:block;vertical-align:middle;margin:0; }
button:has(>.ui-icon),a.chrome:has(>.ui-icon),.chrome:has(>.ui-icon),.back-btn:has(>.ui-icon),.tab:has(>.ui-icon) { display:inline-flex;align-items:center;justify-content:center;gap:8px; }
.office-feature .window-head,.section-head { align-items:center; }
.office-feature .window-head img { display:block;flex:none;align-self:center; }
.office-feature .window-head h1 { padding-top:0;line-height:1.25; }
.menu__item { align-items:center; }
.bullet,.pin { flex:none;align-self:center; }
.auth-photo { position:relative;width:100%;aspect-ratio:314/160;overflow:hidden;border-radius:16px;margin-bottom:25px; }
.office-feature .auth-photo .auth-image { position:absolute;left:-6.4%;top:-12.5%;width:112.4%;height:125%;max-width:none;padding:0;border:0;margin:0;box-shadow:none;object-fit:fill; }
.office-feature .steps { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border:0; }
.office-feature .steps li { display:flex;flex-direction:column;align-items:center;gap:9px;padding:0 0 12px;text-align:center;font-style:normal;line-height:1.3;border-bottom:2px solid var(--panel-edge); }
.office-feature .steps li.active { color:var(--ink);border-color:var(--ink);font-style:normal; }
.office-feature .steps b { display:grid;place-items:center;width:26px;height:26px;margin:0;padding:0;line-height:1;font-size:12px; }
.office-feature .model-controls button,.office-feature .calendar-head button { width:42px;height:42px;min-height:42px;min-width:42px;aspect-ratio:1;padding:0;border-radius:50%;display:grid;place-items:center; }
.office-feature .model-controls button .ui-icon,.office-feature .calendar-head button .ui-icon { width:22px;height:22px;margin:0; }
.site-bottom .rent-slider { width:min(84vw,430px);height:62px; }
.site-bottom .rent-slider__thumb { width:54px;height:52px;border-radius:12px; }
.site-bottom .rent-slider__label { inset:0;font-size:clamp(18px,1.8vw,22px);text-align:center; }
.site-bottom .foot { width:calc(100% - 12px); }
.site-bottom { padding-bottom:14px; }
.lang { position:relative; }
.lang__toggle { display:grid;place-items:center;width:28px;height:28px;padding:0;background:none;border:0;color:var(--ink); }
.lang__toggle .ui-icon { width:22px;height:22px; }
.lang__menu { position:fixed;inset:auto;margin:0;padding:5px;width:150px;border:1px solid var(--panel-edge);border-radius:16px;background:var(--panel);color:var(--ink);box-shadow:0 8px 24px #0002; }
.lang__menu .lang__btn { display:block;width:100%;padding:10px 12px;text-align:left;border-radius:11px;font-size:14px;text-decoration:none; }
.lang__menu .lang__btn[aria-current="true"] { background:var(--action-fill);color:#fff; }
.office-picker--space button[aria-selected="true"] { background:var(--panel-2);box-shadow:none;color:var(--ink);text-shadow:none; }
.office-picker--space button { font-size:13px;min-height:34px;padding:8px; }
.office-picker { box-sizing:border-box;max-width:calc(100vw - 24px); }
.picker-month { display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:5px;text-align:center;font-size:14px; }
.picker-month button { display:grid;place-items:center;padding:0;width:34px;height:34px;border-radius:50%;background:var(--control-fill); }
.picker-month .ui-icon { width:18px;height:18px; }
.picker-days { grid-template-columns:repeat(7,minmax(0,1fr)); }
.picker-days button { padding:0;min-width:0;min-height:34px;font-size:14px; }
.date-open { display:grid;place-items:center;flex:none;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border-radius:50%; }
.date-open .ui-icon { width:18px;height:18px; }
.field .date-open { right:7px;bottom:7px; }
#dialog { background:var(--panel);overflow-y:auto;padding:24px;max-height:calc(100dvh - 32px); }
#dialog .close { display:grid;place-items:center;width:32px;height:32px;padding:0;border-radius:50%;background:var(--control-fill);font-size:22px;line-height:1; }
#dialog-content h2 { padding-right:32px;margin:0 0 20px;font-size:24px;line-height:1.2;font-weight:500; }
#dialog .field { position:relative; }
#dialog .field input,#dialog .office-select { min-height:50px;border-radius:14px;padding:12px 16px;font-size:16px; }
#dialog input[type="date"] { padding-right:50px; }
#dialog button[type="submit"] { margin-top:8px;margin-bottom:4px;width:100%; }
@media (max-width:700px) {
  body[data-page] .office-feature .window>.window-head { align-items:center; }
  .office-feature .window-head h1 { padding-top:0; }
  .mobile-menu-open .rail .menu,.mobile-menu-open .rail .login { width:min(76vw,300px); }
  .site-bottom { margin:0 5vw 28px; }
  .site-bottom .rent-slider { width:min(84vw,430px);height:60px; }
  .site-bottom .rent-slider__thumb { height:50px;width:52px; }
  .site-bottom .rent-slider__label { font-size:clamp(17px,4.5vw,21px); }
  .site-bottom .foot { width:100%;padding:14px 38px 14px 16px; }
  .office-feature .form-actions .back-btn { padding:10px 14px;white-space:nowrap; }
  .office-feature .steps { margin-top:8px; }
  #dialog { padding:22px 18px; }
}
.lang__menu .lang__btn { opacity:1;color:var(--ink); }
.lang__menu .lang__btn[aria-current="true"] { color:#fff; }
.office-picker--space button[aria-selected="true"] { position:relative;padding-right:26px; }
.office-picker--space button[aria-selected="true"]::after { content:'✓';position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:13px; }
.office-feature .steps li { font-size:11px; }

body[data-page="admin"] .site-bottom .rent-slider { display:none; }

/* Studio rules: a readable desk sheet, without stacked decorative cards. */
.rules-intro { margin:12px 0 36px;max-width:720px; }
.office-feature .rules-intro h2 { font-size:clamp(32px,3.6vw,54px);line-height:1.05;letter-spacing:-.045em;font-weight:400;margin:0 0 18px; }
.rules-intro p { color:var(--ink-2);font-size:16px;line-height:1.5; }
.rules-layout { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:40px;align-items:start; }
.rules-row { display:flex;align-items:flex-start;gap:18px;padding:25px 0;border-top:1px solid var(--panel-edge); }
.rules-symbol { display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:var(--control-fill);box-shadow:var(--control-shadow);color:var(--ink-2); }
.rules-symbol .ui-icon { width:20px;height:20px; }
.office-feature .rules-row h3,.office-feature .rules-booking h3 { margin:5px 0 10px;font-size:22px;font-weight:500;line-height:1.2; }
.rules-row p { margin:0;max-width:520px;font-size:15px;line-height:1.65;color:var(--ink-2); }
.rules-booking { padding:24px;border:1px solid var(--panel-edge);border-radius:24px;background:linear-gradient(var(--panel),var(--panel-2));box-shadow:0 5px 18px #0000000a; }
.rules-booking h3 { margin-top:18px!important; }
.rules-booking dl { margin:22px 0; }
.rules-booking dl>div { display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--panel-edge); }
.rules-booking dt { font-size:13px;color:var(--ink-2);max-width:160px; }
.rules-booking dd { margin:0;white-space:nowrap;font-size:19px; }
.rules-booking p { color:var(--ink-2);font-size:13px;line-height:1.55; }
.rules-booking .chrome { display:flex;width:100%;margin-top:22px;background:var(--action-fill);color:#fff;border-color:#333; }
.rules-full { border-top:1px solid var(--panel-edge);margin-top:32px;padding:20px 0; }
.rules-full summary { list-style:none;cursor:pointer;display:flex;justify-content:flex-start;align-items:center;gap:12px;font-size:16px; }
.rules-full summary::-webkit-details-marker { display:none; }
.rules-full__text { white-space:pre-wrap;line-height:1.7;font-size:15px;color:var(--ink-2);max-width:780px;margin:22px 0 16px; }
.rules-full small { color:var(--ink-3);font-size:11px; }
@media (max-width:700px) {
  body[data-page="safety"] .office-feature .window>.window-head { width:46%;gap:8px; }
  body[data-page="safety"] .window-head h1 { font-size:16px;line-height:1.2; }
  .rules-intro { margin:10px 0 26px; }
  .office-feature .rules-intro h2 { font-size:34px; }
  .rules-intro p { font-size:14px;max-width:280px; }
  .rules-layout { grid-template-columns:1fr;gap:20px; }
  .rules-row { gap:14px;padding:22px 0; }
  .office-feature .rules-row h3,.office-feature .rules-booking h3 { font-size:20px; }
  .rules-row p { font-size:14px;line-height:1.6; }
  .rules-booking { padding:22px;border-radius:20px; }
}

/* Let actions finish the panel instead of leaving a blank tail below them. */
.brand__controls .theme,.theme__track { width:60px; }
:root[data-theme="dark"] .theme__knob { transform:translateX(32px); }
body[data-page="feedback"] .office-feature .window { display:flex;flex-direction:column;min-height:calc(100svh - 150px); }
.office-feature #feedback-form { display:flex;flex-direction:column;flex:1;width:min(100%,440px);max-width:440px;margin:20px auto 0; }
.office-feature #feedback-form button[type="submit"] { margin-top:auto;flex:none; }
.office-feature #feedback-form>.field { margin-top:10px; }
.office-feature #feedback-form>p:last-of-type { margin-bottom:28px; }
.office-feature .auth-form { margin-bottom:0; }
.interior-dossier { display:flex;flex-direction:column; }
.interior-dossier .chrome { margin-top:auto; }
@media (max-width:700px) {
  .brand__controls .theme,.theme__track { width:52px; }
  :root[data-theme="dark"] .theme__knob { transform:translateX(26px); }
  body[data-page="feedback"] .office-feature .window { min-height:calc(100svh - 115px); }
  .office-feature #feedback-form { width:100%;margin:24px auto 0; }
  .office-feature .auth-form { margin-bottom:0; }
}

.site-bottom .foot { position:relative;padding:20px 66px 20px 24px; }
.foot__links { display:flex;flex-wrap:wrap;gap:8px 22px;font-size:12px;line-height:1.4; }
.foot__links a { display:block; }
.foot__copy { display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:16px;font-size:11px;font-weight:400;line-height:1.4; }
.foot__copy span { margin-left:auto; }
.foot__mark { top:18px;right:18px;transform:none;width:28px;height:28px; }
@media (max-width:700px) {
  .site-bottom .foot { padding:18px 54px 18px 18px; }
  .foot__links { display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px 12px;font-size:11px; }
  .foot__copy { gap:5px 12px;margin-top:16px;font-size:10px; }
  .foot__copy span { margin-left:0; }
  .foot__mark { top:17px;right:15px;width:26px;height:26px; }
}
.office-feature #feedback-form>.field { flex:1;margin-bottom:18px; }
.office-feature #feedback-form textarea { flex:1;min-height:150px; }

body[data-page="masters"] .site-bottom .rent-slider { transform:translateY(calc(-1 * var(--rent-lift,0px))); }
@media (max-width:700px) {
  body[data-page="masters"] .site-bottom .rent-slider { transform:translate(-50%,calc(-1 * var(--rent-lift,0px))); }
  body[data-page="masters"] .site-bottom { padding-bottom:env(safe-area-inset-bottom);padding-top:70px; }
}

/* Keep the first panel's top margin inside the page background. */
@media (max-width:700px) { body { display:flow-root; } }

.section-head:has(.crumbs)>a.master-back[href="#/masters"] { display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap; }
@media (max-width:700px) {
  .section-head:has(.crumbs) { grid-template-areas:"crumbs crumbs" "tabs back";grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 8px; }
  .section-head:has(.crumbs) .tabs { width:auto;max-width:100%;gap:2px; }
  .section-head:has(.crumbs) .tab { padding:8px 9px;font-size:14px;gap:5px; }
  .section-head:has(.crumbs)>a.master-back[href="#/masters"] { grid-area:back;align-self:center;padding:8px 10px;font-size:13px; }
}

/* Restore link affordance in the sign-in panel and contain the space control. */
.login__links a { text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px; }
.space-picker .office-select { display:flex;align-items:center;justify-content:space-between;gap:18px;width:250px;max-width:100%;min-height:42px;padding:10px 14px;border:1px solid var(--panel-edge);border-radius:14px;background:var(--control-fill);box-shadow:var(--control-shadow);color:var(--ink);font-size:14px;line-height:1.3; }
.space-picker .office-select::after { content:"";position:static;width:7px;height:7px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg); }
:root[data-theme="dark"] .space-picker .office-select { background:var(--control-fill);border:1px solid var(--panel-edge);box-shadow:var(--control-shadow);color:var(--ink); }
@media (min-width:701px) {
  .site-bottom .foot,body[data-page="masters"] .site-bottom .foot { position:fixed;right:24px;bottom:24px;width:var(--rail-width);z-index:35;display:block;padding:18px 48px 18px 18px; }
  .site-bottom .rent-slider,body[data-page="masters"] .site-bottom .rent-slider { position:fixed;right:24px;bottom:calc(42px + var(--desktop-foot-height,125px));width:var(--rail-width);z-index:35;transform:none; }
  .site-bottom .foot .foot__links { display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:9px 10px;font-size:11px; }
  .site-bottom .foot .foot__copy { font-size:10px;gap:5px 10px; }
  .site-bottom .foot .foot__copy span { margin-left:0; }
}

/* Content starts at the top; primary actions finish the card. */
.office-feature .interior-dossier { display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:16px; }
.office-feature .interior-dossier h3 { margin:0; }
.office-feature .interior-dossier p { margin:0 0 8px; }
.office-feature .interior-dossier .chrome { margin:auto 0 0;align-self:stretch;width:100%; }
.office-feature .brand-story__copy,.office-feature .club-page>div,.office-feature .find-card { justify-content:flex-start; }
.office-feature .brand-story__actions { margin-top:auto;padding-top:20px; }
.office-feature .find-card a { margin-top:auto;padding-top:16px; }
.office-feature a.chrome,.office-feature button.chrome,.office-feature button[type="submit"] { border-color:#333;background:var(--action-fill);box-shadow:inset 0 1px #ffffff40,0 3px 8px #0002;color:#fff;text-shadow:0 1px #0005; }
.office-feature .interior-dossier .chrome { display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left; }
@media (max-width:700px) { .office-feature .interior-dossier { min-height:330px; } }
.office-feature a.chrome,.office-feature button.chrome,.office-feature button[type="submit"],.office-feature .rules-booking .chrome { background-clip:border-box;border-color:#292929;box-shadow:0 3px 8px #0002; }

.rules-full summary { font-weight:700; }
@media (min-width:701px) {
  .site-bottom .rent-slider,body[data-page="masters"] .site-bottom .rent-slider { width:calc(var(--rail-width) * .68); }
  .site-bottom .rent-slider__label { inset-inline-start:62px;inset-inline-end:7px;font-size:clamp(13px,1.1vw,16px); }
}

.work__img { padding:0;border:0;border-radius:14px;background:none;box-shadow:none;display:block; }
.work:hover .work__img { box-shadow:0 4px 12px #00000015; }
.master__city { margin:8px 0 10px;font-size:14px;line-height:1.4;color:var(--ink-2); }

.rail .login__row { display:flex;flex-direction:column;align-items:flex-start;gap:10px; }
.rail .login__label { position:static;font-size:16px;line-height:1.2; }
.rail .login__links { display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;white-space:nowrap;color:var(--ink-2);font-weight:700; }
.rail .login__links a { font-size:clamp(10px,.8vw,12px);font-weight:700;color:var(--ink-2); }
.rail .login__links>span { font-size:11px; }
@media (max-width:700px) { .rail .login__links a { font-size:12px; } }

.polaroid__photo { display:block;position:relative; }
.desktop-shortcut { position:absolute;left:0;bottom:0;display:grid;place-items:center;width:21px;height:21px;border:1px solid #a8a8a8;border-radius:3px;background:linear-gradient(#fff,#ededed);box-shadow:0 1px 3px #0003;color:#202020;pointer-events:none; }
.desktop-shortcut .ui-icon { width:14px;height:14px;stroke-width:2; }

/* Desktop shortcuts use the familiar curved arrow overlay. */
.desktop-shortcut { width:23px;height:23px;bottom:-1px;border-radius:2px;background:linear-gradient(#fff,#eee);color:#555; }
.desktop-shortcut svg { display:block;width:19px;height:19px;fill:currentColor; }
.polaroid,.polaroid *,.polaroid.is-dragging,.drift--static .polaroid { cursor:pointer!important; }
@media (max-width:700px) {
  .brand__controls { position:absolute;left:calc(46px - 46vw);right:auto;top:8px; }
}

.office-picker--space { padding:6px; }
.office-picker--space>button { margin:0;width:100%;box-sizing:border-box; }
.model-controls { justify-content:center; }
.rent-slider__thumb .ui-icon { pointer-events:none; }
@media (min-width:701px) { .site-bottom .rent-slider { cursor:pointer; } }

/* Controls keep their full border and sufficient room for text. */
.office-feature .form-actions .back-btn { flex:none;width:auto;min-width:max-content;max-width:none;padding:12px 18px;white-space:nowrap;line-height:1.25; }
.ui-icon { flex-shrink:0;overflow:visible; }
.photo-viewer__bar button,.photo-viewer__stage button,.office-feature .calendar-head button,.office-feature .model-controls button,.date-open { box-sizing:border-box;flex-shrink:0;background-clip:border-box;box-shadow:0 2px 7px #0002;overflow:visible; }
.photo-viewer__bar button,.photo-viewer__stage button { aspect-ratio:1;border-radius:50%;padding:0;display:grid;place-items:center; }
.booking-login-action { margin:24px 0 0; }
.office-feature #booking-login { display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 20px;line-height:1.3;max-width:100%; }
.quantity-control { display:flex;align-items:center;gap:4px;flex:none;width:126px;max-width:100%;padding:5px;border:1px solid var(--panel-edge);border-radius:18px;background:var(--control-fill);box-shadow:var(--control-shadow); }
.quantity-control input[type="number"],.office-feature .quantity-control input[type="number"],#dialog .quantity-control input[type="number"] { appearance:textfield;min-width:0;width:36px;flex:1;height:32px;min-height:32px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:center;font:inherit;color:var(--ink); }
.quantity-control input::-webkit-inner-spin-button,.quantity-control input::-webkit-outer-spin-button { appearance:none;margin:0; }
.quantity-control button { display:grid;place-items:center;flex:none;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:50%;background:var(--panel);color:var(--ink);box-shadow:0 1px 3px #0001; }
.quantity-control button .ui-icon { width:16px;height:16px; }
.quantity-control button:disabled { opacity:.3; }
.quantity-control:focus-within { outline:2px solid var(--ink-3);outline-offset:2px; }
@media (min-width:701px) {
  .menu__title,body.admin-session .menu__title { position:absolute;left:0;top:0;width:32%;height:66px;padding:0;margin:0;display:grid;place-items:center;line-height:1; }
}
@media (min-width:701px) {
  .menu,body.admin-session .menu { padding:14px 20px 17px calc(32% + 20px); }
  .menu__list { margin-left:0;min-width:0; }
}

@media (min-width:701px) {
  .menu,body.admin-session .menu { padding-left:calc(var(--menu-tab-width,115px) + 20px); }
  .menu__title,body.admin-session .menu__title { width:var(--menu-tab-width,115px); }
  body.admin-session .menu__list { max-height:max(160px,calc(100dvh - 395px));overflow-y:auto;padding-right:2px; }
}

.office-feature .auth-form--role { display:flex;flex-direction:column;width:min(100%,340px);max-width:340px;min-height:calc(100svh - 220px);margin:20px auto 0; }
.auth-illustration { display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:9px;align-items:end;margin-bottom:16px; }
.auth-illustration .auth-photo { margin:0; }
.office-feature .auth-caption { margin:0;font-size:10px;line-height:1.25;color:var(--ink); }
.office-feature .auth-form--role .field { margin-bottom:16px; }
.office-feature .auth-form--role .field>span { font-size:16px; }
.office-feature .auth-form--role .field input { min-height:42px;border-radius:24px;padding:10px 16px;font-size:15px; }
.office-feature .auth-form--role .auth-switch { margin:0;text-align:center;font-size:11px; }
.auth-role-actions { display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:auto;padding-top:36px; }
.office-feature .auth-role-actions button[type="submit"] { width:78%;min-height:42px;margin:0; }
@media (max-width:700px) {
  .office-feature .auth-form--role { min-height:calc(100svh - 190px);margin-top:24px; }
  .auth-illustration { grid-template-columns:minmax(0,1fr) 90px; }
}
/* Profile, forms and navigation share a restrained mobile layout. */
.master__photo { display:block;padding:0;border:0;border-radius:16px;background:none;box-shadow:none; }
.master-profile__action { margin:24px 0 0; }
.master-profile__action .btn--primary { display:flex;justify-content:center;width:100%;background:var(--action-fill);border-color:#333;color:#fff;box-shadow:0 3px 8px #0002; }
.office-feature .club-rates { padding:0;border:0;background:none;box-shadow:none; }
body[data-page="booking"] .site-bottom .rent-slider { display:none; }
.site-bottom .foot,body[data-page="masters"] .site-bottom .foot { background:linear-gradient(155deg,#f0f0f0,#dedede);border-color:#d1d1d1; }
:root[data-theme="dark"] .site-bottom .foot { background:linear-gradient(155deg,#333,#252525);border-color:#484848; }
.office-feature input[type="checkbox"],.office-feature input[type="radio"] { width:22px;height:22px;border:1px solid var(--panel-edge);background:var(--panel);box-shadow:none;transition:background .15s,border-color .15s; }
.office-feature input[type="checkbox"]:checked,.office-feature input[type="radio"]:checked { background:#242424;border-color:#242424; }
.office-feature input[type="checkbox"]:checked::after { content:'';width:10px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg); }
.office-feature input[type="radio"]:checked::after { background:#fff; }
.office-feature input[type="checkbox"]:focus-visible,.office-feature input[type="radio"]:focus-visible { outline:2px solid var(--ink-3);outline-offset:3px; }
.office-feature .resource-choice { display:grid;grid-template-columns:112px minmax(0,1fr) 20px;gap:16px;align-items:center;text-align:left;padding:12px; }
.resource-choice__photo { display:block;width:112px;height:84px;border-radius:12px;object-fit:cover; }
.office-feature .resource-choice>span { min-width:0; }
.office-feature .resource-choice b { display:block;line-height:1.3; }
.office-feature .resource-choice small { line-height:1.4; }
.office-feature .resource-choice:disabled { opacity:.65; }
.office-feature .time.selected .muted { color:#ddd; }
.office-feature .booking-review { padding:24px;border:0;border-radius:18px;background:var(--panel-2);box-shadow:none;margin:20px 0; }
.office-feature .booking-review h3 { margin:0 0 20px;font-size:22px;line-height:1.35; }
.office-feature .booking-review p { margin:10px 0; }
.booking-review__payment { display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--panel-edge);margin-top:20px;padding-top:18px; }
.booking-review__payment strong { font-size:24px;font-weight:600; }
.office-feature .booking-review__split { color:var(--ink-2); }
.desktop-shortcut { width:20px;height:20px;left:0;bottom:-1px;border-radius:3px;border-color:#bbb;box-shadow:0 1px 2px #0002; }
.desktop-shortcut svg { width:15px;height:15px; }
.mobile-menu-toggle svg { display:block;width:24px;height:24px;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible; }
.mobile-menu-toggle { align-items:center;justify-content:center; }
.view-enter { animation:officePageIn .2s ease-out both; }
.office-feature>.window { animation:officePageIn .2s ease-out both; }
@keyframes officePageIn { from { opacity:0;transform:translateY(4px); } to { opacity:1;transform:none; } }
@media (max-width:700px) {
  body[data-page="master"] .section-head .crumbs__current { display:none; }
  body[data-page="master"] .section-head:has(.crumbs) .crumbs {min-height:0;}
  body[data-page="master"] .section-head { margin-bottom:18px;row-gap:24px; }
  .master { gap:24px; }
  .master-profile { display:grid;grid-template-columns:108px minmax(0,1fr);gap:16px;align-items:start; }
  .master-profile .master__photo { width:108px;max-width:none;aspect-ratio:3/4; }
  .master-profile__copy { min-width:0; }
  .master-profile .master__name { margin:0;font-size:19px;line-height:1.25; }
  .master-profile .master__city { margin:7px 0;font-size:13px; }
  .master-profile .master__meta { flex-wrap:wrap;gap:4px 10px;font-size:12px; }
  .master-profile .master__bio { margin-top:12px;font-size:14px;line-height:1.45; }
  .master-profile__action { margin:18px 0 0; }
  .master-profile__action .btn { padding:11px 12px;font-size:13px; }
  .office-feature .auth-form--role { min-height:440px; }
  .office-feature .auth-form:not(.auth-form--role) { margin-top:24px; }
  .office-feature .auth-form .auth-photo { flex:none; }
  .office-feature .resource-choice { grid-template-columns:84px minmax(0,1fr) 18px;gap:12px; }
  .resource-choice__photo { width:84px;height:76px; }
  .office-feature .resource-choice b { font-size:15px; }
  .office-feature .resource-choice small { font-size:12px; }
  .office-feature .booking-review { padding:18px; }
}
@media (prefers-reduced-motion:reduce) { .view-enter,.office-feature>.window { animation:none; } }
@media (min-width:701px) { body.admin-session .menu__list { margin-left:0; } }

/* Admin sections: compact content and a rail that reserves space for the footer. */
body.admin-session .office-feature .window { min-height:0;padding-bottom:32px; }
.admin-section-head { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px; }
.admin-section-head .admin-section-title { margin:0;font-size:26px; }
.office-feature .admin-back { display:inline-flex;align-items:center;gap:8px;min-width:max-content;width:auto;padding:10px 18px;font-size:14px; }
.admin-content .empty { min-height:0;padding:24px;text-align:left;border:0;border-radius:16px;background:var(--panel-2);font-size:14px; }
.admin-content .table-wrap { border:1px solid var(--panel-edge);border-radius:16px;margin-bottom:16px; }
.admin-content table { font-size:13px; }
.admin-content th { background:var(--panel-2);box-shadow:none;font-size:11px;padding:14px 16px; }
.admin-content td { padding:16px; }
.admin-content .admin-tools { display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:20px; }
.admin-content .admin-tools .chrome { min-height:42px;padding:10px 16px;font-size:13px; }
.admin-content .admin-tools #manual-booking { background:linear-gradient(#333,#191919);color:white;border-color:#222; }
.schedule-scroll { overflow:auto;border:1px solid var(--panel-edge);border-radius:16px;max-height:65vh; }
.admin-content .schedule { border:0;border-radius:0;overflow:visible;font-size:12px; }
.admin-content .schedule>div { min-height:48px;padding:14px 12px;line-height:1.4; }
.admin-content .schedule .schedule-heading { position:sticky;top:0;z-index:2;background:var(--panel-2);font-weight:600;min-height:65px; }
.schedule-heading button { font-size:11px;font-weight:400;color:var(--ink-2);margin-top:5px; }
.admin-content .schedule .schedule-hour { position:sticky;left:0;background:var(--panel-2);font-variant-numeric:tabular-nums;z-index:1;font-weight:600; }
.schedule-free { color:var(--muted);font-size:11px; }
.admin-content .schedule .busy { background:#333;color:#fff; }
.admin-content .schedule .closed { background:var(--panel-2);color:var(--muted); }
@media (min-width:701px) {
  body.admin-session .rail { position:fixed;right:24px;top:194px;width:var(--rail-width);margin:0;height:calc(100dvh - 236px - var(--desktop-foot-height,125px));min-height:0; }
  body.admin-session .rail .menu { flex:1;min-height:0;display:flex;flex-direction:column; }
  body.admin-session .menu__list { min-height:0;max-height:none;overflow-y:auto; }
  body.admin-session .rail .login { flex:none;margin:0; }
}
@media (max-width:700px) {
  .admin-section-head { flex-wrap:wrap;gap:12px; }
  .admin-section-head .admin-section-title { font-size:22px; }
  .admin-content .admin-tools .chrome { flex:1;min-width:max-content; }
  .admin-content .table-wrap { max-width:100%; }
}

#dialog .close,.modal__x { display:grid;place-items:center;padding:0;line-height:1; }
#dialog .close .ui-icon,.modal__x .ui-icon { display:block;width:18px;height:18px;margin:0;flex:none; }
@media (min-width:701px) { body.admin-session .stage { min-height:0; } }
/* Login images share the same column and edges as the fields. */
.auth-form--role .auth-illustration { width:100%;grid-template-columns:minmax(0,1fr);gap:8px; }
.auth-form--role .auth-illustration .auth-photo { width:100%;justify-self:center; }
.auth-form--role .auth-caption { justify-self:end;text-align:right;margin:0; }
/* Sign-in forms keep the submit action beside the form rather than at viewport bottom. */
.office-feature .auth-form--role { min-height:0; }
.auth-form--role .auth-role-actions { margin-top:24px;padding-top:0; }
body[data-page="login"] .office-feature .window { min-height:0;padding-bottom:32px; }
@media (min-width:701px) { body[data-page="login"] .stage { min-height:0; } }
@media (max-width:700px) {
  .office-feature .auth-form--role { min-height:0; }
  .auth-form--role .auth-caption { justify-self:start;text-align:left;font-size:11px; }
}
.site-bottom .foot .foot__links { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
/* Auth content is centered as one group, with its action kept attached. */
body[data-page] .office-feature .window:has(>.auth-form:not(#feedback-form)) { display:flex;flex-direction:column; }
body[data-page] .office-feature .window:has(>.auth-form:not(#feedback-form))>.window-head { flex:none; }
.office-feature .window>.auth-form { margin-left:auto;margin-right:auto; }
@media (min-width:701px) {
  body[data-page] .stage:has(.auth-form:not(#feedback-form)) { min-height:calc(100svh - 134px); }
  body[data-page] .office-feature .window:has(>.auth-form:not(#feedback-form)) { min-height:calc(100svh - 196px); }
  .office-feature .window>.auth-form { flex:none;margin-top:auto;margin-bottom:auto; }
}
@media (max-width:700px) {
  body[data-page] .office-feature .window:has(>.auth-form:not(#feedback-form)) { min-height:0; }
  .office-feature .window>.auth-form { margin-top:20px;margin-bottom:0; }
}
.archive-footer a { display:inline-flex;align-items:center;gap:8px;max-width:100%;line-height:1.35; }
.archive-footer a .ui-icon { display:block;flex:none;width:18px;height:18px; }

.rent-slider { touch-action:pan-y; }
.rent-slider.is-dragging .rent-slider__thumb { transition:none!important;cursor:grabbing; }
.rent-slider__thumb { cursor:grab;will-change:transform; }
/* Booking content ends at its actions, without an unused lower band. */
body[data-page="booking"] .office-feature .window { min-height:0;padding-bottom:28px; }
.booking-grid>div:first-child { display:flex;flex-direction:column;min-width:0; }
.booking-grid>div:first-child>.form-actions { margin-top:auto;padding-top:30px; }
#booking-error:empty { display:none; }
@media (min-width:701px) { body[data-page="booking"] .stage { min-height:0; } }

.office-feature .booking-grid--review { grid-template-columns:minmax(0,1fr); }
.booking-review__total { display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:22px;font-size:18px; }
/* Content panels follow their content; authentication keeps its own layout. */
body[data-page]:not([data-page="login"]):not([data-page="signup"]) .stage:not(.stage--bare):not(:has(.auth-form:not(#feedback-form))) { min-height:0; }
body[data-page]:not([data-page="login"]):not([data-page="signup"]) .stage:not(.stage--bare):not(:has(.auth-form:not(#feedback-form)))>.stage__inner { padding-bottom:24px; }
body[data-page]:not([data-page="login"]):not([data-page="signup"]) .office-feature .window:not(:has(.auth-form:not(#feedback-form))) { min-height:0;padding-bottom:0; }
.office-feature .window:not(:has(.auth-form:not(#feedback-form)))>:last-child { margin-bottom:0; }
.office-feature .find-grid,.office-feature .about-grid,.office-feature .interior-dossier,.office-feature .safety-card,.office-feature .find-card,.office-feature .archive-card,.office-feature .archive-card__body { min-height:0; }
.office-feature #feedback-form { flex:none; }
.office-feature #feedback-form button[type="submit"] { margin-top:18px; }
.office-feature .archive-card__body>:last-child,.office-feature .find-card>:last-child { margin-bottom:0; }

/* Location details are independent, compact cards. */
.office-feature .find-cards { gap:12px;grid-template-rows:auto;align-content:start;border:0;border-radius:0;overflow:visible;background:none;box-shadow:none; }
.office-feature .find-card { padding:18px 20px;gap:0;border:1px solid var(--panel-edge);border-radius:18px;background:var(--panel-2);box-shadow:none; }
.office-feature .find-card:last-child { border-bottom:1px solid var(--panel-edge); }
.office-feature .find-card__number { font-size:10px;line-height:1.4;letter-spacing:.08em;color:var(--muted); }
.office-feature .find-card h3 { font-size:20px;font-weight:500;line-height:1.3;margin:8px 0 6px; }
.office-feature .find-card p { font-size:13px;line-height:1.5; }
.office-feature .find-card h3 a { margin:0;padding:0;color:inherit; }
@media (max-width:700px) {
  .office-feature .find-cards { grid-template-columns:1fr;gap:10px; }
  .office-feature .find-card { padding:16px 18px; }
  .office-feature .find-card h3 { font-size:18px; }
}

.find-lead .space-picker { flex:none; }
.office-feature .interior-dossier { padding:22px;gap:16px;border-radius:20px;box-shadow:0 3px 10px #0000000c; }
.office-feature .interior-dossier h3 { font-size:26px;line-height:1.2;letter-spacing:-.025em; }
.office-feature .interior-dossier p { font-size:14px;line-height:1.55;margin:0; }
.office-feature .interior-dossier .chrome { min-height:44px;padding:12px 16px;font-size:14px;line-height:1.3; }
@media (max-width:700px) {
  .find-lead .space-picker { display:block;margin-top:18px; }
  .find-lead .space-picker .office-select { width:100%;max-width:100%; }
  .office-feature .interior-dossier { padding:20px;gap:16px; }
  .office-feature .interior-dossier h3 { font-size:22px;line-height:1.25; }
}

.menu__title:has(.menu-logout:not([hidden])) { display:flex;align-items:center;justify-content:center;gap:8px; }
.menu-logout { display:grid;place-items:center;flex:none;width:26px;height:30px;border:0;border-radius:8px;padding:3px;background:transparent;color:var(--ink-2);cursor:pointer; }
.menu-logout[hidden] { display:none; }
.menu-logout svg { display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible; }
.menu-logout:hover,.menu-logout:focus-visible { background:var(--panel-2);color:var(--ink); }
.menu-logout:focus-visible { outline:2px solid var(--ink-2);outline-offset:2px; }
.admin-profile { width:min(100%,440px); }
.admin-profile h3 { margin:30px 0 18px;font-size:20px; }
.admin-profile form>.chrome { margin-top:6px; }

/* Quiet native feedback: preserve layout and respect reduced motion. */
@media (prefers-reduced-motion:no-preference) {
  .chrome,.office-select,.date-open,.quantity-control button,.menu-logout,.dialog-close,.modal__x {
    transition:translate 140ms ease,scale 140ms ease,background-color 160ms ease,box-shadow 160ms ease;
  }
  .chrome:active:not(:disabled),.office-select:active,.date-open:active,.quantity-control button:active:not(:disabled),.menu-logout:active,.dialog-close:active,.modal__x:active {scale:.98;translate:0 1px;}
  .office-feature input[type=checkbox],.office-feature input[type=radio] {transition:background-color 150ms ease,border-color 150ms ease,scale 150ms ease;}
  .office-feature input[type=checkbox]:active,.office-feature input[type=radio]:active {scale:.9;}
  .office-picker:popover-open {animation:officePopupIn 160ms cubic-bezier(.2,.75,.25,1);transform-origin:top center;}
  #dialog {transition:opacity 160ms ease,translate 160ms ease,display 160ms allow-discrete,overlay 160ms allow-discrete;opacity:0;translate:0 8px;}
  #dialog[open] {opacity:1;translate:0 0;}
  #dialog::backdrop {transition:opacity 160ms ease,display 160ms allow-discrete,overlay 160ms allow-discrete;opacity:0;}
  #dialog[open]::backdrop {opacity:1;}
  #notice:not([hidden]) {animation:officePopupIn 180ms ease-out;}
  @starting-style {#dialog[open] {opacity:0;translate:0 8px;} #dialog[open]::backdrop {opacity:0;}}
}
@keyframes officePopupIn {from{opacity:0;translate:0 5px;}to{opacity:1;translate:0 0;}}

@media (max-width:700px) { body[data-page="masters"] .site-bottom .rent-slider {bottom:calc(max(12px,env(safe-area-inset-bottom)) + 8px);} }

/* Reserve arrow space even for a long office name. */
.space-picker .office-select {position:relative;display:block;width:min(100%,340px);padding-inline:14px 44px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;}
.space-picker .office-select::after {position:absolute;right:18px;top:50%;transform:translateY(-70%) rotate(45deg);}

/* A slightly tighter footer and more room for the second link column. */
.site-bottom .foot,body[data-page="masters"] .site-bottom .foot {padding-block:14px;}
.site-bottom .foot .foot__links {grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);}
.site-bottom .foot .foot__copy {margin-top:12px;}
/* Consistent interaction feedback, without pointer-click focus rings. */
:focus-visible {filter:none!important;outline:1px solid var(--ink-3);outline-offset:3px;}
:focus:not(:focus-visible),.quantity-control:focus-within {outline:none!important;filter:none!important;}
.quantity-control:has(:focus-visible) {outline:1px solid var(--ink-3)!important;outline-offset:3px;}
.office-feature .field input:focus,.office-feature .field textarea:focus,#dialog input:focus,#dialog textarea:focus {outline:none;filter:none;border-color:var(--ink-3);box-shadow:0 1px 4px #00000012;}
.office-feature button:focus:not(:focus-visible),.office-select:focus:not(:focus-visible),.office-picker button:focus:not(:focus-visible) {box-shadow:var(--control-shadow);}
.office-feature input:focus-visible,.office-feature textarea:focus-visible {filter:none!important;}
a,button,summary,label,[role="button"],[role="option"],.polaroid,.polaroid *,.drift--static .polaroid,.work,.work * {cursor:url('../assets/cursors/link.png') 10 10,pointer!important;}
input,textarea,[contenteditable="true"] {cursor:url('../assets/cursors/beam.png') 15 16,text!important;}
input[type="checkbox"],input[type="radio"],input[type="date"] {cursor:url('../assets/cursors/link.png') 10 10,pointer!important;}
button:disabled {cursor:url('../assets/cursors/no.png') 10 10,not-allowed!important;}
.menu__title,body.admin-session .menu__title {display:grid!important;place-items:center;}
.who {align-items:center;gap:12px;}
.who__text {flex:1;min-width:0;}
.who__text small:empty {display:none;}
.who .menu-logout {width:32px;height:32px;margin-left:auto;}
.office-feature .resource-choice__state {display:grid;place-items:center;}
.resource-choice__state .ui-icon {width:18px;height:18px;}
.password-control {position:relative;width:100%;}
.password-control input {width:100%;padding-right:52px!important;}
.password-toggle {position:absolute;right:12px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:28px;height:28px;min-height:0!important;padding:4px;border:0;background:transparent;box-shadow:none;color:var(--ink-2);}
.password-toggle svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;}
.password-toggle[data-visible="true"] {color:var(--ink);background:var(--panel-2);border-radius:8px;}
.auth-switch {display:flex;flex-wrap:wrap;justify-content:center;gap:10px 18px;}
.office-feature .auth-photo .auth-image {left:-6.05%;top:-11.73%;width:112.74%;height:123.46%;}
.rules-full {margin-top:24px;padding:16px 0 0;}
.rules-full summary {font-weight:500;font-size:16px;line-height:1.4;}
.office-feature .form-actions #booking-next {width:auto;min-width:120px;white-space:nowrap;padding:12px 20px;}
.site-bottom .foot,body[data-page="masters"] .site-bottom .foot {padding-block:12px;}
.site-bottom .foot .foot__copy {margin-top:10px;}
.foot__copy a {font-weight:600;}
.foot__mark {opacity:1;filter:brightness(0);}
.photo-viewer__bar {inset:14px 14px auto;overflow:visible;}
.photo-viewer__bar button,.photo-viewer__stage button {border:0;box-shadow:inset 0 0 0 1px #ffffff40,0 2px 8px #0004;transform:translateZ(0);}
.photo-viewer__stage button {transform:translateY(-50%) translateZ(0);}
/* Dark surfaces keep their hierarchy; primary actions remain black. */
:root[data-theme="dark"] {--bg:#181818;--panel:#242424;--panel-2:#2b2b2b;--panel-edge:#454545;--line:#454545;--muted:#b8b8b8;--ink:#f3f3f3;--ink-2:#c5c5c5;--ink-3:#989898;--control-fill:linear-gradient(#363636,#2c2c2c);--action-fill:linear-gradient(#282828,#0d0d0d 55%,#191919);--control-shadow:inset 0 1px #ffffff0c,0 2px 6px #0003;}
:root[data-theme="dark"] html {background:var(--bg);}
:root[data-theme="dark"] .office-feature .chrome,:root[data-theme="dark"] .office-feature .back-btn,:root[data-theme="dark"] .office-feature .calendar-head button,:root[data-theme="dark"] .office-feature .model-controls button,:root[data-theme="dark"] .office-select,:root[data-theme="dark"] .btn {background:var(--control-fill);border-color:var(--panel-edge);color:var(--ink);box-shadow:var(--control-shadow);text-shadow:none;}
:root[data-theme="dark"] .office-feature .auth-form button[type="submit"],:root[data-theme="dark"] .office-feature #booking-next,:root[data-theme="dark"] .office-feature #card-pay,:root[data-theme="dark"] #dialog button[type="submit"],:root[data-theme="dark"] .btn--primary,:root[data-theme="dark"] .office-feature .choice.selected,:root[data-theme="dark"] .office-feature .time.selected,:root[data-theme="dark"] .office-feature .calendar button.selected,:root[data-theme="dark"] .office-picker button[aria-selected="true"],:root[data-theme="dark"] .office-feature .steps li.active b {background:var(--action-fill);color:#fff;border-color:#686868;box-shadow:inset 0 1px #ffffff12,0 2px 6px #0004;text-shadow:none;}
:root[data-theme="dark"] .office-feature .choice.selected small,:root[data-theme="dark"] .office-feature .time.selected .muted {color:#d4d4d4;}
:root[data-theme="dark"] .office-feature .field input,:root[data-theme="dark"] .office-feature .field textarea,:root[data-theme="dark"] #dialog input,:root[data-theme="dark"] #dialog textarea {background:#2e2e2e;color:var(--ink);border-color:var(--panel-edge);box-shadow:none;}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder {color:#aaa;opacity:1;}
:root[data-theme="dark"] .quantity-control input[type="number"] {background:transparent;border:0;}
:root[data-theme="dark"] .office-feature .choice:not(.selected),:root[data-theme="dark"] .office-feature .time:not(.selected),:root[data-theme="dark"] .office-feature .calendar button:not(.selected) {background:var(--control-fill);border-color:var(--panel-edge);color:var(--ink);box-shadow:var(--control-shadow);}

@media (max-width:700px) {.mobile-menu-open .menu__title,body.admin-session.mobile-menu-open .menu__title {display:none!important;}}
.password-toggle {z-index:1;}
.password-toggle svg {pointer-events:none;}
:root[data-theme="dark"] {background:var(--bg);}
:root[data-theme="dark"] .foot__mark {filter:brightness(0) invert(1);opacity:1;}
button:focus-visible,a:focus-visible,summary:focus-visible,.office-feature button:focus-visible,.office-feature a:focus-visible,.office-select:focus-visible {outline:1px solid var(--ink-3)!important;outline-offset:3px;filter:none!important;}
input:-webkit-autofill { -webkit-text-fill-color:var(--ink);box-shadow:inset 0 0 0 1000px var(--panel)!important; }
.password-control input:-webkit-autofill {box-shadow:inset 0 0 0 1000px var(--panel)!important;}

/* Images belong to the site's controls, rather than browser hover tools. */
img {pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;}
.thumbs>button {padding:0;border:0;background:none;}
.site-bottom .foot .foot__links {row-gap:4px;}
.site-bottom .foot .foot__copy {margin-top:8px;}
.site-bottom .foot .foot__copy #copyrightYear {margin-left:auto;text-align:right;white-space:nowrap;}
/* In the dark theme, white is the primary action and selection colour. */
:root[data-theme="dark"] {--action-fill:linear-gradient(#fff,#f0f0f0);}
:root[data-theme="dark"] :is(.office-feature button[type="submit"],.office-feature a.chrome,.office-feature #booking-next,.office-feature #card-pay,.office-feature #manual-booking,#dialog button[type="submit"],.btn--primary,.office-feature .choice.selected,.office-feature .time.selected,.office-feature .calendar button.selected,.office-feature .steps li.active b,.office-feature .tabs [aria-selected="true"],.office-feature .tabs .active,.office-picker button[aria-selected="true"]) {background:var(--action-fill);color:#111;border-color:#eee;box-shadow:inset 0 1px #fff,0 3px 8px #0003;text-shadow:none;}
:root[data-theme="dark"] .office-feature .choice.selected small,:root[data-theme="dark"] .office-feature .time.selected .muted {color:#555;}
:root[data-theme="dark"] .site-bottom .rent-slider {background:var(--action-fill);border-color:#ddd;color:#111;box-shadow:inset 0 1px #fff,0 3px 10px #0004;}
:root[data-theme="dark"] .rent-slider__label {text-shadow:none;}
/* The copyright row can use the space below the footer mark. */
.site-bottom .foot .foot__copy {padding-right:0;margin-right:-24px;column-gap:8px;}
/* Keep the visibility toggle in the same slot for both input types. */
.password-control {display:grid;grid-template-columns:minmax(0,1fr);align-items:center;}
.password-control input {display:block;grid-area:1/1;}
.password-toggle {inset-block:0;top:0;bottom:0;right:12px;margin-block:auto;transform:none;translate:none;scale:1;align-self:center;border-radius:8px;background:transparent;box-shadow:none;transition:color 120ms ease;}
.password-toggle[data-visible="true"] {background:transparent;}
.password-toggle:active,.password-toggle:focus:not(:focus-visible) {transform:none;translate:none;scale:1;box-shadow:none!important;}

/* Authentication panels end on the same baseline as the desktop footer. */
@media (min-width:701px) {
  body[data-page] .stage:has(.auth-form:not(#feedback-form)) {min-height:calc(100svh - 124px);}
  body[data-page] .office-feature .window:has(>.auth-form:not(#feedback-form)) {min-height:calc(100svh - 186px);}
}
/* The desktop admin workspace shares the footer baseline and rail width. */
@media (min-width:701px) {
  body.admin-session[data-page="admin"] .stage:not(.stage--bare) {min-height:calc(100svh - 124px)!important;}
  body.admin-session .rail .login {width:100%;align-self:stretch;box-sizing:border-box;}
  body.admin-session .rail .who__name {font-size:clamp(15px,1.35vw,19px);}
  body.admin-session .rail .who .menu-logout {flex:none;}
}
:root .office-feature .password-control input,:root #dialog .password-control input {font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:16px;letter-spacing:0;font-variant-ligatures:none;}
/* Solid button edges in every interaction state, without a white inset ring. */
.office-feature .chrome,#dialog .chrome,.btn,.office-feature .back-btn {background-clip:border-box;box-shadow:0 3px 8px #00000018!important;}
/* The whole desktop rail follows its content. Only the document scrolls. */
@media (min-width:701px) {
  body {min-height:max(100svh,calc(var(--desktop-footer-bottom,0px) + 24px));}
  .rail,body.admin-session .rail {position:absolute;right:24px;top:194px;width:var(--rail-width);height:auto;min-height:0;margin:0;}
  .rail .menu,body.admin-session .rail .menu {flex:none;height:auto;min-height:0;}
  .rail .menu__list,body.admin-session .rail .menu__list {height:auto;max-height:none;overflow:visible;}
  .rail .login,body.admin-session .rail .login {width:100%;margin:0;align-self:stretch;box-sizing:border-box;}
  .rail .who__name {font-size:clamp(15px,1.35vw,19px);}
  .rail .who .menu-logout {flex:none;}
  .site-bottom {margin-top:0;}
  .site-bottom .foot,body[data-page="masters"] .site-bottom .foot {position:absolute;top:var(--desktop-footer-top,calc(100svh - 107px));bottom:auto;}
  .site-bottom .rent-slider,body[data-page="masters"] .site-bottom .rent-slider {position:absolute;top:calc(var(--desktop-footer-top,calc(100svh - 107px)) - 74px);bottom:auto;}
  body.admin-session[data-page="admin"] .stage:not(.stage--bare) {min-height:calc(var(--desktop-footer-bottom,calc(100svh - 24px)) - var(--desktop-stage-top,100px))!important;}
  body[data-page] .stage:has(.auth-form:not(#feedback-form)) {min-height:calc(var(--desktop-footer-bottom,calc(100svh - 24px)) - var(--desktop-stage-top,100px));}
  body[data-page] .office-feature .window:has(>.auth-form:not(#feedback-form)) {min-height:calc(var(--desktop-footer-bottom,calc(100svh - 24px)) - 162px);}
}
@media (min-width:701px) {
  body[data-page] .office-feature .window:has(>.auth-form:not(#feedback-form)) {padding-bottom:0;}
  body[data-page] .office-feature .window:has(>.auth-form:not(#feedback-form))>.window-head {margin-bottom:24px;}
}
@media (min-width:701px) {
  body[data-page] .stage:not(.stage--bare) {min-height:calc(var(--desktop-footer-bottom,calc(100svh - 24px)) - var(--desktop-stage-top,100px))!important;}
  .stage--bare .stage__inner {height:calc(var(--desktop-footer-bottom,calc(100svh - 24px)) - var(--desktop-stage-top,100px));}
  .rail .login.login--user,body.admin-session .rail .login.login--user {width:calc(var(--rail-width) * .68);margin-left:auto;align-self:flex-end;padding:12px;}
  .login--user .who {gap:8px;}
  .login--user .office-initial {width:32px;height:32px;font-size:22px;flex:none;}
  .rail .login.login--user .who__name {font-size:clamp(15px,1.35vw,19px);}
  .rail .login--user .who .menu-logout {width:24px;height:24px;}
}
.master-profile__action small {display:block;margin-top:10px;font-size:12px;}
.login__master {display:block;width:100%;white-space:nowrap;text-align:center;text-decoration:none;font-size:15px;line-height:1.4;color:var(--ink);}
@media (min-width:701px) {
  .rail .login.login--guest {width:calc(var(--rail-width) * .68);margin-left:auto;align-self:flex-end;padding:12px;min-height:58px;display:flex;align-items:center;}
  .rail .login__master {font-size:clamp(13px,1.1vw,16px);}
}
/* Desktop chrome stays in the viewport; content scrolls inside its panel. */
@media (min-width:701px) {
  body {height:100dvh;min-height:100dvh;overflow:hidden;}
  body[data-page] #stage {position:fixed;top:var(--desktop-stage-top,100px);left:clamp(24px,3vw,54px);right:calc(var(--rail-width) + 56px);bottom:24px;width:auto;height:auto;min-height:0!important;}
  body[data-page] #stage>.stage__inner {position:absolute;inset:0;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;}
  .rail,body.admin-session .rail {position:fixed;}
  .rail .menu__item,body.admin-session .rail .menu__item {height:var(--desktop-menu-row-height,36px);}
  body.admin-session .rail .menu__link {font-size:clamp(12px,calc(var(--desktop-menu-row-height,36px) * .55),16px);}
  .site-bottom .foot,body[data-page="masters"] .site-bottom .foot {position:fixed;top:auto;bottom:24px;}
  .site-bottom .rent-slider,body[data-page="masters"] .site-bottom .rent-slider {position:fixed;top:auto;bottom:calc(42px + var(--desktop-foot-height,83px));}
  body[data-page] .office-feature .window:has(>.auth-form:not(#feedback-form)) {min-height:calc(100dvh - var(--desktop-stage-top,100px) - 76px);}
}

/* Account panels keep the name and role together. */
.rail .who__text {gap:2px;}
.rail .who__name {line-height:1.2;}
.rail .who small {margin:0;line-height:1.2;}
/* Personal cabinet: compact summaries and readable, padded cards. */
.office-feature .cabinet-heading {align-items:center;gap:16px;margin-bottom:20px;}
.office-feature .cabinet-heading h2 {margin:8px 0 6px!important;font-size:26px;line-height:1.2;}
.office-feature .cabinet-heading p {margin:0;line-height:1.4;}
.office-feature .cabinet .summary-cards {gap:12px;margin:0 0 18px;grid-template-columns:repeat(3,minmax(0,1fr));}
.office-feature .cabinet .stat {padding:18px;border:1px solid var(--panel-edge);border-radius:18px;background:var(--panel-2);box-shadow:none;}
.office-feature .cabinet .stat strong {font-size:26px;line-height:1.2;margin:8px 0;}
.office-feature .cabinet .stat .eyebrow {font-size:11px;letter-spacing:.4px;}
.office-feature .cabinet .stat .small {font-size:12px;line-height:1.4;}
.office-feature .cabinet .stamp-card {padding:18px;margin:0 0 22px;border:1px solid var(--panel-edge);border-radius:18px;box-shadow:none;background:var(--panel-2);}
.office-feature .cabinet .stamp-card>.row {gap:12px;font-size:14px;}
.office-feature .cabinet .stamps {gap:8px;margin-top:16px;grid-template-columns:repeat(10,minmax(0,1fr));}
.office-feature .cabinet .stamp {width:100%;max-width:40px;justify-self:center;font-size:12px;box-shadow:none;background:var(--panel);color:var(--ink-2);border:1px solid var(--panel-edge);transform:none;}
.office-feature .cabinet .stamp.used {background:var(--ink);color:var(--panel);border-color:var(--ink);}
.office-feature .cabinet .tabs {display:flex;flex-wrap:wrap;width:fit-content;gap:3px;margin:0 0 20px;overflow:visible;}
.office-feature .cabinet .tabs button {padding:9px 13px;font-size:13px;line-height:1.3;color:var(--ink-2);white-space:nowrap;}
.office-feature .cabinet .tabs button[aria-selected="true"] {background:var(--panel);color:var(--ink);text-shadow:none;box-shadow:0 2px 6px #0001;font-weight:500;}
.office-feature .cabinet .booking-item {padding:20px;margin:0 0 12px;border:1px solid var(--panel-edge);border-radius:18px;background:var(--panel-2);box-shadow:none;gap:20px;}
.office-feature .cabinet .booking-item h3 {font-size:18px;line-height:1.3;margin:0 0 8px;}
.office-feature .cabinet .booking-item p {font-size:13px;line-height:1.5;margin:0 0 5px;}
.office-feature .cabinet .booking-item .badge {margin-top:6px;}
.office-feature .cabinet .cabinet-action {display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;flex:none;border:1px solid var(--panel-edge);border-radius:18px;background:var(--panel);color:var(--ink-2);font-size:13px;line-height:1.3;text-shadow:none;white-space:nowrap;}
.office-feature .cabinet .cabinet-action u {text-decoration:none;}
.office-feature .cabinet .cabinet-notification {padding:20px;margin:0 0 12px;border:1px solid var(--panel-edge);border-radius:18px;background:var(--panel-2);box-shadow:none;overflow-wrap:anywhere;}
.office-feature .cabinet-notification .eyebrow {font-size:11px;letter-spacing:0;color:var(--ink-2);}
.office-feature .cabinet-notification h3 {font-size:17px;line-height:1.4;margin:8px 0;}
.office-feature .cabinet-notification p {font-size:13px;line-height:1.5;margin:4px 0;color:var(--ink-2);}
@media (max-width:600px) {
  .office-feature .cabinet .summary-cards {grid-template-columns:repeat(2,minmax(0,1fr));}
  .office-feature .cabinet .summary-cards .stat:last-child {grid-column:1/-1;}
  .office-feature .cabinet .stat {padding:14px;}
  .office-feature .cabinet .stamps {grid-template-columns:repeat(5,minmax(0,1fr));}
  .office-feature .cabinet .booking-item {align-items:stretch;flex-direction:column;padding:16px;gap:14px;}
  .office-feature .cabinet .booking-item>.row {justify-content:flex-end;flex-wrap:wrap;}
  .office-feature .cabinet .tabs {width:100%;border-radius:18px;}
  .office-feature .cabinet .tabs button {padding:8px 10px;font-size:12px;}
}

/* A district map based on the studio's actual surroundings. */
.office-feature .location-map {margin:0;border:1px solid var(--panel-edge);border-radius:22px;overflow:hidden;background:var(--panel-2);}
.location-map__open {position:relative;display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;}
.location-map__open img {display:block;width:100%;height:auto;}
.location-map__open>span {position:absolute;right:14px;bottom:14px;padding:7px 11px;background:#fff;border:1px solid #ddd;border-radius:18px;color:#444;font-size:12px;}
.location-map figcaption {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:14px 18px;font-size:12px;line-height:1.5;color:var(--ink-2);}
.location-map figcaption a {color:var(--ink);white-space:nowrap;}
.location-map__legend {display:inline-flex;align-items:center;gap:8px;}
.location-map__legend i {width:24px;border-top:2px dashed var(--ink);}
:root[data-theme="dark"] .location-map__open img {filter:invert(1);}
.office-feature .walking-route {margin:24px 0;padding:22px;border:1px solid var(--panel-edge);border-radius:18px;background:var(--panel-2);}
.walking-route ol {margin:14px 0;padding-left:22px;display:grid;gap:10px;font-size:14px;line-height:1.6;}
.walking-route p {font-size:12px;color:var(--ink-2);margin:12px 0 0;line-height:1.5;}
@media (max-width:700px) {
  body {display:flex;flex-direction:column;min-height:100dvh;}
  #stage,.rail {flex:none;}
  .site-bottom,body[data-page="masters"] .site-bottom {flex:none;margin-top:auto;padding-top:18px;margin-bottom:max(14px,env(safe-area-inset-bottom));padding-bottom:0;}
}

/* Paint circular edges inside the control to avoid fractional-pixel clipping. */
.office-feature .calendar-head button,.office-feature .model-controls button,.date-open,.picker-month button,#dialog .close,.photo-viewer__bar button,.photo-viewer__stage button {border:0!important;background-clip:border-box;box-shadow:inset 0 0 0 1px var(--panel-edge),0 2px 7px #0002!important;}
.office-feature .check {display:flex;align-items:center;gap:10px;}
.office-feature .check>input[type="checkbox"] {flex:none;margin:0;align-self:center;}
.office-feature .check>span {display:block;line-height:1.5;}

/* Optional action explanations are exposed by the Morphicons alert control. */
.has-help {display:flex!important;align-items:center;gap:8px;}
.help-hint {display:inline-flex;vertical-align:middle;margin:0 0 14px;}
.help-alert,.office-feature .help-alert,#dialog .help-alert {display:inline-grid!important;place-items:center;flex:none;width:26px;height:26px;min-width:26px;min-height:26px;margin:0;padding:3px;border:0;border-radius:50%;background:transparent;box-shadow:none!important;color:var(--ink-2);text-shadow:none;cursor:help;}
.help-alert svg {display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.help-alert:hover,.help-alert[aria-expanded="true"] {background:var(--panel-2);color:var(--ink);}
.help-alert:focus-visible {outline:2px solid var(--ink-2);outline-offset:2px;}
.help-tooltip {position:fixed;z-index:10000;width:max-content;max-width:min(340px,calc(100vw - 24px));max-height:min(320px,45dvh);overflow:auto;padding:14px 16px;border:1px solid var(--panel-edge);border-radius:14px;background:var(--panel);color:var(--ink);box-shadow:0 6px 22px #0002;font:13px/1.6 "Helvetica Neue",Helvetica,Arial,sans-serif;white-space:normal;overflow-wrap:anywhere;text-transform:none;letter-spacing:0;}
.help-tooltip[hidden] {display:none!important;}

/* Every mobile content panel takes the available space before the footer. */
@media (max-width:700px) {
  body[data-page] #stage {flex:1 0 auto;min-height:0!important;margin-bottom:0;display:flex;flex-direction:column;}
  body[data-page] #stage>.stage__inner {flex:1 0 auto;min-height:0;height:auto;display:flex;flex-direction:column;}
  body[data-page] #office-view {flex:1 0 auto;display:flex;flex-direction:column;}
  body[data-page] #office-view>.window {flex:1 0 auto;min-height:0!important;}
  body[data-page] .site-bottom {margin-top:0;}
}
.extra__name {display:inline-flex;align-items:center;gap:6px;}
.help-alert.help-alert--small,.office-feature .help-alert.help-alert--small {width:22px;height:22px;min-width:22px;min-height:22px;padding:3px;}
.help-alert--small svg {width:16px;height:16px;}
.office-feature #feedback-form {width:100%;max-width:none;margin:0;align-self:stretch;}
.office-feature #feedback-form textarea {width:100%;min-height:180px;resize:vertical;}
.office-feature .cabinet .loyalty-heading {display:flex;justify-content:space-between;align-items:flex-start;gap:16px;}
.office-feature .cabinet .loyalty-heading h3 {margin:0;font-size:18px;line-height:1.35;}
.office-feature .cabinet .loyalty-heading p {margin:6px 0 0;font-size:13px;color:var(--ink-2);}
.loyalty-counter {display:flex;align-items:baseline;gap:3px;font-size:28px;line-height:1.2;white-space:nowrap;}
.loyalty-counter small {font-size:13px;color:var(--ink-2);}
.office-feature .cabinet .stamp {font-family:inherit;font-weight:400;}
.office-feature .cabinet .stamps {max-width:520px;gap:8px;margin-top:20px;}
.office-feature .cabinet .stamp--gift {border:1px solid var(--ink);background:var(--ink);color:var(--panel);}
.stamp--gift .ui-icon {width:18px;height:18px;}
.loyalty-foot {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;font-size:13px;}
.loyalty-foot+.help-hint {margin:8px 0 0;}
.office-feature .cabinet .cabinet-notification--booking {display:grid;grid-template-columns:100px minmax(0,1fr);gap:18px;}
.notification-photo {display:block;width:100px;height:112px;object-fit:cover;border-radius:12px;}
.office-feature .cabinet .notification-place {color:var(--ink);font-weight:500;}
.receipt-link,.office-feature .receipt-link {display:inline-flex;align-items:center;gap:6px;padding:0;margin-top:8px;border:0;background:none;box-shadow:none!important;font-size:12px;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;}
.receipt-link .ui-icon {width:15px;height:15px;}
@media (max-width:600px) {
  .office-feature .cabinet .loyalty-heading h3 {font-size:16px;}
  .office-feature .cabinet .cabinet-notification--booking {grid-template-columns:72px minmax(0,1fr);gap:12px;padding:16px;}
  .notification-photo {width:72px;height:90px;}
}
/* The schedule grows with every hour; only horizontal scrolling is local. */
.office-feature .schedule-scroll {max-height:none;height:auto;overflow-x:auto;overflow-y:hidden;}
@media (min-width:701px) {
  body:has(.schedule-scroll) {height:auto;overflow-y:auto;}
  body[data-page]:has(.schedule-scroll) #stage {position:relative;inset:auto;min-height:calc(100dvh - var(--desktop-stage-top,100px) - 24px)!important;height:auto;}
  body[data-page]:has(.schedule-scroll) #stage>.stage__inner {position:relative;inset:auto;height:auto;overflow:visible;}
}

.photo-viewer:has(img[src*="location-map.svg"]) {width:min(900px,96vw);}
.photo-viewer:has(img[src*="location-map.svg"]) .photo-viewer__stage img {width:100%;height:auto;max-height:90dvh;object-fit:contain;}

/* Compact studio links occupy the free corner of the mobile navigation. */
.menu__studio {display:none;}
@media (max-width:700px) {
  .mobile-menu-open .menu__studio {position:absolute;z-index:2;right:12px;top:calc(var(--mobile-menu-notch-depth,46px) + 7px);display:flex;flex-direction:column;gap:4px;}
  .menu__studio a {display:block;min-width:94px;padding:5px 8px;border:1px solid var(--panel-edge);border-radius:10px;background:var(--control-fill);color:var(--ink);font-size:12px;line-height:1.2;text-align:center;text-decoration:none;white-space:nowrap;}
}
.office-feature .walking-route {padding:0;border:0;background:none;}
.walking-route .eyebrow {display:inline-flex;align-items:center;gap:8px;}
.help-tooltip {white-space:pre-line;}

.foot__manager {display:inline-block;margin-top:6px;font-size:10px;color:var(--ink-2);text-decoration:underline;text-underline-offset:2px;}
.manager-contact {margin-top:18px;font-size:13px;line-height:1.5;color:var(--ink-2);}

/* Labels, inline navigation arrows and their hints keep a shared baseline. */
.has-help {display:inline-flex!important;align-items:center;gap:8px;vertical-align:middle;}
a:has(>.ui-icon) {display:inline-flex;align-items:center;gap:6px;}
a>.ui-icon {flex:none;}

.section-head .crumbs {display:inline-flex;align-items:center;gap:8px;}
.section-head .crumbs>.bullet {width:20px;height:20px;}
@media (max-width:700px) {.section-head .crumbs>.bullet {width:18px;height:18px;}}

@media (max-width:700px) {
  .menu__studio {align-items:stretch;}
  .menu__studio a {display:flex;align-items:center;justify-content:center;gap:4px;width:106px;min-width:106px;min-height:28px;}
  .menu__studio a.menu__club {background:#171717;border-color:#171717;color:#fff;}
  .menu__club svg {display:block;flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
}

/* Space options share one popup surface, without a nested selected/focus plate. */
.office-picker--space {padding:0;background:var(--control-fill);overflow:hidden;}
.office-picker--space>button,.office-picker--space>button[aria-selected="true"],.office-picker--space>button:hover,.office-picker--space>button:focus,:root[data-theme="dark"] .office-picker--space>button[aria-selected="true"] {padding:12px 34px 12px 14px;border:0;border-radius:0;background:transparent!important;box-shadow:none!important;outline:none!important;color:var(--ink);text-shadow:none;}
.office-picker--space:has(>button:focus-visible) {border-color:var(--ink-3);}
.office-picker--space>button[aria-selected="true"]::after {right:14px;}

.location-map__legend {display:inline-flex;align-items:center;gap:7px;}

.location-map figcaption .location-map__credit {width:100%;font-size:10px;color:var(--ink-3);text-decoration:none;}

/* Feedback is a centred column with a compact action, including on small screens. */
.office-feature #feedback-form {width:min(100%,560px);max-width:560px;margin:24px auto 0;align-self:center;flex:none;gap:0;}
.office-feature #feedback-form>.field {width:100%;max-width:none;flex:none;margin:18px 0 0;}
.office-feature #feedback-form textarea {width:100%;max-width:none;height:190px;min-height:190px;flex:none;resize:none;}
.office-feature #feedback-form button[type="submit"] {width:auto;min-width:230px;max-width:100%;align-self:center;margin:24px 0 0;padding:12px 24px;}
.office-feature #feedback-form .manager-contact {text-align:center;margin:20px 0 0;}
.office-feature .receipt,:root[data-theme="dark"] .office-feature .receipt {border:0;}
.location-map figcaption {flex-wrap:wrap;}

/* Shared administration structure: summaries, grouped forms and readable records. */
.admin-section-head {display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px;}
.admin-section-head .admin-section-title {margin:0;}
.admin-section-head .admin-back {flex:none;width:auto;min-height:36px;padding:8px 12px;font-size:12px;}
.admin-content {display:flex;flex-direction:column;gap:18px;}
.admin-content>h3 {margin:12px 0 0!important;font-size:18px;}
.admin-summary {display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;}
.admin-summary>div {padding:18px 20px;border-radius:18px;background:var(--panel-2);}
.admin-summary span {display:block;color:var(--ink-2);font-size:12px;line-height:1.4;}
.admin-summary strong {display:block;margin-top:8px;font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;}
.admin-content .admin-tools {margin:0;}
.admin-content .table-wrap {margin:0;border:0;border-radius:16px;}
.admin-content table {width:100%;line-height:1.5;}
.admin-content th {text-align:left;text-transform:none;font-size:12px;padding:14px 18px;}
.admin-content td {vertical-align:middle;padding:18px;border-bottom:1px solid var(--panel-edge);overflow-wrap:anywhere;}
.admin-content tr:last-child td {border-bottom:0;}
.admin-content tbody tr[hidden] {display:none!important;}
.admin-content td button {display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border:1px solid var(--panel-edge);border-radius:9px;background:var(--control-fill);font-size:12px;line-height:1.3;white-space:normal;}
.admin-content td .help-trigger {min-height:0;padding:0;border:0;background:transparent;}
.admin-list-tools {display:flex;align-items:flex-end;justify-content:space-between;gap:16px;}
.admin-list-tools .field {width:min(100%,340px);margin:0;}
.admin-list-tools .field>span {font-size:12px;}
.admin-list-tools input {min-height:40px;}
.admin-list-tools>.small {flex:none;padding-bottom:10px;}
.admin-content .note-paper {margin:0;padding:16px 20px;border:0;border-radius:14px;background:var(--panel-2);font-size:13px;line-height:1.6;}
.admin-content #content-form,.admin-content .admin-profile>form,.admin-group {margin:0;padding:24px;border:0;border-radius:20px;background:var(--panel-2);min-width:0;}
.admin-content #content-form>h3,.admin-content .admin-profile h3 {font-size:18px;margin:0 0 18px;}
.admin-group {margin-bottom:18px;}
.admin-group legend {float:left;width:100%;font-size:18px;font-weight:600;margin-bottom:20px;}
.admin-group>.form-grid {clear:both;}
.admin-content .form-grid {gap:18px 24px;}
.admin-content .field {min-width:0;}
.admin-content .field input,.admin-content .field select,.admin-content .field textarea {width:100%;max-width:none;}
.admin-content .field>span {font-size:13px;line-height:1.5;}
.admin-content form>button[type="submit"] {width:auto;min-width:180px;max-width:100%;margin-top:18px;padding:12px 20px;font-size:14px;}
.admin-content .admin-profile {display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.admin-profile>p {grid-column:1/-1;margin:0;}
.admin-content .check {align-items:center;gap:10px;line-height:1.5;}
.admin-content code {white-space:pre-wrap;font-size:12px;}
@media (max-width:650px) {
  .office-feature #feedback-form {margin-top:12px;}
  .admin-content {gap:16px;}
  .admin-section-head {gap:10px;margin-bottom:20px;}
  .admin-section-title {font-size:24px!important;}
  .admin-summary {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .admin-summary>div {padding:14px;}
  .admin-summary strong {font-size:22px;}
  .admin-content .admin-profile {grid-template-columns:1fr;}
  .admin-content #content-form,.admin-content .admin-profile>form,.admin-group {padding:18px;border-radius:16px;}
  .admin-content .form-grid {grid-template-columns:1fr;gap:16px;}
  .admin-content .table-wrap table,.admin-content .table-wrap tbody {display:block;}
  .admin-content .table-wrap thead {display:none;}
  .admin-content .table-wrap tr {display:grid;grid-template-columns:1fr;gap:0;background:var(--panel-2);border-radius:16px;padding:8px 16px;margin-bottom:12px;}
  .admin-content .table-wrap td {display:grid;grid-template-columns:95px minmax(0,1fr);gap:12px;padding:12px 0;font-size:13px;max-width:none!important;}
  .admin-content .table-wrap td::before {content:attr(data-label);color:var(--ink-2);font-size:11px;line-height:1.5;}
  .admin-content .table-wrap td>.admin-cell-value {grid-column:2;min-width:0;}
  .admin-content .table-wrap td button {justify-self:start;}
  .admin-content .table-wrap {overflow:visible;background:none;}
}

/* Every select reflects its shared expanded state, including office pickers. */
.office-select::after {content:"";display:block;width:7px;height:7px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform 160ms ease;}
.office-select[aria-expanded="true"]::after {transform:rotate(225deg);}
.space-picker .office-select::after {transform:translateY(-70%) rotate(45deg);}
.space-picker .office-select[aria-expanded="true"]::after {transform:translateY(-30%) rotate(225deg);}
@media (prefers-reduced-motion:reduce) {.office-select::after {transition:none;}}

.office-feature .receipt,:root[data-theme="dark"] .office-feature .receipt {background:transparent;border:0;border-radius:0;box-shadow:none;}

/* Profile forms use the content width, without the old narrow form constraint. */
.admin-content .admin-profile {width:100%;max-width:960px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px;}
.admin-content .admin-profile>form {display:flex;flex-direction:column;align-items:stretch;gap:0;}
.admin-content .admin-profile .field {width:100%;max-width:none;margin-bottom:18px;}
.admin-content .admin-profile .password-control {width:100%;}
.admin-content .admin-profile form>button[type="submit"] {align-self:flex-start;min-width:0;width:auto;max-width:100%;white-space:nowrap;margin-top:6px;padding:12px 20px;}
@media (max-width:730px) {.admin-content .admin-profile {grid-template-columns:minmax(0,1fr);gap:18px;}}

@media (min-width:701px) {
  .brand {height:auto;padding:28px;align-items:center;}
  .brand__logo img {display:block;}
}

@media (min-width:701px) {
  .rail,body.admin-session .rail {top:calc(var(--desktop-brand-height,176px) + 18px);}
}

.office-feature .cabinet .loyalty-heading {align-items:flex-start;}
.office-feature .cabinet .loyalty-heading>div {min-width:0;}
.office-feature .cabinet .loyalty-counter {flex:none;}
.office-feature .cabinet .stamps {width:100%;max-width:none;align-items:center;justify-items:center;gap:12px 8px;}
.office-feature .cabinet .stamp {display:grid;place-items:center;box-sizing:border-box;width:min(100%,40px);height:auto;min-height:0;aspect-ratio:1;margin:0;padding:0;line-height:1;font-family:inherit;border-radius:50%;}
.office-feature .cabinet .stamp--gift,:root[data-theme="dark"] .office-feature .cabinet .stamp--gift {background:#111;color:#fff;border:1px solid #111;box-shadow:none;transition:transform 160ms ease,box-shadow 160ms ease;}
.office-feature .cabinet .stamp--gift:hover {transform:translateY(-2px);box-shadow:0 4px 10px #0002;}
.office-feature .cabinet .stamp--gift:active {transform:scale(.94);}
.office-feature .cabinet .loyalty-foot {justify-content:flex-end;margin-top:12px;}
@media (prefers-reduced-motion:reduce) {.office-feature .cabinet .stamp--gift {transition:none;}}

.office-initial,:root[data-theme="dark"] .office-initial {color:#000;}

/* Booking details use the available desktop space beside the event. */
@media (min-width:701px) {
  .office-feature .cabinet .cabinet-notification--booking {grid-template-columns:100px minmax(0,1.2fr) minmax(230px,1fr);align-items:center;column-gap:24px;}
  .cabinet-notification--booking .notification-details {justify-self:end;max-width:100%;}
  .cabinet-notification--booking .receipt-link {text-align:left;white-space:normal;}
}
@media (max-width:700px) {
  .cabinet-notification--booking .notification-photo {grid-row:1 / span 2;}
  .cabinet-notification--booking .notification-details {grid-column:2;}
  .office-feature .cabinet .cabinet-notification--booking {row-gap:0;}
}
/* Dark outlines have one constant edge, without a second bevel highlight. */
:root[data-theme="dark"] {--control-shadow:0 2px 6px #0003;}
:root[data-theme="dark"] :is(#dialog,.modal__window) {border:1px solid var(--ink-3);box-shadow:0 20px 60px #0007;}
:root[data-theme="dark"] :is(.modal__bar,.login,.foot,.rent-slider,.rent-slider__thumb,.find-cards,.about-grid>div,.rules-booking,.master__photo,.work__img,.choice,.time,.steps b,.tabs,.office-select,.office-picker,.chrome,.btn,.calendar button,.desktop-shortcut) {box-shadow:0 3px 8px #0003!important;}
:root[data-theme="dark"] :is(.modal__bar,.login,.foot,.find-cards,.about-grid>div,.note-paper,.rules-booking,.choice,.time,.tabs,.office-select,.office-picker,.calendar button) {border-color:var(--panel-edge);}
:root[data-theme="dark"] :is(#dialog .close,.modal__x) {color:var(--ink);background:var(--control-fill);text-shadow:none;}
:root[data-theme="dark"] :is(#dialog .close,.modal__x,.calendar-head button,.model-controls button,.date-open,.picker-month button,.photo-viewer__bar button,.photo-viewer__stage button) {border:1px solid var(--panel-edge)!important;box-shadow:0 2px 7px #0003!important;}
:root[data-theme="dark"] :is(#dialog .close,.modal__x):focus-visible {outline-offset:0;}
:root[data-theme="dark"] .office-feature .tabs button,:root[data-theme="dark"] .office-feature .steps li.active b,:root[data-theme="dark"] #dialog button[type="submit"],:root[data-theme="dark"] .office-feature button[type="submit"] {box-shadow:0 3px 8px #0003!important;}
:root[data-theme="dark"] .office-initial {box-shadow:0 3px 8px #0002;}
/* Keep the mobile admin sign-in group centered inside its panel. */
@media (max-width:700px) {
  .office-feature .window>#admin-auth-form {margin: auto; padding-block:24px; text-align:center;}
  #admin-auth-form .has-help {justify-content:center;}
  #admin-auth-form .field>span {text-align:center;}
}
@media (max-width:700px) {
  body[data-page] #stage>.stage__inner>div:has(#admin-auth-form) {display:flex;flex-direction:column;flex:1 0 auto;}
}

/* Mobile browser canvas stays white around the site's own themed surfaces. */
@media (max-width:700px) {
  :root,:root[data-theme="dark"] {background:#fff;color-scheme:light;}
  .mobile-menu-open .rail .login {background:var(--panel);}
}
/* An opaque fixed edge also covers content extended beneath mobile browser chrome. */
@media (max-width:700px) {
  .header {height:44px;background-color:#fff;isolation:isolate;}
  .header__shape {height:22.5vw;}
  .header::before {position:absolute;inset:auto 0 100%;height:100vh;background:#fff;z-index:0;pointer-events:none;}
}

/* Browser edge layers follow the selected theme, including rounded header corners. */
@media (max-width:700px) {
  :root {--browser-canvas:#fff;background:var(--browser-canvas);color-scheme:light;}
  :root[data-theme="dark"] {--browser-canvas:#000;background:var(--browser-canvas);color-scheme:dark;}
  .header,.header::before {background-color:var(--browser-canvas);}
}

@media (max-width:700px) {
  #view {clip-path:none;}
}
@media (max-width:700px) {
  /* Cover only the SVG's top stroke, keeping the shaped lower outline. */
  .header::after {content:"";position:absolute;inset:-1px 0 auto;height:2px;background:var(--panel);z-index:1;pointer-events:none;}
  /* A finger scrolls the page; the browser cancels activation after a swipe. */
  .drift:not(.drift--static) .polaroid,.drift--static .polaroid {touch-action:pan-y pinch-zoom;-webkit-touch-callout:none;}
}

@media (max-width:700px) {
  :root[data-theme="dark"] .header__shape path {fill:var(--browser-canvas);}
  .header::after {background:var(--browser-canvas);}
}

/* Site-wide native scrolling: only explicit horizontal controls claim horizontal gestures. */
html {scroll-behavior:auto;}
body:has(dialog[open]) {overflow:hidden;}
dialog[open],.modal__body,.office-picker,.help-tooltip {overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.table-wrap,.schedule-scroll {touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-x:contain;}
@media (max-width:700px) {
  html {scroll-padding-top:calc(22.5vw + 12px);scroll-padding-bottom:100px;}
  .portrait,.drift:not(.drift--static) .polaroid,.drift--static .polaroid,.rent-slider,.rent-slider__thumb,#studio-model,.photo-viewer__stage {touch-action:pan-y pinch-zoom;}
  .office-feature .field input,.office-feature .field textarea {font-size:16px;scroll-margin-block:110px;}
  .mobile-menu-open .menu__list {overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;}
}

.rent-slider__hit-area {display:none;}
@media (max-width:700px) {
  .site-bottom .rent-slider,body[data-page="masters"] .site-bottom .rent-slider {width:min(76vw,360px);overflow:visible;}
  .rent-slider__hit-area {display:block;position:absolute;inset:-28px;z-index:1;touch-action:pan-y pinch-zoom;}
  .site-bottom .rent-slider__label {inset:0 8px 0 58px;font-size:clamp(14px,3.7vw,17px);}
}

@media (max-width:700px) {
  .rent-slider,.rent-slider__thumb,.rent-slider__hit-area {touch-action:auto;}
}

/* Let the browser provide its native elastic movement at document edges. */
@media (max-width:700px) {
  html,body {overscroll-behavior-y:auto;}
}

/* Compact monochrome switch: invert the capsule and knob with the theme. */
.brand__controls .theme,.theme__track {width:50px;height:24px;}
.brand__controls .theme {position:relative;isolation:isolate;}
.brand__controls .theme::before {content:"";position:absolute;inset:-10px -5px;border-radius:999px;}
.theme__track,:root[data-theme="dark"] .theme__track {border:0;background:#000;box-shadow:none;overflow:hidden;transition:background-color .24s ease,transform .16s ease;}
.theme__track::after {display:none;}
.theme__knob,:root[data-theme="dark"] .theme__knob {top:3px;left:3px;width:18px;height:18px;border:0;background:#fff;box-shadow:none;transform:translateX(0);transition:transform .36s cubic-bezier(.22,1,.36,1),background-color .24s ease;}
:root[data-theme="dark"] .theme__track {background:#fff;}
:root[data-theme="dark"] .theme__knob {background:#000;transform:translateX(26px);}
.theme:active .theme__track {transform:scale(.96);}
.theme:focus-visible .theme__track {filter:none;box-shadow:0 0 0 3px var(--panel),0 0 0 5px var(--ink);}
@media (prefers-reduced-motion:reduce) {.theme__track,.theme__knob {transition:none!important;}}
.page-scroller {display:contents;}
@media (max-width:700px) {
  .brand__controls .theme,.theme__track {width:44px;height:22px;}
  .theme__knob,:root[data-theme="dark"] .theme__knob {width:16px;height:16px;}
  :root[data-theme="dark"] .theme__knob {transform:translateX(22px);}
  html {height:auto;overflow-y:auto;overflow-x:clip;background:var(--browser-canvas);}
  body {height:auto;min-height:100dvh;overflow-y:visible;overflow-x:clip;background:var(--browser-canvas);}
  body::before {display:none;}
  /* Native document scrolling is preserved. */
  .page-scroller {display:flex;flex-direction:column;position:relative;min-height:100dvh;overflow:visible;clip-path:none;background:var(--bg) url("../assets/pattern.svg") 0 0 / 200px 200px;}
  :root[data-theme="dark"] .page-scroller {background-image:url("../assets/pattern-dark.svg");}
  body[data-page] #stage {margin-top:54px;}
  body:has(dialog[open],.modal:not([hidden])),body.mobile-menu-open {overflow:hidden;}
  :root:has(.photo-viewer[open]) {--browser-canvas:#111;background:#111;color-scheme:dark;}
  body:has(.photo-viewer[open]) {background:#111;}
  .photo-viewer::backdrop {inset:-2px;background:#111d;}
}

@media (max-width:700px) {
  .brand__controls {top:0;height:44px;align-items:center;}
}

/* Alert strokes follow the text color; heading icons scale with the label. */
.help-alert svg {stroke-width:2.2;}
.has-help>.help-alert {font-size:inherit;color:inherit;--alert-size:clamp(20px,.75em,32px);width:calc(var(--alert-size) + 6px);height:calc(var(--alert-size) + 6px);}
.has-help>.help-alert svg {width:var(--alert-size);height:var(--alert-size);}

/* Keep the opaque header in its own stable layer instead of masking the page. */
@media (max-width:700px) {
  .header {transform:translateZ(0);backface-visibility:hidden;}
  .header__shape,:root[data-theme="dark"] .header__shape {filter:none;transform:translateZ(0);backface-visibility:hidden;}
}

/* Keep the header in the document's paint tree for translucent in-app chrome.
   Its negative margin preserves the page's existing vertical positions. */
@media (max-width:700px) {
  .header {position:sticky;top:0;flex:none;margin-bottom:-44px;background:transparent;transform:none;}
  .header::before {position:absolute;inset:auto 0 17px;height:calc(100lvh + 27px);background:var(--browser-canvas);}
}

/* Clip only above the viewport, not below the header. Its opaque 44px height
   hides paint latency instead of exposing a white gap beneath its lower edge. */
@media (max-width:700px) {
  @supports(animation-timeline:scroll(root block)) {
    .page-scroller {clip-path:inset(20px 0 0);animation:browser-canvas-edge linear both!important;animation-timeline:scroll(root block)!important;}
  }
}
@keyframes browser-canvas-edge {
  from {clip-path:inset(20px 0 0);}
  to {clip-path:inset(calc(var(--browser-edge-travel,0px) + 20px) 0 0);}
}

/* Reserve 20px under the solid header for asynchronous WebKit scrolling.
   A stationary wallpaper underlay keeps its rounded corners filled if paint lags. */
@media (max-width:700px) {
  body {position:relative;isolation:isolate;}
  body::before {display:block;content:"";position:fixed;inset:27px 0 -100lvh;z-index:-1;pointer-events:none;background:var(--bg) url("../assets/pattern.svg") 0 -27px / 200px 200px;}
  :root[data-theme="dark"] body::before {background-image:url("../assets/pattern-dark.svg");}
}

/* Lock the viewport, not the sticky header's ancestor, when an overlay opens. */
@media (max-width:700px) {
  html:has(body.mobile-menu-open,dialog[open],.modal:not([hidden])) {overflow-y:hidden;}
  body.mobile-menu-open,body:has(dialog[open],.modal:not([hidden])) {overflow-y:visible;overflow-x:clip;}
}

/* Quiet gray hints and no focus rings around site objects. */
.help-alert,.has-help>.help-alert,.office-feature .help-alert,#dialog .help-alert {color:var(--ink-3)!important;}
:root body :focus,:root body :focus-visible,#dialog :focus,#dialog :focus-visible {outline:none!important;outline-offset:0!important;}
.theme:focus-visible .theme__track,.rent-slider__thumb:focus-visible {box-shadow:none!important;}
@media (max-width:700px) {
  .brand__logo,.brand__logo * {user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;}
  :root:is([data-browser="yandex"],[data-browser="safari"]) .page-scroller {animation:none!important;clip-path:none!important;}
  .page-scroller {padding-bottom:0;}
}
@media (min-width:701px) and (max-width:1100px) {
  :root {--rail-width:clamp(250px,32vw,330px);}
  .brand {padding:22px;width:var(--rail-width);gap:12px;}
  .brand__logo img {width:clamp(170px,22vw,230px);}
}
@media (min-width:701px) and (max-width:1100px) {
  .brand__logo img {width:calc(var(--rail-width) - 110px);}
  .find-lead,.showcase-head {display:block;}
  .find-lead .office-select,.showcase-head .office-select {width:100%;max-width:100%;margin-top:16px;}
  .site-bottom .rent-slider,body[data-page="masters"] .site-bottom .rent-slider {width:calc(var(--rail-width) * .68);}
  .site-bottom .rent-slider__label {font-size:11px;}
  .site-bottom .foot {padding-right:42px;}
  .foot__links {grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:6px 10px;}
  .foot__links a {font-size:9px;white-space:normal;overflow-wrap:anywhere;}
  .foot__copy,.foot__copy a,.foot__copy span {font-size:9px;}
}

/* Paint the browser canvas itself, instead of adding empty document height.
   The upper half stays solid for the header; the lower canvas repeats wallpaper. */
@media (max-width:700px) {
  :root,:root[data-theme="dark"] {
    background-color:var(--browser-canvas);
    background-image:linear-gradient(var(--browser-canvas),var(--browser-canvas)),url("../assets/pattern.svg");
    background-size:100% 50lvh,200px 200px;
    background-position:0 0,0 0;
    background-repeat:no-repeat,repeat;
    background-attachment:fixed,fixed;
  }
  :root[data-theme="dark"] {background-image:linear-gradient(var(--browser-canvas),var(--browser-canvas)),url("../assets/pattern-dark.svg");}
  :root:has(.photo-viewer[open]) {background-image:none;}
}

/* Empty states need breathing room after tables, headings and filter controls. */
.office-feature .empty:not(:first-child),.table-wrap+.empty {margin-block-start:16px;}

/* WebKit derives its under-page color from BODY, not its background image. */
@media (max-width:700px) {
  body {--under-page-color:#f4f4f2;background-color:var(--under-page-color);}
  :root[data-theme="dark"] body {--under-page-color:#1b1b1e;background-color:var(--under-page-color);}
  /* Border-image overhang is ink overflow: it does not add scrollable height. */
  body::after {content:"";position:absolute;inset:auto 0 0;height:0;z-index:-1;pointer-events:none;border:0 solid transparent;border-image:url("../assets/pattern.svg") 0 0 200 0 / 0 0 200px 0 / 0 0 200px 0 repeat;}
  :root[data-theme="dark"] body::after {border-image-source:url("../assets/pattern-dark.svg");}
  body:has(.photo-viewer[open]) {background-color:#111;}
  body:has(.photo-viewer[open])::after {display:none;}
}

.master-profile__facts {display:grid;grid-template-columns:max-content 1fr;column-gap:22px;color:var(--ink-2);font-size:15px;}
.master-profile__facts .master__city {grid-column:1/-1;}
@media (max-width:700px) {
  .master-profile {position:relative;min-height:200px;}
  .master-profile__facts {position:absolute;left:0;top:154px;width:108px;display:grid;grid-template-columns:max-content max-content;gap:3px 6px;font-size:12px;line-height:1.5;}
  .master-profile__facts .master__city {grid-column:auto;margin:0;font-size:12px;white-space:nowrap;}
  .master-profile__facts .master__age {white-space:nowrap;}
  .master-profile__facts .master__exp {grid-column:1/-1;font-size:12px;}
  .master-profile .master__bio {margin-top:8px;}
}

/* Share the lower profile row: facts under the photo, booking beside them. */
@media (max-width:700px) {
  .master-profile {grid-template-rows:max-content minmax(0,1fr) auto;row-gap:10px;min-height:0;}
  .master-profile__copy {display:contents;}
  .master-profile .master__photo {grid-column:1;grid-row:1/3;}
  .master-profile .master__name {grid-column:2;grid-row:1;}
  .master-profile .master__bio {grid-column:2;grid-row:2;margin:0;}
  .master-profile__facts {position:static;grid-column:1;grid-row:3;width:auto;margin-top:1px;align-self:start;}
  .master-profile__action {grid-column:2;grid-row:3;margin:0;align-self:start;}
}

/* Landscape tablets need the whole content panel for paired gallery cards. */
@media (min-width:701px) and (max-width:1100px) {
  .master {grid-template-columns:minmax(0,1fr);}
  .master-profile {display:grid;grid-template-columns:minmax(140px,35%) minmax(0,1fr);gap:22px;}
  .master-profile .master__photo {width:100%;}
  .master-profile .master__name {margin-top:0;}
  .master .works {grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0;}
}

/* Compact desktop proportions on tablets, in either orientation. */
@media (min-width:701px) and (max-width:1366px) {
  :root {--rail-width:clamp(220px,28vw,330px);}
  .brand {width:var(--rail-width);padding:22px;gap:12px;}
  .brand__logo img {width:calc(var(--rail-width) - 110px);}
  .rail,body.admin-session .rail {right:20px;top:var(--desktop-menu-top,154px);}
  body[data-page] #stage {left:24px;right:calc(var(--rail-width) + 48px);}
  .site-bottom .foot,body[data-page="masters"] .site-bottom .foot,
  .site-bottom .rent-slider,body[data-page="masters"] .site-bottom .rent-slider {right:20px;}
  .master {grid-template-columns:minmax(0,1fr);}
  .master-profile {display:grid;grid-template-columns:minmax(110px,35%) minmax(0,1fr);gap:18px;}
  .master-profile .master__photo {width:100%;}
  .master-profile .master__name {margin-top:0;}
  .master .works {grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0;}
  .office-feature .window {padding:24px;}
  .office-feature .find-cards {grid-template-columns:1fr;}
  .office-feature .form-grid,.office-feature .booking-layout {grid-template-columns:minmax(0,1fr);}
  .office-feature .cabinet .summary-cards {grid-template-columns:repeat(2,minmax(0,1fr));}
  .office-feature .cabinet .summary-cards .stat:last-child {grid-column:1/-1;}
  .office-feature .cabinet .tabs {flex-wrap:wrap;gap:12px 18px;}
  .office-feature .interior-dossier {display:block;}
  .office-feature .interior-dossier .chrome {margin-top:16px;}
  .office-feature .find-bottom {flex-wrap:wrap;gap:16px;}
}
.cabinet-heading h2 {margin-top:0;}
.cabinet-email {overflow-wrap:anywhere;text-transform:none;}
@media (min-width:701px) and (max-width:1366px) {
  :root {--rail-width:clamp(250px,28vw,330px);}
  .rail .login.login--user,.rail .login.login--guest,
  body.admin-session .rail .login.login--user,
  .site-bottom .rent-slider,body[data-page="masters"] .site-bottom .rent-slider {width:var(--rail-width);}
  .site-bottom .rent-slider__label {font-size:11px;}
  .stage:not(.stage--bare)>.stage__inner {padding:24px;}
  .office-feature .window {padding:16px;}
}
@media (min-width:701px) and (max-width:1366px) {
  .site-bottom .foot {padding:14px 32px 14px 14px;}
  .foot__links {grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:6px 8px;}
  .foot__links a {font-size:9px;white-space:normal;overflow-wrap:normal;}
}
.cabinet-email code {font:inherit;}

/* Окна на переднем плане (десктоп и планшет).
   Тень шапки (ABOUT + логотип) уходит под основные окна: сцена с разделами,
   меню и панель входа лежат выше шапки и не затеняются ею сверху.
   Панель входа — чисто белая, без градиента, с тонкой серой рамкой и со скруглением как у меню
   (дуга r=26 в menuShapePath визуально равна border-radius ≈ 22px). */
@media (min-width:701px) {
  #stage,.rail {z-index:46;}
  .rail .login,.rail .login.login--guest,.rail .login.login--user,
  body.admin-session .rail .login,body.admin-session .rail .login.login--user {
    background:var(--panel);
    border:1px solid #c5c5c5;
    border-radius:22px;
    box-shadow:0 8px 16px rgba(0,0,0,.11),0 1px 3px rgba(0,0,0,.06);
  }
  :root[data-theme="dark"] .rail .login {border-color:var(--panel-edge);}
  /* Тень меню — как у шапки (0 18px 34px), но с меньшим радиусом распространения. */
  .menu__shape {filter:drop-shadow(0 8px 16px rgba(0,0,0,.11)) drop-shadow(0 1px 3px rgba(0,0,0,.06));}
  :root[data-theme="dark"] .menu__shape {filter:drop-shadow(0 8px 16px rgba(0,0,0,.45)) drop-shadow(0 1px 3px rgba(0,0,0,.3));}
  :root[data-theme="dark"] .rail .login {box-shadow:0 8px 16px rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.3)!important;}
}

/* Private Club: цены участников, фото, «Как попасть». */
.club-offer {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.75fr);gap:clamp(20px,3vw,48px);align-items:start;margin-top:22px;}
.club-offer h2 {margin:0 0 22px;font-size:clamp(20px,1.8vw,28px);font-weight:400;line-height:1.2;letter-spacing:-.01em;}
.club-offer__photo {display:block;width:100%;aspect-ratio:1128/1190;height:auto;object-fit:cover;border-radius:0;margin-top:8px;}
.club-prices {overflow:hidden;border:1px solid var(--panel-edge);border-radius:14px;background:var(--panel);box-shadow:0 1px 3px #0000000d;}
.club-prices__row {display:grid;grid-template-columns:1.25fr 1fr 1fr;align-items:center;gap:10px;padding:16px 20px;border-top:1px solid var(--line,#e5e5e5);font-size:clamp(13px,1vw,15px);}
.club-prices__row>:not(:first-child) {text-align:center;}
.club-prices__row--head {border-top:0;padding-block:14px;background:linear-gradient(#fafafa,#ececec);font-size:clamp(12px,.9vw,14px);}
.club-prices__row--head b {font-weight:600;}
.club-prices__row>b {font-weight:600;}
.club-prices__old {position:relative;justify-self:center;text-decoration:none;color:var(--ink);font-weight:600;}
.club-prices__old::after {content:"";position:absolute;left:-8%;right:-8%;top:50%;height:2px;border-radius:2px;background:#e3261b;transform:rotate(-10deg);}
.club-join {margin-top:clamp(28px,4vw,56px);}
.club-join h3 {margin:0 0 20px;font-size:clamp(20px,1.8vw,28px);font-weight:400;line-height:1.2;}
:root[data-theme="dark"] .club-prices__row--head {background:linear-gradient(#2e2e2e,#262626);}
@media (max-width:700px) {
  .club-offer {grid-template-columns:1fr;}
  .club-offer__photo {order:-1;max-height:340px;}
  .club-prices__row {padding:13px 12px;grid-template-columns:1.2fr 1fr 1fr;}
}

/* Выбор офиса — такой же «бабл», как карточки «Адрес / Время / Связь»:
   серая карточка со скруглением 18px, подпись капсом сверху, значение ниже. */
.office-feature .space-picker {position:relative;display:block;width:min(100%,320px);box-sizing:border-box;padding:0;border:1px solid var(--panel-edge);border-radius:18px;background:var(--panel-2);white-space:normal;}
.office-feature .space-picker__label {position:absolute;left:20px;top:14px;z-index:1;font-size:10px;line-height:1.4;letter-spacing:.08em;color:var(--muted);pointer-events:none;}
.office-feature .space-picker .office-select,
:root[data-theme="dark"] .office-feature .space-picker .office-select {position:relative;display:block;width:100%;max-width:none;min-height:0;margin:0;padding:34px 44px 14px 20px;border:0;border-radius:17px;background:transparent;box-shadow:none;color:var(--ink);font-size:20px;font-weight:500;line-height:1.3;text-align:left;text-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.office-feature .space-picker .office-select::after {right:20px;top:58%;}
.office-feature .space-picker:has(.office-select:focus-visible) {border-color:var(--ink-3);}
.find-lead .space-picker {align-self:flex-end;}
.office-feature .find-bottom {justify-content:flex-end;}
.office-picker--space,.office-picker--space>button {border-radius:0;}
.office-picker--space {border-radius:18px!important;}
.office-picker__note {margin-left:8px;font-size:12px;font-style:normal;color:var(--muted);}
.office-picker--space>button:not(:disabled) {color:var(--ink)!important;}
.office-picker--space>button:disabled {opacity:1;color:var(--ink-3)!important;cursor:default;}
@media (max-width:700px) {
  .office-feature .space-picker {width:100%;}
}

/* Аренда: выбор города перед бронированием. */
.city-choice {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:min(56vh,520px);padding:24px 0 48px;text-align:center;}
.city-choice h2 {margin:0 0 34px;font-size:clamp(20px,1.8vw,28px);font-weight:400;line-height:1.25;}
.city-choice__list {display:flex;flex-direction:column;align-items:center;gap:22px;}
.city-choice__row {position:relative;display:flex;align-items:center;}
.city-choice__btn {width:clamp(200px,17vw,240px);min-height:66px;padding:12px 20px;border:1px solid #b9b9b9;border-radius:14px;background:linear-gradient(#fff,#f2f2f2);box-shadow:inset 0 1px #fff,0 2px 6px #0000002e;color:var(--ink);font:inherit;font-size:clamp(17px,1.4vw,21px);cursor:pointer;transition:transform .12s ease,box-shadow .12s ease;}
.city-choice__btn:hover:not(:disabled) {box-shadow:inset 0 1px #fff,0 4px 10px #00000033;}
.city-choice__btn:active:not(:disabled) {transform:translateY(1px);box-shadow:inset 0 1px 3px #0002;}
.city-choice__btn:focus-visible {outline:2px solid var(--ink-2);outline-offset:3px;}
.city-choice__btn:disabled {border-color:#e2e2e2;background:#f7f7f7;box-shadow:none;color:#9a9a9a;cursor:default;}
.city-choice__soon {position:absolute;left:calc(100% + 18px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-start;text-align:left;white-space:nowrap;color:#9a9a9a;}
.city-choice__soon b {font-size:clamp(17px,1.4vw,21px);font-weight:400;line-height:1.1;}
.city-choice__soon small {font-size:11px;}
:root[data-theme="dark"] .city-choice__btn {border-color:var(--panel-edge);background:var(--control-fill);box-shadow:var(--control-shadow);color:var(--ink);}
:root[data-theme="dark"] .city-choice__btn:disabled {background:var(--panel-2);box-shadow:none;color:var(--ink-3);}
@media (max-width:700px) {
  .city-choice {min-height:0;padding:28px 0 36px;}
  .city-choice__row {flex-direction:column;}
  .city-choice__soon {position:static;transform:none;align-items:center;text-align:center;margin-top:8px;}
}
/* Админка: вкладки городов. */
.admin-city-tabs {margin:4px 0 14px;}
.admin-city-tabs button[aria-selected="true"] {color:var(--ink)!important;text-shadow:none!important;}
.city-choice__btn:disabled {opacity:1;}

/* Master activity ranking shares the site's quiet monochrome chrome. */
.ranking-launch {position:fixed;left:24px;bottom:24px;z-index:36;display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--panel-edge,#ccc);border-radius:18px;background:var(--control-fill);color:var(--ink);font-size:13px;text-decoration:none;}
.ranking-head {max-width:620px;}
.ranking-head p {line-height:1.6;}
.ranking-list {list-style:none;padding:0;margin:28px 0;display:grid;gap:12px;}
.ranking-row {display:grid;grid-template-columns:34px minmax(0,1fr) 66px;gap:14px;align-items:center;padding:18px;border:1px solid var(--panel-edge,#ddd);border-radius:20px;background:var(--panel);}
.ranking-position {font-size:22px;color:var(--ink-3);font-variant-numeric:tabular-nums;}
.ranking-name {display:flex;gap:8px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere;font-size:18px;}
.ranking-crown {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.ranking-resident {font-size:11px;padding:3px 7px;border:1px solid var(--ink-3);border-radius:99px;}
.ranking-counts {margin:8px 0;font-size:12px;}
.ranking-track {height:6px;background:var(--panel-2);border-radius:8px;overflow:hidden;}
.ranking-track span {height:100%;display:block;border-radius:inherit;background:var(--ink);}
.ranking-score {text-align:right;font-size:20px;font-variant-numeric:tabular-nums;}
.ranking-score small {display:block;font-size:11px;font-weight:400;color:var(--ink-3);}
.ranking-note {line-height:1.6;}
.ranking-visibility {margin:20px 0;}
.master__name {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.master__name>span {min-width:0;}
.master-share {display:grid;place-items:center;flex:none;width:36px;height:36px;padding:7px;border:1px solid var(--panel-edge,#ddd);border-radius:50%;background:var(--control-fill);color:var(--ink);cursor:pointer;}
.master-share svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
@media (max-width:700px) {
  .ranking-launch {left:14px;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 86px);font-size:12px;padding:10px 12px;}
  .ranking-row {padding:14px 10px;gap:8px;grid-template-columns:24px minmax(0,1fr) 52px;}
  .ranking-name {font-size:16px;}
  .master-share {width:32px;height:32px;padding:6px;}
}
@media (prefers-reduced-motion:no-preference) {.master-share {transition:transform .18s ease;}.master-share:active {transform:scale(.94);}}

/* Compact editorial standings: identity, membership and completed sessions. */
.ranking-heading {display:flex;justify-content:space-between;gap:16px;padding:0 16px 14px 102px;color:var(--ink-3);font-size:12px;border-bottom:1px solid var(--panel-edge);}
.ranking-list--compact {margin:0;gap:0;}
.ranking-list--compact .ranking-row {grid-template-columns:30px 46px minmax(0,1fr) 64px;gap:14px;padding:18px 10px;border:0;border-bottom:1px solid var(--panel-edge);border-radius:0;background:transparent;}
.ranking-list--compact .ranking-position {font-size:17px;align-self:center;}
.ranking-avatar {display:grid;place-items:center;width:46px;height:46px;overflow:hidden;border-radius:50%;background:var(--control-fill);color:var(--ink-2);font-size:15px;font-weight:600;border:1px solid var(--panel-edge);}
.ranking-avatar img {width:100%;height:100%;object-fit:cover;}
.ranking-list--compact .ranking-name {font-size:16px;font-weight:500;gap:7px;}
.ranking-meta {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:6px;font-size:12px;color:var(--ink-2);}
.ranking-meta .ranking-resident {font-size:10px;border-color:var(--panel-edge);font-weight:400;padding:3px 7px;}
.ranking-meta .ranking-resident.is-resident {background:var(--ink);color:var(--panel);border-color:var(--ink);}
.ranking-sessions {text-align:right;font-size:22px;line-height:1.1;font-weight:500;font-variant-numeric:tabular-nums;}
.ranking-sessions small {display:block;font-size:10px;color:var(--ink-3);font-weight:400;margin-top:5px;}
.ranking-launch {transform:none;}
.ranking-users {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.profile-resident-crown {width:16px;height:16px;display:inline-block;vertical-align:middle;margin-left:5px;fill:none;stroke:currentColor;stroke-width:1.7;filter:none;}
.master-share {width:32px;height:32px;padding:7px;border-radius:50%;background:var(--panel);box-shadow:none;border-color:var(--panel-edge);}
.master-share svg {width:17px;height:17px;stroke-width:1.8;}
.payment-sheet {width:min(100%,540px);margin:0 auto;border:0;border-radius:24px;padding:28px;background:var(--panel);box-shadow:none;}
.payment-sheet__header {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-bottom:1px solid var(--panel-edge);padding-bottom:20px;}
.payment-sheet__header .eyebrow {font-size:11px;}
.payment-status {font-size:11px;line-height:1.3;color:var(--ink-2);border:1px solid var(--panel-edge);border-radius:99px;padding:6px 10px;}
.payment-sheet__summary {padding:26px 0 22px;}
.payment-sheet__summary h2 {font-size:clamp(34px,4vw,48px);font-weight:500;letter-spacing:-.03em;margin:0;}
.payment-sheet__summary p {font-size:16px;margin:8px 0 0;color:var(--ink-2);}
.payment-sheet__actions {display:grid;gap:12px;}
.payment-sheet__actions>p {margin:0 0 4px;line-height:1.5;}
.payment-sheet__actions>.chrome {width:100%;justify-content:center;}
.payment-sheet__actions .payment-refresh {background:var(--control-fill);color:var(--ink);font-size:13px;min-height:42px;}
.payment-sheet__note {margin:22px 0 0;padding-top:18px;border-top:1px solid var(--panel-edge);font-size:12px;line-height:1.6;}
.club-offer {grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr);gap:28px;align-items:stretch;margin-top:28px;}
.club-offer__prices {display:flex;flex-direction:column;min-width:0;}
.club-offer h2 {font-size:clamp(22px,2vw,30px);margin:0 0 24px;max-width:24ch;}
.club-offer__frame {margin:0;border:1px solid var(--panel-edge);border-radius:22px;padding:8px;background:transparent;display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.club-offer__photo {margin:0;border-radius:15px;width:100%;height:100%;min-height:260px;aspect-ratio:auto;object-fit:cover;flex:1;}
.club-offer__frame figcaption {padding:12px 8px 4px;font-size:10px;color:var(--ink-3);letter-spacing:.04em;}
.club-join {margin:26px 0 0;padding-top:24px;border-top:0;}
.club-join h3 {font-size:21px;margin:0 0 6px;}
.club-join p {margin:0 0 18px;color:var(--ink-2);font-size:15px;}
.club-join .chrome {max-width:100%;}
.profile-avatar-picker {position:relative;display:flex;align-items:center;gap:18px;padding:18px;border:1px dashed var(--panel-edge);border-radius:20px;background:var(--panel-2);margin-bottom:24px;cursor:pointer;}
.profile-avatar-preview {display:grid;place-items:center;flex:none;width:64px;height:64px;border-radius:50%;overflow:hidden;background:var(--control-fill);font-size:24px;}
.profile-avatar-preview img {width:100%;height:100%;object-fit:cover;}
.profile-avatar-picker b {font-size:15px;font-weight:500;}
.profile-avatar-picker small {display:block;color:var(--ink-3);font-size:11px;margin-top:6px;}
.profile-avatar-picker input[type=file] {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
@media (max-width:1100px) {
 .club-offer {grid-template-columns:1fr;}
 .club-offer__frame {max-width:100%;height:300px;}
 .club-offer__photo {min-height:0;}
 .club-join {margin-top:22px;}
}
@media (max-width:700px) {
 .ranking-launch {left:5vw;transform:none;}
 .ranking-heading {padding-left:80px;}
 .ranking-list--compact .ranking-row {grid-template-columns:20px 38px minmax(0,1fr) 44px;gap:9px;padding:16px 0;}
 .ranking-avatar {width:38px;height:38px;font-size:12px;}
 .ranking-list--compact .ranking-name {font-size:14px;}
 .ranking-meta {gap:6px;font-size:11px;}
 .ranking-sessions {font-size:20px;}
 .payment-sheet {padding:20px;border-radius:20px;}
 .payment-sheet__header {gap:10px;}
 .payment-sheet__summary {padding:24px 0;}
 .club-offer {gap:22px;}
 .club-offer__frame {height:340px;}
 .profile-avatar-picker {padding:14px;gap:12px;}
}

/* Keep the ranking launcher above the full-screen stage so it receives clicks. */
.ranking-launch {z-index:56;pointer-events:auto;}
.mobile-menu-open .ranking-launch {visibility:hidden;}
.ranking-launch>* {pointer-events:none;}
.ranking-heading {justify-content:flex-end;padding-left:0;}
.ranking-list--compact {border-radius:0;overflow:visible;}
a.ranking-row {color:var(--ink);text-decoration:none;cursor:pointer;}
a.ranking-row:hover {opacity:1;background:color-mix(in srgb,var(--ink) 7%,transparent);}
body[data-page="ranking"] #stage,body[data-page="profile"] #stage {border-radius:30px;overflow:hidden;}
body[data-page="ranking"] .office-feature>.window,body[data-page="profile"] .office-feature>.window {border-radius:24px;overflow:visible;}
.registered-profile {display:grid;grid-template-columns:140px minmax(0,1fr);gap:28px;max-width:650px;align-items:start;}
.registered-profile__avatar {display:grid;place-items:center;aspect-ratio:1;border-radius:22px;overflow:hidden;background:var(--control-fill);font-size:36px;color:var(--ink-2);}
.registered-profile__avatar img {width:100%;height:100%;object-fit:cover;}
.registered-profile__title {display:flex;align-items:center;gap:10px;}
.registered-profile__title h2 {margin:0;overflow-wrap:anywhere;}
.registered-profile__bio {white-space:pre-line;line-height:1.6;}
@media (max-width:700px) {
 body[data-page="ranking"] #stage,body[data-page="profile"] #stage {overflow:visible;border-radius:0;}
 .registered-profile {grid-template-columns:82px minmax(0,1fr);gap:16px;}
 .registered-profile__avatar {border-radius:16px;font-size:26px;}
 .registered-profile__title h2 {font-size:20px;}
}
@media (max-width:700px) {
 body:is([data-page="ranking"],[data-page="profile"]) .window-head {flex-wrap:wrap;gap:10px;}
 body:is([data-page="ranking"],[data-page="profile"]) .window-head .back {margin-left:0;}
}

/* Allow the back control to fit inside the header without clipping its edge. */
body:is([data-page="ranking"],[data-page="profile"]) .window-head {box-sizing:border-box;max-width:100%;width:auto;flex-wrap:wrap;overflow:visible;}
body:is([data-page="ranking"],[data-page="profile"]) .window-head h1 {min-width:0;flex:1;}
body:is([data-page="ranking"],[data-page="profile"]) .window-head .back {flex-shrink:0;margin-right:4px;}
.ranking-list--compact>li:last-child .ranking-row {border-bottom:0;}

.master__name>span {display:inline-flex;align-items:center;column-gap:6px;}
.master__name .profile-resident-crown {display:block;flex:none;margin-left:0;align-self:center;}

.who__name .account-resident-crown {width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:none;}
.who__text small {display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.rail .who__name,.mobile-menu-open .who__name {display:flex;align-items:center;justify-content:flex-start;gap:6px;min-width:0;}
.who__label {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.ranking-launch.chrome {background:var(--panel);border:1px solid #c5c5c5;border-radius:22px;box-shadow:0 8px 16px rgba(0,0,0,.11),0 1px 3px rgba(0,0,0,.06);font-size:clamp(15px,1.35vw,19px);font-weight:400;line-height:1.2;}
:root[data-theme="dark"] .ranking-launch.chrome {border-color:var(--panel-edge);box-shadow:0 8px 16px #0007,0 1px 3px #0005;}

.master__name .master-share {display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;line-height:0;}
.master__name .master-share svg {display:block;flex:none;margin:0;transform:translateY(-.5px);}

/* Consistent controls for master discovery and portfolio editing. */
.ranking-tools {display:grid;grid-template-columns:minmax(180px,1fr) 150px 170px;gap:16px;margin-bottom:20px;align-items:end;}
.ranking-tools .field {margin:0;min-width:0;}
.ranking-list>li[hidden],#ranking-empty[hidden] {display:none;}
.profile-gallery {margin-block:32px;padding-block:24px;border-top:1px solid var(--panel-edge);border-bottom:1px solid var(--panel-edge);}
.gallery-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.gallery-heading h3 {margin:0;}
.gallery-upload {position:relative;cursor:pointer;overflow:hidden;}
.gallery-upload input {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
.gallery-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:18px;margin:20px 0;}
.gallery-item {min-width:0;padding:12px;border:1px solid var(--panel-edge);border-radius:18px;background:var(--panel);}
.gallery-item>img {width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:10px;}
.gallery-item .field {margin:12px 0;min-width:0;}
.gallery-item input,.gallery-item select {max-width:100%;}
.gallery-actions {display:flex;align-items:center;gap:8px;}
.gallery-actions .chrome {min-width:36px;padding:6px;}
.gallery-delete {margin-left:auto;font-size:12px;color:var(--ink-2);text-decoration:underline;}
.profile-gallery[aria-busy="true"] .gallery-grid {opacity:.6;pointer-events:none;}
.master-placeholder {display:grid;place-items:center;aspect-ratio:4/5;background:var(--control-fill);color:var(--ink-2);font-size:clamp(24px,5vw,48px);border-radius:inherit;}
.polaroid__photo>.master-placeholder {width:100%;height:100%;}
.payment-booking {margin:0 0 24px;display:grid;gap:12px;font-size:13px;}
.payment-booking>div {display:grid;grid-template-columns:65px minmax(0,1fr);gap:12px;}
.payment-booking dt {color:var(--ink-3);}
.payment-booking dd {margin:0;overflow-wrap:anywhere;}
@media (max-width:1000px) {.ranking-tools {grid-template-columns:1fr 1fr;}.ranking-tools>.field:first-child {grid-column:1/-1;}}
@media (max-width:700px) {.gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.gallery-item {padding:9px;}.gallery-heading {align-items:flex-start;}.ranking-tools {gap:12px;}}
@media (max-width:360px) {.gallery-grid {grid-template-columns:1fr;}}
.ranking-list--compact a.ranking-row:hover {color:var(--ink);opacity:1;}
@media (max-width:700px) {
 body[data-page="ranking"] .office-feature .window>.window-head {display:grid;grid-template-columns:16px minmax(0,1fr);width:46%;gap:8px;align-items:start;}
 body[data-page="ranking"] .window-head h1 {font-size:15px;line-height:1.25;white-space:normal;overflow:visible;}
 body[data-page="ranking"] .window-head .back {grid-column:1/-1;justify-self:start;margin:4px 0 0;}
}

/* Image geometry belongs to the card, independent of source pixel dimensions. */
.polaroid__img,.master__photo,.work__img {height:auto;}
/* Quiet, compact ranking filters. */
.ranking-tools {grid-template-columns:minmax(160px,1fr) 132px 148px;gap:12px;max-width:640px;margin-bottom:24px;}
.ranking-tools .field>span {font-size:11px;font-weight:400;line-height:1.3;color:var(--ink-3);}
.office-feature .ranking-tools .field input,
.office-feature .ranking-tools .office-select,
:root[data-theme="dark"] .office-feature .ranking-tools .field input,
:root[data-theme="dark"] .office-feature .ranking-tools .office-select {min-height:36px;padding:8px 11px;border:1px solid var(--panel-edge);border-radius:10px;background:transparent;box-shadow:none!important;font-size:14px;font-weight:400;line-height:1.3;color:var(--ink-2);text-shadow:none;}
.office-feature .ranking-tools .field input:focus {border-color:var(--ink-3);box-shadow:none;}
.ranking-tools .office-select::after {width:5px;height:5px;opacity:.6;}
@media (max-width:1000px) {.ranking-tools {grid-template-columns:1fr 1fr;max-width:100%;}.ranking-tools>.field:first-child {grid-column:1/-1;}}
@media (max-width:700px) {.ranking-tools {gap:10px;}.office-feature .ranking-tools .field input {font-size:16px;}}

.profile-gallery #gallery-save {margin-top:18px;}

.office-feature .find-cards .find-bottom {margin-top:4px;padding-top:0;border-top:0;justify-content:flex-start;align-items:flex-start;}

/* Explicit upload actions replace invisible native file inputs over the panel. */
.file-upload-zone {border:1px dashed var(--panel-edge);transition:background .16s,border-color .16s,box-shadow .16s;cursor:pointer;}
.file-upload-zone:hover,.file-upload-zone.is-choosing {border-color:var(--ink-3);background:color-mix(in srgb,var(--ink) 3%,var(--panel));}
.file-upload-zone.is-dragover {border-style:solid;border-color:var(--ink-2);background:color-mix(in srgb,var(--ink) 7%,var(--panel));box-shadow:inset 0 0 0 1px var(--ink-3);}
.file-upload-zone.is-loading {cursor:progress;opacity:.75;}
.file-upload-zone.has-error,.gallery-status.is-error {color:var(--ink-2);}
.file-upload-copy {min-width:0;flex:1;}
.file-upload-status {display:block;font-size:12px;line-height:1.4;color:var(--ink-2);margin-top:8px;}
.file-upload-status:empty {display:none;}
.profile-avatar-picker #avatar-choose {flex:none;font-size:13px;min-height:38px;padding:8px 14px;}
.profile-avatar-picker input[type=file][hidden],.gallery-dropzone input[hidden] {display:none;}
.gallery-dropzone {display:flex;align-items:center;gap:16px;padding:20px;border-radius:18px;margin-top:18px;background:var(--panel-2);}
.gallery-dropzone>span {flex:1;min-width:0;}
.gallery-dropzone b {display:block;font-size:14px;font-weight:500;}
.gallery-dropzone small {display:block;font-size:12px;color:var(--ink-3);line-height:1.4;margin-top:5px;}
.upload-symbol {width:26px;height:26px;flex:none;fill:none;stroke:var(--ink-2);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.gallery-dropzone .chrome {flex:none;font-size:13px;}
.profile-gallery--tab {margin:0;padding:0;border:0;}
@media (max-width:700px) {
 .profile-avatar-picker {display:grid;grid-template-columns:56px minmax(0,1fr);}
 .profile-avatar-preview {width:56px;height:56px;}
 .profile-avatar-picker #avatar-choose {grid-column:2;justify-self:start;}
 .gallery-dropzone {display:grid;grid-template-columns:24px minmax(0,1fr);padding:16px;gap:12px;}
 .gallery-dropzone .chrome {grid-column:2;justify-self:start;}
}

.polaroid__cap .profile-resident-crown {filter:drop-shadow(0 1px 1px #000a);overflow:visible;}
.polaroid__cap .profile-resident-crown .crown-outline {stroke:#333c;filter:blur(.3px);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;}

/* Keep status labels and account actions optically centred. */
.ranking-meta .ranking-resident {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:23px;padding:4px 9px;line-height:1;}
.who .menu-logout {align-self:center;display:flex;align-items:center;justify-content:center;padding:0;margin-block:0;min-height:0;line-height:1;}
.field--money {position:relative;}
.office-feature .field--money input {padding-right:38px;appearance:textfield;-moz-appearance:textfield;}
.field--money input::-webkit-inner-spin-button,.field--money input::-webkit-outer-spin-button {-webkit-appearance:none;margin:0;}
.field--money .field__currency {position:absolute;right:16px;bottom:13px;pointer-events:none;color:var(--ink-3);line-height:20px;}
@media (max-width:700px) {
  #siteHeader>.ranking-launch.chrome {--ranking-mobile-height:clamp(24px,7.5vw,30px);position:absolute;left:5vw;top:calc((44px + 22.5vw - var(--ranking-mobile-height))/2);bottom:auto;width:max-content;max-width:calc(49vw - 28px);height:var(--ranking-mobile-height);box-sizing:border-box;margin:0;padding:4px 10px;gap:6px;font-size:clamp(12px,3.3vw,14px);line-height:1.1;white-space:nowrap;border-radius:16px;box-shadow:0 2px 6px #00000014;transform:none;z-index:4;}
  #siteHeader>.ranking-launch .ranking-users {width:16px;height:16px;flex:none;}
}
@media (min-width:701px) {
  body[data-page="club"] #office-view>.window:has(>.club-offer) {display:flex;flex-direction:column;min-height:calc(100dvh - var(--desktop-stage-top,100px) - 76px)!important;}
  .club-offer {flex:1;}
  .club-offer__prices .club-join {margin-top:auto;padding-top:24px;}
  .club-offer__prices .club-prices {margin-bottom:26px;}
}

/* Readable documents: clear sections, comfortable measure and aligned requisites. */
.office-feature .legal-document {max-width:780px;white-space:normal;font-size:15px;line-height:1.75;color:var(--ink-2);overflow-wrap:anywhere;}
.legal-document .document-section {margin:0 0 28px;}
.office-feature .legal-document :is(h2,h3) {margin:0 0 12px;font-size:18px;font-weight:500;line-height:1.4;color:var(--ink);letter-spacing:-.01em;}
.office-feature .legal-document p {margin:0 0 12px;line-height:1.75;}
.legal-document p:last-child {margin-bottom:0;}
.document-intro {margin-bottom:28px;}
.document-details {margin:32px 0 0;padding-top:24px;border-top:1px solid var(--panel-edge);}
.document-details dl {margin:0;}
.document-details dl>div {display:grid;grid-template-columns:minmax(150px, .65fr) minmax(0,1.35fr);gap:12px 24px;padding:10px 0;}
.document-details dt {color:var(--ink-3);font-weight:400;}
.document-details dd {margin:0;color:var(--ink);font-variant-numeric:tabular-nums;}
.document-details a {text-decoration:underline;text-decoration-color:var(--panel-edge);text-underline-offset:3px;}
.document-details a:hover {text-decoration-color:currentColor;}
.rules-full__text.legal-document {margin-top:28px;scroll-margin-top:24px;}
@media (max-width:700px) {
  .office-feature .legal-document {font-size:14px;line-height:1.75;}
  .office-feature .legal-document :is(h2,h3) {font-size:17px;}
  .legal-document .document-section {margin-bottom:24px;}
  .document-details dl>div {grid-template-columns:1fr;gap:3px;padding:9px 0;}
  .document-details dt {font-size:12px;}
  .rules-full__text.legal-document {scroll-margin-top:100px;}
}
.office-feature .find-cards .find-bottom {align-self:end;width:100%;}
.office-feature .find-cards .find-bottom .chrome {width:100%;box-sizing:border-box;}
@media (min-width:1101px) {
  .office-feature .find-cards {grid-template-rows:auto auto auto minmax(0,1fr);align-content:stretch;}
}

.office-feature .brand-story__actions>a:not(.chrome) {flex-basis:100%;margin-bottom:14px;}
.office-feature .find-lead .space-picker {width:100%;}
@media (min-width:1101px) {
  .office-feature .find-lead {display:grid;grid-template-columns:minmax(0,1.28fr) minmax(280px,.72fr);gap:18px;}
}

.rules-full summary>.rules-toggle-icon {display:block;flex:none;align-self:center;width:16px;height:16px;overflow:visible;transform-origin:center;}
.rules-full .rules-toggle-icon path {fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;}
.rules-full[open] summary>.rules-toggle-icon {transform:rotate(45deg);}
@media (min-width:701px) {
  .office-feature .brand-story>img {height:100%;min-height:0;max-height:none;align-self:stretch;object-fit:cover;}
}

.office-feature .ranking-tools {grid-template-columns:minmax(0,1fr);}

/* Podium colours follow the actual rank, including when the list is searched. */
.ranking-podium[data-ranking-place="1"] {--podium-tone:#967015;}
.ranking-podium[data-ranking-place="2"] {--podium-tone:#66788e;}
.ranking-podium[data-ranking-place="3"] {--podium-tone:#a46a43;}
body[data-page="ranking"] #stage {container-type:inline-size;}
.ranking-list--compact>.ranking-podium .ranking-row {position:relative;isolation:isolate;background:transparent;box-shadow:none;border-bottom-color:transparent;}
.ranking-list--compact>.ranking-podium .ranking-row::before {content:"";position:absolute;z-index:-1;pointer-events:none;top:0;bottom:-1px;left:calc((100% - 100cqw)/2);width:100cqw;box-sizing:border-box;background:linear-gradient(110deg,color-mix(in srgb,var(--podium-tone) 22%,var(--panel)),color-mix(in srgb,var(--podium-tone) 6%,var(--panel)) 52%,color-mix(in srgb,var(--podium-tone) 16%,var(--panel)));box-shadow:inset 3px 0 var(--podium-tone);border-bottom:1px solid var(--panel-edge);}
.ranking-list--compact>.ranking-podium .ranking-position {color:var(--podium-tone);font-weight:600;}
.ranking-list--compact>.ranking-podium a.ranking-row:hover {background:transparent;}
.ranking-list--compact>.ranking-podium a.ranking-row:hover::before {background:linear-gradient(110deg,color-mix(in srgb,var(--podium-tone) 28%,var(--panel)),color-mix(in srgb,var(--podium-tone) 10%,var(--panel)) 52%,color-mix(in srgb,var(--podium-tone) 22%,var(--panel)));}
:root[data-theme="dark"] .ranking-podium[data-ranking-place="1"] {--podium-tone:#e0bf68;}
:root[data-theme="dark"] .ranking-podium[data-ranking-place="2"] {--podium-tone:#b8c7d9;}
:root[data-theme="dark"] .ranking-podium[data-ranking-place="3"] {--podium-tone:#d6a07b;}
@media (max-width:700px) {
  body[data-page="club"] .window-head h1 {display:block;min-width:0;}
  body[data-page="club"] .window-head .club-heading-tail.has-help {display:inline-flex!important;gap:6px;white-space:nowrap;vertical-align:baseline;}
  body[data-page="club"] .window-head .club-heading-tail>.help-alert {width:20px;height:20px;min-width:20px;min-height:20px;margin:0;padding:1px;}
  body[data-page="club"] .window-head .club-heading-tail>.help-alert svg {width:18px;height:18px;}
}

.club-heading-tail.has-help {white-space:nowrap;}

.ranking-list--compact .ranking-meta {min-height:23px;}
