/* Duchess Atelier dashboard. Pink surfaces, sage-green actions, gold accents. Phone first. */
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("/fonts/quicksand-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --blush-50: #FFF8F6; --blush-100: #FDEDEE; --pink-200: #F9D5DC; --pink-300: #F4B6C4; --pink-400: #EC93A9;
  --rose-500: #D96A8A; --rose-700: #A8475F; --cream: #FFF9F3; --gold: #B98F52; --gold-deep: #8C6A35; --gold-soft: #E9D3A9;
  --sage-600: #4B7C6A; --sage-700: #3E6858; --sage-100: #E3F0EA; --ink: #4A3540; --muted: #7D626D; --line: #F6D9DF;
  --danger: #C0475B; --danger-soft: #FBE4E8; --white: #fff;
  --r-sm: 12px; --r: 18px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(168, 71, 95, .06), 0 8px 24px -12px rgba(217, 106, 138, .28);
  --shadow-lg: 0 18px 48px -18px rgba(168, 71, 95, .38);
  --spring: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.22, .8, .28, 1);
  --side: 236px; --tab: 62px; --top: 56px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overscroll-behavior-y: contain; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ink); background: var(--blush-50); overscroll-behavior-y: contain; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.12; color: var(--rose-700); letter-spacing: .2px; font-variant-numeric: lining-nums; }
.h1-code { font-family: var(--sans); font-weight: 700; font-size: 24px; letter-spacing: .5px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; color: var(--rose-700); font-variant-numeric: lining-nums; }
a { color: var(--sage-700); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sage-600); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pre { white-space: pre-wrap; }
.break { word-break: break-all; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- shell ---------- */
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.boot img { border-radius: 50%; box-shadow: var(--shadow); }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 30; height: calc(var(--top) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 248, 246, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-brand { display: flex; align-items: center; gap: 10px; color: var(--rose-700); font-family: var(--serif); font-size: 21px; }
.topbar-brand:hover { text-decoration: none; }
.topbar-brand img { border-radius: 50%; border: 1px solid var(--line); }
.main { padding: 16px 14px calc(var(--tab) + 28px + env(safe-area-inset-bottom)); will-change: transform; }
.main.ptr-settling { transition: transform .42s var(--spring); }
#view { min-height: 60vh; }
.view { display: grid; gap: 16px; align-content: start; }

.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(168, 71, 95, .5); }
.tabbar a, .tabbar button { position: relative; overflow: hidden; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 48px; border: 0; background: none; border-radius: 14px; color: var(--muted); font-size: 11.5px; font-weight: 600; transition: color .2s, transform .28s var(--spring), background .2s; }
.tabbar a:hover { text-decoration: none; }
.tabbar a:active, .tabbar button:active, .tabbar a.is-pressed { transform: scale(.92); }
.tabbar a[aria-current] { color: var(--sage-700); background: var(--sage-100); }
.tabbar .ic { width: 22px; height: 22px; }
.tabbar .badge { position: absolute; top: 4px; left: calc(50% + 6px); }

.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rose-500); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1; }
.badge-inline { margin-left: 8px; height: 22px; padding: 0 9px; vertical-align: 2px; }

.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(74, 53, 64, .36); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.sheet.open { opacity: 1; visibility: visible; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); background: var(--white); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .38s var(--ease); }
.sheet.open .sheet-panel { transform: none; }
.sheet-grip { width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 99px; background: var(--pink-200); }
.sheet-who { display: grid; padding: 4px 6px 10px; font-weight: 700; }
.sheet-who small { font-weight: 500; color: var(--muted); }
.sheet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-list a, .sheet-list button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--blush-50); color: var(--ink); font-weight: 600; text-align: left; transition: transform .28s var(--spring); }
.sheet-list a:hover { text-decoration: none; }
.sheet-list a:active, .sheet-list button:active { transform: scale(.96); }
.sheet-list a[aria-current] { background: var(--sage-100); border-color: transparent; color: var(--sage-700); }

