:root {
  --plum: #8A5A43; --plum-d: #6A412F; --rose: #C48A72; --blush: #FBE3E9; --bg: #FFF9F7;
  --on-plum: #fff; --hdr: #8A5A43; --hdr2: #B98068; --on-hdr: #fff; --plum-soft: rgba(138,90,67,.12); --card: #FFFFFF;
  --ink: #2B1D24; --muted: #7D6B73; --line: #EADFE3; --ok: #2E7D5B; --ok-bg: #E4F3EC; --warn: #9A6200; --warn-bg: #FCF1DC;
  --bad: #B3261E; --bad-bg: #FBE7E5; --info-bg: #EEF1F8; --info: #34507F;
  --r: 14px; --serif: "Noto Serif", Georgia, serif; --sans: system-ui, Roboto, "Noto Sans", sans-serif;
  --tabh: 62px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); }
body { overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.2; }
#app { min-height: 100%; display: flex; flex-direction: column; }

/* header */
#top { position: sticky; top: 0; z-index: 5; background: linear-gradient(135deg, var(--hdr), var(--hdr2)); color: var(--on-hdr); padding: 12px 16px 14px; }
#top .row { display: flex; align-items: center; gap: 10px; min-height: 36px; }
#top h1 { font-size: 20px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top .sub { font-size: 13px; opacity: .82; margin-top: 2px; }
#top .back, #top .act { background: rgba(255,255,255,.18); border: 0; color: var(--on-hdr); border-radius: 10px; height: 36px; min-width: 36px; padding: 0 10px; font-size: 15px; }
#top .badge-admin { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--plum); border-radius: 6px; padding: 2px 6px; font-weight: 700; }

main { flex: 1; padding: 16px 16px calc(var(--tabh) + 24px); outline: none; }

