/* Styles for the working pages: lists, forms, quotes, invoices and printing. Builds on app.css. */

/* ---------- App shell ---------- */
.content { max-width: 52rem; }
/* Phones: a tab bar fixed along the bottom, icons over labels. */
.nav {
    position: fixed; inset: auto 0 0 0; z-index: 20;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--paper); border-top: 1px solid rgba(74, 90, 106, .25);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(29, 43, 58, .08);
}
body:has(.nav) .content { padding-bottom: 6rem; }
.nav-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
    padding: .5rem .25rem .45rem; min-height: 3.5rem;
    color: var(--ink-soft); font-size: .8rem; font-weight: 700; text-decoration: none;
    cursor: pointer; list-style: none; border-top: 3px solid transparent;
}
.nav-link::-webkit-details-marker { display: none; }
.nav-link svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.active { color: var(--teal); border-top-color: var(--teal); }
.nav-link:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.nav-more { position: relative; display: flex; flex-direction: column; margin: 0; }
.nav-more > summary { flex: 1; box-sizing: border-box; }
.nav-more-menu {
    position: absolute; right: .5rem; bottom: calc(100% + .5rem); min-width: 12rem;
    display: flex; flex-direction: column; padding: .4rem;
    background: var(--paper); border-radius: 12px; box-shadow: 0 8px 28px rgba(29, 43, 58, .25);
}
.nav-more-menu a { padding: .7rem .9rem; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-more-menu a:hover, .nav-more-menu a[aria-current="page"] { background: rgba(27, 127, 121, .12); color: var(--teal); }

/* Wider screens: the same links across the header. */
@media (min-width: 48rem) {
    .nav { position: static; display: flex; gap: 1.25rem; align-items: center; background: none; border: 0; box-shadow: none; padding: 0; }
    body:has(.nav) .content { padding-bottom: 3rem; }
    .nav-link { flex-direction: row; gap: .4rem; min-height: 0; padding: .3rem 0; font-size: 1rem; color: var(--ink); border-top: 0; border-bottom: 2px solid transparent; }
    .nav-link svg { width: 1.15rem; height: 1.15rem; }
    .nav-link:hover, .nav-link.active { border-bottom-color: var(--teal); }
    .nav-more-menu { top: calc(100% + .5rem); bottom: auto; right: 0; z-index: 20; }
}

@media print { .nav { display: none; } }

.access-banner {
    display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; align-items: center;
    padding: .55rem 1.25rem; background: var(--amber); color: #1d2b3a; font-weight: 600; text-align: center;
}
.access-banner a { color: #1d2b3a; }
.access-banner-locked { background: #c8372d; color: #fff; }
.access-banner-locked a { color: #fff; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.ok { color: var(--teal); font-weight: 600; margin: .5rem 0; }
.prewrap { white-space: pre-wrap; }
.crumbs { margin: 0 0 .5rem; font-size: .95rem; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .95em; }

h2 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.6rem; margin: 0 0 .75rem; line-height: 1.1; }
h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.page-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.section { margin-top: 2rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: 1rem 0; }
.toolbar .search { flex: 1 1 16rem; }

.card { padding: 1.1rem 1.25rem; margin: 1.25rem 0; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--lift); }
.card h2 { font-size: 1.4rem; }
.card-warn { box-shadow: inset 4px 0 0 #c8372d; }

/* ---------- Buttons ---------- */
.btn-small { padding: .4rem .85rem; font-size: .95rem; }
.btn-danger { background: #c8372d; color: #fff; }
.link-danger { color: #c8372d; }
.chip { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.chip-on { background: var(--ink); color: var(--desk); border-color: var(--ink); }
.chip:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.chip:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- Lists ---------- */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.row { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--paper); border-radius: 10px; border: 1px solid var(--line); }
.row-main { flex: 1; min-width: 0; display: grid; gap: .1rem; color: inherit; text-decoration: none; }
.row-main:hover .row-title { text-decoration: underline; }
.row-title { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.row-sub { color: var(--ink-soft); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { color: var(--ink-soft); font-size: .95rem; }
.row-archived { opacity: .7; }

.pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--desk); color: var(--ink); border: 1px solid var(--ink-soft); white-space: nowrap; }
.pill-accepted, .pill-paid, .pill-completed, .pill-inprogress { background: #1b7f79; color: #fff; border-color: #1b7f79; }
.pill-booked { background: color-mix(in srgb, var(--teal) 15%, transparent); color: var(--ink); border-color: var(--teal); }
.pill-sent, .pill-quoted, .pill-issued { background: var(--amber); color: #1d2b3a; border-color: var(--amber); }
.pill-overdue, .pill-declined { background: #c8372d; color: #fff; border-color: #c8372d; }
.pill-void, .pill-cancelled, .pill-archived { text-decoration: line-through; }

/* ---------- Forms ---------- */
.grid-2 { display: grid; gap: 0 1rem; }
.grid-4 { display: grid; gap: 0 1rem; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 0 1rem; grid-template-columns: repeat(3, 1fr); }
.group { border: 0; padding: 0; margin: 1.5rem 0; }
.group legend { font-weight: 700; font-size: 1.1rem; margin-bottom: .6rem; }
.contact-row { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.contact-row .check, .contact-row .link-btn { justify-self: start; }
.check { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; margin: .5rem 0; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--teal); }
.check-small { font-size: .9rem; margin: 0; }
.input-small { width: auto; padding: .35rem .6rem; }
.input-num { text-align: right; }
.input-code { text-transform: uppercase; letter-spacing: .08em; max-width: 16rem; }
.field-inline { margin: 0; }
.period-filter { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; font-weight: 600; }
textarea.input { resize: vertical; }

@media (min-width: 36rem) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 40rem) {
    .contact-row { grid-template-columns: 8rem 1fr auto auto; }
}

/* ---------- Lines and totals ---------- */
.lines { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
.lines th { text-align: left; font-size: .85rem; color: var(--ink-soft); font-weight: 600; padding: .4rem .35rem; border-bottom: 2px solid var(--ink-soft); }
.lines td { padding: .35rem; border-bottom: 1px solid var(--desk); vertical-align: middle; }
.lines .num { text-align: right; }
.lines .input { min-width: 4.5rem; }
@media (max-width: 40rem) {
    .lines thead { display: none; }
    .lines tr { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .5rem; padding: .6rem 0; border-bottom: 1px solid var(--ink-soft); }
    .lines td { border: 0; padding: 0; }
    .lines td:first-child { grid-column: 1 / -1; }
}

.totals { margin: 0 0 1rem auto; max-width: 18rem; }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; }
.totals-grand { border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.15rem; }
.totals-grand dt { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 0; }
.stats > div { padding: .75rem 1rem; background: var(--paper); border-radius: 10px; }
.stats dt { font-size: .85rem; color: var(--ink-soft); }
.stats dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.2rem; }
@media (min-width: 36rem) {
    .stats { grid-template-columns: repeat(4, 1fr); }
}

.history { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
details summary { cursor: pointer; font-weight: 600; margin: .5rem 0; }

@media (prefers-color-scheme: dark) {
    .link-danger { color: #ff8a80; }
}

/* ---------- Printable quotes and invoices ---------- */
.doc { background: #fff; color: #1d2b3a; padding: 2rem; border-radius: 4px; --ink: #1d2b3a; --ink-soft: #4a5a6a; --desk: #e6ebe8; }
.doc-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 3px solid #1b7f79; padding-bottom: 1rem; margin-bottom: 1.25rem; }
.doc-title { margin: 0; color: #1b7f79; }
.doc-number { margin: .25rem 0 0; font-weight: 700; }
.doc-from { text-align: right; }
.doc-meta { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-bottom: 1rem; }
.doc-meta h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #4a5a6a; font-family: inherit; margin: 0 0 .25rem; }
.doc-meta p { margin: 0; }
.doc-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #c9d3dc; }
.doc-foot h2 { font-size: 1.1rem; }

@media print {
    .bar, .access-banner, .no-print, #blazor-error-ui { display: none !important; }
    html, body { background: #fff; }
    .content { max-width: none; padding: 0; }
    .doc { padding: 0; }
}
.input-short { max-width: 10rem; }
.stat-bad dd, .neg { color: #c8372d; }
@media (prefers-color-scheme: dark) { .stat-bad dd, .neg { color: #ff8a80; } }

/* Cost against quote */
.meter { height: .75rem; border-radius: 999px; background: var(--desk); overflow: hidden; margin: .25rem 0 .5rem; }
.meter > span { display: block; height: 100%; background: #1b7f79; }
.meter-warn > span { background: var(--amber); }
.meter-over > span { background: #c8372d; }
.breakdown { margin: .5rem 0 0; max-width: 24rem; }
.breakdown > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--desk); }
.breakdown dt { color: var(--ink-soft); }
.breakdown dd { margin: 0; }
.breakdown-total { font-weight: 700; }
.breakdown-total dt { color: var(--ink); }

/* Pages the tradesperson's clients see */
.client-content { padding-top: 2rem; }
.client-foot { max-width: 52rem; margin: 0 auto; padding: 1rem 1.25rem 2rem; color: var(--ink-soft); font-size: .9rem; }
.decision { margin-top: 1.5rem; }

/* Planner */
.check-cell { align-self: end; margin-bottom: 1rem; }
.check-stack { display: flex; flex-direction: column; gap: 0.35rem; }
.week { margin: 1.25rem 0; }
.week-head { font-size: 1.05rem; margin: 0 0 .4rem; }
.days { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, #c9d3dc); }
.day { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; padding: .5rem .25rem; border-bottom: 1px solid var(--line, #c9d3dc); }
.day-date { font-weight: 700; }
.day-jobs { display: flex; flex-direction: column; gap: .25rem; }
.day-weekend { opacity: .65; }
.day-today { background: rgba(27, 127, 121, .08); }
.day-today .day-date { color: var(--teal); }
.day-clash { border-left: 4px solid #c8372d; }
.day-off { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(29, 43, 58, .05) 8px 16px); }
.day-off-label { font-weight: 600; color: var(--ink-soft, #4a5866); }
.time-off-card summary { cursor: pointer; list-style: revert; }
.time-off-card summary h2 { display: inline; margin: 0; }
.booking .link-btn { margin-left: .5rem; font-size: .9rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Quote line details */
.line-details { margin-top: .2rem; color: var(--ink-soft); font-size: .92em; white-space: pre-line; }
.line-details-input { margin-top: .35rem; font-size: .95rem; min-height: 2.6rem; }
.send-pdf-head { margin: 1.25rem 0 .25rem; font-size: 1.05rem; }

/* Logo */
/* Logo picker: a preview tile beside a proper button (the native file box is hidden but still focusable). */
.logo-picker { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.25rem; margin: .5rem 0 1rem; }
.logo-tile {
    display: flex; align-items: center; justify-content: center; width: 11rem; height: 6.5rem; padding: .6rem; border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff repeating-conic-gradient(#f1f3f2 0 25%, #fff 0 50%) 0 0 / 16px 16px; /* shows see-through areas */
}
.logo-tile { overflow: hidden; }
.logo-tile img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-empty { display: grid; justify-items: center; gap: .3rem; color: #6b7a88; font-size: .9rem; font-weight: 600; }
.logo-empty svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.logo-controls { display: grid; gap: .5rem; justify-items: start; flex: 1 1 14rem; }
.logo-controls .field-hint { margin: 0; }
.file-btn { position: relative; cursor: pointer; }
.file-btn:focus-within { box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--focus); }
.file-btn.is-busy { opacity: .7; cursor: progress; }
.file-input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.doc-logo { display: block; max-width: 180px; max-height: 70px; margin: 0 0 .5rem auto; }

/* Document styles (Settings > Quote and invoice style) */
.doc-style-bold .doc-head { background: #1d2b3a; color: #fff; border-bottom: 0; padding: 1.25rem 1.5rem; border-radius: 6px; }
.doc-style-bold .doc-title { color: #ffb703; }
.doc-style-bold .doc-from, .doc-style-bold .doc-number { color: #fff; }
.doc-style-minimal .doc-head { border-bottom: 1px solid #1d2b3a; }
.doc-style-minimal .doc-title { color: #1d2b3a; font-weight: 600; }
@media print {
    .doc-style-bold .doc-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.style-choices { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.style-choice { display: grid; gap: .3rem; padding: .75rem; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.style-choice:hover { border-color: var(--ink-soft); }
.style-choice:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.style-choice input { justify-self: start; accent-color: var(--teal); }
.style-name { font-weight: 700; }
.style-desc { font-size: .9rem; }
.style-sample { display: grid; gap: .3rem; padding: .5rem; background: #fff; border-radius: 6px; height: 5.5rem; align-content: start; }
.style-sample-head { font-weight: 800; font-size: .8rem; padding-bottom: .25rem; }
.style-sample-line { height: .35rem; background: #dfe5e2; border-radius: 3px; }
.style-sample-line.short { width: 55%; }
.style-sample-classic .style-sample-head { color: #1b7f79; border-bottom: 2px solid #1b7f79; }
.style-sample-bold .style-sample-head { color: #ffb703; background: #1d2b3a; padding: .25rem .4rem; border-radius: 3px; }
.style-sample-minimal .style-sample-head { color: #1d2b3a; border-bottom: 1px solid #1d2b3a; }

/* Record of client decisions on a job */
.decisions-heading { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.decisions { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line, #c9d3dc); }
.decision-entry { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .4rem .75rem; position: relative; }
.decision-entry::before { content: ""; position: absolute; left: -7px; top: .8rem; width: 11px; height: 11px; border-radius: 50%; background: var(--teal); }
.decision-declined::before { background: #c8372d; }
.decision-entry time { color: var(--ink-soft, #4a5866); font-variant-numeric: tabular-nums; }
.all-clear { margin: 1rem 0; padding: .75rem 1rem; border-radius: 10px; background: rgba(27, 127, 121, .08); color: var(--teal); font-weight: 600; }

/* ---------- Sticky save bar ---------- */
.save-bar {
    position: sticky; bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin: 1.5rem 0 0; padding: .75rem 1rem; border-radius: 14px;
    background: var(--paper); border: 1px solid rgba(74, 90, 106, .25); box-shadow: 0 6px 22px rgba(29, 43, 58, .14);
    transition: border-color .2s, background-color .2s;
}
@media (min-width: 48rem) { .save-bar { bottom: 1rem; } }
.save-state { margin: 0; font-weight: 600; color: var(--ink-soft); font-size: .95rem; line-height: 1.25; }
.save-bar .btn { flex: none; }
@media (max-width: 30rem) { .save-bar { padding: .5rem .75rem; } .save-bar .btn { padding: .55rem 1rem; } }
.save-bar.is-dirty { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, var(--paper)); }
.save-bar.is-dirty .save-state { color: var(--ink); }
.save-bar.is-saved { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, var(--paper)); }
.save-done { display: inline-flex; align-items: center; gap: .4rem; color: var(--teal); animation: save-pop .35s ease-out; }
.save-done svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.save-bar.is-error { border-color: #c8372d; background: color-mix(in srgb, #c8372d 12%, var(--paper)); }
.save-error { color: var(--ink); }
@keyframes save-pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .save-done { animation: none; } }

/* ---------- Settings layout ---------- */
.settings-jump { position: sticky; top: 0; z-index: 5; display: flex; gap: .5rem; overflow-x: auto; padding: .5rem 0; margin: 0 0 .5rem; background: var(--desk); }
.settings-jump a { flex: none; text-decoration: none; }
.settings-section { scroll-margin-top: 4rem; }
.settings-section > header { margin-bottom: .75rem; }
.settings-section > header h2 { margin: 0 0 .15rem; }
.settings-section > header p { margin: 0; }
.settings-sub { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(74, 90, 106, .18); }
.settings-sub h3, .settings-h3 { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
@media (min-width: 48rem) {
    .settings-section { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; }
    .settings-section > header { margin: 0; }
}

/* ---------- Integrations ---------- */
.breadcrumb { margin: 0 0 .25rem; color: var(--ink-soft); font-size: .95rem; }
.breadcrumb a { color: var(--teal); }
.field-hint { display: block; margin-top: .25rem; font-size: .9rem; color: var(--ink-soft); }
.integration-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.integration-head h2 { margin: 0 0 .25rem; }
.integration-head p { margin: 0; }
.integration-body { display: grid; gap: 1.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(74, 90, 106, .18); }
@media (min-width: 48rem) { .integration-body { grid-template-columns: 1fr 1fr; } }
.integration-form .save-bar { position: static; box-shadow: none; }
.checklist { margin: .5rem 0 1rem; padding-left: 1.2rem; }
.checklist li { margin: .3rem 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: .5rem 0 1rem; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; }
.soon-note { margin-left: .5rem; font-weight: 600; color: var(--ink-soft); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Price list and fixed-price jobs ---------- */
.row-price { font-weight: 600; }
.price-form { margin-top: 1.5rem; }
.price-form h2 { margin-top: 0; }

/* Detailer packages compared side by side, cheapest first. */
.starter { margin-bottom: 1.5rem; }
.starter h2 { margin-top: 0; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.tier { border: 1px solid var(--line); border-top: 4px solid var(--line-strong); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; background: var(--paper); box-shadow: var(--lift); }
.tier-level-2 { border-top-color: var(--teal); }
.tier-level-3, .tier-level-4 { border-top-color: var(--amber); }
.tier-name { margin: 0; font-size: 1.25rem; }
.tier-price { margin: .25rem 0 .75rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.tier-price .money { font-size: 1.6rem; font-weight: 700; }
.tier-time { color: var(--ink-soft); font-size: .95rem; }
.tier-base { margin: 0 0 .35rem; font-weight: 600; color: var(--teal); }
.tier-list { margin: 0; padding: 0; list-style: none; }
.tier-list li { position: relative; padding: .2rem 0 .2rem 1.5rem; }
.tier-list li::before { content: ""; position: absolute; left: .15rem; top: .55rem; width: .7rem; height: .4rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.fixed-line { display: grid; grid-template-columns: 1fr 6.5rem; gap: .75rem; align-items: end; }
.fixed-line .link-btn { grid-column: 1 / -1; justify-self: start; margin-top: -.5rem; }
.fixed-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin: 1rem 0; padding: .9rem 1rem; border-radius: 10px; background: var(--paper); }
.fixed-total strong { font-size: 1.4rem; }
.confirm-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 10px; background: color-mix(in srgb, #c8372d 12%, var(--paper)); }
.repeat-row { flex-wrap: wrap; }
.repeat-row .row-sub { white-space: normal; }
@media (max-width: 40rem) { .repeat-row .row-main { flex-basis: 100%; } }

/* ---------- Help ---------- */
.help-search { display: flex; gap: .6rem; margin: 1rem 0 1.5rem; max-width: 40rem; }
.help-search .input { flex: 1; }
.help-results, .help-topic { margin: 1.5rem 0; }
.help-topic h2, .help-results h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.help-sub { white-space: normal; }
.help-article { max-width: 40rem; }
.help-article p, .help-steps li { line-height: 1.55; }
.help-steps { padding-left: 1.4rem; }
.help-steps li { margin: .5rem 0; }
.help-tip { padding: .75rem 1rem; border-left: 4px solid var(--amber); background: var(--paper); border-radius: 6px; }
.help-contact { margin-top: 2rem; }

/* Detailers: one day by the hour. 1 minute = --min; an hour row is 60 of them. */
.day-planner { --min: .9px; }
.day-nav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.day-nav h2 { margin: 0; flex: 0 1 auto; min-width: 12rem; text-align: center; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin: .9rem 0; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .35rem .2rem; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.week-day:hover { border-color: var(--line-strong); }
.week-day:focus-visible { outline: none; box-shadow: var(--focus); }
.week-day-on { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); font-weight: 600; }
.week-day-today span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.week-day-count { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.all-day { margin: .3rem 0; padding: .4rem .7rem; border-left: 4px solid var(--line-strong); border-radius: 4px; background: color-mix(in srgb, var(--ink-soft) 8%, transparent); }
.hour-grid { position: relative; margin-top: .5rem; }
.hour-row { height: calc(60 * var(--min)); border-top: 1px solid var(--line); }
.hour-label { display: block; width: 3.2rem; padding-top: .1rem; font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.slots { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0 0 0 3.4rem; }
.slot {
    position: absolute; top: calc(var(--top) * var(--min)); height: calc(var(--len) * var(--min) - 2px); min-height: 1.4rem;
    left: calc(100% / var(--cols) * var(--col)); width: calc(100% / var(--cols) - 4px);
    overflow: hidden; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent); border-left: 4px solid var(--teal);
    background: color-mix(in srgb, var(--teal) 14%, var(--paper)); padding: .25rem .5rem; font-size: .9rem; line-height: 1.3;
    display: flex; align-items: flex-start; gap: .4rem;
}
.slot a { display: block; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.slot a:hover .slot-label { text-decoration: underline; }
.slot-time { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .4rem; }
.slot-note { display: block; color: var(--ink-soft); }
.slot-cancel { flex: none; font-size: .8rem; }
.slot-clash { border-left-color: #c2410c; background: color-mix(in srgb, #c2410c 12%, var(--paper)); }
.booking-time { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: .3rem; }
.warn { color: #9a3412; font-weight: 600; }
@media (max-width: 40rem) { .week-day { font-size: .75rem; } .day-nav h2 { min-width: 0; font-size: 1.15rem; } }
