/* styles/base.css */
/* This app's base styles (copied from the appin90 kit). Edit freely: changes only affect this app.
   Theme: --a90-brand / --a90-on-brand are set from the brand colour. */
:root {
  --a90-brand: #4f46e5; --a90-on-brand: #fff;
  --a90-brand-soft: color-mix(in srgb, var(--a90-brand) 12%, var(--k-card));
  --k-bg: #f4f5f7; --k-card: #fff; --k-ink: #101828; --k-ink-2: #344054; --k-muted: #667085; --k-line: #e6e8ec;
  --k-fill: color-mix(in srgb, var(--k-ink) 5%, var(--k-card)); /* filled inputs and quiet buttons */
  --k-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.06);
  --k-ok: #16a34a; --k-warn: #b45309; --k-err: #b91c1c;
  --k-radius: 16px; --k-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --k-bg: #0b0d12; --k-card: #171b23; --k-ink: #f2f4f7; --k-ink-2: #d0d5dd; --k-muted: #98a2b3; --k-line: #262d38; --k-shadow: 0 0 0 .5px rgba(255,255,255,.07); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--k-font); color: var(--k-ink); background: var(--k-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--a90-brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 52px); } h2 { font-size: clamp(22px, 3vw, 30px); } h3 { font-size: 17px; }
.k-muted { color: var(--k-muted); }
.k-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.k-narrow { max-width: 760px; }

