/* =====================================================================
   LSP Now — app.css
   Black & white, mobile-first (§4 / §4.5 of LSPNOW_PLAN.md).
   Base styles target phones; min-width queries enhance upward.
   v. 2026.0901.001
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
    --radius: 12px;
    --radius-sm: 8px;
    --tap: 44px;                       /* minimum touch target */
    --gutter: 16px;
    --maxw: 1100px;
}

:root,
[data-theme="light"] {
    color-scheme: light;
    --bg: #ffffff;
    --bg-raised: #f6f6f6;
    --bg-inset: #ececec;
    --fg: #111111;
    --fg-muted: #595959;
    --border: #d9d9d9;
    --border-strong: #111111;
    --accent: #111111;                 /* primary buttons: black */
    --accent-fg: #ffffff;
    --scrim: rgba(0, 0, 0, 0.55);
    /* Calendar states: Days = beige, Nights = blue, Off = red */
    --cal-days: #f3e9d2;
    --cal-days-border: #d6c5a0;
    --cal-days-fg: #5a4a28;
    --cal-nights: #dceafb;
    --cal-nights-border: #9dc1e3;
    --cal-nights-fg: #1f4e79;
    --cal-off: #fde3e3;
    --cal-off-border: #e39a9a;
    --cal-off-fg: #a12a2a;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e0e0e;
    --bg-raised: #181818;
    --bg-inset: #232323;
    --fg: #f2f2f2;
    --fg-muted: #a3a3a3;
    --border: #343434;
    --border-strong: #f2f2f2;
    --accent: #f2f2f2;                 /* primary buttons: white */
    --accent-fg: #0e0e0e;
    --scrim: rgba(0, 0, 0, 0.7);
    /* Calendar states (dark-mode alternatives of the same hues) */
    --cal-days: #463c2a;
    --cal-days-border: #6e5f42;
    --cal-days-fg: #eddcb2;
    --cal-nights: #1e3a55;
    --cal-nights-border: #3d6288;
    --cal-nights-fg: #bcd9f2;
    --cal-off: #43191b;
    --cal-off-border: #7c3237;
    --cal-off-fg: #f2b8bb;
}

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
    min-height: 100dvh;
}

img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   3. Utilities
   --------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--fg-muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

/* Spinner */
.spin {
    display: inline-block; width: 20px; height: 20px; flex: none;
    border: 2.5px solid var(--border); border-top-color: var(--fg);
    border-radius: 50%; animation: lsp-spin .8s linear infinite;
}
@keyframes lsp-spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; justify-content: center; padding: 28px 0; }

/* ---------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--tap); padding: 10px 18px;
    border: 1.5px solid var(--border-strong); border-radius: var(--radius);
    background: transparent; color: var(--fg);
    font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover { background: var(--bg-inset); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent); opacity: .82; }

.btn-quiet { border-color: var(--border); color: var(--fg-muted); }
.btn-quiet:hover { border-color: var(--border-strong); color: var(--fg); background: var(--bg-inset); }

.btn-sm { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

.icon-btn {
    width: var(--tap); height: var(--tap); padding: 0; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: transparent; color: var(--fg); cursor: pointer; text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--bg-inset); }
.icon-btn.sm { width: 36px; height: 36px; }

/* ---------------------------------------------------------------------
   5. Forms
   --------------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field label {
    display: block; margin-bottom: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--fg-muted);
}
.input {
    width: 100%; min-height: var(--tap); padding: 10px 12px;
    background: var(--bg-raised); color: var(--fg);
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 16px; /* prevents iOS zoom */
    transition: border-color .15s ease, background .15s ease;
}
.input:focus { outline: none; border-color: var(--border-strong); background: var(--bg); }
textarea.input { min-height: 92px; resize: vertical; }
.input::placeholder { color: var(--fg-muted); opacity: .7; }

.form-grid.cols-2 { display: block; }
@media (min-width: 768px) {
    .form-grid.cols-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
    .form-grid.cols-2 .span-2 { grid-column: span 2; }
}
.form-note { font-size: 13px; color: var(--fg-muted); margin: 6px 0 0; }
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}
.checkbox-row span { font-size: 14px; }
.checkbox-row span.muted { font-size: 13px; }

/* Alerts (monochrome) */
.alert {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; margin-bottom: 14px;
    border: 1.5px solid var(--fg); border-radius: var(--radius-sm);
    background: var(--bg-inset); font-size: 14px;
}
.alert.soft { border-style: dashed; border-color: var(--fg-muted); color: var(--fg-muted); }
.alert i { margin-top: 2px; }

