.eq-room {
  --eq-text: #20384f;
  --eq-muted: #597189;
  --eq-line: #d9e5f0;
  --eq-blue: #2168b4;
  color: var(--eq-text);
  display: grid;
  gap: 18px;
  min-width: 0;
}
.eq-room [hidden] { display: none !important; }
.eq-header, .eq-panel, .eq-summary > div {
  background: rgba(255,255,255,.83);
  border: 1px solid var(--eq-line);
  border-radius: 18px;
}
.eq-header, .eq-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.eq-header { padding: 21px 24px; }
.eq-heading { display: flex; align-items: center; gap: 13px; }
.eq-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #eaf0ff;
  color: #4c63aa;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.eq-heading h1 { margin: 0; color: var(--eq-text); font-size: 24px; line-height: 1.2; }
.eq-heading p { margin: 5px 0 0; color: var(--eq-muted); font-size: 13px; }
.eq-actions, .eq-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.eq-button, .eq-tabs button, .eq-close {
  min-height: 38px;
  padding: 8px 13px;
  font: inherit;
  font-weight: 650;
  color: var(--eq-text);
  cursor: pointer;
  border: 1px solid var(--eq-line);
  border-radius: 9px;
  background: #fff;
}
.eq-button:hover, .eq-tabs button:hover { border-color: #7da7d3; }
.eq-button:disabled { opacity: .52; cursor: default; }
.eq-primary { background: var(--eq-blue); border-color: var(--eq-blue); color: white; }
.eq-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.eq-summary > div { padding: 14px 17px; }
.eq-summary span { display: block; color: var(--eq-muted); font-size: 13px; }
.eq-summary strong { display: block; font-size: 24px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.eq-summary [data-room-late] { color: #a84724; }
.eq-toolbar { padding: 13px 16px; border-bottom: 1px solid var(--eq-line); }
.eq-tabs button { border-color: transparent; background: transparent; }
.eq-tabs button[aria-pressed="true"] { background: #e7f1fc; color: #185da5; }
.eq-panel { overflow: hidden; }
.eq-results { overflow-x: auto; }
.eq-room table { width: 100%; border-collapse: collapse; min-width: 570px; }
.eq-room th, .eq-room td { padding: 13px 16px; text-align: left; vertical-align: middle; }
.eq-room th { background: #edf4fa; color: #395772; font-weight: 670; white-space: nowrap; }
.eq-room tbody tr + tr { border-top: 1px solid #e6eef6; }
.eq-room td small { display: block; color: var(--eq-muted); margin-top: 3px; }
.eq-status { display: inline-block; border-radius: 7px; background: #e7f1fc; color: #1b5488; padding: 4px 8px; white-space: nowrap; }
.eq-status--overdue, .eq-status--attention { color: #96301b; background: #ffede6; }
.eq-status--available, .eq-status--returned { color: #17684e; background: #e4f5ed; }
.eq-message { margin: 0; }
.eq-message:not(:empty) { margin: 0; padding: 12px 16px; color: var(--eq-muted); }
.eq-empty { padding: 32px 15px; text-align: center; color: var(--eq-muted); }
.eq-dialog {
  padding: 0;
  width: min(500px,calc(100% - 24px));
  max-height: calc(100% - 24px);
  color: var(--eq-text);
  background: #f9fbfe;
  border: 1px solid var(--eq-line);
  border-radius: 18px;
  margin: auto;
}
.eq-dialog::backdrop { background: rgba(21,39,59,.43); }
.eq-dialog header, .eq-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 15px 19px;
}
.eq-dialog header { border-bottom: 1px solid var(--eq-line); }
.eq-dialog footer { justify-content: flex-end; border-top: 1px solid var(--eq-line); }
.eq-dialog h2 { color: var(--eq-text); margin: 0; font-size: 18px; }
.eq-close { font-size: 19px; min-height: 30px; padding: 3px 10px; }
.eq-fields { display: grid; gap: 13px; padding: 17px 19px; }
.eq-fields p { color: var(--eq-muted); margin: 0; }
.eq-fields label { display: grid; gap: 5px; font-weight: 640; }
.eq-fields input, .eq-fields textarea, .eq-fields select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd9e8;
  border-radius: 8px;
  color: var(--eq-text);
  background: white;
  font: inherit;
}
.eq-error { margin: 0 19px 12px; color: #96301b; }
@media (max-width: 560px) {
  .eq-header { padding: 14px; }
  .eq-summary { gap: 6px; }
  .eq-summary > div { padding: 10px 8px; }
  .eq-toolbar { gap: 6px; padding: 9px; }
  .eq-tabs { gap: 3px; }
  .eq-tabs button { padding-inline: 6px; }
}

.eq-photo-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.eq-photo-group { display: grid; gap: 8px; }
.eq-photo-label { font-weight: 640; }
.eq-photo-preview {
  width: min(100%, 260px);
  height: 144px;
  object-fit: contain;
  background: #edf4fa;
  border-radius: 9px;
}
.eq-fields input[readonly] { background: #eef4fa; color: var(--eq-muted); }
.eq-photo-thumb {
  display: inline-flex;
  border: 1px solid var(--eq-line);
  background: #edf4fa;
  border-radius: 7px;
  cursor: zoom-in;
  min-width: 54px;
  min-height: 42px;
}
.eq-photo-thumb img { display: block; width: 54px; height: 42px; object-fit: cover; border-radius: 6px; }
.eq-photo-view { width: min(760px, calc(100% - 24px)); }
.eq-photo-view img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.eq-photo-message:empty { display: none; }
.eq-photo-message { color: var(--eq-muted); padding: 14px 19px; margin: 0; }
.eq-photo-none { color: var(--eq-muted); white-space: nowrap; }
