*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { overflow: hidden; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--studio);
  color: var(--chalk);
  font: 400 var(--t-m)/1.5 var(--font);
  overflow: clip;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.ltr, bdi { unicode-bidi: isolate; direction: ltr; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
:lang(ar), :lang(ar) * { letter-spacing: 0 !important; text-transform: none !important; }
html:lang(ar) body { line-height: 1.58; }
:lang(ar) :is(.btn, .chip, .seg > button, .orb-btn, .orb-chip, .orb-opt, .orb-link, .orb-nav-l, .orb-ro-l, .orb-path a, .orb-path span) { line-height: 1.35; }
.display { font-family: var(--font); font-weight: 600; letter-spacing: -.02em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: rgba(250, 208, 143, .35); color: var(--chalk); }
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
#stage :is(canvas, svg, video) { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
html.orb-nosel, html.orb-nosel * { user-select: none !important; -webkit-user-select: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; }

svg.ic { flex: none; stroke-width: var(--icon-stroke); }
svg.ic * { vector-effect: non-scaling-stroke; }

.glass {
  position: relative;
  background-color: var(--sf-bg);
  background-image: var(--sf-sheen);
  -webkit-backdrop-filter: var(--sf-blur-panel, var(--sf-blur));
  backdrop-filter: var(--sf-blur-panel, var(--sf-blur));
  box-shadow: var(--sf-edge), var(--sf-shadow);
  border-radius: var(--r-md);
  color: var(--sf-ink);
  text-shadow: var(--sf-text-shadow);
}
.glass.milk, .glass.strong { background-color: var(--sf-bg-strong); }
.glass.flat { box-shadow: var(--sf-edge); }
.glass .glass, .glass .no-blur { -webkit-backdrop-filter: none; backdrop-filter: none; }
.glass-solid {
  background: var(--sf-bg-strong);
  box-shadow: var(--sf-edge), var(--sf-shadow);
  border-radius: var(--r-md);
  color: var(--sf-ink);
}
body.lowfx .glass .glass, body.lowfx .glass .no-blur { -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-solid); }
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h-btn); padding: 0 14px;
  border: 0; border-radius: var(--r-sm);
  font: 500 var(--fs-body)/1 var(--font); letter-spacing: 0;
  white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms var(--ease-out), opacity 150ms ease;
}
.btn:active { transform: scale(.96); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
:is(.btn, .chip, .seg > button) > span { color: inherit; }
.btn-primary { color: var(--sf-sel-ink); background: var(--sf-sel-bg); box-shadow: var(--sf-sel-glow); font-weight: 600; padding: 0 18px; }
.btn-primary:active { filter: brightness(.92); }
.btn-signal { color: var(--lamp-ink); background: var(--lamp); font-weight: 600; }
.btn-signal:active { background: var(--lamp-press); }
.btn-glass { color: var(--sf-ink); background: var(--sf-field); }
.btn-ghost { color: var(--sf-ink-2); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { filter: brightness(.94); }
  .btn-signal:hover { background: var(--lamp-press); }
  .btn-glass:hover { background: var(--sf-hover); }
  .btn-ghost:hover { color: var(--sf-ink); background: var(--sf-hover); }
}
.glass .btn-glass { background: var(--sf-field); }
.btn-s { min-height: var(--h-chip); padding: 0 12px; gap: 6px; font-size: var(--fs-label); border-radius: var(--r-sm); }
.btn-s svg { width: 16px; height: 16px; }
.btn-l { min-height: var(--ctl-l); padding: 0 24px; gap: 10px; font-size: 15px; border-radius: var(--r-sm); }
.btn-l svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }

.ibtn {
  position: relative;
  display: inline-grid; place-items: center;
  width: var(--h-icon); height: var(--h-icon); padding: 0; flex: none;
  border: 0; border-radius: var(--r-sm);
  color: var(--sf-ink);
  background: var(--sf-field);
  transition: background-color 150ms ease, transform 150ms var(--ease-out), color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .ibtn:hover { background: var(--sf-hover); } }
