@import url("data:text/css,");

:root {
  color-scheme: light;
  --ink: #19251f;
  --muted: #66716b;
  --subtle: #8a938e;
  --line: #e4e8e5;
  --line-strong: #d6dcd8;
  --paper: #ffffff;
  --canvas: #f4f5f2;
  --canvas-warm: #f8f6f1;
  --green-950: #183027;
  --green-900: #203b31;
  --green-800: #2e4d41;
  --green-700: #47675a;
  --green-100: #e9f0ec;
  --gold: #ad8756;
  --gold-soft: #f3eade;
  --danger: #b6544d;
  --danger-soft: #f9e9e7;
  --warning: #b57d27;
  --warning-soft: #fbf0dc;
  --blue: #54749d;
  --blue-soft: #eaf0f7;
  --purple: #7a638d;
  --purple-soft: #f0eaf4;
  --success: #4f7965;
  --success-soft: #e7f0eb;
  --shadow-sm: 0 1px 2px rgb(26 46 37 / 5%), 0 8px 24px rgb(26 46 37 / 4%);
  --shadow-md: 0 18px 50px rgb(22 40 32 / 14%);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgb(173 135 86 / 8%), transparent 23rem),
    var(--canvas);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 44%) 1fr;
  background: #fff;
}

.auth-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 42px clamp(38px, 6vw, 82px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgb(232 214 183 / 14%), transparent 21rem),
    linear-gradient(145deg, #284a3d, #172f27 72%);
}

.auth-visual::after {
  position: absolute;
  right: -110px;
  bottom: 5%;
  width: 330px;
  height: 330px;
  content: "";
  opacity: 0.08;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 42px transparent, 0 0 0 43px #fff, 0 0 0 84px transparent, 0 0 0 85px #fff;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 13px;
  align-items: center;
}

.auth-brand > span:last-child {
  display: grid;
}

.auth-brand strong {
  letter-spacing: 0.15em;
  font-family: "SimSun", serif;
  font-size: 18px;
}

.auth-brand small {
  margin-top: 2px;
  color: rgb(255 255 255 / 48%);
  letter-spacing: 0.12em;
  font-size: 8px;
}

.auth-intro {
  position: relative;
  z-index: 1;
  max-width: 510px;
  margin: auto 0;
}

.auth-intro h1 {
  margin: 15px 0 20px;
  letter-spacing: 0.04em;
  font-family: "SimSun", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.35;
}

.auth-intro p {
  max-width: 440px;
  color: rgb(255 255 255 / 58%);
  font-size: 14px;
  line-height: 1.9;
}

.auth-quote {
  position: relative;
  z-index: 1;
  color: rgb(255 255 255 / 44%);
  font-family: "SimSun", serif;
  font-size: 12px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 38px;
  background:
    radial-gradient(circle at 95% 6%, rgb(173 135 86 / 9%), transparent 20rem),
    #f7f8f5;
}

.auth-card {
  width: min(410px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgb(25 54 43 / 10%);
}

.auth-card h2 {
  margin: 5px 0 7px;
  font-family: "SimSun", var(--font);
  font-size: 27px;
}

.auth-description {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 12px;
}

.auth-card .field + .field {
  margin-top: 14px;
}

.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 22px;
}

.auth-security {
  margin: 22px 0 0;
  color: var(--subtle);
  font-size: 9px;
  text-align: center;
}

.auth-error {
  margin: 10px 0 0;
  padding: 8px 10px;
  color: var(--danger);
  border-radius: 7px;
  background: var(--danger-soft);
  font-size: 11px;
}

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(71 103 90 / 17%);
  outline-offset: 2px;
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 38px;
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--green-950);
  box-shadow: 0 4px 22px rgb(19 43 34 / 12%);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--green-950);
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 50%;
  background: #e7d7bc;
  font-family: "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 0 0 3px var(--green-950), inset 0 0 0 4px rgb(255 255 255 / 35%);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  letter-spacing: 0.15em;
  font-family: "SimSun", serif;
  font-size: 17px;
}

.brand-copy small {
  margin-top: 5px;
  color: rgb(255 255 255 / 55%);
  letter-spacing: 0.09em;
  font-size: 8px;
}

