/* Shared by the storefront and all project routes. */
:root {
  --ft-paper: #f4ede3;
  --ft-surface: #fffaf4;
  --ft-ink: #30252a;
  --ft-muted: #685b57;
  --ft-accent: #623241;
  --ft-tint: #eee3dc;
  --ft-dark: #241318;
  --ft-on-dark: #fff1df;
  --ft-focus-on-dark: #ecd8a6;
  --ft-photo-label: rgb(36 19 24 / 84%);
  --ft-disabled-ink: #6e5c60;
  --ft-field-line: #917f79;
  --ft-line: #60464d30;
  --ft-field-radius: 12px;
  --ft-card-radius: 18px;
  --ft-panel-radius: 22px;
  --ft-sheet-radius: 24px;
  --ft-pill: 999px;
  --ft-target: 44px;
  --ft-pad: 28px;
  --ft-control-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ft-ease: cubic-bezier(.2,.78,.22,1);
}
.dialog :is(input, textarea)::placeholder { color: var(--ft-muted); opacity: 1; }
.ft-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}
.ft-quiet, .ft-options > :is(a,button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  min-height: var(--ft-target);
  margin: 0;
  padding: 9px 15px;
  border: 0;
  border-radius: var(--ft-pill);
  background: var(--ft-tint);
  color: var(--ft-accent);
  font: 550 14px/1.4 var(--ft-control-font);
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color .16s ease, scale .16s var(--ft-ease);
}
.ft-quiet:focus-visible, .ft-options > :focus-visible { outline: 2px solid var(--ft-accent); outline-offset: 2px; }
.ft-quiet:active, .ft-options > :active { scale: .98; }
@media (hover:hover) and (pointer:fine) {
  .ft-quiet:hover, .ft-options > :is(a,button):hover { background: #e5d5ce; }
}
@media (max-width:767px) { :root { --ft-pad: 20px; } }
@media (prefers-reduced-motion:reduce) {
  .ft-quiet, .ft-options > :is(a,button) { transition: none; scale: 1; }
}
@media (forced-colors:active) {
  .ft-quiet, .ft-options > :is(a,button) { border: 1px solid ButtonText; }
}

/* The native top layer keeps keyboard focus and modal semantics during presentation. */
.dialog.ft-sheet {
  --sheet-travel:8px; --sheet-scale:.987;
  opacity:0; transform:translateY(max(var(--sheet-travel),calc(var(--pull,0px) + 20px))) scale(var(--sheet-scale));
  transition:opacity .16s ease, transform .22s var(--press-return),
             display .22s allow-discrete, overlay .22s allow-discrete;
}
.dialog.ft-sheet[open] { opacity:1; transform:translateY(var(--pull,0px)); animation:none }
.dialog.ft-sheet[data-pulling] { transition:none }
.dialog.ft-sheet[data-swapping], .dialog.ft-sheet[data-swapping]::backdrop { transition:none }
.dialog.ft-sheet::backdrop {
  background:#1d1119a6; opacity:0;
  transition:opacity .18s ease, display .22s allow-discrete, overlay .22s allow-discrete;
}
.dialog.ft-sheet[open]::backdrop { opacity:1 }
@starting-style {
  .dialog.ft-sheet[open] { opacity:0; transform:translateY(var(--sheet-travel)) scale(var(--sheet-scale)) }
  .dialog.ft-sheet[open]::backdrop { opacity:0 }
}
.sheet-grip { display:none }

@media (max-width:767px) {
  .sheet-grip {
    display:grid; place-items:start center; position:absolute; top:0; left:50%; transform:translateX(-50%);
    width:76px; height:44px; padding-top:9px; touch-action:none; user-select:none; cursor:grab;
  }
  .sheet-grip::before { content:""; width:32px; height:5px; border-radius:999px; background:#63534ef0; box-shadow:0 0 0 1px #fff9efad }
  .sheet-grip:active { cursor:grabbing }
}
@media (prefers-reduced-motion:reduce) {
  .dialog.ft-sheet, .dialog.ft-sheet[open], .dialog.ft-sheet::backdrop { transition:none; animation:none; transform:none; }
}