/* buttons, inputs, chips */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: var(--k-radius-btn, 14px); border: 1px solid transparent; font: 600 15px/1.2 var(--k-font); cursor: pointer; text-decoration: none; background: var(--k-fill); color: var(--k-ink); transition: transform .1s, filter .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.k-btn:active { transform: scale(.97); }
.k-btn:disabled { opacity: .5; cursor: default; }
.k-btn-brand { background: var(--a90-brand); color: var(--a90-on-brand); }
.k-btn-brand:hover { filter: brightness(1.06); }
.k-btn-ghost { background: var(--a90-brand-soft); color: var(--a90-brand); } /* tonal, like native secondary buttons */
.k-btn-ghost:hover { filter: brightness(.97); }
.k-btn-danger { color: var(--k-err); background: color-mix(in srgb, var(--k-err) 9%, var(--k-card)); }
.k-btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: calc(var(--k-radius-btn, 14px) - 3px); }
.k-btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; border-radius: calc(var(--k-radius-btn, 14px) + 2px); }
.k-btn-block { width: 100%; }
.k-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; background: var(--k-fill); color: var(--k-ink-2); font: 600 14px var(--k-font); text-decoration: none; cursor: pointer; }
.k-chip[aria-pressed="true"], .k-chip.is-on { background: var(--a90-brand); border-color: var(--a90-brand); color: var(--a90-on-brand); }
.k-chip:disabled { opacity: .4; cursor: default; text-decoration: line-through; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: var(--k-ink-2); }
input, select, textarea { width: 100%; font: 16px var(--k-font); padding: 13px 14px; border-radius: 14px; border: 1.5px solid transparent; background: var(--k-fill); color: var(--k-ink); transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--k-muted) 50%), linear-gradient(135deg, var(--k-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type=checkbox], input[type=radio] { -webkit-appearance: auto; appearance: auto; width: auto; accent-color: var(--a90-brand); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--a90-brand); background: var(--k-card); }
textarea { min-height: 90px; resize: vertical; }
.k-alert { padding: 10px 14px; border-radius: 12px; font-size: 14px; margin: 10px 0; background: var(--a90-brand-soft); }
.k-alert-err { background: #fee2e2; color: #991b1b; } .k-alert-ok { background: #dcfce7; color: #166534; }
.k-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--k-line); color: var(--k-ink-2); text-transform: capitalize; }
.k-badge.pending, .k-badge.new { background: #fef3c7; color: #92400e; }
.k-badge.confirmed, .k-badge.accepted, .k-badge.ready, .k-badge.done, .k-badge.collected { background: #dcfce7; color: #166534; }
.k-badge.declined, .k-badge.cancelled, .k-badge.no-show { background: #fee2e2; color: #991b1b; }
.k-badge.blocked { background: var(--k-line); color: var(--k-muted); }
.k-card { background: var(--k-card); border-radius: calc(var(--k-radius) + 4px); padding: 18px; box-shadow: var(--k-shadow); }
.k-empty { text-align: center; color: var(--k-muted); padding: 28px 12px; }
.k-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.k-spacer { flex: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* styles/booking.css */
/* <a90-booking> and <a90-availability> */
.k-book { padding: 16px; }
.k-step { display: flex; gap: 12px; align-items: flex-start; }
.k-step + .k-step { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--k-line); }
.k-step > div { flex: 1; min-width: 0; }
.k-step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--a90-brand); color: var(--a90-on-brand); font-weight: 800; font-size: 14px; }
.k-step a90-datetime { display: block; margin-top: 10px; }
.k-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 10px; }
.k-service { text-align: left; padding: 14px; border-radius: 18px; border: 1.5px solid transparent; background: var(--k-card); box-shadow: var(--k-shadow); color: var(--k-ink); cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 2px; }
.k-service:hover { border-color: var(--a90-brand); }
.k-service[aria-pressed="true"] { border-color: var(--a90-brand); box-shadow: 0 0 0 2px var(--a90-brand); background: var(--a90-brand-soft); }
.k-move { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--k-line); }
.k-move a90-datetime { display: block; margin: 8px 0; }
.k-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--k-line); overflow-x: auto; }
.k-tabs button { border: 0; background: none; padding: 10px 12px; font: 600 14px var(--k-font); color: var(--k-muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.k-tabs button[aria-selected="true"] { color: var(--k-ink); border-bottom-color: var(--a90-brand); }
.k-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.k-grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; }
/* schedule */
.k-sch-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.k-sch-title { text-transform: capitalize; margin: 0 6px; }
.k-sch-bar input[type=date] { width: auto; margin: 0; padding: 6px 8px; }
.k-sch { border-radius: calc(var(--k-radius) + 4px); background: var(--k-card); box-shadow: var(--k-shadow); overflow-x: auto; }
.k-sch-head, .k-sch-body { display: grid; grid-template-columns: 52px repeat(var(--cols, 1), minmax(0, 1fr)); min-width: 100%; }
.k-sch.is-week .k-sch-head, .k-sch.is-week .k-sch-body { --cols: 7; grid-template-columns: 44px repeat(7, minmax(90px, 1fr)); min-width: 700px; }
.k-sch-head > div { padding: 8px 6px; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--k-line); text-transform: capitalize; }
.k-sch-head > .is-today { color: var(--a90-brand); }
.k-sch-hours { position: relative; border-right: 1px solid var(--k-line); }
.k-sch-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--k-muted); }
.k-sch-hours span:first-child { transform: none; }
.k-sch-col { position: relative; border-right: 1px solid var(--k-line); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(60px * var(--px, 1.3) - 1px), var(--k-line) calc(60px * var(--px, 1.3) - 1px), var(--k-line) calc(60px * var(--px, 1.3))); }
.k-sch.is-week .k-sch-col { --px: .9; }
.k-sch-col:last-child { border-right: 0; }
.k-sch-open { position: absolute; left: 0; right: 0; background: var(--a90-brand-soft); opacity: .6; }
.k-sch-closed { position: absolute; inset: 8px 4px auto; text-align: center; font-size: 12px; color: var(--k-muted); }
.k-sch-ev { position: absolute; overflow: hidden; text-align: left; border: 0; border-left: 3px solid var(--a90-brand); border-radius: 8px; padding: 3px 6px; font: 12px/1.3 var(--k-font); background: var(--k-card); color: var(--k-ink); box-shadow: 0 1px 3px rgba(0,0,0,.18); cursor: pointer; }
.k-sch-ev span { display: block; color: var(--k-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-sch-ev.st-pending { border-left-color: #ca8a04; background: #fef9c3; color: #713f12; }
.k-sch-ev.st-confirmed { border-left-color: var(--a90-brand); }
.k-sch-ev.st-done { opacity: .6; }
.k-sch-ev.st-no-show { opacity: .6; text-decoration: line-through; }
.k-sch-ev.st-blocked { border-left-color: var(--k-muted); background: repeating-linear-gradient(45deg, var(--k-bg), var(--k-bg) 6px, var(--k-line) 6px, var(--k-line) 12px); color: var(--k-muted); }
.k-sch-detail { margin-bottom: 12px; }
/* availability */
.k-av-day { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--k-line); flex-wrap: wrap; }
.k-av-open { width: 130px; margin: 6px 0 0; display: flex; gap: 8px; align-items: center; }
.k-av-open input { width: auto; margin: 0; }
.k-av-ranges { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 220px; }
.k-av-range { display: flex; gap: 6px; align-items: center; }
.k-av-range input { width: 150px; margin: 0; }
.k-av-num { display: flex; gap: 8px; align-items: center; }
.k-av-num input { width: 110px; margin: 0; }
.k-av-help { font-size: 12px; margin-top: 2px; }
.k-av-li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.k-av-save { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 12px 0; background: linear-gradient(to top, var(--k-bg) 70%, transparent); }
@media (max-width: 640px) { .k-sch:not(.is-week) .k-sch-head, .k-sch:not(.is-week) .k-sch-body { grid-template-columns: 44px 1fr; } }
.k-sch-body { padding-bottom: 12px; }
@media (max-width: 520px) { .k-step { flex-direction: column; gap: 8px; } .k-step-n { width: 24px; height: 24px; font-size: 12px; } .k-book { padding: 12px; } }

/* styles/chat.css */
/* chat — a messaging screen: top bar, messages, message box at the bottom */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.k-chat { display: flex; flex-direction: column; position: relative; background: var(--k-bg); box-shadow: var(--k-shadow); border-radius: calc(var(--k-radius) + 4px); overflow: hidden;
  /* computer: fills the window below the app's header, the page itself doesn't scroll */
  height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 380px; }
.k-chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--k-card); border-bottom: 1px solid var(--k-line); flex: none; }
.k-chat-back { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -6px; border: 0; border-radius: 50%; background: none; color: var(--a90-brand); cursor: pointer; flex: none; }
.k-chat-back:hover { background: var(--k-bg); }
.k-chat-back[hidden] { display: none; }
.k-chat-mark { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.k-chat-who { min-width: 0; line-height: 1.25; }
.k-chat-who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.k-chat-who small { color: var(--k-muted); font-size: 12.5px; }
.k-chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.k-chat-intro { display: flex; flex-direction: column; gap: 6px; }
.k-chat-intro:empty { display: none; }
.k-chat-hint { text-align: center; color: var(--k-muted); font-size: 14px; margin: 24px 16px; }
.k-chat-day { align-self: center; margin: 10px 0 4px; padding: 3px 10px; border-radius: 10px; background: color-mix(in srgb, var(--k-card) 80%, var(--k-line)); color: var(--k-muted); font-size: 12px; font-weight: 600; }
.k-msg { max-width: 78%; padding: 7px 11px 6px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35; font-size: 15.5px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.k-msg small { display: block; text-align: right; opacity: .7; font-size: 11px; margin-top: 2px; line-height: 1; }
.k-msg.me { align-self: flex-end; background: var(--a90-brand); color: var(--a90-on-brand); border-bottom-right-radius: 6px; }
.k-msg.them { align-self: flex-start; background: var(--k-card); border-bottom-left-radius: 6px; }
/* several messages in a row from the same side: closer together, one "tail" */
.k-msg.grouped { margin-bottom: -3px; }
.k-msg.me.grouped { border-bottom-right-radius: 18px; }
.k-msg.them.grouped { border-bottom-left-radius: 18px; }
.k-msg.sending { opacity: .7; }
.k-msg.failed { background: color-mix(in srgb, var(--k-err) 14%, var(--k-card)); color: var(--k-ink); border: 1px solid var(--k-err); }
.k-chat-retry { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; padding: 0; cursor: pointer; }
.k-chat-new { position: absolute; left: 50%; transform: translateX(-50%); bottom: 72px; border: 0; border-radius: 16px; padding: 7px 14px; background: var(--a90-brand); color: var(--a90-on-brand); font: 600 13px var(--k-font); box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.k-chat-new[hidden] { display: none; }
.k-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; background: var(--k-card); border-top: 1px solid var(--k-line); flex: none; }
.k-chat-form textarea { flex: 1; min-height: 42px; height: 42px; max-height: 132px; padding: 10px 16px; border-radius: 21px; resize: none; line-height: 1.35; font-size: 16px; /* 16px: iPhones don't zoom in */ overflow-y: auto; }
.k-chat-send { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--a90-brand); color: var(--a90-on-brand); cursor: pointer; flex: none; transition: opacity .15s, transform .1s; }
.k-chat-send:disabled { opacity: .4; cursor: default; }
.k-chat-send:not(:disabled):active { transform: scale(.92); }

/* phones: the conversation fills the space between the app's top bar and its tab bar
   (the script sets top and height from the visible screen); the page itself doesn't scroll.
   While the keyboard is up the tab bar is hidden and the message box sits on the keyboard. */
@media (max-width: 899px) {
  html.k-chat-open, html.k-chat-open body { overflow: hidden; overscroll-behavior: none; }
  html.k-chat-open .k-p-head { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transform: translateY(var(--k-vv-top, 0px)); }
  html.k-chat-open .k-chat { position: fixed; left: 0; right: 0; z-index: 15; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  html.k-chat-open .k-chat-head[hidden] { display: none; }
  html.k-chat-kb .k-p-tabs { display: none; }
  html.k-chat-open .k-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  html.k-chat-kb .k-toast { bottom: 76px; }
}

/* the owner's inbox */
.k-inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.k-inbox-head h2 { margin: 0; }
.k-inbox { display: grid; gap: 8px; }
.k-inbox button[hidden] { display: none; }
.k-inbox button { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border-radius: 20px; background: var(--k-card); box-shadow: var(--k-shadow); cursor: pointer; }
.k-inbox button:hover { border-color: var(--a90-brand); }
.k-inbox-main { flex: 1; min-width: 0; }
.k-inbox-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.k-inbox-top small { color: var(--k-muted); font-size: 12px; flex: none; }
.k-inbox-last { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--a90-brand-soft); color: var(--a90-brand); display: grid; place-items: center; font-weight: 800; flex: none; }
.k-chat-form textarea:focus { box-shadow: none; border-color: var(--a90-brand); background: var(--k-card); }

/* styles/datetime.css */
/* <a90-datetime>: month calendar with availability + time slots */
.k-cal { background: var(--k-card); border-radius: calc(var(--k-radius) + 4px); padding: 14px; box-shadow: var(--k-shadow); }
.k-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.k-cal-head b { font-size: 16px; text-transform: capitalize; }
.k-cal-head button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--k-fill); color: var(--k-ink); cursor: pointer; font-size: 18px; }
.k-cal-head button:disabled { opacity: .35; cursor: default; }
.k-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.k-cal-grid .dow { font-size: 12px; font-weight: 700; color: var(--k-muted); padding: 4px 0; }
.k-cal-grid button { position: relative; aspect-ratio: 1; max-height: 52px; border-radius: 12px; border: 0; background: none; color: var(--k-ink); font: 600 15px var(--k-font); cursor: pointer; }
.k-cal-grid button i { position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; }
.k-cal-grid button.lv-many i { background: var(--k-ok); }
.k-cal-grid button.lv-some i { background: #ca8a04; }
.k-cal-grid button.lv-few i { background: var(--k-warn); }
.k-cal-grid button.st-full { text-decoration: line-through; }
.k-cal-grid button:hover:not(:disabled) { background: var(--a90-brand-soft); }
.k-cal-grid button:disabled { color: var(--k-muted); opacity: .4; cursor: default; }
.k-cal-grid button.today { box-shadow: inset 0 0 0 1px var(--a90-brand); }
.k-cal-grid button[aria-pressed="true"] { background: var(--a90-brand); color: var(--a90-on-brand); }
.k-cal-grid button[aria-pressed="true"] i { background: var(--a90-on-brand); }
.k-cal-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--k-muted); margin-top: 8px; }
.k-cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.k-cal-legend .lv-many { background: var(--k-ok); } .k-cal-legend .lv-few { background: var(--k-warn); } .k-cal-legend .st-full { background: var(--k-line); }
.k-times-title { margin: 16px 0 4px; font-size: 16px; text-transform: capitalize; }
.k-times-group { margin-top: 10px; }
.k-times-group > .k-muted { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.k-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; margin-top: 6px; }
.k-times .k-chip { justify-content: center; }
.k-times .k-chip small { font-weight: 500; opacity: .8; }
.k-tz-note { font-size: 12px; margin: 10px 0 0; }