.topbar-actions,
.toolbar-actions,
.handover-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.current-user {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: 6px;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
}

.account-pill {
  display: flex;
  min-width: 118px;
  gap: 8px;
  align-items: center;
  padding: 5px 10px 5px 6px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background: rgb(255 255 255 / 4%);
}

.account-pill .mini-avatar {
  color: #5e472d;
  background: #dfc69e;
}

.account-copy {
  display: grid;
  min-width: 0;
  line-height: 1.22;
}

.account-copy small {
  color: rgb(255 255 255 / 43%);
  font-size: 8px;
}

.account-copy small.syncing {
  color: #dfc69e;
}

.account-copy small.sync-error {
  color: #efaaa4;
}

.account-copy strong {
  overflow: hidden;
  max-width: 90px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-user select {
  min-width: 88px;
  padding: 7px 28px 7px 10px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 7px;
  background: var(--green-900);
}

.current-user select option {
  color: var(--ink);
  background: #fff;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  transition: 160ms ease;
}

.button {
  min-height: 38px;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled,
.icon-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--green-800);
  box-shadow: 0 5px 14px rgb(31 58 49 / 15%);
}

.topbar .button-primary {
  color: var(--green-950);
  background: #e6d6ba;
  box-shadow: none;
}

.button-primary:hover {
  background: var(--green-700);
}

.topbar .button-primary:hover {
  background: #f0e4d0;
}

.button-outline {
  color: var(--green-800);
  border: 1px solid var(--line-strong);
  background: #fff;
}

.button-outline:hover,
.button-quiet:hover {
  border-color: #bcc8c1;
  background: var(--green-100);
}

.button-quiet {
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
}

.button-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.button-success {
  color: #fff;
  background: var(--success);
}

.button-small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--muted);
  border-radius: 8px;
  background: transparent;
}

.icon-button:hover {
  color: var(--green-900);
  background: var(--green-100);
}

.topbar .icon-button {
  color: rgb(255 255 255 / 78%);
}

.topbar .icon-button:hover {
  color: #fff;
  background: rgb(255 255 255 / 9%);
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--green-950);
  border-radius: 50%;
  background: #d9a052;
}

.main-content {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 26px;
}

.shift-panel {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 21px;
  color: #fff;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 87% 6%, rgb(232 214 183 / 16%), transparent 18rem),
    linear-gradient(112deg, #26473b, #1c382f 70%);
  box-shadow: 0 14px 40px rgb(25 54 43 / 13%);
}

.shift-panel::after {
  position: absolute;
  right: 35px;
  bottom: -54px;
  width: 220px;
  height: 220px;
  content: "";
  opacity: 0.08;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 28px transparent, 0 0 0 29px #fff, 0 0 0 58px transparent, 0 0 0 59px #fff;
  pointer-events: none;
}

.shift-heading,
.workspace-toolbar,
.filter-row,
.modal-header,
.modal-footer,
.drawer-header,
.room-card-head,
.setting-row,
.task-row-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shift-heading {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.eyebrow,
.modal-kicker {
  color: #c8b18e;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #d4ad72;
  box-shadow: 0 0 0 4px rgb(212 173 114 / 12%);
}

.shift-heading h1 {
  margin: 6px 0 2px;
  letter-spacing: 0.05em;
  font-family: "SimSun", var(--font);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
}

.shift-heading p {
  margin: 0;
  color: rgb(255 255 255 / 58%);
  font-size: 12px;
}

.shift-panel .button-quiet {
  position: relative;
  z-index: 2;
  color: rgb(255 255 255 / 68%);
}

.shift-panel .button-quiet:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 7%);
}

.handover-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.reception-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.reception-copy {
  display: grid;
  gap: 3px;
}

.reception-copy strong {
  font-size: 14px;
}

.reception-copy span {
  color: rgb(255 255 255 / 55%);
  font-size: 11px;
}

.person-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 160px;
}

.person-chip > span:nth-child(2) {
  display: grid;
  line-height: 1.3;
}

.person-chip small {
  color: rgb(255 255 255 / 48%);
  font-size: 10px;
}

.person-chip strong {
  font-size: 14px;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 750;
}

.avatar-warm {
  color: #5e472d;
  background: #dfc69e;
}

