:root {
    --bg: #F3F5F9;
    --bg-glass: rgba(243, 245, 249, 0.88);
    --surface: #FFFFFF;
    --surface-2: #EDF1F7;
    --border: #DDE4EE;
    --border-strong: #C3CEDF;
    --text: #14213D;
    --text-muted: #5B6782;
    --primary: #1D3461;
    --primary-hover: #152849;
    --primary-strong: #1D3461;
    --primary-ink: #FFFFFF;
    --primary-soft: #E4EAF6;
    --kpi-bg: #1D3461;
    --kpi-ink: #FFFFFF;
    --kpi-muted: rgba(255, 255, 255, 0.74);
    --accent: #A47C47;
    --accent-soft: #F5EDE1;
    --accent-ink: #77562A;
    --success: #1F7349;
    --success-soft: #E0F1E8;
    --danger: #B42318;
    --danger-soft: #FDECEA;
    --warn: #8F5400;
    --focus: #3765D1;
    --sk: #E4E9F1;
    --sk-hi: #F2F5F9;
    --shadow: 0 0.0625em 0.125em rgba(20, 33, 61, 0.04), 0 0.25em 0.75em rgba(20, 33, 61, 0.04);
    --topbar-h: 4em;

    --radius-s: 0.625em;
    --radius-m: 0.875em;
    --radius-l: 1.125em;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #0A1120;
    --bg-glass: rgba(10, 17, 32, 0.86);
    --surface: #121B2E;
    --surface-2: #19243B;
    --border: #233150;
    --border-strong: #33456E;
    --text: #E9EEF8;
    --text-muted: #9BA8C3;
    --primary: #84A6EE;
    --primary-hover: #9DB8F2;
    --primary-strong: #ACC3F5;
    --primary-ink: #0A1120;
    --primary-soft: #1B2B4D;
    --kpi-bg: #1E3767;
    --kpi-ink: #FFFFFF;
    --kpi-muted: rgba(255, 255, 255, 0.72);
    --accent: #D6B47F;
    --accent-soft: #33291A;
    --accent-ink: #E9CC9D;
    --success: #74D3A3;
    --success-soft: #16372A;
    --danger: #F28B82;
    --danger-soft: #3A1A1A;
    --warn: #E8B562;
    --focus: #9DB8F5;
    --sk: #19243B;
    --sk-hi: #22304D;
    --shadow: none;
    color-scheme: dark;
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--topbar-h);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1em;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol {
    margin: 0;
}

a {
    color: var(--primary);
    text-underline-offset: 0.15em;
}

button,
input {
    font: inherit;
    color: inherit;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 0.1875em solid var(--focus);
    outline-offset: 0.125em;
    border-radius: 0.375em;
}

code {
    font-size: 0.9em;
    background: var(--surface-2);
    padding: 0.1em 0.35em;
    border-radius: 0.3em;
}

.sr-only {
    position: absolute !important;
    width: 0.0625em;
    height: 0.0625em;
    padding: 0;
    margin: -0.0625em;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1em;
    top: -4em;
    z-index: 100;
    padding: 0.75em 1em;
    background: var(--primary);
    color: var(--primary-ink);
    border-radius: var(--radius-s);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1em;
}

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

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Knoppen ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 2.75em;
    padding: 0 1.125em;
    border: 0.0625em solid transparent;
    border-radius: var(--radius-m);
    font-weight: 600;
    font-size: 0.9375em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn--primary {
    background: var(--primary);
    color: var(--primary-ink);
}

.btn--primary:hover {
    background: var(--primary-hover);
}

.btn--ghost {
    background: var(--surface);
    color: var(--primary-strong);
    border-color: var(--border);
}

.btn--ghost:hover {
    background: var(--primary-soft);
    border-color: var(--border-strong);
}

.btn--disabled {
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: default;
    font-weight: 500;
}

.btn--block {
    width: 100%;
}

.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.75em;
    height: 2.75em;
    padding: 0;
    border: 0;
    border-radius: var(--radius-m);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.icon-btn:hover {
    background: var(--surface-2);
}

.icon-btn--outlined {
    background: var(--surface);
    border: 0.0625em solid var(--border);
    color: var(--primary-strong);
}

.icon-btn.is-spinning .icon {
    animation: cc-spin 0.8s linear infinite;
}

.icon-sun {
    display: none;
}

html[data-theme="dark"] .icon-sun {
    display: block;
}

html[data-theme="dark"] .icon-moon {
    display: none;
}

