:root {
  --ink: #5a4037;
  --muted: #9b8279;
  --line: #f1e2dc;
  --bg: #fdf8f3;
  --card: #ffffff;
  --primary: #ec8aa2;
  --primary-dark: #d4637f;
  --primary-soft: #fde6eb;
  --shadow: 0 10px 30px rgba(120, 80, 60, .10);
  --radius: 24px;

  /* สถานะ */
  --ready-bg: #dcf6ea;   --ready-fg: #1f7a55;
  --reserved-bg: #fff0c2; --reserved-fg: #8a6100;
  --rented-bg: #ffdbe7;  --rented-fg: #b0305f;
  --returned-bg: #ece9f1; --returned-fg: #6b6478;
  --cleaning-bg: #dcefff; --cleaning-fg: #2a5f99;
  --maintenance-bg: #ebe4ff; --maintenance-fg: #5b47a8;
  --planned-bg: #f2eef5; --planned-fg: #6b6478;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Prompt', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(circle at 95% 0%, #ffe1ec 0, transparent 30%),
    radial-gradient(circle at 0% 35%, #ffeadd 0, transparent 26%),
    radial-gradient(circle at 100% 70%, #fde3e8 0, transparent 25%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Mali', 'Prompt', sans-serif; margin: 0; line-height: 1.25; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #f3a0b4; outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ลูกโป่งพื้นหลัง */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs span { position: absolute; border-radius: 50%; opacity: .55; filter: blur(2px); animation: floaty 12s ease-in-out infinite; }
.blobs span:nth-child(1) { width: 180px; height: 180px; background: #ffd1e0; top: 120px; right: -60px; }
.blobs span:nth-child(2) { width: 120px; height: 120px; background: #ffe3d3; top: 520px; left: -40px; animation-delay: -3s; }
.blobs span:nth-child(3) { width: 70px; height: 70px; background: #fbe9c9; top: 60px; left: 30%; animation-delay: -6s; }
.blobs span:nth-child(4) { width: 140px; height: 140px; background: #f9d7dd; bottom: 40px; right: 18%; animation-delay: -9s; }
@keyframes floaty { 0%,100% { transform: translate(0,0) } 50% { transform: translate(-12px, 14px) } }
@media (prefers-reduced-motion: reduce) { .blobs span { animation: none; } }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid transparent; border-radius: 14px; padding: 9px 16px;
  font-weight: 500; font-size: 14px; background: #fff; white-space: nowrap; color: inherit; text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, #f3a0b4, #e47893); color: #fff; box-shadow: 0 6px 16px rgba(228, 120, 147, .35); }
.btn.primary:hover { box-shadow: 0 8px 20px rgba(228, 120, 147, .45); }
.btn.soft { background: var(--primary-soft); color: #b9536d; }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.ghost:hover { background: #fff6f4; }
.btn.danger { background: #ff6b81; color: #fff; }
.btn.danger-ghost { background: #fff; color: #d0435d; border-color: #ffd3dc; }
.btn.icon { width: 38px; height: 38px; padding: 0; border-color: var(--line); background: #fff; }
.btn.big { padding: 12px 20px; font-size: 15px; border-radius: 16px; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.tiny { padding: 4px 10px; font-size: 12px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.field {
  width: 100%; border: 1.5px solid #f0ddd8; border-radius: 12px; background: #fff;
  padding: 9px 12px; outline: none; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.field:focus { border-color: #f3a0b4; box-shadow: 0 0 0 4px #fde6eb; }
textarea.field { resize: vertical; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }

/* Header */
.topbar { background: rgba(255,255,255,.7); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #fde6eb, #fbd7de); box-shadow: inset 0 -3px 0 rgba(0,0,0,.04); }
.eyebrow { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: #c0727f; }
.brand h1 { font-size: 24px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.today-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--muted); }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; min-width: 240px; z-index: 30; }
.menu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.menu-pop button:hover { background: #fff3f2; }
.menu-pop .danger { color: #d0435d; }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 0 20px; }
.kicker { font-size: 12px; letter-spacing: .12em; font-weight: 600; color: #c0727f; margin-bottom: 6px; }
.hero h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 6px; }
.sparkle { color: #f3a0b4; display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sparkle { animation: none; } }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Tabs */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.tab {
  --c: #f3a0b4; --c-soft: #fde6eb;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; font-weight: 600; font-family: 'Mali', sans-serif; font-size: 16px;
  transition: all .15s; position: relative;
}
.tab:hover { border-color: var(--c); }
.tab[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 40%, transparent); }
.tab .n { font-size: 12px; background: var(--c-soft); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-family: 'Prompt', sans-serif; }
.tab[aria-selected="true"] .n { background: rgba(255,255,255,.3); color: #fff; }
.tab .badge { position: absolute; top: -6px; right: -4px; background: #ff4d6d; color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; font-family: 'Prompt', sans-serif; border: 2px solid #fff; }
.tab-add, .tab-edit { border-style: dashed; color: var(--muted); font-size: 14px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.6); border: 2px dashed #ead7d2; }
.tab-add:hover, .tab-edit:hover { color: var(--ink); border-color: #f3a0b4; }

/* สีหมวด */
[data-color="pink"] { --c: #f3a0b4; --c-soft: #fde6eb; }
[data-color="sky"] { --c: #6cb8f5; --c-soft: #e0f0ff; }
[data-color="mint"] { --c: #4fc59a; --c-soft: #dcf6ea; }
[data-color="lavender"] { --c: #9b85f0; --c-soft: #ebe4ff; }
[data-color="butter"] { --c: #f2b632; --c-soft: #fff0c2; }
[data-color="peach"] { --c: #ff9a6c; --c-soft: #ffe6da; }

/* Dashboard */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: flex-end; }
.dash-head p { margin-top: 4px; }
.range { display: flex; gap: 10px; flex-wrap: wrap; }
.range label { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 500; gap: 4px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.chip:hover { border-color: #f3a0b4; }
.chip.on { background: #5a4037; color: #fff; border-color: #5a4037; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.stat { border-radius: 18px; padding: 14px 16px; position: relative; overflow: hidden; border: 0; text-align: left; }
.stat:hover { filter: brightness(.98); }
.stat .lbl { font-size: 13px; font-weight: 500; }
.stat strong { display: block; font-size: 30px; font-family: 'Mali', sans-serif; line-height: 1.2; margin-top: 2px; }
.stat .emo { position: absolute; right: 10px; bottom: 4px; font-size: 30px; opacity: .55; }
.stat.ready { background: var(--ready-bg); color: var(--ready-fg); }
.stat.reserved { background: var(--reserved-bg); color: var(--reserved-fg); }
.stat.rented { background: var(--rented-bg); color: var(--rented-fg); }
.stat.off { background: var(--maintenance-bg); color: var(--maintenance-fg); }
.stat.total { background: #f9f1ec; color: var(--ink); }
.stat.active { outline: 3px solid currentColor; outline-offset: -3px; }

.avail { margin-top: 18px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #f3fcf7, #fffaf2); border: 1.5px dashed #bfe8d3; }
.avail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.avail-head h3 { color: var(--ready-fg); }
.avail-list { display: flex; flex-wrap: wrap; gap: 8px; }
.avail-item { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d3f0e1; border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 14px; }
.avail-item:hover { border-color: var(--ready-fg); }
.avail-item .thumb { width: 30px; height: 30px; border-radius: 50%; font-size: 15px; }
.avail-item .p { color: var(--muted); font-size: 12.5px; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 2px; }

.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.grid-2 > .card { margin-bottom: 20px; }
.grid-2 h2 { margin-bottom: 12px; }

/* Tasks */
.tasks { display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fcf7f4; border: 1px solid var(--line); }
.task .ico { font-size: 20px; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.task .txt { flex: 1; min-width: 0; font-size: 14px; }
.task .txt b { font-weight: 600; }
.task .txt .sub { color: var(--muted); font-size: 12.5px; }
.task.late { background: #fff1f3; border-color: #ffc9d3; }
.task.late .ico { background: #ffdbe2; }
.task.out .ico { background: var(--reserved-bg); }
.task.back .ico { background: var(--rented-bg); }
.task.soon .ico { background: var(--cleaning-bg); }
.calm { text-align: center; padding: 18px; color: var(--muted); background: #fcf7f4; border-radius: 14px; }
.calm div { font-size: 32px; }

/* Money */
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money-box { background: #fcf7f4; border-radius: 16px; padding: 12px 14px; }
.money-box .lbl { font-size: 12.5px; color: var(--muted); }
.money-box strong { display: block; font-family: 'Mali', sans-serif; font-size: 22px; }
.money-box.hl { background: linear-gradient(135deg, #fff0c2, #fde6eb); grid-column: span 2; }
.money-box.hl strong { font-size: 28px; }
.bar { height: 8px; border-radius: 99px; background: #f3e8e3; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7fd8be, #4fc59a); }
.bar.pink > span { background: linear-gradient(90deg, #ffb3c9, #ec8aa2); }

/* Calendar */
.cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-end; }
.cal-head p { margin-top: 4px; }
.cal-ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: #f8efea; border-radius: 12px; padding: 3px; margin-left: 4px; }
.seg button { border: 0; background: none; padding: 6px 10px; border-radius: 9px; font-size: 13px; }
.seg button.on { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.06); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.cal-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.cal { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; table-layout: fixed; }
.cal th, .cal td { border-bottom: 1px solid #f5ebe6; padding: 0; height: 52px; }
.cal thead th { height: auto; padding: 8px 2px; background: #fdf8f5; font-weight: 500; text-align: center; border-bottom: 1px solid var(--line); }
.cal .dow { display: block; font-size: 11px; color: var(--muted); }
.cal .dnum { display: block; font-family: 'Mali', sans-serif; font-size: 16px; font-weight: 600; }
.cal .mon { display: block; font-size: 10.5px; color: #c0727f; height: 13px; }
.cal thead th.we { background: #fff5f3; }
.cal thead th.today .dnum { background: var(--primary); color: #fff; border-radius: 999px; width: 30px; height: 30px; line-height: 30px; margin: 0 auto; }
.cal thead th.inrange { box-shadow: inset 0 -3px 0 #7fd8be; }
.cal .item-col { position: sticky; left: 0; z-index: 2; background: #fff; text-align: left; width: 190px; border-right: 1px solid var(--line); }
.cal thead .item-col { background: #fdf8f5; z-index: 3; padding-left: 14px; }
.cal .row-name { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: none; border: 0; width: 100%; text-align: left; }
.cal .row-name .thumb { width: 34px; height: 34px; border-radius: 10px; flex: none; font-size: 17px; }
.cal .row-name b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .row-name small { color: var(--muted); font-size: 11.5px; }
.cal .row-name:hover b { color: var(--primary-dark); }
.cal td.we { background: #fffbf9; }
.cal td.today-col { background: #fff3f2; }
.cal td.free { text-align: center; }
.cal .add { width: 100%; height: 100%; border: 0; background: none; color: transparent; font-size: 18px; }
.cal .add:hover, .cal .add:focus-visible { color: var(--primary); background: #fff1f0; }
.cal td.clean { background: repeating-linear-gradient(135deg, var(--cleaning-bg) 0 6px, #fff 6px 12px); text-align: center; font-size: 14px; }
.cal td.off { text-align: center; color: var(--muted); }
.cal td.off.maintenance { background: repeating-linear-gradient(135deg, var(--maintenance-bg) 0 8px, #fff 8px 16px); color: var(--maintenance-fg); }
.cal td.off.planned { background: repeating-linear-gradient(135deg, #f4f0f6 0 8px, #fff 8px 16px); }
.cal td.bk { padding: 5px 2px; }
.pill {
  display: flex; align-items: center; gap: 4px; width: 100%; height: 100%; border: 0; border-radius: 12px;
  padding: 0 10px; font-size: 12.5px; font-weight: 500; overflow: hidden; white-space: nowrap; text-align: left;
  transition: transform .12s, box-shadow .12s;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.pill span { overflow: hidden; text-overflow: ellipsis; }
.pill.reserved { background: var(--reserved-bg); color: var(--reserved-fg); border: 1.5px dashed #f2c94c; }
.pill.rented { background: var(--rented-bg); color: var(--rented-fg); }
.pill.returned { background: var(--returned-bg); color: var(--returned-fg); opacity: .8; }
.pill.late { background: #ff6b81; color: #fff; }
.pill.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pill.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-empty { padding: 30px; text-align: center; color: var(--muted); }
.cal.d7 { min-width: 760px; }
.cal.d14 { min-width: 980px; }
.cal.d30 { min-width: 1620px; }

/* Products */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 16px; }
.count { font-family: 'Prompt', sans-serif; font-size: 14px; color: var(--muted); font-weight: 400; }
.list-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.list-tools .field { width: auto; }
.list-tools input[type=search] { min-width: 240px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; animation: up .35s both; }
.product:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(120, 80, 60, .16); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.product .pic { position: relative; height: 170px; cursor: pointer; }
.product .pic .thumb { width: 100%; height: 100%; border-radius: 0; font-size: 64px; }
.product .pic .status { position: absolute; top: 12px; right: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.product .pic .spec { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 17px; }
.product .price { color: var(--primary-dark); font-weight: 600; }
.product .price small { color: var(--muted); font-weight: 400; }
.product .desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product .next { font-size: 12.5px; background: #fcf7f4; border-radius: 10px; padding: 6px 10px; }
.product .roi { font-size: 12px; color: var(--muted); }
.product .acts { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.product .acts .btn { flex: 1; padding: 8px 6px; font-size: 13px; }
.product.dim .pic { filter: grayscale(.5); opacity: .85; }
.add-card { border: 2px dashed #efcfd2; border-radius: 22px; background: rgba(255,255,255,.55); min-height: 300px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 15px; }
.add-card:hover { border-color: var(--primary); color: var(--primary-dark); background: #fff; }
.add-card div { font-size: 40px; }

.thumb { display: grid; place-items: center; background: linear-gradient(135deg, var(--c-soft, #fde6eb), #fff); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ready { --sbg: var(--ready-bg); --sfg: var(--ready-fg); }
.reserved { --sbg: var(--reserved-bg); --sfg: var(--reserved-fg); }
.rented { --sbg: var(--rented-bg); --sfg: var(--rented-fg); }
.returned { --sbg: var(--returned-bg); --sfg: var(--returned-fg); }
.cleaning { --sbg: var(--cleaning-bg); --sfg: var(--cleaning-fg); }
.maintenance { --sbg: var(--maintenance-bg); --sfg: var(--maintenance-fg); }
.planned { --sbg: var(--planned-bg); --sfg: var(--planned-fg); }
.status, .lg { background: var(--sbg); color: var(--sfg); }

/* Dialogs */
dialog { border: 0; padding: 0; border-radius: 26px; background: #fffaf7; box-shadow: 0 30px 80px rgba(90, 64, 55, .35); width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--ink); }
dialog::backdrop { background: rgba(90, 64, 55, .45); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.dlg { padding: 22px 24px 24px; }
.dlg.narrow { max-width: 460px; }
#confirm-dialog, #cat-dialog { width: min(460px, calc(100vw - 24px)); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.dlg-head h2 { font-size: 22px; }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.spacer { flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label, .lbl { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.img-pick { display: flex; gap: 14px; margin-bottom: 14px; align-items: center; }
.img-preview { width: 120px; height: 120px; border-radius: 20px; flex: none; font-size: 48px; border: 1px solid var(--line); }
.img-actions { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.file-btn { cursor: pointer; }
.summary { margin-top: 14px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.summary:empty { display: none; }
.warn { margin-top: 10px; padding: 10px 14px; background: #fff1f3; color: #b0304a; border-radius: 14px; font-size: 14px; border: 1px solid #ffc9d3; }
.confirm-text { font-size: 16px; line-height: 1.6; white-space: pre-line; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches label { width: 34px; height: 34px; border-radius: 50%; background: var(--c); cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); position: relative; }
.swatches input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatches label:has(input:checked) { box-shadow: 0 0 0 3px var(--c); }
.swatches label:has(input:focus-visible) { outline: 3px solid #f3a0b4; outline-offset: 3px; }

/* Detail */
.dt-top { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.dt-top .thumb { width: 200px; height: 200px; border-radius: 22px; font-size: 80px; }
.dt-info { display: flex; flex-direction: column; gap: 8px; }
.dt-info h3 { font-size: 22px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.kv span { display: block; font-size: 11.5px; color: var(--muted); }
.kv b { font-weight: 600; }
.dt-desc { white-space: pre-wrap; font-size: 14px; color: #5f566e; }
.dt-sec { margin-top: 18px; }
.dt-sec h4 { margin-bottom: 8px; font-size: 16px; }
.bk-row { display: flex; align-items: center; gap: 10px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; margin-bottom: 6px; text-align: left; font-size: 14px; }
.bk-row:hover { border-color: #f3a0b4; }
.bk-row .when { font-weight: 600; min-width: 110px; }
.bk-row .who { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mini-month .h { font-size: 11px; color: var(--muted); text-align: center; }
.mini-month .d { height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; background: var(--sbg, #fcf7f4); color: var(--sfg, var(--ink)); }
.mini-month .d.ready { background: #fcf7f4; color: var(--ink); }
.mini-month .d.today { box-shadow: inset 0 0 0 2px var(--primary); font-weight: 700; }
.mini-month .d.past { opacity: .45; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #5a4037; color: #fff; padding: 12px 20px; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); z-index: 100; font-size: 14px; max-width: calc(100vw - 32px); animation: pop .2s ease-out; }
.foot { text-align: center; padding: 24px 0 40px; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .card { padding: 16px; border-radius: 20px; }
  .brand h1 { font-size: 20px; }
  .today-pill { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .total { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .dt-top { grid-template-columns: 1fr; }
  .dt-top .thumb { width: 100%; height: 200px; }
  .kv { grid-template-columns: 1fr 1fr; }
  .list-tools, .list-tools .field, .list-tools input[type=search] { width: 100%; min-width: 0; }
  .cal .item-col { width: 130px; }
  .cal .row-name small { display: none; }
  .img-pick { flex-direction: column; align-items: stretch; }
  .img-preview { width: 100%; height: 160px; }
  .dlg { padding: 18px; }
}

/* ---------- v2: cloud, discounts, returns, customer page ---------- */
.sync-pill { border-radius: 999px; padding: 6px 12px; font-size: 12.5px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.sync-pill.ok { color: var(--ready-fg); background: var(--ready-bg); border-color: transparent; }
.sync-pill.saving { color: var(--reserved-fg); background: var(--reserved-bg); border-color: transparent; }
.sync-pill.error { color: #fff; background: #ff6b81; border-color: transparent; }
.sync-pill.local { color: var(--muted); }
.menu-user { font-size: 12.5px; color: var(--muted); padding: 8px 12px 4px; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.lg.late { background: #ff6b81; color: #fff; }
.money-box.plan { background: linear-gradient(135deg, #f9f1ec, #fde6eb); }
.minus { color: #d0435d; }
.hidden-tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 2px 8px; font-size: 13px; }
.bk-row .fee { color: #d0435d; font-size: 11.5px; white-space: nowrap; }
.return-box { margin: 14px 0 0; border: 1.5px dashed #bfe8d3; background: #f3fcf7; border-radius: 16px; padding: 12px 14px 14px; }
.return-box legend { font-family: 'Mali', sans-serif; font-weight: 600; padding: 0 6px; color: var(--ready-fg); }
.settle { margin-top: 10px; font-size: 14px; background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid #d3f0e1; }
.sec-title { margin: 20px 0 8px; font-size: 16px; }
.tiers { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 6px; }
.tier, .inline { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.field.w-num { width: 76px; padding: 7px 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.invite { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite code { background: #fff; border: 1px dashed #efcfd2; border-radius: 10px; padding: 7px 12px; font-size: 14px; word-break: break-all; }

.auth { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background:
  radial-gradient(circle at 90% 10%, #fde0e6 0, transparent 35%), radial-gradient(circle at 10% 80%, #ffeadd 0, transparent 35%), var(--bg); }
.auth-card { width: min(400px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 24px; text-align: center; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; text-align: left; }
.auth-card form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; }
.auth-card h2 { margin-top: 10px; }
.auth-card #auth-loading { margin-top: 18px; }
.brand-icon.big { width: 64px; height: 64px; font-size: 32px; border-radius: 22px; margin: 0 auto; }
.link { background: none; border: 0; color: var(--primary-dark); font-size: 14px; padding: 4px; text-decoration: underline; }

/* customer page */
.disc-note { margin-top: 14px; background: linear-gradient(135deg, #fff0c2, #fde6eb); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.only-free { margin: -6px 0 16px; }
.center { text-align: center; padding: 20px 0; }
.strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin-top: 4px; }
.strip .dot { height: 26px; border-radius: 7px; display: grid; place-items: center; }
.strip .dot small { font-size: 10px; }
.strip .dot.f { background: var(--ready-bg); color: var(--ready-fg); }
.strip .dot.b { background: #f1ecf3; color: #b3a9bd; text-decoration: line-through; }
.strip .dot.sel { box-shadow: inset 0 0 0 2px var(--primary); font-weight: 700; }
.shop-page .product .pic { cursor: default; }
@media (max-width: 640px) {
  .top-actions a.btn { padding: 8px 10px; font-size: 13px; }
  .sync-pill { display: none; }
}

/* ---------- Miku Closet Box branding (matches the logo) ---------- */
[data-color="cherry"] { --c: #e0566a; --c-soft: #fde1e4; }
[data-color="cocoa"] { --c: #a9806e; --c-soft: #f4e8e1; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; flex: none; box-shadow: 0 4px 14px rgba(228, 120, 147, .25); }
.brand-name { font-family: 'Dancing Script', 'Mali', cursive; font-size: 30px; font-weight: 700; color: #6b4a3f; line-height: 1.05; }
.brand .eyebrow { letter-spacing: .18em; color: #c0727f; margin-top: 2px; }
.tagline { font-family: 'Dancing Script', 'Mali', cursive; font-size: 22px; color: #e47893; margin-top: 2px; }
.sparkle { color: #f3a0b4; }

.hero { align-items: center; }
.hero-logo {
  width: 150px; height: 150px; border-radius: 50%; flex: none;
  box-shadow: 0 12px 34px rgba(228, 120, 147, .28), 0 0 0 8px rgba(255, 255, 255, .7);
  animation: bob 6s ease-in-out infinite;
}
.hero-text { flex: 1; min-width: 240px; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg) } 50% { transform: translateY(-6px) rotate(1.5deg) } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

/* soft ribbon line under the topbar, like the logo's bow divider */
.topbar { border-bottom: 0; box-shadow: 0 1px 0 #f1e2dc, 0 3px 0 rgba(243, 160, 180, .25); }
.card { border-color: #f3e4de; }
.dash h2, .cal-card h2, .grid-2 h2, .list-sec h2 { color: #6b4a3f; }
.tab[aria-selected="true"] { box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 35%, transparent); }

.auth-logo { width: 150px; height: 150px; border-radius: 50%; display: block; margin: -4px auto 4px; box-shadow: 0 10px 30px rgba(228, 120, 147, .25); }
.auth-card { border-radius: 32px; }

.shop-hero .hero-logo { width: 190px; height: 190px; }
.shop-hero h2 { color: #6b4a3f; }

@media (max-width: 640px) {
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 24px; }
  .brand .eyebrow { font-size: 9px; letter-spacing: .12em; }
  .hero { flex-direction: column; align-items: center; text-align: center; padding-top: 20px; }
  .hero-logo, .shop-hero .hero-logo { width: 130px; height: 130px; }
  .hero-actions { justify-content: center; width: 100%; }
  .hero-actions .btn { flex: 1; }
}
.btn.soft { border-color: #f6cdd5; }
@media (max-width: 640px) {
  .brand-name { white-space: nowrap; font-size: 22px; }
  .brand .eyebrow { display: none; }
  .top-actions { gap: 6px; }
  .top-actions .btn .lbl { display: none; }
  .top-actions .btn { width: 40px; height: 40px; padding: 0; font-size: 17px; }
}

/* plain shop name + tagline (instead of script font) */
.brand-name { font-family: 'Prompt', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.tagline { font-family: 'Prompt', sans-serif; font-size: 15px; font-weight: 400; color: #c0727f; letter-spacing: .02em; }
.pay-steps { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #f1e2dc; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) {
  .brand-name { font-size: 17px; }
  .hero { gap: 10px; padding-bottom: 14px; }
}
/* customer page: date pickers sit under the heading */
.shop-range { margin-top: 14px; }
.shop-range label { min-width: 170px; }
@media (max-width: 640px) { .shop-range label { flex: 1; min-width: 0; } }

/* ---------- guest booking (customer page) ---------- */
.mt { margin-top: 18px; }
.mt-s { margin-top: 10px; }
.product .acts .ask-btn { flex: 0 0 auto; padding: 8px 12px; }
.gb-summary { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-bottom: 14px; }
.gb-summary .thumb { width: 64px; height: 64px; border-radius: 14px; flex: none; font-size: 30px; }
.pay-box, .slip-box { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.pay-box h3, .slip-box h3 { margin-bottom: 8px; }
.gb-due { font-size: 15px; }
.gb-amount { font-family: 'Mali', sans-serif; font-size: 26px; font-weight: 700; color: var(--primary-dark); margin-left: 6px; }
.pay-cols { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.gb-qr { text-align: center; }
.gb-qr svg { width: 180px; height: 180px; display: block; margin: 0 auto 4px; border-radius: 12px; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.gb-bank { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.slip-drop { display: grid; place-items: center; min-height: 120px; border: 2px dashed #efcfd2; border-radius: 16px; cursor: pointer; background: #fffbf9; color: var(--muted); text-align: center; padding: 10px; }
.slip-drop:hover { border-color: var(--primary); color: var(--primary-dark); }
.slip-drop img { max-height: 260px; max-width: 100%; border-radius: 10px; }
.slip-check { margin-top: 10px; font-size: 13.5px; padding: 8px 12px; border-radius: 12px; }
.slip-check.ok { background: var(--ready-bg); color: var(--ready-fg); }
.slip-check.warn-soft { background: var(--reserved-bg); color: var(--reserved-fg); }
.slip-check.bad { background: #fff1f3; color: #b0304a; }
.gb-done { text-align: center; padding: 10px 0 4px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gb-done .done-ico { font-size: 54px; }
.bk-no { font-family: 'Mali', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: .06em; color: var(--primary-dark); }
.status-card { margin-top: 26px; }
.status-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.status-form .field { flex: 1; min-width: 180px; width: auto; }
.st-result { margin-top: 10px; background: #fbf8fc; border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* ---------- admin dashboard ---------- */
.dash-link { position: relative; }
.dash-link .badge { position: absolute; top: -6px; right: -6px; background: #ff4d6d; color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.dash-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 26px 0 14px; }
.dash-title h2 { font-size: 24px; color: #6b4a3f; }
.kpis { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.kpi .lbl { font-size: 13px; color: var(--muted); }
.kpi strong { font-family: 'Mali', sans-serif; font-size: 26px; line-height: 1.25; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.kpi.hero { background: linear-gradient(135deg, #fde6eb, #fff0c2); border-color: transparent; }
.kpi.hero strong { font-size: 34px; color: #6b4a3f; }
.kpi.alert { background: #fff1f3; border-color: #ffc9d3; }
.kpi.alert strong { color: #d0435d; }
.up { color: var(--ready-fg); font-weight: 600; }
.down { color: #d0435d; font-weight: 600; }
.dash-grid { grid-template-columns: 1.5fr 1fr; }
.month-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 230px; padding-top: 10px; }
.mcol { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.mbar { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #f6b3c3, #e47893); }
.mcol.now .mbar { background: linear-gradient(180deg, #c99a86, #a9806e); }
.mval { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mlbl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart-note { margin-top: 10px; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar-top { display: flex; justify-content: space-between; font-size: 14px; }
.hbar .bar > span { background: var(--c, #e47893); }
.top-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.top-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.top-table td { padding: 8px 4px; border-bottom: 1px solid #f5ebe6; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: #ff4d6d; color: #fff; font-size: 14px; font-family: 'Prompt', sans-serif; padding: 0 7px; vertical-align: middle; }
.inbox { display: flex; flex-direction: column; gap: 12px; }
.gcard { display: grid; grid-template-columns: 120px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; }
.gcard.pending { border-color: #f6cdd5; box-shadow: 0 6px 18px rgba(228, 120, 147, .12); }
.gcard.rejected, .gcard.cancelled { opacity: .75; }
.slip-thumb { width: 120px; height: 160px; border-radius: 12px; border: 1px solid var(--line); background: #fbf8fc center/cover no-repeat; display: grid; place-items: end center; padding: 6px; color: var(--muted); font-size: 12px; }
.slip-thumb span { background: rgba(255,255,255,.9); border-radius: 999px; padding: 2px 8px; }
.gbody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gbody h3 { font-size: 16px; }
.gtop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gno { font-family: 'Mali', sans-serif; letter-spacing: .04em; }
.gnote { background: #fbf8fc; border-radius: 10px; padding: 6px 10px; }
.gmoney { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; margin-top: 2px; }
.gmoney .due { background: var(--primary-soft); color: #b9536d; border-radius: 999px; padding: 2px 10px; }
.checks { color: var(--muted); }
.gacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.slip-big { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto 10px; border-radius: 12px; }
@media (max-width: 960px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .hero { grid-column: span 2; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gcard { grid-template-columns: 1fr; }
  .slip-thumb { width: 100%; height: 140px; }
  .gacts .btn { flex: 1; }
  .month-chart { height: 180px; gap: 3px; }
  .mval { display: none; }
  .mcol:nth-child(even) .mlbl { visibility: hidden; }
  .gb-qr svg { width: 160px; height: 160px; }
}

/* ---------- booking from chat ---------- */
.chat-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #f8efea; border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.chat-steps button { border: 0; background: none; border-radius: 11px; padding: 9px 8px; font-size: 14px; color: var(--muted); }
.chat-steps button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px rgba(120, 80, 60, .1); }
.chat-text { font-size: 13.5px; line-height: 1.55; }
.chip-row { display: flex; gap: 8px; margin-top: 8px; }
.cp-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
#cp-found { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.found { border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }
.found.ok { background: var(--ready-bg); color: var(--ready-fg); }
.found.miss { background: var(--reserved-bg); color: var(--reserved-fg); }

/* ======================================================================
   Muse Closet Box theme — rose gold & champagne, serif headings.
   Overrides the earlier playful styles above.
   ====================================================================== */
:root {
  --ink: #3a2b27;
  --muted: #8c7770;
  --line: #ebe0d9;
  --bg: #faf6f2;
  --card: #ffffff;
  --primary: #b57a6b;
  --primary-dark: #94604f;
  --primary-soft: #f4e9e3;
  --gold: #b9897a;
  --shadow: 0 8px 28px rgba(80, 50, 40, .07);
  --radius: 18px;
  --serif: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
}
body {
  background:
    radial-gradient(circle at 100% 0%, #f3e5de 0, transparent 34%),
    radial-gradient(circle at 0% 60%, #f6eee8 0, transparent 30%),
    var(--bg);
  letter-spacing: .005em;
}
.blobs { display: none; }
h1, h2, h3, h4, .tab, .kpi strong, .stat strong, .money-box strong, .bk-no, .gb-amount, .gno, .cal .dnum, .product h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .01em;
}
h2 { font-size: 23px; }
.dash h2, .cal-card h2, .grid-2 h2, .list-sec h2, .shop-hero h2, .dash-title h2 { color: var(--ink); }
:focus-visible { outline-color: #d1a596; }

/* header & brand */
.topbar { background: rgba(255, 253, 251, .88); box-shadow: 0 1px 0 var(--line); }
.brand-logo { width: 48px; height: 48px; border-radius: 0; box-shadow: none; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; color: #6f4a3f; letter-spacing: .06em; }
.brand .eyebrow { color: var(--gold); letter-spacing: .3em; font-size: 10px; }
.hero-logo, .shop-hero .hero-logo { width: 190px; height: 190px; border-radius: 0; box-shadow: none; animation: none; object-fit: contain; }
.auth-logo { width: 190px; height: 190px; border-radius: 0; box-shadow: none; object-fit: contain; margin: -10px auto 0; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold); letter-spacing: .04em; }
.kicker, .eyebrow { color: var(--gold); }
.today-pill, .sync-pill { border-radius: 8px; }

/* buttons & inputs */
.btn { border-radius: 10px; letter-spacing: .02em; }
.btn.primary { background: linear-gradient(135deg, #c8988a, #a66e5f); box-shadow: 0 4px 14px rgba(150, 95, 80, .22); }
.btn.primary:hover { box-shadow: 0 6px 18px rgba(150, 95, 80, .3); }
.btn.soft { background: var(--primary-soft); color: #87584a; border-color: #ead7ce; }
.btn.ghost:hover { background: #fbf6f3; }
.btn.danger { background: #b2524e; }
.btn.danger-ghost { color: #a8473f; border-color: #efd3cf; }
.field { border-color: #e6d9d1; border-radius: 10px; }
.field:focus { border-color: #c9a092; box-shadow: 0 0 0 4px #f4e9e3; }
.chip { border-radius: 8px; }
.chip.on { background: var(--ink); border-color: var(--ink); }
.seg button.on { color: var(--ink); }

/* tabs & category colours in rose gold tones */
.tab { border-width: 1px; font-size: 17px; }
.tab[aria-selected="true"] { box-shadow: 0 4px 12px rgba(80, 50, 40, .12); }
.tab-add, .tab-edit { border-width: 1px; border-radius: 999px; }
[data-color="pink"] { --c: #b98577; --c-soft: #f4e8e3; }
[data-color="cocoa"] { --c: #7f6255; --c-soft: #efe7e2; }
[data-color="cherry"] { --c: #a85a58; --c-soft: #f5e4e2; }
[data-color="peach"] { --c: #c49274; --c-soft: #f6ebe3; }
[data-color="butter"] { --c: #b79a62; --c-soft: #f4eedf; }

/* cards: flat white with hairline borders */
.card, .kpi, .product, .gcard, .pay-box, .slip-box, .auth-card { border-radius: var(--radius); border-color: var(--line); }
.product { border-radius: 16px; }
.product:hover { box-shadow: 0 14px 30px rgba(80, 50, 40, .1); }
.product .price { color: var(--primary-dark); }
.thumb { background: linear-gradient(135deg, var(--c-soft, #f4e9e3), #fffdfb); }
.add-card { border-width: 1px; border-color: #e2cfc6; border-radius: 16px; }
.stat { background: #fff !important; border: 1px solid var(--line); border-radius: 14px; }
.stat .lbl { color: var(--muted); }
.stat .emo { opacity: .28; }
.stat.ready strong { color: #4d7a62; }
.stat.reserved strong { color: #9a7432; }
.stat.rented strong { color: #a5574f; }
.stat.off strong { color: #6e5d84; }
.stat.active { outline: 2px solid var(--primary); outline-offset: -2px; }
.avail { background: #fdfaf7; border: 1px solid var(--line); border-radius: 14px; }
.avail-head h3 { color: var(--ink); }
.money-box { border-radius: 12px; }
.money-box.hl, .kpi.hero { background: linear-gradient(135deg, #f6ece6, #fbf5ef); }
.kpi.hero strong { color: #6f4a3f; }
.bar > span { background: linear-gradient(90deg, #d3ab9d, #a66e5f); }
.bar.pink > span { background: linear-gradient(90deg, #e2c3b8, #b57a6b); }
.mbar { background: linear-gradient(180deg, #dcb7aa, #a66e5f); border-radius: 6px 6px 2px 2px; }
.mcol.now .mbar { background: linear-gradient(180deg, #9a7e72, #6f4a3f); }
.pill-count, .tab .badge, .dash-link .badge { background: #a8473f; }
.calm, .task { border-radius: 12px; }
.cal-scroll { border-radius: 14px; }
.cal thead th.today .dnum { background: var(--primary); }
.cal thead th.we, .cal td.we { background: #fcf8f5; }
dialog { border-radius: 20px; background: #fffdfb; }
.toast { background: var(--ink); border-radius: 10px; }
.disc-note { background: linear-gradient(135deg, #f6ece6, #fbf5ef); border-radius: 12px; }
@media (max-width: 640px) {
  .brand-name { font-size: 21px; }
  .hero-logo, .shop-hero .hero-logo { width: 150px; height: 150px; }
}
/* Cormorant uses old-style figures by default ("1" reads as "I"): force lining numbers */
h1, h2, h3, h4, .tab, .kpi strong, .stat strong, .money-box strong, .bk-no, .gb-amount, .gno, .cal .dnum, .product h3 {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.stat strong, .kpi strong, .money-box strong { font-size: 32px; }

/* SEO intro on the customer page */
.seo-about { max-width: 720px; margin: 28px auto 0; text-align: center; line-height: 1.7; }
.seo-about h2 { font-size: 1.05rem; margin: 0 0 6px; color: var(--ink); }
.seo-about p { margin: 0; }

/* Item pages (/item/:id) */
.item-page .brand { text-decoration: none; color: inherit; }
.item-page .brand-name { margin: 0; }
.crumbs { margin: 18px 0 12px; }
.crumbs a { color: var(--primary); text-decoration: none; }
.item-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.item-pic .thumb { width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; font-size: 96px; overflow: hidden; }
.item-pic .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-info h1 { font-size: 1.7rem; margin: 2px 0 6px; line-height: 1.3; }
.item-info h2 { font-size: 1.05rem; margin: 20px 0 6px; }
.item-info p { margin: 4px 0; line-height: 1.7; }
.item-spec { color: var(--muted, #8a7a74); }
.item-prices { list-style: none; padding: 0; margin: 14px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.item-prices li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; background: #fff; }
.item-prices li:first-child { border-color: var(--primary); color: var(--primary); }
.btn.big { margin-top: 14px; padding: 12px 22px; font-size: 1rem; display: inline-flex; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.item-tags span { background: #f6ece7; border-radius: 999px; padding: 3px 12px; font-size: .9rem; }
.related { margin-top: 32px; }
.related h2 { font-size: 1.2rem; margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.related-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding-bottom: 10px; }
.related-card .thumb { width: 100%; aspect-ratio: 1; border-radius: 0; font-size: 48px; overflow: hidden; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card > span { padding: 0 10px; }
.related-name { font-weight: 600; font-size: .92rem; line-height: 1.4; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { color: var(--primary); text-decoration: underline; }
.product.spot { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 720px) {
  .item-detail { grid-template-columns: 1fr; gap: 16px; }
  .item-info h1 { font-size: 1.4rem; }
}

/* Outfit guides (/guide) */
.guide { max-width: 760px; margin: 0 auto; }
.guide h1 { font-size: 1.7rem; line-height: 1.35; margin: 0 0 10px; }
.guide h2 { font-size: 1.15rem; margin: 24px 0 6px; }
.guide p { line-height: 1.85; margin: 6px 0; }
.guide-intro { font-size: 1.05rem; color: var(--ink); }
.faq dt { font-weight: 600; margin-top: 12px; }
.faq dd { margin: 4px 0 0; line-height: 1.75; color: var(--muted, #8a7a74); }
.guide-list { padding-left: 18px; line-height: 1.7; }
.guide-list li { margin: 12px 0; }
.guide-page .related { max-width: 760px; margin: 32px auto 0; }
.guide-page .center { text-align: center; margin-top: 18px; }
.guide a, .item-info p a, .guide-links a, .guide-page p.center.small a { color: var(--primary); }
.guide-links { margin-top: 8px !important; }
@media (max-width: 720px) { .guide h1 { font-size: 1.4rem; } }
.foot a { color: var(--primary); }
