/* ==========================================================================
   Aurelle — Owner Dashboard
   ========================================================================== */
:root {
  --ivory: #f7f1ea;
  --cream: #fbf8f4;
  --sand: #ede3d8;
  --blush: #e8c5b8;
  --blush-soft: #f3e1d9;
  --rose: #b76e5d;
  --rose-deep: #9a5747;
  --rose-light: #dcaa9c;
  --gold: #c2a06b;
  --espresso: #2b1e1a;
  --ink: #3a2c27;
  --muted: #7d6b63;
  --line: rgba(43, 30, 26, 0.1);
  --white: #fff;
  --good: #2f8a5b;
  --good-bg: #e5f3ea;
  --warn: #a8690f;
  --warn-bg: #fbefd9;
  --bad: #b3463b;
  --bad-bg: #f9e3e0;
  --info: #3d6a9e;
  --info-bg: #e5edf7;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(43, 30, 26, .05), 0 4px 14px -6px rgba(43, 30, 26, .08);
  --shadow: 0 24px 60px -24px rgba(43, 30, 26, .3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --side: 264px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--espresso); line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
svg { flex: none; }

/* ---------- Buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .06em; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .2s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn:active { transform: scale(.98); }
.btn--sm { padding: 10px 16px; font-size: 12.5px; }
.btn--xs { padding: 6px 12px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--espresso); color: var(--ivory); }
.btn--dark:hover { background: var(--rose); }
.btn--rose { background: var(--rose); color: var(--white); }
.btn--rose:hover { background: var(--rose-deep); }
.btn--ghost { border-color: var(--line); background: var(--white); color: var(--espresso); }
.btn--ghost:hover { border-color: var(--espresso); }
.btn--danger { border-color: rgba(179, 70, 59, .3); color: var(--bad); background: var(--white); }
.btn--danger:hover { background: var(--bad); color: var(--white); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; position: relative; transition: background .2s; }
.icon-btn:hover { background: rgba(43, 30, 26, .06); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.input, .field input, .field select, .field textarea, select.input {
  font: inherit; font-size: 14.5px; color: var(--espresso); padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
select.input, .field select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237d6b63' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(183, 110, 93, .14); }
.input--sm { padding: 6px 10px; font-size: 13.5px; border-radius: 10px; }

.switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d9cdc4; transition: background .25s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

.seg { display: inline-flex; background: var(--sand); padding: 3px; border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 7px 14px; border-radius: 9px; font-size: 13px; color: var(--muted); transition: background .2s, color .2s; }
.seg button.is-active { background: var(--white); color: var(--espresso); box-shadow: var(--shadow-sm); }

/* Status pills — dot + label, never colour alone */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--confirmed { background: var(--info-bg); color: var(--info); }
.pill--completed, .pill--delivered { background: var(--good-bg); color: var(--good); }
.pill--cancelled, .pill--refunded { background: var(--bad-bg); color: var(--bad); }
.pill--no-show { background: var(--warn-bg); color: var(--warn); }
.pill--paid { background: var(--warn-bg); color: var(--warn); }
.pill--shipped { background: var(--info-bg); color: var(--info); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; letter-spacing: .04em; background: var(--sand); color: var(--ink); }
.tag--new { background: var(--blush-soft); color: var(--rose-deep); }
.tag--vip { background: #f3ead8; color: #8a6a2e; }
.tag--web { background: var(--good-bg); color: var(--good); }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login__visual { position: relative; background: url("https://images.unsplash.com/photo-1633681926022-84c23e8cb2d6?auto=format&fit=crop&w=1400&q=80") center / cover; display: flex; align-items: flex-end; padding: 56px; }
.login__visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 30, 26, .85), rgba(43, 30, 26, .15)); }
.login__quote { position: relative; color: var(--ivory); max-width: 460px; }
.login__quote p { font-family: var(--font-display); font-style: italic; font-size: 32px; line-height: 1.25; margin: 22px 0 14px; }
.login__quote small { letter-spacing: .24em; text-transform: uppercase; font-size: 11px; color: var(--blush); }
.login__mark { width: 52px; height: 52px; border-radius: 50%; background: var(--blush); color: var(--espresso); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 28px; }
.login__panel { display: grid; place-items: center; padding: 40px 24px; background: var(--cream); }
.login__form { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login__form h1 { font-family: var(--font-display); font-size: 44px; font-weight: 400; margin-top: 30px; }
.login__form .muted { margin-top: -10px; margin-bottom: 8px; }
.login__form .btn { padding: 14px; margin-top: 6px; }
.login__hint { font-size: 13px; color: var(--muted); background: var(--blush-soft); padding: 10px 14px; border-radius: 12px; }
.login__back { font-size: 13px; color: var(--rose); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; background: var(--espresso); color: var(--blush); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 22px; flex: none; }
.brand__text { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--espresso); line-height: 1; display: flex; flex-direction: column; }
.brand__text small { font-family: var(--font-body); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; margin-top: 5px; color: rgba(247, 241, 234, .55); font-weight: 400; }
.brand--light .brand__mark { background: var(--blush); color: var(--espresso); }
.brand--light .brand__text { color: var(--ivory); }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--espresso); color: rgba(247, 241, 234, .75); padding: 26px 16px 20px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; z-index: 60; }
.sidebar .brand { padding: 0 10px; }
.sidenav { display: grid; gap: 2px; }
.sidenav__label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 241, 234, .35); padding: 16px 12px 6px; }
.sidenav button, .sidebar__link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; color: rgba(247, 241, 234, .72); text-align: left; transition: background .2s, color .2s; }
.sidenav button:hover, .sidebar__link:hover { background: rgba(247, 241, 234, .06); color: var(--ivory); }
.sidenav button.is-active { background: rgba(232, 197, 184, .14); color: var(--white); }
.sidenav button.is-active svg { color: var(--blush); }
.sidenav svg, .sidebar__link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidenav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rose); color: var(--white); font-size: 11px; display: grid; place-items: center; font-weight: 500; }
.sidebar__foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid rgba(247, 241, 234, .1); padding-top: 14px; }
.scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 16px 32px; background: rgba(247, 241, 234, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__menu { display: none; }
.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.topbar__title p { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; width: 260px; }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search input { border: 0; outline: 0; font: inherit; font-size: 14px; padding: 10px 0; width: 100%; background: transparent; color: var(--espresso); }
.search:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(183, 110, 93, .14); }
.avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: var(--shadow-sm); }
.notif { position: relative; }
.dot-badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 500; }
.notif__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 340px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.notif__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 500; }
.notif__head button { font-size: 12.5px; color: var(--rose); }
.notif__item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; width: 100%; text-align: left; transition: background .2s; }
.notif__item:hover { background: var(--cream); }
.notif__item:last-child { border-bottom: 0; }
.notif__icon { width: 32px; height: 32px; border-radius: 10px; background: var(--blush-soft); color: var(--rose-deep); display: grid; place-items: center; flex: none; }
.notif__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.notif__item small { display: block; color: var(--muted); font-size: 12px; }
.notif__empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