/* ---------- Topbar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg-glass);
    -webkit-backdrop-filter: saturate(1.4) blur(0.75em);
    backdrop-filter: saturate(1.4) blur(0.75em);
    border-bottom: 0.0625em solid var(--border);
    padding-top: env(safe-area-inset-top);
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 0.75em;
    max-width: 80em;
    margin: 0 auto;
    padding: 0.5em 0.5em 0.5em 1em;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75em;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.brand__logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.5em;
    height: 2.5em;
    overflow: hidden;
    border-radius: var(--radius-s);
    background: #FFFFFF;
    border: 0.0625em solid var(--border);
}

.brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.brand__title {
    font-weight: 700;
    font-size: 1.0625em;
    letter-spacing: -0.01em;
}

.brand__sub {
    font-size: 0.8125em;
    color: var(--text-muted);
    white-space: nowrap;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.125em;
    margin-left: auto;
}

.topbar__logout {
    display: contents;
}

/* ---------- Pagina ---------- */

.page {
    max-width: 80em;
    margin: 0 auto;
    padding: 0 1em calc(4em + env(safe-area-inset-bottom));
}

.intro {
    padding: 1.25em 0 1em;
}

.intro__greeting {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.intro__date {
    margin-top: 0.125em;
    color: var(--text-muted);
}

/* ---------- KPI's ---------- */

.kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625em;
}

.kpi {
    display: flex;
    flex-direction: column;
    gap: 0.125em;
    min-width: 0;
    padding: 0.875em 1em;
    background: var(--surface);
    border: 0.0625em solid var(--border);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow);
}

.kpi--main {
    grid-column: 1 / -1;
    background: var(--kpi-bg);
    border-color: transparent;
    color: var(--kpi-ink);
    padding: 1em 1.125em;
}

.kpi__value {
    font-size: 1.875em;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.kpi--main .kpi__value {
    font-size: 2.5em;
}

.kpi__label {
    font-weight: 600;
    font-size: 0.9375em;
}

.kpi__meta {
    font-size: 0.8125em;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpi--main .kpi__meta {
    color: var(--kpi-muted);
}

.kpi--next .kpi__value {
    color: var(--accent-ink);
}

/* ---------- Toolbar ---------- */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    margin-top: 1em;
}

.search {
    position: relative;
    flex: 1 1 100%;
    min-width: 0;
}

.search__icon {
    position: absolute;
    left: 0.875em;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search__input {
    width: 100%;
    height: 2.75em;
    padding: 0 0.875em 0 2.625em;
    background: var(--surface);
    border: 0.0625em solid var(--border);
    border-radius: var(--radius-m);
    font-size: 1em;
    appearance: none;
    -webkit-appearance: none;
}

.search__input::placeholder {
    color: var(--text-muted);
}

.search__input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 0.1875em var(--primary-soft);
}

.toolbar__today {
    flex: none;
    padding: 0 0.875em;
}

.toolbar .status-line {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.date-jump {
    flex: none;
    overflow: hidden;
}

.date-jump__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
}

.date-jump:focus-within {
    outline: 0.1875em solid var(--focus);
    outline-offset: 0.125em;
}

.status-line {
    min-height: 1.5em;
    font-size: 0.8125em;
    color: var(--text-muted);
}

.status-line.is-stale {
    color: var(--warn);
    font-weight: 600;
}

/* ---------- Dagen ---------- */

.planning:focus {
    outline: none;
}

.day {
    margin-top: 0.5em;
    scroll-margin-top: var(--topbar-h);
}

.day + .day {
    margin-top: 1.5em;
}

.day__header {
    position: sticky;
    top: var(--topbar-h);
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.25em 1em;
    margin: 0 -1em;
    padding: 0.75em 1em 0.625em;
    background: var(--bg-glass);
    -webkit-backdrop-filter: saturate(1.4) blur(0.75em);
    backdrop-filter: saturate(1.4) blur(0.75em);
    border-bottom: 0.0625em solid var(--border);
}

.day__title {
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.day__date {
    font-size: 0.875em;
    color: var(--text-muted);
}

.day__meta {
    font-size: 0.875em;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.day__list {
    display: grid;
    gap: 0.75em;
    margin-top: 0.875em;
}

.day__sub {
    margin-top: 1.5em;
    font-size: 0.9375em;
    font-weight: 650;
    color: var(--text-muted);
}

.day__sub + .day__list {
    margin-top: 0.625em;
}

.day__note {
    margin-top: 0.875em;
    padding: 1em 1.125em;
    background: var(--surface);
    border: 0.0625em dashed var(--border-strong);
    border-radius: var(--radius-l);
    color: var(--text-muted);
}

.day__note strong {
    display: block;
    color: var(--text);
    font-weight: 650;
}

/* ---------- Afspraakkaart ---------- */

.appt {
    display: grid;
    gap: 0.875em;
    padding: 1em;
    background: var(--surface);
    border: 0.0625em solid var(--border);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow);
}

.appt--next {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.0625em var(--accent), var(--shadow);
}

.appt--now {
    border-color: var(--success);
    box-shadow: 0 0 0 0.0625em var(--success), var(--shadow);
}

.appt--past {
    opacity: 0.6;
    box-shadow: none;
}

.appt--past .product__img {
    filter: grayscale(0.4);
}

.appt__time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
}

.appt__clock {
    display: inline-flex;
    align-items: baseline;
    gap: 0.375em;
    padding: 0.3125em 0.875em;
    background: var(--primary-soft);
    color: var(--primary-strong);
    border-radius: 62.5em;
    font-size: 1.1875em;
    font-weight: 750;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.appt__end {
    font-weight: 600;
    opacity: 0.8;
}

.appt__clock--unknown {
    font-size: 0.9375em;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.625em;
    border-radius: 62.5em;
    font-size: 0.8125em;
    font-weight: 650;
    white-space: nowrap;
}

.badge--next {
    background: var(--accent-soft);
    color: var(--accent-ink);
}

.badge--now {
    background: var(--success-soft);
    color: var(--success);
}

.appt__body {
    display: grid;
    gap: 0.875em;
    min-width: 0;
}

.appt__name {
    font-size: 1.1875em;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* ---------- Producten ---------- */

.products {
    display: grid;
    gap: 0.625em;
    padding: 0;
    list-style: none;
}

.product {
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
    align-items: center;
    gap: 0.875em;
}

.product__media {
    display: block;
    width: 5.5em;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-m);
    background: var(--surface-2);
    border: 0.0625em solid var(--border);
}

.product__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product__fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    width: 100%;
    height: 100%;
    padding: 0.375em;
    color: var(--text-muted);
    font-size: 0.6875em;
    line-height: 1.2;
    text-align: center;
}

.product__fallback .icon {
    width: 2.25em;
    height: 2.25em;
    stroke-width: 1.5;
}

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

/* ---------- Acties en details ---------- */

.appt__actions {
    display: grid;
    gap: 0.5em;
}

.btn--wa {
    width: 100%;
}

.appt__toggle {
    width: 100%;
    justify-content: space-between;
}

.appt__toggle .icon {
    transition: transform 0.2s ease;
}

.appt.is-open .appt__toggle .icon {
    transform: rotate(180deg);
}

.appt__details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
    margin-top: -0.875em;
}