/* inside another card (the booking steps): no second box */
.k-card .k-cal { box-shadow: none; padding: 4px 0 0; background: none; }

/* styles/gallery.css */
/* photo grid */
.k-photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.k-photos figure { margin: 0; position: relative; }
.k-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.k-photos button { position: absolute; top: 6px; right: 6px; }

/* styles/m-calendar.css */
a90-m-calendar .cal-tabs { gap: 8px; margin: 10px 0; flex-wrap: wrap; }
a90-m-calendar .k-alert { margin: 10px 0; }
a90-m-calendar .k-card { margin-top: 12px; }
a90-m-calendar .k-li .k-li-top { align-items: flex-start; gap: 12px; }
a90-m-calendar .cal-date { min-width: 46px; text-align: center; background: var(--a90-brand-soft); border-radius: 14px; padding: 6px 4px; display: flex; flex-direction: column; line-height: 1.15; }
a90-m-calendar .cal-date b { font-size: 1.3em; }
a90-m-calendar .cal-date small { text-transform: uppercase; font-size: .72em; }
a90-m-calendar .cal-main { flex: 1; min-width: 0; }
a90-m-calendar .cal-main h3 { margin: 4px 0; }
a90-m-calendar .cal-ill { font-size: .85em; margin-top: 4px; }
a90-m-calendar .cal-past { opacity: .6; }
a90-m-calendar .cal-actions { gap: 8px; margin-top: 10px; flex-wrap: wrap; }
a90-m-calendar .cal-opts { gap: 8px; flex-wrap: wrap; }
a90-m-calendar .cal-push { margin: 4px 0 8px; }
a90-m-calendar .cal-nav { justify-content: space-between; align-items: center; margin-bottom: 8px; }
a90-m-calendar .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
a90-m-calendar .cal-dow { text-align: center; font-size: .75em; opacity: .6; padding: 2px 0; }
a90-m-calendar .cal-cell { aspect-ratio: 1 / 1; min-height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--k-fill); color: inherit; font: inherit; padding: 0; position: relative; }
a90-m-calendar .cal-cell.cal-empty { background: transparent; }
a90-m-calendar .cal-cell.cal-has { background: var(--a90-brand-soft); cursor: pointer; font-weight: 600; }
a90-m-calendar .cal-cell.cal-today span { text-decoration: underline; text-underline-offset: 3px; }
a90-m-calendar .cal-cell.cal-sel { background: var(--a90-brand); color: var(--a90-on-brand); }
a90-m-calendar .cal-dots { font-style: normal; font-size: .5em; letter-spacing: 1px; color: var(--a90-brand); line-height: 1; }
a90-m-calendar .cal-cell.cal-sel .cal-dots { color: var(--a90-on-brand); }
a90-m-calendar .cal-cta-links { gap: 8px; flex-wrap: wrap; margin-top: 8px; }
a90-m-calendar .cal-upgrade h3, a90-m-calendar .cal-cta h3 { margin-top: 0; }

