@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin.30164609c163.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-ext.c6ba61588d7d.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/fraunces-latin.71109828c80a.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/fraunces-latin-ext.edca8fefb75f.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Source Sans 3 Fallback";
    src: local("Arial");
    size-adjust: 88.9%;
    ascent-override: 114.8%;
    descent-override: 45%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Fraunces Fallback";
    src: local("Georgia");
    size-adjust: 102.9%;
    ascent-override: 95.2%;
    descent-override: 25.3%;
    line-gap-override: 0%;
}

:root {
    --primary: #0F766E;
    --primary-bright: #14B8A6;
    --accent: #C2410C;
    --text: #1F2937;
    --text-muted: #4A5568;
    --bg: #FAF7F2;
    --surface: #FFFFFF;
    --tint-1: #D8F1EA;
    --tint-2: #F6E9D7;
    --tint-3: #E6E4F7;
    --border: #E3DFD7;
    --success: #15803D;
    --error: #B42318;

    --tint-error: #FDF4F2;
    --border-error: #EFC7C1;

    --font-sans: "Source Sans 3", "Source Sans 3 Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;

    --shadow: 0 1px 2px rgba(31, 41, 55, 0.04), 0 2px 8px rgba(31, 41, 55, 0.05);
}

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary);
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.nav-user {
    color: var(--text-muted);
}

.logout-form {
    margin: 0;
    display: inline;
}

