/* Nafnouf — after her shop front: white walls, warm lit arches, the black Kufi sign, a black-and-white terrace. */
:root {
  color-scheme: light;
  --paper: #fbf8f3;
  --cream: #f3ece2;
  --card: #ffffff;
  --ink: #1b1819;
  --mute: #6d6561;
  --line: rgba(27, 24, 25, .12);
  --line-strong: rgba(27, 24, 25, .26);
  --brass: #b0844a;
  --free: #2b7a52;
  --free-bg: #e3f1e8;
  --taken: #b3433b;
  --taken-bg: #f8e3e0;
  --prep: #94701a;
  --prep-bg: #f5ecd3;
  --wa: #1f9d55;
  --kufi: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 600; margin: 0; }
.logo { font-family: var(--kufi); font-weight: 700; text-decoration: none; line-height: 1; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px;
  border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease;
}
.top.solid { background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-color: var(--line); }
.top .logo { font-size: 30px; transition: opacity .3s ease; }
.top:not(.solid) .logo { opacity: 0; } /* the sign on the shop front already says it */
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--mute); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a.on { color: var(--ink); border-color: var(--ink); }
.top:not(.solid) nav a { color: var(--ink); text-shadow: 0 1px 10px rgba(255, 255, 255, .9); }

main { min-height: 70vh; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page-top { padding-top: 96px; }

.foot { margin-top: 80px; color: var(--mute); font-size: 14px; }
.foot::before { /* a strip of her black-and-white terrace */
  content: ""; display: block; height: 16px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%) 0 0 / 16px 16px;
}
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 28px 20px 44px; }
.foot-shop { display: grid; gap: 2px; }
.foot .logo { font-size: 36px; color: var(--ink); margin-bottom: 8px; }

/* ---------- intro: her shop front, scrubbed by scroll ---------- */
.intro { position: relative; height: 720svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #efe7dc; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-fallback { position: absolute; inset: 0; background: radial-gradient(30% 40% at 50% 62%, #fff3df, transparent 70%), linear-gradient(#efe7dc, #e6dccf); }
.scene {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px;
  padding: 90px 20px 40px; pointer-events: none; text-align: center;
}
.scene:not(.s-gate) { visibility: hidden; opacity: 0; }
.s-gate { align-content: end; gap: 4px; padding-bottom: 26px; }
.gate-line, .scroll-hint { margin: 0; }
.gate-line { padding: 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 8px 24px -12px rgba(60, 40, 20, .4); }
.gate-line { font-size: clamp(16px, 2vw, 20px); font-weight: 500; }
.scroll-hint { font-size: 14px; color: #fff; display: grid; justify-items: center; gap: 6px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); transform-origin: top; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.boqala-card {
  width: min(540px, 90vw); padding: 40px 30px 30px; border-radius: 999px 999px 24px 24px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -30px rgba(60, 40, 20, .35);
}
.spark { /* the four-point star of her sign */
  display: block; width: 22px; height: 22px; margin: 0 auto 6px; background: var(--ink);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.boqala-title { font-family: var(--kufi); font-size: 34px; line-height: 1.3; }
.boqala-sub { margin: 2px 0 0; color: var(--mute); font-size: 15px; }
.verse { margin: 18px 0 0; display: grid; gap: 4px; font-family: var(--kufi); font-weight: 500; font-size: clamp(18px, 2.3vw, 22px); line-height: 1.75; }
.scene-title { font-family: var(--kufi); font-size: clamp(38px, 5.6vw, 60px); line-height: 1.25; text-shadow: 0 0 24px #fff, 0 0 6px #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; place-items: center; }
.step {
  grid-area: 1 / 1; width: min(400px, 84vw); padding: 56px 28px 30px;
  border-radius: 999px 999px 24px 24px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line);
  backdrop-filter: blur(10px); box-shadow: 0 30px 70px -30px rgba(60, 40, 20, .35);
}
.step b { display: block; font-family: var(--kufi); font-weight: 700; font-size: 58px; line-height: 1; }
.step h3 { font-family: var(--kufi); font-size: 27px; line-height: 1.4; margin: 12px 0 8px; }
.step p { margin: 0; color: var(--mute); }
.dots { display: flex; gap: 10px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .2; }
.rules-card {
  width: min(540px, 90vw); padding: 28px 28px 30px; border-radius: 24px;
  background: rgba(255, 255, 255, .88); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -30px rgba(60, 40, 20, .35);
}
.rules-card .scene-title { text-shadow: none; }
.rules-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; text-align: start; }
.rules-card li { position: relative; padding-inline-start: 24px; font-size: 17px; }
.rules-card li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
.s-end { background: radial-gradient(40% 30% at 50% 50%, rgba(255, 255, 255, .6), transparent 75%); }
.end-line { margin: 0; font-family: var(--kufi); font-size: clamp(46px, 7.6vw, 92px); line-height: 1.25; text-shadow: 0 0 30px #fff, 0 0 8px #fff; }
.skip {
  position: fixed; z-index: 35; bottom: 18px; left: 18px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line-strong); color: var(--ink);
  text-decoration: none; font-weight: 500; box-shadow: 0 8px 24px -10px rgba(60, 40, 20, .4);
}
/* reduced motion: no scroll film, the same content as a plain page */
.intro.static { height: auto; }
.intro.static .stage { position: relative; height: auto; overflow: visible; background: none; }
.intro.static canvas, .intro.static .stage-fallback { position: relative; height: 70svh; }
.intro.static .scene { position: relative; inset: auto; visibility: visible; opacity: 1; padding: 30px 20px; }
.intro.static .steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 1180px; }
.intro.static .step { grid-area: auto; width: auto; }
.intro.static .dots, .intro.static .scroll-hint { display: none; }

