:root {
  color-scheme: light;
  --forest: #285c37;
  --forest-dark: #1d472a;
  --ink: #213128;
  --muted: #68796d;
  --line: #d8e4da;
  --cream: #fbfdf9;
  --error: #a72f2f;
  --success: #236a3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.9), transparent 28rem),
    linear-gradient(145deg, #edf7e8, #cfe6cc);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.card {
  width: min(100%, 430px);
  padding: 38px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(37, 75, 47, .18);
}

.logo {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 10px 22px rgba(40, 92, 55, .22);
  font-size: 48px;
}

h1 {
  margin: 0;
  color: var(--forest-dark);
  font-size: clamp(1.85rem, 7vw, 2.2rem);
  line-height: 1.15;
  text-align: center;
}

.subtitle {
  margin: 8px 0 28px;
  color: var(--muted);
  text-align: center;
}

label {
  display: block;
  margin: 0 0 7px;
  font-size: .9rem;
  font-weight: 700;
}

input, textarea {
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input { min-height: 50px; }
textarea { min-height: 88px; resize: vertical; }

input:focus, textarea:focus {
  border-color: #4c945f;
  box-shadow: 0 0 0 4px rgba(76, 148, 95, .14);
}

.password-row { position: relative; }
.password-row input { padding-right: 66px; }

.show-password {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 36px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
}

.primary-button, .secondary-button {
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .1s, background .15s;
}

.primary-button {
  border: 0;
  background: var(--forest);
  color: white;
}

.primary-button:hover { background: var(--forest-dark); }
.primary-button:active, .secondary-button:active { transform: scale(.985); }
.primary-button:disabled { cursor: wait; opacity: .68; }

.secondary-button {
  border: 2px solid var(--forest);
  background: white;
  color: var(--forest);
}

.link-button {
  display: block;
  margin: 17px auto 0;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}

.link-button:hover { text-decoration: underline; }

.message {
  display: none;
  margin: 16px 0 0;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: .88rem;
  line-height: 1.4;
  text-align: center;
}

.message.error {
  display: block;
  background: #fff0f0;
  color: var(--error);
}

.message.success {
  display: block;
  background: #edf9f0;
  color: var(--success);
}

.portal {
  width: min(100%, 980px);
  min-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(37, 75, 47, .18);
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfb;
}

.brand-row, .account-row { display: flex; align-items: center; gap: 10px; }
.brand-row span { font-size: 1.7rem; }
.brand-row strong { color: var(--forest-dark); font-size: 1.15rem; }
.account-row { color: var(--muted); font-size: .82rem; }

.small-button, .back-button, .task-tab {
  border: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 750;
  cursor: pointer;
}

.small-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; }
.workspace { padding: clamp(28px, 5vw, 52px); }
.workspace > h1 { text-align: left; }
.eyebrow {
  margin: 0 0 7px;
  color: var(--forest);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .16em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.dashboard-button {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 25px;
  border: 2px solid #d7e5d8;
  border-radius: 18px;
  background: linear-gradient(145deg, #f7fbf5, #eaf5e7);
  color: var(--forest-dark);
  text-align: left;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}

.dashboard-button:not(:disabled):hover {
  transform: translateY(-3px);
  border-color: #75a781;
  box-shadow: 0 12px 25px rgba(37,75,47,.1);
}

.dashboard-button:disabled { opacity: .62; cursor: default; }
.dashboard-button > span { margin-bottom: auto; font-size: 3rem; }
.dashboard-button strong { font-size: 1.45rem; }
.dashboard-button small { margin-top: 5px; color: var(--muted); }

.section-heading { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 26px; }
.section-heading h1 { text-align: left; }
.section-heading .eyebrow { margin-top: 3px; }
.back-button { padding: 8px 0; white-space: nowrap; }

.new-task-launch { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border-radius: 15px; background: #f1f7ef; }
.new-task-launch > div { display: grid; gap: 3px; }
.new-task-launch strong { color: var(--forest-dark); }
.new-task-launch span { color: var(--muted); font-size: .85rem; }
.new-task-launch .primary-button { width: auto; min-width: 145px; }

body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(22, 42, 28, .58); backdrop-filter: blur(4px); }
.task-modal { width: min(100%, 760px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(15, 39, 22, .32); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.modal-header h2 { margin: 0; color: var(--forest-dark); font-size: 1.65rem; }
.modal-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.task-type-fieldset { margin: 0; padding: 0; border: 0; }
.task-type-fieldset legend { margin-bottom: 11px; color: var(--ink); font-size: .92rem; font-weight: 800; }
.task-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.task-type-option { min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border: 2px solid var(--line); border-radius: 14px; background: #fbfdfb; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.task-type-option:hover { transform: translateY(-2px); border-color: #8fab94; }
.task-type-option.selected { border-color: var(--forest); background: #edf6eb; box-shadow: 0 0 0 3px rgba(40, 92, 55, .08); }
.task-type-option strong { margin-top: auto; color: var(--forest-dark); line-height: 1.15; }
.task-type-option small { margin-top: 4px; color: var(--muted); line-height: 1.2; }
.task-type-icon { margin-bottom: 15px; font-size: 2rem; }
.task-type-svg { width: 40px; height: 40px; margin-bottom: 10px; fill: none; stroke: var(--forest); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.task-details { display: grid; gap: 2px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.room-move-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-fieldset { margin: 0 0 18px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbf7; }
.choice-fieldset legend { padding: 0 5px; color: var(--forest-dark); font-size: .9rem; font-weight: 800; }
.exclusive-options { display: flex; flex-wrap: wrap; gap: 10px; }
.exclusive-options label { display: flex; align-items: center; gap: 8px; flex: 1 1 180px; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.exclusive-options input { width: 20px; min-height: 20px; margin: 0; accent-color: var(--forest); }
.optional-label { color: var(--muted); font-size: .75rem; font-weight: 600; }
.modal-urgent { align-items: flex-start; margin: 1px 0 18px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fffaf6; }
.modal-urgent > span { display: grid; gap: 2px; }
.modal-urgent small { color: var(--muted); font-weight: 500; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions .primary-button, .modal-actions .secondary-button { width: auto; min-width: 128px; }

.task-form {
  display: grid;
  grid-template-columns: 1fr 190px 100px 125px;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border-radius: 15px;
  background: #f1f7ef;
}

.task-form input { margin-bottom: 0; }
.urgent-check { display: flex; align-items: center; gap: 8px; min-height: 50px; margin: 0; cursor: pointer; }
.urgent-check input { width: 20px; min-height: 20px; margin: 0; accent-color: #bd342d; }
.task-form .primary-button { min-height: 50px; }

.task-tabs { display: flex; gap: 8px; margin: 25px 0 14px; border-bottom: 1px solid var(--line); }
.task-tab, .my-task-tab, .luggage-tab { padding: 11px 13px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; }
.task-tab.active, .my-task-tab.active, .luggage-tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.task-tab span, .my-task-tab span, .luggage-tab span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; border-radius: 20px; background: #e6efe6; font-size: .72rem; }

.status-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 15px; }
.status-filter { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .82rem; font-weight: 750; cursor: pointer; }
.status-filter:hover { border-color: #8fab94; color: var(--forest); }
.status-filter.active { border-color: var(--forest); background: var(--forest); color: white; }

.task-list { display: grid; gap: 11px; }
.task-empty { padding: 45px 20px; color: var(--muted); text-align: center; border: 2px dashed var(--line); border-radius: 14px; }
.task-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.task-item.urgent { border-left: 5px solid #c33c34; }
.task-item.accepted { background: #f8fcf7; }
.task-item.in-progress { border-color: #d6a84d; background: #fffaf0; box-shadow: 0 4px 14px rgba(145, 103, 29, .08); }
.task-item.timer-warning { border-color: #e2a44e; background: #fff3df; }
.task-item.timer-overdue { border-color: #d6655e; background: #ffe6e3; box-shadow: 0 4px 14px rgba(157, 50, 43, .1); }
.task-item.completed { opacity: .68; }
.task-item.completed .task-description { text-decoration: line-through; }
.task-status-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #79a783; border-radius: 50%; background: white; color: var(--forest); font-weight: 900; }
.task-status-icon { color: #91a998; border-color: #b8cabb; }
.task-status-icon.accepted-icon { color: white; border-color: var(--forest); background: var(--forest); }
.task-status-icon.in-progress-icon { color: white; border-color: #b77d16; background: #b77d16; }
.task-status-icon.completed-icon { color: white; border-color: #6f8775; background: #6f8775; }
.task-description { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.task-notes { margin: 6px 0 0; color: #526659; font-size: .84rem; font-style: italic; overflow-wrap: anywhere; }
.bellman-note-display { margin: 7px 0 0; padding: 7px 9px; border-left: 3px solid #d39b35; border-radius: 5px; background: rgba(255, 250, 232, .8); color: #684b15; font-size: .84rem; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.priority-pill { padding: 2px 7px; border-radius: 20px; background: #fff0ef; color: #a72f2f; font-weight: 800; }
.queue-position { padding: 2px 7px; border-radius: 20px; background: var(--forest); color: white; font-weight: 850; letter-spacing: .04em; }
.task-timer { color: var(--forest-dark); font-variant-numeric: tabular-nums; font-weight: 800; }
.accepted-pill { padding: 2px 7px; border-radius: 20px; background: #e5f3e6; color: var(--forest-dark); font-weight: 800; }
.in-progress-pill { padding: 2px 7px; border-radius: 20px; background: #fff0c9; color: #81570d; font-weight: 800; }
.completed-pill { padding: 2px 7px; border-radius: 20px; background: #e8eee9; color: #435b49; font-weight: 800; }
.task-day-heading { margin: 22px 0 2px; color: var(--forest-dark); font-size: 1rem; }
.task-day-heading:first-child { margin-top: 5px; }
.task-actions { display: flex; gap: 5px; }
.accept-task, .start-task, .complete-task, .unaccept-task, .back-to-queue-task, .cancel-task, .bellman-note-task, .queue-move-task { padding: 9px 12px; border-radius: 9px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.accept-task, .start-task, .complete-task { border: 0; background: var(--forest); color: white; }
.accept-task:hover, .start-task:hover, .complete-task:hover { background: var(--forest-dark); }
.unaccept-task, .back-to-queue-task { border: 1px solid #8fab94; background: white; color: var(--forest); }
.cancel-task { border: 0; background: transparent; color: #8a514e; }
.bellman-note-task, .queue-move-task { border: 1px solid #aabbaa; background: white; color: var(--forest); }
.bellman-note-task.has-note { border-color: #d39b35; background: #fff4d9; }
.queue-move-task { min-width: 38px; padding-inline: 10px; font-size: 1.05rem; }
.accept-task:disabled, .start-task:disabled, .complete-task:disabled, .unaccept-task:disabled, .back-to-queue-task:disabled, .cancel-task:disabled, .bellman-note-task:disabled, .queue-move-task:disabled { cursor: wait; opacity: .5; }
.note-modal { width: min(100%, 560px); }
.note-modal textarea { min-height: 130px; }

.view-intro { margin: -12px 0 24px; color: var(--muted); }
.staff-layout { display: grid; grid-template-columns: minmax(210px, 280px) minmax(0, 1fr); gap: 20px; align-items: start; }
.staff-list { display: grid; gap: 8px; }
.staff-member { display: grid; gap: 3px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.staff-member:hover { border-color: #8fab94; }
.staff-member.active { border-color: var(--forest); background: #edf6eb; box-shadow: inset 4px 0 var(--forest); }
.staff-member strong { color: var(--forest-dark); overflow-wrap: anywhere; }
.staff-member span { color: var(--muted); font-size: .8rem; font-weight: 750; }
.staff-member small { color: #81570d; overflow-wrap: anywhere; }
.staff-task-detail { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #f8fbf7; }
.staff-detail-heading { margin-bottom: 14px; }
.staff-detail-heading h2 { margin: 0; color: var(--forest-dark); font-size: 1.3rem; overflow-wrap: anywhere; }

.coming-soon {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  padding: 17px;
  border-radius: 13px;
  background: #f0f7ee;
  text-align: left;
}

.coming-soon > span { font-size: 2rem; }
.coming-soon p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }

.password-change-card .eyebrow { text-align: center; }
.admin-dashboard-button { border-color: #c9b16d; background: linear-gradient(145deg, #fffdf5, #f6efd8); }
.admin-panel { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbf7; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.admin-panel-heading h2 { margin: 0; color: var(--forest-dark); font-size: 1.3rem; }
.admin-user-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.admin-user-form .role-fieldset, .admin-user-form .form-help, .admin-user-form > button { grid-column: 1 / -1; }
.role-fieldset { margin: 0 0 15px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.role-fieldset legend { padding: 0 5px; color: var(--forest-dark); font-size: .86rem; font-weight: 800; }
.role-options { display: flex; flex-wrap: wrap; gap: 9px; }
.role-options label { display: flex; align-items: center; gap: 7px; margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #f9fcf8; cursor: pointer; }
.role-options input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--forest); }
.form-help { margin: -2px 0 16px; color: var(--muted); font-size: .82rem; }
.admin-user-form > .primary-button { width: auto; justify-self: end; min-width: 155px; }
.admin-user-list { display: grid; gap: 12px; }
.admin-user-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.admin-user-summary { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.admin-user-summary h3 { margin: 0; color: var(--forest-dark); }
.admin-user-summary p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.role-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.role-badge { padding: 3px 8px; border-radius: 999px; background: #e8f1e7; color: var(--forest-dark); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.role-badge.admin { background: #fff0c9; color: #79520c; }
.admin-user-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-user-editor .role-fieldset, .admin-user-editor .temporary-password-field, .admin-user-actions { grid-column: 1 / -1; }
.temporary-password-field { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.temporary-password-field label { margin: 0; }
.temporary-password-field input[type="password"] { margin-bottom: 12px; }
.temporary-password-field .require-change-label { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; white-space: nowrap; }
.temporary-password-field .require-change-label input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--forest); }
.admin-user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-user-actions button { width: auto; min-height: 42px; padding: 9px 13px; }
.danger-button { border: 1px solid #c15d58; border-radius: 9px; background: white; color: #9d302b; font-weight: 800; cursor: pointer; }
.danger-button:disabled { cursor: default; opacity: .4; }
.admin-loading { padding: 28px; color: var(--muted); text-align: center; }


.luggage-launch { margin-bottom: 18px; }
.luggage-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.luggage-stats > div { display: grid; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbf7; }
.luggage-stats strong { color: var(--forest-dark); font-size: 1.65rem; line-height: 1; }
.luggage-stats span { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.luggage-toolbar { display: flex; gap: 12px; align-items: end; margin: 18px 0 4px; }
.luggage-search { width: min(100%, 560px); margin: 0; }
.luggage-search span { display: block; margin-bottom: 7px; color: var(--ink); font-size: .88rem; font-weight: 800; }
.luggage-search input { margin: 0; }
.luggage-list { display: grid; gap: 12px; }
.luggage-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.luggage-item.delivery-requested { border-color: #d7b96c; background: #fffbef; }
.luggage-item.released { opacity: .76; }
.luggage-tag-badge { min-height: 76px; display: grid; align-content: center; justify-items: center; padding: 10px; border: 2px dashed #91ad96; border-radius: 12px; background: #f2f8f1; text-align: center; }
.luggage-tag-badge span { color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.luggage-tag-badge strong { max-width: 78px; color: var(--forest-dark); font-size: 1.1rem; overflow-wrap: anywhere; }
.luggage-card-body { min-width: 0; }
.luggage-card-title { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.luggage-card-title h3 { margin: 0; color: var(--forest-dark); font-size: 1.08rem; overflow-wrap: anywhere; }
.luggage-status { padding: 3px 8px; border-radius: 999px; background: #e8f1e7; color: var(--forest-dark); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.luggage-status.delivery-requested { background: #fff0c9; color: #79520c; }
.luggage-status.released { background: #ecefec; color: #53645a; }
.luggage-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 7px; color: #526659; font-size: .82rem; font-weight: 700; }
.luggage-notes { margin: 9px 0 0; color: #526659; font-size: .84rem; font-style: italic; overflow-wrap: anywhere; }
.luggage-audit { margin-top: 8px; color: var(--muted); font-size: .75rem; }
.luggage-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.luggage-actions .primary-button, .luggage-actions .secondary-button { width: auto; min-width: 108px; min-height: 42px; padding: 9px 12px; }
.luggage-form-grid { display: grid; grid-template-columns: 1fr 150px; gap: 0 14px; }
.luggage-wide-field { grid-column: 1 / -1; }
.luggage-modal textarea { min-height: 100px; }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  .card { padding: 30px 22px; border-radius: 19px; }
  .portal { min-height: 100vh; border-radius: 0; }
  .page-shell { padding: 0; }
  .portal-header { align-items: flex-start; padding: 14px 17px; }
  .account-row { flex-direction: column; align-items: flex-end; gap: 4px; }
  #signed-in-email { max-width: 155px; overflow: hidden; text-overflow: ellipsis; }
  .workspace { padding: 27px 17px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-button { min-height: 165px; }
  .section-heading { display: block; }
  .section-heading .back-button { margin-bottom: 18px; }
  .new-task-launch { align-items: stretch; flex-direction: column; }
  .new-task-launch .primary-button { width: 100%; }
  .task-form { grid-template-columns: 1fr; }
  .task-item { grid-template-columns: auto 1fr; }
  .task-actions { grid-column: 2; flex-wrap: wrap; }
  .staff-layout { grid-template-columns: 1fr; }
  .staff-task-detail { padding: 13px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .task-modal { max-height: 94vh; padding: 20px 17px; border-radius: 20px 20px 0 0; }
  .task-type-grid { grid-template-columns: 1fr 1fr; }
  .task-type-option { min-height: 122px; }
  .room-move-fields { grid-template-columns: 1fr; gap: 0; }
  .admin-panel { padding: 16px; }
  .admin-user-form, .admin-user-editor { grid-template-columns: 1fr; }
  .admin-user-form .role-fieldset, .admin-user-form .form-help, .admin-user-form > button,
  .admin-user-editor .role-fieldset, .admin-user-editor .temporary-password-field, .admin-user-actions { grid-column: 1; }
  .temporary-password-field { grid-template-columns: 1fr; gap: 0; }
  .admin-user-summary { flex-direction: column; }
  .role-badges { justify-content: flex-start; }
  .admin-user-actions { justify-content: stretch; }
  .admin-user-actions button { flex: 1 1 100%; }
  .luggage-stats { grid-template-columns: 1fr 1fr; }
  .luggage-stats > div:last-child { grid-column: 1 / -1; }
  .luggage-item { grid-template-columns: 72px minmax(0, 1fr); gap: 11px; padding: 13px; }
  .luggage-tag-badge { min-height: 68px; }
  .luggage-actions { grid-column: 1 / -1; justify-content: stretch; }
  .luggage-actions .primary-button, .luggage-actions .secondary-button { flex: 1 1 140px; }
  .luggage-form-grid { grid-template-columns: 1fr; }
  .luggage-wide-field { grid-column: 1; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .primary-button, .modal-actions .secondary-button { width: 100%; }
}

@media (min-width: 481px) and (max-width: 840px) {
  .task-form { grid-template-columns: 1fr 180px; }
}

/* Luggage v2: per-bag tickets + role-aware inventory controls */
.luggage-count-first { padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbf7; }
.luggage-count-first label { font-size: 1rem; }
.luggage-count-first input { max-width: 150px; margin-bottom: 6px; }
.luggage-count-first small, .luggage-ticket-heading small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.luggage-ticket-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; align-items: baseline; margin-bottom: 9px; }
.luggage-ticket-heading > span { color: var(--ink); font-size: .9rem; font-weight: 800; }
.luggage-ticket-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-bottom: 14px; }
.luggage-ticket-field { display: grid; gap: 5px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.luggage-ticket-field span { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.luggage-ticket-field input { margin: 0; }
.luggage-tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.luggage-tag-list strong { display: inline-block; max-width: 82px; padding: 2px 5px; border-radius: 6px; background: #fff; font-size: .86rem; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .luggage-ticket-fields { grid-template-columns: 1fr 1fr; }
}


/* Luggage v3: resilient realtime rendering + check-in/check-out + compact grid */
.luggage-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.luggage-list > .task-empty { grid-column: 1 / -1; }
.luggage-item {
  display: flex;
  min-width: 0;
  min-height: 320px;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px;
}
.luggage-tag-badge { width: 100%; min-height: 82px; padding: 10px; }
.luggage-tag-list { gap: 5px; }
.luggage-tag-list strong { max-width: 100%; }
.luggage-card-body { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
.luggage-card-title { display: grid; gap: 8px; align-items: start; }
.luggage-card-title h3 { font-size: 1.12rem; }
.luggage-card-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.luggage-stay-badge { padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.luggage-stay-badge.check-in { background: #e7f2fb; color: #285d7a; }
.luggage-stay-badge.check-out { background: #f5e9da; color: #805122; }
.luggage-meta { display: grid; gap: 5px; margin-top: 9px; }
.luggage-audit { margin-top: auto; padding-top: 10px; }
.luggage-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; width: 100%; justify-content: stretch; }
.luggage-actions .primary-button, .luggage-actions .secondary-button { width: 100%; min-width: 0; min-height: 44px; padding: 9px 8px; }
.luggage-actions .primary-button:only-child { grid-column: 1 / -1; }
.luggage-stay-fieldset { margin: 0 0 16px; padding: 0; border: 0; }
.luggage-stay-fieldset legend { margin-bottom: 8px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.luggage-stay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.luggage-stay-options label { display: flex; min-height: 70px; align-items: center; gap: 10px; margin: 0; padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.luggage-stay-options label:has(input:checked) { border-color: #4c945f; background: #f2f8f1; }
.luggage-stay-options input { width: 20px; min-height: 20px; margin: 0; accent-color: var(--forest); }
.luggage-stay-options span { display: grid; gap: 2px; }
.luggage-stay-options strong { color: var(--forest-dark); }
.luggage-stay-options small { color: var(--muted); font-size: .76rem; font-weight: 650; }
@media (max-width: 840px) { .luggage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .luggage-list { grid-template-columns: 1fr; }
  .luggage-item { min-height: 0; }
  .luggage-stay-options { grid-template-columns: 1fr; }
}

/* Laundry v1: live intake, vendor pickup, returns, and admin schedule */
.task-completed-toolbar { margin-top: 0; margin-bottom: 16px; }
.laundry-launch { margin-bottom: 18px; }
.laundry-settings-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.laundry-settings-form > div small { display: block; margin: -11px 0 16px; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.laundry-settings-form .laundry-service-days,
.laundry-settings-form .form-help,
.laundry-settings-form > button { grid-column: 1 / -1; }
.laundry-settings-form > .primary-button { width: auto; justify-self: end; min-width: 190px; }
.laundry-service-days .role-options { gap: 7px; }
.laundry-service-days .role-options label { padding-inline: 11px; }
.laundry-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 18px; }
.laundry-column { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbf7; }
.laundry-column.out-column { background: #fffaf1; }
.laundry-column.returned-column { background: #f7f9f7; }
.laundry-column-heading { display: grid; gap: 12px; margin-bottom: 12px; }
.laundry-column-heading h2 { margin: 0; color: var(--forest-dark); font-size: 1.08rem; line-height: 1.2; }
.laundry-column-heading .eyebrow { margin-bottom: 3px; }
.laundry-estimate { min-height: 34px; margin: 6px 0 0; color: var(--muted); font-size: .77rem; font-weight: 650; line-height: 1.4; }
.laundry-batch-button { min-height: 44px; padding: 10px 12px; font-size: .82rem; }
.laundry-list { display: grid; gap: 10px; }
.laundry-empty { padding: 28px 12px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .82rem; line-height: 1.45; text-align: center; background: rgba(255,255,255,.55); }
.laundry-card { display: grid; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.laundry-card.out { border-color: #e1c989; }
.laundry-card.returned { opacity: .78; }
.laundry-ticket { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 2px dashed #91ad96; border-radius: 10px; background: #f2f8f1; }
.laundry-card.out .laundry-ticket { border-color: #d1ae55; background: #fff7df; }
.laundry-card.returned .laundry-ticket { border-color: #b8c6ba; background: #f2f4f2; }
.laundry-ticket span { color: var(--muted); font-size: .61rem; font-weight: 900; letter-spacing: .1em; }
.laundry-ticket strong { min-width: 0; color: var(--forest-dark); font-size: 1rem; overflow-wrap: anywhere; text-align: right; }
.laundry-card-content { min-width: 0; }
.laundry-card-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; align-items: center; }
.laundry-card-title h3 { min-width: 0; margin: 0; color: var(--forest-dark); font-size: 1rem; overflow-wrap: anywhere; }
.laundry-room-pill { padding: 3px 7px; border-radius: 999px; background: #e8f1e7; color: var(--forest-dark); font-size: .68rem; font-weight: 850; }
.laundry-timing { margin: 7px 0 0; color: #526659; font-size: .79rem; font-weight: 750; line-height: 1.4; }
.laundry-audit { margin: 6px 0 0; color: var(--muted); font-size: .71rem; line-height: 1.4; }
.laundry-card-actions { display: grid; }
.laundry-return-button { min-height: 44px; padding: 9px 10px; font-size: .8rem; overflow-wrap: anywhere; }
.laundry-form-grid { display: grid; grid-template-columns: 1fr 150px; gap: 0 14px; }
.laundry-form-wide { grid-column: 1 / -1; }
.laundry-due-preview { margin: 0 0 18px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbf7; color: #526659; font-size: .82rem; font-weight: 700; line-height: 1.4; }

@media (max-width: 840px) {
  .laundry-columns { grid-template-columns: 1fr; }
  .laundry-column-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .laundry-batch-button { width: auto; max-width: 220px; }
}

@media (max-width: 640px) {
  .laundry-settings-form { grid-template-columns: 1fr; }
  .laundry-settings-form .laundry-service-days,
  .laundry-settings-form .form-help,
  .laundry-settings-form > button { grid-column: 1; }
  .laundry-settings-form > .primary-button { width: 100%; justify-self: stretch; }
  .laundry-form-grid { grid-template-columns: 1fr; }
  .laundry-form-wide { grid-column: 1; }
  .laundry-column-heading { grid-template-columns: 1fr; }
  .laundry-batch-button { width: 100%; max-width: none; }
}

/* Operations polish v2: safer modals, dashboard roles, edit controls */
#signed-in-email {
  color: var(--forest-dark);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.15;
}

.luggage-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.luggage-actions .primary-button,
.luggage-actions .secondary-button {
  font-size: .78rem;
}
.luggage-actions .primary-button:only-child {
  grid-column: 1 / -1;
}

.danger-button {
  border-color: #d8b7b2;
  color: #8a382f;
  background: #fff8f7;
}
.danger-button:hover {
  border-color: #b97066;
  background: #fff1ef;
}

.laundry-card-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.laundry-card-actions .primary-button:only-child,
.laundry-card-actions .laundry-return-button {
  grid-column: 1 / -1;
}
.laundry-card-actions .secondary-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

@media (max-width: 560px) {
  #signed-in-email { font-size: .96rem; }
  .luggage-actions { grid-template-columns: 1fr; }
  .luggage-actions .primary-button,
  .luggage-actions .secondary-button { grid-column: 1; }
}

/* Replaceable artwork slots: drop matching PNGs into /public/images. */
.replaceable-art {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 1;
}
.replaceable-art img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.replaceable-art.art-loaded img { display: block; }
.replaceable-art.art-loaded .art-fallback { display: none; }
.login-art { width: 84px; height: 84px; font-size: 3.2rem; }
.brand-art { width: 34px; height: 34px; font-size: 1.7rem; }
.dashboard-button > .dashboard-art {
  width: 76px;
  height: 76px;
  margin-bottom: auto;
  font-size: 3rem;
}
.task-type-art {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  font-size: 2rem;
}


/* Operations v3: per-tag removal, pickup undo, and shared tablet notifications */
.luggage-ticket-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.luggage-ticket-field-heading label {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.luggage-ticket-remove {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #d8b7b2;
  border-radius: 999px;
  background: #fff8f7;
  color: #8a382f;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.luggage-ticket-remove:hover { background: #fff0ed; border-color: #b97066; }

.laundry-batch-actions {
  display: grid;
  gap: 7px;
}
.laundry-batch-actions .secondary-button { min-height: 44px; padding: 10px 12px; font-size: .82rem; }
.laundry-batch-actions .secondary-button:disabled { cursor: not-allowed; opacity: .48; }

.notification-intro { margin-top: -4px; }
.notification-settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.notification-settings-form input,
.notification-device-enroll input { margin-bottom: 6px; }
.notification-settings-form small,
.notification-device-enroll small {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}
.notification-settings-form > button {
  width: auto;
  min-width: 150px;
  margin-bottom: 25px;
}
.notification-device-enroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.notification-device-enroll > button {
  width: auto;
  min-width: 260px;
  margin-bottom: 25px;
}
.notification-device-heading { margin-top: 24px; }
.notification-device-heading h3 { margin: 0; color: var(--forest-dark); font-size: 1.05rem; }
.notification-device-list { display: grid; gap: 10px; }
.notification-device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.notification-device-card > div:first-child { min-width: 0; display: grid; gap: 3px; }
.notification-device-card strong { color: var(--forest-dark); }
.notification-device-card span,
.notification-device-card small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.notification-device-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.notification-device-actions button { width: auto; min-height: 38px; padding: 7px 10px; }
.notification-device-status { padding: 4px 8px; border-radius: 999px; font-size: .67rem !important; font-weight: 900; text-transform: uppercase; }
.notification-device-status.on { background: #e8f1e7; color: var(--forest-dark); }
.notification-device-status.off { background: #f1eeee; color: #715f5f; }

.push-toast {
  position: fixed;
  z-index: 10000;
  right: 18px;
  top: 18px;
  width: min(390px, calc(100% - 36px));
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid #7aa686;
  border-radius: 13px;
  background: #f7fbf5;
  color: var(--ink);
  box-shadow: 0 12px 35px rgba(33, 68, 43, .2);
  text-align: left;
  cursor: pointer;
}
.push-toast strong { color: var(--forest-dark); font-size: .95rem; }
.push-toast span { color: #526659; font-size: .82rem; line-height: 1.4; }

@media (max-width: 640px) {
  .notification-settings-form,
  .notification-device-enroll { grid-template-columns: 1fr; }
  .notification-settings-form > button,
  .notification-device-enroll > button {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
  }
  .notification-device-card { align-items: flex-start; flex-direction: column; }
  .notification-device-actions { width: 100%; justify-content: stretch; }
  .notification-device-actions button { flex: 1 1 auto; }
}