/* ---------------------------------------------------------------------
   6. Header & navigation (phone: scrollable pill strip; lg: top bar)
   --------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg); border-bottom: 1.5px solid var(--border);
}
.header-in { display: flex; align-items: center; gap: 10px; height: 56px; }
.brand {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 18px; font-weight: 800; letter-spacing: .02em; text-decoration: none;
}
.brand i { font-size: 22px; }
.header-user { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

.tab-strip {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 10px var(--gutter) 12px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tab-strip::-webkit-scrollbar { display: none; }
.tab-strip.sticky { position: sticky; top: 56px; z-index: 49; background: var(--bg); }

.tab {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    min-height: 40px; padding: 8px 15px;
    border: 1.5px solid var(--border); border-radius: 999px;
    color: var(--fg-muted); font-size: 14px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tab:hover { border-color: var(--border-strong); color: var(--fg); }
.tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

@media (min-width: 1024px) {
    .site-header { display: flex; align-items: center; }
    .header-in { height: 64px; flex: none; }
    .tab-strip { padding: 0 var(--gutter) 0 0; overflow: visible; flex: 1; justify-content: center; }
    .tab-strip.sticky { position: static; }
    .header-user { max-width: none; }
}


/* ---------------------------------------------------------------------
   7. Page, sections, cards
   --------------------------------------------------------------------- */
.page { padding: 18px 0 56px; }
.page-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 21px; margin: 6px 0 16px;
}
.page-title i { font-size: 19px; }

.card {
    background: var(--bg-raised);
    border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 16px;
}
.card + .card { margin-top: 14px; }
@media (min-width: 1024px) { .card { padding: 20px; } }

.section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--fg-muted);
    margin: 0 0 12px;
}

/* Two-column app layout on desktop (calendar + side panel) */
.split { display: block; }
.split > * + * { margin-top: 14px; }
@media (min-width: 1024px) {
    .split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
    .split > * + * { margin-top: 0; }
}

/* ---------------------------------------------------------------------
   8. Tables — cards on phones, real tables from md up
   --------------------------------------------------------------------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead { display: none; }
.tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
.tbl tr {
    border: 1.5px solid var(--border); border-radius: var(--radius);
    background: var(--bg-raised); padding: 10px 12px; margin-bottom: 12px;
}
.tbl td {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 4px 0; text-align: right; border: none;
}
.tbl td::before {
    content: attr(data-label);
    font-size: 12px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--fg-muted); text-align: left;
}
.tbl td.actions { justify-content: flex-end; flex-wrap: wrap; }
.tbl td.actions::before { display: none; }
.tbl th { display: none; }

@media (min-width: 768px) {
    .tbl { display: table; }
    .tbl thead { display: table-header-group; }
    .tbl tbody { display: table-row-group; }
    .tbl tr { display: table-row; border: none; border-radius: 0; background: none; padding: 0; margin: 0; }
    .tbl th {
        display: table-cell; text-align: left; padding: 8px 10px;
        font-size: 12px; font-weight: 700; letter-spacing: .06em;
        text-transform: uppercase; color: var(--fg-muted);
        border-bottom: 1.5px solid var(--border);
    }
    .tbl td {
        display: table-cell; width: auto; text-align: left;
        padding: 11px 10px; border-top: 1px solid var(--border);
    }
    .tbl td::before { display: none; }
    .tbl td.actions { justify-content: flex-start; }

    .tbl tr:hover td { background: var(--bg-raised); }
}

/* ---------------------------------------------------------------------
   9. Availability calendar (monochrome states — §4.2)
   --------------------------------------------------------------------- */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow {
    display: flex; align-items: center; justify-content: center;
    min-height: 30px; font-size: 10px; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: var(--fg-muted);
}
.cal-blank { border: none; background: none; }

.cal-cell {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; aspect-ratio: 1 / 1; min-height: 44px;
    padding: 2px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-raised); color: var(--fg);
    cursor: pointer; text-align: center;
    transition: border-color .12s ease, transform .06s ease;
}
.cal-cell:hover { border-color: var(--border-strong); }
.cal-cell:active { transform: scale(.96); }
.cal-cell .dn { font-size: 13px; font-weight: 600; line-height: 1; }
.cal-cell .ic { font-size: 12px; line-height: 1; display: flex; gap: 2px; }
.cal-cell .cm { display: none; }