.ibtn:active { transform: scale(.96); }
.ibtn[disabled], .ibtn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.ibtn.on, .ibtn[aria-pressed="true"] { color: var(--sf-sel-ink); background: var(--sf-sel-bg); box-shadow: var(--sf-sel-glow); }
.ibtn svg { width: 18px; height: 18px; }
.ibtn-s { width: var(--ctl-s); height: var(--ctl-s); border-radius: var(--r-sm); }
.ibtn-s svg { width: 18px; height: 18px; }
.ibtn-l { width: var(--ctl-l); height: var(--ctl-l); border-radius: var(--r-sm); }
.ibtn-l svg { width: 22px; height: 22px; }
.ibtn-ghost { background: transparent; }
@media (hover: hover) and (pointer: fine) { .ibtn-ghost:hover { background: var(--sf-hover); } }
.ibtn-primary { color: var(--sf-sel-ink); background: var(--sf-sel-bg); }
@media (hover: hover) and (pointer: fine) { .ibtn-primary:hover { background: #D3D1CC; } }
.ibtn .count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 9px;
  font: 600 12px/1 var(--font); font-variant-numeric: tabular-nums;
  color: var(--sf-sel-ink); background: var(--sf-sel-bg);
  box-shadow: 0 0 0 2px var(--sf-bg-strong);
}
.ibtn .count:empty, .ibtn .count[data-n="0"] { display: none; }

.seg {
  position: relative;
  display: inline-flex; align-items: center; gap: 2px;
  padding: var(--ctl-pad);
  border-radius: var(--r-md);
  background: var(--sf-field);
}
.glass > .seg, .glass .seg { background: transparent; }
.seg > button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h-chip); padding: 0 12px;
  border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--sf-ink-2);
  font: 500 var(--fs-body)/1 var(--font);
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms var(--ease-out);
}
.seg > button::after { content: ""; position: absolute; inset: -4px 0; }
@media (hover: hover) and (pointer: fine) { .seg > button:not([aria-pressed="true"]):hover { background: var(--sf-hover); color: var(--sf-ink); } }
.seg > button:active { transform: scale(.96); }
.seg > button[aria-pressed="true"] { color: var(--sf-sel-ink); }
.seg > button[disabled] { opacity: .4; pointer-events: none; }
.seg > button svg { width: 16px; height: 16px; }
.seg > button .n { font-size: var(--fs-label); color: var(--sf-ink-3); font-variant-numeric: tabular-nums; }
.seg > button[aria-pressed="true"] .n { color: var(--sf-sel-ink); opacity: .88; }
.seg > button.icon-only { padding: 0; min-width: var(--h-chip); }
.seg .drop {
  position: absolute; z-index: 0; top: var(--ctl-pad); left: 0; height: calc(100% - 2 * var(--ctl-pad)); width: 0;
  border-radius: var(--r-sm);
  background: var(--sf-sel-bg);
  box-shadow: var(--sf-sel-glow);
  transition: transform 240ms var(--ease-out), width 240ms var(--ease-out), opacity 150ms ease;
  opacity: 0;
}
.seg .drop.ready { opacity: 1; }
.seg.seg-accent > button[aria-pressed="true"] { color: var(--lamp-ink); }
.seg.seg-accent .drop { background: var(--lamp); }
.seg-v { flex-direction: column; align-items: stretch; gap: 2px; }
.seg-v > button { justify-content: flex-start; }
.seg-v .drop { top: 0; left: var(--ctl-pad); width: calc(100% - 2 * var(--ctl-pad)); height: 0; transition: transform 240ms var(--ease-out), height 240ms var(--ease-out), opacity 150ms ease; }
.seg-v > button.icon-only { justify-content: center; }
.seg-s { --ctl-pad: 3px; border-radius: var(--r-sm); }
.seg-s > button, .seg-s .drop { border-radius: 7px; }
.seg-s > button { min-height: calc(var(--h-chip) - 2px); padding: 0 10px; gap: 6px; font-size: var(--fs-label); font-weight: 600; }
.seg-s > button svg { width: 16px; height: 16px; }
.seg-s > button.icon-only { min-width: 34px; }

