:root {
    --vb-ink: #263238;
    --vb-muted: #607076;
    --vb-line: #dfe7df;
    --vb-soft: #f5f8f3;
    --vb-accent: #6f9f78;
    --vb-accent-dark: #4f8059;
    --vb-danger: #a44343;
}

body.reservation-page,
body.admin-page {
    margin: 0;
    color: var(--vb-ink);
    background: #fbfcfa;
    font-family: "Open Sans", Arial, sans-serif;
}

.vb-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.vb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.vb-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--vb-ink);
    font-family: Merriweather, Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.vb-logo img {
    width: auto;
    height: 76px;
    max-width: none;
    object-fit: contain;
}

.vb-hero,
.vb-panel {
    border: 1px solid var(--vb-line);
    border-radius: 8px;
    background: #fff;
}

.vb-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: clamp(24px, 5vw, 48px);
    margin-bottom: 24px;
}

.vb-hero h1,
.vb-panel h2,
.vb-panel h3 {
    margin: 0;
    font-family: Merriweather, Georgia, serif;
}

.vb-hero h1 {
    font-size: clamp(30px, 6vw, 48px);
}

.vb-hero p,
.vb-muted {
    color: var(--vb-muted);
}

.vb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.vb-panel {
    padding: 22px;
    margin-bottom: 18px;
}

.vb-form {
    display: grid;
    gap: 16px;
}

.vb-field {
    display: grid;
    gap: 7px;
}

.vb-field label {
    font-weight: 700;
}

.vb-field input,
.vb-field select,
.vb-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cdd8cd;
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}

.vb-field textarea {
    min-height: 120px;
    resize: vertical;
}

.vb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.vb-button,
.vb-link-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    color: #fff;
    background: var(--vb-accent);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.vb-button:hover,
.vb-link-button:hover {
    background: var(--vb-accent-dark);
}

.vb-button.secondary,
.vb-link-button.secondary {
    color: var(--vb-ink);
    background: var(--vb-soft);
    border: 1px solid var(--vb-line);
}

.vb-button.danger {
    background: var(--vb-danger);
}

.vb-week-form {
    margin: 16px 0;
}

.vb-week-select {
    max-width: 320px;
}

.vb-calendar-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}

.vb-calendar {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 8px 10px;
}

.vb-calendar th,
.vb-calendar td {
    border: 1px solid var(--vb-line);
    border-radius: 6px;
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
}

.vb-calendar thead th {
    line-height: 1.35;
    min-width: 150px;
}

.vb-calendar thead th,
.vb-calendar tbody th {
    background: var(--vb-soft);
    font-weight: 700;
}

.vb-calendar tbody th {
    width: 92px;
    min-width: 92px;
}

.vb-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 92px;
    min-height: 44px;
    border: 1px solid var(--vb-line);
    border-radius: 6px;
    padding: 0 12px;
    color: var(--vb-ink);
    background: var(--vb-soft);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.vb-slot:hover {
    color: #fff;
    background: var(--vb-accent-dark);
    border-color: var(--vb-accent-dark);
}

.vb-slot-empty {
    color: #a8b5aa;
    font-weight: 700;
}

.vb-inline-link {
    color: var(--vb-accent);
    font-weight: 700;
}

.vb-alert {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    background: #eaf5e8;
    border: 1px solid #cae6c6;
}

.vb-alert.error {
    background: #fff1f1;
    border-color: #efc7c7;
}

.vb-table-wrap {
    overflow-x: auto;
}

.vb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vb-table th,
.vb-table td {
    border-bottom: 1px solid var(--vb-line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.vb-status {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 9px;
    background: var(--vb-soft);
    font-weight: 700;
}

.vb-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.vb-admin-nav a {
    border-radius: 6px;
    padding: 9px 12px;
    color: var(--vb-ink);
    background: var(--vb-soft);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 700px) {
    .vb-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .vb-logo img {
        height: 64px;
    }

    .vb-table {
        min-width: 760px;
    }
}