.avatar-cool {
  color: #284236;
  background: #aac4b6;
}

.confirm-badge {
  padding: 3px 7px;
  color: rgb(255 255 255 / 48%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  font-size: 9px;
}

.confirm-badge.confirmed {
  color: #c8e2d4;
  border-color: rgb(170 196 182 / 26%);
  background: rgb(170 196 182 / 12%);
}

.handover-arrow {
  display: flex;
  width: 80px;
  align-items: center;
  margin: 0 16px;
  color: rgb(255 255 255 / 25%);
}

.handover-arrow span {
  width: 100%;
  height: 1px;
  background: rgb(255 255 255 / 17%);
}

.handover-arrow svg {
  width: 13px;
  margin-left: -6px;
}

.handover-actions {
  margin-left: auto;
}

.shift-panel .button-outline {
  color: rgb(255 255 255 / 78%);
  border-color: rgb(255 255 255 / 15%);
  background: rgb(255 255 255 / 4%);
}

.shift-panel .button-outline:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 8%);
}

.shift-panel .button-outline.confirmed {
  color: #bcd4c7;
  border-color: transparent;
  background: rgb(124 163 143 / 14%);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.metric-card {
  display: flex;
  min-width: 0;
  align-items: center;
  min-height: 90px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.metric-card:hover {
  border-color: #bdc9c2;
  box-shadow: 0 8px 25px rgb(25 54 43 / 8%);
  transform: translateY(-1px);
}

.metric-card.active {
  border-color: var(--green-700);
  box-shadow: 0 0 0 2px rgb(71 103 90 / 10%), var(--shadow-sm);
}

.metric-card.active::after {
  align-self: flex-start;
  margin-left: 8px;
  padding: 2px 6px;
  content: "筛选中";
  color: var(--green-700);
  border-radius: 8px;
  background: var(--green-100);
  font-size: 8px;
}

.metric-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-right: 13px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-100);
}

.metric-icon svg {
  width: 20px;
  height: 20px;
}

.metric-card.warning .metric-icon {
  color: var(--warning);
  background: var(--warning-soft);
}

.metric-card.success .metric-icon {
  color: var(--success);
  background: var(--success-soft);
}

.metric-card.danger .metric-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.metric-card.blue .metric-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.metric-copy {
  display: grid;
  line-height: 1.25;
}

.metric-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

.metric-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.metric-trend {
  align-self: flex-start;
  margin-left: auto;
  color: var(--subtle);
  font-size: 10px;
}

.workspace-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.workspace-toolbar {
  min-height: 67px;
  padding: 0 23px;
  border-bottom: 1px solid var(--line);
}

.view-tabs {
  display: flex;
  align-self: stretch;
  gap: 4px;
}

.view-tab {
  position: relative;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0 17px;
  color: var(--subtle);
  border: 0;
  background: transparent;
  font-weight: 650;
}

.view-tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  content: "";
  background: transparent;
}

.view-tab:hover {
  color: var(--green-700);
}

.view-tab.active {
  color: var(--green-900);
}

.view-tab.active::after {
  background: var(--gold);
}

