/* BellFrog v1.80 — "Next waiting task" card under My Tasks > My Queue. */
@media screen {
  .my-next-waiting { margin-top: 18px; border-style: dashed; border-color: var(--gold); }
  .my-next-waiting .eyebrow { color: var(--gold); }
}
@media screen {
  .my-next-waiting .task-empty { min-height: 0; padding: 12px 14px; }
}
/* v1.81: removed "Guest will leave bags in the room" option; Room Bag Pickups tabs hide when empty. */
.luggage-will-wait-toggle[hidden], .task-tab[hidden], .my-task-tab[hidden] { display: none !important; }

/* v1.82: replies from Bell staff in Bellman Note threads. */
.bellman-note-reply.from-bell { border-left: 4px solid var(--frog-green); }

/* v1.83: collapsible Shift Notes panel at the top of the Checklist. */
@media screen {
  .checklist-shift-notes { margin: 0 0 16px; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .checklist-shift-notes[hidden] { display: none !important; }
  .checklist-shift-notes > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none; user-select: none; }
  .checklist-shift-notes > summary::-webkit-details-marker { display: none; }
  .checklist-shift-notes-title { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
  .checklist-shift-notes-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--gold); color: #fff; font-weight: 800; font-size: .85rem; }
  .checklist-shift-notes-count.empty { background: var(--surface-soft); color: var(--muted); border: 1px solid var(--line); }
  .checklist-shift-notes-hint { margin-left: auto; width: 12px; height: 12px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; margin-top: -6px; }
  .checklist-shift-notes[open] .checklist-shift-notes-hint { transform: rotate(-135deg); margin-top: 6px; }
  .checklist-shift-notes-list { display: grid; gap: 8px; padding: 0 16px 4px; }
  .checklist-shift-note { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
  .checklist-shift-note p { margin: 0 0 4px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
  .checklist-shift-note small { color: var(--muted); }
  .checklist-shift-notes .task-empty { margin: 0; }
  .checklist-shift-notes-actions { display: flex; justify-content: flex-end; padding: 10px 16px 14px; }
  .checklist-shift-notes-actions .secondary-button { width: auto; min-height: 44px; }
}
@media print { .checklist-shift-notes { display: none !important; } }
@media screen { .checklist-shift-notes:not([open]) > :not(summary) { display: none !important; } }

/* v1.83: week notes on the posted schedule and in the Schedule Maker. */
@media screen {
  .schedule-week-notes { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; background: var(--surface); }
  .schedule-week-notes strong { display: block; margin-bottom: 4px; color: var(--ink); }
  .schedule-week-notes p { margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
  .schedule-week-notes-field { display: grid; gap: 6px; margin: 4px 0 16px; }
  .schedule-week-notes-field > span { display: grid; gap: 2px; }
  .schedule-week-notes-field strong { color: var(--ink); }
  .schedule-week-notes-field small { color: var(--muted); }
  .schedule-week-notes-field textarea { width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
}

/* v1.84: "who needs to read it?" hints under the Bellman Note and Shift Note boxes. */
@media screen {
  .note-route-hint { margin: 4px 0 6px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
  .note-route-hint[hidden] { display: none !important; }
  .note-route-hint .note-route-button { display: inline-block !important; width: auto !important; min-height: 32px !important; vertical-align: baseline; margin: 0; padding: 4px 2px; border: 0; background: transparent; color: var(--forest); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .note-route-button:hover, .note-route-button:focus-visible { color: var(--ink); }
}

/* v1.85: quick sort buttons on Luggage Storage. */
@media screen {
  .luggage-sort-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
  .luggage-sort-chip { display: inline-flex; align-items: center; gap: 8px; width: auto !important; min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .luggage-sort-chip span { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .8rem; font-weight: 800; }
  .luggage-sort-chip:hover { border-color: var(--forest); }
  .luggage-sort-chip.active { border-color: var(--forest); background: var(--forest); color: var(--surface); }
  .luggage-sort-chip.active span { background: rgba(255, 255, 255, .22); color: inherit; }
  .luggage-sort-chip.check-in:not(.active) { border-color: #9cc3df; }
  .luggage-sort-chip.check-out:not(.active) { border-color: #d9b47f; }
  .luggage-sort-chip.check-in.active { border-color: #285d7a; background: #285d7a; color: #fff; }
  .luggage-sort-chip.check-out.active { border-color: #805122; background: #805122; color: #fff; }
  .luggage-sort-divider { width: 1px; height: 26px; background: var(--line); margin: 0 2px; }
  .luggage-sort-clear { display: inline; margin: 0 0 0 4px; padding: 2px; width: auto; min-height: 0; font-weight: 800; text-decoration: underline; }
}
@media screen and (max-width: 600px) {
  .luggage-sort-chips { gap: 6px; }
  .luggage-sort-chip { padding: 6px 11px; font-size: .9rem; }
  .luggage-sort-divider { display: none; }
}

/* v1.86: Lite mode — one big button at a time for bell staff who want a simpler screen. */
#lite-view[hidden] { display: none !important; }
@media screen {
  body.lite-mode .portal { display: block !important; }
  body.lite-mode #portal-view > :not(#lite-view):not(.modal-backdrop):not(datalist) { display: none !important; }
  body.lite-mode #lite-view { display: flex; flex-direction: column; min-height: 100vh; background: var(--canvas); color: var(--ink); font-size: 1.25rem; }
  .lite-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .lite-brand { display: flex; align-items: center; gap: 10px; }
  .lite-brand strong { font-size: 1.6rem; color: var(--forest); }
  .lite-badge { padding: 3px 10px; border-radius: 999px; background: var(--selected); color: var(--forest); font-size: .8rem; font-weight: 900; letter-spacing: .08em; }
  .lite-account { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .lite-ribbits { padding: 7px 13px; border-radius: 999px; background: var(--surface-soft); font-size: 1rem; font-weight: 800; white-space: nowrap; }
  .lite-ribbits[hidden] { display: none; }
  .lite-name { font-weight: 800; font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lite-small-button { white-space: nowrap; min-height: 48px; min-width: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-weight: 800; font-size: 1rem; cursor: pointer; }
  .lite-message { margin: 14px 24px 0; font-size: 1.15rem; }
  .lite-message:empty { display: none; }
  .lite-main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; box-sizing: border-box; padding: 26px 24px 140px; display: flex; flex-direction: column; gap: 20px; }
  .lite-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .lite-main h1, .lite-sheet h1 { margin: 0; font-size: 2.3rem; line-height: 1.1; color: var(--ink); text-align: left; }
  .lite-subtle { color: var(--muted); font-size: 1.1rem; }
  .lite-help { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.4; text-align: center; }
  .lite-help-left { text-align: left; }
  .lite-help strong { color: var(--ink); }
  .lite-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 2px solid var(--line); border-radius: 22px; background: var(--surface); }
  .lite-my-task { padding: 28px; border-width: 4px; box-shadow: var(--shadow); }
  .lite-my-task.accepted { border-color: var(--gold); }
  .lite-my-task.in-progress { border-color: var(--forest); }
  .lite-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .lite-kicker { font-size: 1rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .lite-urgent { margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: var(--error); color: var(--surface); letter-spacing: .04em; }
  .lite-age { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 800; font-size: 1.05rem; }
  .lite-age.late { color: var(--error); }
  .lite-where { font-size: 2.7rem; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
  .lite-where-big { font-size: 3.3rem; }
  .lite-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 1.3rem; line-height: 1.3; }
  .lite-facts li { display: flex; align-items: flex-start; gap: 12px; }
  .lite-facts svg { flex: none; margin-top: 2px; color: var(--forest); }
  .lite-note { padding: 14px 16px; border-radius: 14px; background: var(--warning-surface); }
  .lite-note span { display: block; margin-bottom: 4px; font-size: .85rem; font-weight: 900; letter-spacing: .05em; color: var(--muted); }
  .lite-note p { margin: 0; font-size: 1.3rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
  .lite-big { width: 100%; min-height: 76px !important; border-radius: 16px !important; font-size: 1.6rem !important; font-weight: 900 !important; display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
  .lite-huge { min-height: 96px !important; font-size: 2rem !important; }
  .lite-text-button { align-self: center; min-height: 56px; padding: 0 18px; border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
  .lite-status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--action); color: var(--action-ink); font-weight: 900; font-size: 1.1rem; }
  .lite-queue-note { margin: 0; text-align: center; color: var(--muted); font-size: 1.1rem; }
  .lite-waiting-later { display: grid; gap: 4px; padding: 20px 24px; border: 2px dashed var(--line); border-radius: 20px; color: var(--muted); font-size: 1.15rem; }
  .lite-waiting-later strong { font-size: 1.3rem; }
  .lite-empty { display: grid; justify-items: center; gap: 10px; padding: 60px 20px; text-align: center; color: var(--forest); }
  .lite-empty p { margin: 0; color: var(--muted); font-size: 1.3rem; max-width: 26ch; }
  .lite-step-heading { display: grid; gap: 6px; }
  .lite-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .lite-choice { min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 3px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); font-size: 1.35rem; font-weight: 900; text-align: center; cursor: pointer; }
  .lite-choice svg { color: var(--forest); }
  .lite-choice:active { background: var(--selected); border-color: var(--forest); }
  .lite-step-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
  .lite-sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgb(10 30 22 / 62%); }
  .lite-sheet-backdrop[hidden] { display: none; }
  .lite-sheet { width: 100%; max-width: 860px; box-sizing: border-box; max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 30px 24px calc(30px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--surface); color: var(--ink); }
  .lite-reason { min-height: 84px; display: flex; align-items: center; gap: 16px; padding: 0 22px; border: 3px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); font-size: 1.45rem; font-weight: 900; text-align: left; cursor: pointer; }
  .lite-reason svg { flex: none; color: var(--forest); }
  .lite-call-overlay { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; background: #123d30; color: #ffffff; overflow-y: auto; }
  .lite-call-overlay[hidden] { display: none; }
  .lite-call-card { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: stretch; gap: 18px; text-align: center; }
  .lite-call-icon { align-self: center; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: #e7c27c; color: #123d30; }
  .lite-call-kicker { font-size: 1.2rem; font-weight: 900; letter-spacing: .06em; color: #f1dcab; }
  .lite-call-card h1 { margin: 0; font-size: 3.2rem; line-height: 1.05; color: #ffffff; overflow-wrap: anywhere; }
  .lite-call-card p { margin: 0; font-size: 1.4rem; color: #d7e7dd; }
  .lite-call-go { min-height: 104px; margin-top: 10px; border: 0; border-radius: 20px; background: #a5e5ba; color: #123d30; font-size: 2.2rem; font-weight: 900; cursor: pointer; }
  .lite-call-later { min-height: 80px; border: 3px solid #a5e5ba; border-radius: 20px; background: transparent; color: #a5e5ba; font-size: 1.45rem; font-weight: 900; cursor: pointer; }
  .lite-call-dismiss { align-self: center; min-height: 56px; padding: 0 16px; border: 0; background: transparent; color: #d7e7dd; font-size: 1.15rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
  .lite-call-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 24px 0; padding: 14px 18px; border-radius: 18px; background: #123d30; color: #ffffff; }
  .lite-call-strip[hidden] { display: none; }
  .lite-call-strip-text { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
  .lite-call-strip-text svg { flex: none; color: #e7c27c; }
  .lite-call-strip-actions { display: flex; gap: 10px; }
  .lite-call-strip-actions button { min-height: 60px; padding: 0 22px; border-radius: 14px; font-size: 1.25rem; font-weight: 900; }
  .lite-call-strip-actions .primary-button { background: #a5e5ba; color: #123d30; border-color: #a5e5ba; }
  .lite-call-strip-actions .secondary-button { background: transparent; color: #a5e5ba; border: 2px solid #a5e5ba; }
  .lite-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 55; transform: translateX(-50%); width: min(812px, calc(100% - 32px)); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; padding: 8px 10px 8px 22px; border-radius: 18px; background: #172d26; color: #ffffff; font-size: 1.3rem; box-shadow: 0 12px 30px rgb(0 0 0 / 25%); }
  .lite-toast[hidden] { display: none; }
  .lite-toast button { min-height: 58px; padding: 0 24px; border: 2px solid #a5e5ba; border-radius: 14px; background: transparent; color: #a5e5ba; font-size: 1.3rem; font-weight: 900; cursor: pointer; }
  /* Windows that Lite mode still opens (storing bags, package outcome): bigger and simpler. */
  body.lite-mode .task-modal { font-size: 1.15rem; }
  body.lite-mode .task-modal input:not([type="radio"]):not([type="checkbox"]) { min-height: 60px; font-size: 1.35rem; }
  body.lite-mode .task-modal .modal-actions button { min-height: 64px; font-size: 1.25rem; }
  body.lite-mode .luggage-form-grid > div:has(#luggage-notes) { display: none; }
  .role-badge.lite { background: var(--selected); color: var(--forest); }
}
@media screen and (max-width: 640px) {
  .lite-header { padding: 8px 14px; min-height: 66px; }
  .lite-brand strong { font-size: 1.3rem; }
  .lite-ribbits, .lite-badge, #lite-theme { display: none !important; }
  .lite-small-button { padding: 0 10px; }
  .lite-huge { min-height: 84px !important; font-size: 1.6rem !important; }
  .lite-big { font-size: 1.4rem !important; }
  .lite-main { padding: 18px 14px 130px; }
  .lite-main h1, .lite-sheet h1 { font-size: 1.9rem; }
  .lite-where { font-size: 2.2rem; }
  .lite-where-big { font-size: 2.6rem; }
  .lite-choice-grid { grid-template-columns: 1fr; }
  .lite-choice { min-height: 88px; flex-direction: row; justify-content: flex-start; padding: 0 22px; }
  .lite-call-card h1 { font-size: 2.5rem; }
  .lite-message, .lite-call-strip { margin-left: 14px; margin-right: 14px; }
}
@media print { #lite-view { display: none !important; } }

/* v1.87: Lite "put it back" choice in the can't-do sheet. */
@media screen { .lite-reason-putback { border-style: dashed; color: var(--muted); } }

/* v1.88: Lite mode Tasks / Luggage tabs and the simplified luggage finder. */
@media screen {
  .lite-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 860px; margin: 16px auto 0; box-sizing: border-box; padding: 0 24px; }
  .lite-tab { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border: 3px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font-size: 1.4rem; font-weight: 900; cursor: pointer; }
  .lite-tab.active { border-color: var(--action); background: var(--action); color: var(--action-ink); }
  .lite-tab-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--surface-soft); color: var(--ink); font-size: 1rem; }
  .lite-tab-count[hidden] { display: none; }
  .lite-tab-count.mine { background: var(--gold); color: #1d1606; }
  .lite-luggage[hidden], #lite-main[hidden] { display: none !important; }
  .lite-luggage-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border: 3px solid var(--gold); border-radius: 18px; background: var(--surface); font-size: 1.25rem; }
  .lite-luggage-task[hidden] { display: none; }
  .lite-luggage-task > span { display: flex; align-items: center; gap: 10px; }
  .lite-luggage-task button { width: auto; flex: none; min-height: 56px; padding: 0 20px; font-size: 1.15rem; font-weight: 900; border-radius: 14px; }
  .lite-search { display: grid; gap: 8px; font-size: 1.15rem; font-weight: 800; color: var(--muted); }
  .lite-search input { min-height: 72px; box-sizing: border-box; padding: 0 20px; border: 3px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font-size: 1.6rem; font-weight: 800; }
  .lite-search input:focus { border-color: var(--action); outline: none; }
  .lite-luggage-list { display: grid; gap: 12px; }
  .lite-bag-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); }
  .lite-bag-ticket { display: grid; justify-items: center; gap: 2px; padding: 12px 14px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface-soft); }
  .lite-bag-ticket span { font-size: .8rem; font-weight: 900; letter-spacing: .08em; color: var(--muted); }
  .lite-bag-ticket strong { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .lite-bag-body { display: grid; gap: 6px; min-width: 0; }
  .lite-bag-name { font-size: 1.7rem; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
  .lite-bag-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 1.25rem; }
  .lite-bag-meta svg { color: var(--forest); }
  .lite-bag-meta span { margin-right: 8px; }
  .lite-bag-tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .lite-bag-tags .luggage-stay-badge { font-size: .85rem; padding: 4px 10px; }
  .lite-bag-called { padding: 4px 10px; border-radius: 999px; background: var(--warning-surface); color: var(--ink); font-size: .9rem; font-weight: 800; }
  .lite-empty-small { padding: 26px 20px; border: 2px dashed var(--line); border-radius: 18px; color: var(--muted); font-size: 1.25rem; text-align: center; }
  #lite-luggage-checkin { width: 100%; }
}
@media screen and (max-width: 640px) {
  .lite-tabs { padding: 0 14px; margin-top: 12px; }
  .lite-tab { min-height: 56px; font-size: 1.2rem; }
  .lite-bag-card { grid-template-columns: 1fr; gap: 10px; }
  .lite-bag-ticket { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; }
}

/* v1.89: Focus Mode button in the top bar (bell staff) and "Full app" in the Focus header. */
@media screen {
  .focus-mode-button { display: inline-flex; align-items: center; gap: 6px; }
  .focus-mode-button[hidden], #lite-exit[hidden] { display: none !important; }
  .focus-mode-button span:first-child { font-size: 1.05em; }
}
@media screen and (max-width: 760px) {
  .focus-mode-button span:last-child { display: none; }
  .focus-mode-button { min-width: 44px; justify-content: center; }
}
@media screen { .account-row > #focus-mode-button { order: 6; } }
@media screen and (max-width: 599px) { #sidebar-utilities #focus-mode-button span:last-child { display: inline; } }

/* v1.90: Focus Mode release for check-out bags. */
@media screen {
  .lite-bag-card > .lite-release, .lite-bag-card > .lite-release-confirm { grid-column: 1 / -1; }
  .lite-release { width: 100%; min-height: 64px; border-radius: 14px; font-size: 1.35rem; font-weight: 900; }
  .lite-bag-card.confirming { border-color: var(--action); border-width: 3px; }
  .lite-release-confirm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-soft); }
  .lite-release-confirm p { grid-column: 1 / -1; margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
  .lite-release-confirm button { min-height: 64px; border-radius: 14px; font-size: 1.25rem; font-weight: 900; }
  .lite-bag-note { padding: 4px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .9rem; font-weight: 800; }
}
@media screen and (max-width: 640px) { .lite-release-confirm { grid-template-columns: 1fr; } }

/* v1.92: notification timing readout (Admin > Devices, Super Admin). */
@media screen {
  .push-timing-card { display: grid; gap: 10px; margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .push-timing-card h3 { margin: 2px 0 4px; }
  .push-timing-list { display: grid; gap: 6px; }
  .push-timing-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); font-size: .92rem; }
  .push-timing-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .push-timing-row.slow { background: var(--warning-surface); }
  .push-timing-row.missing { background: var(--error-surface); }
}
@media screen and (max-width: 700px) { .push-timing-row { grid-template-columns: 1fr; gap: 2px; } }

/* v1.96: package carrier tick-boxes (same look as Package / Mail). */
@media screen {
  .package-exclusive-fieldset .exclusive-options.package-carrier-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .package-carrier-fieldset > input[hidden] { display: none !important; }
  .package-carrier-fieldset > input { margin-top: 10px; width: 100%; box-sizing: border-box; }
}
@media screen and (max-width: 900px) { .package-exclusive-fieldset .exclusive-options.package-carrier-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== v1.97 Front Desk home ===== */
#front-desk-view.fd-home { display: flex; flex-direction: column; gap: 14px; padding: 20px 28px 22px; }
#front-desk-view.fd-home[hidden] { display: none; }
#front-desk-view .primary-button, #front-desk-view .secondary-button { width: auto; }
#front-desk-view input { margin: 0; }
#front-desk-view .link-button { display: inline; margin: 0; }
#front-desk-view .fd-back { display: none; }
.fd-home > .message:empty { display: none; }
.fd-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fd-title { display: flex; flex-direction: column; }
#front-desk-view .fd-title h1 { margin: 0; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; text-align: left; }
.fd-summary { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.fd-summary strong { color: var(--ink); }
.fd-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#front-desk-view .fd-actions > .secondary-button { min-height: 48px; padding: 0 18px; }
.fd-call { position: relative; }
.fd-call-split { display: flex; border-radius: 12px; overflow: hidden; background: var(--action); color: var(--action-ink); }
.fd-call-split[hidden] { display: none; }
.fd-call-main { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 0 18px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; line-height: 1.15; cursor: pointer; }
.fd-call-main strong { font-size: 1rem; font-weight: 800; }
.fd-call-main span { font-size: .75rem; opacity: .8; }
.fd-call-main:disabled { opacity: .6; cursor: wait; }
.fd-call-more { width: 44px; border: 0; border-left: 1px solid color-mix(in srgb, var(--action-ink) 25%, transparent); background: transparent; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fd-call-main:hover, .fd-call-more:hover { background: color-mix(in srgb, var(--action-ink) 12%, transparent); }
.fd-call-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 290px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgb(11 74 55 / 22%); display: flex; flex-direction: column; gap: 2px; }
.fd-call-menu[hidden] { display: none; }
.fd-call-menu > button { min-height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.fd-call-menu > button:hover, .fd-call-menu > button:focus-visible { background: var(--selected); }
.fd-call-other { margin: 6px 0 0; padding: 10px 8px 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fd-call-other label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.fd-call-other div { display: flex; gap: 6px; }
.fd-call-other input { flex: 1; min-width: 0; min-height: 42px; }
#front-desk-view .fd-call-other .primary-button { min-height: 42px; padding: 0 14px; }
.fd-call-status { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 6px 4px 14px; border-radius: 12px; background: var(--selected); border: 1.5px solid var(--action); }
.fd-call-status[hidden] { display: none; }
.fd-call-status-text { display: flex; flex-direction: column; line-height: 1.2; }
.fd-call-status-text strong { font-size: .95rem; }
.fd-call-status-text small { font-size: .8rem; color: var(--muted); font-weight: 700; }
#front-desk-view .fd-call-status .secondary-button { min-height: 38px; padding: 0 12px; font-size: .85rem; }

.fd-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.fd-luggage-button { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 0; border-radius: 18px; background: var(--action); color: var(--action-ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 10px 24px rgb(7 85 65 / 22%); }
.fd-luggage-button:hover { filter: brightness(1.08); }
.fd-luggage-top { display: flex; align-items: center; gap: 12px; }
.fd-luggage-top svg { flex: none; opacity: .85; }
.fd-luggage-top span { display: flex; flex-direction: column; line-height: 1.15; }
.fd-luggage-top strong { font-size: 1.35rem; font-weight: 800; }
.fd-luggage-top small { font-size: .85rem; opacity: .8; }
.fd-luggage-eta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--action-ink) 12%, transparent); }
.fd-luggage-eta span { font-size: .8rem; opacity: .85; }
.fd-luggage-eta strong { font-size: 1rem; }
.fd-quick { margin: 0; cursor: default; gap: 9px; padding: 14px 18px; }
.fd-quick .fd-luggage-eta { padding: 7px 10px; border-radius: 10px; }
.fd-quick .fd-luggage-eta span { white-space: nowrap; }
.fd-quick .fd-luggage-eta strong { font-size: .92rem; white-space: nowrap; }
.fd-quick:hover { filter: none; }
.fd-quick-row { display: flex; gap: 8px; }
.fd-quick-row input { flex: 1; min-width: 0; min-height: 48px; margin: 0; padding: 0 12px; border: 2px solid color-mix(in srgb, var(--action-ink) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--action-ink) 14%, transparent); color: var(--action-ink); font: inherit; font-size: 1.45rem; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.fd-quick-row input::placeholder { color: color-mix(in srgb, var(--action-ink) 70%, transparent); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.fd-quick-row input:focus { outline: 3px solid color-mix(in srgb, var(--action-ink) 55%, transparent); outline-offset: 1px; }
.fd-quick-call { flex: none; min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--action-ink); color: var(--action); font: inherit; font-size: 1.02rem; font-weight: 900; cursor: pointer; white-space: nowrap; }
.fd-quick-call:hover { filter: brightness(.94); }
.fd-quick-call:disabled { opacity: .65; cursor: progress; }
.fd-quick-more { align-self: flex-start; margin-top: 3px; padding: 0; text-align: left; border: 0; background: none; color: inherit; font: inherit; font-size: .8rem; font-weight: 700; opacity: .85; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fd-quick-more:hover { opacity: 1; }
.fd-search { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 18px; padding: 16px 18px; background: var(--surface); border: 2px solid color-mix(in srgb, var(--action) 45%, var(--line)); border-radius: 18px; }
.fd-search-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.fd-search-form label { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.fd-search-row { display: flex; gap: 8px; }
.fd-search-row input { flex: 1; min-width: 0; min-height: 62px; padding: 0 16px; border: 2px solid var(--action); border-radius: 14px; font-size: 1.9rem; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.fd-search-row input::placeholder { font-size: 1.05rem; letter-spacing: 0; font-weight: 600; }
#front-desk-view .fd-search-row .primary-button { min-height: 62px; padding: 0 20px; font-size: 1.05rem; }
.fd-search-help { font-size: .8rem; color: var(--muted); }
.fd-search-help .link-button { font-size: .8rem; }
.fd-search-form .message:empty { display: none; }
.fd-search-results { display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow: auto; }
.fd-result-idle { height: 100%; min-height: 120px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 18px; border-radius: 14px; border: 1.5px dashed var(--line); color: var(--muted); }
.fd-result-idle strong { color: var(--ink); font-size: 1.05rem; }
.fd-result { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 14px; background: var(--surface-soft); border: 1px solid var(--line); }
.fd-result.inventory { background: color-mix(in srgb, var(--selected) 70%, var(--surface)); }
.fd-result.not-found { background: var(--warning-surface); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.fd-result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fd-result-kind { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--action); color: var(--action-ink); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.fd-result.not-found .fd-result-kind { background: var(--gold); color: #1c1407; }
.fd-result.released .fd-result-kind, .fd-result.completed .fd-result-kind { background: var(--muted); color: var(--surface); }
.fd-result-text strong { font-size: 1.25rem; }
.fd-result-text p { margin: 0; font-size: .95rem; }
.fd-result-text small { color: var(--muted); font-size: .85rem; }
#front-desk-view .fd-result > button { flex: none; min-height: 46px; white-space: nowrap; }

.fd-bellmen { display: flex; align-items: center; gap: 10px; }
.fd-bellmen h2 { margin: 0 4px 0 0; font-size: .9rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.fd-bellmen-list { flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.fd-bellman { flex: 1 1 0; min-width: 170px; max-width: 320px; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fd-bellman:hover { border-color: var(--action); }
.fd-bellman i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--frog-green, #1f8a5b); }
.fd-bellman.free i { background: transparent; border: 2px solid var(--muted); box-sizing: border-box; }
.fd-bellman > span { min-width: 0; display: flex; flex-direction: column; }
.fd-bellman strong { font-size: .95rem; }
.fd-bellman small { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-bellman .task-timer { font-weight: 700; }
.fd-link { flex: none; font-weight: 700; white-space: nowrap; }

.fd-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.fd-column { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fd-column-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.fd-column-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.fd-column-head h2 span { color: var(--muted); font-weight: 700; }
.fd-list { display: flex; flex-direction: column; max-height: max(240px, calc(100vh - 500px)); overflow-y: auto; }
.fd-empty { padding: 18px 16px; color: var(--muted); font-size: .95rem; }
.fd-bellmen-empty { padding: 14px 4px; }
.fd-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); background: transparent; color: var(--ink); font: inherit; text-align: left; }
.fd-row:last-child { border-bottom: 0; }
button.fd-row { width: 100%; cursor: pointer; }
button.fd-row:hover, .fd-row .fd-row-main:hover { background: var(--surface-soft); }
.fd-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.fd-package .fd-row-main { cursor: pointer; border-radius: 8px; }
.fd-row-main strong { font-size: .98rem; }
.fd-row-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fd-row-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-row-meta { font-size: .82rem; color: var(--muted); }
.fd-urgent { flex: none; padding: 2px 6px; border-radius: 5px; background: var(--error); color: var(--surface); font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.fd-task.urgent.waiting { background: var(--error-surface); }
.fd-task.urgent.waiting .fd-row-meta { color: var(--error); font-weight: 700; }
.fd-stored { flex-direction: column; align-items: stretch; gap: 8px; }
.fd-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fd-row-top span { font-size: .8rem; color: var(--muted); text-align: right; }
.fd-stored-actions { display: flex; gap: 8px; }
.fd-stored-actions input { width: 96px; min-height: 42px; padding: 0 10px; }
#front-desk-view .fd-stored-actions .primary-button { flex: 1; min-height: 42px; padding: 0 10px; font-size: .9rem; }
.fd-requested { align-self: flex-start; padding: 0; border: 0; background: transparent; color: var(--forest); font: inherit; font-size: .88rem; font-weight: 700; text-align: left; cursor: pointer; }
.fd-requested:hover { text-decoration: underline; }
.fd-stored.requested { background: var(--surface-soft); }
.fd-package.overdue { background: var(--warning-surface); }
.fd-package.overdue .fd-row-meta { color: var(--gold); font-weight: 700; }
:root:not([data-theme="dark"]) .fd-package.overdue .fd-row-meta { color: #8a4b0f; }
.fd-small-button { flex: none; min-height: 38px; padding: 0 12px; border: 1.5px solid var(--action); border-radius: 10px; background: var(--surface); color: var(--action); font: inherit; font-size: .82rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.fd-small-button:hover { background: var(--selected); }
.fd-small-button:disabled { opacity: .6; }

@media (max-width: 1180px) {
  .fd-hero { grid-template-columns: 1fr; }
  .fd-luggage-button { flex-direction: row; align-items: center; }
  .fd-quick { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .fd-quick .fd-quick-row { flex: 1 1 260px; }
  .fd-quick .fd-luggage-eta { flex: 1 1 220px; }
  .fd-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-list { max-height: 420px; }
}
@media (max-width: 760px) {
  .fd-search { grid-template-columns: 1fr; }
  .fd-columns { grid-template-columns: 1fr; }
  .fd-luggage-button { flex-direction: column; align-items: stretch; }
  .fd-quick .fd-quick-row, .fd-quick .fd-luggage-eta { flex-basis: auto; }
  .fd-bellmen { flex-wrap: wrap; }
  .fd-bellmen-list { order: 3; flex-basis: 100%; }
  .fd-actions { width: 100%; }
  #front-desk-view .fd-actions > .secondary-button { flex: 1; }
  .fd-call { flex-basis: 100%; }
  .fd-call-main { flex: 1; }
  .fd-result { flex-wrap: wrap; }
}

/* ===== v1.97 Packages, cleaned up ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#package-view.pkg-home { display: flex; flex-direction: column; gap: 14px; }
#package-view.pkg-home[hidden] { display: none; }
#package-view > .message:empty { display: none; }
.pkg-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
#package-view .pkg-back { display: none; }
#package-view .pkg-header h1 { margin: 0; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; text-align: left; }
.pkg-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#package-view .pkg-actions > button, #package-view .pkg-tools-toggle { width: auto; min-height: 48px; padding: 0 18px; }
.pkg-tools { position: relative; }
.pkg-tools-toggle { display: inline-flex; align-items: center; gap: 8px; }
.pkg-tools-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.pkg-tools-dot[hidden] { display: none; }
.pkg-tools-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 330px; max-width: calc(100vw - 32px); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgb(11 74 55 / 22%); display: flex; flex-direction: column; gap: 2px; }
.pkg-tools-menu[hidden] { display: none; }
.pkg-tools-menu > button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 60px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pkg-tools-menu > button[hidden] { display: none; }
.pkg-tools-menu > button:hover, .pkg-tools-menu > button:focus-visible { background: var(--selected); }
.pkg-tools-menu strong { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.pkg-tools-menu small { font-size: .82rem; color: var(--muted); }
.pkg-count-badge { min-width: 24px; height: 24px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: var(--selected); color: var(--forest); font-size: .8rem; display: inline-grid; place-items: center; }
.package-notify-button.has-pending .pkg-count-badge { background: var(--gold); color: #1c1407; }
.pkg-scan { display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 0; padding: 0 18px; background: var(--surface); border: 2px solid color-mix(in srgb, var(--action) 40%, var(--line)); border-radius: 16px; color: var(--forest); }
.pkg-scan:focus-within { border-color: var(--action); }
.pkg-scan svg { flex: none; }
#package-view .pkg-scan input { flex: 1; min-width: 0; min-height: 58px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 1.1rem; color: var(--ink); }
#package-view .pkg-tabs { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#package-view .pkg-tabs .package-mobile-status-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: none; }
#package-view .pkg-tabs .package-mobile-status-tab.active { border-color: var(--action); background: var(--action); color: var(--action-ink); }
#package-view .pkg-tabs .package-mobile-status-tab span { min-width: 26px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--selected); color: var(--forest); font-size: .82rem; display: inline-grid; place-items: center; }
#package-view .pkg-tabs .package-mobile-status-tab.active span { background: color-mix(in srgb, var(--action-ink) 85%, transparent); color: var(--action); }
.pkg-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pkg-chip { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.pkg-chip.active { border-color: var(--action); background: var(--selected); color: var(--forest); }
/* One list at a time, on every screen size. */
#package-view .package-board { display: block; }
#package-view .package-board-column { display: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
#package-view .package-board-column.mobile-active { display: block; }
#package-view .package-board-column > header { display: none; }
#package-view .package-button-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-row { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.pkg-row.needs-info { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: var(--warning-surface); }
#package-view .pkg-row .pkg-row-main { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; width: auto; min-height: 0; padding: 14px 18px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); text-align: left; cursor: pointer; grid-template-columns: none; }
#package-view .pkg-row .pkg-row-main:hover { background: color-mix(in srgb, var(--selected) 45%, transparent); }
.pkg-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pkg-row-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pkg-row-name strong { font-size: 1.1rem; }
.pkg-tag { padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 800; }
.pkg-tag.guest { background: #f6edd9; color: #6b4a10; }
.pkg-tag.employee { background: #e1eef5; color: #234f66; }
.pkg-tag.outgoing { background: #ece6f5; color: #4b3a6b; }
.pkg-tag.mail { background: var(--selected); color: var(--forest); }
:root[data-theme="dark"] .pkg-tag.guest { background: #4a3d22; color: #f1dcae; }
:root[data-theme="dark"] .pkg-tag.employee { background: #22404f; color: #c6e2f0; }
:root[data-theme="dark"] .pkg-tag.outgoing { background: #3a3150; color: #ddd2f3; }
.pkg-row-mid { font-size: .92rem; color: var(--muted); }
.pkg-row-status { font-size: .85rem; color: var(--muted); }
.pkg-row-status.warn { color: #8a4b0f; font-weight: 700; }
:root[data-theme="dark"] .pkg-row-status.warn { color: var(--gold); }
.pkg-row-status.good { color: var(--forest); font-weight: 700; }
.pkg-row-chevron { flex: none; color: var(--muted); }
#package-view .pkg-row .package-missing-alert { position: static; flex: none; }
.pkg-row-quick { flex: none; align-self: center; margin-right: 14px; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--action); border-radius: 12px; background: var(--surface); color: var(--action); font: inherit; font-size: .92rem; font-weight: 800; cursor: pointer; }
.pkg-row-quick:hover { background: var(--selected); }
#package-view .task-empty { border-radius: 16px; }
/* Log a Package / Expecting: the short version, with the rest under More details. */
.pkg-tracking-field input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: .03em; }
.pkg-carrier-hint { color: var(--forest); font-weight: 700; font-size: .85em; }
.pkg-carrier-hint[hidden] { display: none; }
.package-more { border: 1.5px dashed var(--line); border-radius: 14px; background: var(--surface-soft); }
.package-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none; }
.package-more > summary::-webkit-details-marker { display: none; }
.package-more > summary::after { content: ''; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); flex: none; }
.package-more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.package-more > summary > span { display: flex; flex-direction: column; gap: 2px; }
.package-more > summary small { color: var(--muted); font-size: .85rem; }
.package-more[open] { border-style: solid; background: transparent; }
.package-more-body.package-form { padding: 4px 14px 14px; }
@media (max-width: 760px) {
  .pkg-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr); }
  #package-view .pkg-actions > button, #package-view .pkg-tools-toggle { width: 100%; padding: 0 8px; justify-content: center; }
  .pkg-tools { order: 3; }
  #add-expected-package { order: 2; }
  #add-on-hand-package { order: 1; }
  .pkg-tabs .package-mobile-status-tab { font-size: .9rem; }
  .pkg-row-quick { margin-right: 10px; padding: 0 10px; }
}
@media (max-width: 520px) {
  #package-view .pkg-tabs { gap: 6px; }
  #package-view .pkg-tabs .package-mobile-status-tab { gap: 5px; padding: 0 4px; font-size: .82rem; white-space: nowrap; }
  #package-view .pkg-tabs .package-mobile-status-tab span { min-width: 22px; height: 22px; padding: 0 5px; font-size: .75rem; }
  #package-view .pkg-actions > button, #package-view .pkg-tools-toggle { font-size: .88rem; white-space: nowrap; }
  .pkg-chip { min-height: 38px; padding: 0 13px; font-size: .85rem; }
  .pkg-row-name strong { font-size: 1.02rem; }
}
.fd-bellman-top { display: flex; align-items: baseline; gap: 8px; }
.fd-bellman-top .task-timer { font-size: .78rem; color: var(--muted); font-weight: 700; white-space: nowrap; }

/* ===== v1.98 Schedule: Requests & Notes ===== */
.schedule-note-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--gold); color: #1c1407; font-size: .75rem; font-weight: 800; }
.schedule-note-count[hidden] { display: none; }
.schedule-day-note-form { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 220px) minmax(0, 1fr) auto; gap: 12px; align-items: start; margin-top: 12px; }
.schedule-day-note-form label { display: block; margin-bottom: 6px; font-weight: 700; }
.schedule-day-note-form > div { min-width: 0; }
.schedule-day-note-form input, .schedule-day-note-form select { width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; }
.schedule-day-note-form select { min-height: 52px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
#schedule-day-note-submit { width: auto; min-height: 48px; margin-top: 27px; padding: 0 20px; }
.schedule-day-note-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.schedule-day-note-quick button { min-height: 34px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--forest); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.schedule-day-note-quick button:hover { border-color: var(--action); background: var(--selected); }
.schedule-day-note-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.schedule-day-note-list-head h3 { margin: 0; font-size: 1.05rem; }
.schedule-day-note-past { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.schedule-day-note-past input { appearance: auto; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--action); }
.schedule-day-note-list { display: flex; flex-direction: column; gap: 10px; }
.schedule-day-note-group { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.schedule-day-note-group.past { opacity: .65; }
.schedule-day-note-group h4 { margin: 0; padding: 10px 14px; background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: .98rem; }
.schedule-day-note-group h4 small { margin-left: 6px; color: var(--muted); font-weight: 600; }
.schedule-day-note-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.schedule-day-note-row:last-child { border-bottom: 0; }
.schedule-day-note-row > span { display: flex; flex-direction: column; gap: 2px; }
.schedule-day-note-row small { color: var(--muted); font-size: .8rem; }
.schedule-day-note-row .small-button { width: auto; flex: none; }
.schedule-day-notes { list-style: none; margin: 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--warning-surface); border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); }
.schedule-day-notes li { display: flex; gap: 8px; align-items: baseline; font-size: .9rem; color: var(--ink); }
.schedule-day-notes li em { font-style: normal; font-weight: 800; color: var(--error); }
.schedule-day-notes li.clash { color: var(--error); }
@media (max-width: 900px) {
  .schedule-day-note-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .schedule-day-note-text-field { grid-column: 1 / -1; }
  #schedule-day-note-submit { margin-top: 0; grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
  .schedule-day-note-form { grid-template-columns: minmax(0, 1fr); }
}

/* ===== v1.99 Bell carts ===== */
.bell-carts { margin: 16px 0; }
.bell-carts[hidden] { display: none; }
.bell-carts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bell-carts-head h2 { margin: 0; font-size: 1.25rem; }
.bell-carts-head p { margin: 0; }
.bell-cart-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.cart-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cart-card.offline, .cart-card.never, .cart-card.low { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: var(--warning-surface); }
.cart-card header { display: flex; flex-direction: column; gap: 2px; }
.cart-card header strong { font-size: 1.1rem; }
.cart-health { font-size: .85rem; color: var(--muted); }
.cart-card.offline .cart-health, .cart-card.low .cart-health, .cart-card.never .cart-health { color: #8a4b0f; font-weight: 700; }
:root[data-theme="dark"] .cart-card.offline .cart-health, :root[data-theme="dark"] .cart-card.low .cart-health, :root[data-theme="dark"] .cart-card.never .cart-health { color: var(--gold); }
.cart-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-actions button { width: auto; flex: 1 1 auto; min-height: 46px; padding: 0 14px; font-size: .92rem; }
.cart-actions button:disabled { opacity: .5; cursor: not-allowed; }
.cart-pending, .cart-quiet-prompt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--selected); color: var(--ink); font-size: .9rem; }
.cart-quiet-prompt { background: var(--warning-surface); border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); }
.cart-quiet-prompt > div { display: flex; gap: 6px; flex-wrap: wrap; }
.cart-quiet-prompt button, .cart-pending button { width: auto; min-height: 40px; padding: 0 12px; }
.cart-last { margin: 0; font-size: .82rem; color: var(--muted); }
.cart-add-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.cart-add-form > div { flex: 1 1 220px; }
.cart-add-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.cart-add-form input { margin: 0; }
.cart-add-form .primary-button { width: auto; min-height: 48px; padding: 0 20px; }
.cart-key-box { margin: 10px 0; padding: 14px; border-radius: 14px; border: 2px solid var(--action); background: var(--selected); }
.cart-key-box[hidden] { display: none; }
.cart-key-box p { margin: 0 0 8px; }
.cart-key-box pre { margin: 0 0 10px; padding: 12px; border-radius: 10px; background: var(--surface); color: var(--ink); font-size: .9rem; overflow-x: auto; user-select: all; }
.cart-key-actions { display: flex; gap: 8px; }
.cart-key-actions button { width: auto; }
.cart-admin-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.cart-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cart-admin-row.offline, .cart-admin-row.never, .cart-admin-row.low { background: var(--warning-surface); }
.cart-admin-row > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-admin-row small { color: var(--muted); }
.cart-admin-row code { font-size: .8rem; color: var(--muted); }
.cart-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cart-admin-actions button { width: auto; }
.cart-settings-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-settings-form h3 { grid-column: 1 / -1; margin: 0; font-size: 1rem; }
.cart-settings-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.cart-settings-form input, .cart-settings-form select { margin: 0; width: 100%; box-sizing: border-box; }
.cart-settings-form select { min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.cart-settings-form small { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; }
.cart-settings-form > small { grid-column: 1 / -1; }
.cart-settings-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.cart-settings-actions button { width: auto; }
@media (max-width: 520px) { .bell-cart-list { grid-template-columns: 1fr; } .cart-actions button { flex: 1 1 100%; } }

/* ===== v2.00 Schedule: weeks, day notes, time off, streaks ===== */
.schedule-week-picker label { display: block; font-weight: 700; margin-bottom: 6px; }
.schedule-week-picker-row { display: flex; gap: 6px; align-items: stretch; }
.schedule-week-picker-row input { margin: 0; flex: 1; min-width: 0; }
.schedule-week-picker-row button { width: 48px; min-height: 48px; padding: 0; font-size: 1.4rem; line-height: 1; flex: none; }
.schedule-week-picker small { display: block; margin-top: 6px; font-weight: 700; color: var(--forest); }
.schedule-note-count.pending { background: var(--error); color: var(--surface); }
.schedule-day-public-note-field { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.schedule-day-public-note-field span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.schedule-day-public-note-field input { margin: 0; min-height: 40px; font-size: .92rem; }
.schedule-day-public-note { margin: 0; padding: 8px 12px; background: var(--warning-surface); border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); font-size: .9rem; font-weight: 600; color: var(--ink); }
.schedule-day-notes li.timeoff.approved { color: var(--forest); }
.schedule-day-notes li.timeoff.approved.clash, .schedule-day-notes li.streak { color: var(--error); }
.schedule-day-notes li.timeoff.pending:not(.clash) { color: #8a4b0f; }
:root[data-theme="dark"] .schedule-day-notes li.timeoff.pending:not(.clash) { color: var(--gold); }
.schedule-export-daynote-row td { font-size: .78rem; font-weight: 600; background: #fffaf0; }
.time-off-panel { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.time-off-panel[hidden] { display: none; }
.time-off-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.time-off-head h2 { margin: 0; font-size: 1.15rem; }
.time-off-head .primary-button { width: auto; min-height: 46px; padding: 0 18px; }
.time-off-head .primary-button[hidden] { display: none; }
.time-off-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.time-off-form[hidden] { display: none; }
.time-off-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.time-off-form input { margin: 0; width: 100%; box-sizing: border-box; }
.time-off-note-field, .time-off-form-actions { grid-column: 1 / -1; }
.time-off-form-actions { display: flex; gap: 8px; }
.time-off-form-actions button { width: auto; min-height: 46px; padding: 0 18px; }
.time-off-panel > .message:empty { display: none; }
.time-off-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.time-off-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.time-off-row.pending { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: var(--warning-surface); }
.time-off-row > div:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.time-off-row > div:first-child > strong { display: inline; margin-right: 8px; }
.time-off-row small { color: var(--muted); font-size: .84rem; }
.time-off-row .time-off-clash { color: var(--error); font-weight: 700; }
.time-off-status { align-self: flex-start; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.time-off-status.pending { background: var(--gold); color: #1c1407; }
.time-off-status.approved { background: var(--action); color: var(--action-ink); }
.time-off-status.denied { background: var(--error-surface); color: var(--error); }
.time-off-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.time-off-actions button { width: auto; min-height: 42px; padding: 0 14px; }
.time-off-actions .time-off-reply { margin: 0; min-height: 42px; width: 200px; }
@media (max-width: 560px) {
  .time-off-form { grid-template-columns: minmax(0, 1fr); }
  .time-off-actions { width: 100%; }
  .time-off-actions .time-off-reply { width: 100%; }
  .time-off-actions button { flex: 1; }
}
#bell-schedule-range-form { grid-template-columns: minmax(0, 380px) auto; align-items: start; }
#bell-schedule-range-form > input[hidden] { display: none; }
#bell-schedule-range-form #load-bell-schedule { margin-top: 27px; }
#bell-schedule-range-form .schedule-week-picker-row .secondary-button { width: 48px; min-height: 48px; grid-column: auto; }
@media (max-width: 760px) {
  #bell-schedule-range-form { grid-template-columns: minmax(0, 1fr); }
  #bell-schedule-range-form #load-bell-schedule { margin-top: 0; }
}

/* ===== v2.01 Frog PINs in Admin › Profiles ===== */
.admin-frog-pin { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.admin-frog-pin > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-frog-pin small { color: var(--muted); }
.admin-frog-pin-actions { display: flex; align-items: center; gap: 6px; }
.admin-frog-pin-input { width: 96px; min-height: 40px; margin: 0; letter-spacing: .2em; text-align: center; font-weight: 800; }
.admin-frog-pin-input::placeholder { letter-spacing: normal; font-weight: 600; }
.admin-frog-pin-actions button { width: auto; }
.admin-frog-lang-field { display: flex; align-items: center; gap: 8px; flex-basis: 100%; margin: 0; font-size: .9rem; }
.admin-frog-lang-field span { font-weight: 700; color: inherit; }
.admin-frog-lang, .admin-frog-mode { width: auto; min-height: 38px; margin: 0; padding: 6px 10px; }

/* v2.07: bags added on the Frog (no guest name yet) */
.luggage-no-name { color: var(--muted); font-style: italic; }
.luggage-from-frog { font-size: .72rem; font-weight: 700; color: var(--muted); }
/* v2.07: a ticket that isn't in inventory is OK to call for: calm, not a warning */
.fd-result.unlisted { background: var(--selected); border-color: color-mix(in srgb, var(--action) 40%, var(--line)); }

/* Portage (v2.10): rooming lists for groups, and a big search to tag the bags */
.portage-search-row { display: flex; gap: 10px; }
.portage-search-row input { flex: 1; min-width: 0; min-height: 58px; margin: 0; padding: 0 16px; border: 2px solid var(--forest); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.35rem; font-weight: 700; }
.portage-search-row input:focus { outline: 3px solid color-mix(in srgb, var(--forest) 35%, transparent); outline-offset: 1px; }
.portage-search-row select { flex: none; max-width: 38%; min-height: 58px; margin: 0; border-radius: 14px; }
.portage-results { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.portage-hint { margin: 0; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: .95rem; }
.portage-hint.miss { border-style: solid; border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: var(--warning-surface); color: var(--ink); }
.portage-hit { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.portage-hit:first-child { border: 2px solid var(--forest); background: color-mix(in srgb, var(--selected) 60%, var(--surface)); }
.portage-hit-room { flex: none; min-width: 112px; display: flex; flex-direction: column; align-items: center; padding: 6px 12px 8px; border-radius: 12px; background: var(--action); color: var(--action-ink); }
.portage-hit-room span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.portage-hit-room strong { font-size: 2.3rem; line-height: 1.05; font-weight: 900; font-variant-numeric: tabular-nums; }
.portage-hit-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.portage-hit-text strong { font-size: 1.25rem; color: var(--ink); overflow-wrap: anywhere; }
.portage-hit-text span { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.portage-hit-text small { align-self: flex-start; margin-top: 3px; padding: 2px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .74rem; font-weight: 700; }
.portage-inline-form { display: flex; gap: 10px; }
.portage-inline-form input { flex: 1; min-width: 0; min-height: 46px; margin: 0; }
.portage-inline-form .primary-button { flex: none; width: auto; margin: 0; padding: 0 18px; }
.portage-empty { margin: 14px 0 0; color: var(--muted); }
.portage-group-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.portage-group { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.portage-group.open { border: 2px solid var(--forest); }
.portage-group-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.portage-group-text strong { font-size: 1.08rem; color: var(--ink); overflow-wrap: anywhere; }
.portage-group-text span { color: var(--muted); font-size: .85rem; }
.portage-group-actions, .portage-room-actions, .portage-editor-actions { display: flex; gap: 8px; flex: none; }
.portage-group-actions button, .portage-room-actions button, .portage-editor-actions button { width: auto; min-height: 40px; margin: 0; padding: 0 14px; }
.portage-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.portage-room-form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 110px auto; gap: 10px; align-items: end; }
.portage-room-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: .82rem; font-weight: 800; color: var(--muted); }
.portage-room-form input { min-height: 48px; margin: 0; font-size: 1.02rem; }
.portage-room-field input { font-weight: 800; font-variant-numeric: tabular-nums; }
.portage-form-buttons { display: flex; gap: 8px; }
.portage-form-buttons button { width: auto; min-height: 48px; margin: 0; padding: 0 16px; white-space: nowrap; }
.portage-room-list { margin-top: 16px; display: flex; flex-direction: column; }
.portage-room-head, .portage-room-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.portage-room-head { padding: 0 10px 6px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portage-room-row { padding: 10px; border-top: 1px solid var(--line); }
.portage-room-row.editing { border-radius: 12px; background: var(--selected); }
.portage-room-number { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 1.3rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.portage-room-number em { padding: 1px 7px; border-radius: 999px; background: var(--warning-surface); border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); color: var(--ink); font-size: .68rem; font-style: normal; font-weight: 800; }
.portage-room-guests { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.portage-room-guests strong { color: var(--ink); overflow-wrap: anywhere; }
.portage-room-guests span { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .portage-room-form { grid-template-columns: minmax(0, 1fr) 110px; }
  .portage-room-form label:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .portage-form-buttons { grid-column: 1 / -1; }
  .portage-form-buttons button { flex: 1; }
}
@media (max-width: 560px) {
  .portage-search-row { flex-direction: column; }
  .portage-search-row select { max-width: none; min-height: 46px; }
  .portage-hit { gap: 12px; padding: 10px 12px; }
  .portage-hit-room { min-width: 88px; padding: 5px 8px 6px; }
  .portage-hit-room strong { font-size: 1.9rem; }
  .portage-group, .portage-editor-heading { flex-wrap: wrap; }
  .portage-group-actions { width: 100%; }
  .portage-group-actions button { flex: 1; }
  .portage-room-head { display: none; }
  .portage-room-row { grid-template-columns: 72px minmax(0, 1fr); }
  .portage-room-actions { grid-column: 1 / -1; }
  .portage-room-actions button { flex: 1; }
}

/* v2.12 Front Desk ticket search: an obvious Clear, and "Store These Bags" for a ticket that isn't in inventory */
#front-desk-view .fd-search-row .fd-search-clear { flex: none; width: auto; min-height: 62px; margin: 0; padding: 0 18px; border: 2px solid var(--action); border-radius: 14px; background: var(--surface); color: var(--action); font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
#front-desk-view .fd-search-row .fd-search-clear:hover { background: var(--selected); }
#front-desk-view .fd-search-row .fd-search-clear span { font-size: 1.1em; }
.fd-search-results.storing { max-height: none; }
.fd-result-actions { flex: none; display: flex; flex-direction: column; gap: 6px; }
#front-desk-view .fd-result-actions button { width: auto; min-height: 42px; margin: 0; white-space: nowrap; }
.fd-store-form { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--action) 35%, var(--line)); }
.fd-store-form[hidden] { display: none; }
.fd-store-title { flex: 1 1 100%; margin: 0; font-size: .92rem; }
.fd-store-form label { flex: 1 1 160px; display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: .78rem; font-weight: 800; color: var(--muted); }
.fd-store-form label.fd-store-bags { flex: 0 0 76px; }
.fd-store-form input { min-height: 44px; margin: 0; }
#front-desk-view .fd-store-form .primary-button { flex: none; width: auto; min-height: 44px; margin: 0; padding: 0 16px; white-space: nowrap; }
#front-desk-view .fd-store-form .link-button { flex: none; min-height: 44px; }
.fd-result.unlisted { flex-wrap: wrap; }
@media (max-width: 560px) {
  .fd-result-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  #front-desk-view .fd-result-actions button { flex: 1; }
  #front-desk-view .fd-search-row .fd-search-clear { padding: 0 12px; }
}

/* v2.12 Tasks: admin clean-up for a task someone accepted or started */
.admin-task-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-soft); }
.admin-task-fix-label { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.admin-task-fix button { width: auto; min-height: 34px; margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: .82rem; font-weight: 700; cursor: pointer; }
.admin-task-fix button:hover { border-color: var(--forest); }
.admin-task-fix .admin-task-fix-remove { color: var(--error, #b42318); }
.task-item > .admin-task-fix { grid-column: 1 / -1; min-width: 0; margin-top: 0; }
@media (max-width: 560px) { .admin-task-fix button { flex: 1 1 auto; } }

/* v2.13 — Front Desk console: button-like links, folding sections, guest laundry, way back */
#front-desk-view .fd-go, .fd-go { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 2px solid var(--action); border-radius: 999px; background: var(--surface); color: var(--action); font: inherit; font-size: .88rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
#front-desk-view .fd-go:hover, .fd-go:hover { background: var(--selected); }
.fd-go span { transition: transform .15s; }
.fd-go:hover span { transform: translateX(2px); }
.fd-column-head { align-items: center; }
.fd-collapse { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fd-collapse::before { content: ""; flex: none; width: 8px; height: 8px; margin: 0 2px 0 2px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; opacity: .7; }
.fd-collapse[aria-expanded="false"]::before { transform: rotate(-45deg); }
.fd-collapse span { white-space: nowrap; }
.fd-collapse:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }
.fd-collapsed .fd-list, .fd-collapsed .fd-bellmen-list { display: none; }
.fd-column.fd-collapsed .fd-column-head { border-bottom: 0; }
.fd-bellmen h2 .fd-collapse { font-size: inherit; font-weight: inherit; color: inherit; }
.fd-bellmen.fd-collapsed { justify-content: space-between; }
.fd-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fd-laundry { align-items: center; }
.fd-laundry-state { flex: none; max-width: 48%; padding: 3px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .76rem; font-weight: 800; text-align: right; }
.fd-laundry.back .fd-laundry-state { background: var(--selected); color: var(--forest); }
.fd-laundry.out .fd-laundry-state { color: var(--ink); }
.fd-return-bar { margin: 0 0 14px; }
.fd-return { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--action); border-radius: 12px; background: var(--surface); color: var(--action); font: inherit; font-size: .98rem; font-weight: 800; cursor: pointer; }
.fd-return:hover { background: var(--selected); }
html.desk-console .workspace .back-button { display: none !important; }
/* 4 across keeps the console on one screen (lists scroll inside); between 1181 and 1720 px the
   section's button drops under its title so the titles stay readable. */
@media (max-width: 1720px) and (min-width: 1181px) {
  .fd-column-head { flex-wrap: wrap; align-items: center; row-gap: 6px; padding-bottom: 12px; }
  .fd-column-head h2 { flex: 1 1 100%; }
  .fd-column-head .fd-go { min-height: 34px; padding: 0 12px; font-size: .82rem; }
  .fd-list { max-height: max(200px, calc(100vh - 580px)); }
}
@media (max-width: 1180px) {
  .fd-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .fd-columns { grid-template-columns: 1fr; }
  .fd-return { width: 100%; justify-content: center; }
}
