:root {
    --rnd-primary: #0f6e66;
    --rnd-primary-dark: #0b5952;
    --rnd-primary-soft: #e7f2f0;
    --rnd-ink: #1b2430;
    --rnd-ink-muted: #6b7785;
    --rnd-line: #e3e7ec;
    --rnd-bg: #f4f6f8;
    --rnd-surface: #ffffff;
    --rnd-toolbar-bg: #1b2430;
    --rnd-toolbar-ink: #e9edf1;
    --hotdesk-type-color: #0f6e66;
    --dedicated-type-color: #4a5eff;
    --booked-color: #9aa5b1;
    --rnd-shadow: 0 1px 3px rgba(27, 36, 48, 0.08), 0 1px 2px rgba(27, 36, 48, 0.04);
    --rnd-radius: 6px;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 Arial, sans-serif;
    background: var(--rnd-bg);
    color: var(--rnd-ink);
    font-size: 14px;
    line-height: 1.45;
}

a { color: var(--rnd-primary); text-decoration: none; }
a:hover { color: var(--rnd-primary-dark); }

h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
.muted { color: var(--rnd-ink-muted); }
.small { font-size: 12px; }

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

.rnd-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 52px;
    background: var(--rnd-toolbar-bg);
    color: var(--rnd-toolbar-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--rnd-shadow);
}

.toolbar__left, .toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rnd-toolbar-ink);
    font-weight: 600;
    font-size: 15px;
}
.toolbar__logo i { color: var(--rnd-primary); font-size: 18px; }
.toolbar__logo:hover { color: #fff; }

.toolbar__search {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--rnd-radius);
    padding: 0 10px 0 32px;
    height: 32px;
    width: 320px;
}
.toolbar__search i {
    position: absolute;
    left: 10px;
    color: rgba(255, 255, 255, 0.6);
}
.toolbar__search input {
    background: transparent;
    border: 0;
    color: #fff;
    height: 100%;
    width: 100%;
    outline: none;
}
.toolbar__search input::placeholder { color: rgba(255, 255, 255, 0.55); }

.toolbar__avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--rnd-primary);
    color: #fff;
    font-weight: 600;
    display: grid; place-items: center;
    font-size: 12px;
}

/* ----------------------------- Shell / layout --------------------------- */

.rnd-shell {
    display: grid;
    grid-template-columns: 64px 240px 1fr;
    min-height: calc(100vh - 52px);
}

.rnd-sidebar {
    background: #22303e;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 4px;
    border-radius: var(--rnd-radius);
    font-size: 10px;
    text-align: center;
}
.sidebar__item i { font-size: 18px; }
.sidebar__item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar__item.is-active { background: rgba(15, 110, 102, 0.22); color: #fff; }

.rnd-secondary {
    background: var(--rnd-surface);
    border-right: 1px solid var(--rnd-line);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: calc(100vh - 52px);
    position: sticky;
    top: 52px;
}
.secondary__title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rnd-ink-muted);
    margin-bottom: 6px;
}
.secondary__section {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--rnd-line);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rnd-ink-muted);
}
.secondary__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--rnd-radius);
    color: var(--rnd-ink);
    font-weight: 500;
}
.secondary__link:hover { background: var(--rnd-primary-soft); color: var(--rnd-primary-dark); }
.secondary__link.is-active {
    background: var(--rnd-primary-soft);
    color: var(--rnd-primary-dark);
    font-weight: 600;
}
.secondary__meta {
    padding: 8px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid var(--rnd-line);
    margin-bottom: 6px;
}

