/* Full-version additions on top of the demo design system (styles.css) */
.skeleton { border-radius: var(--r); background: linear-gradient(90deg, var(--surface-3) 0%, #f7f9f8 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.day-opt.skeleton { min-width: 62px; box-shadow: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pay-note { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--ink-2); }
.pay-note .ico { color: var(--brand); }
.slot-group h4 .ico { width: 15px; height: 15px; }

/* forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld > label, .fld > .lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fld .hint { font-size: 12.5px; color: var(--muted); }
.in, .sel, .ta {
  width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 11px; border: 0; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; outline: none; transition: box-shadow .2s;
}
.sel { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a74' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.ta { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; font-family: inherit; }
.in:focus, .sel:focus, .ta:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.in[type=color] { padding: 4px; width: 64px; }
.form-err { display: none; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 13.5px; font-weight: 600; }
.form-err.show { display: block; animation: shake .35s; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.check:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.toggle b { display: block; font-size: 14px; }
.toggle span { font-size: 12.5px; color: var(--muted); }
.sw { position: relative; width: 40px; height: 24px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: #cfd8d3; transition: background .25s; }
.sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.sw input:checked + i { background: var(--brand); }
.sw input:checked + i::after { transform: translateX(16px); }
.sw input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--brand-2) 55%, transparent); outline-offset: 2px; }
.hours-grid { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 92px 44px 1fr 1fr; gap: 8px; align-items: center; }
.hours-row .d { font-weight: 650; font-size: 13.5px; }
.hours-row.off .sel { opacity: .4; pointer-events: none; }
.modal h3.m-title { font-size: 20px; margin-bottom: 4px; padding-right: 36px; }
.modal p.m-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.m-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.m-actions .btn { flex: 1 1 auto; }

/* login */
.page-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 500px at 80% -10%, #e3e6ff 0%, transparent 60%), radial-gradient(800px 500px at -10% 10%, #def3ea 0%, transparent 55%), var(--bg); }
.login-card { width: min(420px, 100%); padding: 30px 26px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-3); animation: rise .6s var(--ease) both; }
.login-card .biz-logo { margin-bottom: 14px; }
.login-card h1 { font-size: 23px; }
.login-card p.sub { color: var(--muted); font-size: 14px; margin: 4px 0 20px; }
.login-foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; justify-content: center; align-items: center; }
.login-foot .obx-mark { width: 16px; height: 16px; }

/* app shell additions */
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); margin-top: 8px; }
.user-chip b { display: block; font-size: 13.5px; line-height: 1.2; }
.user-chip span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.user-chip .icon-btn { margin-left: auto; width: 32px; height: 32px; }
.side-foot.slim { padding: 12px; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 3px rgba(20,163,122,.18); display: inline-block; }
.sync-dot.off { background: var(--danger); box-shadow: 0 0 0 3px rgba(210,63,63,.18); }
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); margin-bottom: 14px; font-size: 13.5px; }
.banner.test { background: var(--warn-soft); color: #6b4706; }
.banner.test .ico { color: var(--warn); }
.banner.live { background: var(--brand-soft); color: var(--brand-ink); }
.banner .btn { margin-left: auto; flex: none; }
.cal-col .off-hours { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, rgba(13,27,22,.045) 0 6px, rgba(13,27,22,.02) 6px 12px); pointer-events: none; }
.cal-col .toff { position: absolute; left: 3px; right: 3px; border-radius: 8px; background: repeating-linear-gradient(-45deg, #f3eded 0 6px, #faf6f6 6px 12px); box-shadow: inset 0 0 0 1px #ecd9d9; color: #9c5b5b; font-size: 11.5px; font-weight: 650; padding: 4px 8px; pointer-events: none; z-index: 1; overflow: hidden; }
.bk.st-booked.future { }

/* tables */
.tbl-wrap { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; transition: background .15s; }
.tbl tr.click:hover { background: var(--surface-2); }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .who { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.tbl .who b { display: block; }
.tbl .who span { font-size: 12.5px; color: var(--muted); }
.tbl .dim { color: var(--muted); }
.search { position: relative; flex: 1; max-width: 360px; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search .in { padding-left: 36px; height: 40px; }

/* settings */
.set-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 2px; }
.set-nav::-webkit-scrollbar { display: none; }
.set-card { padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); margin-bottom: 14px; }
.set-card h3 { font-size: 16px; margin-bottom: 4px; }
.set-card > p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.set-list { display: grid; gap: 8px; }
.set-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.set-item .grow { flex: 1; min-width: 0; }
.set-item b { display: block; font-size: 14px; }
.set-item span.meta { font-size: 12.5px; color: var(--muted); }
.set-item.inactive { opacity: .55; }
.placeholders { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.placeholders code { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); cursor: pointer; }
.save-bar { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* reports */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 10px 4px 0; }
.bars .b { flex: 1; min-width: 4px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); position: relative; transform-origin: bottom; animation: grow .7s var(--ease) both; animation-delay: calc(var(--i) * 12ms); }
.bars .b:hover { filter: brightness(1.1); }
.bars .b.zero { background: var(--line); min-height: 3px; }
@keyframes grow { from { transform: scaleY(0); } }
.bars-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); padding: 6px 4px 0; }
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.meter { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 8px; background: var(--c, var(--brand)); transform-origin: left; animation: growX .7s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }
.date-range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.date-range .in { width: 150px; height: 36px; font-size: 14px; }

@media (max-width: 900px) {
  .rep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form .row, .form .row3 { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 70px 44px 1fr 1fr; gap: 6px; }
  .tbl .hide-s { display: none; }
  .search { max-width: none; }
  .set-card { padding: 16px; }
}