.filter-row {
  gap: 16px;
  padding: 14px 23px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.search-field {
  position: relative;
  display: flex;
  width: min(360px, 38%);
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 12px;
  width: 16px;
  color: var(--subtle);
}

.search-field input {
  width: 100%;
  height: 38px;
  padding: 8px 12px 8px 37px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.select-wrap select,
.field select,
.field input,
.field textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.select-wrap select {
  min-width: 120px;
  height: 38px;
  padding: 7px 30px 7px 11px;
}

.check-filter {
  display: flex;
  height: 38px;
  gap: 7px;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.check-filter input {
  width: 14px;
  height: 14px;
  accent-color: var(--green-700);
}

.view-panel {
  min-height: 350px;
}

.task-table-head {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) 132px 150px 120px;
  gap: 12px;
  padding: 10px 23px;
  color: var(--subtle);
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.task-group + .task-group {
  border-top: 7px solid var(--canvas);
}

.task-group-title {
  display: flex;
  align-items: center;
  padding: 11px 23px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #fafbf9;
  font-size: 11px;
  font-weight: 750;
}

.task-group-title span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  margin-left: 7px;
  place-items: center;
  padding: 0 5px;
  color: var(--subtle);
  border-radius: 10px;
  background: #ecefeb;
  font-size: 9px;
}

.task-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, 1fr) 132px 150px 120px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 11px 23px;
  border-bottom: 1px solid var(--line);
  transition: 140ms ease;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row:hover {
  z-index: 1;
  background: #fbfcfa;
  box-shadow: inset 3px 0 var(--gold);
}

.task-row.is-overdue {
  box-shadow: inset 3px 0 #c66a62;
}

.task-row.is-completed {
  opacity: 0.68;
}

.task-main {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
}

.status-check {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  margin-top: 2px;
  place-items: center;
  color: var(--subtle);
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.status-check svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  stroke-width: 2.4;
}

.status-check:hover {
  color: #fff;
  border-color: var(--success);
  background: var(--success);
}

.status-check:hover svg,
.is-completed .status-check svg {
  opacity: 1;
}

.is-completed .status-check {
  color: #fff;
  border-color: var(--success);
  background: var(--success);
}

.task-title-wrap {
  min-width: 0;
}

.task-title-button {
  display: block;
  overflow: hidden;
  max-width: 100%;
  padding: 0;
  color: var(--ink);
  border: 0;
  background: none;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-title-button:hover {
  color: var(--green-700);
}

.is-completed .task-title-button {
  text-decoration: line-through;
}

.task-subline,
.tag-row,
.drawer-meta,
.room-task-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.task-subline {
  overflow: hidden;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 10px;
  white-space: nowrap;
}

.area-tag,
.room-tag,
.priority-tag,
.status-tag,
.reminder-tag {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.area-tag {
  color: var(--tag-color, var(--green-700));
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--green-700)) 18%, transparent);
  background: color-mix(in srgb, var(--tag-color, var(--green-700)) 9%, white);
}

.room-tag {
  color: #775937;
  background: var(--gold-soft);
}

.priority-tag.urgent {
  color: var(--danger);
  background: var(--danger-soft);
}