/* styles/m-dashboard.css */
a90-m-dashboard .dash-banner { background: var(--a90-brand-soft); }
a90-m-dashboard .dash-sample { font-size: 0.8em; font-style: italic; margin-top: 6px; }
a90-m-dashboard .k-li h3 { margin: 0 0 4px; }
a90-m-dashboard .dash-upgrade { margin-top: 12px; }
a90-m-dashboard .dash-upgrade h2 { font-size: 1.2em; }

/* styles/m-library.css */
a90-m-library .lib-text { white-space: pre-wrap; }
a90-m-library .lib-note { margin: 6px 0; font-size: 0.85em; }
a90-m-library .lib-hidden { opacity: 0.75; }
a90-m-library .lib-tabs { flex-wrap: wrap; margin-bottom: 10px; }
a90-m-library .lib-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
a90-m-library .lib-check input { width: auto; }
a90-m-library .lib-cta { margin-top: 16px; text-align: center; }
a90-m-library .k-li .k-row { flex-wrap: wrap; margin-top: 8px; }

/* styles/m-membership.css */
/* Global Tax Desk Plus: white background, navy (#0B1F4B) accents. Scoped to this tab. */
a90-m-membership {
  --a90-brand: #0B1F4B;
  --a90-on-brand: #ffffff;
  --a90-brand-soft: #E7EBF5;
  display: block;
}
a90-m-membership .ms-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
a90-m-membership .ms-actions select { flex: 1 1 160px; min-width: 0; }

