/* Studio: the owner's page. Same colours as the website, bigger buttons, one column. */
:root { --bg: #fff7ea; --ink: #141113; --muted: #5e5458; --red: #e0262f; --butter: #f8d977; --pink: #ff9cc4; --line: #e7d9c3; --ok: #1c7a46; --r: 16px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 Jost, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font: italic 500 clamp(2.2rem, 1.6rem + 3vw, 3.2rem)/1 "Cormorant Garamond", Georgia, serif; margin: 8px 0 20px; }
h2 { font-size: 1rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin: 32px 0 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--ink); color: #fff; }
.mark { font: italic 500 1.7rem/1 "Cormorant Garamond", serif; color: var(--butter); text-decoration: none; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { text-decoration: none; opacity: .85; }
.tabs { position: sticky; top: 56px; z-index: 9; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.tabs a { display: grid; place-items: center; min-height: 48px; padding: 4px 6px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 15px; text-align: center; line-height: 1.15; background: #fff; border: 1px solid var(--line); }
.tabs a[aria-current] { background: var(--ink); color: var(--butter); border-color: var(--ink); }
.pad { max-width: 760px; margin: 0 auto; padding: 16px 16px 120px; }

.toast { background: var(--ok); color: #fff; border-radius: var(--r); padding: 14px 18px; font-weight: 500; margin-top: 8px; animation: pop .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.note, .help { color: var(--muted); font-size: 15px; margin-top: 16px; }
.help b { color: var(--ink); }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--r); padding: 18px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats.four { grid-template-columns: repeat(2, 1fr); }
.stats div { background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px 16px; }
.stats b { display: block; font: italic 500 2rem/1.05 "Cormorant Garamond", serif; color: var(--butter); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: #e6dcd3; }

/* client cards */
.card { display: grid; grid-template-columns: 84px 1fr; gap: 4px 16px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--butter); border-radius: var(--r); padding: 16px; margin-bottom: 10px; }
.card.st-confirmed { border-left-color: var(--ok); }
.card.st-done { border-left-color: var(--ink); opacity: .8; }
.card.st-no-show, .card.st-cancelled, .card.st-expired { border-left-color: #c9bba8; opacity: .7; }
.when b { display: block; font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.when span { font-size: 14px; color: var(--muted); }
.who h3 { font-size: 1.2rem; font-weight: 600; margin: 4px 0 2px; }
.who h3 small { font-weight: 400; color: var(--muted); }
.who p { font-size: 15px; color: var(--muted); }
.who .contact { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.who .contact a { color: var(--ink); font-weight: 500; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--butter); }
.st-confirmed .badge { background: #d6f0df; color: var(--ok); }
.st-done .badge { background: var(--ink); color: var(--butter); }
.st-no-show .badge, .st-cancelled .badge, .st-expired .badge { background: #eee5d8; color: var(--muted); }
.acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acts form { display: contents; }

/* buttons */
.b { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; font: 600 16px/1 Jost, sans-serif;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .1s; }
.b:active { transform: scale(.97); }
.b:disabled { opacity: .6; }
.b.go { background: var(--red); color: #fff; flex: 1 1 160px; }
.b.soft { background: #f3ece1; color: var(--ink); }
.b.ink { background: var(--ink); color: var(--butter); }
.b.tiny { min-height: 40px; padding: 0 14px; font-size: 14px; background: #f3ece1; color: var(--ink); }
.b.wide { width: 100%; }
.b.sticky { position: sticky; bottom: 12px; margin-top: 24px; box-shadow: 0 10px 28px rgba(20, 17, 19, .25); }

/* forms */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.box h2:first-of-type { margin-top: 4px; }
label { display: block; font-weight: 500; margin-bottom: 14px; }
.opt { color: var(--muted); font-weight: 400; font-size: 14px; }
input, select { display: block; width: 100%; margin-top: 6px; min-height: 52px; padding: 10px 14px; font: inherit; color: var(--ink); background: #fff; border: 2px solid #d9c9b3; border-radius: 12px; -webkit-appearance: none; appearance: none; }
input:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--butter); }
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23141113' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 44px; }
input.big { font-size: 1.6rem; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-row { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.svc-row input { margin: 0; }
.svc-row label { margin: 0; }
.peso { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.on { display: flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; }
.on input, .days input { width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; accent-color: var(--red); -webkit-appearance: auto; appearance: auto; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.days label { margin: 0; position: relative; }
.days input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; }
.days span { display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 2px solid #d9c9b3; font-size: 14px; font-weight: 600; }
.days input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--butter); }
.days input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 16px; margin-bottom: 6px; }
.ledger b { font-variant-numeric: tabular-nums; }
.ledger span { color: var(--muted); font-size: 14px; }
.ledger small { color: var(--muted); }
.ledger form { margin: 0; }

.daynav { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; margin-top: 8px; }
.daynav input { margin: 0; }
.daynav .b { padding: 0; font-size: 1.2rem; }

/* sign in */
.login { max-width: 420px; margin: 0 auto; padding: 48px 20px 120px; }
.login form p { margin: 0 0 14px; }
.login .login-remember label { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.login .login-remember input { width: 22px; height: 22px; min-height: 0; margin: 0; -webkit-appearance: auto; appearance: auto; accent-color: var(--red); }
.login input[type=submit] { background: var(--red); color: #fff; border: 0; border-radius: 999px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.login .small { font-size: 15px; color: var(--muted); }

@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .svc-row { grid-template-columns: 1fr 104px; }
  .svc-row .on { grid-column: 1 / -1; margin-bottom: 6px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .card { grid-template-columns: 1fr; }
  .when { display: flex; align-items: baseline; gap: 10px; }
  .acts .b.go { flex: 1 1 100%; }
  .acts .b.soft { flex: 1 1 calc(50% - 4px); }
  .ledger li { grid-template-columns: 1fr auto; }
  .ledger li form { grid-column: 1 / -1; }
  .ledger li form .b { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* owner calendar */
.mhead { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; align-items: center; margin-top: 8px; }
.mhead h1 { margin: 0; text-align: center; font-size: 2rem; }
.mhead .b { padding: 0; font-size: 1.2rem; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.month .dow { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.mday { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 6px 2px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.mday b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mday.past { background: transparent; color: var(--muted); }
.mday.today { box-shadow: inset 0 0 0 2px var(--red); }
.mday.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.dots i, .legend i { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.wait { background: var(--butter); color: var(--ink); }
.ok { background: var(--ok); color: #fff; }
.done { background: var(--ink); color: var(--butter); }
.mday.sel .done { background: var(--butter); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.legend i { min-width: 14px; height: 14px; padding: 0; margin-right: 6px; vertical-align: -2px; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fchip { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 6px solid #c9bba8; text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.2; }
.fchip b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.f-pending { border-left-color: var(--butter); }
.f-confirmed { border-left-color: var(--ok); }
.f-done { border-left-color: var(--ink); }
.fchip[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
h2 .opt { font-weight: 400; }
h2 a { color: var(--ink); }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mday { min-height: 76px; } }

/* search */
.search { max-width: 760px; margin: 0 auto; padding: 12px 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search input { margin: 0; }
.search input::-webkit-search-cancel-button { -webkit-appearance: searchfield-cancel-button; }

/* tags on cards: status, client tier, age */
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tier { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; text-decoration: none; background: #f3ece1; color: var(--ink); }
.t-loyal { background: var(--pink); }
.t-back { background: #d6f0df; color: var(--ok); }
.t-minor { background: var(--red); color: #fff; }
.who .hold { color: var(--ink); font-weight: 500; margin-top: 4px; }
.who .hold::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--butter); margin-right: 8px; box-shadow: 0 0 0 2px var(--ink) inset; }
.disc { color: var(--ok); font-weight: 600; }
.who s { color: var(--muted); }

/* details panel inside a card */
.more { grid-column: 1 / -1; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.more summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f3ece1; font-size: 1.2rem; font-weight: 400; transition: transform .2s; }
.more[open] summary::after { transform: rotate(45deg); }
.more dl { margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.more dt { font-size: 13px; color: var(--muted); }
.more dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.more h4 { margin: 20px 0 8px; font-size: 14px; color: var(--muted); }
.more .mini label { margin-bottom: 8px; }
.more textarea { display: block; width: 100%; padding: 10px 14px; font: inherit; border: 2px solid #d9c9b3; border-radius: 12px; margin-bottom: 8px; resize: vertical; }
.more textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--butter); }
.hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.hist li { position: relative; padding: 0 0 10px 10px; font-size: 15px; }
.hist li::before { content: ""; position: absolute; left: -21px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.hist time { display: block; font-size: 13px; color: var(--muted); }

/* clients */
.clients { list-style: none; margin: 16px 0 0; padding: 0; }
.clients a { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 8px; text-decoration: none; }
.clients a:active { transform: scale(.99); }
.clients b { font-size: 1.1rem; }
.clients .meta { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.clients strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.backlink { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }
.had { display: flex; flex-wrap: wrap; gap: 8px; }
.had span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 500; }
.contact.big { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contact.big .b { flex: 1 1 160px; }

/* money charts */
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 170px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 10px 8px; }
.bars div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; }
.bars div > span { align-self: end; display: block; min-height: 2px; background: #e6d7bd; border-radius: 6px 6px 2px 2px; }
.bars .now > span { background: var(--red); }
.bars b { font-size: 11px; font-weight: 600; min-height: 15px; }
.bars small { font-size: 11px; color: var(--muted); }
.two-col { display: grid; gap: 0 16px; }
.split { list-style: none; margin: 0; padding: 0; }
.split li { position: relative; display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin-bottom: 6px; overflow: hidden; }
.split small { color: var(--muted); }
.split i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--red); border-radius: 0 4px 4px 0; }
.stats.small b { font-size: 1.6rem; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } .stats.four { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .tabs { gap: 4px; padding: 8px; } .tabs a { font-size: 13.5px; padding: 4px 2px; } .more dl { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .more summary::after { transition: none; } }
.contact.big .b { white-space: nowrap; }
.contact.big .b:first-child { flex-basis: 100%; }
.pad > .tags { margin: -8px 0 16px; }
