.offcourt-manager {
    --ocm-green: #004B3A;
    --ocm-deep: #023428;
    --ocm-gold: #D4B15A;
    --ocm-gold-soft: #ead28b;
    --ocm-cream: #F5EFE4;
    --ocm-muted: rgba(245, 239, 228, 0.72);
    --ocm-line: rgba(212, 177, 90, 0.26);
    background:
        radial-gradient(circle at 14% 0%, rgba(245, 239, 228, 0.16), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(212, 177, 90, 0.2), transparent 32%),
        linear-gradient(145deg, #005442, #023428 62%);
    color: var(--ocm-cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 14px;
    width: 100%;
}

body.offcourt-env-development .offcourt-manager {
    outline: 4px solid #f97316;
    outline-offset: -4px;
}

.offcourt-manager *,
.offcourt-manager *::before,
.offcourt-manager *::after {
    box-sizing: border-box;
    min-width: 0;
}

.ocm-dev-badge {
    align-items: center;
    background: #f97316;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    color: #fff7ed;
    display: grid;
    font-size: 11px;
    gap: 2px;
    padding: 10px 12px;
    position: fixed;
    bottom: 12px;
    right: 12px;
    text-transform: uppercase;
    z-index: 1000;
}

.ocm-dev-badge strong,
.ocm-dev-badge em {
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.ocm-dev-badge span {
    font-weight: 800;
    opacity: 0.88;
}

.ocm-shell {
    display: grid;
    gap: 16px;
    margin: 0 auto;
    max-width: 1360px;
    padding-bottom: 72px;
    width: 100%;
}

.ocm-mobile-header {
    align-items: center;
    background: rgba(0, 75, 58, 0.92);
    border: 1px solid var(--ocm-line);
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    margin: 0 auto 12px;
    max-width: 1360px;
    padding: 10px 12px 10px 16px;
    position: sticky;
    top: 8px;
    z-index: 20;
}

.ocm-mobile-header button,
.ocm-filter-head button,
.ocm-filters button,
.ocm-actions button,
.ocm-actions a {
    align-items: center;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    text-decoration: none;
}

.ocm-mobile-header button,
.ocm-filter-head button,
.ocm-actions a,
.ocm-actions button {
    background: rgba(245, 239, 228, 0.1);
    border: 1px solid rgba(212, 177, 90, 0.28);
    color: var(--ocm-gold-soft);
}

.ocm-filters button {
    background: linear-gradient(135deg, var(--ocm-gold), var(--ocm-gold-soft));
    border: 1px solid var(--ocm-gold);
    color: var(--ocm-deep);
}

.ocm-login .button,
.ocm-login input[type="submit"] {
    background: linear-gradient(135deg, var(--ocm-gold), var(--ocm-gold-soft));
    border: 1px solid var(--ocm-gold);
    border-radius: 999px;
    color: var(--ocm-deep);
    cursor: pointer;
    font-weight: 900;
    min-height: 52px;
    padding: 12px 18px;
    width: 100%;
}

.ocm-hero,
.ocm-card,
.ocm-summary-card,
.ocm-booking-card,
.ocm-filters {
    background: rgba(0, 75, 58, 0.72);
    border: 1px solid var(--ocm-line);
    border-radius: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.18);
    max-width: 100%;
    width: 100%;
}

.ocm-hero {
    padding: 22px;
}

.ocm-hero span,
.ocm-label,
.ocm-section-title span,
.ocm-summary-card span,
.ocm-filters label span {
    color: var(--ocm-gold-soft);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ocm-hero h1 {
    color: var(--ocm-cream);
    font-size: 38px;
    line-height: 1;
    margin: 10px 0;
}

.ocm-hero p {
    color: var(--ocm-muted);
    margin: 0;
}

.ocm-tabs {
    background: rgba(245, 239, 228, 0.08);
    border: 1px solid var(--ocm-line);
    border-radius: 999px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
}

.ocm-tabs a {
    align-items: center;
    border-radius: 999px;
    color: var(--ocm-gold-soft);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    min-width: max-content;
    min-height: 42px;
    padding: 0 14px;
    text-decoration: none;
}

.ocm-tabs .ocm-logout-link {
    background: rgba(255, 180, 166, 0.12);
    border: 1px solid rgba(255, 180, 166, 0.22);
    color: #ffcabf;
}

.ocm-summary-grid,
.ocm-quick-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ocm-summary-card,
.ocm-card {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.ocm-summary-card strong,
.ocm-card strong {
    color: var(--ocm-cream);
    font-size: clamp(20px, 7vw, 34px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.ocm-summary-card em {
    color: var(--ocm-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.ocm-summary-card em.is-positive {
    color: #baf5d8;
}

.ocm-filters {
    bottom: 0;
    display: grid;
    gap: 12px;
    left: 0;
    max-height: 82vh;
    overflow-y: auto;
    padding: 16px;
    position: fixed;
    right: 0;
    transform: translateY(105%);
    transition: transform 180ms ease;
    z-index: 50;
}

.ocm-filters.is-open {
    transform: translateY(0);
}

.ocm-filter-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.ocm-filters label,
.ocm-login form {
    display: grid;
    gap: 8px;
}

.ocm-login-message {
    background: rgba(212, 177, 90, 0.16);
    border: 1px solid rgba(212, 177, 90, 0.32);
    border-radius: 18px;
    color: var(--ocm-gold-soft);
    font-weight: 900;
    padding: 12px 14px;
}

.ocm-filters input,
.ocm-filters select,
.ocm-login input {
    appearance: none;
    background: rgba(245, 239, 228, 0.1);
    border: 1px solid var(--ocm-line);
    border-radius: 18px;
    color: var(--ocm-cream);
    min-height: 48px;
    padding: 12px 14px;
    width: 100%;
}

.ocm-custoc-range {
    display: none !important;
}

.ocm-filters.is-custoc-range .ocm-custoc-range {
    display: grid !important;
}

.ocm-dashboard-grid,
.ocm-timeline,
.ocm-date-group,
.ocm-time-group,
.ocm-booking-grid,
.ocm-side-panel,
.ocm-court-list {
    display: grid;
    gap: 14px;
}

.ocm-section-title {
    align-items: end;
    display: flex;
    justify-content: space-between;
}

.ocm-section-title strong {
    color: var(--ocm-cream);
}

.ocm-date-group h2,
.ocm-time-group h3 {
    color: var(--ocm-gold-soft);
    margin: 0;
}

.ocm-booking-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.ocm-booking-card header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.ocm-booking-card header strong {
    color: var(--ocm-gold-soft);
    overflow-wrap: anywhere;
}

.ocm-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 9px;
}

.ocm-status.is-confirmed {
    background: rgba(59, 212, 135, 0.18);
    color: #baf5d8;
}

.ocm-status.is-cancelled {
    background: rgba(255, 180, 166, 0.18);
    color: #ffb4a6;
}

.ocm-status.is-noshow {
    background: rgba(188, 194, 190, 0.18);
    color: rgba(245, 239, 228, 0.72);
}

.ocm-status.is-checkedin {
    background: rgba(88, 166, 255, 0.18);
    color: #b8d7ff;
}

.ocm-status.is-completed {
    background: rgba(212, 177, 90, 0.2);
    color: var(--ocm-gold-soft);
}

.ocm-booking-card.is-confirmed {
    border-left: 5px solid #3bd487;
}

.ocm-booking-card.is-cancelled {
    border-left: 5px solid #ff7f6d;
}

.ocm-booking-card.is-completed {
    border-left: 5px solid #88918c;
}

.ocm-booking-card.is-starting-soon {
    border-left: 5px solid #f0a84f;
}

.ocm-booking-card.is-playing {
    border-left: 5px solid #58a6ff;
}

.ocm-booking-card.is-checkedin,
.ocm-calendar-booking.is-checkedin {
    border-left: 5px solid #58a6ff;
}

.ocm-calendar-booking.is-completed {
    border-left: 5px solid var(--ocm-gold);
}

.ocm-booking-card.is-focused {
    border-color: rgba(212, 177, 90, 0.95);
    box-shadow: 0 0 0 3px rgba(212, 177, 90, 0.28), 0 22px 54px rgba(0, 0, 0, 0.34);
    transform: translateY(-2px);
}

.ocm-booking-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ocm-booking-card dl div {
    display: grid;
    gap: 3px;
}

.ocm-booking-card dt {
    color: var(--ocm-muted);
    font-size: 12px;
    font-weight: 800;
}

.ocm-booking-card dd {
    color: var(--ocm-cream);
    font-weight: 900;
    margin: 0;
    overflow-wrap: anywhere;
}

.ocm-actions {
    display: grid;
    gap: 8px;
}

.ocm-actions form,
.ocm-actions button,
.ocm-actions a {
    width: 100%;
}

.ocm-operations,
.ocm-calendar {
    display: grid;
    gap: 14px;
}

.ocm-operation-grid {
    display: grid;
    gap: 12px;
}

.ocm-operation-booking {
    display: grid;
    gap: 8px;
}

.ocm-operation-booking span,
.ocm-operation-booking em,
.ocm-muted-line {
    color: var(--ocm-muted);
    font-style: normal;
    font-weight: 800;
}

.ocm-view-switch {
    background: rgba(245, 239, 228, 0.08);
    border: 1px solid var(--ocm-line);
    border-radius: 999px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px;
}

.ocm-view-switch button {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--ocm-gold-soft);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    min-height: 42px;
}

.ocm-view-switch button.is-active {
    background: linear-gradient(135deg, var(--ocm-gold), var(--ocm-gold-soft));
    color: var(--ocm-deep);
}

.ocm-calendar-days {
    display: grid;
    gap: 12px;
}

.ocm-day-card {
    background: rgba(0, 75, 58, 0.72);
    border: 1px solid var(--ocm-line);
    border-radius: 24px;
    overflow: hidden;
}

.ocm-day-card summary {
    align-items: center;
    color: var(--ocm-cream);
    cursor: pointer;
    display: flex;
    font-weight: 900;
    justify-content: space-between;
    list-style: none;
    min-height: 56px;
    padding: 16px;
}

.ocm-day-card summary::-webkit-details-marker {
    display: none;
}

.ocm-day-card summary strong {
    color: var(--ocm-gold-soft);
    font-size: 12px;
    text-transform: uppercase;
}

.ocm-day-slots {
    display: grid;
    gap: 10px;
    padding: 0 12px 14px;
}

.ocm-slot-row {
    border-top: 1px solid rgba(212, 177, 90, 0.12);
    display: grid;
    gap: 8px;
    padding-top: 10px;
}

.ocm-slot-row time {
    color: var(--ocm-gold-soft);
    font-weight: 900;
}

.ocm-empty-slot {
    color: rgba(245, 239, 228, 0.42);
    font-size: 13px;
    font-weight: 800;
}

.ocm-calendar-booking,
.ocm-calendar-block {
    background: rgba(245, 239, 228, 0.08);
    border: 1px solid rgba(212, 177, 90, 0.2);
    border-left: 5px solid #3bd487;
    border-radius: 20px;
    display: grid;
    gap: 10px;
    margin-bottom: 8px;
    padding: 12px;
}

.ocm-calendar-booking.is-cancelled {
    border-left-color: #ff7f6d;
    opacity: 0.78;
}

.ocm-calendar-booking.is-noshow {
    border-left-color: #88918c;
}

.ocm-calendar-block.is-coaching {
    border-left-color: #ff7f6d;
}

.ocm-calendar-booking header {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.ocm-calendar-booking dl {
    display: grid;
    gap: 6px;
    margin: 0;
}

.ocm-calendar-booking dt {
    color: var(--ocm-muted);
    font-size: 11px;
    font-weight: 800;
}

.ocm-calendar-booking dd {
    color: var(--ocm-cream);
    font-weight: 900;
    margin: 0;
}

.ocm-courts-view {
    display: grid;
    gap: 14px;
}

.ocm-timeline-controls {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ocm-timeline-controls a,
.ocm-timeline-controls button {
    align-items: center;
    background: rgba(245, 239, 228, 0.1);
    border: 1px solid rgba(212, 177, 90, 0.28);
    border-radius: 999px;
    color: var(--ocm-gold-soft);
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    text-decoration: none;
}

.ocm-timeline-controls form {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ocm-timeline-controls label {
    display: grid;
    gap: 4px;
}

.ocm-timeline-controls label span {
    color: var(--ocm-gold-soft);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ocm-timeline-controls input {
    appearance: none;
    background: rgba(245, 239, 228, 0.1);
    border: 1px solid var(--ocm-line);
    border-radius: 18px;
    color: var(--ocm-cream);
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.ocm-live-court-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ocm-live-court-cards article {
    background: rgba(0, 75, 58, 0.72);
    border: 1px solid rgba(212, 177, 90, 0.22);
    border-radius: 22px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.ocm-live-court-cards article.is-playing {
    border-color: rgba(88, 166, 255, 0.5);
}

.ocm-live-court-cards article.is-reserved {
    border-color: rgba(249, 115, 22, 0.58);
}

.ocm-live-court-cards article.is-available {
    border-color: rgba(59, 212, 135, 0.48);
}

.ocm-live-court-cards span,
.ocm-live-court-cards em {
    color: var(--ocm-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.ocm-live-court-cards strong {
    color: var(--ocm-cream);
    font-size: 18px;
}

.ocm-timeline-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.ocm-timeline-canvas {
    display: grid;
    gap: 12px;
    min-width: 1180px;
    position: relative;
}

.ocm-hour-markers {
    border-bottom: 1px solid rgba(212, 177, 90, 0.2);
    height: 34px;
    position: relative;
}

.ocm-hour-markers span {
    color: var(--ocm-gold-soft);
    font-size: 11px;
    font-weight: 900;
    left: var(--x);
    position: absolute;
    top: 0;
    transform: translateX(-50%);
}

.ocm-hour-markers span::after {
    background: rgba(212, 177, 90, 0.14);
    content: "";
    height: 300px;
    left: 50%;
    position: absolute;
    top: 24px;
    width: 1px;
}

.ocm-now-line {
    background: #f97316;
    bottom: 0;
    left: var(--x);
    position: absolute;
    top: 18px;
    width: 2px;
    z-index: 6;
}

.ocm-now-line em {
    background: #f97316;
    border-radius: 999px;
    color: #fff7ed;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    left: 50%;
    padding: 4px 7px;
    position: absolute;
    top: -18px;
    transform: translateX(-50%);
}

.ocm-court-lane {
    background: rgba(0, 75, 58, 0.54);
    border: 1px solid rgba(212, 177, 90, 0.2);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 132px;
    overflow: hidden;
}

.ocm-court-lane > header {
    align-items: center;
    background: rgba(2, 52, 40, 0.82);
    color: var(--ocm-gold-soft);
    display: flex;
    font-weight: 900;
    padding: 16px;
}

.ocm-lane-track {
    min-height: 132px;
    position: relative;
}

.ocm-lane-empty {
    color: rgba(245, 239, 228, 0.42);
    font-weight: 900;
    left: 16px;
    position: absolute;
    top: 18px;
}

.ocm-timeline-block {
    background: linear-gradient(135deg, rgba(59, 212, 135, 0.22), rgba(212, 177, 90, 0.22));
    border: 1px solid rgba(212, 177, 90, 0.42);
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    display: grid;
    left: var(--start);
    min-height: 82px;
    min-width: 120px;
    overflow: hidden;
    position: absolute;
    top: 24px;
    width: max(var(--width), 7.8%);
    z-index: 4;
}

.ocm-timeline-block button,
.ocm-timeline-block.is-coaching {
    background: transparent;
    border: 0;
    color: var(--ocm-cream);
    display: grid;
    gap: 4px;
    padding: 12px;
    text-align: left;
}

.ocm-timeline-block strong {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ocm-timeline-block span,
.ocm-timeline-block em {
    color: var(--ocm-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ocm-timeline-block.is-checkedin {
    background: rgba(88, 166, 255, 0.22);
    border-color: rgba(88, 166, 255, 0.58);
}

.ocm-timeline-block.is-completed {
    background: rgba(188, 194, 190, 0.18);
    border-color: rgba(188, 194, 190, 0.44);
}

.ocm-timeline-block.is-cancelled {
    background: rgba(188, 194, 190, 0.14);
    border-color: rgba(188, 194, 190, 0.34);
    opacity: 0.72;
}

.ocm-timeline-block.is-noshow {
    background: rgba(255, 127, 109, 0.22);
    border-color: rgba(255, 127, 109, 0.52);
}

.ocm-timeline-block.is-coaching {
    background: rgba(249, 115, 22, 0.24);
    border-color: rgba(249, 115, 22, 0.62);
}

.ocm-booking-drawer {
    align-items: end;
    background: rgba(2, 52, 40, 0.7);
    display: grid;
    inset: 0;
    position: fixed;
    z-index: 1200;
}

.ocm-booking-drawer[hidden] {
    display: none;
}

.ocm-drawer-panel {
    background: #023428;
    border: 1px solid var(--ocm-line);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 14px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 18px;
}

.ocm-drawer-close {
    justify-self: end;
    background: rgba(245, 239, 228, 0.1);
    border: 1px solid rgba(212, 177, 90, 0.28);
    border-radius: 999px;
    color: var(--ocm-gold-soft);
    font: inherit;
    font-weight: 900;
    min-height: 40px;
    padding: 8px 14px;
}

.ocm-drawer-panel h2 {
    color: var(--ocm-cream);
    margin: 0;
}

.ocm-drawer-panel dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ocm-drawer-panel dl div {
    border-top: 1px solid rgba(212, 177, 90, 0.12);
    display: grid;
    gap: 4px;
    padding-top: 8px;
}

.ocm-drawer-panel dt {
    color: var(--ocm-muted);
    font-size: 12px;
    font-weight: 800;
}

.ocm-drawer-panel dd {
    color: var(--ocm-cream);
    font-weight: 900;
    margin: 0;
    overflow-wrap: anywhere;
}

.ocm-system-panel dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ocm-system-panel div {
    border-top: 1px solid rgba(212, 177, 90, 0.14);
    display: grid;
    gap: 4px;
    padding-top: 8px;
}

.ocm-system-panel dt {
    color: var(--ocm-muted);
    font-size: 12px;
    font-weight: 800;
}

.ocm-system-panel dd {
    color: var(--ocm-cream);
    font-weight: 900;
    margin: 0;
    overflow-wrap: anywhere;
}

.ocm-court-list article,
.ocm-live-list article,
.ocm-arrivals article {
    border: 1px solid rgba(212, 177, 90, 0.18);
    border-radius: 20px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.ocm-court-list strong,
.ocm-live-list strong,
.ocm-arrivals strong {
    color: var(--ocm-gold-soft);
}

.ocm-court-list span,
.ocm-court-list em,
.ocm-live-list span,
.ocm-live-list em,
.ocm-arrivals span,
.ocm-arrivals em {
    color: var(--ocm-muted);
    font-style: normal;
    font-weight: 800;
}

.ocm-court-list i {
    background: rgba(245, 239, 228, 0.12);
    border-radius: 999px;
    display: block;
    height: 10px;
    overflow: hidden;
    position: relative;
}

.ocm-court-list i::before {
    background: linear-gradient(90deg, var(--ocm-gold), var(--ocm-gold-soft));
    border-radius: inherit;
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: var(--ocm-utilisation, 0%);
}

.ocm-live-list,
.ocm-arrivals {
    display: grid;
    gap: 10px;
}

.ocm-live-list article.is-playing {
    border-color: rgba(88, 166, 255, 0.5);
}

.ocm-live-list article.is-available {
    border-color: rgba(59, 212, 135, 0.46);
}

.ocm-live-list article.is-reserved {
    border-color: rgba(255, 127, 109, 0.5);
}

.ocm-arrivals a {
    align-items: center;
    background: rgba(245, 239, 228, 0.1);
    border: 1px solid rgba(212, 177, 90, 0.28);
    border-radius: 999px;
    color: var(--ocm-gold-soft);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
}

.ocm-bottoc-nav {
    background: rgba(0, 75, 58, 0.94);
    border: 1px solid var(--ocm-line);
    border-radius: 999px;
    bottom: 10px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 10px;
    padding: 6px;
    position: fixed;
    right: 10px;
    z-index: 30;
}

.ocm-bottoc-nav a,
.ocm-bottoc-nav button {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--ocm-gold-soft);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    min-height: 40px;
    text-align: center;
    text-decoration: none;
}

@media (min-width: 768px) {
    .offcourt-manager {
        padding: 24px;
    }

    .ocm-mobile-header,
    .ocm-bottoc-nav,
    .ocm-filter-head {
        display: none;
    }

    .ocm-shell {
        padding-bottom: 0;
    }

    .ocm-hero {
        padding: 30px;
    }

    .ocm-tabs {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        overflow: visible;
    }

    .ocm-tabs a {
        min-width: 0;
        padding: 0;
    }

    .ocm-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ocm-quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .ocm-calendar-days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ocm-slot-row {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .ocm-filters {
        align-items: end;
        bottom: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        left: auto;
        max-height: none;
        overflow: visible;
        position: sticky;
        right: auto;
        top: 12px;
        transform: none;
        z-index: 15;
    }

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

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

    .ocm-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .ocm-actions form,
    .ocm-actions a {
        flex: 1 1 calc(50% - 8px);
        width: auto;
    }
}

@media (min-width: 1025px) {
    .ocm-summary-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .ocm-dashboard-grid {
        align-items: start;
        grid-template-columns: minmax(0, 1fr) 360px;
    }

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

    .ocm-calendar-days {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ocm-actions form,
    .ocm-actions a {
        flex: 1 1 150px;
    }

    .ocm-drawer-panel {
        border-radius: 28px;
        justify-self: end;
        margin: 24px;
        max-width: 560px;
        width: 100%;
    }
}

/* Court Timeline V2: focused UI repair for the Manager Courts view. */
.ocm-calendar[hidden] {
    display: none !important;
}

.ocm-shell {
    overflow-x: hidden;
    padding-bottom: 128px;
}

.ocm-courts-view {
    background:
        radial-gradient(circle at top left, rgba(212, 177, 90, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(0, 75, 58, 0.92), rgba(2, 52, 40, 0.96));
    border: 1px solid rgba(212, 177, 90, 0.24);
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    display: grid;
    gap: 16px;
    max-width: 100%;
    overflow: hidden;
    padding: 16px;
}

.ocm-courts-view > .ocm-section-title {
    align-items: start;
    border-bottom: 1px solid rgba(212, 177, 90, 0.16);
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
}

.ocm-courts-view > .ocm-section-title span {
    color: var(--ocm-gold-soft);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ocm-courts-view > .ocm-section-title strong {
    color: var(--ocm-cream);
    font-size: 24px;
    line-height: 1.08;
}

.ocm-timeline-controls {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
}

.ocm-timeline-controls a,
.ocm-timeline-controls button {
    min-height: 48px;
    width: 100%;
}

.ocm-timeline-controls form {
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    min-width: 0;
}

.ocm-timeline-controls label,
.ocm-timeline-controls input {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.ocm-live-court-cards {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
}

.ocm-live-court-card {
    background: rgba(245, 239, 228, 0.09);
    border: 1px solid rgba(212, 177, 90, 0.18);
    border-radius: 22px;
    min-width: 0;
    padding: 14px;
}

.ocm-timeline-scroll {
    background:
        linear-gradient(180deg, rgba(245, 239, 228, 0.08), rgba(245, 239, 228, 0.03)),
        rgba(2, 52, 40, 0.82);
    border: 1px solid rgba(212, 177, 90, 0.18);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px;
    scrollbar-color: rgba(212, 177, 90, 0.7) rgba(245, 239, 228, 0.1);
    -webkit-overflow-scrolling: touch;
}

.ocm-timeline-canvas {
    --ocm-lane-label: 112px;
    --ocm-track-width: 1088px;
    display: grid;
    gap: 0;
    min-width: 1200px;
    overflow: visible;
    position: relative;
    width: 1200px;
}

.ocm-hour-markers {
    background: rgba(245, 239, 228, 0.07);
    border: 1px solid rgba(212, 177, 90, 0.12);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    height: 46px;
    margin-left: var(--ocm-lane-label);
    position: relative;
    width: var(--ocm-track-width);
}

.ocm-hour-markers span {
    align-items: flex-start;
    color: rgba(245, 239, 228, 0.72);
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    height: 100%;
    justify-content: center;
    left: var(--x);
    min-width: 44px;
    padding-top: 10px;
    position: absolute;
    text-align: center;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.ocm-hour-markers span::before {
    background: rgba(212, 177, 90, 0.28);
    bottom: 0;
    content: "";
    left: 50%;
    position: absolute;
    top: 28px;
    width: 1px;
}

.ocm-hour-markers span::after {
    display: none;
}

.ocm-now-line {
    background: #f97316;
    bottom: 0;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.42);
    left: calc(var(--ocm-lane-label) + var(--x));
    pointer-events: none;
    position: absolute;
    top: 14px;
    width: 2px;
    z-index: 9;
}

.ocm-now-line em {
    background: #f97316;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    left: 50%;
    padding: 4px 7px;
    position: absolute;
    top: -10px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.ocm-court-lane {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 177, 90, 0.12);
    border-top: 0;
    display: grid;
    grid-template-columns: var(--ocm-lane-label) var(--ocm-track-width);
    min-height: 124px;
    overflow: visible;
}

.ocm-court-lane:last-child {
    border-radius: 0 0 18px 18px;
}

.ocm-court-lane > header {
    align-items: center;
    background: rgba(0, 75, 58, 0.96);
    border-right: 1px solid rgba(212, 177, 90, 0.18);
    display: flex;
    min-width: 0;
    padding: 14px;
}

.ocm-court-lane > header strong {
    color: var(--ocm-cream);
    font-size: 14px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.ocm-lane-track {
    background:
        repeating-linear-gradient(
            to right,
            rgba(212, 177, 90, 0.13) 0,
            rgba(212, 177, 90, 0.13) 1px,
            transparent 1px,
            transparent calc(100% / 14)
        ),
        linear-gradient(180deg, rgba(245, 239, 228, 0.05), rgba(245, 239, 228, 0.025));
    min-height: 124px;
    overflow: hidden;
    position: relative;
    width: var(--ocm-track-width);
}

.ocm-lane-empty {
    display: none;
}

.ocm-timeline-block {
    align-items: stretch;
    border-radius: 18px;
    display: grid;
    left: var(--start);
    min-height: 76px;
    min-width: 92px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: 24px;
    width: max(var(--width), 92px);
    z-index: 3;
}

.ocm-timeline-block button,
.ocm-timeline-block.is-coaching {
    align-content: center;
    cursor: pointer;
    display: grid;
    gap: 4px;
    min-height: 76px;
    min-width: 0;
    padding: 12px;
    text-align: left;
    width: 100%;
}

.ocm-timeline-block.is-coaching {
    cursor: default;
}

.ocm-timeline-block strong {
    color: var(--ocm-cream);
    display: block;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ocm-timeline-block span,
.ocm-timeline-block em {
    color: rgba(245, 239, 228, 0.78);
    display: block;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ocm-bottoc-nav {
    bottom: max(14px, env(safe-area-inset-bottom));
    max-width: calc(100% - 24px);
}

.ocm-dev-badge {
    bottom: 90px;
    font-size: 10px;
    max-width: 120px;
    padding: 8px;
    right: 12px;
}

.ocm-dev-badge strong,
.ocm-dev-badge em {
    font-size: 10px;
}

@media (min-width: 560px) {
    .ocm-live-court-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .ocm-shell {
        padding-bottom: 0;
    }

    .ocm-courts-view {
        padding: 20px;
    }

    .ocm-courts-view > .ocm-section-title {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ocm-courts-view > .ocm-section-title span {
        grid-column: 1;
    }

    .ocm-courts-view > .ocm-section-title strong {
        font-size: 28px;
        grid-column: 1;
    }

    .ocm-timeline-controls {
        align-items: end;
        grid-template-columns: auto auto minmax(260px, 390px);
        justify-content: start;
    }

    .ocm-timeline-controls a,
    .ocm-timeline-controls button {
        min-width: 118px;
    }

    .ocm-timeline-controls form {
        grid-column: auto;
        grid-template-columns: minmax(180px, 1fr) auto;
    }

    .ocm-dev-badge {
        bottom: 14px;
        font-size: 11px;
        max-width: none;
        padding: 10px 12px;
        right: 14px;
    }

    .ocm-dev-badge strong,
    .ocm-dev-badge em {
        font-size: 12px;
    }
}

@media (min-width: 1025px) {
    .ocm-courts-view {
        border-radius: 32px;
        padding: 22px;
    }

    .ocm-timeline-scroll {
        padding: 14px;
    }
}

/* Resource Schedule mockup. This is intentionally separate from the old timeline styles. */
.ocm-courts-view[hidden] {
    display: none !important;
}

.ocm-resource-schedule {
    display: grid;
    gap: 14px;
    max-width: 100%;
    overflow: visible;
}

.ocm-resource-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ocm-resource-metrics article {
    background:
        linear-gradient(145deg, rgba(245, 239, 228, 0.11), rgba(245, 239, 228, 0.05)),
        rgba(0, 75, 58, 0.88);
    border: 1px solid rgba(212, 177, 90, 0.22);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px;
}

.ocm-resource-metrics span,
.ocm-resource-header span,
.ocm-resource-datebar span,
.ocm-resource-status-row span {
    color: var(--ocm-gold-soft);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ocm-resource-metrics strong {
    color: var(--ocm-cream);
    font-size: 24px;
    line-height: 1;
}

.ocm-resource-metrics em,
.ocm-resource-header p,
.ocm-resource-status-row em {
    color: var(--ocm-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.ocm-resource-card {
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 177, 90, 0.14), transparent 32%),
        linear-gradient(145deg, rgba(0, 75, 58, 0.96), rgba(2, 52, 40, 0.98));
    border: 1px solid rgba(212, 177, 90, 0.26);
    border-radius: 30px;
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.22);
    display: grid;
    gap: 16px;
    max-width: 100%;
    overflow: hidden;
    padding: 16px;
}

.ocm-resource-header {
    align-items: start;
    display: grid;
    gap: 14px;
}

.ocm-resource-header h2 {
    color: var(--ocm-cream);
    font-size: 26px;
    line-height: 1.06;
    margin: 4px 0;
}

.ocm-resource-header p {
    margin: 0;
}

.ocm-resource-datebar {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    min-width: 0;
}

.ocm-resource-datebar label {
    display: grid;
    gap: 5px;
    grid-column: 1 / -1;
    min-width: 0;
}

.ocm-resource-datebar input {
    appearance: none;
    background: rgba(245, 239, 228, 0.1);
    border: 1px solid rgba(212, 177, 90, 0.25);
    border-radius: 16px;
    color: var(--ocm-cream);
    font: inherit;
    min-height: 48px;
    min-width: 0;
    padding: 0 12px;
    width: 100%;
}

.ocm-resource-datebar a,
.ocm-resource-datebar button {
    align-items: center;
    background: rgba(245, 239, 228, 0.1);
    border: 1px solid rgba(212, 177, 90, 0.28);
    border-radius: 999px;
    color: var(--ocm-cream);
    display: inline-flex;
    font-size: 13px;
    font-weight: 950;
    justify-content: center;
    min-height: 48px;
    padding: 0 14px;
    text-decoration: none;
    width: 100%;
}

.ocm-resource-datebar button {
    background: linear-gradient(135deg, var(--ocm-gold), #f2d78a);
    color: #12382d;
    grid-column: 1 / -1;
}

.ocm-resource-status-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}

.ocm-resource-status-row article {
    background: rgba(245, 239, 228, 0.08);
    border: 1px solid rgba(212, 177, 90, 0.18);
    border-radius: 20px;
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 13px;
}

.ocm-resource-status-row strong {
    color: var(--ocm-cream);
    font-size: 18px;
}

.ocm-resource-status-row .is-live {
    border-color: rgba(88, 166, 255, 0.46);
}

.ocm-resource-status-row .is-open {
    border-color: rgba(59, 212, 135, 0.42);
}

.ocm-resource-scroll {
    background: rgba(245, 239, 228, 0.06);
    border: 1px solid rgba(212, 177, 90, 0.18);
    border-radius: 24px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 10px;
    scrollbar-color: rgba(212, 177, 90, 0.72) rgba(245, 239, 228, 0.1);
    -webkit-overflow-scrolling: touch;
}

.ocm-resource-grid {
    --resource-label: 132px;
    --resource-track: 1068px;
    display: grid;
    grid-template-columns: var(--resource-label) var(--resource-track);
    min-width: 1200px;
    width: 1200px;
}

.ocm-resource-corner,
.ocm-resource-name {
    background: rgba(0, 75, 58, 0.98);
    border-right: 1px solid rgba(212, 177, 90, 0.22);
    left: 0;
    position: sticky;
    z-index: 8;
}

.ocm-resource-corner {
    align-items: center;
    border-bottom: 1px solid rgba(212, 177, 90, 0.18);
    border-radius: 16px 0 0 0;
    color: var(--ocm-gold-soft);
    display: flex;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    padding: 0 14px;
    text-transform: uppercase;
}

.ocm-resource-ruler {
    background: rgba(245, 239, 228, 0.09);
    border-bottom: 1px solid rgba(212, 177, 90, 0.18);
    border-radius: 0 16px 0 0;
    height: 54px;
    position: relative;
}

.ocm-resource-ruler span {
    color: rgba(245, 239, 228, 0.76);
    font-size: 11px;
    font-weight: 950;
    left: var(--x);
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.ocm-resource-ruler span::after {
    background: rgba(212, 177, 90, 0.22);
    content: "";
    height: 22px;
    left: 50%;
    position: absolute;
    top: 18px;
    width: 1px;
}

.ocm-resource-name {
    align-content: center;
    border-bottom: 1px solid rgba(212, 177, 90, 0.15);
    display: grid;
    gap: 5px;
    min-height: 136px;
    padding: 16px 14px;
}

.ocm-resource-name strong {
    color: var(--ocm-cream);
    font-size: 16px;
    line-height: 1.1;
}

.ocm-resource-name span {
    color: var(--ocm-muted);
    font-size: 11px;
    font-weight: 850;
}

.ocm-resource-name.is-red {
    box-shadow: inset 4px 0 0 #ef4444;
}

.ocm-resource-name.is-blue {
    box-shadow: inset 4px 0 0 #58a6ff;
}

.ocm-resource-track {
    background:
        repeating-linear-gradient(
            to right,
            rgba(212, 177, 90, 0.12) 0,
            rgba(212, 177, 90, 0.12) 1px,
            transparent 1px,
            transparent calc(100% / 14)
        ),
        linear-gradient(180deg, rgba(245, 239, 228, 0.045), rgba(245, 239, 228, 0.02));
    border-bottom: 1px solid rgba(212, 177, 90, 0.15);
    min-height: 136px;
    overflow: hidden;
    position: relative;
}

.ocm-resource-now {
    background: #f97316;
    bottom: 0;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.45);
    left: var(--x);
    pointer-events: none;
    position: absolute;
    top: -54px;
    width: 2px;
    z-index: 7;
}

.ocm-resource-now em {
    background: #f97316;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    left: 50%;
    padding: 4px 7px;
    position: absolute;
    top: 8px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.ocm-resource-block {
    border: 1px solid rgba(212, 177, 90, 0.38);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    left: var(--start);
    min-height: 72px;
    min-width: 78px;
    overflow: hidden;
    position: absolute;
    top: 24px;
    width: max(var(--width), 78px);
    z-index: 4;
}

.ocm-resource-block button,
.ocm-resource-block.is-coaching {
    align-content: center;
    background: transparent;
    border: 0;
    color: var(--ocm-cream);
    display: grid;
    gap: 4px;
    height: 100%;
    min-height: 72px;
    min-width: 0;
    padding: 11px;
    text-align: left;
    width: 100%;
}

.ocm-resource-block strong,
.ocm-resource-block span,
.ocm-resource-block em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ocm-resource-block strong {
    color: var(--ocm-cream);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.08;
}

.ocm-resource-block span {
    color: rgba(245, 239, 228, 0.86);
    font-size: 11px;
    font-weight: 900;
}

.ocm-resource-block em {
    color: rgba(245, 239, 228, 0.7);
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
}

.ocm-resource-block.is-confirmed {
    background: linear-gradient(135deg, rgba(59, 212, 135, 0.78), rgba(0, 75, 58, 0.94));
}

.ocm-resource-block.is-checkedin {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.78), rgba(0, 75, 58, 0.9));
    border-color: rgba(88, 166, 255, 0.64);
}

.ocm-resource-block.is-completed {
    background: linear-gradient(135deg, rgba(188, 194, 190, 0.58), rgba(67, 78, 73, 0.92));
    border-color: rgba(188, 194, 190, 0.5);
}

.ocm-resource-block.is-cancelled {
    background: linear-gradient(135deg, rgba(255, 127, 109, 0.54), rgba(67, 78, 73, 0.86));
    border-color: rgba(255, 127, 109, 0.56);
    opacity: 0.78;
}

.ocm-resource-block.is-coaching {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.74), rgba(2, 52, 40, 0.92));
    border-color: rgba(249, 115, 22, 0.72);
    box-shadow: none;
    min-height: 34px;
    top: 92px;
    z-index: 3;
}

.ocm-resource-block.is-coaching strong,
.ocm-resource-block.is-coaching span {
    font-size: 10px;
}

.ocm-resource-block.is-compact em {
    display: none;
}

.ocm-resource-schedule .ocm-booking-drawer {
    z-index: 1000;
}

@media (max-width: 767px) {
    .ocm-resource-card {
        border-radius: 24px;
        padding: 12px;
    }

    .ocm-resource-header h2 {
        font-size: 23px;
    }

    .ocm-resource-grid {
        --resource-label: 104px;
        --resource-track: 1096px;
    }

    .ocm-resource-name {
        padding: 14px 10px;
    }

    .ocm-resource-name strong {
        font-size: 13px;
    }

    .ocm-resource-scroll {
        border-radius: 20px;
        padding: 8px;
    }

    .ocm-resource-block {
        border-radius: 14px;
        min-width: 84px;
        width: max(var(--width), 84px);
    }

    .ocm-resource-block button {
        padding: 10px;
    }
}

@media (min-width: 768px) {
    .ocm-resource-metrics {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .ocm-resource-card {
        padding: 20px;
    }

    .ocm-resource-header {
        align-items: end;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ocm-resource-datebar {
        align-items: end;
        grid-template-columns: auto auto minmax(170px, 1fr) auto;
        width: min(100%, 540px);
    }

    .ocm-resource-datebar label,
    .ocm-resource-datebar button {
        grid-column: auto;
    }

    .ocm-resource-status-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Offcourt Manager Design System - Sprint 2A Screen 1: Desktop Dashboard. */
.oc-app {
    background:
        radial-gradient(circle at 16% -8%, rgba(212, 177, 90, 0.18), transparent 28%),
        radial-gradient(circle at 74% 4%, rgba(25, 180, 107, 0.18), transparent 24%),
        linear-gradient(135deg, var(--om-green-950), var(--om-green-900) 48%, #01271e);
    color: var(--om-cream-100);
    display: grid;
    font-family: var(--om-font);
    grid-template-columns: 208px minmax(0, 1fr);
    min-height: 100vh;
    overflow-x: hidden;
    padding: var(--om-space-6);
}

.oc-app a,
.oc-app button {
    font: inherit;
}

.oc-sidebar {
    background: linear-gradient(180deg, rgba(2, 52, 40, 0.92), rgba(2, 31, 24, 0.78));
    border: 1px solid var(--om-line);
    border-radius: var(--om-radius-lg) 0 0 var(--om-radius-lg);
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    min-height: calc(100vh - 48px);
    padding: 22px 18px;
}

.oc-brand,
.oc-sidebar-user,
.oc-topbar,
.oc-top-actions,
.oc-section-header,
.oc-schedule-controls,
.oc-legend,
.oc-court-label,
.oc-kpi-card b {
    align-items: center;
    display: flex;
}

.oc-brand {
    gap: 10px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.oc-brand-mark {
    border: 2px solid var(--om-gold-500);
    border-radius: 999px;
    display: inline-block;
    height: 32px;
    position: relative;
    width: 32px;
}

.oc-brand-mark::before,
.oc-brand-mark::after {
    background: var(--om-gold-500);
    content: "";
    left: 6px;
    position: absolute;
    right: 6px;
    top: 14px;
    height: 1px;
    transform: rotate(-35deg);
}

.oc-brand-mark::after {
    transform: rotate(55deg);
}

.oc-brand strong {
    display: block;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0.12em;
    line-height: 1;
}

.oc-brand em {
    color: var(--om-cream-200);
    display: block;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.22em;
    margin-top: 4px;
}

.oc-sidebar-nav {
    display: grid;
    gap: 6px;
}

.oc-sidebar-nav a {
    align-items: center;
    border-radius: var(--om-radius-sm);
    color: var(--om-cream-100);
    display: flex;
    font-size: 13px;
    font-weight: 850;
    gap: 10px;
    min-height: 38px;
    padding: 0 12px;
    position: relative;
    text-decoration: none;
}

.oc-sidebar-nav a::before {
    background: rgba(245, 239, 228, 0.82);
    border-radius: 4px;
    content: "";
    height: 13px;
    width: 13px;
}

.oc-sidebar-nav a.is-active {
    background: rgba(212, 177, 90, 0.24);
    color: var(--om-gold-400);
}

.oc-sidebar-nav a span {
    background: var(--om-gold-400);
    border-radius: 999px;
    color: var(--om-green-950);
    font-size: 9px;
    font-weight: 950;
    margin-left: auto;
    padding: 2px 5px;
}

.oc-sidebar-user {
    border-bottom: 1px solid var(--om-line-soft);
    gap: 10px;
    margin-top: var(--om-space-6);
    padding-bottom: var(--om-space-5);
}

.oc-sidebar-user > span {
    align-items: center;
    border: 1px solid var(--om-gold-500);
    border-radius: 999px;
    color: var(--om-gold-400);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.oc-sidebar-user strong,
.oc-sidebar-user em {
    display: block;
}

.oc-sidebar-user strong {
    font-size: 12px;
}

.oc-sidebar-user em,
.oc-sidebar small {
    color: var(--om-white-muted);
    font-size: 10px;
    font-style: normal;
    line-height: 1.5;
}

.oc-sidebar small {
    align-self: end;
}

.oc-main {
    background: linear-gradient(180deg, rgba(0, 75, 58, 0.38), rgba(2, 52, 40, 0.42));
    border: 1px solid var(--om-line);
    border-left: 0;
    border-radius: 0 var(--om-radius-lg) var(--om-radius-lg) 0;
    display: grid;
    gap: var(--om-space-4);
    padding: var(--om-space-5);
}

.oc-topbar {
    justify-content: space-between;
}

.oc-topbar h1 {
    color: var(--om-cream-100);
    font-size: 24px;
    line-height: 1.1;
    margin: 0 0 4px;
}

.oc-topbar p {
    color: var(--om-white-muted);
    font-size: 12px;
    margin: 0;
}

.oc-top-actions {
    gap: 10px;
}

.oc-date-picker,
.oc-icon-button,
.oc-secondary-button,
.oc-primary-button {
    border-radius: var(--om-radius-sm);
    cursor: pointer;
    font-weight: 900;
    min-height: 36px;
}

.oc-date-picker,
.oc-icon-button,
.oc-secondary-button {
    background: rgba(2, 52, 40, 0.8);
    border: 1px solid var(--om-line);
    color: var(--om-cream-100);
}

.oc-date-picker {
    min-width: 188px;
    padding: 0 14px;
    text-align: left;
}

.oc-icon-button {
    border-radius: 999px;
    position: relative;
    width: 38px;
}

.oc-icon-button span {
    align-items: center;
    background: var(--om-danger);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 9px;
    height: 15px;
    justify-content: center;
    position: absolute;
    right: -1px;
    top: -3px;
    width: 15px;
}

.oc-kpi-grid {
    display: grid;
    gap: var(--om-space-3);
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.oc-kpi-card,
.oc-section-card {
    background: var(--om-card-bg);
    border: 1px solid var(--om-line);
    box-shadow: var(--om-shadow-soft);
}

.oc-kpi-card {
    border-radius: var(--om-radius-md);
    display: grid;
    gap: 4px;
    min-height: 86px;
    padding: 14px 48px 14px 14px;
    position: relative;
}

.oc-kpi-card span,
.oc-section-header span {
    color: var(--om-gold-400);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.oc-kpi-card strong {
    color: var(--om-cream-100);
    font-size: 24px;
    line-height: 1;
}

.oc-kpi-card em {
    color: var(--om-white-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.oc-kpi-card b {
    background: rgba(212, 177, 90, 0.16);
    border: 1px solid rgba(212, 177, 90, 0.36);
    border-radius: var(--om-radius-sm);
    height: 30px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 28px;
    width: 30px;
}

.oc-kpi-card b::before {
    background: var(--om-gold-400);
    border-radius: 3px;
    content: "";
    height: 13px;
    width: 13px;
}

.oc-kpi-card.has-ring i {
    background: conic-gradient(var(--om-gold-400) 64%, rgba(245, 239, 228, 0.12) 0);
    border-radius: 999px;
    height: 44px;
    position: absolute;
    right: 16px;
    top: 24px;
    width: 44px;
}

.oc-kpi-card.has-ring i::after {
    background: var(--om-green-850);
    border-radius: inherit;
    content: "";
    inset: 8px;
    position: absolute;
}

.oc-section-card {
    border-radius: var(--om-radius-lg);
    padding: var(--om-space-4);
}

.oc-section-header {
    gap: var(--om-space-3);
    justify-content: space-between;
}

.oc-schedule-card {
    min-height: 336px;
}

.oc-schedule-card .oc-section-header {
    display: grid;
    grid-template-columns: auto auto minmax(260px, 1fr) auto;
}

.oc-schedule-controls,
.oc-legend {
    gap: 8px;
}

.oc-secondary-button,
.oc-primary-button {
    font-size: 12px;
    padding: 0 14px;
}

.oc-primary-button {
    background: var(--om-button-bg);
    border: 0;
    color: var(--om-green-950);
}

.oc-legend {
    color: var(--om-cream-100);
    font-size: 10px;
    justify-content: center;
}

.oc-legend span {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    white-space: nowrap;
}

.oc-legend span::before {
    border-radius: 999px;
    content: "";
    height: 7px;
    width: 7px;
}

.oc-legend .is-booking::before,
.oc-booking-block.is-booking {
    background: var(--om-success);
}

.oc-legend .is-coaching::before,
.oc-booking-block.is-coaching {
    background: var(--om-gold-500);
}

.oc-legend .is-open::before,
.oc-booking-block.is-open {
    background: var(--om-lime);
}

.oc-legend .is-event::before {
    background: var(--om-warning);
}

.oc-legend .is-pending::before,
.oc-booking-block.is-pending {
    background: var(--om-danger);
}

.oc-timeline-grid {
    --om-label-width: 128px;
    display: grid;
    grid-template-columns: var(--om-label-width) minmax(0, 1fr);
    margin-top: var(--om-space-4);
}

.oc-time-title,
.oc-time-ruler {
    border-bottom: 1px solid var(--om-line-soft);
    color: var(--om-white-muted);
    font-size: 11px;
    font-weight: 900;
    min-height: 32px;
    text-transform: uppercase;
}

.oc-time-ruler {
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    text-transform: none;
}

.oc-time-ruler span {
    border-left: 1px solid rgba(245, 239, 228, 0.06);
    padding-left: 4px;
}

.oc-court-label {
    align-items: start;
    border-bottom: 1px solid rgba(245, 239, 228, 0.06);
    flex-direction: column;
    gap: 4px;
    min-height: 116px;
    padding-top: 28px;
    text-transform: uppercase;
}

.oc-court-label strong {
    color: var(--om-gold-400);
    font-size: 11px;
    font-weight: 950;
}

.oc-court-label span {
    color: var(--om-white-muted);
    font-size: 11px;
    text-transform: none;
}

.oc-court-label.is-blue strong {
    color: var(--om-blue);
}

.oc-track {
    background:
        repeating-linear-gradient(to right, rgba(245, 239, 228, 0.07) 0 1px, transparent 1px calc(100% / 15)),
        rgba(2, 52, 40, 0.4);
    border-bottom: 1px solid rgba(245, 239, 228, 0.06);
    min-height: 116px;
    position: relative;
}

.oc-now-marker {
    background: var(--om-gold-400);
    bottom: 0;
    left: 10%;
    position: absolute;
    top: -28px;
    width: 2px;
    z-index: 5;
}

.oc-now-marker em {
    background: var(--om-gold-400);
    border-radius: 999px;
    color: var(--om-green-950);
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    left: 50%;
    padding: 3px 6px;
    position: absolute;
    top: -14px;
    transform: translateX(-50%);
}

.oc-booking-block {
    border: 1px solid rgba(245, 239, 228, 0.2);
    border-radius: var(--om-radius-xs);
    color: var(--om-cream-100);
    display: grid;
    gap: 2px;
    min-height: 56px;
    overflow: hidden;
    padding: 8px;
    position: absolute;
    top: 18px;
}

.oc-booking-block strong,
.oc-booking-block span,
.oc-booking-block em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oc-booking-block strong {
    font-size: 12px;
    font-weight: 950;
}

.oc-booking-block span,
.oc-booking-block em {
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.oc-booking-block.is-coaching {
    background: linear-gradient(180deg, rgba(212, 177, 90, 0.92), rgba(151, 117, 38, 0.92));
    color: #1b241d;
    min-height: 50px;
    top: 72px;
}

.oc-booking-block.is-open {
    background: rgba(25, 180, 107, 0.5);
}

.oc-booking-block.is-pending {
    background: rgba(226, 76, 67, 0.45);
    border-color: rgba(226, 76, 67, 0.8);
}

.oc-booking-block.is-private {
    background: rgba(25, 180, 107, 0.34);
}

.oc-booking-block.at-0800 { left: 0; }
.oc-booking-block.at-1030 { left: 10%; }
.oc-booking-block.at-1300 { left: 30%; }
.oc-booking-block.at-1600 { left: 50%; }
.oc-booking-block.at-1700 { left: 60%; }
.oc-booking-block.at-2000 { left: 80%; }
.oc-booking-block.at-2030 { left: 82%; }
.oc-booking-block.at-2200 { left: 91%; }
.oc-booking-block.duration-60 { width: 8%; }
.oc-booking-block.duration-90 { width: 11%; }
.oc-booking-block.duration-120 { width: 15%; }
.oc-booking-block.duration-480 { width: 52%; }

.oc-dashboard-lower {
    display: grid;
    gap: var(--om-space-4);
    grid-template-columns: 1.05fr 1fr 1fr;
}

.oc-glance-card dl,
.oc-performers-card dl {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
}

.oc-glance-card div,
.oc-performers-card div {
    align-items: center;
    border-bottom: 1px solid rgba(245, 239, 228, 0.08);
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    padding-bottom: 9px;
}

.oc-glance-card dt,
.oc-performers-card dt {
    color: var(--om-white-muted);
    font-size: 12px;
    font-weight: 850;
}

.oc-glance-card dd,
.oc-performers-card dd {
    display: grid;
    gap: 2px;
    margin: 0;
    text-align: right;
}

.oc-glance-card dd strong,
.oc-performers-card dd strong {
    color: var(--om-gold-400);
    font-size: 13px;
}

.oc-glance-card dd span,
.oc-performers-card dd span {
    color: var(--om-white-muted);
    font-size: 11px;
}

.oc-chart-card > strong {
    color: var(--om-cream-100);
    display: block;
    font-size: 25px;
    margin-top: 18px;
}

.oc-chart-card > strong em {
    color: var(--om-success);
    font-size: 13px;
    font-style: normal;
    margin-left: 8px;
}

.oc-line-chart {
    align-items: end;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(7, 1fr);
    height: 104px;
    margin-top: 12px;
    position: relative;
}

.oc-line-chart::before {
    background: linear-gradient(to top, rgba(212, 177, 90, 0.18), transparent);
    bottom: 16px;
    content: "";
    height: 60px;
    left: 0;
    position: absolute;
    right: 0;
}

.oc-line-chart i {
    background: var(--om-gold-400);
    border-radius: 999px;
    display: block;
    height: 9px;
    margin: 0 auto;
    position: relative;
    width: 9px;
    z-index: 1;
}

.oc-line-chart .p1 { margin-bottom: 28px; }
.oc-line-chart .p2 { margin-bottom: 48px; }
.oc-line-chart .p3 { margin-bottom: 60px; }
.oc-line-chart .p4 { margin-bottom: 48px; }
.oc-line-chart .p5 { margin-bottom: 68px; }
.oc-line-chart .p6 { margin-bottom: 82px; }
.oc-line-chart .p7 { margin-bottom: 70px; }

.oc-chart-days {
    color: var(--om-white-muted);
    display: grid;
    font-size: 10px;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

@media (max-width: 1180px) {
    .oc-app {
        grid-template-columns: 190px minmax(0, 1fr);
        padding: var(--om-space-4);
    }

    .oc-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .oc-schedule-card .oc-section-header {
        grid-template-columns: 1fr auto;
    }

    .oc-legend {
        justify-content: start;
    }

    .oc-dashboard-lower {
        grid-template-columns: 1fr;
    }
}

/* Sprint 2B dashboard polish: spacing, icons, status colors, and interactions only. */
.oc-main {
    gap: 18px;
    padding: 23px;
}

.oc-topbar h1 {
    font-size: 26px;
    font-weight: 950;
    letter-spacing: 0;
}

.oc-topbar p {
    font-size: 13px;
}

.oc-kpi-grid {
    gap: 14px;
}

.oc-kpi-card {
    min-height: 96px;
    padding: 16px 54px 16px 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.oc-kpi-card:hover,
.oc-section-card:hover,
.oc-live-court-card:hover {
    border-color: rgba(212, 177, 90, 0.42);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.oc-kpi-card:active,
.oc-booking-block:active,
.oc-primary-button:active,
.oc-secondary-button:active {
    transform: translateY(0) scale(0.99);
}

.oc-kpi-card span,
.oc-section-header span {
    font-size: 10.5px;
}

.oc-kpi-card strong {
    font-size: 26px;
    letter-spacing: -0.01em;
}

.oc-kpi-card em {
    font-size: 11.5px;
}

.oc-kpi-card b {
    height: 34px;
    right: 16px;
    top: 31px;
    width: 34px;
}

.oc-kpi-card b::before {
    background: transparent;
    border-radius: 0;
    color: var(--om-gold-400);
    font-size: 18px;
    height: auto;
    line-height: 1;
    width: auto;
}

.oc-kpi-card.is-open-slots b::before {
    content: "▦";
}

.oc-kpi-card.is-bookings b::before {
    content: "▤";
}

.oc-kpi-card.is-revenue b::before {
    content: "K";
    font-weight: 950;
}

.oc-kpi-card.is-payments b::before {
    content: "▰";
}

.oc-kpi-card.has-ring i {
    right: 18px;
    top: 27px;
}

.oc-live-courts {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oc-live-court-card {
    background: var(--om-card-bg);
    border: 1px solid var(--om-line);
    border-radius: var(--om-radius-lg);
    box-shadow: var(--om-shadow-soft);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1fr);
    padding: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.oc-live-court-card > div {
    border-left: 4px solid var(--om-danger);
    display: grid;
    gap: 6px;
    padding-left: 12px;
}

.oc-live-court-card.is-blue > div {
    border-left-color: var(--om-blue);
}

.oc-live-court-card span {
    color: var(--om-gold-400);
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.oc-live-court-card strong {
    color: var(--om-cream-100);
    font-size: 19px;
    line-height: 1.05;
}

.oc-live-court-card dl {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.oc-live-court-card dt {
    color: var(--om-white-soft);
    font-size: 10px;
    font-weight: 850;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.oc-live-court-card dd {
    color: var(--om-cream-100);
    font-size: 12px;
    font-weight: 900;
    margin: 0;
}

.oc-section-card {
    padding: 18px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.oc-schedule-card {
    min-height: 356px;
}

.oc-dashboard-lower {
    gap: 18px;
}

.oc-booking-block {
    border-width: 1px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    min-height: 60px;
    padding: 9px;
    transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.oc-booking-block:hover {
    filter: brightness(1.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

.oc-booking-block strong {
    font-size: 12.5px;
}

.oc-booking-block span,
.oc-booking-block em {
    font-size: 10.5px;
}

.oc-legend .is-booking::before,
.oc-booking-block.is-confirmed,
.oc-booking-block.is-booking {
    background: linear-gradient(135deg, rgba(25, 180, 107, 0.86), rgba(4, 107, 73, 0.96));
    border-color: rgba(25, 180, 107, 0.72);
}

.oc-booking-block.is-checkedin {
    background: linear-gradient(135deg, rgba(47, 140, 255, 0.82), rgba(5, 70, 108, 0.96));
    border-color: rgba(47, 140, 255, 0.72);
}

.oc-booking-block.is-completed {
    background: linear-gradient(135deg, rgba(105, 118, 112, 0.78), rgba(39, 52, 47, 0.96));
    border-color: rgba(188, 194, 190, 0.46);
}

.oc-booking-block.is-cancelled,
.oc-booking-block.is-pending {
    background: linear-gradient(135deg, rgba(226, 76, 67, 0.74), rgba(91, 36, 33, 0.94));
    border-color: rgba(226, 76, 67, 0.76);
}

.oc-legend .is-coaching::before,
.oc-booking-block.is-coaching {
    background: linear-gradient(180deg, rgba(212, 177, 90, 0.96), rgba(153, 115, 31, 0.96));
    border-color: rgba(245, 239, 228, 0.32);
    color: #1b241d;
}

.oc-legend .is-event::before,
.oc-legend .is-open::before,
.oc-booking-block.is-event,
.oc-booking-block.is-open,
.oc-booking-block.is-private {
    background: linear-gradient(135deg, rgba(255, 178, 63, 0.82), rgba(154, 83, 24, 0.96));
    border-color: rgba(255, 178, 63, 0.7);
}

@media (max-width: 1180px) {
    .oc-main {
        padding: 20px;
    }

    .oc-live-courts {
        grid-template-columns: 1fr;
    }

    .oc-live-court-card {
        grid-template-columns: 1fr;
    }
}

/* Sprint 2C final dashboard polish. */
.oc-sidebar-nav a::before {
    display: none;
}

.oc-nav-icon {
    background: transparent;
    border: 1.5px solid currentColor;
    border-radius: 5px;
    color: rgba(245, 239, 228, 0.82);
    display: inline-block;
    flex: 0 0 15px;
    height: 15px;
    position: relative;
    width: 15px;
}

.oc-sidebar-nav a.is-active .oc-nav-icon {
    color: var(--om-gold-400);
}

.oc-nav-icon::before,
.oc-nav-icon::after {
    background: currentColor;
    content: "";
    position: absolute;
}

.oc-nav-icon.is-dashboard::before {
    box-shadow: 6px 0 0 currentColor, 0 6px 0 currentColor, 6px 6px 0 currentColor;
    height: 3px;
    left: 3px;
    top: 3px;
    width: 3px;
}

.oc-nav-icon.is-courts::before {
    height: 1.5px;
    left: 2px;
    right: 2px;
    top: 6px;
}

.oc-nav-icon.is-courts::after {
    bottom: 2px;
    left: 6px;
    top: 2px;
    width: 1.5px;
}

.oc-nav-icon.is-bookings::before {
    height: 1.5px;
    left: 2px;
    right: 2px;
    top: 4px;
}

.oc-nav-icon.is-bookings::after {
    box-shadow: 4px 0 0 currentColor, 8px 0 0 currentColor;
    height: 2px;
    left: 3px;
    top: 9px;
    width: 2px;
}

.oc-nav-icon.is-members,
.oc-nav-icon.is-coaches {
    border-radius: 999px;
}

.oc-nav-icon.is-members::before,
.oc-nav-icon.is-coaches::before {
    border-radius: 999px;
    box-shadow: 5px 0 0 currentColor;
    height: 4px;
    left: 3px;
    top: 3px;
    width: 4px;
}

.oc-nav-icon.is-members::after,
.oc-nav-icon.is-coaches::after {
    border-radius: 999px 999px 3px 3px;
    height: 4px;
    left: 3px;
    top: 9px;
    width: 9px;
}

.oc-nav-icon.is-academy::before {
    height: 1.5px;
    left: 2px;
    right: 2px;
    top: 5px;
    transform: rotate(-18deg);
}

.oc-nav-icon.is-academy::after {
    border: 1.5px solid currentColor;
    border-top: 0;
    background: transparent;
    bottom: 2px;
    height: 4px;
    left: 4px;
    width: 7px;
}

.oc-nav-icon.is-payments::before {
    height: 1.5px;
    left: 2px;
    right: 2px;
    top: 5px;
}

.oc-nav-icon.is-payments::after {
    border: 1.5px solid currentColor;
    background: transparent;
    border-radius: 999px;
    height: 4px;
    right: 2px;
    top: 8px;
    width: 4px;
}

.oc-nav-icon.is-reports::before {
    bottom: 3px;
    box-shadow: 4px -3px 0 currentColor, 8px -6px 0 currentColor;
    height: 5px;
    left: 3px;
    width: 2px;
}

.oc-nav-icon.is-settings {
    border-radius: 999px;
}

.oc-nav-icon.is-settings::before {
    border: 2px solid currentColor;
    background: transparent;
    border-radius: 999px;
    height: 5px;
    left: 3px;
    top: 3px;
    width: 5px;
}

.oc-nav-label {
    background: transparent;
    color: inherit;
    flex: 1 1 auto;
    font-size: inherit;
    font-weight: inherit;
    margin-left: 0;
    padding: 0;
}

.oc-nav-count {
    background: var(--om-gold-400);
    border-radius: 999px;
    color: var(--om-green-950);
    font-size: 9px;
    font-weight: 950;
    margin-left: auto;
    padding: 2px 5px;
}

.oc-notification-button .oc-bell {
    background: transparent;
    position: relative;
    right: auto;
    top: auto;
}

.oc-notification-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.oc-bell {
    border: 1.7px solid var(--om-gold-400);
    border-bottom: 0;
    border-radius: 9px 9px 3px 3px;
    display: inline-block;
    height: 15px;
    position: relative;
    width: 13px;
}

.oc-bell::before {
    background: var(--om-gold-400);
    border-radius: 999px;
    content: "";
    height: 3px;
    left: 4px;
    position: absolute;
    top: -4px;
    width: 3px;
}

.oc-bell::after {
    background: var(--om-gold-400);
    border-radius: 999px;
    bottom: -5px;
    content: "";
    height: 3px;
    left: 4px;
    position: absolute;
    width: 3px;
}

.oc-notification-count {
    align-items: center;
    background: var(--om-danger);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 9px;
    font-weight: 950;
    height: 15px;
    justify-content: center;
    position: absolute;
    right: -1px;
    top: -3px;
    width: 15px;
}

.oc-live-court-card {
    align-items: center;
    grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1fr);
}

.oc-live-court-head {
    border-left: 4px solid var(--om-danger);
    display: grid;
    gap: 5px;
    padding-left: 12px;
}

.oc-live-court-card.is-blue .oc-live-court-head {
    border-left-color: var(--om-blue);
}

.oc-live-court-head em {
    color: var(--om-white-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.oc-live-court-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oc-live-court-card > div:not(.oc-live-court-head) {
    border-left: 0;
    padding-left: 0;
}

.oc-schedule-controls.is-legacy {
    display: none;
}

.oc-schedule-controls.is-final {
    flex-wrap: wrap;
}

.oc-track {
    background:
        repeating-linear-gradient(to right, rgba(245, 239, 228, 0.1) 0 1px, transparent 1px calc(100% / 15)),
        linear-gradient(180deg, rgba(245, 239, 228, 0.035), rgba(2, 52, 40, 0.45));
}

.oc-now-marker {
    background: linear-gradient(to bottom, transparent, var(--om-gold-400) 12%, var(--om-gold-400) 88%, transparent);
    box-shadow: 0 0 14px rgba(212, 177, 90, 0.44);
    width: 1.5px;
}

.oc-now-marker em {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.oc-booking-block strong {
    font-size: 13px;
    letter-spacing: 0;
}

.oc-booking-block span {
    font-size: 11px;
    opacity: 0.94;
}

.oc-booking-block em {
    font-size: 10px;
    opacity: 0.78;
}

.oc-kpi-card.is-occupancy {
    box-shadow: inset 0 1px 0 rgba(212, 177, 90, 0.18), var(--om-shadow-soft);
}

.oc-kpi-card.is-open-slots b::before {
    content: "";
    border: 1.5px solid var(--om-gold-400);
    box-shadow: 7px 0 0 -1.5px var(--om-gold-400), 0 7px 0 -1.5px var(--om-gold-400), 7px 7px 0 -1.5px var(--om-gold-400);
    height: 6px;
    width: 6px;
}

.oc-kpi-card.is-bookings b::before {
    content: "";
    border: 1.5px solid var(--om-gold-400);
    border-top-width: 4px;
    border-radius: 3px;
    height: 14px;
    width: 13px;
}

.oc-kpi-card.is-revenue b::before {
    content: "K";
    color: var(--om-gold-400);
    font-size: 17px;
    font-weight: 950;
}

.oc-kpi-card.is-payments b::before {
    content: "";
    border: 1.5px solid var(--om-gold-400);
    border-radius: 3px;
    height: 10px;
    width: 15px;
}

@media (max-width: 1180px) {
    .oc-live-court-card {
        grid-template-columns: 1fr;
    }

    .oc-schedule-controls.is-final {
        justify-content: start;
    }
}

/* Sprint 3 Bookings module. */
.oc-bookings-module {
    display: grid;
    gap: 18px;
    scroll-margin-top: 24px;
}

.oc-bookings-header {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.oc-bookings-header span {
    color: var(--om-gold-400);
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.oc-bookings-header h2 {
    color: var(--om-cream-100);
    font-size: 24px;
    line-height: 1.05;
    margin: 4px 0;
}

.oc-bookings-header p {
    color: var(--om-white-muted);
    font-size: 13px;
    margin: 0;
}

.oc-bookings-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: end;
}

.oc-bookings-toolbar {
    background: rgba(2, 52, 40, 0.48);
    border: 1px solid rgba(245, 239, 228, 0.1);
    border-radius: var(--om-radius-lg);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1.5fr) repeat(6, minmax(110px, 1fr));
    padding: 12px;
}

.oc-bookings-toolbar label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.oc-bookings-toolbar label span {
    color: var(--om-gold-400);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.oc-bookings-toolbar input,
.oc-bookings-toolbar select {
    appearance: none;
    background: var(--om-input-bg);
    border: 1px solid var(--om-line);
    border-radius: var(--om-radius-sm);
    color: var(--om-cream-100);
    font: inherit;
    min-height: 42px;
    padding: 0 12px;
    width: 100%;
}

.oc-search-bar input {
    padding-left: 14px;
}

.oc-bookings-table {
    border: 1px solid rgba(245, 239, 228, 0.1);
    border-radius: var(--om-radius-lg);
    overflow: hidden;
}

.oc-bookings-table-head,
.oc-booking-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 0.8fr 1.5fr 0.9fr 0.9fr 0.9fr 1.1fr;
}

.oc-bookings-table-head {
    background: rgba(245, 239, 228, 0.07);
    color: var(--om-white-muted);
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: 0.06em;
    padding: 12px 14px;
    text-transform: uppercase;
}

.oc-bookings-list {
    display: grid;
}

.oc-booking-row {
    align-items: center;
    background: rgba(0, 75, 58, 0.32);
    border: 0;
    border-top: 1px solid rgba(245, 239, 228, 0.08);
    color: var(--om-cream-100);
    cursor: pointer;
    font: inherit;
    padding: 13px 14px;
    text-align: left;
    transition: background 160ms ease, transform 160ms ease;
    width: 100%;
}

.oc-booking-row:hover {
    background: rgba(0, 75, 58, 0.56);
    transform: translateY(-1px);
}

.oc-booking-row strong,
.oc-booking-row em {
    display: block;
}

.oc-booking-row strong {
    font-size: 13px;
    font-weight: 950;
}

.oc-booking-row em {
    color: var(--om-white-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    margin-top: 2px;
}

.oc-status-chip,
.oc-payment-chip {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 950;
    justify-content: center;
    min-width: 78px;
    padding: 5px 8px;
}

.oc-status-chip.is-confirmed {
    background: rgba(25, 180, 107, 0.18);
    border-color: rgba(25, 180, 107, 0.48);
    color: #79f0af;
}

.oc-status-chip.is-checked-in {
    background: rgba(47, 140, 255, 0.18);
    border-color: rgba(47, 140, 255, 0.5);
    color: #9fc8ff;
}

.oc-status-chip.is-completed {
    background: rgba(188, 194, 190, 0.16);
    border-color: rgba(188, 194, 190, 0.38);
    color: #d7dfda;
}

.oc-status-chip.is-cancelled,
.oc-status-chip.is-no-show {
    background: rgba(226, 76, 67, 0.16);
    border-color: rgba(226, 76, 67, 0.48);
    color: #ff9a91;
}

.oc-payment-chip.is-paid {
    background: rgba(25, 180, 107, 0.14);
    border-color: rgba(25, 180, 107, 0.42);
    color: #82edb4;
}

.oc-payment-chip.is-pending {
    background: rgba(212, 177, 90, 0.16);
    border-color: rgba(212, 177, 90, 0.48);
    color: var(--om-gold-400);
}

.oc-payment-chip.is-failed {
    background: rgba(226, 76, 67, 0.16);
    border-color: rgba(226, 76, 67, 0.46);
    color: #ff9a91;
}

.oc-bookings-empty {
    color: var(--om-white-muted);
    padding: 18px;
}

.oc-booking-drawer {
    background: rgba(2, 31, 24, 0.58);
    display: grid;
    inset: 0;
    justify-items: end;
    position: fixed;
    z-index: 1001;
}

.oc-booking-drawer[hidden] {
    display: none;
}

.oc-booking-drawer-panel {
    background:
        radial-gradient(circle at top left, rgba(212, 177, 90, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(0, 75, 58, 0.98), rgba(2, 52, 40, 0.98));
    border-left: 1px solid var(--om-line);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.28);
    color: var(--om-cream-100);
    display: grid;
    gap: 16px;
    height: 100%;
    max-width: 440px;
    overflow-y: auto;
    padding: 24px;
    transform: translateX(0);
    width: min(100%, 440px);
}

.oc-drawer-close {
    justify-self: end;
}

.oc-drawer-label {
    color: var(--om-gold-400);
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.oc-booking-drawer-panel h2 {
    color: var(--om-cream-100);
    font-size: 26px;
    line-height: 1.05;
    margin: 0;
}

.oc-booking-drawer-panel dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.oc-booking-drawer-panel dl div {
    border-bottom: 1px solid rgba(245, 239, 228, 0.08);
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
}

.oc-booking-drawer-panel dt {
    color: var(--om-white-soft);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.oc-booking-drawer-panel dd {
    color: var(--om-cream-100);
    font-size: 13px;
    font-weight: 850;
    margin: 0;
}

.oc-drawer-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oc-drawer-actions button,
.oc-drawer-actions a,
.oc-drawer-close {
    align-items: center;
    background: rgba(245, 239, 228, 0.1);
    border: 1px solid var(--om-line);
    border-radius: 999px;
    color: var(--om-cream-100);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    text-decoration: none;
}

.oc-toast {
    background: var(--om-gold-400);
    border-radius: 999px;
    bottom: 24px;
    color: var(--om-green-950);
    font-size: 12px;
    font-weight: 950;
    padding: 10px 14px;
    position: fixed;
    right: 24px;
    z-index: 1002;
}

@media (max-width: 900px) {
    .oc-bookings-header {
        align-items: start;
        display: grid;
    }

    .oc-bookings-header-actions {
        justify-content: start;
    }

    .oc-bookings-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oc-search-bar {
        grid-column: 1 / -1;
    }

    .oc-bookings-table-head {
        display: none;
    }

    .oc-booking-row {
        border-radius: var(--om-radius-md);
        gap: 9px;
        grid-template-columns: 1fr;
        margin-top: 8px;
    }

    .oc-bookings-list {
        padding: 8px;
    }

    .oc-booking-drawer {
        align-items: end;
        justify-items: stretch;
    }

    .oc-booking-drawer-panel {
        border-left: 0;
        border-radius: 24px 24px 0 0;
        height: min(86vh, 760px);
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .oc-bookings-toolbar {
        grid-template-columns: 1fr;
    }

    .oc-drawer-actions {
        grid-template-columns: 1fr;
    }
}