.appt.is-open .appt__details {
    grid-template-rows: 1fr;
    margin-top: 0;
}

.appt__details-inner {
    overflow: hidden;
    min-height: 0;
}

.details {
    display: grid;
    gap: 0.625em;
    padding-top: 0.875em;
    border-top: 0.0625em solid var(--border);
}

.details__row {
    display: grid;
    grid-template-columns: 6.25em minmax(0, 1fr);
    gap: 0.75em;
}

.details dt {
    color: var(--text-muted);
    font-size: 0.875em;
    padding-top: 0.1em;
}

.details dd {
    overflow-wrap: anywhere;
}

.details__list {
    padding-left: 1.125em;
}

.details__comment {
    white-space: pre-wrap;
}

.details__id {
    margin-top: 0.875em;
    font-size: 0.75em;
    color: var(--text-muted);
}

/* ---------- Status-blokken ---------- */

.state {
    margin-top: 1em;
    padding: 1.5em 1.25em;
    background: var(--surface);
    border: 0.0625em solid var(--border);
    border-radius: var(--radius-l);
}

.state--error {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.state__title {
    font-size: 1.125em;
    font-weight: 700;
}

.state__text {
    margin-top: 0.25em;
    color: var(--text-muted);
}

.state .btn {
    margin-top: 1em;
}

/* ---------- Skeletons ---------- */

.sk {
    display: block;
    background: linear-gradient(90deg, var(--sk) 0%, var(--sk-hi) 50%, var(--sk) 100%);
    background-size: 200% 100%;
    animation: cc-shimmer 1.4s linear infinite;
    border-radius: 0.5em;
}

.sk--pill {
    width: 8.5em;
    height: 2.125em;
    border-radius: 62.5em;
}

.sk--name {
    width: 55%;
    height: 1.375em;
}

.sk--line {
    width: 90%;
    height: 0.875em;
}

.sk--short {
    width: 55%;
}

.sk-lines {
    display: grid;
    gap: 0.5em;
}

.sk--button {
    width: 100%;
    height: 2.75em;
    border-radius: var(--radius-m);
}

.sk--kpi {
    width: 3em;
    height: 2em;
    margin-bottom: 0.375em;
}

.sk--title {
    width: 9em;
    height: 1.5em;
}

.product__media.sk {
    border: 0;
}

.kpi--main.kpi--skeleton {
    background: var(--surface);
    border-color: var(--border);
}

.appt--skeleton {
    box-shadow: none;
}

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.25em + env(safe-area-inset-bottom));
    z-index: 50;
    max-width: calc(100% - 2em);
    padding: 0.75em 1.25em;
    background: var(--text);
    color: var(--bg);
    border-radius: 62.5em;
    font-size: 0.9375em;
    font-weight: 600;
    box-shadow: 0 0.5em 1.5em rgba(10, 17, 32, 0.25);
    opacity: 0;
    transform: translate(-50%, 0.75em);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast[data-kind="error"] {
    background: var(--danger);
    color: #FFFFFF;
}

