:root {
  --ink: #152033;
  --muted: #68758a;
  --line: #dde6f2;
  --blue: #1f6feb;
  --green: #11a36a;
  --orange: #f08a24;
  --red: #df3b3b;
  --bg: #eef5f1;
  --card: #ffffff;
  --phone-width: 393px;
  --phone-height: 852px;
  --phone-frame: #101923;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 14px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 218, 145, 0.45), transparent 28%),
    linear-gradient(135deg, #edf7ef 0%, #eef4ff 52%, #fff8eb 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.mini-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(var(--phone-width), calc(100vw - 28px));
  height: min(var(--phone-height), calc(100vh - 28px));
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  border: 10px solid var(--phone-frame);
  border-radius: 42px;
  background: linear-gradient(180deg, #f8fbf9 0%, #eef5f1 100%);
  box-shadow:
    0 34px 90px rgba(25, 45, 71, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mini-shell::before {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 12;
  width: 82px;
  height: 19px;
  border-radius: 0 0 15px 15px;
  background: var(--phone-frame);
  box-shadow:
    -24px -1px 0 -7px #263442,
    24px -1px 0 -7px #263442;
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.mini-shell::after {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 12;
  width: 118px;
  height: 4px;
  border-radius: 999px;
  background: rgba(16, 25, 35, 0.86);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.mini-hero {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 30px 16px 13px;
  border-radius: 0 0 24px 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 80, 64, 0.92), rgba(31, 111, 235, 0.88)),
    url("data:image/svg+xml,%3Csvg width='160' height='80' viewBox='0 0 160 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.18'%3E%3Cpath d='M0 60C40 20 70 90 120 30s70 10 90 35'/%3E%3Cpath d='M-20 20C30 70 90 0 170 44'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: 0 18px 50px rgba(35, 68, 105, 0.18);
}

.eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
}

.mini-hero h1 {
  margin: 8px 0 5px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.mini-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.pms-link,
.primary-btn,
.secondary-btn,
.icon-btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.pms-link {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #153057;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mini-list-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 10px;
  border: 1px solid rgba(213, 224, 237, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(29, 54, 86, 0.06);
}

.mini-list-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.mini-list-filter select,
.mini-list-filter input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.mini-alert-strip {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 5px;
  margin: 7px 10px 0;
}

.mini-shell:has([data-panel="roomStatus"].active) .mini-hero,
.mini-shell:has([data-panel="roomStatus"].active) .mini-alert-strip,
.mini-shell:has([data-panel="futureStatus"].active) .mini-hero,
.mini-shell:has([data-panel="futureStatus"].active) .mini-alert-strip {
  display: none;
}

.mini-shell:has([data-panel="roomStatus"].active) main,
.mini-shell:has([data-panel="futureStatus"].active) main {
  padding-top: 10px;
}

.alert-pill {
  position: relative;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.alert-pill::after {
  position: absolute;
  right: 6px;
  top: 7px;
  color: #8aa0b8;
  content: "›";
  font-size: 13px;
  font-weight: 800;
}

.alert-pill:active {
  transform: scale(0.98);
}

.alert-pill strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  line-height: 1;
}

.alert-pill span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  margin-top: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-pill small {
  display: none;
  margin-top: 2px;
  color: #8a97a8;
  font-size: 10px;
}

.mini-tabs {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 15px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  overflow: visible;
  padding: 7px 7px 9px;
  border: 1px solid rgba(213, 224, 237, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(29, 54, 86, 0.18);
  backdrop-filter: blur(14px);
}

.mini-tabs button {
  flex: 1 1 0;
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  padding: 7px 5px;
  border: 0;
  border-radius: 17px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
}

.mini-tabs button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 10px;
  background: #eef3f8;
  color: #40506a;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.mini-tabs button em {
  font-style: normal;
  line-height: 1;
}

.mini-tabs button.active {
  color: var(--blue);
  border-color: transparent;
  background: #edf5ff;
}

.mini-tabs button.active span {
  color: #fff;
  background: var(--blue);
}

.hidden {
  display: none !important;
}

main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 9px 12px 102px;
  scrollbar-width: none;
}

.mini-panel {
  display: none;
}

.mini-panel.active {
  display: block;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 10px;
}

[data-panel="dashboard"] .section-head {
  margin: 5px 0 6px;
}

[data-panel="dashboard"] .section-head h2 {
  font-size: 17px;
}

[data-panel="dashboard"] .section-head p {
  display: none;
}

.section-head h2,
.card h3 {
  margin: 0;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.primary-btn,
.secondary-btn {
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
}

.primary-btn {
  color: #fff;
  background: var(--blue);
}

.secondary-btn {
  color: var(--ink);
  background: #edf2f7;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.metric-card,
.card,
.task-card {
  border: 1px solid rgba(213, 224, 237, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(29, 54, 86, 0.08);
}

.metric-card {
  min-height: 50px;
  padding: 7px 4px;
  border-radius: 13px;
  text-align: center;
}

.metric-card strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.metric-card span,
.task-meta,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.metric-card span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.card {
  padding: 13px;
}

.room-status-card {
  margin-top: 6px;
  padding: 8px;
  border-radius: 16px;
}

.home-module-card {
  margin-top: 12px;
}

.home-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
}

.home-module-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 72px;
  padding: 8px 4px;
  border: 0;
  border-radius: 16px;
  color: #4b596d;
  background: transparent;
  cursor: pointer;
}

.home-module-item span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #37d1a0 0%, #1f6feb 82%);
  box-shadow: 0 8px 18px rgba(31, 111, 235, 0.18);
  font-size: 18px;
  font-weight: 900;
}

.home-module-item em {
  font-size: 12px;
  font-style: normal;
  line-height: 1.1;
}

.home-module-item small {
  position: absolute;
  right: 4px;
  top: 2px;
  padding: 1px 5px;
  border-radius: 999px;
  color: #fff;
  background: #ff6b6b;
  font-size: 9px;
  font-weight: 800;
}

.card-head-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-head-inline h3 {
  margin: 0;
}

.card-head-inline.compact {
  margin-bottom: 10px;
}

.card-head-inline p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

[data-panel="roomStatus"] .section-head {
  margin: 5px 0 4px;
}

[data-panel="roomStatus"] .section-head h2,
[data-panel="futureStatus"] .section-head h2 {
  font-size: 16px;
}

[data-panel="roomStatus"] .section-head p,
[data-panel="futureStatus"] .section-head p,
.room-status-card .card-head-inline p {
  display: none;
}

.room-status-card .card-head-inline {
  gap: 6px;
  margin-bottom: 7px;
}

.room-status-card .card-head-inline h3 {
  font-size: 13px;
}

.room-filter-tools {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.room-filter-tools select,
.room-filter-tools input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.room-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.room-summary-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px 5px;
  background: #f8fbff;
  color: #39465c;
  cursor: pointer;
  font-size: 10px;
}

.room-summary-pill strong {
  color: var(--ink);
}

.room-result-note {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.room-status-legend {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  margin: 0 0 6px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 3px 2px;
  border-radius: 8px;
  color: #4d5a6f;
  background: #f5f8fb;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(21, 32, 51, 0.08);
}

.legend-item.available i {
  background: #20b574;
}

.legend-item.occupied i {
  background: #3178f6;
}

.legend-item.reserved i {
  background: #f0a22a;
}

.legend-item.cleaning i {
  background: #8b67e8;
}

.legend-item.maintenance i {
  background: #ef5555;
}

.legend-item.out-of-service i {
  background: #6b7484;
}

.room-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.future-status-card {
  margin-top: 5px;
  padding: 8px;
  border-radius: 16px;
}

.future-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 7px;
}

.future-tools .full {
  grid-column: 1 / -1;
}

.future-tools label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.future-tools input,
.future-tools select {
  width: 100%;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.future-date-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 52px;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 5px;
  scroll-snap-type: x mandatory;
}

.future-date-strip button {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 5px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  color: #39465c;
  cursor: pointer;
  text-align: center;
  scroll-snap-align: start;
}

.future-date-strip button.active {
  border-color: rgba(31, 111, 235, 0.45);
  background: #eaf3ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.28);
}

.future-date-strip strong {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  line-height: 1;
}

.future-date-strip span,
.future-date-strip em {
  overflow: hidden;
  font-size: 9px;
  font-style: normal;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.future-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 2px 0 6px;
}

.future-summary-strip span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 10px;
  background: #f5f8fb;
  color: var(--muted);
  font-size: 9px;
}

.future-summary-strip strong {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  line-height: 1;
}

.future-summary-strip .available {
  background: #e8fbf1;
}

.future-summary-strip .occupied {
  background: #eaf3ff;
}

.future-summary-strip .reserved {
  background: #fff7df;
}

.future-summary-strip .maintenance {
  background: #fff0ef;
}

.future-summary-strip .out-of-service {
  background: #f1f3f6;
}

.future-result-note {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.future-calendar {
  --future-days: 15;
  display: block;
  overflow: auto;
  border: 1px solid #d8dde6;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.future-cal-row {
  display: grid;
  grid-template-columns: 76px repeat(var(--future-days), 72px);
  min-width: calc(76px + var(--future-days) * 72px);
}

.future-cal-row + .future-cal-row {
  border-top: 1px solid #dde2ea;
}

.future-cal-left,
.future-cal-date,
.future-cal-cell {
  min-height: 52px;
  border: 0;
  border-right: 1px solid #dde2ea;
  background: #fff;
}

.future-cal-left {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 4px;
  color: #5d6674;
  text-align: center;
}

.header-row {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(20, 32, 51, 0.08);
}

.month-cell {
  color: #fff;
  background: #1677ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.month-cell span {
  font-size: 13px;
}

.future-cal-date {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 5px 3px;
  background: #f8f8f8;
  color: #8c8f94;
  text-align: center;
}

.future-cal-date.today {
  color: #1677ff;
  border-bottom: 3px solid #1677ff;
  background: #fff;
}

.future-cal-date strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.future-cal-date span {
  font-size: 12px;
  line-height: 1;
}

.type-row .future-cal-left,
.type-row .future-cal-cell {
  background: #fbfcfe;
}

.type-name {
  cursor: pointer;
  font-size: 12px;
  line-height: 1.25;
}

.type-name strong {
  display: block;
  max-width: 66px;
  font-weight: 600;
}

.type-name span {
  color: #98a2b3;
  font-size: 10px;
}

.type-name.expanded {
  color: #1677ff;
  background: #eef6ff;
}

.room-row .future-cal-left {
  color: #343b48;
  background: #f6f7f9;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.future-cal-cell {
  display: grid;
  place-items: center;
  padding: 3px 4px;
  color: #a3a9b3;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
}

.future-cal-cell.remain {
  color: #a0a6b0;
  background: #fff;
  font-size: 13px;
}

.future-cal-cell.room-state {
  align-content: center;
  overflow: hidden;
  font-size: 11px;
  word-break: keep-all;
}

.future-cal-cell.room-state.available {
  color: transparent;
  background: #fff;
}

.future-cal-cell.room-state.occupied {
  color: #143042;
  background: #65bde3;
}

.future-cal-cell.room-state.reserved {
  color: #24320c;
  background: #a6cf4a;
}

.future-cal-cell.room-state.cleaning {
  color: #3c216d;
  background: #bd7af0;
}

.future-cal-cell.room-state.maintenance {
  color: #fff;
  background: #f06d6d;
}

.future-cal-cell.room-state.out-of-service {
  color: #fff;
  background: #6f7682;
}

.future-cal-cell.room-state small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.future-room-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.future-room-cell {
  display: grid;
  gap: 2px;
  min-height: 48px;
  overflow: hidden;
  padding: 5px 3px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background: #fff;
  color: #203049;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(29, 54, 86, 0.06);
}

.future-room-cell.available {
  background: linear-gradient(180deg, #e8fbf1 0%, #bff1d8 100%);
  border-color: #97e0bd;
}

.future-room-cell.occupied {
  background: linear-gradient(180deg, #eaf3ff 0%, #bfd7ff 100%);
  border-color: #9dc2ff;
}

.future-room-cell.reserved {
  background: linear-gradient(180deg, #fff7df 0%, #ffd995 100%);
  border-color: #ffc96d;
}

.future-room-cell.maintenance {
  background: linear-gradient(180deg, #fff0ef 0%, #ffbbbb 100%);
  border-color: #ff9898;
}

.future-room-cell.out-of-service {
  background: linear-gradient(180deg, #f1f3f6 0%, #c9d0da 100%);
  border-color: #aeb8c5;
}

.future-room-cell.cleaning {
  background: linear-gradient(180deg, #f2ebff 0%, #d8c7ff 100%);
  border-color: #c7b1ff;
}

.future-room-cell strong {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 13px;
  line-height: 1;
}

.future-room-cell span,
.future-room-cell em {
  overflow: hidden;
  font-size: 9px;
  font-style: normal;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-mini {
  height: 42px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  padding: 5px 4px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(29, 54, 86, 0.06);
  color: #203049;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.room-mini:active {
  transform: scale(0.96);
}

.room-mini.available {
  background: linear-gradient(180deg, #e8fbf1 0%, #bff1d8 100%);
  border-color: #97e0bd;
}

.room-mini.occupied {
  background: linear-gradient(180deg, #eaf3ff 0%, #bfd7ff 100%);
  border-color: #9dc2ff;
}

.room-mini.reserved {
  background: linear-gradient(180deg, #fff7df 0%, #ffd995 100%);
  border-color: #ffc96d;
}

.room-mini.cleaning {
  background: linear-gradient(180deg, #f2ebff 0%, #d8c7ff 100%);
  border-color: #c7b1ff;
}

.room-mini.maintenance {
  background: linear-gradient(180deg, #fff0ef 0%, #ffbbbb 100%);
  border-color: #ff9898;
}

.room-mini.out-of-service {
  background: linear-gradient(180deg, #f1f3f6 0%, #c9d0da 100%);
  border-color: #aeb8c5;
}

.room-mini header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  text-align: center;
}

.room-mini header strong {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1;
}

.room-mini header span,
.room-tags span {
  border-radius: 999px;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #39465c;
  font-size: 9px;
  line-height: 1.25;
}

.room-mini.maintenance header span,
.room-mini.out-of-service header span {
  color: #283143;
}

.room-mini p {
  display: none;
}

.room-tags,
.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.room-tags {
  display: none;
}

.room-actions {
  display: none;
  margin-top: 3px;
}

.room-actions button {
  border: 0;
  border-radius: 6px;
  padding: 2px 3px;
  background: #e9eef6;
  color: #39465c;
  cursor: pointer;
  font-size: 9px;
  line-height: 1.2;
}

.stack-list,
.task-board {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.task-board {
  grid-template-columns: 1fr;
}

.task-card {
  padding: 12px;
}

.task-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.task-card h3 {
  margin: 0;
  font-size: 15px;
}

.task-card p {
  margin: 8px 0;
  color: #39465c;
  font-size: 12px;
}

.status-chip {
  display: inline-flex;
  border: 0;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  cursor: default;
  font-size: 11px;
  white-space: nowrap;
}

.reminder-action-chip {
  cursor: pointer;
  font-weight: 800;
}

.status-chip.done {
  background: var(--green);
}

.status-chip.warn {
  background: var(--orange);
}

.status-chip.danger {
  background: var(--red);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.task-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: #eef3f8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.task-actions button.work-task-action {
  min-height: 46px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.task-meta {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.task-actions button.primary-action {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(42, 103, 255, 0.18);
}

.inventory-layout {
  gap: 8px;
}

.inventory-subtabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 8px;
  padding: 5px;
  border: 1px solid rgba(216, 226, 238, 0.9);
  border-radius: 16px;
  background: #f7fafc;
}

.inventory-subtabs button {
  min-height: 30px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #526172;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.inventory-subtabs button.active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 6px 16px rgba(29, 54, 86, 0.1);
}

.housekeeper-stock-entry {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 18px 14px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef7ff);
}

.housekeeper-stock-entry h3,
.housekeeper-stock-entry p { margin: 0; }
.housekeeper-stock-entry p { margin-top: 4px; color: #526172; font-size: 12px; line-height: 1.45; }
.housekeeper-stock-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px;
  background: #2563eb; color: #fff; font-size: 18px; font-weight: 900;
}
.housekeeper-stock-btn { grid-column: 1 / -1; min-height: 48px; font-size: 16px; }
.housekeeper-stock-tip { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff8e8; color: #76551a; font-size: 12px; line-height: 1.5; }
.housekeeper-request-card { padding: 12px; border: 1px solid #e1eaf3; border-radius: 14px; background: #fff; }
.housekeeper-request-card + .housekeeper-request-card { margin-top: 8px; }
.housekeeper-request-card header { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.housekeeper-request-card p { margin: 7px 0 3px; color: #475569; font-size: 12px; }
.housekeeper-request-card small { color: #94a3b8; font-size: 11px; }
.housekeeper-empty { padding: 24px 10px; color: #718096; text-align: center; font-size: 13px; }

.inventory-layout .card {
  padding: 10px;
  border-radius: 18px;
}

.inventory-layout .stack-list {
  gap: 6px;
  margin-top: 8px;
}

.inventory-record-head {
  display: grid;
  gap: 7px;
}

.inventory-record-head h3 {
  margin: 0;
}

.inventory-date-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.inventory-search {
  width: 100%;
  min-height: 32px;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.report-card {
  margin-top: 8px;
  padding: 10px;
  border-radius: 16px;
}

.report-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.report-section-head h3 {
  margin: 0;
  font-size: 14px;
}

.report-section-head span {
  color: var(--muted);
  font-size: 11px;
}

.report-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.report-metric-grid article {
  min-height: 48px;
  padding: 7px 5px;
  border: 1px solid rgba(214, 225, 238, 0.95);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  text-align: center;
}

.report-metric-grid strong {
  display: block;
  color: #102033;
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  line-height: 1.05;
}

.report-metric-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.report-row-list,
.report-timeline {
  display: grid;
  gap: 6px;
}

.report-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(220, 229, 240, 0.9);
  border-radius: 12px;
  background: #f8fbff;
}

.report-row span,
.report-row em,
.report-timeline span {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.report-row strong {
  color: #0f172a;
  font-size: 13px;
}

.report-row em {
  grid-column: 1 / -1;
}

.report-timeline article {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(220, 229, 240, 0.9);
  border-radius: 12px;
  background: #fff;
}

.report-timeline strong {
  color: #182334;
  font-size: 12px;
  line-height: 1.25;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 16px;
}

.contact-search {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.contact-group-strip {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.contact-group-strip button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(214, 225, 238, 0.95);
  border-radius: 999px;
  background: #f8fbff;
  color: #526172;
  font-size: 11px;
  font-weight: 800;
}

.contact-group-strip button.active {
  color: #fff;
  border-color: transparent;
  background: var(--blue);
}

.contact-list {
  display: grid;
  gap: 7px;
}

.contact-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(220, 229, 240, 0.95);
  border-radius: 14px;
  background: #fff;
}

.contact-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1f6feb, #37d1a0);
  font-size: 15px;
  font-weight: 900;
}

.contact-main {
  min-width: 0;
}

.contact-main header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-main strong {
  color: #132033;
  font-size: 13px;
}

.contact-main header span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf5ff;
  color: #1f6feb;
  font-size: 10px;
  font-weight: 800;
}

.contact-main p,
.contact-main em {
  display: block;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-actions a,
.contact-actions button {
  display: inline-flex;
  min-width: 42px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #eef3f8;
  color: #1f6feb;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.contact-actions button:disabled {
  color: #9aa8b8;
}

.work-proof-summary {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(214, 225, 238, 0.95);
  border-radius: 13px;
  background: #f8fbff;
}

.work-proof-summary strong {
  color: #122033;
  font-size: 17px;
}

.work-proof-summary span,
.work-proof-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.work-proof-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.work-proof-picker {
  position: relative;
  display: grid !important;
  min-height: 104px;
  align-content: center;
  justify-items: center;
  gap: 5px !important;
  padding: 16px 12px;
  border: 2px dashed rgba(31, 111, 235, 0.45);
  border-radius: 16px;
  background: #eef7ff;
  color: #1558a8 !important;
  cursor: pointer;
  text-align: center;
}

.work-proof-picker strong {
  font-size: 18px;
  font-weight: 900;
}

.work-proof-picker span {
  color: #52708f;
  font-size: 13px;
}

.work-proof-picker:active {
  background: #ddecff;
  transform: scale(0.99);
}

.work-proof-preview {
  display: grid;
  gap: 8px;
  min-height: 92px;
  align-items: center;
  justify-items: center;
  padding: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.65);
  border-radius: 14px;
  background: #fbfdff;
  text-align: center;
}

.work-proof-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.work-proof-preview strong {
  display: block;
  color: #102033;
  font-size: 12px;
}

.work-proof-preview span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.work-proof-note-input {
  font-size: 13px !important;
}

.work-proof-note-input textarea {
  min-height: 72px;
  font-size: 15px;
}

.work-proof-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e8;
  color: #7d5d1b;
  font-size: 13px;
}

.inventory-entry-form {
  display: grid;
  gap: 8px;
}

.inventory-entry-form textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  resize: none;
}

.inventory-parse-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 8px;
  border: 1px solid #e4ebf4;
  border-radius: 13px;
  background: #f8fbff;
  color: #526172;
  font-size: 11px;
  line-height: 1.35;
}

.inventory-entry-actions,
.inventory-example-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.inventory-example-row {
  grid-template-columns: 1fr 1fr;
}

.inventory-entry-actions button,
.inventory-example-row button {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
}

.inventory-example-row button {
  border: 0;
  color: #42526a;
  background: #eef3f8;
}

.secondary-btn.warn {
  color: #9a3412;
  background: #fff7ed;
}

.inventory-date-filter input {
  width: 100%;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.inventory-stock-row,
.inventory-record-row {
  padding: 8px 10px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(29, 54, 86, 0.055);
}

.inventory-stock-row header,
.inventory-record-row header {
  align-items: center;
  gap: 8px;
}

.inventory-stock-row p,
.inventory-record-row p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

.inventory-record-row .task-meta {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.25;
}

.inventory-record-row .task-actions {
  margin-top: 6px;
}

.inventory-record-row .task-actions button {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.inventory-request-main {
  font-weight: 800;
  color: #243247;
}

.inventory-request-detail {
  display: grid;
  gap: 3px;
  margin-top: 5px;
  color: #5b687a;
  font-size: 10.5px;
  line-height: 1.35;
}

.outbound-request-row {
  border-left: 3px solid #f59e0b;
}

.inventory-name-btn {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.inventory-advice-row {
  padding: 8px 10px;
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: none;
}

.inventory-advice-row p {
  margin: 0;
  color: #42526a;
  font-size: 11px;
  line-height: 1.45;
}

.urgent-stock {
  border-color: rgba(248, 113, 113, 0.34);
  background: #fffafa;
}

.stock-detail-history {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fbff;
  color: #27354a;
  font-size: 12px;
}

.stock-detail-history strong {
  color: var(--ink);
}

.stock-detail-history span {
  padding-top: 6px;
  border-top: 1px solid #e4ebf4;
  line-height: 1.45;
}

.mini-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 18px;
  background: rgba(18, 28, 45, 0.48);
}

.mini-modal.hidden,
.toast.hidden {
  display: none;
}

.mini-dialog {
  width: min(calc(var(--phone-width) - 22px), calc(100vw - 28px));
  max-height: min(78vh, calc(var(--phone-height) - 104px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(228, 235, 244, 0.92);
  border-radius: 24px 24px 28px 28px;
  background: #fff;
  box-shadow: 0 -18px 48px rgba(18, 28, 45, 0.24);
}

.dialog-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 10px;
}

.dialog-head h3 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.dialog-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.icon-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef3f8;
  font-size: 20px;
}

.dialog-grid {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 2px 10px;
}

.dialog-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.dialog-grid input,
.dialog-grid select,
.dialog-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}

.dialog-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

.mini-modal.detail-mode .dialog-actions .primary-btn {
  display: none;
}

.room-detail-grid {
  display: grid;
  gap: 6px;
}

.room-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #e8eef6;
  border-radius: 12px;
  background: #f8fbff;
  color: #27354a;
  font-size: 12px;
}

.room-detail-row span {
  color: var(--muted);
  white-space: nowrap;
}

.room-detail-row strong {
  text-align: right;
  word-break: break-word;
}

.room-detail-note {
  padding: 9px 10px;
  border-radius: 14px;
  background: #fff8e8;
  color: #65440d;
  font-size: 12px;
  line-height: 1.55;
}

.mobile-flow-card {
  position: relative;
  overflow: hidden;
}

.flow-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.flow-summary span {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 7px 5px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.flow-summary strong {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.mobile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.mobile-form .full {
  grid-column: 1 / -1;
}

.mobile-form input,
.mobile-form select,
.mobile-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.mobile-form textarea {
  resize: none;
}

.mobile-form button.full {
  width: 100%;
  min-height: 40px;
}

.picked-room-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbff;
}

.picked-room-line strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picked-room-line .secondary-btn {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 11px;
}

.booking-room-panel {
  position: absolute;
  inset: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(213, 224, 237, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(29, 54, 86, 0.22);
}

.booking-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.booking-room-head strong {
  font-size: 15px;
}

.booking-room-panel p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.booking-room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
  overflow: auto;
}

.booking-room-grid button {
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 7px 5px;
  border: 1px solid #dbe6f3;
  border-radius: 13px;
  background: #f8fbff;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

.booking-room-grid button.selected {
  border-color: var(--blue);
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.booking-room-grid strong {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
}

.booking-room-grid span,
.booking-room-grid em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-filter-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.order-filter-strip button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.order-filter-strip button.active {
  border-color: rgba(31, 111, 235, 0.35);
  background: #eaf3ff;
  color: var(--blue);
}

.order-board {
  gap: 8px;
  margin-top: 0;
}

.order-card {
  padding: 10px;
}

.order-card h3 {
  font-size: 14px;
}

.order-card p {
  margin: 6px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 30;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.22);
}

@media (max-width: 480px) {
  body {
    padding: 6px;
  }

  .mini-shell {
    width: min(var(--phone-width), calc(100vw - 12px));
    height: min(var(--phone-height), calc(100dvh - 12px));
    min-height: 0;
    border: 8px solid var(--phone-frame);
    border-radius: 38px;
    padding: 0;
  }

  .mini-hero,
  .card-head-inline {
    align-items: stretch;
  }

  .section-head {
    align-items: flex-start;
  }

  .mini-list-filter {
    grid-template-columns: 1fr 1fr;
  }

  .mini-alert-strip,
  .room-summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .room-mini-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .two-col,
  .task-board {
    grid-template-columns: 1fr;
  }
}
/* Large, readable task workflow controls */
.work-proof-album { position: relative; min-height: 48px; display: grid !important; align-content: center; justify-items: center; padding: 10px; border: 1px solid #c4d6e9; border-radius: 12px; color: #184d80; background: #f6faff; font-size: 16px !important; cursor: pointer; }
.work-proof-album input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.task-card:has(.work-task-action) h3 { font-size: 19px; line-height: 1.5; }
.task-card:has(.work-task-action) p, .task-card:has(.work-task-action) .task-meta { font-size: 15px; line-height: 1.65; }
.task-actions button.work-task-action { min-height: 52px; font-size: 17px; flex: 1 1 160px; }
.work-proof-summary span, .work-proof-note { font-size: 15px; line-height: 1.65; }
.work-proof-preview strong { font-size: 17px; }
.mini-modal:has(.work-proof-picker) button[type=submit] { min-height: 52px; font-size: 18px; }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid #2274d3; outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }

/* H5 task console refinement 2026-09-19. */
:root {
  --ink: #16233d;
  --muted: #718099;
  --line: #d9e4f1;
  --blue: #356fd1;
  --green: #16a875;
  --bg: #edf3f9;
  --card: rgba(255,255,255,.94);
  --soft-shadow: 0 10px 28px rgba(35, 64, 107, .1);
}
body { background: radial-gradient(circle at 15% -5%, rgba(111,214,196,.25), transparent 27%), radial-gradient(circle at 95% 0%, rgba(103,153,255,.22), transparent 32%), #edf3f9; }
.mini-shell { border-color: #111d31; background: linear-gradient(180deg, #f7faff 0%, #edf3f9 100%); box-shadow: 0 38px 100px rgba(29,53,90,.28), inset 0 0 0 1px rgba(255,255,255,.18); }
.mini-hero { background: linear-gradient(135deg, #172e5b 0%, #285cae 60%, #3183c9 100%); box-shadow: 0 16px 44px rgba(35,76,143,.22); }
.mini-hero h1 { letter-spacing: -.04em; }
.pms-link { color: #214d8c; box-shadow: 0 7px 16px rgba(25,50,94,.12); transition: transform .18s ease, box-shadow .18s ease; }
.pms-link:active { transform: translateY(1px); box-shadow: none; }
.mini-tabs { border: 1px solid rgba(217,228,241,.95); background: rgba(255,255,255,.84); box-shadow: 0 10px 24px rgba(35,64,107,.08); backdrop-filter: blur(14px); }
.mini-tabs button { border-radius: 14px; color: #71809a; transition: .18s ease; }
.mini-tabs button.active { background: linear-gradient(135deg, #e7f1ff, #eff8ff); color: #275cac; box-shadow: inset 0 0 0 1px #cfe0f5; }
.mini-panel { padding: 16px 13px 18px; }
.section-head h2 { color: #193563; letter-spacing: -.035em; }
.section-head p { color: #7b8ca5; }
.card, .metric-card, .task-card { border: 1px solid rgba(215,226,239,.96); border-radius: 20px; background: var(--card); box-shadow: var(--soft-shadow); }
.card { padding: 14px; }
.metric-card { background: linear-gradient(145deg, #fff, #f5f9ff); }
.metric-card strong { color: #1b427e; font-family: "Outfit", "Noto Sans SC", sans-serif; }
.home-module-item { border: 1px solid #dce7f3; border-radius: 16px; background: #fbfdff; transition: .18s ease; }
.home-module-item:hover { border-color: #bad2ee; background: #f1f7ff; transform: translateY(-2px); }
.room-status-card, .future-status-card { overflow: hidden; }
.room-summary-strip, .future-summary-strip { border-radius: 14px; background: #f1f6fc; }
.room-mini-card { border-radius: 15px; box-shadow: 0 6px 16px rgba(35,64,107,.07); transition: .18s ease; }
.room-mini-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(35,64,107,.13); }
.primary-btn, .secondary-btn { min-height: 42px; border-radius: 12px; font-weight: 800; transition: .18s ease; }
.primary-btn { background: linear-gradient(135deg, #356fd1, #214d9d); box-shadow: 0 8px 18px rgba(44,92,170,.2); }
.primary-btn:active, .secondary-btn:active { transform: translateY(1px); }
.secondary-btn { border-color: #d3e1f0; background: #f7faff; color: #315a96; }
.mobile-form input, .mobile-form select, .mobile-form textarea, .mini-list-filter input, .mini-list-filter select { border-color: #d7e3ef; border-radius: 12px; background: #fbfdff; }
.mobile-form input:focus, .mobile-form select:focus, .mobile-form textarea:focus, .mini-list-filter input:focus, .mini-list-filter select:focus { border-color: #6e9fe1; box-shadow: 0 0 0 4px rgba(74,124,201,.12); outline: 0; }
.task-card { padding: 14px; }
.task-card header { border-bottom-color: #e7eef7; }
.task-card h3 { color: #1d3f73; }
.task-card .task-meta { color: #7a8ba4; }
.stack-list { gap: 10px; }
.booking-room-panel { border-color: #d5e3f2; box-shadow: 0 20px 50px rgba(29,54,86,.2); }
.toast { background: #172b55; box-shadow: 0 14px 34px rgba(20,42,83,.25); }
.mini-modal { backdrop-filter: blur(5px); }
.mini-modal > .mini-modal-card { border: 1px solid #d7e4f1; border-radius: 22px; box-shadow: 0 28px 80px rgba(20,47,94,.25); }
.work-proof-album { border-color: #bfd4eb; background: linear-gradient(135deg, #f1f7ff, #f8fcff); }

@media (max-width: 480px) {
  .mini-panel { padding-left: 10px; padding-right: 10px; }
  .section-head h2 { font-size: 20px; }
  .card, .metric-card, .task-card { border-radius: 17px; }
}
/* Login gate for the H5 miniapp. */
#miniLoginGate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#102a43,#155e75 48%,#edf5ff);font-family:"Noto Sans SC",system-ui,sans-serif}
#miniLoginGate .mini-login-box{width:min(420px,100%);padding:34px;border-radius:24px;background:#fff;box-shadow:0 24px 80px rgba(5,25,45,.28);color:#152033}
#miniLoginGate .mini-login-mark{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#1f6feb;color:#fff;font-size:30px;font-weight:900}
#miniLoginGate h2{margin:18px 0 8px;font-size:28px}#miniLoginGate p{margin:0 0 20px;color:#68758a;line-height:1.6}
#miniLoginGate input{display:block;width:100%;box-sizing:border-box;margin-top:12px;padding:13px 14px;border:1px solid #d6e2ee;border-radius:12px;font-size:16px}
#miniLoginGate button{width:100%;margin-top:18px;padding:14px;border:0;border-radius:12px;background:#1f6feb;color:#fff;font-size:16px;font-weight:800;cursor:pointer}
#miniLoginGate button:disabled{opacity:.6}#miniLoginGate .mini-login-error{min-height:22px;margin-top:10px;color:#b42318;font-size:14px}#miniLoginGate a{display:block;margin-top:18px;color:#1f6feb;text-align:center;text-decoration:none}
