:root {
    --teos-ink: #111111;
    --teos-muted: #6e6a63;
    --teos-line: #ded8cd;
    --teos-surface: #ffffff;
    --teos-soft: #f5f2ec;
    --teos-accent: #8a7758;
    --teos-good: #0d7a42;
    --teos-bad: #b42318;
}

.teos-reservation,
.teos-admin .teos-admin-card {
    background: var(--teos-surface);
    border: 1px solid var(--teos-line);
    border-radius: 8px;
    color: var(--teos-ink);
    box-sizing: border-box;
}

.teos-reservation {
    max-width: 980px;
    padding: clamp(20px, 4vw, 42px);
    margin: 24px auto;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
}

.teos-reservation.teos-staff:not(.teos-staff--locked) {
    position: relative;
    left: 50%;
    width: calc(100vw - 24px);
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(-50%);
}

.teos-staff--locked {
    display: grid;
    place-items: center;
    min-height: min(72vh, 620px);
    text-align: center;
}

.teos-staff--locked h2 {
    margin-bottom: 18px;
}

.teos-staff--locked .teos-notice {
    width: min(100%, 520px);
    text-align: left;
}

.teos-staff-login {
    display: grid;
    gap: 16px;
    width: min(100%, 460px);
    margin: 0 auto;
}

.teos-staff-login label {
    text-align: left;
}

.teos-staff-login input {
    min-height: 62px;
    border-width: 2px;
    padding: 16px 18px;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
}

.teos-staff-login .teos-button {
    width: 100%;
    min-height: 62px;
    font-size: 16px;
}

.teos-reservation *,
.teos-admin * {
    box-sizing: border-box;
}

.teos-reservation__header {
    margin-bottom: 22px;
}

.teos-reservation__header--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.teos-reservation h2,
.teos-admin-card h2 {
    margin: 0 0 8px;
    color: var(--teos-ink);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: 0;
}

.teos-admin-card h2 {
    font-size: 24px;
}

