.btn-blue {
  background: var(--blue);
  color: #fff;
  transition:
    opacity 0.12s cubic-bezier(0.2, 0.6, 0.4, 1),
    transform 0.12s cubic-bezier(0.2, 0.6, 0.4, 1),
    box-shadow 0.12s ease;
}
.btn-green {
  background: var(--green);
  color: #000;
  transition:
    opacity 0.12s cubic-bezier(0.2, 0.6, 0.4, 1),
    transform 0.12s cubic-bezier(0.2, 0.6, 0.4, 1),
    box-shadow 0.12s ease;
}
.btn-ghost {
  background: var(--sur2);
  border: 1.5px solid var(--bdr2);
  color: var(--ink);
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.btn-ghost-red {
  background: var(--red-lt);
  border: 1.5px solid rgba(255, 69, 58, 0.3);
  color: var(--red);
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.btn-ghost-amber {
  background: var(--amber-lt);
  border: 1.5px solid rgba(255, 159, 10, 0.3);
  color: var(--amber);
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.btn-full {
  border-radius: 18px;
  font-size: 18px;
  min-height: 60px;
  width: 100%;
}
.btn-sm {
  border-radius: 12px;
  font-size: 14px;
  min-height: 44px;
  padding: 0 16px;
}
.btn-xs {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 12px;
}
.chip {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
}
.chip-ok {
  background: var(--green-lt);
  color: var(--green);
}
.chip-fail {
  background: var(--red-lt);
  color: var(--red);
}
.chip-warn {
  background: var(--amber-lt);
  color: var(--amber);
}
.chip-gray {
  background: var(--gray-lt);
  color: var(--ink3);
}
.chip-high {
  background: var(--red-lt);
  color: var(--red);
}
.chip-medium {
  background: var(--amber-lt);
  color: var(--amber);
}
.chip-low {
  background: var(--blue-lt);
  color: var(--blue);
}
.pills-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 14px;
  -webkit-mask-image: linear-gradient(to right, transparent 0px, black 16px, black calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0px, black 16px, black calc(100% - 24px), transparent 100%);
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  padding-bottom: 4px;
  padding-left: 4px;
  padding-right: 24px;
}
.pill {
  align-items: center;
  background: var(--sur);
  border: 1.5px solid var(--bdr2);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  color: var(--ink3);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  gap: 5px;
  padding: 10px 18px;
  transition: all 0.12s cubic-bezier(0.2, 0.6, 0.4, 1);
  white-space: nowrap;
}
.pill:active {
  transform: scale(0.92);
}
.pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.search-wrap {
  margin-bottom: 14px;
  position: relative;
}
.search-inp {
  background: var(--sur);
  border: 1.5px solid var(--bdr2);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  height: 52px;
  outline: none;
  padding: 0 48px 0 46px;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease;
  width: 100%;
}
.search-inp:focus {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.search-inp::placeholder {
  color: var(--ink4);
}
.s-ico {
  font-size: 19px;
  left: 14px;
  opacity: 0.4;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.s-clr {
  align-items: center;
  background: var(--sur3);
  border: none;
  border-radius: 50%;
  color: var(--ink3);
  cursor: pointer;
  display: none;
  font-size: 15px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
}
.s-clr.show {
  display: flex;
}
.floor-sec {
  margin-bottom: 22px;
}
.floor-hdr {
  align-items: center;
  color: var(--ink4);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.7px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.floor-cnt {
  background: var(--sur2);
  border: 1px solid var(--bdr);
  border-radius: 6px;
  color: var(--ink3);
  font-size: 11px;
  padding: 1px 8px;
}
.room-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(80px, 100px));
  justify-content: start;
}
.room-card {
  align-items: center;
  background: var(--sur);
  border: 2px solid #5c5c66;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
  min-height: 80px;
  overflow: visible;
  padding: 0;
  position: relative;
  transition:
    transform 0.12s cubic-bezier(0.2, 0.6, 0.4, 1),
    box-shadow 0.12s ease,
    background 0.12s ease;
}
.room-card:active {
  box-shadow: var(--shadow-md);
  transform: scale(0.95);
}
.room-card:hover {
  box-shadow: var(--shadow-md);
}
/* State classes */
.room-card.rc-mot-fail {
  border-color: var(--red);
  border-width: 3px;
}
.room-card.rc-defect {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 159, 10, 0.2),
    rgba(255, 159, 10, 0.2) 10px,
    rgba(0, 0, 0, 0.15) 10px,
    rgba(0, 0, 0, 0.15) 20px
  );
  border-color: var(--amber);
}
.room-card.rc-repair {
  background: rgba(10, 132, 255, 0.08);
}
.rc-stripe {
  display: none;
}
.rc-num {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0;
  padding: 6px;
  text-align: center;
  width: 100%;
}
.rc-body {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  padding: 6px;
  width: 100%;
}
.rc-icons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 18px;
  gap: 4px;
  justify-content: center;
  min-height: auto;
}
.rc-icons svg {
  height: 18px;
  width: 18px;
}
.rc-gear-spin {
  animation: spin 2s linear infinite;
  display: inline-block;
  font-size: 18px;
}
.rc-tech-name {
  color: var(--ink3);
  font-size: 8px;
  line-height: 1;
  max-width: 75px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}