.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--h-chip); padding: 0 12px;
  border: 0; border-radius: var(--r-sm);
  font: 500 var(--fs-label)/1 var(--font);
  color: var(--sf-ink); background: var(--sf-field);
  transition: background-color 150ms ease, color 150ms ease, transform 150ms var(--ease-out);
  white-space: nowrap;
}
.chip::after { content: ""; position: absolute; inset: -4px 0; }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--sf-hover); } }
.chip:active { transform: scale(.96); }
.chip.on, .chip[aria-pressed="true"] { color: var(--sf-sel-ink); background: var(--sf-sel-bg); box-shadow: var(--sf-sel-glow); }
.chip.avoid { color: var(--resv); background: transparent; box-shadow: inset 0 0 0 1px rgba(238, 154, 105, .5); }
.chip[disabled], .chip[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.chip .x { width: 14px; height: 14px; opacity: .72; margin-inline-end: -3px; }
.chip svg { width: 16px; height: 16px; }
.chip .n, .chip small { font-size: 12px; font-weight: 500; color: var(--sf-ink-3); font-variant-numeric: tabular-nums; }
.chip.on .n, .chip[aria-pressed="true"] .n, .chip[aria-pressed="true"] small { color: var(--sf-sel-ink); opacity: .88; }

.field {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--h-btn); padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--sf-field);
  transition: box-shadow 150ms ease, background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .field:hover { background: var(--sf-hover); } }
.field:focus-within { box-shadow: 0 0 0 2px var(--sf-ink); }
.field.bad, .field:has([aria-invalid="true"]) { box-shadow: 0 0 0 2px var(--resv); }
.field:has(> input:disabled, > select:disabled, > textarea:disabled) { opacity: .5; pointer-events: none; }
.field input, .field select, .field textarea {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 16px; color: var(--sf-ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--sf-ink-3); opacity: 1; }
.field textarea { padding: 11px 0; resize: vertical; min-height: 76px; line-height: 1.5; }
.field:has(textarea) { align-items: flex-start; }
.field:has(textarea) > svg { margin-top: 12px; }
.field > svg { width: 18px; height: 18px; color: var(--sf-ink-3); flex: none; }
.field-select select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field-select select option { color: var(--studio); }
.label { display: block; margin-bottom: 8px; font-size: var(--fs-label); font-weight: 400; color: var(--sf-ink-3); }
.hint { margin-top: 6px; font-size: 12px; color: var(--sf-ink-3); }

.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--sf-ink-2); -webkit-tap-highlight-color: transparent; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.toggle .knob { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--sf-line); transition: background-color 200ms ease; }
.toggle .knob::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--sf-sel-bg); box-shadow: var(--knob-shadow); transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.toggle input:checked + .knob { background: var(--sf-sel-bg); }
.toggle input:checked + .knob::after { transform: translateX(calc(16px * var(--dir))); background: var(--sf-sel-ink); box-shadow: none; }
.toggle input:focus-visible + .knob { outline: 2px solid var(--sf-ink); outline-offset: 2px; }
.toggle input:disabled + .knob { opacity: .5; }
.toggle:has(input:disabled) { cursor: default; }
.toggle:has(input:checked) { color: var(--sf-ink); }

.check, .radio { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 20px; color: var(--sf-ink-2); -webkit-tap-highlight-color: transparent; }
.check input, .radio input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.check .box, .radio .dot { position: relative; flex: none; display: grid; place-items: center; width: 20px; height: 20px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--sf-ink-3); transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms var(--ease-out); }
.check .box { border-radius: var(--r-xs); }
.radio .dot { border-radius: 50%; }
.check .box::after {
  content: ""; width: 14px; height: 14px; background: var(--sf-sel-ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.4 5.8 10 11 4.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.4 5.8 10 11 4.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  transform: scale(.6); opacity: 0; transition: transform 150ms var(--ease-out), opacity 150ms ease;
}
.check .box > svg { display: none; }
.radio .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sf-sel-ink); transform: scale(0); transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .check:hover .box, .radio:hover .dot { box-shadow: inset 0 0 0 1.5px var(--sf-ink-2); } }
.check:active .box, .radio:active .dot { transform: scale(.92); }
.check input:checked + .box, .check input:indeterminate + .box, .radio input:checked + .dot { background: var(--sf-sel-bg); box-shadow: none; }
.check input:checked + .box::after { transform: none; opacity: 1; }
.check input:indeterminate + .box::after { transform: none; opacity: 1; -webkit-mask: linear-gradient(#000 0 0) center / 10px 2px no-repeat; mask: linear-gradient(#000 0 0) center / 10px 2px no-repeat; }
.radio input:checked + .dot::after { transform: scale(1); }
.check input:focus-visible + .box, .radio input:focus-visible + .dot { outline: 2px solid var(--sf-ink); outline-offset: 2px; }
.check input:disabled + .box, .radio input:disabled + .dot { opacity: .45; }
.check:has(input:disabled), .radio:has(input:disabled) { cursor: default; color: var(--sf-ink-3); }
.check:has(input:checked), .radio:has(input:checked) { color: var(--sf-ink); }

.range { --fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sf-ink) 0 var(--fill), var(--sf-line) var(--fill) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 0; border-radius: 50%; background: var(--sf-sel-bg); box-shadow: 0 0 0 4px var(--studio), 0 1px 2px rgba(0, 0, 0, .4); transition: transform 150ms var(--ease-out); }
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--studio), 0 0 0 4px var(--sf-ink); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--sf-line); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--sf-sel-bg); }
.range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--sf-sel-bg); }
.range:disabled { opacity: .45; cursor: default; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0; border-radius: var(--r-xs); font: 500 var(--fs-label)/1 var(--font); white-space: nowrap; background: transparent; color: var(--sf-ink); }
.pill::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--chalk-3); }
.pill.available::before { background: var(--avail); }
.pill.reserved::before { background: transparent; box-shadow: inset 0 0 0 2px var(--resv); }
.pill.sold::before { background: var(--sold); border-radius: 2px; }
.pill.sold { color: var(--sf-ink-2); }
.pill.plain { height: 26px; padding: 0 9px; background: var(--sf-field); font-size: 12px; }
.pill.plain::before { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: var(--fs-body); }
.kv dt { color: var(--sf-ink-3); }
.kv dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; color: var(--sf-ink); font-weight: 500; }