/* States — Days (beige) / Nights (blue) / Not available (red) */
.cal-cell.st-2 { background: var(--cal-days); border-color: var(--cal-days-border); color: var(--cal-days-fg); }
.cal-cell.st-3 {                                                                             /* Nights: fill + ring */
    background: var(--cal-nights); color: var(--cal-nights-fg);
    border: 1.5px dashed var(--cal-nights-border);
    box-shadow: 0 0 0 1.5px var(--cal-nights-border);
}
.cal-cell.st-4 {                                                                             /* Days & Nights: split */
    background: repeating-linear-gradient(45deg, var(--cal-days) 0 5px, var(--cal-nights) 5px 10px);
    border-color: var(--cal-days-border);
}
.cal-cell.st-4 .ic { background: var(--bg); color: var(--fg); border-radius: 4px; padding: 1px 4px; }
.cal-cell.st-0 { background: var(--cal-off); border-style: dashed;
                  border-color: var(--cal-off-border); color: var(--cal-off-fg); }          /* Not available */

/* Today ring, past mute, editor attribution dot */
.cal-cell.today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
.cal-cell.past { opacity: .55; }
.cal-cell.byother::after {
    content: ""; position: absolute; top: 4px; right: 4px;
    width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}

/* Legend */
.cal-legend { margin-top: 12px; }
.cal-legend summary {
    cursor: pointer; font-size: 13px; font-weight: 600; color: var(--fg-muted);
    min-height: 36px; display: flex; align-items: center;
}
.cal-legend-items { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0 2px; font-size: 13px; color: var(--fg-muted); }
.sw {
    display: inline-block; width: 16px; height: 16px; margin-right: 6px;
    border: 1.5px solid var(--border); border-radius: 4px; vertical-align: -3px;
}
.sw-2 { background: var(--cal-days); border-color: var(--cal-days-border); }
.sw-3 { background: var(--cal-nights); border: 1.5px dashed var(--cal-nights-border); box-shadow: 0 0 0 1.5px var(--cal-nights-border); }
.sw-4 { background: repeating-linear-gradient(45deg, var(--cal-days) 0 4px, var(--cal-nights) 4px 8px); border-color: var(--cal-days-border); }
.sw-0 { background: var(--cal-off); border-style: dashed; border-color: var(--cal-off-border); }

@media (min-width: 1024px) {
    .cal-cell { aspect-ratio: auto; min-height: 68px; align-items: flex-start; padding: 6px; gap: 3px; }
    .cal-cell .dn { font-size: 14px; }
    .cal-cell .cm {
        display: block; width: 100%; font-size: 11px; line-height: 1.25;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85;
    }
    .cal-legend summary { display: none; }
    .cal-legend-items { padding-top: 2px; }
}

/* ---------------------------------------------------------------------
   9b. Coordinator Roster Grid (member × day matrix)
   --------------------------------------------------------------------- */
.grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grid-table {
    border-collapse: separate; border-spacing: 2px;
    width: 100%; min-width: 720px;
}
.grid-table th, .grid-table td { padding: 0; }
.grid-table .ghead {
    font-size: 9px; font-weight: 700; line-height: 1.15;
    color: var(--fg-muted); text-align: center;
    min-width: 30px; padding: 3px 1px;
}
.grid-table .ghead.today { color: var(--fg); }
.grid-table .gname {
    position: sticky; left: 0; z-index: 2;
    min-width: 130px; max-width: 190px;
    padding: 6px 10px; text-align: left;
    font-size: 13px; font-weight: 600;
    background: var(--bg); border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    cursor: pointer; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.grid-table thead .gname { cursor: default; }
.grid-table .gname:hover { border-color: var(--border-strong); }
.grid-table .gcell {
    min-width: 30px; height: 30px;
    border: 1.5px solid var(--border); border-radius: 4px;
    background: var(--bg-raised);
}
.grid-table .gcell.today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg); }
.grid-table .gcell.g2 { background: var(--cal-days); border-color: var(--cal-days-border); }
.grid-table .gcell.g3 { background: var(--cal-nights); border-color: var(--cal-nights-border); }
.grid-table .gcell.g4 {
    background: repeating-linear-gradient(45deg, var(--cal-days) 0 5px, var(--cal-nights) 5px 10px);
    border-color: var(--cal-days-border);
}
.grid-table .gcell.g0 { background: var(--cal-off); border-color: var(--cal-off-border); }