.teos-kicker {
    display: block;
    color: var(--teos-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.teos-form label,
.teos-location-choice,
.teos-filterbar label,
.teos-admin-fields label,
.teos-email-template label {
    display: grid;
    gap: 7px;
    min-width: 0;
    font-weight: 700;
}

.teos-form label span,
.teos-location-choice > span,
.teos-filterbar label span,
.teos-admin-fields label span,
.teos-email-template label span {
    color: var(--teos-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teos-form input,
.teos-form select,
.teos-form textarea,
.teos-filterbar input,
.teos-filterbar select,
.teos-admin-fields input,
.teos-admin-fields select,
.teos-email-template input,
.teos-email-template textarea,
.teos-hours-table input,
.teos-hours-table select {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    border: 1px solid var(--teos-line);
    border-radius: 6px;
    background: #fff;
    color: var(--teos-ink);
    padding: 10px 12px;
    font: inherit;
}

.teos-form textarea,
.teos-email-template textarea {
    min-height: 96px;
    resize: vertical;
}

.teos-date-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}

.teos-guest-control {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.teos-guest-buttons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.teos-guest-button {
    min-width: 0;
    min-height: 36px;
    border: 1px solid var(--teos-line);
    border-radius: 6px;
    background: var(--teos-soft);
    color: var(--teos-ink);
    padding: 0;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.teos-guest-button:hover,
.teos-guest-button:focus,
.teos-guest-button.is-active {
    border-color: var(--teos-ink);
    background: var(--teos-ink);
    color: #fff;
}

.teos-mini-button {
    min-height: 44px;
    border: 1px solid var(--teos-ink);
    border-radius: 6px;
    background: #fff;
    color: var(--teos-ink);
    padding: 0 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.teos-mini-button:hover,
.teos-mini-button:focus {
    background: var(--teos-ink);
    color: #fff;
}

.teos-grid {
    display: grid;
    gap: 16px;
}

.teos-grid--booking {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teos-location-choice {
    grid-column: 1 / -1;
}

.teos-location-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.teos-location-button {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.teos-location-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.teos-form .teos-location-button span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    border: 2px solid var(--teos-line);
    border-radius: 8px;
    background: var(--teos-soft);
    color: var(--teos-ink);
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.teos-form .teos-location-button input:checked + span {
    border-color: var(--teos-ink);
    background: var(--teos-ink);
    color: #fff;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
}

.teos-form .teos-location-button input:focus-visible + span {
    outline: 3px solid rgba(138, 119, 88, 0.35);
    outline-offset: 3px;
}

.teos-grid--staff,
.teos-admin-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teos-time-select {
    display: grid;
    margin: 16px 0 8px;
}

.teos-availability-warning {
    border: 1px solid #ead1a6;
    border-radius: 6px;
    background: #fff8ea;
    color: #7a4b00;
    margin: 0 0 16px;
    padding: 12px 14px;
    font-weight: 800;
    line-height: 1.4;
}

.teos-availability-warning[hidden] {
    display: none;
}

.teos-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 18px 0;
    font-weight: 600;
}

.teos-form .teos-consent input {
    width: 22px;
    min-height: 22px;
    margin: 1px 0 0;
    accent-color: var(--teos-ink);
}

.teos-form .teos-consent span {
    color: var(--teos-muted);
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.teos-consent a {
    color: var(--teos-ink);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.teos-static-field {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid var(--teos-line);
    border-radius: 6px;
    padding: 10px 12px;
    background: var(--teos-soft);
}

.teos-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--teos-ink);
    border-radius: 0;
    background: var(--teos-ink);
    color: #fff;
    padding: 0 22px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.teos-button:hover,
.teos-button:focus {
    background: var(--teos-accent);
    border-color: var(--teos-accent);
    color: #fff;
}

.teos-button--light {
    background: #fff;
    color: var(--teos-ink);
}

.teos-button--small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 12px;
}

.teos-notice {
    border-radius: 6px;
    margin: 0 0 18px;
    padding: 13px 15px;
    font-weight: 700;
}

.teos-notice--success {
    background: #eaf7ef;
    color: var(--teos-good);
}

.teos-notice--error {
    background: #fff0ed;
    color: var(--teos-bad);
}

.teos-muted {
    display: block;
    color: var(--teos-muted);
    font-size: 12px;
    font-weight: 600;
}

.teos-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
}

.teos-filterbar label {
    min-width: 180px;
}

.teos-secondary-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.teos-staff-location-filter {
    display: grid;
    gap: 7px;
    min-width: min(100%, 420px);
    font-weight: 700;
}

.teos-staff-location-filter > span {
    color: var(--teos-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teos-staff-location-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.teos-switch-button {
    min-height: 44px;
    border: 1px solid var(--teos-line);
    border-radius: 6px;
    background: #fff;
    color: var(--teos-ink);
    padding: 0 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.teos-switch-button:hover,
.teos-switch-button:focus,
.teos-switch-button.is-active {
    border-color: var(--teos-ink);
    background: var(--teos-ink);
    color: #fff;
}

.teos-edit-actions,
.teos-delete-form {
    display: flex;
    justify-content: flex-start;
}

.teos-delete-form {
    border-top: 1px solid var(--teos-line);
    margin-top: 12px;
    padding-top: 12px;
}

.teos-button--danger {
    border-color: var(--teos-bad);
    background: var(--teos-bad);
    color: #fff;
}

.teos-button--danger:hover,
.teos-button--danger:focus {
    border-color: #86180f;
    background: #86180f;
}

.teos-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.teos-summary > div {
    min-height: 86px;
    border: 1px solid var(--teos-line);
    border-radius: 8px;
    background: var(--teos-soft);
    padding: 16px;
}

.teos-summary strong {
    display: block;
    font-size: 32px;
    line-height: 1;
}

.teos-summary span {
    display: block;
    margin-top: 8px;
    color: var(--teos-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.teos-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.teos-stat-cards article,
.teos-stats-panel {
    border: 1px solid var(--teos-line);
    border-radius: 8px;
    background: var(--teos-soft);
}

.teos-stat-cards article {
    min-height: 94px;
    padding: 16px;
}

.teos-stat-cards strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.teos-stat-cards span {
    display: block;
    margin-top: 9px;
    color: var(--teos-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.teos-stats-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.teos-stats-panel {
    padding: 16px;
}

.teos-stats-panel h3 {
    margin-top: 0;
}

.teos-top-months {
    display: grid;
    gap: 12px;
}

.teos-top-month {
    display: grid;
    gap: 7px;
}

.teos-top-month strong,
.teos-top-month span {
    display: block;
}

.teos-top-month span {
    color: var(--teos-muted);
    font-size: 12px;
    font-weight: 800;
}

.teos-top-month__bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8e1d7;
}

.teos-top-month__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teos-ink), var(--teos-accent));
}

.teos-stats-table {
    min-width: 940px;
}

.teos-coming-today {
    border: 1px solid var(--teos-line);
    border-radius: 8px;
    margin: 16px 0;
    padding: 14px;
    background: #fff;
}

.teos-section-title {
    color: var(--teos-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.teos-coming-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.teos-coming-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-items: baseline;
    border: 1px solid var(--teos-line);
    border-radius: 6px;
    padding: 10px;
    background: var(--teos-soft);
}

.teos-coming-item strong {
    font-size: 18px;
}

.teos-coming-item span {
    font-weight: 900;
}

.teos-coming-item em {
    grid-column: 2;
    color: var(--teos-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.teos-panel {
    border: 1px solid var(--teos-line);
    border-radius: 8px;
    margin: 18px 0;
    padding: 16px;
}

.teos-panel summary {
    cursor: pointer;
    font-weight: 800;
    margin-bottom: 16px;
}

.teos-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.teos-reservations-table {
    min-width: 900px;
}

.teos-reservations-table td,
.teos-reservations-table th {
    vertical-align: top;
}

.teos-status-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.teos-status-form select {
    max-width: 140px;
}

.teos-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: var(--teos-soft);
    color: var(--teos-ink);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.teos-checkin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.teos-checkin-buttons form {
    margin: 0;
}

.teos-chip-button {
    min-height: 32px;
    border: 1px solid var(--teos-line);
    border-radius: 999px;
    background: #fff;
    color: var(--teos-ink);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.teos-chip-button:hover,
.teos-chip-button:focus {
    border-color: var(--teos-ink);
    background: var(--teos-ink);
    color: #fff;
}

.teos-inline-edit {
    margin-top: 8px;
}

.teos-inline-edit summary {
    cursor: pointer;
    color: var(--teos-accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.teos-edit-form {
    min-width: 520px;
    border: 1px solid var(--teos-line);
    border-radius: 8px;
    margin-top: 8px;
    padding: 12px;
    background: #fff;
}

.teos-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.teos-edit-grid label {
    display: grid;
    gap: 5px;
    font-weight: 800;
}

.teos-edit-grid span {
    color: var(--teos-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teos-edit-grid input,
.teos-edit-grid select,
.teos-edit-grid textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--teos-line);
    border-radius: 6px;
    padding: 8px;
}

.teos-edit-wide {
    grid-column: 1 / -1;
}

.teos-internal-note {
    border-left: 3px solid var(--teos-accent);
    color: var(--teos-muted);
    margin-top: 6px;
    padding-left: 8px;
    font-size: 12px;
    font-weight: 800;
}

.teos-status-cancelled {
    opacity: 0.55;
}

.teos-status-waitlist td:first-child {
    border-left: 4px solid #c98b1d;
}

.teos-timeline-view {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.teos-timeline-location {
    border: 1px solid var(--teos-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.teos-timeline-location-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--teos-line);
    background: var(--teos-soft);
    padding: 14px 16px;
}

.teos-timeline-location-head h3 {
    margin: 0;
    font-size: 18px;
}

.teos-timeline-location-head span {
    display: block;
    color: var(--teos-muted);
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
}

.teos-timeline-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.teos-timeline-grid {
    background:
        linear-gradient(90deg, rgba(222, 216, 205, 0.55) 1px, transparent 1px) 160px 0 / calc((100% - 160px) / 6) 100%,
        #fff;
}

.teos-timeline-head,
.teos-timeline-row {
    display: grid;
    grid-template-columns: 160px minmax(560px, 1fr);
}

.teos-timeline-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 42px;
    border-bottom: 1px solid var(--teos-line);
    background: rgba(255, 255, 255, 0.95);
}

.teos-timeline-table-label {
    display: flex;
    align-items: center;
    border-right: 1px solid var(--teos-line);
    padding: 0 12px;
    color: var(--teos-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.teos-timeline-scale {
    position: relative;
}

.teos-timeline-scale span {
    position: absolute;
    top: 11px;
    transform: translateX(-50%);
    color: var(--teos-muted);
    font-size: 12px;
    font-weight: 900;
}

.teos-timeline-row {
    min-height: 66px;
    border-bottom: 1px solid #eee8df;
}

.teos-timeline-row-label {
    display: grid;
    align-content: center;
    border-right: 1px solid var(--teos-line);
    padding: 8px 12px;
    background: rgba(245, 242, 236, 0.75);
}

.teos-timeline-row-label strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teos-timeline-row-label span {
    color: var(--teos-muted);
    font-size: 11px;
    font-weight: 800;
}

.teos-timeline-track {
    position: relative;
}

.teos-timeline-bar {
    position: absolute;
    top: 9px;
    bottom: 9px;
    display: grid;
    align-content: center;
    min-width: 88px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--teos-accent);
    color: #fff;
    padding: 8px 12px;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.14);
}

.teos-timeline-bar strong,
.teos-timeline-bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teos-timeline-bar strong {
    font-size: 13px;
}

.teos-timeline-bar span {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.9;
}

.teos-bar-status-confirmed {
    background: #168a3a;
}

.teos-bar-status-seated {
    background: #1976d2;
}

.teos-bar-status-completed {
    background: #6f6a60;
}

.teos-bar-status-pending {
    background: #c47a12;
}

.teos-timeline-empty {
    padding: 18px;
    color: var(--teos-muted);
    font-weight: 800;
}

.teos-timeline-waitlist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--teos-line);
    padding: 12px 16px;
}

.teos-timeline-waitlist strong,
.teos-timeline-waitlist span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.teos-timeline-waitlist strong {
    background: #fff4df;
    color: #8a5300;
}

.teos-timeline-waitlist span {
    background: var(--teos-soft);
}

.teos-status-seated td:first-child {
    border-left: 4px solid var(--teos-good);
}

.teos-staff-clock {
    color: var(--teos-muted);
    font-weight: 800;
}

.teos-admin-page {
    margin-top: 20px;
}

.teos-admin-grid,
.teos-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.teos-admin .teos-admin-card {
    padding: 20px;
    margin-bottom: 18px;
}

.teos-calendar-location {
    min-width: 0;
    overflow: hidden;
}

.teos-calendar-location .teos-table-wrap {
    border: 1px solid #c3c4c7;
    margin-top: 10px;
}

.teos-calendar-location .teos-reservations-table {
    border: 0;
}

.teos-settings-form h2,
.teos-email-form h2 {
    margin-top: 8px;
}

.teos-location-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    margin-top: 16px;
}

.teos-location-settings,
.teos-email-template {
    border-top: 1px solid var(--teos-line);
    margin-top: 22px;
    padding-top: 18px;
}

.teos-location-settings {
    min-width: 0;
    border: 1px solid var(--teos-line);
    border-radius: 8px;
    background: #fff;
    margin-top: 0;
    padding: 18px;
}

.teos-location-settings .teos-admin-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.teos-location-settings h3,
.teos-email-template h3 {
    margin-top: 0;
}

.teos-hours-wrap {
    overflow-x: auto;
    margin-top: 14px;
    -webkit-overflow-scrolling: touch;
}

.teos-hours-table {
    min-width: 620px;
}

.teos-slot-map {
    display: grid;
    gap: 8px;
    margin: 16px 0 22px;
}

.teos-slot-row {
    display: grid;
    grid-template-columns: 58px 1fr 64px;
    align-items: center;
    gap: 10px;
}

.teos-capacity-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece7dd;
}

.teos-capacity-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--teos-good), var(--teos-accent));
}

.teos-slot-time,
.teos-slot-count {
    font-size: 12px;
    font-weight: 800;
}

.teos-shortcode-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.teos-shortcode-list article {
    border: 1px solid var(--teos-line);
    border-radius: 8px;
    background: var(--teos-soft);
    padding: 16px;
}

.teos-shortcode-list h3 {
    margin-top: 0;
}

.teos-shortcode-list code,
.teos-admin-card code {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    padding: 8px 10px;
    border-radius: 6px;
    background: #111;
    color: #fff;
}

@media (min-width: 901px) {
    .teos-public-reservation .teos-date-field {
        min-height: 88px;
    }

    .teos-public-reservation .teos-date-field input,
    .teos-public-reservation .teos-date-field button {
        min-height: 88px;
    }
}

@media (max-width: 900px) {
    .teos-grid--booking,
    .teos-grid--staff,
    .teos-admin-fields,
    .teos-admin-grid,
    .teos-calendar-grid,
    .teos-location-settings-grid,
    .teos-location-settings .teos-admin-fields,
    .teos-stats-grid,
    .teos-shortcode-list,
    .teos-summary {
        grid-template-columns: 1fr;
    }

    .teos-stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teos-staff .teos-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teos-location-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .teos-form .teos-location-button span {
        min-height: 58px;
        padding: 12px 8px;
        font-size: 14px;
    }

    .teos-coming-list,
    .teos-edit-grid {
        grid-template-columns: 1fr;
    }

    .teos-coming-item em {
        grid-column: 1 / -1;
    }

    .teos-edit-form {
        min-width: 0;
    }

    .teos-timeline-head,
    .teos-timeline-row {
        grid-template-columns: 128px minmax(520px, 1fr);
    }

    .teos-timeline-grid {
        background:
            linear-gradient(90deg, rgba(222, 216, 205, 0.55) 1px, transparent 1px) 128px 0 / calc((100% - 128px) / 6) 100%,
            #fff;
    }

    .teos-reservation__header--split {
        display: block;
    }

    .teos-filterbar {
        display: grid;
    }

    .teos-filterbar label {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .teos-date-field {
        gap: 6px;
    }

    .teos-date-field .teos-mini-button {
        padding: 0 8px;
        font-size: 11px;
    }
}