a90-m-membership .ms-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .78em; font-weight: 600; white-space: nowrap;
  background: var(--k-fill, #eef0f4); color: #0B1F4B;
}
a90-m-membership .ms-badge.ms-active { background: #0B1F4B; color: #fff; }
a90-m-membership .ms-badge.ms-pending { background: #FFF1CC; color: #6B4E00; }
a90-m-membership .ms-badge.ms-cancelled { background: #F3D9D9; color: #7A1F1F; }
a90-m-membership .ms-badge.ms-none { background: var(--k-fill, #eef0f4); color: #0B1F4B; }
a90-m-membership .ms-badge.ms-locked { background: #E7EBF5; color: #0B1F4B; }

a90-m-membership .ms-plan h3 { color: #0B1F4B; margin: 0; }
a90-m-membership .ms-price { font-size: 1.5em; font-weight: 700; color: #0B1F4B; margin-top: 2px; }
a90-m-membership .ms-price small { font-size: .5em; font-weight: 500; color: inherit; opacity: .7; }
a90-m-membership .ms-feat { margin: 6px 0 12px; padding-left: 20px; }
a90-m-membership .ms-feat li { margin: 3px 0; }
a90-m-membership .ms-cta { margin-top: 14px; }
a90-m-membership .ms-cta .k-btn { width: 100%; justify-content: center; text-align: center; }

a90-m-membership .ms-checkout { border-top: 4px solid #0B1F4B; }
a90-m-membership .ms-sum { margin: 12px 0; }
a90-m-membership .ms-sum .k-row { justify-content: space-between; padding: 4px 0; }

a90-m-membership .ms-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }
a90-m-membership .ms-item select { flex: 0 1 200px; min-width: 0; }
a90-m-membership .ms-sample { margin-bottom: 12px; }

a90-m-membership .ms-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
a90-m-membership .ms-grid { width: 100%; border-collapse: collapse; min-width: 300px; }
a90-m-membership .ms-grid th { text-align: left; font-size: .8em; color: #0B1F4B; padding: 6px 8px; }
a90-m-membership .ms-grid th:not(:first-child),
a90-m-membership .ms-grid td:not(.ms-area) { text-align: center; width: 64px; }
a90-m-membership .ms-grid td { padding: 8px; }
a90-m-membership .ms-grouprow td { font-weight: 700; color: #0B1F4B; background: #E7EBF5; border-radius: 8px; padding: 6px 10px; }
a90-m-membership .ms-cell { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; cursor: pointer; }
a90-m-membership .ms-cell input { accent-color: #0B1F4B; width: 20px; height: 20px; margin: 0; }

/* styles/m-toolkit.css */
a90-m-toolkit .tk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
a90-m-toolkit .tk-item { cursor: pointer; }
a90-m-toolkit .tk-item h3 { margin: 0 0 4px; }
a90-m-toolkit .tk-locked { cursor: default; opacity: .8; }
a90-m-toolkit .tk-label { font-size: .8em; font-style: italic; margin-top: 6px; }
a90-m-toolkit .tk-bar { height: 6px; border-radius: 999px; background: var(--k-fill); overflow: hidden; margin: 10px 0 4px; }
a90-m-toolkit .tk-bar i { display: block; height: 100%; background: var(--a90-brand); border-radius: 999px; transition: width .2s; }
a90-m-toolkit .tk-steps { margin-top: 10px; }
a90-m-toolkit .tk-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
a90-m-toolkit .tk-step input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
a90-m-toolkit .tk-step small { display: block; }
a90-m-toolkit .tk-step.done b { text-decoration: line-through; opacity: .6; }
a90-m-toolkit .tk-lock { background: var(--a90-brand-soft); margin-bottom: 12px; }
a90-m-toolkit .tk-cta { margin-top: 18px; }
a90-m-toolkit .tk-mgr { flex-wrap: wrap; gap: 6px; margin-top: 10px; }
a90-m-toolkit .tk-ed input[type=text] { width: 100%; margin-bottom: 6px; }
a90-m-toolkit .tk-inl { display: inline-flex; align-items: center; gap: 8px; }
a90-m-toolkit .tk-inl input { width: auto; margin: 0; }

/* styles/m-tools.css */
a90-m-tools .tl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
a90-m-tools .tl-chip { cursor: pointer; border: 0; }
a90-m-tools .tl-chip.on { background: var(--a90-brand); color: var(--a90-on-brand); }
a90-m-tools .tl-meta { font-size: 13px; margin-top: 8px; font-weight: 600; }
a90-m-tools .tl-illus-s { font-size: 12px; font-style: italic; opacity: .75; margin-top: 2px; }
a90-m-tools .tl-actions { margin-top: 12px; gap: 8px; flex-wrap: wrap; }
a90-m-tools .tl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
a90-m-tools .tl-table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14px; }
a90-m-tools .tl-table th { text-align: left; background: var(--a90-brand-soft); padding: 8px 10px; position: sticky; top: 0; }
a90-m-tools .tl-table td { padding: 8px 10px; vertical-align: top; border-bottom: 1px solid var(--k-fill); }
a90-m-tools .tl-table td:first-child, a90-m-tools .tl-table th:first-child { font-weight: 600; min-width: 130px; }
a90-m-tools .tl-ck { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
a90-m-tools .tl-ck input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
a90-m-tools .tl-ck input:checked + span { opacity: .55; text-decoration: line-through; }

/* styles/orders.css */
/* order / cart */
.k-qty { display: inline-flex; align-items: center; gap: 6px; }
.k-qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--k-fill); color: var(--k-ink); font-size: 18px; cursor: pointer; }
.k-qty output { min-width: 22px; text-align: center; font-weight: 700; }
.k-cart { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); margin-top: 14px; background: var(--k-ink); color: var(--k-bg); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
@media (min-width: 900px) { .k-cart { bottom: 16px; } }
.k-cart .k-btn { margin-left: auto; }

/* styles/pe-check.css */
/* Remote Work PE Check — shared by the home page and member Home (<a90-pe-check>) and the Tools tab (<a90-m-tools>). */
#tools, #pe-check { scroll-margin-top: 80px; }
.pe-hero { background: var(--a90-brand); color: var(--a90-on-brand); border-radius: calc(var(--k-radius) + 6px); padding: 22px 20px; box-shadow: var(--k-shadow); margin: 12px 0; }
.pe-hero h2, .pe-hero h3 { color: inherit; margin: 8px 0 6px; }
.pe-hero p { color: inherit; opacity: .92; margin: 0 0 8px; }
.pe-free { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.18); color: inherit; }
.pe-hero-meta { font-size: 13px; opacity: .85; margin: 6px 0 14px; }
.pe-btn-white { background: #fff; color: var(--a90-brand); }
.pe-btn-white:hover { filter: brightness(.96); }
.pe-title { font-size: clamp(20px, 3vw, 26px); }
.pe-title-dark { color: var(--k-ink); margin-bottom: 12px; }
.pe-details { margin: 12px 0; }
.pe-details summary { cursor: pointer; font-weight: 600; color: var(--a90-brand); padding: 8px 0; }
.pe-oecd p { margin: 0 0 10px; }
.pe-meta { font-size: 13px; font-weight: 600; margin-top: 8px; }
.pe-prog { margin: 8px 0 14px; }
.pe-bar { height: 10px; border-radius: 99px; background: var(--k-fill); overflow: hidden; margin-bottom: 6px; }
.pe-bar span { display: block; height: 100%; background: var(--a90-brand); border-radius: 99px; transition: width .25s; }
.pe-opts { display: grid; gap: 10px; margin-top: 8px; }
.pe-opt { display: block; width: 100%; text-align: left; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 2px solid transparent; background: var(--k-fill); color: var(--k-ink); font: 600 15px/1.3 var(--k-font); cursor: pointer; }
.pe-opt:hover { background: var(--a90-brand-soft); }
.pe-opt.on { border-color: var(--a90-brand); background: var(--a90-brand-soft); color: var(--a90-brand); }
.pe-opt:focus-visible, .pe-btn-white:focus-visible { outline: 3px solid var(--a90-brand); outline-offset: 2px; }
.pe-result h3 { font-size: 22px; margin: 4px 0 8px; }
.pe-result { border-left: 6px solid var(--a90-brand); }
.pe-res-low { border-left-color: #16a34a; }
.pe-res-mid { border-left-color: #d97706; }
.pe-res-high { border-left-color: #b91c1c; }
.pe-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.pe-seg { font-size: 12px; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--k-fill); color: var(--k-muted); font-weight: 600; }
.pe-seg.on { color: #fff; }
.pe-seg-low.on { background: #15803d; }
.pe-seg-mid.on { background: #b45309; }
.pe-seg-high.on { background: #b91c1c; }
.pe-ans { padding: 10px 0; border-bottom: 1px solid var(--k-fill); }
.pe-ans:last-child { border-bottom: 0; }
.pe-tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--k-fill); color: var(--k-ink-2); }
.pe-tag-up { background: #fee2e2; color: #991b1b; }
.pe-tag-mid { background: #fef3c7; color: #92400e; }
.pe-tag-low { background: #dcfce7; color: #166534; }
.pe-cta { margin: 14px 0; }
a90-pe-check { display: block; }
a90-pe-check .k-card { margin: 12px 0; }
a90-pe-check h3 { margin-top: 0; }
.k-tools-note { margin-top: 14px; }

/* styles/portal.css */
/* ---------- portal shell: feels like a native app ----------
   Translucent top bar with a large page title that slides into the bar as you scroll,
   a floating tab bar with line icons (max five; the rest under "More"), soft cards. */
.k-portal-body { min-height: 100vh; padding-bottom: calc(96px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
.k-portal-body a, .k-portal-body button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* top bar */
.k-p-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0;
  background: color-mix(in srgb, var(--k-bg) 72%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid transparent; transition: border-color .2s, background .2s; }
.k-p-head.scrolled { border-bottom-color: color-mix(in srgb, var(--k-ink) 12%, transparent); background: color-mix(in srgb, var(--k-bg) 82%, transparent); }
.k-p-mark { display: flex; }
.k-p-name { display: none; font-size: 16px; letter-spacing: -.01em; }
.k-p-mark .k-logo, .k-p-mark .k-mono { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.k-p-bartitle { position: absolute; left: 64px; right: 64px; bottom: 0; height: 56px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; pointer-events: none; }
.k-p-head.titled .k-p-bartitle { opacity: 1; transform: none; }
.k-p-menu { position: relative; margin-left: auto; }
.k-p-menu > button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--a90-brand-soft); color: var(--a90-brand); font-weight: 800; font-size: 15px; cursor: pointer; }
.k-p-menu [role=menu] { position: absolute; right: 0; top: 44px; min-width: 230px; background: color-mix(in srgb, var(--k-card) 92%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); color: var(--k-ink);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(15,23,42,.18), 0 0 0 .5px color-mix(in srgb, var(--k-ink) 10%, transparent); padding: 6px; animation: kPop .16s ease-out; }
.k-p-me { padding: 10px 12px 8px; border-bottom: .5px solid var(--k-line); margin-bottom: 4px; }
.k-p-me b { display: block; } .k-p-me small { color: var(--k-muted); }
.k-p-menu [role=menu] a, .k-p-menu [role=menu] button { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; color: inherit; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.k-p-menu [role=menu] a:hover, .k-p-menu [role=menu] button:hover { background: color-mix(in srgb, var(--k-ink) 6%, transparent); }

/* content */
.k-p-main { max-width: 760px; margin: 0 auto; padding: 4px 16px 24px; }
.k-p-main:focus { outline: none; }
.k-p-main.k-enter { animation: kEnter .22s ease-out; }
.k-p-main h2 { font-size: 22px; margin: 6px 0 14px; }
.k-p-main h2.k-large { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; margin: 6px 0 6px; }
.k-sub { color: var(--k-muted); margin: 0 0 18px; font-size: 15px; }
.k-group { font-size: 15px; font-weight: 700; margin: 26px 2px 10px; color: var(--k-ink); }

/* floating tab bar */
.k-p-tabs { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 480px);
  display: flex; padding: 6px; gap: 2px; border-radius: 28px;
  background: color-mix(in srgb, var(--k-card) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 10px 34px rgba(15,23,42,.14), 0 0 0 .5px color-mix(in srgb, var(--k-ink) 10%, transparent); }
.k-p-tabs > a, .k-p-tabs > button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px 5px; border: 0; background: none; border-radius: 22px;
  color: var(--k-muted); text-decoration: none; font: 600 11px/1.2 var(--k-font); cursor: pointer; transition: color .15s; }
.k-ti { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 16px; transition: background .2s, transform .12s; }
.k-ti .k-emoji { font-size: 19px; line-height: 1; }
.k-tl { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-p-tabs > a[aria-current], .k-p-tabs > button.is-current { color: var(--a90-brand); }
.k-p-tabs > a[aria-current] .k-ti, .k-p-tabs > button.is-current .k-ti { background: var(--a90-brand-soft); }
.k-p-tabs > a:active .k-ti, .k-p-tabs > button:active .k-ti { transform: scale(.92); }
.k-p-tabs .k-overflow { display: none; }
.k-dot { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--k-err); color: #fff; font: 700 11px/18px var(--k-font); text-align: center; box-shadow: 0 0 0 2px var(--k-card); }

/* "More": a bottom sheet with the other sections */
.k-more { position: fixed; inset: 0; z-index: 45; background: rgba(15,23,42,.32); display: flex; align-items: flex-end; justify-content: center; animation: kFade .18s; }
.k-more-sheet { width: min(100%, 520px); background: var(--k-card); border-radius: 26px 26px 0 0; padding: 8px 16px calc(22px + env(safe-area-inset-bottom)); animation: kSheet .22s ease-out; }
.k-more-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--k-line); margin: 2px auto 14px; }
.k-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.k-more-item { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--k-ink); font-weight: 600; font-size: 13px; text-align: center; }
.k-more-item .k-ti { width: 58px; height: 58px; border-radius: 18px; background: var(--a90-brand-soft); color: var(--a90-brand); }
.k-more-item[aria-current] .k-ti { background: var(--a90-brand); color: var(--a90-on-brand); }

/* computers: the tabs become a sidebar */
@media (min-width: 900px) {
  .k-portal-body { padding-bottom: 0; padding-left: 248px; }
  .k-p-head { position: fixed; left: 0; right: 0; z-index: 30; }
  .k-p-name { display: block; }
  .k-p-bartitle { display: none; }
  .k-p-main { padding-top: calc(72px + env(safe-area-inset-top)); }
  .k-p-tabs { top: calc(68px + env(safe-area-inset-top)); bottom: 16px; left: 16px; transform: none; width: 216px; flex-direction: column; gap: 4px; padding: 10px; border-radius: 22px; overflow-y: auto; }
  .k-p-tabs > a, .k-p-tabs > button { flex: none; flex-direction: row; gap: 10px; padding: 4px 8px 4px 4px; font-size: 15px; font-weight: 600; border-radius: 16px; }
  .k-p-tabs .k-ti { width: 40px; height: 36px; border-radius: 12px; }
  .k-p-tabs .k-overflow { display: flex; }
  .k-p-tabs .k-more-btn { display: none; }
  .k-p-tabs > a:hover { background: color-mix(in srgb, var(--k-ink) 5%, transparent); }
  .k-p-tabs > a[aria-current] { background: var(--a90-brand-soft); }
  .k-p-tabs > a[aria-current] .k-ti { background: none; }
  .k-dot { position: static; margin-left: auto; box-shadow: none; }
  .k-p-tabs .k-ti .k-dot { position: absolute; top: -2px; right: 0; }
}

/* home and today */
.k-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .k-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.k-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 22px; background: var(--k-card); box-shadow: var(--k-shadow); color: var(--k-ink); text-decoration: none; transition: transform .12s; min-height: 118px; }
.k-tile:active { transform: scale(.97); }
.k-tile-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--a90-brand-soft); color: var(--a90-brand); margin-bottom: auto; }
.k-tile-i .k-emoji { font-size: 22px; }
.k-tile b { font-size: 16px; margin-top: 12px; }
.k-tile small { color: var(--k-muted); font-size: 13px; }
.k-next { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; margin: 0 0 14px; border-radius: 22px; background: var(--k-card); box-shadow: var(--k-shadow); color: var(--k-ink); text-decoration: none; }
.k-next-when { display: grid; place-items: center; width: 56px; height: 60px; border-radius: 16px; background: var(--a90-brand); color: var(--a90-on-brand); line-height: 1; flex: none; }
.k-next-when b { font-size: 24px; } .k-next-when small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.k-next-what { flex: 1; min-width: 0; display: grid; gap: 1px; }
.k-next-what small { color: var(--k-muted); font-size: 12.5px; } .k-next-what span { color: var(--k-muted); font-size: 14px; }

.k-stack > * + * { margin-top: 14px; }
.k-list { display: grid; gap: 10px; }
.k-li { background: var(--k-card); border-radius: 20px; padding: 14px 16px; box-shadow: var(--k-shadow); }
.k-li-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.k-li h3 { margin: 0; font-size: 16px; }
.k-li .k-muted { font-size: 14px; }
.k-li .k-row { margin-top: 10px; }
.k-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.k-stat { background: var(--k-card); border-radius: 22px; padding: 16px; text-decoration: none; color: inherit; box-shadow: var(--k-shadow); transition: transform .12s; }
.k-stat:active { transform: scale(.97); }
.k-stat b { display: block; font-size: 30px; letter-spacing: -.02em; }
.k-stat.is-due b { color: var(--a90-brand); }
.k-stat span { color: var(--k-muted); font-size: 14px; }
.k-toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(8px); background: color-mix(in srgb, var(--k-ink) 92%, transparent); color: var(--k-bg); padding: 11px 18px; border-radius: 999px; z-index: 50; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: 90vw; font-weight: 600; font-size: 14.5px; box-shadow: 0 8px 26px rgba(15,23,42,.22); }
.k-toast.show { opacity: 1; transform: translateX(-50%); }
@media (min-width: 900px) { .k-toast { bottom: 28px; } }
.k-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.k-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--k-line); }
.k-steps i.on { background: var(--a90-brand); }

@keyframes kEnter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes kFade { from { opacity: 0; } }
@keyframes kSheet { from { transform: translateY(100%); } }
@keyframes kPop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .k-p-main.k-enter, .k-more, .k-more-sheet, .k-p-menu [role=menu] { animation: none; } }

/* A scanned customer card: the customer and what can be done for them (stamp, session…) */
.k-card-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-end; justify-content: center; animation: k-fade .15s ease; }
.k-card-panel { width: min(520px, 100%); background: var(--k-card); border-radius: 26px 26px 0 0; padding: 24px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center; display: grid; gap: 12px; justify-items: center; box-shadow: 0 -10px 40px rgba(0,0,0,.18); animation: k-up .22s ease; }
.k-card-panel h3 { margin: 0; font-size: 22px; }
.k-card-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--a90-brand-soft); color: var(--a90-brand); font-size: 28px; font-weight: 800; }
.k-card-actions { display: grid; gap: 10px; width: 100%; }
.k-card-actions .k-btn { width: 100%; padding: 15px; font-size: 17px; }
.k-card-result { width: 100%; }
@media (min-width: 700px) { .k-card-sheet { align-items: center; } .k-card-panel { border-radius: 26px; } }
@keyframes k-up { from { transform: translateY(30px); opacity: 0; } }
@keyframes k-fade { from { opacity: 0; } }

/* styles/site.css */
/* ---------- public site ---------- */
.k-site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--k-bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--k-line); }
.k-site-head .k-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.k-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--k-ink); text-decoration: none; min-width: 0; }
.k-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-logo { border-radius: 10px; object-fit: contain; background: #fff; }
.k-mono { display: inline-grid; place-items: center; border-radius: 10px; background: var(--a90-brand); color: var(--a90-on-brand); font-weight: 800; font-size: 18px; flex: none; }
.k-site-nav { display: flex; align-items: center; gap: 18px; }
.k-site-nav a:not(.k-btn) { color: var(--k-ink-2); text-decoration: none; font-weight: 500; }
.k-site-nav a[aria-current] { color: var(--a90-brand); }
@media (max-width: 600px) { .k-site-nav a:not(.k-btn) { display: none; } }
.k-hero { position: relative; padding: 72px 0 64px; background: radial-gradient(900px 400px at 20% 0%, color-mix(in srgb, var(--a90-brand) 22%, transparent), transparent 70%); }
.k-hero.has-photo { color: #fff; background-position: center; background-size: cover; background-repeat: no-repeat; min-height: min(78vh, 640px); display: flex; align-items: flex-end; }
.k-hero-text { max-width: 640px; }
.k-hero.has-photo .k-lead { color: rgba(255,255,255,.9); }
.k-hero.has-photo .k-btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.k-eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; opacity: .85; margin: 0 0 10px; }
.k-lead { font-size: clamp(17px, 2vw, 20px); color: var(--k-ink-2); }
.k-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.k-section { padding: 56px 0; }
.k-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.k-section-head a { font-weight: 600; text-decoration: none; }
.k-highlights { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.k-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--a90-brand-soft); margin-bottom: 12px; }
.k-card p { color: var(--k-ink-2); margin: 0; }
.k-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.k-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.k-items { display: grid; gap: 10px; }
.k-item { display: flex; justify-content: space-between; gap: 16px; background: var(--k-card); border: 1px solid var(--k-line); border-radius: 14px; padding: 14px 16px; }
.k-item h3 { margin: 0 0 2px; } .k-item p { margin: 0 0 4px; color: var(--k-ink-2); font-size: 15px; }
.k-price { font-weight: 800; white-space: nowrap; font-size: 17px; }
.k-cat { margin-top: 28px; font-size: 20px; }
.k-two { display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 760px) { .k-two { grid-template-columns: 1fr; } }
.k-hours { width: 100%; border-collapse: collapse; }
.k-hours th, .k-hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--k-line); font-weight: 500; }
.k-hours th { color: var(--k-ink-2); width: 45%; }
.k-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.k-cta-band { text-align: center; background: var(--a90-brand); color: var(--a90-on-brand); }
.k-cta-band .k-btn-brand { background: var(--a90-on-brand); color: var(--a90-brand); }
.k-site-foot { padding: 28px 0 40px; color: var(--k-muted); font-size: 14px; }
.k-site-foot .k-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.k-site-foot a { color: inherit; }
.k-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.k-auth-card { width: 100%; max-width: 420px; background: var(--k-card); border: 1px solid var(--k-line); border-radius: 22px; padding: 28px; text-align: center; }
.k-auth-card .k-brand { justify-content: center; margin-bottom: 14px; }
.k-auth-card form { text-align: left; }
.k-auth-card .k-btn-block { margin-top: 20px; }
.k-auth-icon { font-size: 40px; line-height: 1; margin: 4px 0 8px; }
.k-switch { font-size: 14px; margin: 16px 0 0; }