/* ---------- finder + collection ---------- */
#collection { scroll-margin-top: 64px; }
.collection { padding-top: 36px; }
.find { display: grid; gap: 14px; padding: 30px 0 34px; }
.find-title { font-family: var(--kufi); font-size: clamp(29px, 7.4vw, 62px); line-height: 1.3; padding-inline-start: 6px; }
.finder {
  display: grid; gap: 12px; max-width: 760px; padding: 14px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(60, 40, 20, .35);
}
.finder label { display: grid; gap: 4px; font-size: 13.5px; color: var(--mute); }
.finder input, .finder select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font-size: 17px;
}
.finder .go {
  height: 50px; align-self: end; border: 0; border-radius: 14px; padding: 0 26px; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 17px;
}
@media (min-width: 720px) { .finder { grid-template-columns: 1.3fr 1fr auto; align-items: end; } }

.coll-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.coll-head h2 { font-family: var(--kufi); font-size: clamp(26px, 3.8vw, 38px); line-height: 1.35; max-width: 24ch; }
.coll-head .count { font-variant-numeric: tabular-nums; }
.coll-head .sub { color: var(--mute); margin-top: 4px; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); }
.tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--mute); font-weight: 500; }
.tabs button.on { background: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 26px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; text-decoration: none; color: inherit; }
.arch { /* her windows: round arches lit from inside */
  position: relative; aspect-ratio: 5 / 7; overflow: hidden; background: var(--cream);
  border-radius: 999px 999px 10px 10px; box-shadow: inset 0 0 0 1px var(--line);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .arch img { transform: scale(1.045); }
.card .name { font-family: var(--kufi); font-weight: 600; font-size: 21px; line-height: 1.4; margin-top: 12px; }
.card .avail { font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 7px; }
.swatch { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.state { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.state.free { background: var(--free); }
.state.taken { background: var(--taken); }
.card.taken .arch img { filter: grayscale(.9) opacity(.55); }
.card.taken .name { color: var(--mute); }
.taken-head { font-family: var(--kufi); font-size: 26px; margin: 70px 0 22px; color: var(--mute); }
.empty { padding: 40px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line-strong); border-radius: 22px; }

/* ---------- dress page ---------- */
.crumb { display: inline-block; margin: 0 0 18px; color: var(--mute); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.dress { display: grid; gap: 34px; }
@media (min-width: 940px) { .dress { grid-template-columns: 1.05fr 1fr; align-items: start; gap: 56px; } .mirror-wrap { position: sticky; top: 96px; } }
.rdv > *, .dress > *, .cols > * { min-width: 0; } /* let the day strip scroll instead of widening the page */
.mirror-wrap { perspective: 1200px; }
.mirror {
  position: relative; aspect-ratio: 5 / 7; border-radius: 999px 999px 14px 14px; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 30%, #fffaf2, var(--cream) 75%);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(60, 40, 20, .45);
  transform-style: preserve-3d; touch-action: pan-y; user-select: none; cursor: zoom-in;
}
.mirror.spin { cursor: grab; }
.mirror.zoomed { cursor: zoom-out; }
.mirror img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: transform .35s ease; }
.mirror::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .28), transparent 30%, transparent 70%, rgba(255, 255, 255, .12)); }
.mirror-note { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--mute); font-size: 14px; }
.mirror-note b { color: var(--ink); font-weight: 500; }
.info h1 { font-family: var(--kufi); font-size: clamp(40px, 5.6vw, 60px); line-height: 1.25; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--mute); margin: 6px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 7px; }
.price { font-size: 22px; margin-top: 10px; font-weight: 600; }
.panel { border-top: 1px solid var(--line); padding: 22px 0 6px; margin-top: 24px; }
.panel h3 { font-family: var(--kufi); font-size: 24px; margin-bottom: 12px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 54px; height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--card); font-size: 16px; font-variant-numeric: tabular-nums;
}
.size.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size.off { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--taken); }
.hintline { color: var(--mute); font-size: 14.5px; margin-top: 10px; }