.views { padding: 28px 32px 60px; }
.view { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Cards & grid ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; flex-wrap: wrap; }
.card__head h3 { font-size: 16px; font-weight: 500; }
.card__head p { font-size: 13px; color: var(--muted); }
.card__body { padding: 18px 22px 22px; }
.grid { display: grid; gap: 20px; }
.grid--kpi { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: 1.65fr 1fr; }
.grid--2e { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 20px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .spacer { flex: 1; }
.toolbar .input { width: auto; }

.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.hello h2 { font-family: var(--font-display); font-size: 36px; font-weight: 400; }
.hello h2 em { color: var(--rose); }
.hello p { color: var(--muted); }
.hello__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* KPI tiles */
.kpi { padding: 20px 22px; }
.kpi__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.kpi__label svg { width: 16px; height: 16px; fill: none; stroke: var(--rose); stroke-width: 1.8; }
.kpi__value { font-family: var(--font-display); font-size: 40px; font-weight: 500; color: var(--espresso); line-height: 1.1; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.kpi__delta { font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.kpi__delta.up { color: var(--good); }
.kpi__delta.down { color: var(--bad); }
.kpi__delta span { color: var(--muted); }

/* Charts */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { font-size: 11px; fill: var(--muted); font-family: var(--font-body); }
.chart .bar { fill: var(--rose-light); transition: fill .15s; }
.chart .bar.is-today { fill: var(--rose); }
.chart .bar.is-hover { fill: var(--rose-deep); }
.chart .hit { fill: transparent; cursor: pointer; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 12px; font-size: 13.5px; }
.hbar__track { height: 10px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.hbar__fill { height: 100%; background: var(--rose); border-radius: 0 4px 4px 0; transition: width .8s var(--ease); }
.hbar__val { text-align: right; font-weight: 500; color: var(--espresso); font-variant-numeric: tabular-nums; }
.hbar:hover .hbar__fill { background: var(--rose-deep); }
.chart-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--rose-light); margin-right: 6px; vertical-align: -1px; }
.chart-legend i.today { background: var(--rose); }
.tip { position: fixed; z-index: 400; pointer-events: none; background: var(--espresso); color: var(--ivory); padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.tip strong { display: block; font-size: 15px; font-weight: 500; }

/* Lists */
.sched { display: grid; }
.sched__item { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.sched__item:last-child { border-bottom: 0; }
.sched__time { font-weight: 500; color: var(--espresso); font-variant-numeric: tabular-nums; font-size: 14px; }
.sched__time small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.sched__main { min-width: 0; }
.sched__main strong { display: block; font-weight: 500; color: var(--espresso); font-size: 14.5px; }
.sched__main span { font-size: 13px; color: var(--muted); }
.sched__now { position: relative; height: 0; border-top: 2px solid var(--rose); margin: 10px 0; }
.sched__now::before { content: "Now"; position: absolute; left: 0; top: -10px; background: var(--rose); color: #fff; font-size: 10.5px; padding: 1px 8px; border-radius: 999px; letter-spacing: .06em; }
.feed { display: grid; }
.feed__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: flex-start; }
.feed__item:last-child { border-bottom: 0; }
.feed__item time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--cream); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--cream); }
.table tbody tr.is-click { cursor: pointer; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td strong { font-weight: 500; color: var(--espresso); }
.table td small { display: block; color: var(--muted); font-size: 12.5px; }
.table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--rose); }
.who { display: flex; align-items: center; gap: 10px; }
.who img, .initials { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.initials { background: var(--blush-soft); color: var(--rose-deep); display: grid; place-items: center; font-size: 12.5px; font-weight: 500; }
.status-select { padding: 5px 30px 5px 10px; border-radius: 999px; font-size: 12.5px; width: auto; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* Calendar */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-head h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 0 8px; }
.cal { overflow-x: auto; }
.cal__grid { display: grid; min-width: 720px; position: relative; }
.cal__colhead { position: sticky; top: 0; z-index: 3; background: var(--cream); display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.cal__colhead img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cal__colhead small { display: block; color: var(--muted); font-size: 12px; }
.cal__corner { background: var(--cream); border-bottom: 1px solid var(--line); }
.cal__times { position: relative; }
.cal__time { position: absolute; right: 10px; font-size: 11.5px; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal__col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--slot) - 1px), var(--line) calc(var(--slot) - 1px), var(--line) var(--slot)); }
.cal__block {
  position: absolute; left: 6px; right: 6px; border-radius: 10px; padding: 6px 10px; overflow: hidden;
  background: var(--blush-soft); border-left: 3px solid var(--rose); font-size: 12.5px; line-height: 1.35; text-align: left;
  transition: transform .15s, box-shadow .15s;
}
.cal__block:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); z-index: 2; }
.cal__block strong { display: block; font-weight: 500; color: var(--espresso); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 40px; }
.cal__block span { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__block--completed { background: var(--good-bg); border-left-color: var(--good); }
.cal__block--cancelled { background: repeating-linear-gradient(135deg, #f6efe9 0 6px, #efe6de 6px 12px); border-left-color: #b9aaa1; opacity: .75; }
.cal__block--cancelled strong { text-decoration: line-through; }
.cal__block--no-show { background: var(--warn-bg); border-left-color: var(--warn); }
.cal__block--web::after { content: "Online"; position: absolute; top: 6px; right: 8px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--good); font-weight: 600; }
.cal__nowline { position: absolute; left: 0; right: 0; border-top: 2px solid var(--rose); z-index: 4; pointer-events: none; }
.cal__nowline::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; border-left: 3px solid; }

/* Services editor */
.svc-cat { overflow: hidden; }
.svc-cat__head { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.svc-cat__head img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.svc-cat__head h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.svc-cat__head p { font-size: 13px; color: var(--muted); }
.svc-cat__head .btn { margin-left: auto; }
.svc-row td { padding: 10px 14px; }
.svc-row.is-off { opacity: .55; }
.price-input { position: relative; display: inline-block; }
.price-input::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.price-input input { padding-left: 22px; width: 92px; }

/* Media library */
.storage { display: grid; gap: 4px; min-width: 220px; font-size: 12.5px; color: var(--muted); }
.storage span { color: var(--espresso); font-weight: 500; }
.storage small { font-size: 11.5px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 18px; align-items: start; }
.mtile { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); transition: border-color .2s, box-shadow .2s, transform .2s; }
.mtile:hover { box-shadow: var(--shadow-sm); }
.mtile.is-drag { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(183, 110, 93, .2); transform: translateY(-2px); }
.mtile__img { position: relative; background: var(--sand); overflow: hidden; max-height: 260px; }
.mtile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtile__badge { position: absolute; top: 8px; left: 8px; background: var(--espresso); color: var(--ivory); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.mtile__drop { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: rgba(183, 110, 93, .82); color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .2s; pointer-events: none; }
.mtile__drop svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mtile.is-drag .mtile__drop { opacity: 1; }
.mtile__spin { position: absolute; inset: 0; display: none; background: rgba(255, 255, 255, .7); }
.mtile__spin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid var(--rose); border-right-color: transparent; animation: spin .8s linear infinite; }
.mtile.is-loading .mtile__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.mtile__body { padding: 12px; display: grid; gap: 10px; }
.mtile__body strong { font-weight: 500; font-size: 13.5px; color: var(--espresso); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtile__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mtile__actions .btn { padding: 6px 10px; cursor: pointer; }
.mtile__actions .btn svg { width: 13px; height: 13px; }
.mtile__actions .btn[disabled] { opacity: .4; pointer-events: none; }
.mtile__url { display: flex; gap: 6px; }
.mtile__url .input { min-width: 0; font-size: 12.5px; }
.toast.is-error::before { content: "!"; background: var(--bad); font-weight: 600; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tm { overflow: hidden; }
.tm__top { display: flex; gap: 14px; align-items: center; padding: 20px 20px 16px; }
.tm__top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.tm__top h3 { font-family: var(--font-display); font-size: 23px; font-weight: 500; }
.tm__top p { font-size: 13px; color: var(--muted); }
.tm__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tm__stats div { padding: 12px 10px; text-align: center; border-left: 1px solid var(--line); }
.tm__stats div:first-child { border-left: 0; }
.tm__stats strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--espresso); line-height: 1.1; }
.tm__stats span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.tm__util { padding: 14px 20px 0; font-size: 12.5px; color: var(--muted); }
.tm__util .hbar__track { margin-top: 6px; }
.tm__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 18px; font-size: 13.5px; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px; margin-top: 12px; }