button.linklike {
    width: auto;
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

button.linklike:disabled {
    color: var(--text-muted);
    cursor: default;
    text-decoration: none;
}

.resend-form {
    margin: 0.75rem 0 0;
}

.region-switcher {
    position: relative;
}

.region-toggle {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

.region-toggle::-webkit-details-marker {
    display: none;
}

.region-toggle::marker {
    content: "";
}

.region-toggle:hover,
.region-switcher[open] .region-toggle {
    color: var(--primary);
}

.region-caret {
    font-size: 0.65em;
    transition: transform 0.15s;
}

.region-switcher[open] .region-caret {
    transform: rotate(180deg);
}

.region-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: 0.375rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 10;
}

.region-menu-link {
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.region-menu-link:hover {
    background-color: var(--tint-1);
    color: var(--primary);
    text-decoration: none;
}

.region-menu-link[aria-current="true"] {
    color: var(--primary);
    font-weight: 700;
    background-color: var(--tint-1);
}

a {
    color: var(--primary);
}

main {
    flex: 1;

    width: 100%;
    min-width: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

main:not(.container) {
    padding-top: 0;
    padding-bottom: 0;
}

footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer p {
    margin: 0.4rem 0;
}

footer p:first-child {
    margin-top: 0;
}

footer p:last-child {
    margin-bottom: 0;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
}

h1 {
    margin-top: 0;
    font-size: clamp(1.75rem, 1.45rem + 1.5vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h2 {
    font-size: clamp(1.35rem, 1.2rem + 0.75vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.3;
}

.lead {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hint, .choice-detail {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.notice {
    background: var(--tint-2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.confirmed {
    color: var(--success);
}

.slug-status {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
}

.slug-status.slug-available {
    color: var(--success);
}

.slug-status.slug-taken {
    color: var(--error);
}

.messages, .errorlist {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--tint-1);
}

.message > .icon {
    margin-top: 0.2em;
}

.message-error {
    background: var(--surface);
    border-left: 4px solid var(--error);
    color: var(--error);
}

.errorlist {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    list-style: none;
    padding-left: 0;
}

.has-error input,
.has-error select,
input.is-invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 1px var(--error);
}

.form-error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;

    background: var(--tint-error);
    border: 1px solid var(--border-error);
    border-left: 4px solid var(--error);
    color: var(--error);
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-error > .icon {
    flex: none;
    margin-top: 0.15rem;
}

.wg-error {
    display: block;
    grid-column: 1 / -1;
    color: var(--error);
    font-size: 0.78rem;
    line-height: 1.3;
}

form p {
    margin-bottom: 1rem;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
}

legend {
    font-weight: 700;
    padding: 0 0.4rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    font: inherit;
}

input[type="checkbox"], input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex: none;
}

textarea {
    resize: vertical;
}

button, input[type="submit"] {
    width: auto;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

button[type="submit"]:not(.linklike),
input[type="submit"] {
    margin-bottom: 1.5rem;
}

button:hover:not(:disabled), input[type="submit"]:hover {
    background: var(--primary-bright);
}

.button-link {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.button-link:hover {
    background: var(--primary-bright);
}

.button-link.accent {
    background: var(--accent);
}

.button-link.accent:hover {
    background: #A03009;
}

.button-link.lg {
    padding: 0.9rem 1.75rem;
    font-size: 1.05rem;
    border-radius: 6px;
}

.button-link.with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.button-link.with-icon > .icon {
    font-size: 1.3em;
}

button.cta {
    background: var(--accent);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.15s ease;
}

button.cta:hover {
    background: #A03009;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    counter-reset: step;
}

.steps li {
    flex: 1 1 auto;
    border-top: 3px solid var(--border);
    padding-top: 0.4rem;
    counter-increment: step;
}

.steps li::before {
    content: counter(step) ". ";
}

.steps .current {
    border-top-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.steps .done {
    border-top-color: var(--primary-bright);
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.choice:last-child {
    border-bottom: none;
}

.choice input[type="radio"] {
    width: auto;
    margin-top: 0.35rem;
}

.choice label {
    font-weight: 400;
    margin: 0;
}

.choice-detail {
    display: block;
}

.calendar .day,
.slot label,
.data-table td,
.summary dd,
.appointment-list strong,
.price-highlight {
    font-variant-numeric: tabular-nums;
}

.calendar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);

    scroll-margin-top: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.calendar-nav h2 {
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
}

.calendar table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    table-layout: fixed;
}

.calendar th {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
}

.calendar td {
    border: 1px solid var(--border);
    height: 4rem;
    padding: 0;
    text-align: center;
}

.calendar td.out-of-month {
    border-color: transparent;
    background: transparent;
}

.calendar td.unavailable {
    background: var(--bg);
    color: var(--text-muted);
}

.calendar td.available {
    background: var(--tint-1);
}

.calendar .day-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0.3rem;
}

.calendar td.available a.day-box {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.calendar td.available a.day-box:hover {
    background: #c6e9df;
}

.calendar td.selected {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.calendar .day {
    display: block;
    font-size: 1.05rem;
    line-height: 1.25;
}

.calendar .slot-dot {
    display: block;
    width: 5px;
    height: 5px;
    margin: 0.25rem auto 0;
    border-radius: 50%;
    background: var(--primary);
}

.calendar td.unavailable .slot-dot {
    visibility: hidden;
}

.calendar-key {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calendar-key .slot-dot {
    margin: 0;
    flex: none;
}

.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.slot label {
    display: block;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.slot input[type="radio"]:checked + label {
    background: var(--primary);
    color: #fff;
}

.slot input[type="radio"]:focus-visible + label {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.segment input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.segment label {
    display: block;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.segment input[type="radio"]:checked + label {
    background: var(--primary);
    color: #fff;
}

.segment input[type="radio"]:focus-visible + label {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.slots-shown .example {
    display: none;
}

.slots-shown .example.saved {
    display: block;
}

.slots-shown:has(input[type="radio"]:checked) .example.saved {
    display: none;
}

.slots-shown:has(input[value="1"]:checked) .example[data-slots="1"],
.slots-shown:has(input[value="2"]:checked) .example[data-slots="2"],
.slots-shown:has(input[value="3"]:checked) .example[data-slots="3"],
.slots-shown:has(input[value="4"]:checked) .example[data-slots="4"],
.slots-shown:has(input[value="5"]:checked) .example[data-slots="5"],
.slots-shown:has(input[value="6"]:checked) .example[data-slots="6"],
.slots-shown:has(input[value=""]:checked) .example[data-slots=""] {
    display: block;
}

.summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.summary dt {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.summary dd {
    margin: 0 0 0.75rem;
}

.summary dd:last-child {
    margin-bottom: 0;
}

.summary dt.answer-section {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1rem;
}

.summary dt.answer-section:first-child {
    margin-top: 0;
}

.summary dd.answer-section-body:empty {
    margin-bottom: 0;
}

.practitioner-list {
    list-style: none;
    padding: 0;
}

.practitioner-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.appointment-list {
    list-style: none;
    padding: 0;
}

.appointment-list li {
    border-bottom: 1px solid var(--border);
}

.appointment-list a {
    display: block;
    padding: 0.6rem 0;
    color: inherit;
    text-decoration: none;
}

.appointment-list a:hover strong {
    text-decoration: underline;
}

.powered-by {
    margin: 0;
}

.practice-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.practice-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.inline-form {
    display: inline;
    margin: 0;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-field {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-form label {
    display: inline;
    font-weight: 400;
    margin: 0;
}

.filter-form input, .filter-form select {
    width: auto;
    margin: 0;
}

.filter-form button[type="submit"] {
    margin-bottom: 0;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.narrow-only {
    display: none;
}

.patient-search {
    margin-bottom: 1.5rem;
}

.patient-search-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    position: relative;
}

.patient-search-row input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.75rem;
}

.patient-search-row button[type="submit"]:not(.linklike) {
    flex: none;
    margin-bottom: 0;
}

.patient-search .hint {
    margin-top: 0.4rem;
}

.patient-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 20rem;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.patient-suggestion {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.patient-suggestion:last-child {
    border-bottom: none;
}

.patient-suggestion:hover,
.patient-suggestion.is-active {
    background: var(--tint-1);
}

.patient-suggestion-name {
    display: block;
    font-weight: 600;
}

.patient-suggestion-detail {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-summary {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.patient-cards {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 1rem;
}

.patient-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
}

.patient-card-name {
    font-size: 1.15rem;
    margin: 0 0 0.6rem;
}

.patient-card-name a {
    color: inherit;
}

.patient-card-match {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--tint-1);
    border-radius: 4px;
}

.patient-card-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 0.35rem;
}

.patient-card-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.75rem;
    margin: 0;
}

.patient-card-meta dt {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.patient-card-meta dd {
    margin: 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;

    stroke-width: 1.75;
    flex: none;
    vertical-align: -0.125em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.question-form .field-options {
    display: none;
}

.question-form:has(#id_kind option[value="single_choice"]:checked) .field-options,
.question-form:has(#id_kind option[value="multi_choice"]:checked) .field-options {
    display: block;
}

.question-form:has(#id_kind option[value="consent"]:checked) .field-required,
.question-form:has(#id_kind option[value="section"]:checked) .field-required {
    display: none;
}

.question-form .field-body {
    display: none;
}

.question-form:has(#id_kind option[value="consent"]:checked) .field-body,
.question-form:has(#id_kind option[value="section"]:checked) .field-body {
    display: block;
}

.question {
    margin-bottom: 1.25rem;
}

legend > .question-section {
    font: inherit;
    display: inline;
    margin: 0;
    letter-spacing: inherit;
}

.question-group {
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
}

.question-group > legend {
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.25rem;
}

.question-yes_no label,
.question-yes_no_na label,
.question-single_choice label,
.question-multi_choice label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    margin: 0 0 0.35rem;
    cursor: pointer;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-row label {
    font-weight: 400;
    margin: 0;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 0.344em;
}

.signature-block {
    display: block;
    max-width: 600px;
}

.consent-body {
    max-height: 18rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.consent-body p {
    margin: 0 0 0.5em;
}

.consent-body p:last-child {
    margin-bottom: 0;
}

.consent-body:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.consent-record .consent-body {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

[data-signature-for] {
    display: block;
}

[data-signature-for] .hint {
    display: inline-block;
    margin-top: 0.25rem;
}

[data-signature-for] button {
    margin-left: 0.75rem;
}

.signature-pad {
    touch-action: none;
    border: 1px solid var(--border);
    background: var(--surface);
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
}

.signature-image {
    max-width: 320px;
    border: 1px solid var(--border);
}

.signature-question {
    display: block;
    margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
    .wide-only {
        display: none;
    }

    .narrow-only {
        display: block;
    }

    .filter-form {
        gap: 0.5rem;
    }

    .filter-field {
        flex: 1 1 7.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        min-width: 0;
    }

    .filter-form input, .filter-form select {
        width: 100%;
    }

    .filter-form button {
        flex: none;
    }

    .segmented {
        gap: 0.35rem;
    }

    .segment {
        flex: 1 1 auto;
        min-width: 0;
    }

    .segment label {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
        text-align: center;
    }
}

.appointment-cards {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.appointment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.appointment-card-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
}

.appointment-card-when {
    font-variant-numeric: tabular-nums;
}

.appointment-card-when span {
    color: var(--text-muted);
    margin-left: 0.4rem;
}

.appointment-card details {
    margin-top: 0.4rem;
}

.appointment-card summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.appointment-card dl {
    margin: 0.6rem 0 0;
}

.appointment-card dt {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.appointment-card dt:first-child {
    margin-top: 0;
}

.appointment-card dd {
    margin: 0.15rem 0 0;
}

.appointment-card-cancel {
    margin: 0.5rem 0 0;
}

.table-responsive .data-table {
    margin-bottom: 0;
}

.data-table th, .data-table td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table th {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.band {
    padding: 3.5rem 0;
}

.band-bg {
    background: var(--bg);
}

.band-surface {
    background: var(--surface);
}

.band-tint-1 {
    background: var(--tint-1);
}

.band-tint-2 {
    background: var(--tint-2);
}

.band-tint-3 {
    background: var(--tint-3);
}

.band h2 {
    margin-bottom: 0.75rem;
}

.container.narrow {
    max-width: 42rem;
}

.container.wide {
    max-width: 1200px;
}

.container.center {
    text-align: center;
}

.container.edge {
    max-width: none;
    padding-left: max(1.25rem, calc((100% - 1200px) / 2 + 1.25rem));
    padding-right: 0;
}

.showcase {
    scroll-margin-top: 4rem;
}

.showcase-body {
    display: grid;
    grid-template-columns: min(30rem, 38%) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 3rem;
    row-gap: 0;
}

.showcase-body > h1,
.showcase-body > h2 {
    grid-column: 1;
    grid-row: 2;
}

.showcase-text {
    grid-column: 1;
    grid-row: 3;
}

.showcase-shot {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    margin: 0;
}

.showcase .showcase-body > h1,
.showcase .showcase-body > h2 {
    font-size: clamp(1.6rem, 1.05rem + 2.2vw, 2.25rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--primary);
}

.showcase-text > :first-child {
    margin-top: 0;
}

.showcase-shot img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    box-shadow: var(--shadow);
}

.showcase-points {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.showcase-points li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.showcase-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--primary-bright);
}

.showcase-diff {
    margin: 1.25rem 0 0;
    padding-left: 0.9rem;
    border-left: 3px solid var(--primary);
    color: var(--text-muted);
    font-style: italic;
}

.compliance-note {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.compliance-note > .icon {
    margin-top: 0.25em;
}

.showcase-actions {
    margin: 0 0 0.4rem;
}

.showcase .hint {
    margin: 0;
}

.showcase-secondary {
    margin: 1.5rem 0 0;
}

.showcase-secondary-link {
    font-weight: 600;
}

.showcase-group {
    position: relative;
    scroll-margin-top: 1rem;
}

.showcase-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.showcase-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.showcase-nav a {
    display: block;
    padding: 0.9rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    border-bottom: 3px solid transparent;

    margin-bottom: -1px;
}

.showcase-nav [role="tab"] {
    text-decoration: none;
}

.showcase-nav a:hover {
    color: var(--primary);
}

.showcase-nav [aria-selected="true"] {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.showcase-panel[hidden] {
    display: none;
}

.showcase-panel:not([hidden]) + .showcase-panel:not([hidden]) {
    border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
    .container.edge {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .showcase-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 1.25rem;
    }

    .showcase-body > h1,
    .showcase-body > h2,
    .showcase-text,
    .showcase-shot {
        grid-column: auto;
        grid-row: auto;
    }

    .showcase-body > h1,
    .showcase-body > h2 {
        margin-bottom: 0;
    }

    .showcase-shot {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
    }

    .showcase-shot img {
        border-left: 0;
        border-radius: 0;
    }

    .showcase-nav a {
        padding: 0.75rem 0.8rem;
    }

    .showcase-nav {
        position: static;
    }
}

.card-grid {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card-grid li {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--surface);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.card-grid h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary);
}

.card-grid p {
    margin: 0;
    color: var(--text-muted);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--tint-1);
    color: var(--primary);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.feature-grid > li > .icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.comparison-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.comparison-item {
    border-left: 4px solid var(--primary);
    background: var(--bg);
    border-radius: 4px;
    padding: 1rem 1.25rem;
}

.comparison-item p {
    margin: 0;
    color: var(--text-muted);
}

.comparison-item strong {
    color: var(--text);
}

.comparison-summary {
    text-align: center;
    margin-top: 1rem;
}

.pricing-card {
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 2rem 1.75rem;
    max-width: 26rem;
    margin: 1.5rem auto 0;
    box-shadow: var(--shadow);
}

.price-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
}

.price-highlight {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.price-note {
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.price-after {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.legal-page {
    max-width: 40rem;
}

.legal-page h2 {
    margin-top: 2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.post-tag {
    background: var(--tint-1);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
    text-decoration: none;
}

.post-card-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-body h2 {
    margin-top: 2rem;
}

.post-body h3 {
    margin-top: 1.5rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.post-body li {
    margin-bottom: 0.35rem;
}

.post-body blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 3px solid var(--tint-1);
    color: var(--text-muted);
}

.post-body .post-scroll {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
}

.post-body th,
.post-body td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.post-body th {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-body code {
    background: var(--tint-2);
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
    font-size: 0.9em;
}

.post-body pre {
    background: var(--tint-2);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
}

.post-related {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.link-panel {
    background: var(--surface);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.link-panel h2 {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: var(--primary);
}

.link-panel-body {
    display: grid;
    grid-template-columns: 1fr 10rem;
    align-items: start;
    gap: 1.5rem;
}

.link-panel-details {
    min-width: 0;
}

.link-panel-details input[readonly] {
    background: var(--tint-2);
    width: 100%;
}

.copy-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.copy-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    min-width: 6.5rem;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
}

.link-panel-details p {
    margin: 0.5rem 0 0;
}

.link-panel-qr {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    nav {
        width: 100%;
    }

    .link-panel-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calendar {
        padding: 0.5rem;
    }

    .calendar td {
        height: 3.25rem;
    }

    .band {
        padding: 2.25rem 0;
    }

    .showcase {
        padding: 2.75rem 0;
    }

    .showcase-text .lead {
        font-size: 1rem;
    }
}

.anchored-heading {
    scroll-margin-top: 1rem;
}

.week-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 1.25rem;
}

.week-grid th,
.week-grid td {
    border: 1px solid var(--border);
    padding: 0.45rem 0.4rem;
    vertical-align: top;
    text-align: left;
}

.week-grid thead th {
    background: var(--tint-1);
    text-align: center;
    font-size: 0.85rem;
    padding: 0.3rem;
}

.week-grid th[scope="row"] {
    width: 7.5rem;
    background: var(--surface);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.25;
}

.week-grid tbody td {
    background: var(--surface);
}

.week-grid .is-weekend {
    background: color-mix(in srgb, var(--tint-2) 35%, var(--surface));
}

.wg-cell {
    display: block;
}

.wg-track {
    display: block;
    position: relative;
    height: 16px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--bg) 65%, var(--surface));
    border: 1px solid var(--border);
    margin-bottom: 0.3rem;
}

.wg-open {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.wg-notch {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 3px;
    background: var(--tint-2);
    border-left: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
}

.wg-notch::before {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -5px;
    right: -5px;
}

.wg-notch::after {
    content: attr(data-label);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: var(--text);
    color: #fff;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
}

.wg-notch:hover::after {
    display: block;
}

.wg-notch:hover {
    z-index: 20;
}

.wg-times {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.wg-less {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.wg-track.is-empty {
    visibility: hidden;
}

.wg-closed {
    display: block;
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-muted);
}

.wg-edit {
    margin: 0;
}

.wg-edit > summary {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.wg-edit > summary::-webkit-details-marker {
    display: none;
}

.wg-edit > summary:hover,
.wg-edit[open] > summary {
    background: var(--tint-1);
    border-color: var(--primary);
    color: var(--primary);
}

.wg-edit > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.wg-editor {
    margin-top: 0.5rem;
}

.wg-editor label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.wg-editor input[type="time"] {
    padding: 0.25rem 0.3rem;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}

.wg-editor button[type="submit"] {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.wg-editor .linklike {
    font-size: 0.78rem;
    padding: 0;
}

.wg-cards {
    display: none;
}

.wg-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.wg-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
}

.wg-card-day {
    display: grid;
    grid-template-columns: 3rem 1fr;
    align-items: start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.wg-card-day:last-child {
    border-bottom: 0;
}

.wg-card-day .day-name {
    font-weight: 600;
    font-size: 0.88rem;
}

.breaks-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
}

.breaks-strip > h3 {
    margin: 0 0.4rem 0 0;
    font-size: 0.95rem;
}

.breaks-strip > .hint {
    margin: 0;
}

.break-chip {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 0.88rem;
}

.break-chip .break-name {
    font-weight: 600;
}

.break-chip .break-when {
    font-variant-numeric: tabular-nums;
}

.break-chip .break-days {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.break-add-link {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.break-add-link:hover {
    background: #A5350A;
}

.break-edit {
    max-width: 28rem;
}

.weekday-toggles {
    display: block;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    background: none;
}

.weekday-toggles legend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.2rem;
}

.weekday-days {
    display: flex;
    gap: 0.25rem;
}

.weekday-toggles label {
    margin: 0;
    display: block;
    width: 2.25rem;
    text-align: center;
    padding: 0.4rem 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    font-size: 0.85rem;
    cursor: pointer;
}

.weekday-toggles input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.weekday-toggles input:checked + label {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.weekday-toggles input:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.overlap-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: var(--tint-error);
    border: 1px solid var(--border-error);
    border-left: 4px solid var(--error);
    color: var(--error);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.overlap-notice > .icon {
    flex: none;
    margin-top: 0.15rem;
}

.timeoff-when {
    font-weight: 600;
    white-space: nowrap;
}

.timeoff-note {
    color: var(--text-muted);
}

.timeoff-clash td {
    border-top: 0;
    padding-top: 0;
}

.timeoff-clash p {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0 0.35rem;
    padding: 0.4rem 0.6rem;
    background: var(--tint-2);
    border-radius: 6px;
    font-size: 0.9rem;
}

.timeoff-clash .icon {
    flex: none;
    margin-top: 0.15rem;
}

.timeoff-fields .field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.timeoff-fields label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.timeoff-fields input,
.timeoff-fields select {
    width: auto;
    margin: 0;
}

.timeoff-fields .field-note {
    flex: 1 1 12rem;
}

.timeoff-fields .field-note input {
    width: 100%;
}

.timeoff-fields button[type="submit"] {
    margin-bottom: 0;
}

@media (max-width: 780px) {
    .wg-wide {
        display: none;
    }

    .wg-cards {
        display: block;
    }
}

.timeoff-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeoff-layout > form {
    display: flex;
    flex: 1 1 22rem;
    min-width: 0;
    margin: 0;
}

.timeoff-layout .timeoff-add {
    flex: 1;
    margin-bottom: 0;
}

.timeoff-add > legend {
    float: left;
    width: 100%;
    padding: 0;
    margin-bottom: 0.25rem;
}

.timeoff-add > legend + * {
    clear: both;
}

.timeoff-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.timeoff-fields > button[type="submit"] {
    align-self: flex-start;
}

.timeoff-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    width: 100%;
}

.timeoff-times {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.timeoff-fields:has(input[name="all_day"]:checked) .timeoff-times {
    visibility: hidden;
}

.timeoff-fields .checkbox-row {
    margin-bottom: 0.35rem;
}

.timeoff-calendar {
    flex: 0 1 20rem;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.9rem 1rem 1rem;
}

.timeoff-calendar .calendar-nav {
    font-size: 0.85rem;
}

.timeoff-calendar h3 {
    margin: 0;
    font-size: 1rem;
}

.timeoff-key {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.6rem 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mini-swatch {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 3px;
    flex: none;
}

.mini-swatch.is-off {
    background: var(--tint-3);
    border: 1px solid var(--border);
}

.mini-swatch.is-part {
    background: color-mix(in srgb, var(--tint-3) 40%, var(--surface));
    border: 1px solid var(--border);
}

.mini-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.mini-calendar th {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 0.3rem;
}

.mini-calendar td {
    border: 1px solid var(--border);
    padding: 0.15rem 0;
    text-align: center;
    vertical-align: top;
}

.mini-calendar td.out-of-month {
    background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}

.mini-num {
    display: block;
    font-size: 0.8rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.mini-mark {
    display: block;
    font-size: 0.6rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    visibility: hidden;
}

.mini-day.is-off .mini-mark,
.mini-day.is-part .mini-mark {
    visibility: visible;
    font-weight: 700;
    color: var(--text);
}

.mini-day.is-off {
    background: var(--tint-3);
}

.mini-day.is-part {
    background: color-mix(in srgb, var(--tint-3) 40%, var(--surface));
}

.mini-day.is-past {
    opacity: 0.55;
}

.timeoff-clash-card {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--tint-2);
    border-radius: 6px;
    font-size: 0.85rem;
}

.timeoff-clash-card .icon {
    flex: none;
    margin-top: 0.15rem;
}

@media (max-width: 600px) {
    .timeoff-calendar {
        flex-basis: 100%;
    }
}