#d-cal { max-width: 430px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; font-size: 18px; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-title { font-weight: 500; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.cal .dow { font-size: 12px; color: var(--mute); padding-bottom: 2px; }
.cal .d {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid transparent; padding: 0;
  font-size: 14.5px; font-variant-numeric: tabular-nums; background: none; cursor: pointer;
}
.cal .d.free { background: var(--free-bg); color: var(--free); }
.cal .d.free:hover { border-color: var(--free); }
.cal .d.busy { background: var(--taken-bg); color: var(--taken); cursor: not-allowed; }
.cal .d.clean { background: var(--prep-bg); color: var(--prep); cursor: not-allowed; }
.cal .d.past, .cal .d.blank { color: rgba(109, 101, 97, .4); cursor: default; }
.cal .d.sel { background: var(--ink); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--mute); margin-top: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14.5px; color: var(--mute); }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); font-size: 16px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rules { margin: 4px 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--cream); font-size: 14.5px; }
.rules ul { margin: 0; padding-inline-start: 18px; }
.rules li + li { margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px;
  border: 0; border-radius: 16px; padding: 12px 20px; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 17px;
}
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.small { width: auto; min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 12px; }
.btn-row { display: grid; gap: 10px; margin-top: 14px; }
.err { color: var(--taken); font-size: 14.5px; min-height: 1.4em; margin-bottom: 8px; }
.done { text-align: center; padding: 10px 0; }
.done .seal {
  width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--kufi); font-weight: 700; font-size: 26px;
}
.done h3 { font-family: var(--kufi); font-size: 26px; line-height: 1.45; }
.done p { color: var(--mute); max-width: 46ch; margin: 8px auto 0; }