/* ---------- Login ---------- */

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1.5em 1em;
}

.login {
    width: 100%;
    max-width: 24em;
    padding: 2em 1.5em;
    background: var(--surface);
    border: 0.0625em solid var(--border);
    border-radius: 1.25em;
    box-shadow: var(--shadow);
}

.login__logo {
    width: 3.5em;
    height: 3.5em;
    margin-bottom: 1.25em;
}

.login__title {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login__intro {
    margin-top: 0.25em;
    color: var(--text-muted);
}

.login__form {
    display: grid;
    gap: 1em;
    margin-top: 1.5em;
}

.field {
    display: grid;
    gap: 0.375em;
}

.field__label {
    font-size: 0.875em;
    font-weight: 600;
}

.field__input {
    width: 100%;
    height: 3em;
    padding: 0 0.875em;
    background: var(--bg);
    border: 0.0625em solid var(--border-strong);
    border-radius: var(--radius-m);
    font-size: 1em;
}

.field__input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 0.1875em var(--primary-soft);
}

.alert {
    margin-top: 1.25em;
    padding: 0.75em 1em;
    border-radius: var(--radius-m);
    font-size: 0.9375em;
}

.alert--error {
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 600;
}

.alert--info {
    background: var(--primary-soft);
    color: var(--text);
}

.code-snippet {
    margin: 0.5em 0 0;
    padding: 1em;
    background: var(--surface-2);
    border-radius: var(--radius-m);
    font-size: 0.8125em;
    white-space: pre-wrap;
    word-break: break-all;
    user-select: all;
}

/* ---------- Animaties ---------- */

@keyframes cc-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@keyframes cc-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------- Kleine telefoons ---------- */

@media (max-width: 23.4375em) {
    .brand__sub {
        display: none;
    }

    .toolbar__today {
        padding: 0 0.625em;
    }
}

/* ---------- Tablet ---------- */

@media (min-width: 40em) {
    .page {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    .topbar__inner {
        padding-left: 1.5em;
        padding-right: 1em;
    }

    .day__header {
        margin: 0 -1.5em;
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    .kpis {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .search {
        flex: 1 1 0;
        order: 1;
    }

    .toolbar__today {
        order: 2;
    }

    .date-jump {
        order: 3;
    }

    .toolbar .status-line {
        order: 4;
        flex-basis: 100%;
    }

    .kpi--main {
        grid-column: auto;
    }

    .appt__actions {
        display: flex;
        align-items: center;
        gap: 0.75em;
    }

    .btn--wa {
        width: auto;
    }

    .appt__toggle {
        width: auto;
        margin-left: auto;
        background: transparent;
        border-color: transparent;
        gap: 0.375em;
    }
}

@media (min-width: 48em) {
    .intro {
        padding: 1.75em 0 1.25em;
    }

    .intro__greeting {
        font-size: 1.875em;
    }

    .appt {
        grid-template-columns: 8.5em minmax(0, 1fr);
        gap: 1.25em;
        padding: 1.25em 1.25em 1.25em 1.5em;
    }

    .appt__time {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.625em;
        padding-right: 1.25em;
        border-right: 0.0625em solid var(--border);
    }

    .appt__clock {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125em;
        padding: 0;
        background: transparent;
        font-size: 1em;
    }

    .appt__start {
        font-size: 1.875em;
        line-height: 1.05;
        letter-spacing: -0.03em;
    }

    .appt__end {
        font-size: 0.9375em;
        color: var(--text-muted);
        opacity: 1;
    }

    .appt__clock--unknown {
        font-size: 1em;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(17em, 1fr));
        gap: 0.875em 1.25em;
    }

    .product {
        grid-template-columns: 7.5em minmax(0, 1fr);
    }

    .product__media {
        width: 7.5em;
    }

    .appt--skeleton .sk--pill {
        width: 5.5em;
        height: 2em;
        border-radius: 0.5em;
    }

    .sk--button {
        width: 14em;
    }
}

@media (min-width: 64em) {
    .page {
        padding-left: 2em;
        padding-right: 2em;
    }

    .topbar__inner {
        padding-left: 2em;
        padding-right: 1.5em;
    }

    .day__header {
        margin: 0 -2em;
        padding-left: 2em;
        padding-right: 2em;
    }

    .product {
        grid-template-columns: 8.5em minmax(0, 1fr);
    }

    .product__media {
        width: 8.5em;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(19em, 1fr));
    }

    .details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2em;
    }

    .details__row--wide {
        grid-column: 1 / -1;
    }
}