.rnd-main {
    padding: 24px 28px 40px;
    min-width: 0;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

/* ----------------------------- Flash messages --------------------------- */

.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash {
    padding: 10px 14px;
    border-radius: var(--rnd-radius);
    border: 1px solid transparent;
    font-weight: 500;
}
.flash-success { background: #e6f4ea; border-color: #b8dcc4; color: #1e5e3d; }
.flash-error   { background: #fdecea; border-color: #f5c2bc; color: #8a2a22; }
.flash-info    { background: #e8f1fb; border-color: #c3dbf5; color: #1f4e85; }

/* ----------------------------- Buttons ---------------------------------- */

.btn-tertiary {
    background: var(--rnd-primary);
    color: #fff;
    border: 1px solid var(--rnd-primary);
}
.btn-tertiary:hover { background: var(--rnd-primary-dark); border-color: var(--rnd-primary-dark); color: #fff; }

.tool-btn .desk-dot { margin-right: 6px; vertical-align: -2px; }
.tool-btn.is-active {
    background: var(--rnd-primary-soft);
    border-color: var(--rnd-primary);
    color: var(--rnd-primary-dark);
}

/* ----------------------------- Cards ------------------------------------ */

.card {
    background: var(--rnd-surface);
    border: 1px solid var(--rnd-line);
    border-radius: var(--rnd-radius);
    box-shadow: var(--rnd-shadow);
    padding: 0;
}
.form-card { padding: 20px; max-width: 560px; }
.form-card--inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: none;
    padding: 16px 20px;
    margin-bottom: 20px;
}

/* ----------------------------- Floor grid ------------------------------- */

.floor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.floor-card {
    background: var(--rnd-surface);
    border: 1px solid var(--rnd-line);
    border-radius: var(--rnd-radius);
    overflow: hidden;
    box-shadow: var(--rnd-shadow);
    display: flex;
    flex-direction: column;
}
.floor-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f0f2f5;
    overflow: hidden;
}
.floor-card__image img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.floor-card:hover .floor-card__image img { transform: scale(1.02); }
.floor-card__placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--rnd-ink-muted);
}
.floor-card__placeholder i { font-size: 32px; }

.floor-card__body {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.floor-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.floor-card__actions form { display: inline; }

/* ----------------------------- Empty state ------------------------------ */

.empty-state {
    background: var(--rnd-surface);
    border: 1px dashed var(--rnd-line);
    border-radius: var(--rnd-radius);
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.empty-state i { font-size: 36px; color: var(--rnd-ink-muted); }
.empty-state--tight { padding: 32px 16px; }

/* ----------------------------- Map editor ------------------------------- */

.map-canvas-wrapper {
    background: var(--rnd-surface);
    border: 1px solid var(--rnd-line);
    border-radius: var(--rnd-radius);
    box-shadow: var(--rnd-shadow);
    overflow: auto;
    max-height: calc(100vh - 260px);
    padding: 16px;
    position: relative;
}
/* Booking page forces a fixed height so fit-to-height actually fills the
   viewport rather than collapsing around a small image. */
.map-canvas-wrapper--tall {
    height: calc(100vh - 220px);
    max-height: none;
}
/* Canvas wraps exactly one image so its box == the image's box. That makes
   pin percentages line up with the floor plan regardless of the wrapper
   or zoom level. */
.map-canvas {
    position: relative;
    display: inline-block;
    line-height: 0; /* removes the inline-block baseline gap */
}
.map-canvas img {
    display: block;
    /* Width is managed by the zoom helper. Height follows aspect ratio. */
    height: auto;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
}
.map-pins {
    position: absolute;
    inset: 0;
    pointer-events: none; /* pins re-enable below */
}

/* Zoom controls */
.map-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--rnd-surface);
    border: 1px solid var(--rnd-line);
    border-radius: var(--rnd-radius);
    padding: 2px;
    line-height: 1;
    font-size: 13px;
}
.map-zoom-controls button {
    border: 0;
    background: transparent;
    color: var(--rnd-ink);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.map-zoom-controls button:hover { background: var(--rnd-primary-soft); color: var(--rnd-primary-dark); }
.map-zoom-controls button:disabled { opacity: 0.4; cursor: default; }
.map-zoom__level {
    min-width: 52px;
    text-align: center;
    font-size: 12px;
    color: var(--rnd-ink-muted);
    cursor: default;
    padding: 0 4px;
}
.map-zoom-controls .divider {
    width: 1px;
    align-self: stretch;
    background: var(--rnd-line);
    margin: 2px 2px;
}

.map-canvas.tool-add-hotdesk,
.map-canvas.tool-add-dedicated {
    cursor: crosshair;
}

/* Desk pin */
.desk-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--hotdesk-type-color);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(27, 36, 48, 0.25), 0 2px 4px rgba(27, 36, 48, 0.25);
    cursor: pointer;
    pointer-events: auto;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    transition: transform 0.08s ease;
}
.desk-pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.desk-pin.is-dragging { transition: none; opacity: 0.8; }
.desk-pin.is-selected {
    outline: 3px solid rgba(15, 110, 102, 0.35);
    outline-offset: 2px;
}
.desk-pin--dedicated { background: var(--dedicated-type-color); }
.desk-pin--booked    { background: var(--booked-color); }
.desk-pin--free.is-available { cursor: pointer; }
.desk-pin__label {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(27, 36, 48, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.12s ease;
    pointer-events: none;
}
.desk-pin:hover .desk-pin__label,
.desk-pin.is-selected .desk-pin__label { opacity: 1; }

/* Small color dot used in lists / tool buttons */
.desk-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--hotdesk-type-color);
    vertical-align: middle;
}
.desk-dot--dedicated { background: var(--dedicated-type-color); }
.desk-dot--booked    { background: var(--booked-color); }

