/* Emerald Clear — presentation layer; original workflow selectors stay intact. */
:root {
  color-scheme: light;
  --forest: #075541; --forest-dark: #123d30; --ink: #172d26; --muted: #536b61;
  --line: #bad3c6; --cream: #eef6f1; --cream-soft: #f4f8f5; --cream-deep: #e6f1ea;
  --frog-green: #27865c; --gold: #b78228; --gold-soft: #e3d8bd;
  --surface: #fff; --surface-soft: #f0f6f2; --canvas: #f3f7f4;
  --action: #075541; --action-ink: #fff; --selected: #e0f3e8;
  --sidebar: #074534; --sidebar-ink: #f4faf6; --sidebar-active: #b3ebce;
  --error: #b13e50; --success: #187047; --shadow: 0 8px 24px rgb(21 65 43 / 5%);
  --rail: 208px; --error-surface: #fff1f2; --warning-surface: #fff8e9;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --forest: #a5e5ba; --forest-dark: #eff8f2; --ink: #edf5ef; --muted: #b3c8bc;
  --line: #456958; --cream: #1d3b30; --cream-soft: #183227; --cream-deep: #264b3b;
  --surface: #172f26; --surface-soft: #1d3b30; --canvas: #10231d;
  --action: #a5e5ba; --action-ink: #10231d; --selected: #284d3b;
  --sidebar: #0b2d23; --sidebar-ink: #eef9f1; --sidebar-active: #a5e5ba;
  --gold: #e7c27c; --gold-soft: #655937; --error: #ffadb9; --success: #a5e5ba;
  --shadow: 0 8px 24px rgb(0 0 0 / 13%); --error-surface: #42262e; --warning-surface: #3d3422;
}
@media screen {
  body { background: var(--canvas); color: var(--ink); line-height: 1.45; }
  button, input, select, textarea { font: inherit; }
  button { touch-action: manipulation; }
  :focus-visible { outline: 3px solid #538fe0; outline-offset: 3px; }
  input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
  .page-shell { display: block; padding: 0; }
  .page-shell:has(> #portal-view[hidden]) { display: grid; place-items: center; padding: 24px 16px; }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .portal { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: auto 1fr;
    width: 100%; min-height: 100dvh; overflow: visible; border: 0; border-radius: 0; box-shadow: none; background: var(--canvas); }
  .portal-header { grid-column: 2; grid-row: 1; position: sticky; top: 0; z-index: 25; min-width: 0;
    padding: 12px clamp(16px, 2.4vw, 36px); gap: 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .account-row { flex-wrap: wrap; justify-content: flex-end; width: 100%; gap: 8px; color: var(--ink); font-size: .82rem; }
  #signed-in-email { order: 5; max-width: 160px; overflow-wrap: anywhere; font-weight: 750; }
  #logout-button { order: 7; }
  #theme-toggle { order: 6; }
  .shift-summary-strip { max-width: 240px; background: var(--surface-soft); color: var(--ink); border-color: var(--line); }
  .brand-row { padding: 7px 8px 20px; gap: 8px; }
  .brand-row strong { color: var(--sidebar-ink); font-size: 1.4rem; letter-spacing: -.04em; }
  .brand-row .brand-art { width: 44px; height: 44px; flex: 0 0 44px; }
  .quick-nav { grid-column: 1; grid-row: 1 / 3; position: sticky; top: 0; align-self: start; display: flex;
    flex-direction: column; align-items: stretch; gap: 7px; height: 100dvh; overflow: auto; padding: 18px 12px;
    border: 0; background: var(--sidebar); backdrop-filter: none; z-index: 30; scrollbar-color: #5e9a7b transparent; }
  .quick-nav-button { display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto; min-width: 0; min-height: 50px;
    padding: 10px 12px; gap: 10px; border: 1px solid transparent; border-radius: 10px; color: var(--sidebar-ink); background: transparent; box-shadow: none; }
  .quick-nav-button > span:not(.quick-nav-art):not(.quick-nav-count) { font-size: .88rem; white-space: normal; text-align: left; }
  .quick-nav-button:hover { background: #ffffff10; border-color: #ffffff40; }
  .quick-nav-button.active { color: #123d30; background: var(--sidebar-active); border-color: var(--sidebar-active); box-shadow: none; }
  .quick-nav-art { flex: 0 0 30px; width: 30px; height: 30px; }
  .quick-nav-count { position: static; margin-left: auto; min-width: 23px; flex-shrink: 0; background: #b83c51; color: #fff; border: 0; }
  .workspace { grid-column: 2; grid-row: 2; min-width: 0; padding: clamp(22px, 3vw, 40px); max-width: 1560px; width: 100%; justify-self: center; }
  #bell-call-alerts:not([hidden]) { grid-column: 2; grid-row: 2; position: sticky; align-self: start; z-index: 24; }
  .portal:has(#bell-call-alerts:not([hidden])) .workspace { padding-top: 160px; }
  h1, .section-heading h1 { color: var(--ink); font-size: clamp(1.65rem, 2.7vw, 2.35rem); letter-spacing: -.045em; line-height: 1.18; }
  h2, h3 { letter-spacing: -.02em; }
  .eyebrow { color: var(--forest); font-size: .7rem; letter-spacing: .14em; }
  .section-heading { align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 24px; }
  .section-heading > div { min-width: 0; }
  .back-button { min-height: 44px; padding: 8px 0; color: var(--muted); }
  .section-heading > .back-button { order: 3; margin-left: auto; font-size: .8rem; }
  .view-intro, .form-help, .subtitle { color: var(--muted); line-height: 1.55; }
  .primary-button { background: var(--action); color: var(--action-ink); border: 1px solid var(--action); box-shadow: none; border-radius: 9px; min-height: 48px; }
  .primary-button:hover { background: var(--action); filter: brightness(1.1); }
  .secondary-button, .small-button, .status-filter, .modal-close, .bellman-note-task, .queue-move-task {
    background: var(--surface); color: var(--forest); border: 1px solid var(--line); box-shadow: none; border-radius: 9px; min-height: 44px; }
  .small-button { padding: 8px 10px; }
  .secondary-button:hover, .small-button:hover { background: var(--selected); border-color: var(--forest); }
  .secondary-button:disabled, button:disabled { cursor: default; opacity: .58; }
  input, textarea, select { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
  input:focus, textarea:focus, select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px #409c6a25; }
  input[type="checkbox"], input[type="radio"] { accent-color: var(--action); }
  .task-modal, .modal-card, .role-fieldset, .task-type-option, .luggage-location-options label, .luggage-stay-options label,
  .settings-toggle, .notification-device-card, .admin-user-card { background: var(--surface); color: var(--ink); border-color: var(--line); }
  .modal-backdrop { background: rgb(3 21 14 / 65%); }
  .modal-close { flex-shrink: 0; min-width: 44px; }
  .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
  .dashboard-button { position: relative; min-width: 0; min-height: 192px; padding: 22px; overflow: hidden; background: var(--surface);
    color: var(--ink); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
  .dashboard-button > .dashboard-art { position: absolute; right: 12px; bottom: 16px; margin: 0; width: 42%; height: 118px; opacity: 1; filter: none; }
  .dashboard-button > strong, .dashboard-button > small { position: relative; z-index: 1; max-width: 58%; }
  .dashboard-button > strong { order: -1; margin-bottom: auto; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.18; }
  .dashboard-button > small { margin-top: 26px; font-size: .9rem; font-weight: 700; line-height: 1.45; }
  .dashboard-button:not(:disabled):hover { background: var(--surface); border-color: var(--forest); box-shadow: var(--shadow); transform: translateY(-2px); }
  .admin-panel, .staff-task-detail, .laundry-column, .laundry-due-preview, .new-task-launch, .feature-card,
  .package-board-column, .package-toolbar, .package-launch-bar, .package-quick-checkin, .package-stats > div,
  .luggage-stats > div, .ribbit-shop-section, .ribbit-reward-card, .ribbit-config-grid .ribbit-master-toggle,
  .ribbit-reward-photo-preview, .checklist-summary, .bell-performance-summary,
  .schedule-day, .schedule-editor-day, .bell-schedule-editor-day { background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 12px; box-shadow: none; }
  .new-task-launch { padding: 18px 20px; margin-bottom: 22px; }
  .task-tabs, .staff-detail-tabs, .admin-tabs, .checklist-period-tabs { min-width: 0; max-width: 100%; overflow-x: auto; flex-wrap: nowrap;
    overscroll-behavior-inline: contain; scrollbar-width: thin; border-color: var(--line); padding-bottom: 3px; }
  .task-tab, .my-task-tab, .luggage-tab, .admin-tab { flex: 0 0 auto; min-height: 48px; white-space: nowrap; color: var(--muted); }
  .task-tab.active, .my-task-tab.active, .luggage-tab.active, .admin-tab.active { background: var(--selected); color: var(--forest); border-color: var(--forest); }
  .task-tab span, .my-task-tab span, .luggage-tab span, .role-badge { color: var(--forest); background: var(--selected); }
  .status-filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .status-filter { padding: 8px 14px; min-height: 44px; }
  .status-filter.active { background: var(--action); color: var(--action-ink); border-color: var(--action); }
  .task-item, .luggage-item, .laundry-card, .package-card, .bellman-note-inbox-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; padding: 18px; }
  .task-item { gap: 14px; }
  .task-item.accepted { background: var(--surface); border-color: #6da88a; }
  .task-item.in-progress, .task-item.timer-warning { background: var(--surface); border-color: #bb8c35; }
  .task-item.timer-overdue { background: var(--surface); border-color: #d45e6b; box-shadow: inset 3px 0 #d45e6b; }
  .task-item.urgent { border-left: 5px solid #d45e6b; }
  .task-item.vip-task { background: var(--surface); border-color: #9374bd; box-shadow: inset 4px 0 #9374bd; }
  .task-description { font-size: 1rem; line-height: 1.4; }
  .task-notes { color: var(--muted); font-style: normal; line-height: 1.5; }
  .task-meta { gap: 7px 12px; font-size: .8rem; line-height: 1.5; }
  .task-actions { flex-wrap: wrap; gap: 7px; }
  .task-actions button { min-height: 44px; border-radius: 8px; }
  .task-status-icon { background: var(--surface-soft); border-color: var(--line); color: var(--forest); }
  .task-status-icon.accepted-icon { background: var(--action); color: var(--action-ink); border-color: var(--action); }
  .task-empty, .laundry-empty { background: var(--surface-soft); color: var(--muted); border: 1px dashed var(--line); }
  .staff-layout { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.7fr); gap: 18px; align-items: start; }
  .staff-list { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; }
  .staff-member { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 16px; min-height: 90px; }
  .staff-member.active, .task-type-option.selected, .luggage-location-options label:has(input:checked), .luggage-stay-options label:has(input:checked) { background: var(--selected); border-color: var(--forest); box-shadow: inset 3px 0 var(--forest); }
  .staff-member small { color: var(--muted); }
  .staff-task-detail { padding: 20px; }
  .bellman-note-compose-form { background: var(--surface); border-color: var(--line); }
  .bellman-notes-list { max-height: 72dvh; overflow-y: auto; overscroll-behavior-block: contain; scrollbar-width: thin; padding: 2px 5px 12px 2px; }
  .bellman-note-inbox-card.unread { background: var(--surface); border-color: var(--line); border-left: 4px solid #c08e32; box-shadow: none; }
  .bellman-note-inbox-text { padding: 4px 0 12px; background: transparent; color: var(--ink); line-height: 1.6; }
  .bellman-note-replies { border-color: var(--line); margin-left: 12px; }
  .bellman-note-reply { background: var(--surface-soft); padding: 14px; }
  .bellman-note-reply-form { gap: 12px; }
  .bellman-note-reply-form textarea { min-height: 70px; }
  .luggage-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .luggage-item { min-width: 0; padding: 15px; }
  .luggage-ticket, .laundry-ticket { background: var(--surface-soft); border-color: var(--line); color: var(--forest); }
  .luggage-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .luggage-actions button { min-height: 48px; padding: 8px 5px; white-space: normal; font-size: .8rem; }
  .luggage-work-lock { background: var(--warning-surface); color: var(--ink); border-color: #a98a43; }
  .luggage-work-lock.mine { background: var(--selected); color: var(--ink); border-color: var(--forest); }
  .laundry-column { padding: 16px; }
  .laundry-column.out-column, .laundry-column.returned-column { background: var(--surface-soft); }
  .ribbit-balance-button { background: var(--surface-soft); color: var(--ink); border-color: var(--line); box-shadow: none; min-height: 44px; }
  .ribbit-hero { background: var(--selected); border-color: var(--line); box-shadow: none; }
  .ribbit-hero span, .ribbit-hero small, .ribbit-reward-cost, .ribbit-admin-balance { color: var(--ink); }
  .ribbit-reward-photo { background: var(--surface-soft); border-color: var(--line); }
  .message.error { color: var(--error); background: var(--error-surface); }
  .message.success { color: var(--success); background: var(--selected); }
  .task-timer { color: var(--ink); }
  .timer-warning .task-timer { color: #92600c; }
  .timer-overdue .task-timer { color: var(--error); }
  .navigation-toggle, .mobile-navigation, .navigation-scrim { display: none; }
  .theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; }
  [data-theme-icon] { font-size: 1.25rem; line-height: 1; }
}
@media screen and (min-width: 600px) and (max-width: 1000px) {
  :root { --rail: 124px; }
  .quick-nav { padding: 14px 8px; gap: 5px; }
  .quick-nav-button { flex-direction: column; gap: 4px; min-height: 68px; padding: 8px 4px; position: relative; }
  .quick-nav-button > span:not(.quick-nav-art):not(.quick-nav-count) { font-size: .75rem; text-align: center; }
  .quick-nav-count { position: absolute; right: 7px; top: 4px; }
  .brand-row { flex-direction: column; padding: 3px 0 15px; gap: 0; }
  .brand-row strong { font-size: 1.12rem; }
  .brand-row .brand-art { width: 38px; height: 38px; flex-basis: 38px; }
  .portal-header { padding: 12px 16px; }
  .workspace { padding: 24px 20px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .dashboard-button { min-height: 178px; padding: 18px; }
  .dashboard-button > .dashboard-art { height: 100px; }
  .luggage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-layout { grid-template-columns: 1fr; }
  .staff-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-theme-label] { display: none; }
}
@media screen and (min-width: 600px) and (max-width: 720px) {
  .luggage-list { grid-template-columns: 1fr; }
  .dashboard-button strong { font-size: 1rem; }
  .dashboard-button { padding: 14px; }
  .dashboard-button > .dashboard-art { height: 82px; right: 5px; bottom: 12px; }
  .account-row { gap: 6px; font-size: .75rem; }
}
@media screen and (max-width: 599px) {
  :root { --rail: 216px; }
  .portal { display: block; }
  .portal-header { min-height: 66px; padding: 10px 12px; gap: 8px; }
  .navigation-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; }
  .account-row { flex: 1; gap: 6px; font-size: .75rem; justify-content: flex-end; }
  .account-row > button { min-height: 42px; font-size: .72rem; padding: 7px 8px; }
  #signed-in-email { max-width: 100px; font-size: .76rem; }
  .header-feedback-button { display: none; }
  .shift-summary-strip { display: none; }
  .portal-header .theme-toggle { min-width: 44px; }
  [data-theme-label] { display: none; }
  .quick-nav { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); transform: translateX(-105%); transition: transform .15s ease; z-index: 45; }
  .navigation-open .quick-nav { transform: translateX(0); }
  .navigation-open .navigation-scrim { display: block; position: fixed; inset: 0; background: rgb(0 15 8 / 45%); z-index: 40; border: 0; }
  .quick-nav .brand-row { flex-direction: row; }
  .workspace { padding: 24px 14px 100px; }
  .section-heading { gap: 10px; margin-bottom: 18px; }
  .section-heading > .back-button { order: 3; font-size: .74rem; }
  h1, .section-heading h1 { font-size: 1.8rem; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .dashboard-button { min-height: 126px; padding: 18px; }
  .dashboard-button > .dashboard-art { width: 38%; height: 108px; bottom: 9px; }
  .dashboard-button strong { font-size: 1.2rem; }
  .dashboard-button small { margin-top: 8px; font-size: .9rem; }
  .staff-layout { grid-template-columns: 1fr; }
  .staff-list { grid-template-columns: 1fr; }
  .task-item { grid-template-columns: auto minmax(0, 1fr); padding: 15px; gap: 10px; }
  .task-actions, #my-task-list .task-actions { grid-column: 1 / -1; width: 100%; display: flex; flex-wrap: wrap; }
  .task-actions > button { flex: 1 1 110px; min-height: 48px; }
  .task-status-icon { width: 28px; height: 28px; }
  .task-meta { font-size: .78rem; }
  .task-launch-actions, .luggage-launch-actions { display: flex; flex-wrap: wrap; width: 100%; }
  .task-launch-actions > button, .luggage-launch-actions > button { flex: 1 1 130px; }
  .bellman-note-compose-form, .bellman-note-reply-form { grid-template-columns: 1fr; }
  .bellman-note-compose-form button, .bellman-note-reply-form button { width: 100%; min-height: 48px; }
  .bellman-note-inbox-card { padding: 15px; }
  .bellman-note-inbox-meta { font-size: .8rem; }
  .bellman-note-replies { margin-left: 2px; padding-left: 10px; }
  .bellman-notes-list { max-height: 76dvh; }
  .luggage-list { grid-template-columns: 1fr; }
  .luggage-stats { gap: 7px; }
  .luggage-stats > div { padding: 12px 8px; }
  .luggage-stats > div strong { font-size: 1.4rem; }
  .luggage-stats > div span { font-size: .65rem; }
  .luggage-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-modal { width: 100%; padding: 20px 16px; border-radius: 14px; max-height: calc(100dvh - 24px); }
  .modal-backdrop { padding: 12px; }
  .mobile-navigation { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); gap: 7px; box-shadow: 0 -4px 20px rgb(0 0 0 / 5%); }
  .mobile-shortcut { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; min-width: 0;
    border: 0; border-radius: 8px; padding: 5px 4px; background: transparent; color: var(--muted); font-size: .7rem; font-weight: 750; }
  .mobile-shortcut > span:first-child { font-size: 1.2rem; line-height: 1; }
  .mobile-shortcut.active, .mobile-shortcut[aria-expanded="true"] { color: var(--forest); background: var(--selected); }
  .package-board { grid-template-columns: 1fr; }
  /* Existing iOS package status navigation continues to own its active column. */
  .package-mobile-status-nav { top: 0; }
}
@media screen and (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .mobile-navigation, .navigation-toggle, .navigation-scrim, .theme-toggle { display: none !important; }
}
@media screen {
  #open-bell-schedule { grid-column: 1 / -1; min-height: 112px; }
  #open-bell-schedule > strong { margin-bottom: 0; }
  #open-bell-schedule > small { margin-top: 8px; }
  #open-bell-schedule > .dashboard-art { width: 64px; height: 64px; right: 26px; bottom: 24px; }
  .schedule-dashboard-art { background: var(--selected); color: var(--forest); }
  :root[data-theme="dark"] .timer-warning .task-timer { color: #f4d18c; }
  :root[data-theme="dark"] .package-direction-tab.active,
  :root[data-theme="dark"] .package-tab.active,
  :root[data-theme="dark"] .checklist-period-tab.active { color: var(--action-ink); background: var(--action); }
  .package-board, .laundry-board, .bell-schedule-display { min-width: 0; }
}
@media screen {
  .account-row { flex-direction: row; align-items: center; }
  .portal-header { flex-wrap: nowrap; align-items: center; }
  .quick-nav .brand-row { order: -1; }
  .sidebar-utilities { display: grid; gap: 8px; margin-top: auto; padding: 16px 0 4px; border-top: 1px solid #ffffff25; }
  .sidebar-utilities:empty { display: none; }
  .sidebar-utilities .small-button { color: var(--sidebar-ink); background: transparent; border-color: #ffffff35; min-height: 46px; }
  .sidebar-utilities .small-button:hover { background: #ffffff15; }
  .bellman-note-compose-form { grid-template-columns: minmax(0,1fr) auto; }
  .bellman-note-compose-form > label { grid-column: 1 / -1; }
  .bellman-note-compose-form > textarea { grid-column: 1; }
  .bellman-note-compose-form > button { grid-column: 2; }
  .schedule-view-toolbar, .schedule-day-card, .schedule-day-card > header { background: var(--surface); color: var(--ink); border-color: var(--line); }
  .section-heading::before { content: ''; flex: 0 0 78px; height: 74px; background: center / contain no-repeat; }
  #tasks-view .section-heading::before { background-image: url('images/mascot-task-cart.png'); }
  #my-tasks-view .section-heading::before, #bellman-notes-view .section-heading::before { background-image: url('images/mascot-my-tasks.png'); }
  #bell-staff-view .section-heading::before { background-image: url('images/mascot-bell-staff.png'); }
  #luggage-view .section-heading::before { background-image: url('images/mascot-luggage-storage.png'); }
  #laundry-view .section-heading::before { background-image: url('images/mascot-laundry.png'); }
  #package-view .section-heading::before { background-image: url('images/mascot-package.png'); }
  #front-desk-view .section-heading::before { background-image: url('images/mascot-front-desk.png'); }
  #admin-view .section-heading::before, #reports-view .section-heading::before, #bell-schedule-view .section-heading::before, #checklist-view .section-heading::before { content: none; }
}
@media screen and (max-width: 1000px) {
  .schedule-view-toolbar { grid-template-columns: minmax(0,1fr); }
  .schedule-view-toolbar > * { min-width: 0; width: 100%; }
  .schedule-view-toolbar .secondary-button { width: 100%; white-space: normal; }
}
@media screen and (max-width: 599px) {
  .portal-header { flex-wrap: nowrap; }
  .header-bellman-notes-button { font-size: 0 !important; }
  .header-bellman-notes-button::before { content: 'Notes'; font-size: .76rem; }
  .header-bellman-notes-button > span { font-size: .72rem; }
  #sidebar-utilities .header-feedback-button { display: inline-flex; }
  .section-heading::before { flex-basis: 54px; height: 56px; }
  .section-heading > .back-button { flex-basis: 100%; min-height: 30px; margin: 0; }
  .bellman-note-compose-form { grid-template-columns: minmax(0,1fr); }
  .bellman-note-compose-form > * { grid-column: 1 !important; }
}
@media screen {
  .section-heading { display: flex; }
}
@media screen and (max-width: 599px) {
  .account-row { min-width: 0; width: auto; margin-left: 0; }
  #signed-in-email { max-width: 78px; font-size: .72rem; }
}
@media screen {
  .laundry-service-contact, .package-direction-tabs, .package-search-scopes label,
  .package-record-button, .package-history-range, .daily-checklist-section,
  .checklist-item, .checklist-period-tabs, .schedule-admin-submenu,
  .schedule-shift-row, .schedule-settings-panel {
    background: var(--surface); color: var(--ink); border-color: var(--line);
  }
  .package-direction-tab { background: var(--surface); color: var(--muted); border-color: var(--line); }
  .package-direction-tab.active { background: var(--action); color: var(--action-ink); border-color: var(--action); }
  :root[data-theme="dark"] :is(.accept-task, .start-task, .complete-task, .queue-position,
    .package-barcode-icon, .package-notify-button span, .task-assignee-icon,
    .active-shift-badge, .schedule-admin-submenu-button.active, .schedule-combined-total,
    .schedule-today-pill, .package-mobile-status-tab.active) { background: var(--action); color: var(--action-ink); }
  :root[data-theme="dark"] :is(.accept-task, .start-task, .complete-task):hover { background: var(--action); color: var(--action-ink); filter: brightness(1.08); }
  :root[data-theme="dark"] .amenity-coming-soon { background: var(--selected); color: var(--ink); }
}
/* v1.75.1 — readable ticket lookup and compact, independently scrolling inventory. */
@media screen {
  .front-desk-bag-search-panel {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
  }
  .front-desk-bag-search-panel h2,
  .front-desk-bag-search-panel label { color: var(--ink); }
  .front-desk-bag-search-panel .form-help { color: var(--muted); }
  #front-desk-bag-search {
    background: var(--surface-soft);
    color: var(--ink);
    caret-color: var(--ink);
    border-color: var(--line);
  }
  #front-desk-bag-search::placeholder { color: var(--muted); opacity: 1; }
  .front-desk-search-result,
  .front-desk-search-result.active-task,
  .front-desk-search-result.completed,
  .front-desk-search-result.released {
    background: var(--surface-soft);
    color: var(--ink);
    border-color: var(--line);
  }
  .front-desk-search-result p { color: var(--ink); }
  .front-desk-search-empty { background: var(--surface-soft); color: var(--ink); border-color: var(--line); }
  .front-desk-search-empty p { color: var(--ink); }
  #luggage-list {
    max-height: min(64dvh, 720px);
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    align-content: start;
    align-items: start;
    padding: 2px 6px 10px 2px;
  }
}
@media screen and (max-width: 1000px) {
  #luggage-view .luggage-item {
    min-height: 0;
    gap: 9px;
    padding: 12px;
    border-radius: 11px;
  }
  #luggage-view .luggage-tag-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px 10px;
    min-height: 0;
    padding: 7px 9px;
    border-width: 1px;
    border-radius: 7px;
    text-align: left;
  }
  #luggage-view .luggage-tag-badge > span { font-size: .6rem; }
  #luggage-view .luggage-tag-list { display: flex; flex-wrap: wrap; gap: 4px 7px; }
  #luggage-view .luggage-tag-list strong {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    padding: 1px 4px;
    font-size: .88rem;
    line-height: 1.3;
  }
  #luggage-view .luggage-tag-list small { display: inline; font-size: .62rem; }
  #luggage-view .luggage-card-body { flex: 0 0 auto; }
  #luggage-view .luggage-card-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 10px; }
  #luggage-view .luggage-card-title h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
  #luggage-view .luggage-card-badges { gap: 4px; }
  #luggage-view .luggage-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .8rem; }
  #luggage-view .luggage-audit { margin-top: 7px; padding-top: 0; font-size: .7rem; line-height: 1.4; }
  #luggage-view .luggage-notes { margin: 7px 0 0; font-size: .8rem; }
  #luggage-view .luggage-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  #luggage-view .luggage-actions .primary-button,
  #luggage-view .luggage-actions .secondary-button {
    grid-column: auto;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 7px 5px;
    font-size: .76rem;
    white-space: normal;
  }
  #luggage-view .luggage-actions .primary-button:only-child,
  #luggage-view .luggage-actions .secondary-button:only-child { grid-column: 1 / -1; }
  #luggage-list { max-height: 60dvh; gap: 10px; }
  .front-desk-bag-search-form > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front-desk-bag-search-form input { grid-column: 1 / -1; }
  .front-desk-bag-search-form button { min-width: 0; min-height: 44px; }
  #front-desk-view .task-launch-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  #front-desk-view .task-launch-actions > button { width: 100%; min-width: 0; min-height: 44px; }
  #front-desk-view .task-launch-actions > .primary-button { grid-column: 1 / -1; }
}

@media screen {
  .front-desk-panel.amenity-manager-teaser { background: var(--surface-soft); color: var(--ink); }
  .amenity-manager-teaser p { color: var(--muted); }
}

/* v1.76: optional Bellman Note photos, compact in both appearance modes. */
@media screen {
  .note-photo-picker { min-width: 0; grid-column: 1 / -1; }
  .note-photo-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .note-photo-tools button { width: auto; min-width: 0; min-height: 44px; padding: 9px 14px; }
  .note-photo-help { margin: 6px 0 0; color: var(--muted); font-size: .78rem; }
  .note-photo-preview { display: block; max-width: 100%; max-height: 130px; margin-top: 9px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }
  .bellman-note-compose-form > .note-photo-picker { grid-row: 3; }
  .bellman-note-compose-form > #post-bellman-note { grid-column: 2; grid-row: 2; }
  .bellman-note-photo { display: grid; gap: 4px; width: fit-content; max-width: 100%; color: var(--forest); font-size: .78rem; }
  .bellman-note-photo img { display: block; max-width: 100%; width: auto; max-height: 170px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }
  .bellman-note-inbox-actions { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .bellman-note-inbox-actions button { min-height: 44px; }
  #bellman-note-form > .note-photo-picker { margin-top: 12px; }
}
@media screen and (max-width: 599px) {
  .bellman-note-compose-form > .note-photo-picker { grid-row: auto; }
  .bellman-note-compose-form > #post-bellman-note { grid-column: 1; grid-row: auto; }
  .note-photo-tools button { width: auto; }
}
