@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-arabic-wght-normal-Cafbb7Zc.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200F,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFF;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-latin-wght-normal-BFexNX-K.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2191,U+2193,U+2212,U+2215;
}
:root {
  font-family: Vazirmatn, system-ui, sans-serif;
  color: #231e24;
  background: #f8f7f6;
  line-height: 1.55;
  --ink: #231e24;
  --muted: #655e67;
  --plum: #63435f;
  --plum-deep: #4e314b;
  --plum-tint: #eee4ed;
  --line: #e5dee3;
  --paper: #fff;
  --sage: #e4efdf;
  --sage-ink: #365731;
  --peach: #f8e8dc;
  --peach-ink: #754c2d;
  --lavender: #eee6f6;
  --lavender-ink: #5c467a;
  --rose: #f6e8eb;
  --rose-ink: #8b364a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .button { cursor: pointer; }
button:disabled { opacity: .62; cursor: wait; }
a { color: var(--plum-deep); }
:focus-visible { outline: 2px solid #895484; outline-offset: 3px; }
.skip { position: fixed; z-index: 5; inset-block-start: .75rem; inset-inline-start: .75rem; padding: .5rem .85rem; background: #fff; transform: translateY(-180%); }
.skip:focus { transform: none; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.sidebar { background: var(--paper); border-inline-end: 1px solid var(--line); padding: 1.3rem .8rem .95rem; display: flex; flex-direction: column; gap: 1.15rem; }
.brand, .account { display: flex; align-items: center; gap: .65rem; padding-inline: .45rem; }
.brand { color: var(--plum-deep); }
.brand-mark { font-size: 2.45rem; line-height: 1; }
.brand strong { display: block; font-size: 1.55rem; line-height: 1; font-weight: 850; }
.brand div span, .account div span { display: block; color: var(--muted); font-size: .75rem; margin-block-start: .22rem; }
.salon-name { border: 1px solid var(--line); border-radius: .55rem; background: #faf8fa; padding: .58rem .65rem; font-weight: 700; font-size: .9rem; }
nav { display: grid; gap: .2rem; }
nav a { display: flex; align-items: center; gap: .6rem; min-block-size: 2.55rem; padding: .4rem .58rem; text-decoration: none; color: var(--ink); border-radius: .55rem; font-size: .93rem; white-space: nowrap; }
nav a[aria-current] { background: var(--plum-tint); color: var(--plum-deep); font-weight: 800; }
nav a:hover { background: #f4eef3; }
.glyph { inline-size: 1.15rem; text-align: center; flex: none; font-size: 1.05rem; color: var(--plum-deep); }
.account { margin-block-start: auto; padding-block-start: .9rem; border-block-start: 1px solid var(--line); }
.account-icon { border-radius: 50%; background: var(--plum-tint); color: var(--plum); inline-size: 1.9rem; block-size: 1.9rem; display: grid; place-items: center; font-size: .6rem; }
.account strong { font-size: .85rem; }
main { inline-size: min(100%, 100rem); margin-inline: auto; padding: 1.75rem clamp(.95rem, 2.5vw, 2.5rem) 2.5rem; }
.topbar, .panel-head, .toolbar { display: flex; align-items: center; gap: .55rem; }
.topbar, .panel-head { justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.topbar { margin-block-end: 1.25rem; }
.toolbar { flex-wrap: wrap; }
.topbar h1 { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 850; line-height: 1.3; }
#page-detail { color: var(--muted); margin-block-start: .2rem; }
h2 { font-size: 1.18rem; font-weight: 800; }
h3 { font-size: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; background: #fff; color: var(--plum-deep); border: 1px solid #d9cdd8; border-radius: .45rem; min-block-size: 2.22rem; padding: .34rem .67rem; text-decoration: none; white-space: nowrap; font-size: .83rem; font-weight: 650; }
.button:hover { background: #f5eff4; }
.primary { background: var(--plum); color: #fff; border-color: var(--plum); }
.primary:hover { background: var(--plum-deep); }
.quiet { border-color: transparent; background: transparent; }
.platform-link { padding: .55rem; font-weight: 700; }
.platform main { max-inline-size: 75rem; }
.ops-workspace { grid-template-columns: 14rem minmax(0, 1fr); }
.ops-sidebar { align-self: start; position: sticky; top: 0; min-height: 100dvh; max-height: 100dvh; overflow-y: auto; }
.ops-sidebar-actions { display: grid; gap: .25rem; padding-top: .5rem; border-top: 1px solid #72495b; }
.ops-sidebar-actions a, .ops-sidebar-actions button { display: flex; align-items: center; gap: .6rem; min-height: 2.55rem; padding: .4rem .58rem; border: 0; border-radius: .55rem; background: transparent; color: inherit; text-decoration: none; text-align: start; font-size: .93rem; }
.ops-sidebar-actions a:hover, .ops-sidebar-actions button:hover { background: #571f3e; }
.ops-menu-trigger, .ops-menu-dismiss { display: none; }
.ops-demo { background: #f3e4e4; }
.platform-notice { padding: .75rem; margin-block-end: .85rem; border-radius: .55rem; color: var(--rose-ink); background: var(--rose); }
.ops-field { display: flex; flex-direction: column; min-width: 0; gap: .35rem; margin: .5rem 0; }
.ops-field input, .ops-field select, .ops-field textarea { max-width: 100%; }
.ops-form { display: grid; gap: .3rem; }
.ops-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: .65rem; }
#ops-case { inline-size: min(100% - 2rem, 68rem); max-inline-size: none; }
#ops-case-content { padding: .2rem; }
.ops-evidence { display: flex; flex-wrap: wrap; gap: .5rem; }
.ops-evidence figure { margin: 0; }
.ops-evidence img { max-inline-size: 14rem; max-block-size: 12rem; object-fit: contain; }
.ops-message { border-inline-start: .18rem solid #996a90; padding: .5rem .75rem; margin: .45rem 0; background: #f8f3f7; overflow-wrap: anywhere; }
.ops-map-shell { margin: .8rem 0; }
.ops-map { direction: ltr; position: relative; isolation: isolate; overflow: hidden; width: 100%; height: clamp(21rem, 62dvh, 41rem); touch-action: none; cursor: grab; user-select: none; background-color: #ecf0e7; background-image: radial-gradient(#b4bfad 1px,transparent 1px); background-size: 16px 16px; border: 1px solid var(--line); border-radius: .75rem; }
.ops-map.is-dragging, .ops-map.is-dragging .ops-pin { cursor: grabbing; }
.ops-map-tile { position: absolute; left: 0; top: 0; pointer-events: none; }
.ops-map-credit { position: absolute; bottom: 0; right: 0; padding: .16rem .4rem; background: #ffffffe8; font-size: .66rem; }
.ops-pin { z-index: 1; position: absolute; transform: translate(-50%, -50%); width: 1.45rem; height: 1.45rem; padding: 0; border-radius: 50%; color: white; border: 2px solid #fff; box-shadow: 0 .12rem .3rem #14201877; font-size: .55rem; }
.ops-pin[aria-expanded="true"] { outline: 2px solid #332032; outline-offset: 2px; z-index: 2; }
.ops-map-controls { position: absolute; z-index: 4; top: .5rem; left: .5rem; display: grid; gap: .2rem; }
.ops-map-controls .button { min-width: 2.3rem; min-height: 2.3rem; padding: .2rem; font-size: 1.17rem; }
.ops-map-popup { z-index: 3; position: absolute; cursor: auto; width: max-content; max-width: min(13.5rem, calc(100% - 1rem)); border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); padding: .55rem .65rem; box-shadow: 0 .25rem 1rem #261a2540; overflow-wrap: anywhere; }
.ops-map-popup-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ops-map-popup-head .button { min-height: 1.6rem; padding: 0 .42rem; }
.ops-pin.salon { background: #176533; }
.ops-pin.customer { background: #1b55a8; }
.ops-pin.salon:hover { background: #134d29; }
.ops-pin.customer:hover { background: #134789; }
@media (max-width: 700px) {
  .ops-workspace { display: block; }
  .ops-menu-trigger { display: inline-flex; }
  .ops-workspace .ops-sidebar { position: fixed; z-index: 16; inset: 0 0 0 auto; width: min(17rem, 85vw); max-height: none; min-height: 100dvh; transform: translateX(105%); visibility: hidden; }
  .ops-workspace .ops-sidebar.is-open { transform: none; visibility: visible; }
  .ops-menu-dismiss { display: block; position: fixed; z-index: 15; inset: 0; border: 0; background: #23132377; }
}
.metric, .panel { border: 1px solid var(--line); background: var(--paper); border-radius: .7rem; min-inline-size: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-block-end: 1rem; }
.metric { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; }
.metric-icon, .app-icon { display: grid; place-items: center; flex: none; inline-size: 2.45rem; block-size: 2.45rem; border-radius: .63rem; background: var(--lavender); color: var(--lavender-ink); font-size: 1.15rem; }
.metric:nth-child(2) .metric-icon { background: var(--sage); color: var(--sage-ink); }
.metric:nth-child(3) .metric-icon { background: var(--peach); color: var(--peach-ink); }
.metric span:not(.metric-icon) { color: var(--muted); font-size: .84rem; }
.metric strong { display: block; font-size: 1.55rem; line-height: 1.2; }
.panel { margin-block-end: .85rem; padding: .95rem; }
.panel-head { margin-block-end: .8rem; }
.panel-head p, .muted { color: var(--muted); font-size: .85rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(14.5rem, 1fr); gap: .8rem; }
.table-scroll, .schedule-scroll { overflow-x: auto; }
.table-scroll { border-radius: .5rem; border: 1px solid var(--line); }
table { inline-size: 100%; border-collapse: collapse; text-align: start; font-size: .86rem; }
th, td { padding: .57rem .65rem; text-align: start; border-block-end: 1px solid var(--line); }
th { font-weight: 650; background: #f8f5f8; white-space: nowrap; color: var(--muted); }
tbody tr:last-child td { border-block-end: 0; }
td .toolbar { flex-wrap: nowrap; }
tbody tr:hover { background: #fdfafd; }
.empty { padding: 1.25rem .65rem; text-align: center; color: var(--muted); font-size: .9rem; }
.badge { display: inline-flex; align-items: center; gap: .26rem; padding: .12rem .45rem; background: #efe9ef; border-radius: 5rem; color: var(--plum-deep); white-space: nowrap; font-size: .74rem; font-weight: 700; }
.badge.confirmed, .badge.connected, .badge.published, .badge.handled, .badge.booked { color: var(--sage-ink); background: var(--sage); }
.badge.connected::before { content: ''; inline-size: .4rem; block-size: .4rem; background: #4f8045; border-radius: 50%; }
.badge.checkedIn, .badge.completed { color: var(--lavender-ink); background: var(--lavender); }
.badge.waiting, .badge.pending, .badge.needsFollowup { color: var(--peach-ink); background: var(--peach); }
.badge.cancelled, .badge.noShow, .badge.unavailable { color: var(--rose-ink); background: var(--rose); }
.schedule { min-inline-size: 23rem; display: grid; grid-template-columns: 3.7rem repeat(var(--lanes), minmax(7rem, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: .52rem; }
.schedule-head { min-block-size: 2.5rem; background: #f6f2f5; padding: .48rem .34rem; font-size: .83rem; font-weight: 750; text-align: center; border-block-end: 1px solid var(--line); }
.schedule-column, .schedule-labels { min-inline-size: 0; }
.schedule-column { border-inline-start: 1px solid var(--line); }
.schedule-hours { block-size: calc(var(--rows) * 2.65rem); position: relative; background: repeating-linear-gradient(to bottom, transparent 0 calc(2.65rem - 1px), var(--line) calc(2.65rem - 1px) 2.65rem); }
.schedule-hours.is-closed { background: #f6f4f4; }
.schedule-labels .schedule-hours { display: grid; grid-auto-rows: 2.65rem; color: var(--muted); font-size: .75rem; text-align: center; }
.schedule-labels .schedule-hours span { padding-block-start: .38rem; }
.schedule-event { position: absolute; text-align: start; inset-inline: .22rem; inset-block-start: max(0px, var(--offset)); block-size: max(1.38rem, calc(var(--size) - .12rem)); display: flex; flex-direction: column; justify-content: center; gap: .04rem; overflow: hidden; border: 0; border-inline-start: .22rem solid #9972ae; border-radius: .35rem; padding: .07rem .34rem; background: var(--lavender); color: #392d45; line-height: 1.18; }
.schedule-event strong, .schedule-event small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-inline-size: 100%; }
.schedule-event strong { font-size: .75rem; }
.schedule-event small { font-size: .67rem; }
.schedule-event:hover { filter: brightness(.97); }
.schedule-event.confirmed { background: var(--sage); border-color: #75a366; color: #2d4a2b; }
.schedule-event.pending, .schedule-event.checkedIn { background: var(--peach); border-color: #d48d60; color: #56371f; }
.schedule-event.blocked { background: #ede9eb; border-color: #91818c; color: #51454d; }
.date-field { display: inline-grid; position: relative; }
.date-field input { inline-size: 2.32rem; position: absolute; inset: 0; opacity: 0; }
.date-field:focus-within { outline: 2px solid #895484; outline-offset: 3px; border-radius: .45rem; }
.schedule-date { margin-block: -.38rem .55rem; }
[dir="rtl"] .directional { transform: scaleX(-1); display: inline-block; }
.app-card { padding: .65rem; border: 1px solid var(--line); border-radius: .58rem; display: flex; align-items: flex-start; gap: .55rem; margin-block-end: .55rem; }
.app-card:last-child { margin-block-end: 0; }
.app-icon { background: var(--plum); color: white; block-size: 2.2rem; inline-size: 2.2rem; }
.app-icon.partner { background: var(--lavender); color: var(--plum); }
.app-name { font-size: .95rem; line-height: 1.3; }
.app-card .muted { font-size: .75rem; }
.app-card .badge { margin-inline-start: auto; }
.app-links { display: flex; flex-wrap: wrap; gap: .2rem .65rem; margin-block-start: .23rem; font-size: .76rem; }
.next-entry { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
input, select, textarea { min-inline-size: 0; max-inline-size: 100%; padding: .35rem .52rem; border: 1px solid #d9cdd8; border-radius: .4rem; background: white; color: var(--ink); }
input[type=number], input[type=date], input[type=time], input[type=tel], input[type=email] { direction: ltr; }
textarea { resize: vertical; }
label { display: grid; gap: .26rem; font-size: .85rem; }
.stack { display: grid; gap: .7rem; }
.sign-in { max-inline-size: 29rem; padding: 1.45rem; }
.sign-in p { color: var(--muted); margin-block: .4rem 1rem; }
.sign-in form { display: flex; gap: .65rem; align-items: end; }
.sign-in select { min-inline-size: 9rem; }
#notice { display: block; padding: .5rem .75rem; margin-block-end: .8rem; background: var(--plum-tint); border-radius: .45rem; font-size: .87rem; }
#notice[data-error], #edit-error { color: var(--rose-ink); }
#notice[data-error] { background: var(--rose); }
dialog { inline-size: min(34rem, calc(100% - 1.25rem)); max-block-size: calc(100% - 2rem); border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); padding: 1.15rem; }
dialog::backdrop { background: #281a296d; }
#edit-fields { display: grid; gap: .65rem; margin-block: .65rem; }
#edit-error { margin-block: .4rem; font-size: .88rem; }
.dialog-actions { justify-content: flex-end; }
.field-pair, .split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
fieldset { border: 1px solid var(--line); border-radius: .45rem; margin: 0; padding: .44rem .65rem .55rem; }
fieldset legend { padding-inline: .3rem; font-size: .82rem; color: var(--muted); }
.check { display: flex; align-items: center; gap: .4rem; }
.check input { accent-color: var(--plum); }
.hours-strip { display: grid; grid-template-columns: repeat(7, minmax(5.2rem, 1fr)); gap: .4rem; min-inline-size: 36rem; }
.hour-cell { display: grid; gap: .18rem; justify-items: start; align-content: start; background: #faf7fa; border: 1px solid var(--line); border-radius: .4rem; padding: .4rem; font-size: .76rem; }
.hour-cell span { color: var(--muted); }
.hour-cell button { padding: .18rem .34rem; min-block-size: 1.55rem; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1120px) {
  .workspace { grid-template-columns: 12.25rem minmax(0,1fr); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
}
@media (max-width: 700px) {
  .workspace { display: block; }
  .sidebar { min-height: auto; padding: .65rem .8rem .4rem; gap: .52rem; border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .brand { padding-inline: 0; }
  .brand-mark { font-size: 1.75rem; }
  .brand strong { font-size: 1.15rem; }
  .brand div span { display: none; }
  nav { display: flex; overflow-x: auto; padding-block: .15rem; }
  nav a { font-size: .8rem; min-block-size: 2rem; }
  .salon-name, .account { display: none !important; }
  main { padding-block-start: .75rem; }
  .topbar { align-items: flex-start; }
  .metrics { gap: .36rem; }
  .metric { padding: .5rem; gap: .34rem; align-items: flex-start; }
  .metric-icon { display: none; }
  .metric span:not(.metric-icon) { font-size: .73rem; }
  .metric strong { font-size: 1.2rem; }
  .dashboard-grid > aside, .split { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: .65rem; }
}

:root {
  --ink: #321c29;
  --muted: #6b545e;
  --plum: #58223e;
  --plum-deep: #361629;
  --plum-tint: #f3e4e4;
  --line: #e8d8d1;
  --paper: #fffaf5;
  --peach: #f4ddd1;
  --peach-ink: #773d2d;
  color: var(--ink);
  background: #f8f0e9;
}
.sidebar { background: var(--plum-deep); color: #fffaf5; border: 0; padding-inline: 1rem; }
.sidebar .brand, .sidebar nav a, .sidebar .glyph { color: #fffaf5; }
.sidebar .brand strong { font-size: 2rem; font-weight: 900; }
.sidebar .brand div span, .sidebar .account div span { color: #ead3dc; }
.sidebar .brand-mark { font-size: 1.5rem; color: #e3ae9d; }
.sidebar .salon-name { background: #4f2b40; border-color: #72495b; }
.sidebar nav a:hover { background: #571f3e; }
.sidebar nav a[aria-current] { background: #f3e4e4; color: var(--plum-deep); }
.sidebar nav a[aria-current] .glyph { color: var(--plum-deep); }
.sidebar .account { border-color: #72495b; }
.sidebar :focus-visible { outline-color: #f3cdbd; }
.topbar h1 { color: var(--plum-deep); }
.dashboard-grid { grid-template-columns: minmax(0, 2.7fr) minmax(13.5rem, 1fr); align-items: start; }
.reception-rail { display: grid; gap: .8rem; }
.reception-rail > .panel { margin: 0; }
.reception-queue { display: grid; gap: .55rem; }
.reception-item { text-align: start; border: 1px solid var(--line); border-radius: .7rem; padding: .72rem;
  background: #f8ede5; min-block-size: 4rem; display: grid; gap: .25rem; }
.reception-item:hover { background: #f4e2d7; }
.reception-item span { font-size: .82rem; color: var(--muted); }
.reception-item > .badge { color: var(--peach-ink); width: fit-content; }
.reception-queue p { font-size: .9rem; }
.schedule-head { background: #f3e7e0; }
.schedule-event.pending { background: #f2d9ce; border-color: #ac6553; color: #642f2b; }
.schedule-event.checkedIn { background: #e0e8d6; border-color: #7c9264; color: #30462d; }
@media (max-width: 65rem) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 45rem) {
  .dashboard-grid > .reception-rail { grid-template-columns: 1fr; gap: .7rem; }
}

.consult-photo { display: block; max-inline-size: 100%; max-block-size: 17rem; object-fit: contain; border-radius: .65rem; }
#login-credentials { display: grid; gap: .55rem; }