/* ---------------------------------------------------------------------
   10. Modal — bottom sheet on phones, centered dialog from md up
   --------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: var(--scrim);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
    background: var(--bg);
    border-top: 1.5px solid var(--border-strong);
    border-radius: 16px 16px 0 0;
    max-height: 88vh; /* fallback for older mobile browsers */
    max-height: 88dvh; overflow-y: auto;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform .22s ease;
}
.modal.open { transform: none; }
.modal-grab { width: 44px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 12px; }
.modal-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.modal-sub { font-size: 13px; color: var(--fg-muted); margin: 0 0 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

@media (min-width: 768px) {
    .modal {
        left: 50%; right: auto; top: 50%; bottom: auto;
        width: 480px; max-width: calc(100vw - 48px);
        border: 1.5px solid var(--border-strong); border-radius: var(--radius);
        transform: translate(-50%, -46%); opacity: 0; pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
        padding: 22px;
    }
    .modal.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
    .modal-grab { display: none; }
}

/* Status picker in day modal */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-opt {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--tap); padding: 8px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-raised); font-weight: 600; font-size: 14px;
    cursor: pointer; transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.status-opt:hover { border-color: var(--border-strong); }
.status-opt.sel { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ---------------------------------------------------------------------
   11. Day pills (weekday picker) & chips
   --------------------------------------------------------------------- */
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
    min-width: 42px; min-height: 42px; padding: 6px 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--border); border-radius: 999px;
    background: var(--bg-raised); font-size: 13px; font-weight: 700;
    cursor: pointer; user-select: none;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.pill:hover { border-color: var(--border-strong); }
.pill.sel { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 11px; border-radius: 999px;
    border: 1px solid var(--border); font-size: 12px; font-weight: 700;
    color: var(--fg-muted); white-space: nowrap;
}
.chip.solid { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip.dashed { border-style: dashed; }

/* ---------------------------------------------------------------------
   12. Toast
   --------------------------------------------------------------------- */
.toast {
    position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(16px);
    z-index: 300; max-width: 92vw; text-align: center;
    background: var(--fg); color: var(--bg);
    padding: 12px 20px; border-radius: 999px;
    font-size: 14px; font-weight: 600;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ---------------------------------------------------------------------
   13. Auth pages (login / register / reset)
   --------------------------------------------------------------------- */
.auth-wrap {
    min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 28px var(--gutter);
}
.auth-card {
    width: 100%; max-width: 430px;
    background: var(--bg-raised);
    border: 1.5px solid var(--border); border-radius: 16px;
    padding: 26px 22px;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; text-align: center; }
.auth-brand i { font-size: 42px; }
.auth-brand h1 { font-size: 24px; margin: 0; letter-spacing: .01em; }
.auth-brand p { margin: 0; color: var(--fg-muted); font-size: 14px; }
.auth-links { margin-top: 18px; text-align: center; font-size: 14px; color: var(--fg-muted); }
.auth-links a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.theme-corner { position: fixed; top: 12px; right: 12px; z-index: 10; }

/* ---------------------------------------------------------------------
   14. List items (roster, requests, presets, companies, logs)
   --------------------------------------------------------------------- */
.list-item {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
    background: var(--bg-raised);
}
.list-item + .list-item { margin-top: 10px; }
.list-item .grow { flex: 1; min-width: 0; }
.item-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 13px; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
@media (min-width: 768px) { .item-actions { width: auto; } }

/* Selectable member row (coordinator picker) */
.pick-item { width: 100%; text-align: left; justify-content: flex-start; cursor: pointer; }
.pick-item:hover { border-color: var(--border-strong); }
.pick-item.sel { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }

/* Empty state */
.empty {
    padding: 28px 16px; text-align: center;
    color: var(--fg-muted);
    border: 1.5px dashed var(--border); border-radius: var(--radius);
}
.empty i { font-size: 28px; display: block; margin-bottom: 8px; }

/* Search box */
.search { position: relative; }
.search > i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--fg-muted); pointer-events: none;
}
.search .input { padding-left: 38px; }

/* ---------------------------------------------------------------------
   15. Footer
   --------------------------------------------------------------------- */
.site-foot {
    padding: 22px var(--gutter) 34px;
    text-align: center; color: var(--fg-muted); font-size: 13px;
}

/* ---------------------------------------------------------------------
   16. Print — hide chrome, keep calendar readable
   --------------------------------------------------------------------- */
@media print {
    .site-header, .tab-strip, .btn, .icon-btn, .modal-backdrop, .modal, .toast { display: none !important; }
    body { background: #fff; color: #000; }
}