.stock-low { color: var(--bad); font-weight: 500; }
.stock-low::before { content: "▲ "; font-size: 9px; vertical-align: 1px; }

/* Inbox */
.inbox { display: grid; grid-template-columns: 340px 1fr; min-height: 560px; overflow: hidden; }
.inbox__list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; }
.inbox__item { display: block; width: 100%; text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .15s; position: relative; }
.inbox__item:hover { background: var(--cream); }
.inbox__item.is-active { background: var(--blush-soft); }
.inbox__item.is-unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); margin-right: 8px; vertical-align: 1px; }
.inbox__item strong { font-weight: 500; color: var(--espresso); font-size: 14px; }
.inbox__item time { position: absolute; right: 18px; top: 15px; font-size: 12px; color: var(--muted); }
.inbox__item span { display: block; font-size: 12.5px; color: var(--rose-deep); margin: 2px 0; }
.inbox__item p { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__read { padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.inbox__read h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.inbox__meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.inbox__body { font-size: 15.5px; line-height: 1.7; background: var(--cream); border-radius: 14px; padding: 18px 20px; white-space: pre-wrap; }
.inbox__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.inbox__reply { display: grid; gap: 10px; }

/* Forms / settings */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hours-row { display: grid; grid-template-columns: 70px 44px 1fr 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row.is-closed select { opacity: .4; pointer-events: none; }
.social-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.social-row__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blush-soft); color: var(--rose-deep); display: grid; place-items: center; }
.social-row__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.save-bar { position: sticky; bottom: 16px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 18px; background: var(--espresso); color: var(--ivory); border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .35s var(--ease); }
.save-bar.is-dirty { transform: none; opacity: 1; pointer-events: auto; }
.save-bar .btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(247, 241, 234, .3); }
.save-bar div { display: flex; gap: 8px; }
.preview-bar { background: var(--espresso); color: var(--sand); border-radius: 12px; padding: 10px 14px; font-size: 13px; text-align: center; }
.preview-bar strong { color: var(--white); font-weight: 500; }
.preview-bar .code { border: 1px dashed rgba(232, 197, 184, .6); color: var(--blush); padding: 1px 8px; border-radius: 4px; font-weight: 500; }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-size: 13px; color: var(--muted); }
.big-stat { font-family: var(--font-display); font-size: 52px; font-weight: 500; color: var(--espresso); line-height: 1; }
.list-mini { display: grid; max-height: 300px; overflow-y: auto; }
.list-mini div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; gap: 10px; }
.list-mini time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.danger { border-color: rgba(179, 70, 59, .25); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(43, 30, 26, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); transform: translateY(14px); transition: transform .35s var(--ease); }
.modal.is-open .modal__card { transform: none; }
.modal__card--wide { width: min(760px, 100%); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 0; }
.modal__head h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.modal__head p { font-size: 13.5px; color: var(--muted); }
.modal__body { padding: 20px 24px; display: grid; gap: 16px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.dl dd { margin: 0; color: var(--espresso); }
.slot-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot-pick button { padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.slot-pick button:hover:not([disabled]) { border-color: var(--rose); color: var(--rose); }
.slot-pick button.is-active { background: var(--rose); color: #fff; border-color: var(--rose); }
.slot-pick button[disabled] { opacity: .3; text-decoration: line-through; cursor: not-allowed; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 500; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--espresso); color: var(--ivory); padding: 13px 22px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; transition: transform .5s var(--ease), visibility 0s .5s; max-width: calc(100% - 32px); width: max-content; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }
.toast::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid--kpi { grid-template-columns: repeat(2, 1fr); }
  .search { width: 200px; }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); transform: translateX(-100%); transition: transform .4s var(--ease); }
  .sidebar.is-open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(43, 30, 26, .4); z-index: 55; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .scrim.is-open { opacity: 1; visibility: visible; }
  .topbar__menu { display: grid; }
  .grid--2, .grid--2e { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; }
  .inbox__list { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login__visual { display: none; }
  .topbar { padding: 12px 16px; gap: 8px; flex-wrap: wrap; }
  .topbar__title h1 { font-size: 24px; }
  .topbar__title p { display: none; }
  .search { order: 5; width: 100%; }
  .topbar .btn span { display: none; }
  .topbar .btn { padding: 10px; }
  .views { padding: 20px 16px 50px; }
  .hello h2 { font-size: 28px; }
  .kpi { padding: 16px; }
  .kpi__value { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 54px 44px 1fr 1fr; gap: 8px; }
  .notif__panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
  .inbox__read { padding: 20px; }
  .hbar { grid-template-columns: 90px 1fr 60px; }
  .card__head, .card__body { padding-left: 16px; padding-right: 16px; }
  .dl { grid-template-columns: 100px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
