/* ═══════════════════════════════════════════════════════════════
   TRATOK HOSPITALITY: the ease-of-use layer (15 Nov 2026).
   Loaded by header.php on every page, after platform.css, tds.css and mobile.css.
     1. the menu grouped by job (app_includes/portal_nav.php): top-bar groups, badges
     2. the phone's bottom bar
     3. the search box
     4. All listings, and the tabs of one listing
     5. the Today part of the home page
     6. the bookings list
   Colours and sizes come from platform.css's own variables. Bump ?v= in header.php on every change.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. the menu ─────────────────────────────────────────────── */
/* The bar may be narrower than its parts: js/portal-ease.js then moves the last ones under "More". */
.header-nav { min-width: 0; }
.header-nav > .pn-top, .header-nav > .header-nav-more-wrap { flex: none; }
.pn-group { position: relative; display: flex; }
.pn-group-btn { background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.pn-caret { font-size: .55rem !important; opacity: .55; margin-inline-start: 2px; transition: transform .15s; }
.pn-group.open .pn-caret { transform: rotate(180deg); }
.pn-group.open > .pn-group-btn { color: var(--text-primary); background: var(--bg-hover); }
.pn-menu {
    position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 250px; padding: 8px;
    background: rgba(12, 16, 24, .98); border: 1px solid var(--border-default); border-radius: var(--radius-md);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .5); display: none; z-index: 1001;
}
.pn-group.open > .pn-menu { display: block; animation: navMoreFade .18s ease; }
.pn-menu--long { max-height: calc(100vh - 96px); overflow-y: auto; }
.pn-menu-item {
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 12px; border-radius: var(--radius-md);
    font-size: .86rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; white-space: nowrap;
}
.pn-menu-item:hover, .pn-menu-item:focus-visible { color: var(--text-primary); background: var(--bg-hover); outline: none; }
.pn-menu-item.active { color: var(--gold-400); background: rgba(212, 168, 67, .08); }
.pn-menu-item > i { width: 16px; text-align: center; font-size: .82rem; opacity: .7; }
.pn-menu-item.active > i, .pn-menu-item:hover > i { opacity: 1; }
.pn-menu-item .header-nav-badge, .pn-menu-item .pn-badge,
.header-dropdown-item .pn-badge, .nav-more-item .pn-badge { margin-inline-start: auto; }
.pn-menu-sep { height: 1px; margin: 6px 8px; background: var(--border-muted); }
.pn-menu-head { padding: 10px 12px 4px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.pn-badge { flex: none; font-size: .65rem; font-weight: 700; line-height: 1.4; padding: 1px 6px; border-radius: 999px; background: var(--coral-500); color: #fff; }
.header-nav-more-menu { max-height: calc(100vh - 96px); overflow-y: auto; }
.header-nav-more-menu .pn-menu-head:first-child { padding-top: 4px; }
/* A little tighter between the phone layout and wide screens, so six parts fit most laptops. */
@media (min-width: 901px) and (max-width: 1340px) { .header-nav-item.pn-top, .pn-group-btn { padding-inline: 11px; } .header-inner { gap: 14px; } }
/* The drawer: badges keep their size, staff see which parts are for looking only. */
.mobile-menu-link .pn-badge, .mobile-menu-link .header-nav-badge { flex: none; }
.pn-viewonly { margin-inline-start: 8px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border-default); font-size: .58rem; letter-spacing: .04em; color: var(--text-muted); }

/* The search button in the top bar. */
.pn-search-btn {
    flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
    border: 1px solid var(--border-subtle); background: var(--bg-elevated); color: var(--text-secondary); font-size: .9rem; cursor: pointer;
}
.pn-search-btn:hover, .pn-search-btn:focus-visible { color: var(--gold-400); border-color: var(--border-default); outline: none; }

/* ── 2. the phone's bottom bar ───────────────────────────────── */
.pn-bottom { display: none; }
@media (max-width: 900px) {
    .pn-bottom {
        position: fixed; inset-inline: 0; bottom: 0; z-index: 990; display: flex; align-items: stretch;
        height: calc(60px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(12, 16, 24, .97); border-top: 1px solid var(--border-default); box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
    }
    .pn-bottom-item {
        position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        padding: 6px 2px; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: .66rem; font-weight: 600; line-height: 1.1;
        text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .pn-bottom-item > i { font-size: 1.08rem; }
    .pn-bottom-item > span:not(.pn-badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pn-bottom-item > span.is-tight { font-size: .56rem; letter-spacing: -.02em; }      /* set by js/portal-ease.js for a word that would be cut */
    .pn-bottom-item.active { color: var(--gold-400); }
    .pn-bottom-item.active::before { content: ''; position: absolute; top: 0; left: 50%; width: 26px; height: 2px; margin-left: -13px; border-radius: 2px; background: var(--gold-400); }
    .pn-bottom-item:focus-visible { outline: 2px solid var(--gold-400); outline-offset: -3px; }
    .pn-bottom-item .pn-badge { position: absolute; top: 6px; inset-inline-start: calc(50% + 5px); }
    body.has-pn-bottom { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
    /* The assistant's button sits above the bar, not on it. So do the two things pages pin to the foot of the
       screen: the Save bar of Stay details and the PDF button of the API documentation. */
    body.has-pn-bottom .tara-agent-launcher { inset-block-end: calc(72px + env(safe-area-inset-bottom, 0px)); }
    body.has-pn-bottom .sd-foot { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
    body.has-pn-bottom .pdf-btn { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
}

/* ── 4. one home per listing: the bar under the header ───────── */
.lc-bar { position: sticky; top: var(--header-height); z-index: 900; background: rgba(15, 21, 33, .96); border-bottom: 1px solid var(--border-subtle); }
.lc-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 14px; min-height: 50px; }
.lc-switch { position: relative; flex: none; min-width: 0; }
.lc-name {
    display: inline-flex; align-items: center; gap: 9px; max-width: 260px; min-height: 36px; padding: 6px 12px; border-radius: 10px;
    border: 1px solid var(--border-subtle); background: var(--bg-elevated); color: var(--text-primary); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer;
}
.lc-name--one { cursor: default; flex: none; }
.lc-name > i:first-child { color: var(--gold-400); font-size: .82rem; }
.lc-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-caret { font-size: .6rem; opacity: .6; transition: transform .15s; }
.lc-switch.open .lc-caret { transform: rotate(180deg); }
button.lc-name:hover, button.lc-name:focus-visible { border-color: var(--border-default); outline: none; }
.lc-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 260px; max-width: min(340px, calc(100vw - 32px)); max-height: min(420px, calc(100vh - 150px)); overflow-y: auto;
    padding: 8px; background: rgba(12, 16, 24, .98); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: 0 14px 36px rgba(0, 0, 0, .5); display: none;
}
.lc-switch.open .lc-menu { display: block; }
.lc-menu .pn-menu-item { white-space: normal; }
.lc-menu .pn-menu-item > span { min-width: 0; overflow-wrap: anywhere; }
.lc-tabs { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.lc-tabs::-webkit-scrollbar { display: none; }
.lc-tab {
    flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 50px; padding: 0 12px; border-bottom: 2px solid transparent;
    color: var(--text-secondary); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lc-tab > i { font-size: .78rem; opacity: .7; }
.lc-tab:hover, .lc-tab:focus-visible { color: var(--text-primary); outline: none; }
.lc-tab.active { color: var(--gold-400); border-bottom-color: var(--gold-400); }
.lc-tab.active > i { opacity: 1; }
.lc-guest {
    flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(212, 168, 67, .35);
    color: var(--gold-400); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.lc-guest:hover, .lc-guest:focus-visible { background: rgba(212, 168, 67, .08); outline: none; }
.lc-guest--off { border-color: var(--border-subtle); color: var(--text-muted); }
@media (max-width: 900px) {
    /* Phones: the bar scrolls away with the page; the name and the guest link share a line, the tabs take the next. */
    .lc-bar { position: static; }
    .lc-inner { flex-wrap: wrap; gap: 8px 10px; padding: 10px 16px 0; }
    .lc-switch, .lc-name--one { flex: 1 1 0; }
    .lc-name { max-width: 100%; width: 100%; justify-content: flex-start; }
    .lc-name .lc-caret { margin-inline-start: auto; }
    .lc-tabs { order: 3; flex: 1 1 100%; margin: 0 -16px; padding: 0 8px; }
    .lc-tab { min-height: 44px; padding: 0 10px; }
    .lc-guest > span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
}

/* ── 4b. All listings (listings.php) ─────────────────────────── */
.hub-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.hub-chip {
    display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-subtle);
    background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.hub-chip b { font-weight: 700; color: var(--text-muted); }
.hub-chip.is-on { border-color: var(--gold-400); color: var(--gold-400); background: rgba(212, 168, 67, .08); }
.hub-chip.is-on b { color: var(--gold-400); }
.hub-chip:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.hub-card[hidden] { display: none; }
.hub-card-img { position: relative; display: block; text-decoration: none; }
.hub-card-img--none { display: flex; align-items: center; justify-content: center; background: var(--bg-elevated); }
.hub-card-img--none > i { font-size: 2rem; color: var(--text-muted); opacity: .5; }
.hub-kind {
    position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    background: rgba(12, 16, 24, .82); color: #fff; font-size: .68rem; font-weight: 700;
}
.hub-card .listing-card-body h3 a { color: inherit; text-decoration: none; }
.hub-card .listing-card-body h3 a:hover { color: var(--gold-400); }
.hub-state { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 10px 0 0; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.hub-state.ok { color: var(--success); background: var(--success-bg); }
.hub-state.warn { color: var(--warning); background: var(--warning-bg); }
.hub-state.wait { color: var(--info); background: var(--info-bg); }
.hub-state.off { color: var(--text-muted); background: var(--bg-elevated); }
.hub-score { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--text-muted); font-size: .7rem; text-decoration: none; }
.hub-score-label { flex: none; }
.hub-score-bar { flex: 1 1 auto; min-width: 30px; height: 6px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; }
.hub-score-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--gold-400); }
.hub-score--good .hub-score-bar > span { background: var(--success); }
.hub-score--low .hub-score-bar > span { background: var(--coral-400); }
.hub-score-num { flex: none; font-weight: 700; color: var(--text-secondary); }
.hub-score:hover .hub-score-label { color: var(--gold-400); }
.hub-actions a { white-space: nowrap; }
.hub-capped { margin: 16px 0 0; font-size: .82rem; color: var(--text-muted); }
.hub-empty { display: flex; align-items: center; gap: 14px; padding: 22px; margin-bottom: 8px; border: 1px dashed var(--border-default); border-radius: var(--radius-lg); color: var(--text-secondary); font-size: .9rem; }
.hub-empty > i { font-size: 1.4rem; color: var(--gold-400); }
.hub-empty p { margin: 0; }
.hub-add { margin-top: 36px; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--bg-card); scroll-margin-top: calc(var(--header-height) + 16px); }
.hub-add h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-family: var(--font-display); font-size: 1.1rem; }
.hub-add h2 > i { color: var(--gold-400); font-size: .9rem; }
.hub-add-sub { margin: 0 0 16px; font-size: .84rem; color: var(--text-muted); }
.hub-add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.hub-add-card {
    display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: var(--bg-elevated);
    color: var(--text-primary); text-decoration: none; transition: border-color .15s, transform .15s;
}
.hub-add-card:hover, .hub-add-card:focus-visible { border-color: var(--gold-400); transform: translateY(-1px); outline: none; }
.hub-add-card > i { font-size: 1.2rem; color: var(--gold-400); margin-bottom: 6px; }
.hub-add-name { font-size: .95rem; font-weight: 700; }
.hub-add-what { font-size: .78rem; color: var(--text-muted); }

/* ── 6. bookings: the list beside the calendar, and the booking pop-up (booking_calendar.php) ── */
.bk-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 20px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-card); }
.bk-switch-item { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 9px; color: var(--text-secondary); font-size: .82rem; font-weight: 600; text-decoration: none; }
.bk-switch-item:hover { color: var(--text-primary); }
.bk-switch-item.active { background: var(--bg-elevated); color: var(--gold-400); }
.bk-switch-item:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.bk-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.bk-search { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; max-width: 520px; padding: 4px 4px 4px 14px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--bg-input); }
[dir="rtl"] .bk-search { padding: 4px 14px 4px 4px; }
.bk-search > i { flex: none; color: var(--text-muted); font-size: .85rem; }
.bk-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 36px; border: 0; background: none; color: var(--text-primary); font: inherit; font-size: .86rem; outline: none; }
.bk-search:focus-within { border-color: var(--gold-400); }
.bk-search .btn { flex: none; }
.bk-kinds { margin-bottom: 16px; }
.bk-list { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.bk-row {
    display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(130px, 1.3fr) minmax(130px, 1.3fr) 64px minmax(96px, .8fr) minmax(110px, .9fr); gap: 12px; align-items: center;
    width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--border-muted); background: none; color: var(--text-primary); font: inherit; font-size: .82rem; text-align: start; cursor: pointer;
}
.bk-row:first-child { border-top: 0; }
.bk-row--head { cursor: default; padding-block: 10px; background: var(--bg-elevated); color: var(--text-muted); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
button.bk-row:hover, button.bk-row:focus-visible { background: var(--bg-hover); outline: none; }
.bk-c { min-width: 0; }
.bk-c-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 600; }
.bk-arrow { font-size: .6rem; opacity: .5; }
[dir="rtl"] .bk-arrow { transform: scaleX(-1); }
.bk-time { color: var(--gold-400); direction: ltr; }
.bk-flag { padding: 1px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: .64rem; font-weight: 700; white-space: nowrap; }
.bk-flag--out { background: var(--info-bg); color: var(--info); }
.bk-c-guest b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-c-guest small { display: block; color: var(--text-muted); font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-c-listing { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.bk-c-listing > i, .bk-c-n > i { font-size: .72rem; opacity: .6; margin-inline-end: 4px; }
.bk-c-n { color: var(--text-secondary); white-space: nowrap; }
.bk-c-total { font-weight: 600; white-space: nowrap; direction: ltr; text-align: start; }
[dir="rtl"] .bk-c-total { text-align: end; }
.bk-dim { color: var(--text-muted); font-weight: 400; }
.status-cancelled, .status-payment_expired { background: rgba(248, 113, 113, .12); color: #f87171; }
.status-pending_payment { background: rgba(245, 158, 11, .12); color: #f59e0b; }
.bk-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .78rem; color: var(--text-muted); }
.bk-pager { display: inline-flex; gap: 8px; }
.bk-none { display: flex; align-items: center; gap: 14px; padding: 28px 22px; border: 1px dashed var(--border-default); border-radius: var(--radius-lg); color: var(--text-secondary); font-size: .9rem; }
.bk-none > i { font-size: 1.4rem; color: var(--gold-400); }
.bk-none p { margin: 0; }
.bk-modal-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.bk-modal-acts .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
#bookingDetail .detail-row { gap: 14px; }
#bookingDetail .detail-row .value { min-width: 0; text-align: end; overflow-wrap: anywhere; }
#bookingDetail .detail-row .value a { color: var(--gold-400); text-decoration: none; }
#bookingDetail .detail-row--note { flex-direction: column; align-items: flex-start; gap: 4px; }
#bookingDetail .detail-row--note .label, #bookingDetail .detail-row--note .value { text-align: start; }
#bookingDetail .detail-row--note .value { font-weight: 400; line-height: 1.5; }
@media (max-width: 820px) {
    /* Phones: each booking is a small card. */
    .bk-row--head { display: none; }
    .bk-row { grid-template-columns: 1fr auto; grid-template-areas: "when status" "guest total" "listing n"; gap: 6px 12px; padding: 14px 16px; }
    .bk-c-when { grid-area: when; }
    .bk-c-status { grid-area: status; justify-self: end; }
    .bk-c-guest { grid-area: guest; }
    .bk-c-total { grid-area: total; justify-self: end; }
    .bk-c-listing { grid-area: listing; }
    .bk-c-n { grid-area: n; justify-self: end; color: var(--text-muted); }
    .bk-search { flex-basis: 100%; max-width: none; }
    .bk-switch { display: flex; }
    .bk-switch-item { flex: 1 1 0; justify-content: center; }
}

/* ── 3. the search box ───────────────────────────────────────── */
.ps-overlay { position: fixed; inset: 0; z-index: 6000; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(4, 7, 12, .72); }
.ps-overlay.open { display: flex; }
body.ps-open { overflow: hidden; }
.ps-box { width: 100%; max-width: 620px; max-height: min(560px, 80vh); display: flex; flex-direction: column; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.ps-field { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--border-subtle); }
.ps-field > i { flex: none; color: var(--gold-400); font-size: .95rem; }
.ps-field input { flex: 1 1 auto; min-width: 0; height: 48px; border: 0; background: none; color: var(--text-primary); font: inherit; font-size: 1rem; outline: none; }
.ps-field input::-webkit-search-cancel-button { display: none; }
.ps-close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; }
.ps-close:hover, .ps-close:focus-visible { background: var(--bg-hover); color: var(--text-primary); outline: none; }
.ps-list { flex: 1 1 auto; overflow-y: auto; padding: 8px; }
.ps-head { padding: 10px 12px 4px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ps-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none; }
.ps-item > i { flex: none; width: 18px; text-align: center; font-size: .85rem; color: var(--text-muted); }
.ps-item.is-on { background: var(--bg-hover); }
.ps-item.is-on > i { color: var(--gold-400); }
.ps-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ps-text b { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-text small { font-size: .72rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-item .status-badge { flex: none; display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ps-item .status-confirmed { background: rgba(52, 211, 153, .12); color: #34d399; }
.ps-item .status-pending { background: rgba(245, 158, 11, .12); color: #f59e0b; }
.ps-item .status-completed { background: rgba(107, 114, 128, .12); color: #9ca3af; }
.ps-item .status-no_show { background: rgba(248, 113, 113, .12); color: #f87171; }
.ps-hint { margin: 0; padding: 22px 14px; text-align: center; font-size: .86rem; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 600px) { .ps-overlay { padding: 12px; } .ps-box { max-height: calc(100vh - 24px); } }

/* ── 5. the Today part of the home page (dashboard.php) ──────── */
.td-card { margin-bottom: 24px; }
.td-card h3 > span:first-child { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.td-date { font-family: var(--font-body, inherit); font-size: .76rem; font-weight: 500; color: var(--text-muted); }
.td-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.td-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: var(--bg-elevated); color: var(--text-primary); text-decoration: none; transition: border-color .15s, transform .15s; }
.td-tile:hover, .td-tile:focus-visible { border-color: var(--gold-400); transform: translateY(-1px); outline: none; }
.td-n { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.td-l { display: flex; align-items: baseline; gap: 6px; font-size: .76rem; line-height: 1.35; color: var(--text-secondary); }
.td-l > i { flex: none; font-size: .7rem; opacity: .7; }
.td-tile--none .td-n { color: var(--text-muted); opacity: .55; }
.td-tile--none .td-l { color: var(--text-muted); }
.td-arrivals { margin-top: 14px; border-top: 1px solid var(--border-muted); }
.td-arrival { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--border-muted); color: var(--text-primary); font-size: .82rem; text-decoration: none; }
.td-arrival:last-child { border-bottom: 0; }
.td-arrival:hover .td-who b, .td-arrival:focus-visible .td-who b { color: var(--gold-400); }
.td-arrival:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.td-arrival > i { flex: none; width: 18px; text-align: center; font-size: .8rem; color: var(--text-muted); }
.td-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.td-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-who small { font-size: .7rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-time { flex: none; font-weight: 700; color: var(--gold-400); }
.td-guests { flex: none; font-size: .76rem; color: var(--text-muted); white-space: nowrap; }
.td-guests > i { font-size: .68rem; opacity: .7; }
.td-more { display: block; padding: 10px 2px 0; font-size: .76rem; font-weight: 700; color: var(--gold-400); text-decoration: none; }
.td-clear { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: .84rem; color: var(--text-secondary); }
.td-clear > i { color: var(--success); }
.td-revs { font-family: var(--font-body, inherit); font-size: .72rem; font-weight: 500; color: var(--text-muted); }
@media (max-width: 480px) { .td-tiles { grid-template-columns: repeat(2, 1fr); } .td-n { font-size: 1.4rem; } }