/* ---------- fitting appointment ---------- */
.page-title { font-family: var(--kufi); font-size: clamp(42px, 6.6vw, 68px); line-height: 1.25; }
.page-sub { color: var(--mute); margin: 6px 0 26px; max-width: 52ch; }
.rdv { display: grid; gap: 30px; }
@media (min-width: 940px) { .rdv { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 56px; } }
.for-dress { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.for-dress img { width: 64px; height: 86px; object-fit: cover; object-position: top; border-radius: 999px 999px 6px 6px; }
.for-dress b { font-family: var(--kufi); font-size: 22px; display: block; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.day {
  flex: 0 0 auto; width: 76px; padding: 10px 6px; border-radius: 999px 999px 14px 14px; border: 1px solid var(--line-strong);
  background: var(--card); text-align: center; cursor: pointer; line-height: 1.3;
}
.day b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 2px 0; }
.day small { color: var(--mute); font-size: 12px; }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.on small { color: #ddd; }
.part { color: var(--mute); font-size: 14px; margin: 18px 0 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { padding: 9px 4px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.35; }
.slot small { display: block; font-size: 11.5px; color: var(--mute); }
.slot.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot.on small { color: #ddd; }
.slot:disabled { opacity: .35; cursor: default; }

/* ---------- owner's space ---------- */
.admin-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 22px 0 34px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 820px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--card); padding: 16px 18px; }
.kpi b { display: block; font-family: var(--kufi); font-size: 38px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--mute); font-size: 14px; }
.cols { display: grid; gap: 34px; }
@media (min-width: 980px) { .cols { grid-template-columns: 1fr 1fr; gap: 34px 56px; } }
.cols section h3 { font-family: var(--kufi); font-size: 26px; margin-bottom: 6px; }
.row { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row img { width: 50px; height: 66px; object-fit: cover; object-position: top; border-radius: 999px 999px 6px 6px; }
.row .t { font-weight: 500; }
.row .s { color: var(--mute); font-size: 13.5px; }
.row .time { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.row .acts { display: flex; flex-direction: column; gap: 6px; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; }
.tag.wait { background: var(--prep-bg); color: var(--prep); }
.tag.ok { background: var(--free-bg); color: var(--free); }
.day-label { color: var(--mute); font-size: 14px; margin-top: 16px; }
.bar { display: grid; grid-template-columns: minmax(0, 9em) 1fr 2em; gap: 12px; align-items: center; margin: 10px 0; font-size: 14.5px; }
.bar .track { height: 8px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--ink); }
.bar b { font-weight: 600; text-align: left; font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.note { font-size: 13.5px; color: var(--mute); margin-top: 26px; }

/* receipt */
.modal { position: fixed; inset: 0; background: rgba(27, 24, 25, .45); display: grid; place-items: center; padding: 16px; z-index: 60; }
.receipt { background: var(--card); width: min(440px, 100%); border-radius: 22px; padding: 26px 22px; max-height: 90vh; overflow: auto; }
.receipt h2 { font-family: var(--kufi); font-weight: 700; font-size: 44px; text-align: center; line-height: 1.15; }
.receipt .sub { text-align: center; color: var(--mute); margin-bottom: 16px; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.receipt dt { color: var(--mute); }
.receipt dd { margin: 0; font-weight: 600; }
.receipt .cond { margin-top: 16px; font-size: 13.5px; background: var(--cream); padding: 10px 12px; border-radius: 12px; }
@media print {
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; inset: 0 auto auto 0; }
  .receipt .no-print { display: none; }
}

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 500; max-width: calc(100% - 32px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* the field only robots fill */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* date and time fields: the value reads left to right («13 nov. 2026», not «nov. 2026 13») and stays inside its box */
input[type="date"], input[type="time"] { direction: ltr; text-align: right; min-width: 0; max-width: 100%; }
.finder label, .field { min-width: 0; }
/* iPhone draws its own date field with a fixed width unless it is told not to */
@supports (-webkit-touch-callout: none) {
  input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; line-height: 48px; }
  input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: right; margin: 0; }
}