/* Desk list in secondary nav */
.desk-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.desk-list__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--rnd-radius);
    cursor: pointer;
}
.desk-list__item:hover { background: var(--rnd-primary-soft); }
.desk-list__item.is-selected { background: var(--rnd-primary-soft); color: var(--rnd-primary-dark); }
.desk-list__name { flex: 1; font-size: 13px; }
.desk-list__empty { padding: 6px 10px; }

/* Inline popover attached to a selected pin */
.desk-popover {
    position: absolute;
    background: var(--rnd-surface);
    border: 1px solid var(--rnd-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(27, 36, 48, 0.18);
    padding: 14px 16px;
    width: 240px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.desk-popover__row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.desk-popover__label {
    font-size: 11px;
    color: var(--rnd-ink-muted);
    margin: 0;
    min-width: 48px;
    flex-shrink: 0;
}
.desk-popover__actions {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 2px;
}
.desk-popover__title {
    font-weight: 600;
    font-size: 15px;
    color: var(--rnd-ink);
    line-height: 1.2;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rnd-line);
}
.desk-popover__body {
    font-size: 12px;
    color: var(--rnd-ink-muted);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.desk-popover__body > span,
.desk-popover__body > div {
    display: block;
}

/* ----------------------------- Booking ---------------------------------- */

.booking-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group--inline { align-self: end; }
.legend {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    padding: 0 4px;
    color: var(--rnd-ink-muted);
    font-size: 12px;
}
.legend__item { display: inline-flex; align-items: center; gap: 6px; }

/* Tables */
.table { margin-bottom: 0; }
.table thead th {
    background: #f7f9fb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rnd-ink-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--rnd-line);
}

/* ----------------------------- Chips, teams, policies ------------------- */

.chip {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 999px;
    background: var(--rnd-primary-soft);
    color: var(--rnd-primary-dark);
    font-size: 12px;
    font-weight: 500;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--rnd-line);
    border-radius: var(--rnd-radius);
    background: #fafbfc;
}
.member-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--rnd-line);
    border-radius: var(--rnd-radius);
    cursor: pointer;
    font-size: 13px;
}
.member-chip input { margin: 0; }
.member-chip small { margin-left: auto; font-size: 11px; }
.member-chip:has(input:checked) {
    border-color: var(--rnd-primary);
    background: var(--rnd-primary-soft);
}

.form-card--policy { max-width: 640px; padding: 20px 24px; }
.policy-section {
    padding: 14px 0;
    border-bottom: 1px solid var(--rnd-line);
}
.policy-section:last-of-type { border-bottom: 0; }
.policy-indent { margin-left: 44px; margin-top: 8px; }

/* Wider desk popover for access controls */
.desk-popover--wide { width: 260px; }
.desk-popover__teams-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 120px;
    overflow-y: auto;
    padding-top: 4px;
}
.team-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 2px 0;
    cursor: pointer;
}
.team-checkbox input { margin: 0; }