/* ---------- page head ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; justify-content: space-between; }
.page-head-main { display: grid; gap: 4px; min-width: 0; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; margin-left: -6px; color: var(--muted); font-size: 14px; }
.back .ic { width: 18px; height: 18px; }

/* ---------- cards & grids ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; min-width: 0; }
.card-flush { padding: 6px; gap: 0; }
.card-title { display: flex; align-items: center; gap: 8px; }
.card-foot { font-size: 14px; }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.cols-2, .cols-3, .cols-form, .cols-cal, .cols-compose { display: grid; gap: 16px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; overflow: hidden; display: grid; gap: 2px; align-content: start; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); min-height: 86px; transition: transform .3s var(--spring), box-shadow .25s; }
.tile strong { font-family: var(--sans); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--rose-700); font-variant-numeric: tabular-nums; }
.tile span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.tile small { color: var(--sage-700); font-weight: 700; }
.tile-ic { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blush-100); color: var(--rose-500) !important; }
.tile-link:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.tile-link:active, .tile-link.is-pressed { transform: scale(.96); }
.tile-hot { background: linear-gradient(150deg, #fff, var(--blush-100)); border-color: var(--pink-300); }
.tile-hot strong { color: var(--rose-500); }
.tile-hot .tile-ic { background: var(--rose-500); color: #fff !important; }
.tile-gold .tile-ic { background: #FAF1DF; color: var(--gold-deep) !important; }
.tile-gold strong { color: var(--gold-deep); font-size: 22px; }

/* ---------- rows ---------- */
.rows { display: grid; }
.row { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); text-align: left; width: 100%; font-weight: 500; }
.row + .row { box-shadow: 0 -1px 0 var(--line); }
.row-link { transition: background .2s, transform .28s var(--spring); }
.row-link:hover { background: var(--blush-50); text-decoration: none; }
.row-link:active, .row-link.is-pressed { transform: scale(.985); background: var(--blush-100); }
.row-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row-main strong { font-weight: 700; overflow-wrap: anywhere; }
.row-main span { font-size: 13.5px; overflow-wrap: anywhere; }
.row-side { display: grid; justify-items: end; gap: 4px; flex: none; text-align: right; font-size: 13.5px; }
.row-side .ic { color: var(--pink-400); }
.row-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.row-late { background: var(--danger-soft); }
.late { color: var(--danger); font-weight: 700; }
.amount { font-weight: 700; color: var(--rose-700); }
.avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pink-200); color: var(--rose-700); font-family: var(--serif); font-size: 20px; }
.thumb { width: 42px; height: 56px; flex: none; object-fit: cover; border-radius: 10px; background: var(--blush-100); }
.thumb-ph { display: grid; place-items: center; align-content: center; gap: 6px; background: var(--blush-100); color: var(--pink-400); border-radius: 12px; font-size: 12.5px; }
.todo .row-main { font-size: 14.5px; }
.todo-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #FAF1DF; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 26px 16px; text-align: center; color: var(--muted); }
.empty > .ic { width: 30px; height: 30px; color: var(--pink-300); }