.list-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .list-row:hover { background: var(--sf-hover); } }
.list-row.active { background: var(--sf-hover); box-shadow: inset 2px 0 0 var(--sf-accent); }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { position: sticky; top: 0; z-index: 1; text-align: start; font-size: 12px; font-weight: 400; color: var(--sf-ink-3); padding: 10px 12px; background: var(--sf-bg-strong); border-bottom: 1px solid var(--sf-line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--sf-line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .tbl tbody tr:hover td { background: var(--sf-hover); } }

.tag {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 11px;
  border: 0; border-radius: var(--r-sm);
  font: 500 var(--fs-label)/1 var(--font); white-space: nowrap;
  color: var(--sf-ink); background: var(--sf-chip);
  -webkit-backdrop-filter: var(--sf-blur); backdrop-filter: var(--sf-blur);
  box-shadow: var(--sf-edge), var(--sf-shadow);
  transition: background-color 150ms ease, transform 150ms var(--ease-out);
}
.tag small { font-size: var(--fs-label); font-weight: 500; color: var(--sf-ink-2); font-variant-numeric: tabular-nums; }
.tag .tag-ic { display: grid; place-items: center; flex: none; width: 18px; height: 18px; color: var(--sf-accent); background: none; }
.tag .tag-ic svg { width: 16px; height: 16px; }
.tag.here .tag-ic { color: var(--sf-accent); }
button.tag { cursor: pointer; }
button.tag:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { button.tag:hover { background-color: color-mix(in srgb, var(--sf-chip), var(--sf-ink) 10%); } }
.tag.on { background: var(--sf-sel-bg); color: var(--sf-sel-ink); box-shadow: var(--sf-sel-glow); }
.tag.on small { color: var(--sf-sel-ink); opacity: .88; }
.tag.on .tag-ic { color: var(--sf-sel-ink); }
.pin-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--chalk); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.pin-dot.here { background: var(--lamp); box-shadow: 0 0 0 3px rgba(250, 208, 143, .25); }
.pin-dot.here::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--lamp); opacity: 0; animation: pin-pulse 2.4s var(--ease-out) infinite; }
@keyframes pin-pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.hotspot { position: relative; display: grid; place-items: center; width: var(--h-icon); height: var(--h-icon); padding: 0; border: 0; border-radius: 50%; color: var(--sf-ink); background: var(--sf-chip); -webkit-backdrop-filter: var(--sf-blur); backdrop-filter: var(--sf-blur); box-shadow: var(--sf-edge), var(--sf-shadow); transition: transform 150ms var(--ease-out), background-color 150ms ease; }
.hotspot svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .hotspot:hover { background: rgba(36, 35, 33, .72); } }
.hotspot:active { transform: scale(.96); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--sf-ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font: 600 var(--fs-title)/1.15 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--sf-ink); white-space: nowrap; }
.stat span { font-size: 12px; color: var(--sf-ink-3); }
.stat.l b { font-size: 30px; letter-spacing: -.02em; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md); color: inherit; text-align: start; background: var(--studio-1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: background-color 150ms ease, transform 150ms var(--ease-out); }
.card > img, .card > .card-media { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--studio-2); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.card-body b { font-size: 15px; font-weight: 600; }
.card-body span { font-size: 13px; color: var(--chalk-2); }
@media (hover: hover) and (pointer: fine) { a.card:hover, button.card:hover { background: var(--studio-2); } }
button.card { padding: 0; border: 0; font: inherit; cursor: pointer; }
button.card:active { transform: scale(.98); }