/* tabs */
#tabs { position: fixed; bottom: 0; left: 0; right: 0; height: var(--tabh); background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 6; padding-bottom: env(safe-area-inset-bottom); }
#tabs button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; color: var(--muted); position: relative; }
#tabs button svg { width: 22px; height: 22px; }
#tabs button.on { color: var(--plum); font-weight: 600; }
#tabs button.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--plum); }
#tabs .dot { position: absolute; top: 7px; left: 56%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700; }

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.card.tap { cursor: pointer; }
.card.tap:active { background: #FFF8FA; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 12px; } .mt2 { margin-top: 20px; } .mb { margin-bottom: 12px; }
.center { text-align: center; }
.price { font-weight: 700; color: var(--plum); white-space: nowrap; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 20px 2px 8px; }
.hero { background: linear-gradient(160deg, var(--blush), #fff); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.hero h2 { font-size: 22px; color: var(--plum-d); }
.hero.logo-hero { background: #fff; text-align: center; padding: 10px 16px 18px; }
.hero .logo { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 4px; }
#top .music { font-size: 18px; }
#top .music.off { opacity: .55; text-decoration: line-through; }
input[type=range] { width: 100%; accent-color: var(--plum); }
.svc h3 { font-size: 17px; }
.svc .desc { margin: 6px 0 10px; font-size: 14.5px; color: #4A3A42; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; border-radius: 99px; padding: 3px 9px; background: var(--blush); color: var(--plum-d); font-weight: 600; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.info { background: var(--info-bg); color: var(--info); }
.chip.grey { background: #EFEAEC; color: #5d5157; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--plum); color: var(--on-plum); font-weight: 600; font-size: 16px; text-decoration: none; }
.btn:active { background: var(--plum-d); }
.btn[disabled] { opacity: .45; }
.btn.block { width: 100%; }
.btn.sec { background: var(--blush); color: var(--plum-d); }
.btn.ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--line); }
.btn.danger { background: var(--bad); }
.btn.danger-ghost { background: transparent; color: var(--bad); border: 1.5px solid #F0C9C5; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 14.5px; border-radius: 10px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btns > .btn { flex: 1 1 140px; }

/* forms */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label.f > span em { font-weight: 400; color: var(--muted); font-style: normal; }
.in, select.in, textarea.in { width: 100%; min-height: 48px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 16px; }
textarea.in { min-height: 84px; resize: vertical; }
.in:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(181,72,111,.15); }
.in.err { border-color: var(--bad); }
.ferr { color: var(--bad); font-size: 13.5px; margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 6px 0 14px; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--plum); }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.grid2 > * { min-width: 0; }
input[type=date].in { min-width: 0; -webkit-appearance: none; appearance: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.switch input { width: 46px; height: 26px; accent-color: var(--plum); }

/* steps */
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--plum); }
.pick { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; }
.pick.sel { border-color: var(--plum); background: #FFF6F9; box-shadow: 0 0 0 2px var(--plum-soft) inset; }
.summary { background: var(--blush); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; }
.summary b { color: var(--plum-d); }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h3 { font-size: 18px; text-transform: capitalize; }
.cal-head button { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 18px; }
.cal-head button[disabled] { opacity: .35; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal button { aspect-ratio: 1 / 1; border: 0; border-radius: 12px; background: transparent; font-size: 15px; position: relative; color: #b9adb2; }
.cal button.av { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.cal button.av::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ok); }
.cal button.full { color: #b9adb2; text-decoration: line-through; }
.cal button.today { box-shadow: 0 0 0 2px var(--rose) inset; }
.cal button.sel { background: var(--plum); color: var(--on-plum); border-color: var(--plum); }
.cal button.sel::after { background: #fff; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slots button { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15.5px; }
.slots button.sel { background: var(--plum); color: var(--on-plum); border-color: var(--plum); }
.slot-group { font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 2px 8px; }

/* states */
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty .ic { font-size: 34px; margin-bottom: 6px; }
.note { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; background: var(--info-bg); color: var(--info); }
.note.warn { background: var(--warn-bg); color: #6E4700; }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.ok { background: var(--ok-bg); color: #1F5C42; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--plum); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 8px auto 12px; }
.code { font-family: ui-monospace, monospace; font-size: 26px; letter-spacing: .18em; font-weight: 700; color: var(--plum-d); background: #fff; border: 2px dashed var(--rose); border-radius: 12px; padding: 8px 14px; display: inline-block; }
dl.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 600; text-align: right; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.today td { color: var(--plum); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; width: 100%; text-align: left; }
.list-item .chev { color: #c4b6bc; font-size: 20px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--plum); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }

/* admin schedule */
.seg { display: flex; background: #EFE6EA; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; min-height: 38px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--plum); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.datenav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.datenav .lbl { flex: 1; text-align: center; font-weight: 700; font-size: 15.5px; }
.datenav button { height: 42px; min-width: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 17px; padding: 0 10px; }
.appt { display: flex; gap: 12px; padding: 12px 12px 12px 10px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--plum); border-radius: 12px; margin-bottom: 8px; width: 100%; text-align: left; }
.appt .t { width: 52px; flex: none; font-weight: 700; font-size: 15px; }
.appt .t small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.appt.cancelled { border-left-color: #c9bcc2; opacity: .7; }
.appt.cancelled .nm { text-decoration: line-through; }
.appt.completed { border-left-color: var(--ok); }
.appt.no_show { border-left-color: var(--warn); }
.gap { font-size: 13px; color: var(--ok); padding: 6px 12px; margin-bottom: 8px; border: 1.5px dashed #BFE0D0; border-radius: 12px; background: #F6FBF8; }
.blockrow { font-size: 13.5px; color: #5d5157; padding: 9px 12px; margin-bottom: 8px; border-radius: 12px; background: repeating-linear-gradient(135deg, #F3EEF0, #F3EEF0 8px, #ECE4E8 8px, #ECE4E8 16px); }
.weekday { margin-bottom: 14px; }
.weekday-h { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 2px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.weekday-h b { font-size: 15.5px; }
.weekday-h.today b { color: var(--plum); }
.mini { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin-bottom: 6px; width: 100%; text-align: left; font-size: 14.5px; }
.mini .t { font-weight: 700; width: 46px; flex: none; }
.fab { position: fixed; right: 18px; bottom: calc(var(--tabh) + 18px); width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--plum); color: var(--on-plum); font-size: 30px; box-shadow: 0 6px 18px rgba(92,31,58,.35); z-index: 4; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stats b { display: block; font-size: 19px; color: var(--plum-d); }
.stats span { font-size: 12px; color: var(--muted); }
.log { font-size: 13px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; }
.log div { margin-bottom: 5px; }
.dayrow { border-bottom: 1px solid var(--line); padding: 12px 0; }
.dayrow:last-child { border-bottom: 0; }
.iv { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.iv select { flex: 1; min-height: 42px; padding: 6px 8px; }
.iv .x { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--bad); font-size: 18px; flex: none; }
.addlink { background: none; border: 0; color: var(--plum); font-weight: 600; padding: 8px 0 0; font-size: 14.5px; }

/* sheet / dialog */
.backdrop { position: fixed; inset: 0; background: rgba(43,29,36,.45); z-index: 20; display: flex; align-items: flex-end; animation: fade .15s ease; }
.sheet { background: var(--bg); width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease; }
.sheet .grip { width: 40px; height: 5px; background: #D9CCD2; border-radius: 3px; margin: 2px auto 12px; }
.sheet h2 { font-size: 20px; margin-bottom: 12px; }
.dialog-wrap { align-items: center; justify-content: center; padding: 24px; }
.dialog { background: #fff; border-radius: 18px; padding: 20px; width: 100%; max-width: 380px; animation: up .18s ease; }
.dialog h2 { font-size: 19px; margin-bottom: 8px; }
.dialog p { margin: 0 0 16px; color: #4A3A42; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabh) + 14px); z-index: 30; display: flex; justify-content: center; pointer-events: none; }
#toast div { background: #2B1D24; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: up .18s ease; max-width: 520px; }
#toast div.bad { background: var(--bad); }
.hide { display: none !important; }
.foot { text-align: center; margin-top: 26px; font-size: 13px; color: var(--muted); }
.foot button { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 10px; }

/* theme settings */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.sw { border: 1.5px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; font-size: 11.5px; line-height: 1.2; color: var(--ink); }
.sw i { display: block; height: 30px; border-radius: 8px; margin-bottom: 5px; }
.sw.on { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum-soft); font-weight: 700; }
.colorrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.colorrow input[type=color] { width: 54px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; background: #fff; flex: none; }
.colorrow + .colorrow { border-top: 1px solid var(--line); }

/* schedule time grid */
.tg { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.tg-head, .tg-body { display: grid; grid-template-columns: 42px repeat(var(--cols), minmax(0, 1fr)); }
.tg-head { background: #FAF6F4; border-bottom: 1px solid var(--line); }
.tg-head div { font-size: 12px; font-weight: 700; padding: 7px 3px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-head div + div { border-left: 1px solid var(--line); }
.tg-head small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.tg-body { position: relative; }
.tg-times { position: relative; }
.tg-times span { position: absolute; right: 5px; font-size: 11px; color: var(--muted); transform: translateY(2px); }
.tg-col { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(135deg, #F4EFEC 0 6px, #EDE6E2 6px 12px); }
.tg-open { position: absolute; left: 0; right: 0; background: #fff; }
.tg-hl { position: absolute; left: 0; right: 0; border-top: 1px solid #F1E9EC; }
.tg-free { position: absolute; left: 3px; right: 3px; border: 1.5px dashed #A9D8C1; background: #F1FAF5; color: var(--ok); border-radius: 8px; font-size: 12px; font-weight: 700; z-index: 2; padding: 0; }
.tg-free:active { background: #DDF3E7; }
.tg-free.past { opacity: .4; }
.tg-brk { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #EEE7EA 0 5px, #E4DADF 5px 10px); font-size: 11px; color: #6d5f66; display: flex; align-items: center; justify-content: center; z-index: 1; overflow: hidden; text-align: center; }
.tg-brk.cl { background: repeating-linear-gradient(135deg, #F6E3E1 0 5px, #EFD3D0 5px 10px); color: var(--bad); }
.tg-appt { position: absolute; left: 3px; right: 3px; border: 0; border-radius: 8px; background: var(--plum); color: var(--on-plum); font-size: 11.5px; padding: 3px 6px; overflow: hidden; z-index: 3; text-align: left; line-height: 1.25; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tg-appt b, .tg-appt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-appt span { opacity: .85; }
.tg-appt.completed { background: var(--ok); color: #fff; }
.tg-appt.no_show { background: var(--warn); color: #fff; }
.tg-prep { position: absolute; left: 3px; right: 3px; background: repeating-linear-gradient(135deg, var(--plum-soft) 0 4px, transparent 4px 8px); z-index: 2; border-radius: 0 0 6px 6px; }
.tg-now { position: absolute; left: 42px; right: 0; border-top: 2px solid var(--bad); z-index: 4; pointer-events: none; }
.tg-now::before { content: ""; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.tg-legend { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.tg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 3px 0 6px; vertical-align: -1px; }
.tg-legend .lf { background: #F1FAF5; border: 1.5px dashed #A9D8C1; }
.tg-legend .lb { background: var(--plum); }
.tg-legend .lx { background: #E4DADF; }

/* «Τελευταίες δουλειές» carousel + full-screen viewer */
.gal { margin: 0 -16px 6px; }
.gal-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-s { flex: 0 0 78%; scroll-snap-align: center; margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; position: relative; background: var(--blush); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.gal-s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-s figcaption, .v-s figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.gal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .2s; }
.gal-dots i.on { width: 18px; border-radius: 4px; background: var(--plum); }
.backdrop.viewer-wrap { background: #000; align-items: stretch; }
.viewer { position: relative; width: 100%; height: 100%; }
.v-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v-track::-webkit-scrollbar { display: none; }
.v-s { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; position: relative; display: flex; align-items: center; justify-content: center; }
.v-s img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; }
.v-count { position: absolute; top: 24px; left: 18px; color: #fff; font-size: 14px; opacity: .8; }
/* admin gallery list */
.gal-admin { display: flex; gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.gal-admin img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; background: var(--blush); }
.gal-admin .tools { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; }
.img-preview { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 12px; background: #f4f0ee; margin-bottom: 12px; }

/* social links */
.social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -4px 0 14px; }
.soc { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.soc:active { background: var(--blush); }

/* ---------- assistant chat ---------- */
.ai-fab { position: fixed; right: 16px; bottom: calc(var(--tabh) + 16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--plum); color: var(--on-plum); font-size: 26px; box-shadow: 0 6px 18px rgba(60,30,20,.35); z-index: 5; display: flex; align-items: center; justify-content: center; animation: fabin .3s ease; }
.ai-fab:active { transform: scale(.94); }
@keyframes fabin { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 76px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; line-height: 1.45; font-size: 15px; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: var(--plum); color: var(--on-plum); border-bottom-right-radius: 5px; white-space: pre-wrap; }
.msg .muted { color: inherit; opacity: .7; }
.typing { display: flex; gap: 4px; padding: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--plum); opacity: .35; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1.5px solid var(--plum); background: #fff; color: var(--plum-d); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.chip-btn:active { background: var(--plum-soft); }
.chat-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px 12px; background: var(--bg, #faf6f4); border-top: 1px solid var(--line); z-index: 5; }
.chat-bar .in { flex: 1; margin: 0; border-radius: 99px; }
.chat-bar .btn { border-radius: 50%; width: 46px; min-width: 46px; height: 46px; padding: 0; font-size: 18px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.pw { position: relative; }
.pw .in { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 20px; width: 42px; height: 42px; }
.warn-t { color: var(--warn, #9a6200); font-weight: 600; margin-top: 3px; }
.fab-lock { bottom: calc(var(--tabh) + 88px); width: 48px; height: 48px; right: 23px; border-radius: 16px; font-size: 20px; background: #fff; color: var(--plum-d); border: 1.5px solid var(--plum); }
button.tg-brk { border: 0; padding: 0 2px; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
button.blockrow { border: 0; font: inherit; }
.tg-body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tg-free.pressing, .tg-brk.pressing { transform: scale(.94); background: var(--plum-soft, #f3e6e0); transition: transform .5s ease, background .5s ease; }
[data-lpd] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-lpd].pressing { background: var(--plum-soft, #f3e6e0); border-radius: 10px; transition: background .5s ease; }
/* app feel: no text selection / callout on long press (fields stay editable & pasteable) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select, [contenteditable], .selectable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* month view */
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcal .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0 4px; }
.mday { position: relative; min-height: 54px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 4px 0 0; display: flex; flex-direction: column; align-items: center; font: inherit; color: inherit; -webkit-user-select: none; user-select: none; }
.mday .dn { font-weight: 700; font-size: 15px; }
.mday .cnt { margin-top: 3px; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--plum); color: var(--on-plum); font-size: 12px; font-weight: 700; line-height: 20px; }
.mday .mk { font-size: 12px; color: var(--muted); }
.mday.today { border: 2px solid var(--plum); }
.mday.sel { box-shadow: 0 0 0 2px var(--rose) inset; }
.mday.closed { background: repeating-linear-gradient(135deg, #F3EEF0 0 6px, #ECE4E8 6px 12px); color: #8b7d84; }
.mday.locked { background: repeating-linear-gradient(135deg, #F6E3E1 0 6px, #EFD3D0 6px 12px); }
.mday.past { opacity: .6; }
.mday.pressing { transform: scale(.94); transition: transform .5s ease; }
.seg button { font-size: 14px; }
.backup-card { border: 1.5px solid var(--plum); }
.steps-list { margin: 0 0 10px; padding-left: 20px; line-height: 1.45; }
.steps-list li { margin-bottom: 6px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; white-space: pre; }
.sms-prev { background: #E9F7EE; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; -webkit-user-select: text; user-select: text; }

/* nail photos (customer adds, studio sees) */
.photo-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-pick .ph { position: relative; width: 86px; height: 86px; border-radius: 12px; overflow: hidden; background: var(--line); }
.photo-pick .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick .ph-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 26px; padding: 0; }
.photo-pick .ph-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 26px; cursor: pointer; border: 2px dashed var(--plum); background: transparent; color: var(--plum); }
.photo-pick .ph-add span { font-size: 12px; font-weight: 600; }
.photo-pick .ph-add input { position: absolute; inset: 0; opacity: 0; }
.appt-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.appt-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }

/* pull to refresh */
#ptr { position: fixed; top: calc(env(safe-area-inset-top) + 64px); left: 50%; z-index: 40; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 22px; font-weight: 700; pointer-events: none; transform: translate(-50%, -50px); }
#ptr.ready { color: var(--plum); }
#ptr.spin span { display: inline-block; animation: ptrspin .8s linear infinite; color: var(--plum); }
@keyframes ptrspin { to { transform: rotate(360deg); } }