/* styles/users.css */
/* <a90-users>: the app's users, their types and activity */
.k-u-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.k-u-tools input[type=search] { flex: 1 1 200px; margin: 0; }
.k-u-inline { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 14px; }
.k-u-inline select { width: auto; margin: 0; }
.k-u-types { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.k-u-types::-webkit-scrollbar { display: none; }
.k-u-types button { flex: none; border: 1px solid var(--k-line); background: var(--k-card); color: var(--k-ink-2); padding: 7px 12px; border-radius: 999px; font: 600 14px var(--k-font); cursor: pointer; }
.k-u-types button span { color: var(--k-muted); font-weight: 500; margin-left: 2px; }
.k-u-types button[aria-selected="true"] { background: var(--a90-brand); border-color: var(--a90-brand); color: var(--a90-on-brand); }
.k-u-types button[aria-selected="true"] span { color: inherit; opacity: .8; }
.k-u-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.k-u-type { background: var(--k-fill); color: var(--k-ink-2); }
.k-u-type.is-admin { background: var(--a90-brand); color: var(--a90-on-brand); }
.k-u-type.is-staff { background: var(--a90-brand-soft); color: var(--a90-brand); }
.k-u-actions { flex-wrap: wrap; align-items: center; }
.k-u-help { margin: 6px 0 0; font-size: 14px; }
.k-u-tags .k-badge { white-space: nowrap; }