@media (max-width: 480px) {
  .room-grid {
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(80px, 100px));
  }
}
@media (max-width: 360px) {
  .room-grid {
    gap: 5px;
    grid-template-columns: repeat(auto-fill, minmax(80px, 100px));
  }
}
.rc-floor {
  display: none;
}
.rc-chips {
  display: none;
}
.rc-status {
  display: none;
}
.rc-mot {
  display: none;
}
.rc-issue {
  display: none;
}
.rc-ib {
  display: none;
}
.issue-card {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-left: 5px solid var(--bdr2);
  border-radius: var(--rlg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  margin-bottom: 10px;
  overflow: hidden;
  transition:
    background 0.12s ease,
    box-shadow 0.12s ease,
    border-left-color 0.12s ease;
}
.issue-card:active {
  background: var(--sur2);
}
.issue-card.High {
  border-left-color: var(--red);
}
.issue-card.Medium {
  border-left-color: var(--amber);
}
.issue-card.Low {
  border-left-color: var(--blue);
}
.ic-body {
  padding: 9px;
}
.ic-top {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 2px;
}
.ic-room {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
}
.ic-cat {
  color: var(--ink4);
  font-size: 11px;
  margin-bottom: 2px;
}
.ic-desc {
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.ic-foot {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.ic-time {
  color: var(--ink4);
  font-family: var(--mono);
  font-size: 10px;
}
.tech-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.tech-sel {
  background: var(--sur2);
  border: 1px solid var(--bdr2);
  border-radius: 10px;
  color: var(--ink2);
  flex: 1;
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  padding: 8px 10px;
}
.issues-panel {
  background: var(--sur);
  border: 1.5px solid var(--bdr);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.issues-panel-hdr {
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  font-family: var(--font);
  gap: 8px;
  padding: 13px 16px;
  text-align: left;
  width: 100%;
}
.issues-panel-hdr:active {
  background: var(--sur2);
}
.ip-lbl {
  color: var(--ink4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.ip-badge {
  background: var(--red);
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-left: 2px;
  padding: 2px 8px;
}
.ip-chevron {
  color: var(--ink4);
  font-size: 11px;
  margin-left: auto;
  transition: transform 0.2s;
}
.ip-chevron.open {
  transform: rotate(180deg);
}
.issues-panel-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.22s ease;
}
.issues-panel-body.closed {
  grid-template-rows: 0fr;
}
.issues-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 14px;
}
.issues-panel-inner > #issues-wrap {
  padding-bottom: 14px;
}
.sbox {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: var(--rlg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  padding: 48px 24px;
  text-align: center;
}
.sbox .si {
  font-size: 48px;
  margin-bottom: 12px;
}
.sbox .st {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 5px;
}
.sbox .sm {
  color: var(--ink3);
  font-size: 15px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner {
  animation: spin 0.7s linear infinite;
  border: 3px solid var(--bdr2);
  border-radius: 50%;
  border-top-color: var(--blue);
  display: inline-block;
  height: 36px;
  margin-bottom: 14px;
  width: 36px;
}
.backdrop {
  align-items: flex-start;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(42, 31, 26, 0.55);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 300;
}
.backdrop.open {
  display: flex;
}
.sheet {
  animation: sheetDown 0.3s cubic-bezier(0.2, 0.6, 0.4, 1);
  background: var(--sur);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 -8px 32px rgba(42, 31, 26, 0.16);
  max-height: 92vh;
  max-width: 680px;
  overflow-y: auto;
  width: 100%;
}
@keyframes sheetDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.sh-hdr {
  align-items: center;
  background: var(--sur);
  border-bottom: 1px solid var(--bdr);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 16px 18px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.sh-ttl {
  flex: 1;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.15;
}
.sh-sub {
  color: var(--ink3);
  font-size: 14px;
  margin-top: 2px;
}
.sh-body {
  padding: 24px;
}
.d-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}
.d-cell {
  background: var(--sur2);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  padding: 12px 14px;
}
.d-lbl {
  color: var(--ink4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.d-val {
  font-size: 17px;
  font-weight: 700;
}
.form-card {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: var(--rlg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.fi,
.fta,
.fsel {
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bdr);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  padding: 16px;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
  width: 100%;
}
.fi:last-child,
.fta:last-child,
.fsel:last-child {
  border-bottom: none;
}
.fi::placeholder,
.fta::placeholder {
  color: var(--ink4);
}
.fta {
  min-height: 100px;
  resize: none;
}
.fsel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2355555c' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  cursor: pointer;
  padding-right: 44px;
}
.cat-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 10px 10px;
}
.cat-btn {
  align-items: center;
  background: var(--sur2);
  border: 2px solid var(--bdr2);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  gap: 4px;
  justify-content: center;
  padding: 10px 4px;
  transition: all 0.12s cubic-bezier(0.2, 0.6, 0.4, 1);
}
.cat-btn:active {
  transform: scale(0.88);
}
.cat-ico {
  font-size: 22px;
  line-height: 1;
}
.cat-lbl {
  color: var(--ink3);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.cat-btn.sel {
  background: var(--blue-lt);
  border-color: var(--blue);
}
.cat-btn.sel .cat-lbl {
  color: var(--blue);
}
.g-success {
  display: none;
  padding: 48px 20px;
  text-align: center;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.suc-ring {
  align-items: center;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--green-lt);
  border-radius: 50%;
  display: flex;
  font-size: 56px;
  height: 100px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 100px;
}
.suc-ttl {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
}
.suc-sub {
  color: var(--ink3);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.err-msg {
  color: var(--red);
  display: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
}
.toast {
  animation: fadeUp 0.3s ease;
  background: var(--green);
  border-radius: 14px;
  bottom: 90px;
  color: #000;
  font-size: 15px;
  font-weight: 800;
  left: 50%;
  padding: 12px 22px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1000;
}
/* MOT */
.chk-item {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  margin-bottom: 7px;
  overflow: hidden;
  transition: box-shadow 0.12s ease;
}
.chk-row {
  align-items: stretch;
  display: flex;
  min-height: 68px;
}
.chk-tap {
  align-items: center;
  cursor: pointer;
  display: flex;
  transition: background 0.1s;
  width: 50%;
}
.chk-tap:active {
  background: rgba(48, 209, 88, 0.08);
}
.chk-ind {
  align-items: center;
  align-self: stretch;
  border-right: 1px solid var(--bdr);
  display: flex;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 700;
  justify-content: center;
  transition: background 0.15s;
  width: 44px;
}
.chk-ind.p {
  color: var(--ink4);
}
.chk-ind.ok {
  background: rgba(48, 209, 88, 0.13);
  color: var(--green);
}
.chk-ind.fail {
  background: rgba(255, 69, 58, 0.13);
  color: var(--red);
}
.chk-ind.na {
  background: rgba(85, 85, 92, 0.16);
  color: var(--gray);
}
.chk-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 10px 10px 10px 13px;
}
.chk-lbl {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.chk-side {
  border-left: 1px solid var(--bdr);
  display: flex;
  width: 50%;
}
.csb {
  align-items: center;
  background: var(--sur2);
  border: none;
  border-right: 1px solid var(--bdr);
  color: var(--ink3);
  cursor: pointer;
  display: flex;
  flex: 1;
  flex-direction: column;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  gap: 2px;
  justify-content: center;
  min-height: 68px;
  touch-action: manipulation;
}
.csb:last-child {
  border-right: none;
}
.csb:active {
  opacity: 0.5;
}
.csb.sf {
  background: rgba(255, 69, 58, 0.18);
  color: var(--red);
}
.csb.sna {
  background: rgba(100, 100, 110, 0.15);
  color: var(--ink2);
}
.mot-prog {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: var(--rlg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  padding: 18px;
}
.mp-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mp-room {
  font-size: 18px;
  font-weight: 800;
}
.mp-pct {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 900;
}
.track {
  background: var(--sur3);
  border-radius: 6px;
  height: 12px;
  overflow: hidden;
}
.track-fill {
  background: var(--blue);
  border-radius: 6px;
  height: 100%;
  transition: width 0.6s cubic-bezier(0.2, 0.6, 0.4, 1);
}
.track-fill.done {
  background: var(--green);
}
.track-fill.fail {
  background: var(--red);
}
.stat-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.stat-cell {
  background: var(--sur2);
  border: 1px solid var(--bdr);
  border-radius: 13px;
  flex: 1;
  padding: 12px 8px;
  text-align: center;
}
.stat-val {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}
.stat-lbl {
  color: var(--ink4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 3px;
  text-transform: uppercase;
}
.stat-cell.ok .stat-val {
  color: var(--green);
}
.stat-cell.fail .stat-val {
  color: var(--red);
}
.stat-cell.pend .stat-val {
  color: var(--amber);
}
.fail-summary {
  display: none;
  margin-bottom: 12px;
}
.fail-summary-title {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.fail-item {
  align-items: flex-start;
  background: var(--red-lt);
  border: 1px solid rgba(255, 69, 58, 0.22);
  border-radius: 11px;
  display: flex;
  gap: 10px;
  margin-bottom: 7px;
  padding: 11px 14px;
}
/* HK */
.hk-status-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-bottom: 16px;
}
.hk-room-tile {
  background: var(--sur);
  border: 1.5px solid var(--bdr);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px 12px;
  transition: border-color 0.1s;
}
.hk-room-tile:hover {
  border-color: var(--blue);
}
/* Weather */
.weather-panel {
  align-items: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: linear-gradient(
    135deg,
    rgba(10, 132, 255, 0.25),
    rgba(48, 209, 88, 0.15)
  );
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  white-space: nowrap;
}
.weather-emoji {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}
.weather-info {
  flex: 0;
  min-width: 0;
}
.weather-temp {
  color: #001a4d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0;
}
.weather-desc {
  color: #1a3d66;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
}
.weather-humidity-label {
  color: #333333;
  display: none;
  font-size: 11px;
  font-weight: 600;
}
/* Prev */