.ibtn-stack { display: inline-flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: var(--r-md); }
.ibtn-stack.row { flex-direction: row; }
.ibtn-stack > .ibtn { background: transparent; color: var(--sf-ink-2); }
@media (hover: hover) and (pointer: fine) { .ibtn-stack > .ibtn:hover { background: var(--sf-hover); color: var(--sf-ink); } }
.ibtn-stack > .ibtn.on { color: var(--sf-sel-ink); background: var(--sf-sel-bg); }
.ibtn-stack > hr { width: 60%; height: 1px; margin: 2px auto; border: 0; background: var(--rule); }
.ibtn-stack.row > hr { width: 1px; height: auto; margin: 6px 2px; }
.peek { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; width: 280px; padding: 8px 14px 8px 8px; border-radius: var(--r-md); color: var(--sf-ink); background: var(--sf-bg-strong); -webkit-backdrop-filter: var(--sf-blur); backdrop-filter: var(--sf-blur); box-shadow: var(--sf-edge), var(--sf-shadow); }
.peek > img, .peek > .peek-media { width: 76px; height: 64px; border-radius: var(--r-sm); object-fit: cover; background: var(--studio-2); }
.peek b { display: block; font: 600 18px/1.2 var(--font); letter-spacing: -.01em; }
.peek small { display: block; margin-top: 2px; font-size: 12px; color: var(--sf-ink-3); }
.peek .row { margin-top: 7px; gap: 8px; }
.peek .price { font-weight: 600; font-variant-numeric: tabular-nums; }
.skeleton { position: relative; overflow: hidden; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.spinner { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .16); border-top-color: var(--lamp); animation: spin .8s linear infinite; vertical-align: middle; }
.spinner.l { width: 32px; height: 32px; border-width: 2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { position: relative; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.progress > i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: var(--lamp); transition: width 320ms var(--ease-out); }
.progress.wait > i { width: 36%; animation: progress-wait 1.3s ease-in-out infinite; }
@keyframes progress-wait { from { left: -36%; } to { left: 100%; } }

.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

.muted { color: var(--chalk-2); }
.faint { color: var(--chalk-3); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.row { display: flex; align-items: center; gap: var(--s-2); }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.grow { flex: 1; min-width: 0; }
.sep { height: 1px; background: var(--rule); margin: var(--s-3) 0; border: 0; }

.calcada { background-color: var(--studio-1); }

.tip { position: relative; }

@media (pointer: coarse) {
  .btn-s::before, .ibtn-s::before, .toggle .knob::before, .check .box::before, .radio .dot::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
  .toggle .knob::before { inset: -10px -4px; }
  .check .box::before, .radio .dot::before { inset: -12px; }
  .range { height: 32px; }
  .range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; }
}

:is(.btn, .ibtn, .chip, .seg > button, .list-row, .tag, .hotspot, .card):focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; box-shadow: none; }
:is([data-surface], .glass, .glass-solid, .modal, .toast, .orb-card, .orb-sheet, .orb-pop) :focus-visible { outline-color: var(--sf-ink); }
:is([data-surface], .glass, .glass-solid, .modal, .orb-card, .orb-sheet, .orb-pop) .muted { color: var(--sf-ink-2); }
:is([data-surface], .glass, .glass-solid, .modal, .orb-card, .orb-sheet, .orb-pop) .faint { color: var(--sf-ink-3); }

@media (forced-colors: active) {
  :focus-visible, .toggle input:focus-visible + .knob, .check input:focus-visible + .box, .radio input:focus-visible + .dot { outline: 2px solid Highlight !important; outline-offset: 2px; }
  .glass, .glass-solid, .btn, .ibtn, .chip, .seg, .field, .toggle .knob, .check .box, .radio .dot, .tag, .peek { border: 1px solid CanvasText; }
  .seg .drop { background: Highlight; forced-color-adjust: none; }
  .toggle input:checked + .knob, .check input:checked + .box, .radio input:checked + .dot { background: Highlight; forced-color-adjust: none; }
}

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