/* 品式 PINS HAIR SALON — 共用樣式
   主視覺：黑雨遮、白牆、木質門窗、黑白圓形剪刀 Logo */
:root {
  --ink: #151515;
  --ink-2: #2b2b2b;
  --paper: #f6f4f0;
  --white: #ffffff;
  --wood: #9a6a42;
  --wood-dark: #7a5233;
  --wood-soft: #efe5d9;
  --line: #e3ded6;
  --muted: #76706a;
  --ok: #3d7a52;
  --ok-soft: #e4f0e7;
  --warn: #a8641c;
  --warn-soft: #f8ecdc;
  --danger: #b03a2e;
  --danger-soft: #f7e3e0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-en: "Jost", "Noto Sans TC", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 15px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
.en { font-family: var(--font-en); letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.wood { background: var(--wood); border-color: var(--wood); }
.btn.wood:hover { background: var(--wood-dark); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--wood-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* 表單 */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--wood); outline-offset: 1px; border-color: var(--wood); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 8px; margin: 4px 14px 4px 0; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* 卡片、表格、標籤 */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #eee; color: var(--ink-2); white-space: nowrap; }
.tag.pending { background: var(--warn-soft); color: var(--warn); }
.tag.confirmed { background: #e6edf5; color: #2f5a84; }
.tag.done, .tag.paid { background: var(--ok-soft); color: var(--ok); }
.tag.cancelled, .tag.void, .tag.no_show { background: #eee; color: #888; }
.tag.online { background: var(--wood-soft); color: var(--wood-dark); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
td.r, th.r { text-align: right; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #faf8f5; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-size: 14px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