/* Lock indicator on a desk pin */
.desk-pin__lock {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #fff;
    color: var(--rnd-ink);
    border: 1px solid var(--rnd-line);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 8px;
    display: grid;
    place-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
.desk-pin--blocked {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ----------------------------- Reporting -------------------------------- */

.report-filters {
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.preset-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    background: #f2f4f7;
    border: 1px solid var(--rnd-line);
    border-radius: 999px;
    padding: 4px;
}
.preset-btn {
    border: 0;
    background: transparent;
    color: var(--rnd-ink);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
}
.preset-btn:hover { background: #e4e9ef; }
.preset-btn.is-active {
    background: var(--rnd-primary);
    color: #fff;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.kpi-card {
    background: var(--rnd-surface);
    border: 1px solid var(--rnd-line);
    border-radius: var(--rnd-radius);
    box-shadow: var(--rnd-shadow);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rnd-ink-muted);
}
.kpi-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--rnd-ink);
    line-height: 1.1;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.chart-card {
    padding: 16px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chart-card--wide { grid-column: 1 / -1; }
.chart-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.chart-card__body {
    position: relative;
    height: 260px;
}
.chart-card--wide .chart-card__body { height: 300px; }

@media (max-width: 900px) {
    .report-grid { grid-template-columns: 1fr; }
    .chart-card--wide { grid-column: auto; }
}

/* ----------------------------- Auth screens ----------------------------- */

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 20%, rgba(15, 110, 102, 0.12), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(74, 94, 255, 0.10), transparent 45%),
        var(--rnd-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.auth-shell {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--rnd-ink);
    font-weight: 600;
    font-size: 18px;
}
.auth-logo i { color: var(--rnd-primary); font-size: 22px; }
.auth-card {
    background: var(--rnd-surface);
    border: 1px solid var(--rnd-line);
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(27, 36, 48, 0.08);
}
.auth-card--wide { max-width: 520px; }
.auth-title { margin: 0 0 6px; }
.auth-links { text-align: center; font-size: 13px; color: var(--rnd-ink-muted); }
.auth-links a { font-weight: 500; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: var(--rnd-ink-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rnd-line);
}

/* Microsoft-branded sign-in button */
.auth-oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2f2f2f;
    color: #fff;
    border: 1px solid #2f2f2f;
    font-weight: 500;
    padding: 10px 14px;
}
.auth-oauth-btn:hover {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #fff;
}
.auth-oauth-btn i.fa-brands { color: #0078d4; font-size: 16px; }

/* Google variant — white/outline per Google brand guidelines */
.auth-oauth-btn--google {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid var(--rnd-line);
}
.auth-oauth-btn--google:hover {
    background: #f7f9fb;
    color: #1f2937;
    border-color: #c7d0d9;
}
.auth-oauth-btn--google i.fa-brands { color: #ea4335; font-size: 16px; }

/* Simple code block used in admin settings */
.code-block {
    background: #f4f6f8;
    border: 1px solid var(--rnd-line);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

/* ----------------------------- Toolbar user menu ----------------------- */

.toolbar__user .toolbar__user-btn {
    background: transparent;
    color: var(--rnd-toolbar-ink);
    border: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--rnd-radius);
}
.toolbar__user .toolbar__user-btn:hover { background: rgba(255, 255, 255, 0.08); }
.toolbar__user-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}
.role-chip {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(15, 110, 102, 0.2);
    color: #e7f2f0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar__separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 4px;
}
.sidebar__spacer { flex: 1; }
.sidebar__item--logout { color: rgba(255, 200, 200, 0.85); }
.sidebar__item--logout:hover { background: rgba(255, 90, 90, 0.18); color: #fff; }

/* ----------------------------- Schedule page --------------------------- */

.today-card { padding: 16px 20px; }
.today-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.today-card__header h3 { display: flex; align-items: baseline; gap: 8px; }
.today-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.today-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--rnd-line);
    border-radius: 8px;
    background: #fafbfc;
}
.today-list__avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--rnd-primary);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.today-list__who { display: flex; flex-direction: column; }

.calendar-card { padding: 16px 20px; }
.calendar-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.calendar-nav { display: flex; gap: 6px; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: var(--rnd-line);
    border: 1px solid var(--rnd-line);
    border-radius: 8px;
    overflow: hidden;
}
.calendar-weekday {
    background: #f7f9fb;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rnd-ink-muted);
    padding: 8px 10px;
    font-weight: 600;
    text-align: center;
}
.calendar-cell {
    background: var(--rnd-surface);
    min-height: 120px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}
.calendar-cell.is-outside { background: #f7f9fb; color: var(--rnd-ink-muted); }
.calendar-cell.is-past { opacity: 0.85; }
.calendar-cell.is-today {
    background: var(--rnd-primary-soft);
    box-shadow: inset 0 0 0 2px var(--rnd-primary);
}
.calendar-cell__date {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.calendar-cell__num {
    font-weight: 600;
    font-size: 14px;
}
.calendar-cell.is-today .calendar-cell__num { color: var(--rnd-primary-dark); }
.calendar-cell__count {
    font-size: 10px;
    background: rgba(15, 110, 102, 0.14);
    color: var(--rnd-primary-dark);
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 600;
}
.calendar-cell__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}
.calendar-cell__list li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-cell__dot { flex-shrink: 0; width: 6px; height: 6px; }
.calendar-cell__who { font-weight: 600; }
.calendar-cell__desk { color: var(--rnd-ink-muted); font-size: 10px; margin-left: auto; }

@media (max-width: 900px) {
    .calendar-cell { min-height: 80px; }
    .calendar-cell__list li { font-size: 10px; }
    .calendar-cell__desk { display: none; }
}

/* ----------------------------- Member booking view --------------------- */
/* For non-admins, the secondary nav column is dropped so the map gets the
   full main content width. The .is-member class is added in booking.html. */
.view-booking.is-member .rnd-shell {
    grid-template-columns: 64px 1fr;
}
.view-booking.is-member .rnd-secondary { display: none; }
.view-booking.is-member .map-canvas-wrapper--tall {
    height: calc(100vh - 170px);
}

.pill {
    display: inline-block;
    background: var(--rnd-primary);
    color: #fff;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: auto;
}
.secondary__link .pill { margin-left: 6px; }

/* Responsive: stack sidebars on small screens */
@media (max-width: 960px) {
    .rnd-shell {
        grid-template-columns: 1fr;
    }
    .rnd-sidebar { display: none; }
    .rnd-secondary {
        position: static;
        border-right: 0;
        border-bottom: 1px solid var(--rnd-line);
        max-height: none;
    }
    .toolbar__search { width: 160px; }
}