.priority-tag.high {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-tag {
  border-radius: 999px;
}

.status-tag::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.tone-amber { color: var(--warning); background: var(--warning-soft); }
.tone-blue { color: var(--blue); background: var(--blue-soft); }
.tone-purple { color: var(--purple); background: var(--purple-soft); }
.tone-red { color: var(--danger); background: var(--danger-soft); }
.tone-green { color: var(--success); background: var(--success-soft); }
.tone-gray { color: var(--subtle); background: #edf0ee; }

.assignee-cell {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.mini-avatar {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  color: var(--green-800);
  border-radius: 50%;
  background: var(--green-100);
  font-size: 10px;
  font-weight: 750;
}

.time-cell {
  display: grid;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.time-cell small {
  color: var(--subtle);
  font-size: 9px;
}

.time-cell.overdue {
  color: var(--danger);
  font-weight: 700;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.more-menu-wrap {
  position: relative;
}

.more-menu {
  position: fixed;
  z-index: 50;
  width: 152px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.more-menu button {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  text-align: left;
}

.more-menu button:hover {
  color: var(--ink);
  background: var(--canvas);
}

.more-menu button.danger {
  color: var(--danger);
}

.rooms-content {
  padding: 20px 22px 25px;
  background: #fbfcfa;
}

.floor-section + .floor-section {
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.floor-heading {
  display: flex;
  align-items: center;
  margin: 0 0 13px;
  color: var(--green-900);
  font-size: 13px;
}

.floor-heading span {
  margin-left: 8px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 500;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 12px;
}

.room-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 150px;
  padding: 16px;
  color: var(--ink);
  border: 1px solid #bdd9c4;
  border-radius: 11px;
  background: #eef8f0;
  box-shadow: 0 3px 12px rgb(26 46 37 / 3%);
  text-align: left;
  transition: 170ms ease;
}

.room-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: #62a875;
}

.room-card.has-tasks {
  border-color: #e1c978;
  background: #fff7d8;
}

.room-card.has-tasks::before {
  background: #d5a92f;
}

.room-card.no-tasks .room-count {
  color: #397149;
  background: rgb(98 168 117 / 13%);
}

.room-card:hover {
  z-index: 1;
  border-color: #bdc9c2;
  box-shadow: 0 10px 26px rgb(25 54 43 / 9%);
  transform: translateY(-2px);
}

.room-number {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.room-number strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.room-number small {
  color: var(--subtle);
  font-size: 9px;
}

.room-count {
  display: inline-grid;
  min-width: 28px;
  height: 23px;
  place-items: center;
  padding: 0 7px;
  color: var(--subtle);
  border-radius: 12px;
  background: var(--canvas);
  font-size: 10px;
}

.room-count.has-count {
  color: #765a37;
  background: var(--gold-soft);
  font-weight: 750;
}

.room-task-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.room-task-line {
  flex-wrap: nowrap;
  color: var(--muted);
  font-size: 10px;
}

.room-task-line .dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--warning);
}

.room-task-line .dot.urgent {
  background: var(--danger);
}

.room-task-line .dot.progress {
  background: var(--blue);
}

.room-task-line span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-empty {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 21px;
  color: #86a094;
  font-size: 10px;
}

.room-empty svg {
  width: 14px;
}

.empty-state {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.empty-state > div {
  max-width: 320px;
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  place-items: center;
  color: var(--green-700);
  border-radius: 50%;
  background: var(--green-100);
}

.empty-icon svg {
  width: 25px;
  height: 25px;
}

.empty-state h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 15px;
}

.empty-state p {
  margin: 0 0 15px;
  font-size: 12px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgb(17 31 25 / 34%);
  backdrop-filter: blur(2px);
}

.detail-drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(520px, 94vw);
  height: 100vh;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 50px rgb(17 31 25 / 16%);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.detail-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 72px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.drawer-header h2 {
  margin: 0;
  font-family: "SimSun", var(--font);
  font-size: 21px;
}

.drawer-body {
  padding: 22px;
}

.drawer-task-title {
  margin: 12px 0 7px;
  font-size: 21px;
  line-height: 1.42;
}

.drawer-description {
  margin: 0 0 20px;
  color: var(--muted);
  white-space: pre-wrap;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.info-item {
  display: grid;
  min-height: 73px;
  padding: 13px 15px;
  background: #fff;
}

.info-item small {
  color: var(--subtle);
  font-size: 10px;
}

.info-item strong {
  margin-top: 4px;
  font-size: 12px;
}

.drawer-action-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 19px 0 22px;
}

.drawer-action-bar .button {
  padding-right: 7px;
  padding-left: 7px;
  font-size: 11px;
}

.drawer-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 12px;
  color: var(--ink);
  font-size: 13px;
}

.section-title small {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 500;
}

.history-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list::before {
  position: absolute;
  top: 12px;
  bottom: 18px;
  left: 7px;
  width: 1px;
  content: "";
  background: var(--line);
}

.history-item {
  position: relative;
  padding: 0 0 20px 26px;
}

.history-item::before {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 3px;
  width: 8px;
  height: 8px;
  content: "";
  border: 3px solid #fff;
  border-radius: 50%;
  background: #9eb0a6;
  box-shadow: 0 0 0 1px #9eb0a6;
}

.history-item:first-child::before {
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.history-head strong {
  font-size: 12px;
}

.history-head time {
  color: var(--subtle);
  font-size: 9px;
}

.history-actor {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 10px;
}

.history-note {
  margin: 7px 0 0;
  padding: 9px 11px;
  color: var(--muted);
  border-radius: 7px;
  background: var(--canvas);
  font-size: 11px;
  white-space: pre-wrap;
}

.change-list {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
}

.change-list div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 5px;
}

.change-list b {
  color: var(--subtle);
  font-weight: 600;
}

.change-list del {
  color: var(--danger);
  text-decoration: none;
}

.change-list ins {
  color: var(--success);
  text-decoration: none;
}

.room-drawer-summary {
  padding: 18px 22px;
  color: #fff;
  background: var(--green-900);
}

.room-drawer-number {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1.1;
}

.room-drawer-summary p {
  margin: 4px 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 11px;
}

.room-detail-task {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.room-detail-task + .room-detail-task {
  margin-top: 9px;
}

.room-detail-task:hover {
  border-color: #bdc9c2;
}

.room-detail-task button {
  display: block;
  width: 100%;
  margin: 7px 0 5px;
  padding: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  font-weight: 700;
  text-align: left;
}

.room-detail-task p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--subtle);
  font-size: 10px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.housekeeping-content {
  padding: 20px 22px 26px;
  background: #fbfcfa;
}

.housekeeping-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.housekeeping-heading h3 {
  margin: 0;
  font-family: "SimSun", var(--font);
  font-size: 17px;
}

.housekeeping-heading p {
  margin: 3px 0 0;
  color: var(--subtle);
  font-size: 10px;
}

.housekeeping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 11px;
}

.housekeeping-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.housekeeping-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--gold);
}