/* ---------- pills, chips, tags ---------- */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--blush-100); color: var(--rose-700); }
.st-pending_payment { background: #FAF1DF; color: #7A5A22; }
.st-payment_review { background: var(--pink-200); color: #8E2F4B; }
.st-confirmed { background: var(--sage-100); color: var(--sage-700); }
.st-picked_up { background: #E6ECFA; color: #3F5596; }
.st-returned { background: #EFE7F6; color: #6A4A8C; }
.st-ready { background: #E0F1F3; color: #2F6B73; }
.st-completed { background: #E9EEE9; color: #48604F; }
.st-cancelled, .st-expired { background: #F1ECEE; color: #7B6570; }
.pay-pill-submitted { background: var(--pink-200); color: #8E2F4B; }
.pay-pill-verified { background: var(--sage-100); color: var(--sage-700); }
.pay-pill-rejected { background: #F1ECEE; color: #7B6570; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 6px; margin: 0 -14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { position: relative; overflow: hidden; flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 14px; color: var(--ink); transition: transform .28s var(--spring), background .2s, color .2s, border-color .2s; }
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"] { background: var(--rose-500); border-color: var(--rose-500); color: #fff; }
.chip-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--blush-100); border-radius: 999px; flex-wrap: wrap; }
.seg button { position: relative; overflow: hidden; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .2s, color .2s, transform .28s var(--spring); }
.seg button:active { transform: scale(.95); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--rose-700); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 2px; margin: 0 -14px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--muted); border-radius: 12px 12px 0 0; border-bottom: 3px solid transparent; }
.tab:hover { text-decoration: none; color: var(--ink); }
.tab[aria-current] { color: var(--rose-700); border-bottom-color: var(--rose-500); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .92); color: var(--rose-700); box-shadow: 0 1px 4px rgba(74, 53, 64, .14); }
.tag-rent { color: var(--sage-700); }
.tag-sale { color: var(--gold-deep); }
.tag-off { background: var(--ink); color: #fff; }
.tag-sample { background: var(--gold); color: #fff; }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; user-select: none; transition: transform .32s var(--spring), background .2s, box-shadow .25s, color .2s, border-color .2s; }
.btn:hover { text-decoration: none; }
.btn:active, .btn.is-pressed, .btn[data-busy] { transform: scale(.96); }
.btn-primary { background: var(--sage-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(62, 104, 88, .9); }
.btn-primary:hover { background: var(--sage-700); }
.btn-ghost { background: var(--white); border-color: var(--pink-300); color: var(--rose-700); }
.btn-ghost:hover { background: var(--blush-100); }
.btn-gold { background: #FAF1DF; border-color: var(--gold-soft); color: var(--gold-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: var(--white); border-color: #EBC2CA; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn-icon { padding: 0; width: 38px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-label, .btn > .ic { transition: opacity .18s, transform .25s var(--ease); }
.btn-state { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.btn-state .spin, .btn-state .tick { grid-area: 1 / 1; opacity: 0; transform: scale(.6); transition: opacity .18s, transform .3s var(--spring); }
.is-loading .btn-label, .is-loading > .ic, .is-done .btn-label, .is-done > .ic { opacity: 0; transform: scale(.85); }
.is-loading .btn-state .spin { opacity: 1; transform: none; }
.is-done .btn-state .tick { opacity: 1; transform: none; }
.tick { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.is-done .tick path, .ptr.done .tick path { animation: draw .42s var(--ease) .06s forwards; }
.is-error { animation: shake .42s; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: block; }
.boot .spin { color: var(--rose-500); width: 26px; height: 26px; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .2; transform: scale(0); pointer-events: none; animation: ripple .6s var(--ease) forwards; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blush-100); color: var(--rose-700); transition: transform .28s var(--spring), background .2s; }
.icon-btn:active, .icon-btn.is-pressed { transform: scale(.9); }
.icon-btn:hover { background: var(--pink-200); }
.icon-btn:disabled { opacity: .35; }
.icon-btn.is-loading { opacity: .5; }
.icon-danger { color: var(--danger); }
.link { border: 0; background: none; padding: 0; color: var(--sage-700); font-weight: 700; text-decoration: underline; min-height: 32px; }
.actions-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- forms ---------- */
.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="search"], select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); font-weight: 500; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8475F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage-600); box-shadow: 0 0 0 4px var(--sage-100); }
::placeholder { color: #B79CA6; }
.hint { font-size: 13px; color: var(--muted); }
.code, .code-field textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; }
.select { width: auto; min-width: 150px; }
.search { position: relative; flex: 1 1 220px; display: block; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pink-400); pointer-events: none; }
.search input { padding-left: 42px; border-radius: 999px; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--pink-200); position: relative; transition: background .25s; }
.switch-track i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(74, 53, 64, .3); transition: transform .32s var(--spring); }
.switch input:checked + .switch-track { background: var(--sage-600); }
.switch input:checked + .switch-track i { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--sage-600); outline-offset: 2px; }
.switch-text { display: grid; font-weight: 600; }
.switch-text small { font-weight: 500; color: var(--muted); font-size: 13px; }
.switches { display: grid; gap: 4px; }
.fold { border: 1px solid var(--line); border-radius: var(--r); background: var(--blush-50); }
.fold summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; font-weight: 700; color: var(--rose-700); cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold[open] summary { border-bottom: 1px solid var(--line); }
.fold > form, .fold > div { padding: 14px; }

/* ---------- banners ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 14.5px; }
.banner .ic { margin-top: 1px; }
.banner-info { background: #FAF1DF; color: #6B4E1C; border: 1px solid var(--gold-soft); }
.banner-warn { background: var(--danger-soft); color: #8E2F4B; border: 1px solid #EBC2CA; }

/* ---------- key/value ---------- */
.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 14px; flex: none; }
.kv dd { text-align: right; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.kv-strong dd { font-weight: 700; color: var(--rose-700); font-size: 16.5px; }

/* ---------- order ---------- */
.stepper { display: flex; gap: 0; padding: 16px 6px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { position: relative; flex: 1 0 54px; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.stepper li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--pink-200); }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--sage-600); }
.step-dot { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 3px solid var(--pink-200); color: #fff; }
.step-dot .ic { width: 15px; height: 15px; stroke-width: 3; }
.stepper li.done .step-dot { background: var(--sage-600); border-color: var(--sage-600); }
.stepper li.now .step-dot { border-color: var(--sage-600); box-shadow: 0 0 0 5px var(--sage-100); animation: pulse 2s ease-in-out infinite; }
.stepper li.now { color: var(--sage-700); }
.stepper li.done { color: var(--ink); }
.step-label { padding: 0 2px; line-height: 1.25; }
.dress-mini { display: flex; gap: 14px; align-items: center; }
.dress-mini img, .dress-mini .thumb-ph { width: 72px; height: 96px; flex: none; object-fit: cover; border-radius: 14px; }
.pays { display: grid; gap: 10px; }
.pay { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--blush-50); }
.pay-submitted { border-color: var(--pink-300); background: #fff; box-shadow: 0 0 0 3px var(--blush-100); }
.pay-proof { width: 76px; height: 100px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); display: grid; place-items: center; color: var(--pink-400); transition: transform .28s var(--spring); }
button.pay-proof:active { transform: scale(.95); }
.pay-proof img { width: 100%; height: 100%; object-fit: cover; }
.pay-main { display: grid; gap: 2px; align-content: start; justify-items: start; min-width: 0; font-size: 14px; }
.pay-main .pill { margin-top: 4px; }
.pay-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.pay-actions:empty { display: none; }
.proof-full { width: 100%; max-height: 74vh; object-fit: contain; border-radius: 12px; background: var(--blush-50); }
.timeline { display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding-bottom: 14px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--pink-200); }
.timeline li:last-child::before { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--white); border: 3px solid var(--pink-400); }
.timeline strong { font-weight: 700; }
.timeline p { font-size: 14px; overflow-wrap: anywhere; }
.picked { padding: 12px; border: 1px dashed var(--pink-300); border-radius: var(--r); background: var(--blush-50); }
.pick-list { display: grid; max-height: 340px; overflow-y: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- dresses ---------- */
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dcard { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); transition: transform .3s var(--spring), box-shadow .25s; }
.dcard:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.dcard:active, .dcard.is-pressed { transform: scale(.97); }
.dcard-media { position: relative; aspect-ratio: 3 / 4; background: var(--blush-100); }
.dcard-media img, .dcard-media .thumb-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.dcard-tags { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.dcard-body { display: grid; gap: 1px; padding: 10px 12px 12px; align-content: start; }
.dcard-body strong { font-weight: 700; line-height: 1.25; }
.dcard-body span { font-size: 13px; }
.dcard-price { color: var(--rose-700); font-weight: 700; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--blush-100); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; }
.photo-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 5px; background: linear-gradient(transparent, rgba(74, 53, 64, .55)); }
.photo-tools .icon-btn { width: 32px; height: 32px; background: rgba(255, 255, 255, .92); }
.photo-tools .ic { width: 16px; height: 16px; }
.photo-add { display: grid; place-items: center; align-content: center; gap: 6px; border: 2px dashed var(--pink-300); background: var(--blush-50); color: var(--rose-700); font-weight: 700; font-size: 13px; transition: transform .28s var(--spring), background .2s; }
.photo-add:active { transform: scale(.96); }
.photo-add:hover { background: var(--blush-100); }
.photo-queue { display: grid; gap: 6px; }
.photo-queue:empty { display: none; }
.q-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--blush-50); font-size: 13.5px; }
.q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-state { flex: none; font-weight: 700; color: var(--muted); }
.q-busy .q-state { color: var(--rose-500); }
.q-busy { background: linear-gradient(90deg, var(--blush-50) 25%, var(--pink-200) 50%, var(--blush-50) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.q-done .q-state { color: var(--sage-700); }
.q-fail { background: var(--danger-soft); }
.q-fail .q-state { color: var(--danger); white-space: normal; text-align: right; }
.booked { display: grid; gap: 6px; }
.booked li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.booked .ic { color: var(--pink-400); }
.reset-box { display: flex; gap: 8px; align-items: center; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0 4px; }
.cal-day { position: relative; display: grid; align-content: start; gap: 3px; min-height: 58px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: left; transition: transform .25s var(--spring), border-color .2s, box-shadow .2s; min-width: 0; }
.cal-day:active { transform: scale(.94); }
.cal-day.is-out { background: var(--blush-50); opacity: .55; }
.cal-day.is-today .cal-num { background: var(--sage-600); color: #fff; }
.cal-day.is-picked { border-color: var(--sage-600); box-shadow: 0 0 0 3px var(--sage-100); }
.cal-num { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; }
.cal-chips { display: none; gap: 2px; min-width: 0; }
.cal-chip { display: block; padding: 1px 6px; border-radius: 6px; background: var(--rose-500); color: #fff; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip-soft { background: var(--pink-300); color: #7A2942; }
.cal-chip-clean { background: var(--sage-100); color: var(--sage-700); }
.cal-more { font-size: 11px; color: var(--muted); font-weight: 700; }
.cal-count { position: absolute; right: 5px; bottom: 5px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--rose-500); color: #fff; font-size: 11.5px; font-weight: 700; }
.cal-legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.cal-legend .cal-chip { display: inline-block; }
.cal-what { font-weight: 700; font-size: 12.5px; color: var(--muted); }
.cal-pickup { color: var(--sage-700); }
.cal-return { color: var(--rose-500); }

/* ---------- coupons ---------- */
.coupon-grid { display: grid; gap: 12px; }
.coupon-card { display: grid; gap: 8px; padding: 16px; background: var(--white); border: 2px dashed var(--pink-300); border-radius: var(--r-lg); }
.coupon-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.coupon-code { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--blush-100); color: var(--rose-700); font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: 1.5px; transition: transform .28s var(--spring); }
.coupon-code:active { transform: scale(.95); }
.coupon-code .ic { width: 16px; height: 16px; color: var(--pink-400); }
.coupon-value { font-size: 18px; font-weight: 700; display: grid; }
.coupon-value small { font-size: 13px; color: var(--muted); font-weight: 500; }
.coupon-actions { display: flex; gap: 8px; }

/* ---------- email ---------- */
.insert-bar { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.insert-bar::-webkit-scrollbar { display: none; }
.preview-card { position: sticky; top: 12px; }
.preview-subject { font-weight: 700; padding: 8px 12px; border-radius: 12px; background: var(--blush-50); overflow-wrap: anywhere; }
.preview-frame { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 16px; background: #FFF5F3; }

/* ---------- dialogs ---------- */
.dlg { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.dlg[open] { display: flex; flex-direction: column; animation: pop .34s var(--spring); }
.dlg-wide { width: min(680px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(74, 53, 64, .42); backdrop-filter: blur(3px); animation: fade .25s; }
.dlg.closing { animation: popout .16s ease-in forwards; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 6px 20px; }
.dlg-body { display: grid; gap: 14px; padding: 8px 20px 20px; overflow-y: auto; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 20px 18px; border-top: 1px solid var(--line); background: var(--blush-50); }

/* ---------- toasts, completion, pull to refresh ---------- */
.toasts { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(var(--tab) + 14px + env(safe-area-inset-bottom)); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); animation: toast-in .4s var(--spring); }
.toast .ic { color: #A9DCC8; }
.toast-error { background: var(--danger); border-radius: 18px; }
.toast-error .ic { color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }

.celebrate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(255, 248, 246, .72); backdrop-filter: blur(4px); animation: fade .2s; pointer-events: none; }
.celebrate.out { opacity: 0; transition: opacity .32s; }
.cel-card { display: grid; justify-items: center; gap: 12px; padding: 28px 40px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow-lg); animation: pop .42s var(--spring); }
.cel-card p { font-family: var(--serif); font-size: 26px; color: var(--rose-700); font-variant-numeric: lining-nums; }
.cel-mark { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.cel-svg { width: 96px; height: 96px; fill: none; stroke: var(--sage-600); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.cel-svg circle { stroke-dasharray: 190; stroke-dashoffset: 190; transform: rotate(-90deg); transform-origin: center; animation: draw .5s var(--ease) .08s forwards; }
.cel-svg path { stroke-dasharray: 46; stroke-dashoffset: 46; animation: draw .34s var(--ease) .48s forwards; }
.cel-spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--pink-400); opacity: 0; transform: rotate(var(--a)) translateY(-30px) scale(.4); animation: spark .7s var(--ease) calc(.5s + var(--d)) forwards; }
.cel-spark:nth-child(odd) { background: var(--gold); width: 6px; height: 6px; margin: -3px; }
.cel-spark:nth-child(3n) { background: var(--sage-600); }

.ptr { position: fixed; z-index: 50; left: 50%; top: calc(-46px + env(safe-area-inset-top)); transform: translate3d(-50%, 0, 0); opacity: 0; pointer-events: none; }
.ptr.settling { transition: transform .42s var(--spring), opacity .3s; }
.ptr-orb { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--rose-500); box-shadow: var(--shadow-lg); border: 1px solid var(--line); transition: background .2s, color .2s, transform .3s var(--spring); }
.ptr-orb > * { grid-area: 1 / 1; }
.ptr-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring), opacity .15s; }
.ptr .spin, .ptr .tick { opacity: 0; }
.ptr.armed .ptr-orb { background: var(--sage-600); color: #fff; transform: scale(1.1); }
.ptr.loading .ptr-arrow, .ptr.done .ptr-arrow { opacity: 0; }
.ptr.loading .spin { opacity: 1; }
.ptr.done .ptr-orb { background: var(--sage-600); color: #fff; }
.ptr.done .tick { opacity: 1; }

/* ---------- skeleton & entrances ---------- */
.skeleton { border-radius: var(--r); background: linear-gradient(90deg, var(--blush-100) 25%, #fff 50%, var(--blush-100) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk-row { height: 74px; }
.view-in { animation: rise .42s var(--ease) both; }
.stagger > * { animation: rise .42s var(--ease) both; }
.stagger > :nth-child(1) { animation-delay: 20ms; } .stagger > :nth-child(2) { animation-delay: 55ms; } .stagger > :nth-child(3) { animation-delay: 90ms; } .stagger > :nth-child(4) { animation-delay: 125ms; }
.stagger > :nth-child(5) { animation-delay: 160ms; } .stagger > :nth-child(6) { animation-delay: 195ms; } .stagger > :nth-child(7) { animation-delay: 230ms; } .stagger > :nth-child(n+8) { animation-delay: 265ms; }
::view-transition-old(root) { animation: fade-out .16s ease both; }
::view-transition-new(root) { animation: fade .26s ease both; }

/* ---------- sign in ---------- */
.login { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; overflow: hidden; background: radial-gradient(900px 500px at 15% 0%, var(--pink-200), transparent 60%), radial-gradient(700px 480px at 100% 100%, #F5E7CF, transparent 60%), var(--blush-50); }
.login-card { position: relative; width: min(400px, 100%); display: grid; justify-items: center; gap: 8px; padding: 30px 24px 26px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-lg); text-align: center; }
.login-card img { border-radius: 50%; border: 3px solid var(--white); box-shadow: var(--shadow); }
.login-card h1 { font-size: 34px; margin-top: 6px; }
.login-form { width: 100%; display: grid; gap: 14px; margin-top: 14px; text-align: left; }
.login-sparkles { position: absolute; inset: 0; pointer-events: none; }
.login-sparkles i { position: absolute; left: calc(6% + var(--i) * 8%); top: 14%; width: 10px; height: 10px; background: var(--pink-300); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .7; animation: twinkle calc(2.6s + var(--i) * .23s) ease-in-out calc(var(--i) * -.4s) infinite; }
.login-sparkles i:nth-child(3n) { background: var(--gold-soft); width: 14px; height: 14px; }
.login-sparkles i:nth-child(4n+1) { top: 8%; } .login-sparkles i:nth-child(4n+2) { top: 78%; } .login-sparkles i:nth-child(4n+3) { top: 30%; } .login-sparkles i:nth-child(4n) { top: 90%; } .login-sparkles i:nth-child(5n) { top: 58%; }

/* ---------- keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(10px); } }
@keyframes popout { to { opacity: 0; transform: scale(.95); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(227, 240, 234, .2); } }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-30px) scale(.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-62px) scale(1.15); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0); } 50% { opacity: .9; transform: scale(1.15) rotate(20deg); } }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .fields-3 { grid-template-columns: repeat(3, 1fr); }
  .span-2 { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .coupon-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .cal-chips { display: grid; }
  .cal-count { display: none; }
  .cal-day { min-height: 84px; padding: 6px; }
  .pay { grid-template-columns: auto 1fr auto; }
  .pay-actions { grid-column: auto; flex-direction: column; justify-content: center; }
}
@media (min-width: 960px) {
  body { font-size: 15px; }
  .topbar, .tabbar, .sheet { display: none; }
  .shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100dvh; }
  .side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 14px; padding: 18px 12px; background: linear-gradient(180deg, #fff, var(--blush-100)); border-right: 1px solid var(--line); overflow-y: auto; }
  .side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 10px; color: var(--rose-700); }
  .side-brand:hover { text-decoration: none; }
  .side-brand img { border-radius: 50%; border: 2px solid #fff; box-shadow: var(--shadow); }
  .side-brand span { display: grid; line-height: 1.15; }
  .side-brand strong { font-family: var(--serif); font-size: 21px; font-weight: 600; }
  .side-brand small { color: var(--muted); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 10.5px; }
  .side-nav { display: grid; gap: 4px; }
  .side-nav a { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 14px; color: var(--ink); font-weight: 600; transition: background .2s, color .2s, transform .28s var(--spring); }
  .side-nav a:hover { background: var(--white); text-decoration: none; }
  .side-nav a:active, .side-nav a.is-pressed { transform: scale(.97); }
  .side-nav a[aria-current] { background: var(--sage-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(62, 104, 88, .9); }
  .side-nav .badge { margin-left: auto; }
  .side-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
  .side-foot p { display: grid; font-weight: 700; }
  .side-foot small { font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
  .main { padding: 26px 28px 40px; }
  h1 { font-size: 36px; }
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-form { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .cols-cal { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .cols-compose { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .kpis .tile { min-height: 104px; }
  .kpis .tile strong { margin-top: 26px; }
  .chips, .tabs { margin: 0; padding-left: 0; padding-right: 0; }
  .toasts { bottom: 22px; left: calc(var(--side) + 12px); }
  .dgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
  .cal-day { min-height: 104px; }
  .order-row .row-side { grid-auto-flow: column; align-items: center; gap: 14px; }
  .stepper { padding: 20px 16px 16px; }
  .stepper li { font-size: 13px; }
}
@media (min-width: 960px) and (max-width: 1240px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .btn:active, .btn.is-pressed, .btn[data-busy], .tile-link:active, .row-link:active, .chip:active, .dcard:active, .tabbar a:active, .icon-btn:active { transform: none; }
  .tick path, .cel-svg circle, .cel-svg path { stroke-dashoffset: 0; animation: none; }
  .cel-spark, .login-sparkles, .ripple { display: none; }
  .main, .ptr { transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- small fixes ---------- */
.seg:empty { display: none; }
@media (max-width: 559px) {
  .row:has(.row-tools) { flex-wrap: wrap; }
  .row-tools { max-width: none; width: 100%; justify-content: flex-start; }
}

/* ---------- rentals: payment state, the month board, earnings ---------- */
.pill.pay-unpaid { background: #F1ECEE; color: #7D626D; }
.pill.pay-partial { background: #FAF1DF; color: var(--gold-deep); }
.pill.pay-paid { background: var(--sage-100); color: var(--sage-700); }
.pill.rs-available { background: var(--sage-100); color: var(--sage-700); }
.pill.rs-out { background: #E6EDFA; color: #3B5C99; }
.pill.rs-pickup { background: #FAF1DF; color: var(--gold-deep); }
.pill.rs-cleaning { background: #EEE8F7; color: #6A4E9B; }
.pill.rs-maintenance, .pill.rs-sold { background: #F1ECEE; color: #7D626D; }
.pill.rs-late { background: var(--danger); color: #fff; }
.kpis-6, .kpis-4 { margin-top: 10px; }
@media (min-width: 700px) { .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rt-thumb { flex: none; width: 44px; height: 58px; object-fit: cover; border-radius: 10px; background: var(--blush-100); }
span.rt-thumb { display: grid; place-items: center; }
a.row-main { color: inherit; text-decoration: none; }
.pay-box { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--blush-50); }
.pay-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pay-head strong { font-variant-numeric: tabular-nums; color: var(--rose-700); }
.pay-bar { height: 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.pay-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sage-600), #6FA892); transition: width .8s var(--spring, cubic-bezier(.34,1.56,.64,1)); }
.pay-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.board-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.board { display: grid; grid-template-columns: minmax(150px, 230px) repeat(var(--days), minmax(28px, 1fr)); min-width: max-content; }
.bd-corner, .bd-day { position: sticky; top: 0; z-index: 2; display: grid; place-items: center; padding: 6px 0; background: var(--blush-50); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-corner { left: 0; z-index: 3; justify-items: start; padding-left: 12px; }
.bd-day small { display: block; font-size: 9.5px; font-weight: 600; opacity: .7; }
.bd-day.is-weekend { color: var(--rose-500); }
.bd-day.is-today { background: var(--rose-500); color: #fff; border-radius: 8px 8px 0 0; }
.bd-name { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 7px 10px; background: #fff; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.bd-name span { min-width: 0; display: grid; }
.bd-name strong { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-name small { font-size: 11.5px; color: var(--muted); }
.bd-name .rt-thumb { width: 30px; height: 40px; border-radius: 7px; }
.bd-full { color: #fff; background: var(--danger); border-radius: 999px; padding: 1px 8px; font-size: 10.5px; }
.bd-cell { min-height: 54px; border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid #FBEFF1; background: none; padding: 0; position: relative; }
.bd-cell.is-past { background: repeating-linear-gradient(135deg, transparent 0 6px, #FCF4F5 6px 7px); }
.bd-cell.is-today { box-shadow: inset 2px 0 0 var(--rose-500), inset -2px 0 0 var(--rose-500); }
button.bd-cell { cursor: pointer; }
button.bd-cell::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; bottom: 14px; background: var(--sage-600); transition: filter .2s, transform .25s; }
button.bd-cell:hover::before { filter: brightness(1.12); transform: scaleY(1.12); }
button.bd-cell.is-start::before { left: 4px; border-radius: 999px 0 0 999px; }
button.bd-cell.is-end::before { right: 4px; border-radius: 0 999px 999px 0; }
button.bd-cell.is-start.is-end::before { border-radius: 999px; }
.bd-out::before { background: #5B7FC7 !important; }
.bd-soft::before { background: repeating-linear-gradient(135deg, #E9D3A9 0 6px, #F5E7C9 6px 12px) !important; }
.bd-clean::before { background: #D9CCEE !important; left: 0 !important; right: 4px !important; border-radius: 0 999px 999px 0 !important; top: 20px !important; bottom: 20px !important; }
.bd-done::before { background: #C9D6D0 !important; }
.bd-late::before { background: repeating-linear-gradient(135deg, var(--danger) 0 6px, #D8707F 6px 12px) !important; }
.lg-late::before { background: var(--danger); }
.board { grid-template-columns: minmax(170px, 270px) repeat(var(--days), minmax(28px, 1fr)); }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-right: 12px; }
.lg::before { content: ""; width: 18px; height: 9px; border-radius: 999px; background: var(--sage-600); }
.lg-out::before { background: #5B7FC7; } .lg-soft::before { background: #E9D3A9; } .lg-clean::before { background: #D9CCEE; } .lg-done::before { background: #C9D6D0; }
.chip.is-on { background: var(--sage-600); border-color: var(--sage-600); color: #fff; }