.housekeeping-card.completed::before {
  background: var(--success);
}

.housekeeping-card.overdue::before {
  background: var(--danger);
}

.housekeeping-card.completed {
  opacity: 0.72;
}

.housekeeping-card-head,
.housekeeping-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.housekeeping-room {
  font-family: Georgia, serif;
  font-size: 24px;
}

.housekeeping-room small {
  margin-left: 4px;
  color: var(--subtle);
  font-family: var(--font);
  font-size: 9px;
}

.housekeeping-type {
  display: inline-flex;
  padding: 4px 8px;
  color: #765a37;
  border-radius: 6px;
  background: var(--gold-soft);
  font-size: 10px;
  font-weight: 700;
}

.housekeeping-card h4 {
  margin: 14px 0 5px;
  font-size: 13px;
}

.housekeeping-card p {
  min-height: 32px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 10px;
}

.housekeeping-card-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.housekeeping-meta {
  display: grid;
  color: var(--subtle);
  font-size: 9px;
}

.housekeeping-meta strong {
  color: var(--muted);
  font-size: 10px;
}

.global-log-list,
.handover-log-list {
  display: grid;
  gap: 9px;
  max-height: 560px;
  overflow: auto;
}

.global-log-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.log-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green-700);
  border-radius: 50%;
  background: var(--green-100);
}

.log-icon svg {
  width: 15px;
}

.log-copy {
  min-width: 0;
}

.log-copy strong {
  display: block;
  font-size: 12px;
}

.log-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  white-space: pre-wrap;
}

.log-copy small,
.global-log-item time {
  color: var(--subtle);
  font-size: 9px;
}

.handover-log-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.handover-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.handover-log-head strong {
  font-family: "SimSun", var(--font);
  font-size: 16px;
}

.handover-people {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 8px;
  background: var(--canvas);
}

.handover-people span {
  display: grid;
  flex: 1;
}

.handover-people small {
  color: var(--subtle);
  font-size: 9px;
}

.handover-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.handover-summary span {
  padding: 3px 7px;
  color: var(--muted);
  border-radius: 6px;
  background: var(--canvas-warm);
  font-size: 9px;
}

dialog {
  padding: 0;
  color: var(--ink);
  border: 0;
}

dialog::backdrop {
  background: rgb(17 31 25 / 42%);
  backdrop-filter: blur(3px);
}

.modal {
  width: min(570px, calc(100vw - 30px));
  max-height: min(790px, calc(100vh - 32px));
  overflow: auto;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.modal-wide {
  width: min(720px, calc(100vw - 30px));
}

.modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 76px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(10px);
}

.modal-header h2 {
  margin: 2px 0 0;
  font-family: "SimSun", var(--font);
  font-size: 20px;
}

.modal-kicker {
  color: var(--gold);
  font-size: 9px;
}

.modal-body {
  padding: 21px;
}

.modal-footer {
  position: sticky;
  z-index: 2;
  bottom: 0;
  min-height: 66px;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(10px);
}

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

.compact-grid {
  margin-top: 15px;
}

.full-field {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--muted);
}

.field > span {
  font-size: 11px;
  font-weight: 650;
}

.field > span b {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  min-height: 41px;
  padding: 9px 11px;
  outline: none;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #bdc7c1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgb(71 103 90 / 9%);
}

.tag-selector {
  display: flex;
  min-height: 43px;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.tag-option {
  cursor: pointer;
}

.tag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-option span {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  color: var(--tag-color);
  border: 1px solid color-mix(in srgb, var(--tag-color) 18%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--tag-color) 7%, white);
  font-size: 10px;
  font-weight: 700;
}

.tag-option input:checked + span {
  color: #fff;
  border-color: var(--tag-color);
  background: var(--tag-color);
  box-shadow: 0 3px 8px color-mix(in srgb, var(--tag-color) 25%, transparent);
}

.form-help,
.footer-note {
  color: var(--subtle);
  font-size: 10px;
}

.action-task-preview {
  margin-bottom: 17px;
  padding: 12px 14px;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  border-radius: 0 7px 7px 0;
  background: var(--canvas-warm);
}

.action-task-preview strong {
  display: block;
  color: var(--ink);
}

.action-task-preview small {
  font-size: 10px;
}

.inline-add-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 9px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}

.color-field {
  grid-template-columns: 1fr;
}

.color-field input {
  width: 100%;
  padding: 4px;
}

.settings-list {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
}

.room-type-setting-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.room-type-setting-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 7px 13px;
  color: var(--green-900);
  background: var(--canvas);
}

.room-type-setting-head > span:first-child {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.room-type-setting-head small {
  color: var(--subtle);
  font-size: 10px;
}

.room-type-setting-group .setting-row {
  border-width: 1px 0 0;
  border-radius: 0;
}

.order-actions {
  display: inline-flex;
  gap: 3px;
}

.order-button {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--green-800);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
}

.order-button:hover:not(:disabled) {
  border-color: #a9beb2;
  background: var(--green-100);
}

.order-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.setting-row {
  min-height: 49px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.employee-add-form {
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
}

.employee-add-form > .button {
  margin-top: 13px;
}

.employees-list .setting-row {
  min-height: 62px;
}

.employee-status,
.role-badge {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
}

.employee-status {
  color: var(--success);
  background: var(--success-soft);
}

.employee-status.inactive {
  color: var(--subtle);
  background: #edf0ee;
}

.role-badge {
  color: #765a37;
  background: var(--gold-soft);
}

.setting-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.setting-actions .button {
  min-height: 29px;
}

.setting-name {
  display: flex;
  gap: 9px;
  align-items: center;
}

.setting-name strong {
  font-size: 12px;
}

.setting-name small {
  display: block;
  color: var(--subtle);
  font-size: 9px;
}

.color-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot-color);
}

.floating-add {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  display: none;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: var(--green-800);
  box-shadow: 0 8px 25px rgb(31 58 49 / 28%);
}

.floating-add svg {
  width: 23px;
  height: 23px;
}

.footer {
  padding: 5px 20px 24px;
  color: var(--subtle);
  font-size: 9px;
  text-align: center;
}

.footer a {
  color: inherit;
}

.toast-stack {
  position: fixed;
  z-index: 200;
  top: 84px;
  right: 22px;
  display: grid;
  width: min(330px, calc(100vw - 44px));
  gap: 9px;
}

.toast {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  color: #fff;
  border-radius: 9px;
  background: var(--green-900);
  box-shadow: var(--shadow-md);
  animation: toast-in 200ms ease both;
}

.toast.warning {
  background: #72552f;
}

.toast.error {
  background: #7c3e39;
}

.toast-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
}

.toast-icon svg {
  width: 13px;
}

.toast-copy {
  display: grid;
}

.toast-copy strong {
  font-size: 11px;
}

.toast-copy span {
  color: rgb(255 255 255 / 67%);
  font-size: 10px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .main-content {
    width: min(100% - 32px, 900px);
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-table-head {
    display: none;
  }

  .task-row {
    grid-template-columns: minmax(260px, 1fr) 110px 120px;
  }

  .task-row > .status-cell {
    display: none;
  }

  .current-user > span {
    display: none;
  }

  .toolbar-actions .button {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  .auth-screen {
    display: block;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--green-950) 0 132px, #f7f8f5 132px);
  }

  .auth-visual {
    min-height: 132px;
    padding: 23px 20px;
    background: transparent;
  }

  .auth-intro,
  .auth-quote {
    display: none;
  }

  .auth-panel {
    display: block;
    padding: 0 13px 30px;
    background: transparent;
  }

  .auth-card {
    width: 100%;
    padding: 27px 22px;
    border-radius: 14px;
  }

  .account-pill {
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .account-pill .mini-avatar,
  .account-copy small {
    display: none;
  }

  .account-copy strong {
    max-width: 58px;
  }

  #changeOwnPasswordButton {
    display: none;
  }

  body {
    background: var(--canvas);
  }

  .topbar {
    min-height: 62px;
    padding: 0 16px;
  }

  .brand-copy small,
  .desktop-add,
  .notification-button,
  .toolbar-actions {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .current-user {
    margin: 0;
  }

  .current-user select {
    min-width: 80px;
  }

  .main-content {
    width: 100%;
    padding: 0 0 18px;
  }

  .shift-panel {
    padding: 23px 18px 17px;
    border-radius: 0;
  }

  .shift-heading .button {
    padding: 7px;
    font-size: 0;
  }

  .shift-heading .button svg {
    width: 17px;
  }

  .reception-line {
    gap: 10px;
    margin-top: 14px;
    padding-top: 13px;
  }

  .reception-copy span {
    max-width: 190px;
    font-size: 9px;
  }

  .reception-line .button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 10px;
  }

  .handover-line {
    flex-wrap: wrap;
    gap: 10px;
  }

  .person-chip {
    width: calc(50% - 5px);
    min-width: 0;
  }

  .confirm-badge,
  .handover-arrow {
    display: none;
  }

  .handover-actions {
    width: 100%;
    margin-top: 5px;
  }

  .handover-actions .button {
    flex: 1;
  }

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

  .metric-card {
    min-height: 62px;
    justify-content: center;
    padding: 9px 6px;
    text-align: center;
  }

  .metric-icon {
    display: none;
  }

  .metric-copy strong {
    font-size: 20px;
  }

  .metric-copy span {
    font-size: 9px;
  }

  .metric-trend {
    display: none;
  }

  .workspace-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .workspace-toolbar {
    min-height: 57px;
    padding: 0 10px;
  }

  .view-tabs {
    width: 100%;
  }

  .view-tab {
    flex: 1;
    justify-content: center;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .filter-row {
    display: grid;
    padding: 11px 12px;
  }

  .search-field {
    width: 100%;
  }

  .filters {
    width: 100%;
    margin: 0;
  }

  .select-wrap {
    min-width: 0;
    flex: 1;
  }

  .select-wrap select {
    width: 100%;
    min-width: 0;
  }

  .check-filter {
    padding: 0 8px;
  }

  .task-group-title {
    padding: 10px 13px;
  }

  .task-row {
    display: block;
    min-height: 0;
    padding: 14px 13px;
  }

  .task-main {
    padding-right: 28px;
  }

  .task-row > .assignee-cell,
  .task-row > .time-cell,
  .task-row > .status-cell {
    display: none;
  }

  .housekeeping-content {
    padding: 14px 12px 22px;
  }

  .housekeeping-heading {
    align-items: flex-start;
  }

  .housekeeping-grid {
    grid-template-columns: 1fr;
  }

  .row-actions {
    position: absolute;
    top: 11px;
    right: 8px;
  }

  .task-subline {
    white-space: normal;
  }

  .rooms-content {
    padding: 10px 8px 18px;
  }

  .floor-section + .floor-section {
    margin-top: 16px;
    padding-top: 13px;
  }

  .floor-heading {
    margin: 0 0 7px;
    font-size: 11px;
  }

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

  .room-card {
    min-height: 76px;
    padding: 10px 8px;
  }

  .room-number strong {
    font-size: 20px;
  }

  .room-number small,
  .room-task-list,
  .room-empty span {
    display: none;
  }

  .room-count {
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    font-size: 9px;
  }

  .room-empty {
    margin-top: 11px;
  }

  .room-empty svg {
    width: 13px;
  }

  .floating-add {
    display: grid;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-field {
    grid-column: auto;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 12px);
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
  }

  .inline-add-form {
    grid-template-columns: 1fr 1fr;
  }

  .inline-add-form .button {
    grid-column: 1 / -1;
  }

  .area-add-form {
    grid-template-columns: 1fr 84px;
  }

  .detail-drawer {
    width: 100vw;
  }
}

@media (max-width: 420px) {
  .check-filter span {
    display: none;
  }

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

  .room-task-line:nth-child(n + 3) {
    display: none;
  }

  .drawer-action-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
