/* Shared H5 modal contract. Load after page-specific styles. */
:root { --h5-page-width: 448px; --h5-modal-gutter: 16px; }
html:has(.admin-modal, .message-detail-modal, .registration-preview, .admin-image-preview-modal, .vi-confirm-dialog[open], .receipt-scan-dialog),
body:has(.admin-modal, .message-detail-modal, .registration-preview, .admin-image-preview-modal, .vi-confirm-dialog[open], .receipt-scan-dialog) { overflow: hidden; }
.admin-modal, .message-detail-modal, .registration-preview, .admin-image-preview-modal {
  box-sizing: border-box;
  position: fixed;
  inset: var(--h5-modal-top, 0px) 0 auto;
  height: var(--h5-modal-height, 100dvh);
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgb(11 46 58 / 38%);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.admin-modal > .admin-modal-card, .message-detail-modal > .message-detail,
.registration-preview > section, .admin-image-preview-modal > .admin-image-preview-card {
  box-sizing: border-box;
  width: min(100%, calc(var(--h5-page-width) - 2 * var(--h5-modal-gutter)));
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 20px;
  border: 1px solid #dce9eb;
  border-radius: 12px;
  background: #fff;
  color: var(--text, #0b2e3a);
  box-shadow: 0 8px 24px rgb(11 46 58 / 8%), 0 24px 64px rgb(11 46 58 / 16%);
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: #bdd5d8 transparent;
}
.admin-modal-card .admin-modal-head { gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #dceceb; }
.admin-modal-card .admin-modal-head strong { min-width: 0; padding-right: 0; font-size: 18px; line-height: 26px; }
.message-detail-modal .message-detail h2 { font-size: 18px; line-height: 26px; margin-right: 32px; }
.admin-modal-card .admin-modal-head button, .message-detail-modal .message-detail-close,
.registration-preview header button, .admin-image-preview-card > div > button {
  flex: 0 0 40px; width: 40px; height: 40px; min-width: 40px; min-height: 40px;
  padding: 0; border: 1px solid #dce9eb; border-radius: 8px; background: #f4f8f8; color: #536d76;
}

.admin-modal > .co-tenant-search-modal { display: block; }
.co-tenant-search-modal .admin-modal-head { margin-bottom: 18px; }
.co-tenant-search-modal > .flow-note { margin: 0 0 22px; padding: 14px; font-size: 12px; line-height: 21px; }
.co-tenant-search-modal .co-tenant-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}
.co-tenant-search-form label { display: grid; gap: 8px; min-width: 0; color: #405e68; font-size: 13px; font-weight: 600; }
.co-tenant-search-form input { width: 100%; }
.co-tenant-search-modal .co-tenant-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  border-color: #a7dfe0;
  background: #eafbfa;
  color: #007d83;
}
.co-tenant-search-modal .co-tenant-search-button:hover { background: #dcf5f3; border-color: #81cece; }
.co-tenant-search-button .ui-icon, .co-tenant-invite-button .ui-icon { width: 17px; height: 17px; }
.co-tenant-search-result:not(:empty) {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dce9eb;
  color: #536d76;
  font-size: 13px;
  line-height: 21px;
}
.co-tenant-match { display: grid; gap: 12px; }
.co-tenant-match-label { color: #536d76; font-size: 12px; font-weight: 600; }
.co-tenant-match .check-in-resource-row { margin: 0; min-width: 0; }
.co-tenant-match-identity > span { display: grid; gap: 3px; min-width: 0; }
.co-tenant-match-identity strong { color: #0b2e3a; font-size: 14px; line-height: 21px; }
.co-tenant-match-identity small { color: #647d85; font-size: 12px; line-height: 18px; }
.co-tenant-match-identity b { flex: none; white-space: nowrap; }
.co-tenant-search-modal .co-tenant-invite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 2px 0 0;
}
.co-tenant-match > .flow-note { margin: 0; font-size: 12px; line-height: 20px; }
.co-tenant-search-modal .profile-form-error:not(:empty) { margin: 14px 0 0; }
.co-tenant-search-modal .profile-form-error:empty { display: none; }
.co-tenant-search-footer { margin-top: 24px; padding-top: 18px; border-top: 1px solid #dce9eb; }
.co-tenant-search-footer button { width: 100%; margin: 0; }
@media (max-width: 359px) {
  .co-tenant-match-identity { align-items: flex-start; flex-wrap: wrap; }
  .co-tenant-match-identity b { text-align: left; }
}

.inventory-library-modal { width: min(100%, 500px); max-height: calc(100dvh - 32px - env(safe-area-inset-bottom)); }
.inventory-library-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 12px 0 16px; padding: 4px; border-radius: 8px; background: #eaf3f3; }
.inventory-library-tabs button { min-height: 40px; border: 0; border-radius: 6px; background: transparent; color: #536d76; font-size: 13px; font-weight: 650; }
.inventory-library-tabs button[aria-selected="true"], .inventory-library-tabs button[aria-pressed="true"] { background: #fff; color: #007e82; box-shadow: 0 1px 4px rgb(11 46 58 / 10%); }
.inventory-library-tabs button:disabled { opacity: .5; }
.inventory-library-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; margin-bottom: 12px; }
.inventory-library-toolbar button, .inspection-inventory-add button, .inventory-library-actions button, .inspection-inventory-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 42px; border-radius: 8px; }
.inventory-library-toolbar button { border: 1px solid #18c7c5; background: #18c7c5; color: #0b2e3a; font-weight: 700; }
.inventory-library-toolbar .ui-icon, .inventory-library-remove .ui-icon, .inventory-library-delete .ui-icon, .inspection-inventory-add .ui-icon, .inspection-inventory-row .ui-icon { width: 17px; height: 17px; }
.inventory-library-modal input, .inventory-library-modal select, .inspection-inventory-editor input, .inspection-inventory-editor select { width: 100%; min-width: 0; height: 42px; padding: 8px 10px; border: 1px solid #c8dfe1; border-radius: 8px; background: #fff; color: #0b2e3a; font-size: 14px; }
.inventory-library-modal input:focus, .inventory-library-modal select:focus, .inspection-inventory-editor input:focus, .inspection-inventory-editor select:focus { border-color: #18c7c5; outline: 3px solid rgb(24 199 197 / 14%); }
.inventory-library-list { display: grid; gap: 0; }
.inventory-library-item, .inventory-library-room { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 64px; padding: 10px 2px; border: 0; border-bottom: 1px solid #dce9eb; background: #fff; color: #0b2e3a; text-align: left; }
.inventory-library-room { width: 100%; }
.inventory-library-item { width: 100%; border-radius: 0; font: inherit; cursor: pointer; }
.inventory-library-item:hover { background: #f0fbfb; }
.inventory-library-item:focus-visible { outline: 2px solid #007e82; outline-offset: -2px; }
.inventory-library-item span, .inventory-library-room-copy { display: grid; gap: 4px; min-width: 0; }
.inventory-library-item strong, .inventory-library-room strong { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.inventory-library-item small, .inventory-library-room small { color: #647d85; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.inventory-library-item > .inventory-library-item-arrow { display: grid; place-items: center; width: 38px; height: 38px; flex: none; color: #007e82; }
.inventory-library-room-meta { display: flex; align-items: center; flex: none; gap: 7px; }
.inventory-library-room-meta > .ui-icon { width: 18px; color: #007e82; }
.inventory-library-room-status { padding: 4px 7px; border-radius: 6px; font-size: 11px; line-height: 16px; font-style: normal; font-weight: 700; white-space: nowrap; }
.inventory-library-room-status.is-configured { background: #e7f8f5; color: #087e69; }
.inventory-library-room-status.is-empty { background: #f0f3f4; color: #647d85; }
.inventory-library-hint { margin: 8px 0 14px; color: #647d85; font-size: 12px; line-height: 20px; }
.inventory-library-form { display: grid; gap: 14px; }
.inventory-library-form label, .inspection-inventory-row label { display: grid; gap: 5px; min-width: 0; color: #536d76; font-size: 12px; font-weight: 650; }
.inventory-library-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.inventory-library-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.inventory-library-delete { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 42px; border: 0; background: transparent; color: #bc5324; font-size: 13px; }
.inventory-library-template-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 9px 8px; padding: 14px 0; border-bottom: 1px solid #dce9eb; }
.inventory-library-template-row > label { display: grid; gap: 5px; min-width: 0; color: #536d76; font-size: 12px; font-weight: 650; }
.inventory-library-template-row > .inventory-library-pair { grid-column: 1 / -1; }
.inventory-template-select { position: relative; min-width: 0; }
.inventory-template-select > span { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #c8dfe1; border-radius: 8px; background: #f8fbfb; color: #0b2e3a; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.inventory-template-select > span b { min-width: 0; font: inherit; overflow-wrap: anywhere; }
.inventory-template-select > span .ui-icon { flex: 0 0 17px; width: 17px; height: 17px; color: #536d76; }
.inventory-template-select > select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.inventory-template-select:focus-within > span { border-color: #18c7c5; outline: 3px solid rgb(24 199 197 / 14%); background: #fff; }
.inventory-template-add-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.inventory-template-add-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; }
.inventory-template-add-actions .ui-icon { flex: none; width: 17px; height: 17px; }
.inventory-template-add-hint { margin: -4px 0 0; }
.inspection-inventory-row { position: relative; display: grid; gap: 9px; padding: 14px 42px 14px 0; border-bottom: 1px solid #dce9eb; }
.inventory-library-remove, .inspection-inventory-row > button { position: absolute; right: 0; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #efddd6; border-radius: 8px; background: #fff8f4; color: #b54e2e; }
.inventory-library-remove { position: static; grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 6px; }
.inspection-inventory-row > button { top: 43px; }
.inspection-inventory-editor { margin: 16px 0; padding: 16px 0; border-top: 1px solid #dce9eb; border-bottom: 1px solid #dce9eb; }
.inspection-inventory-editor h3 { margin: 0; color: #0b2e3a; font-size: 16px; line-height: 23px; }
.inspection-inventory-editor .inventory-library-tabs { margin: 12px 0; }
.inspection-inventory-editor .inventory-library-hint { margin: 7px 0; }
.inspection-inventory-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; }
.inspection-inventory-add [data-inspection-add-manual] { grid-column: 1 / -1; }
.inspection-inventory-footer { display: grid; gap: 10px; margin-top: 14px; }
.inspection-inventory-footer small { color: #b35a26; font-size: 12px; line-height: 19px; }
.inspection-inventory-footer button { border: 1px solid #18c7c5; background: #f0fbfb; color: #007e82; font-weight: 700; }
.inspection-inventory-row > button { cursor: pointer; }
@media (max-width: 380px) { .inventory-library-modal, .move-in-inspection-modal { padding-inline: 14px; } .inventory-library-pair { gap: 7px; } .inventory-library-room { gap: 7px; } .inventory-library-room-meta { gap: 4px; } }
@media (max-width: 359px) { .inventory-template-add-actions { grid-template-columns: minmax(0, 1fr); } }
.admin-modal > :is(.move-in-inspection-modal, .move-out-request-modal) {
  width: min(100%, 448px);
  max-width: 100%;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}
.message-detail-modal .message-detail-close { top: 12px; right: 12px; }
.admin-modal-card :is(input, select, textarea), .message-detail :is(input, select, textarea) { max-width: 100%; min-width: 0; box-sizing: border-box; }
.admin-modal-card :is(.admin-form, .admin-form-grid, fieldset),
.message-detail :is(.tenant-form, fieldset),
.admin-modal-card :is(.admin-form, .admin-form-grid) > label,
.message-detail .tenant-form > label { min-width: 0; }
.admin-modal-card input:is([type="checkbox"], [type="radio"]), .message-detail input:is([type="checkbox"], [type="radio"]) { accent-color: #00868d; }
.admin-modal-card button, .message-detail button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.admin-modal-card :is(.flow-note, .admin-form-section), .message-detail .flow-note { background: #f1f8f8; border-color: #dce9eb; color: #536d76; }
.message-detail .message-detail-type { color: #007d83; }
.admin-modal-card :is(.modal-submit, .modal-secondary), .message-detail :is(.state-action, .form-secondary) { min-height: 44px; border-radius: 8px; }
.registration-preview img, .admin-image-preview-card img { max-width: 100%; max-height: calc(var(--h5-modal-height, 100dvh) - 150px); object-fit: contain; }
.vi-confirm-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: calc(var(--h5-modal-top, 0px) + var(--h5-modal-height, 100dvh) * .5) 0 auto;
  transform: translateY(-50%);
  width: min(360px, calc(100% - 32px));
  max-width: calc(var(--h5-page-width) - 32px);
  max-height: calc(var(--h5-modal-height, 100dvh) - 32px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid #dce9eb;
  border-radius: 12px;
  background: #fff;
  color: #0b2e3a;
  font-family: inherit;
  box-shadow: 0 16px 48px rgb(11 46 58 / 18%);
  overflow: auto;
  overscroll-behavior: contain;
}
.vi-confirm-dialog::backdrop { background: rgb(11 46 58 / 38%); backdrop-filter: blur(4px); }
.vi-confirm-dialog header { display: flex; align-items: center; gap: 12px; }
.vi-confirm-dialog header img { width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; }
.vi-confirm-dialog h2 { margin: 0; font-size: 18px; line-height: 26px; overflow-wrap: anywhere; }
.vi-confirm-dialog p { margin: 16px 0 22px; color: #536d76; font-size: 14px; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vi-confirm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vi-confirm-actions button { min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid #dce9eb; border-radius: 8px; background: #f4f8f8; color: #0b2e3a; font: inherit; font-size: 14px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.vi-confirm-actions [data-confirm-accept] { background: #18c7c5; border-color: #18c7c5; }
.vi-confirm-actions .is-danger { color: #b3263c; background: #fff0f2; border-color: #f1c7cf; }
.vi-confirm-actions button:focus-visible { outline: 2px solid #007d83; outline-offset: 3px; }

/* Global operation feedback stays inside the H5 canvas and above ordinary modals. */
.toast, .admin-toast {
  box-sizing: border-box;
  position: fixed;
  top: calc(var(--h5-modal-top, 0px) + var(--h5-modal-height, 100dvh) * .5);
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(360px, calc(100% - 32px), calc(var(--h5-page-width) - 32px));
  min-width: 0;
  min-height: 48px;
  max-width: calc(100% - 32px);
  max-height: min(220px, calc(var(--h5-modal-height, 100dvh) - 32px));
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #a7dfe0;
  border-radius: 10px;
  background: #eef9f9;
  color: #0b2e3a;
  box-shadow: inset 4px 0 #18c7c5, 0 14px 36px rgb(11 46 58 / 18%);
  font-size: 13px;
  font-weight: 600;
  line-height: 21px;
  text-align: center;
  white-space: normal;
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(.96);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.toast.show, .admin-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); transition-delay: 0s; }
.toast[data-type="success"], .admin-toast[data-type="success"] { border-color: #a9dfcf; background: #e9f8f4; color: #08745c; box-shadow: inset 4px 0 #18b58c, 0 14px 36px rgb(11 46 58 / 18%); }
.toast[data-type="warning"], .admin-toast[data-type="warning"] { border-color: #f1cfaa; background: #fff5e9; color: #974711; box-shadow: inset 4px 0 #ff8a3d, 0 14px 36px rgb(11 46 58 / 18%); }
.toast[data-type="error"], .admin-toast[data-type="error"] { border-color: #efc1ca; background: #fff1f3; color: #a72e43; box-shadow: inset 4px 0 #d9475d, 0 14px 36px rgb(11 46 58 / 18%); }

:is(.admin-modal-card, .message-detail, .service-panel, .registration-preview > section, .admin-image-preview-card)
:is([role="status"], [role="alert"], [aria-live], .service-error, .wifi-error, .registration-feedback, .profile-form-error) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .toast, .admin-toast { transition: none; }
}

/* Keep native form behavior and upload hit areas intact. */
.admin-modal-card .admin-form, .message-detail .tenant-form { gap: 18px; }
.admin-modal-card .admin-form label, .message-detail .tenant-form label,
.admin-modal-card .wifi-property-label { color: #405e68; font-size: 13px; line-height: 21px; font-weight: 500; }
.admin-modal-card :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea),
.message-detail :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea) {
  min-height: 48px;
  border: 1px solid var(--control-border, #cddfe2);
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--text, #0b2e3a);
  padding: 12px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  box-shadow: inset 0 1px 2px rgb(11 46 58 / 2%);
  color-scheme: light;
}
.admin-modal-card textarea, .message-detail textarea { min-height: 96px; resize: vertical; }
.admin-modal-card :is(input, textarea)::placeholder, .message-detail :is(input, textarea)::placeholder { color: #7b8f95; opacity: 1; }
.admin-modal-card :is(input, select, textarea):focus-visible,
.message-detail :is(input, select, textarea):focus-visible {
  outline: 2px solid #00868d;
  outline-offset: 2px;
}
.admin-modal-card :is(input, select, textarea):disabled, .message-detail :is(input, select, textarea):disabled {
  cursor: not-allowed;
  color: #687f87;
  background-color: #edf2f3;
  box-shadow: none;
}
.admin-modal-card input[readonly], .message-detail input[readonly] { background: #f0f5f6; color: #536d76; }
.admin-modal-card select option, .message-detail select option { background: #fff; color: #0b2e3a; }
.property-area-input { position: relative; display: block; min-width: 0; }
.admin-modal-card .property-area-input > input {
  padding-right: 52px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.admin-modal-card .property-area-input > input::-webkit-inner-spin-button,
.admin-modal-card .property-area-input > input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.property-area-input > span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: #536d76; font-size: 14px; line-height: 1; pointer-events: none; }
.admin-modal-card .property-area-note { color: #6a8188; font-size: 11px; line-height: 18px; font-weight: 400; }
input:is([type="date"], [type="month"], [type="time"], [type="datetime-local"]) {
  box-sizing: border-box;
  display: block;
  inline-size: 100%;
  width: 100%;
  min-inline-size: 0;
  min-width: 0;
  max-inline-size: 100%;
  max-width: 100%;
  -webkit-min-logical-width: 0;
  cursor: pointer;
}
input:is([type="date"], [type="month"], [type="time"], [type="datetime-local"])::-webkit-date-and-time-value { min-width: 0; text-align: left; }
input:is([type="date"], [type="month"], [type="time"], [type="datetime-local"])::-webkit-calendar-picker-indicator { flex: 0 0 auto; margin: 0; padding: 2px; cursor: pointer; }
.admin-modal-card .admin-form-section { padding: 18px 0 0; background: transparent; border-top-color: #dce9eb; }
.admin-modal-card .admin-form-section > strong { font-size: 15px; line-height: 24px; color: #0b2e3a; }
.admin-modal-card .flow-note, .message-detail .flow-note { padding: 12px; font-size: 12px; line-height: 21px; border-radius: 8px; }
.admin-modal-card .flow-note.warning, .message-detail .flow-note.warning { background: #fff3e9; color: #a94d19; }
.admin-modal-card .modal-submit, .message-detail .tenant-form > button:not(.form-secondary) {
  min-height: 48px; padding: 12px 16px; font-size: 14px; line-height: 22px;
  font-weight: 650; border-radius: 8px; background: #18c7c5; color: #0b2e3a;
  box-shadow: 0 3px 8px rgb(24 199 197 / 12%);
}
.admin-modal-card .modal-secondary, .message-detail .form-secondary {
  padding: 10px 12px; border: 1px solid #cddfe2; background: #f8fbfb;
  color: #0b2e3a; font-size: 14px; line-height: 22px;
}
.admin-modal-card .registration-danger { color: #b3263c; background: #fff3f5; border-color: #efd0d7; }
.property-lifecycle { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #dce9eb; }
.property-lifecycle > div { display: grid; gap: 4px; }
.property-lifecycle > div strong { color: #0b2e3a; font-size: 15px; line-height: 23px; }
.property-lifecycle > div small { color: #536d76; font-size: 12px; line-height: 20px; }
.property-lifecycle > button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 650; }
.property-lifecycle > button .ui-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.property-status-action.is-enable { border: 1px solid #18c7c5; background: #18c7c5; color: #0b2e3a; }
.property-status-action.is-disable { border: 1px solid #e6c695; background: #fff8ec; color: #8b5515; }
.property-delete-action { border: 1px solid #efc7cf; background: #fff5f6; color: #b3263c; }
.property-lifecycle > button:disabled { cursor: wait; opacity: .55; }
.property-lifecycle > p { margin: 0; color: #6a8188; font-size: 11px; line-height: 19px; }
.admin-modal-card .registration-review-confirmation { border-radius: 8px; }
.admin-modal-card .admin-data-row, .message-detail .message-group-row { border-color: #dce8ea; background: #fafcfc; }
.admin-modal-card .admin-data-row strong { color: #0b2e3a; }
.admin-modal-card .admin-data-row small { color: #536d76; }
.tenant-data-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto 18px;
  width: 100%;
  border: 1px solid #dce8ea;
  color: #0b2e3a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tenant-data-row > span { min-width: 0; }
.tenant-data-row > span strong,
.tenant-data-row > span small { display: block; overflow-wrap: anywhere; }
.tenant-data-row > em.is-pending { background: #fff4e9; color: #b85b18; }
.tenant-data-row > .ui-icon { width: 18px; height: 18px; color: #16868a; }
.tenant-profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfe8e7;
  border-radius: 8px;
  background: #effaf9;
}
.tenant-profile-summary > span { display: grid; place-items: center; width: 52px; height: 52px; }
.tenant-profile-summary > span img { width: 46px; height: 46px; object-fit: contain; }
.tenant-profile-summary > div { min-width: 0; }
.tenant-profile-summary strong,
.tenant-profile-summary small { display: block; overflow-wrap: anywhere; }
.tenant-profile-summary strong { font-size: 15px; line-height: 22px; }
.tenant-profile-summary small { color: #536d76; font-size: 11px; line-height: 18px; }
.tenant-profile-summary em {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  line-height: 17px;
  text-align: center;
}
.tenant-profile-summary em.is-complete { background: #e8f8f1; color: #0b8c68; }
.tenant-profile-summary em.is-incomplete { background: #fff1e6; color: #b85b18; }
.tenant-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid #dce9eb;
  border-radius: 8px;
  background: #dce9eb;
}
.tenant-profile-fields > div { min-width: 0; padding: 11px 12px; background: #fff; }
.tenant-profile-fields dt { color: #6b8188; font-size: 10px; line-height: 17px; }
.tenant-profile-fields dd { margin: 3px 0 0; color: #0b2e3a; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.tenant-profile-missing { margin-top: 12px; padding: 11px 12px; border: 1px solid #f2d2bd; border-radius: 8px; background: #fff6ef; }
.tenant-profile-missing strong { color: #a9501c; font-size: 12px; }
.tenant-profile-missing p { margin: 4px 0 0; color: #7a5b48; font-size: 11px; line-height: 18px; overflow-wrap: anywhere; }
.tenant-password-section { margin-top: 16px; padding: 12px; border: 1px solid #cfe8e7; border-radius: 8px; background: #f7fbfb; }
.tenant-password-section .contract-section-heading { margin: 0 0 10px; }
.tenant-password-note, .tenant-password-disabled { display: block; margin: 8px 0 0; color: #647d85; font-size: 11px; line-height: 18px; }
.tenant-password-disabled { color: #b85b18; }
.tenant-password-modal .tenant-password-context { display: grid; gap: 3px; margin-bottom: 12px; padding: 12px; border: 1px solid #cfe8e7; border-radius: 8px; background: #f7fbfb; }
.tenant-password-context strong { color: #0b2e3a; font-size: 15px; line-height: 22px; }
.tenant-password-context small { color: #536d76; font-size: 12px; line-height: 18px; }
.tenant-identity-section { margin: 16px 0; }
.tenant-identity-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.tenant-identity-photo-grid > :is(button, div) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  min-width: 0;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #cfe4e5;
  border-radius: 8px;
  background: #f7fbfb;
  color: #0b2e3a;
  font: inherit;
  text-align: left;
}
.tenant-identity-photo-grid > button { cursor: pointer; }
.tenant-identity-photo-grid > :is(button, div) > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; color: #16868a; }
.tenant-identity-photo-grid > :is(button, div) > span img { width: 38px; height: 38px; object-fit: contain; }
.tenant-identity-photo-grid > :is(button, div) > span .ui-icon { width: 24px; height: 24px; }
.tenant-identity-photo-grid b { min-width: 0; font-size: 12px; line-height: 19px; overflow-wrap: anywhere; }
.tenant-identity-photo-grid small { color: #687f87; font-size: 10px; line-height: 16px; }
.tenant-identity-photo-grid .is-empty { border-style: dashed; color: #71868d; }
.message-detail .message-detail-type { font-size: 12px; font-weight: 600; line-height: 20px; }
.admin-modal-card .wifi-password-input input { padding-right: 48px; }
.admin-modal-card .wifi-form .wifi-toggle input:checked { background: #008b90; }
@media (hover: hover) {
  .admin-modal-card .modal-secondary:hover, .message-detail .form-secondary:hover,
  .vi-confirm-actions button:not([data-confirm-accept]):hover { background: #edf7f6; border-color: #95d5d2; }
}
@media (max-width: 380px) {
  .admin-modal > .admin-modal-card, .message-detail-modal > .message-detail { padding: 16px; }
  .admin-modal-card .admin-form-grid, .admin-modal-card .record-summary { grid-template-columns: minmax(0, 1fr); }
  .admin-modal-card .lookup-result span { flex-wrap: wrap; justify-content: flex-start; }
  .tenant-data-row { grid-template-columns: minmax(0, 1fr) auto 18px; }
  .tenant-data-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .tenant-data-row > em { grid-column: 2; grid-row: 1; }
  .tenant-data-row > .ui-icon { grid-column: 3; grid-row: 1; }
  .tenant-profile-summary { grid-template-columns: auto minmax(0, 1fr); }
  .tenant-profile-summary em { grid-column: 1 / -1; justify-self: start; }
  .tenant-profile-fields,
  .tenant-identity-photo-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Strict check-in workflow: shared tenant/admin VI presentation. */
.check-in-progress-card,
.admin-check-in-progress-card {
  box-sizing: border-box;
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #cfe5e6;
  border-radius: 12px;
  background: #fff;
  color: #0b2e3a;
  box-shadow: 0 5px 18px rgb(11 46 58 / 5%);
}
.check-in-progress-card header,
.admin-check-in-progress-card header,
.admin-fee-confirmation header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.check-in-progress-icon,
.admin-check-in-progress-card header > span,
.admin-fee-confirmation header > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: #e6f9f8;
}
.check-in-progress-icon img,
.admin-check-in-progress-card header > span img,
.admin-fee-confirmation header > span img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.check-in-progress-card header > div,
.admin-check-in-progress-card header > div,
.admin-fee-confirmation header > div { min-width: 0; }
.check-in-progress-card header strong,
.admin-check-in-progress-card header strong,
.admin-fee-confirmation header strong {
  display: block;
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: anywhere;
}
.check-in-progress-card header small,
.admin-check-in-progress-card header small,
.admin-fee-confirmation header small {
  display: block;
  margin-top: 2px;
  color: #617980;
  font-size: 11px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.check-in-progress-card header em,
.admin-check-in-progress-card header em,
.admin-fee-confirmation header em,
.contract-template-meta em {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f9f8;
  color: #087f82;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
  white-space: nowrap;
}
.check-in-progress-card.is-completed header em { background: #eaf8f0; color: #0b8c68; }
.check-in-progress-card.is-legacy header em { background: #f3f6f7; color: #617980; }
.check-in-mini-steps,
.check-in-detail-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.check-in-mini-steps > span,
.check-in-detail-steps > span,
.check-in-detail-steps > div,
.check-in-detail-steps > li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  gap: 6px;
  color: #7b8f95;
  text-align: center;
}
.check-in-mini-steps i,
.check-in-detail-steps i,
.check-in-detail-steps > div > span,
.check-in-detail-steps > li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #cddfe2;
  border-radius: 50%;
  background: #f5f8f8;
  color: #617980;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.check-in-mini-steps i .ui-icon,
.check-in-detail-steps i .ui-icon,
.check-in-detail-steps > div > span .ui-icon,
.check-in-detail-steps > li > span .ui-icon { width: 15px; height: 15px; }
.check-in-mini-steps b,
.check-in-detail-steps b,
.check-in-detail-steps strong {
  max-width: 100%;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  overflow-wrap: anywhere;
}
.check-in-mini-steps .is-completed i,
.check-in-detail-steps .is-completed i,
.check-in-detail-steps .is-completed > span { border-color: #0b8c68; background: #eaf8f0; color: #0b8c68; }
.check-in-mini-steps .is-current i,
.check-in-detail-steps .is-current i,
.check-in-detail-steps .is-current > span { border-color: #18c7c5; background: #18c7c5; color: #0b2e3a; }
.check-in-mini-steps .is-current b,
.check-in-detail-steps .is-current b,
.check-in-detail-steps .is-current strong { color: #0b2e3a; font-weight: 700; }
.check-in-mini-steps .is-legacy i { border-style: dashed; background: #fff; color: #7b8f95; }
.check-in-legacy-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f8f8;
  color: #617980;
  font-size: 11px;
  line-height: 18px;
}
.check-in-progress-action,
.admin-check-in-progress-card > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid #bce9e7;
  border-radius: 8px;
  background: #eafafa;
  color: #087f82;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.check-in-progress-action .ui-icon,
.admin-check-in-progress-card > button .ui-icon { width: 18px; height: 18px; }
.admin-check-in-current,
.admin-check-in-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #f4f8f8;
  color: #536d76;
  font-size: 12px;
  line-height: 19px;
}
.admin-check-in-current span { min-width: 0; }
.admin-check-in-current b,
.admin-check-in-current small { display: block; overflow-wrap: anywhere; }
.admin-check-in-current b { color: #0b2e3a; font-size: 13px; }
.admin-check-in-current > strong { flex: 0 0 auto; color: #087f82; font-size: 12px; text-align: right; }

.check-in-detail-modal,
.check-in-list-modal,
.contract-send-modal,
.contract-template-list,
.contract-template-detail,
.contract-template-editor { width: min(100%, 416px); }
.check-in-list-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.check-in-list-summary span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dce9eb;
  border-radius: 8px;
  background: #f4f8f8;
}
.check-in-list-summary b {
  color: #087f82;
  font-size: 20px;
  line-height: 24px;
}
.check-in-list-summary small {
  color: #617980;
  font-size: 11px;
  line-height: 18px;
}
.admin-process-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.check-in-list-modal > .modal-submit { width: 100%; margin: 0 0 14px; }
.check-in-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfe8e7;
  border-radius: 8px;
  background: #effaf9;
}
.check-in-context > span { display: grid; place-items: center; width: 52px; height: 52px; }
.check-in-context > span img { width: 46px; height: 46px; object-fit: contain; }
.check-in-context > div { min-width: 0; }
.check-in-context strong,
.check-in-context small { display: block; overflow-wrap: anywhere; }
.check-in-context strong { font-size: 15px; line-height: 22px; }
.check-in-context small { color: #536d76; font-size: 11px; line-height: 18px; }
.check-in-context em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0e6;
  color: #c65317;
  font-size: 10px;
  font-style: normal;
  line-height: 17px;
  text-align: center;
}
.check-in-detail-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0; }
.check-in-detail-steps > span,
.check-in-detail-steps > div,
.check-in-detail-steps > li {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  text-align: left;
}
.check-in-detail-steps > li > div { min-width: 0; }
.check-in-detail-steps > li small { display: block; color: #7b8f95; font-size: 10px; line-height: 16px; }
.check-in-detail-steps b,
.check-in-detail-steps strong { font-size: 11px; line-height: 18px; }
.tenant-fee-confirmation,
.admin-fee-confirmation,
.contract-document,
.contract-read-notice,
.check-in-empty-panel,
.check-in-locked-note,
.check-in-resource-row {
  box-sizing: border-box;
  width: 100%;
  margin-top: 14px;
  border: 1px solid #dce9eb;
  border-radius: 8px;
  background: #fff;
}
.tenant-fee-confirmation,
.admin-fee-confirmation { padding: 14px; }
.tenant-fee-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.tenant-fee-summary-grid > div,
.tenant-fee-rule-list p,
.admin-fee-confirmation > div p {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f5f8f8;
}
.tenant-fee-summary-grid small,
.tenant-fee-rule-list > div > span,
.admin-fee-confirmation > div span { display: block; color: #617980; font-size: 11px; line-height: 17px; }
.tenant-fee-summary-grid b,
.tenant-fee-rule-list b,
.admin-fee-confirmation > div b { display: block; margin-top: 2px; color: #0b2e3a; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.tenant-fee-rule-list,
.admin-fee-confirmation > div { display: grid; gap: 8px; margin-top: 12px; }
.tenant-fee-rule-list > div > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tenant-fee-rule-list > div > span > b {
  display: inline;
  margin: 0;
  text-align: left;
}
.tenant-fee-rule-list p { display: block; width: 100%; white-space: normal; word-break: normal; overflow-wrap: break-word; }
.admin-fee-confirmation > div p { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: center; gap: 10px; }
.tenant-fee-rule-list b,
.admin-fee-confirmation > div b { margin-top: 0; text-align: right; }
.check-in-resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #536d76;
  font-size: 12px;
}
.check-in-resource-row b { color: #087f82; text-align: right; }
.check-in-empty-panel,
.check-in-locked-note,
.contract-read-notice { padding: 13px 14px; color: #536d76; font-size: 12px; line-height: 20px; }
.check-in-locked-note { background: #f4f8f8; }
.contract-read-notice { border-color: #f2d2bd; background: #fff5ee; color: #9a4b1f; }
.check-in-detail-actions { display: grid; gap: 10px; margin-top: 16px; }
.check-in-detail-actions .full-width { width: 100%; }
.initial-meter-action { display: grid; gap: 8px; }
.initial-meter-status { padding: 0 4px; color: #5b737d; font-size: 13px; line-height: 18px; text-align: right; }
.initial-meter-status b { font-weight: 700; }
.initial-meter-status.is-complete b { color: #07886c; }
.initial-meter-status.is-partial b { color: #b56b16; }
.initial-meter-status.is-empty b { color: #7a8c92; }
.check-in-view-contract { width: 100%; margin-top: 12px; }
.stay-history-panel {
  box-sizing: border-box;
  width: 100%;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #d4e8e9;
  border-radius: 8px;
  background: #fff;
}
.stay-history-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e3eeee;
  background: #f3f9f9;
}
.stay-history-panel > header strong { color: #0b2e3a; font-size: 13px; line-height: 20px; }
.stay-history-panel > header small { color: #617980; font-size: 11px; line-height: 18px; }
.stay-history-list { display: grid; }
.stay-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #e7eeee;
  background: #fff;
  color: #0b2e3a;
  font: inherit;
  text-align: left;
}
.stay-history-row:last-child { border-bottom: 0; }
button.stay-history-row:active { background: #eff9f8; }
.stay-history-row > span { min-width: 0; }
.stay-history-row b,
.stay-history-row small { display: block; overflow-wrap: anywhere; }
.stay-history-row b { font-size: 12px; line-height: 19px; }
.stay-history-row small { margin-top: 2px; color: #617980; font-size: 10px; line-height: 17px; }
.stay-history-row em {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf8f0;
  color: #0b8c68;
  font-size: 10px;
  font-style: normal;
  line-height: 17px;
  white-space: nowrap;
}
.stay-history-row > .ui-icon { width: 16px; height: 16px; color: #719097; }
.tenant-stay-history .stay-history-row { grid-template-columns: minmax(0, 1fr) auto; }
.tenant-contract-modal .contract-document {
  max-height: min(64dvh, 680px);
  padding: 16px;
  color: #193b46;
  font-size: 13px;
  line-height: 1.75;
  overflow: auto;
}
.contract-template-detail .contract-document {
  max-height: min(72dvh, 720px);
  padding: 16px;
  color: #193b46;
  font-size: 13px;
  line-height: 1.75;
  overflow: auto;
}
.tenant-contract-archive-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #cce7e6;
  border-radius: 9px;
  background: #eef9f8;
  color: #496871;
  font-size: 12px;
  line-height: 20px;
}
.tenant-contract-list { display: grid; gap: 10px; margin-top: 14px; }
.tenant-contract-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e8e9;
  border-radius: 10px;
  background: #fff;
  color: #0b2e3a;
  font: inherit;
  text-align: left;
  box-shadow: 0 4px 14px rgb(11 46 58 / 4%);
}
.tenant-contract-row:active { border-color: #8fd8d5; background: #f1fbfa; }
.tenant-contract-row-main { display: grid; min-width: 0; gap: 2px; }
.tenant-contract-row-main small { color: #00868d; font-size: 10px; font-weight: 700; line-height: 17px; }
.tenant-contract-row-main strong { color: #0b2e3a; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.tenant-contract-row-main em,
.tenant-contract-row-main i { color: #617980; font-size: 11px; font-style: normal; line-height: 18px; overflow-wrap: anywhere; }
.tenant-contract-row-meta { display: grid; justify-items: end; gap: 5px; min-width: 70px; }
.tenant-contract-row-meta b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2e8;
  color: #c65317;
  font-size: 10px;
  line-height: 17px;
  white-space: nowrap;
}
.tenant-contract-row-meta b.is-effective { background: #eaf8f0; color: #0b8c68; }
.tenant-contract-row-meta b.is-signed_pending_effective { background: #fff2e8; color: #c65317; }
.tenant-contract-row-meta b.is-terminated { background: #fff2e8; color: #c65317; }
.tenant-contract-row-meta b.is-superseded,
.tenant-contract-row-meta b.is-void { background: #f0f4f5; color: #687f87; }
.tenant-contract-row-meta small { color: #7b9096; font-size: 9px; line-height: 15px; white-space: nowrap; }
.tenant-contract-row-meta .ui-icon { width: 17px; height: 17px; color: #00868d; }
.tenant-contract-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 28px 18px;
  border: 1px dashed #cfe2e4;
  border-radius: 10px;
  background: #f8fbfb;
  text-align: center;
}
.tenant-contract-empty strong { color: #294b55; font-size: 14px; line-height: 22px; }
.tenant-contract-empty small { color: #71868d; font-size: 11px; line-height: 19px; }
.admin-contract-list-modal,
.admin-contract-detail-modal {
  width: min(100%, 416px);
}
.admin-contract-intro {
  display: grid;
  gap: 3px;
  margin: -2px 0 14px;
  padding: 12px 14px;
  border: 1px solid #cce8e8;
  border-radius: 10px;
  background: #f0faf9;
}
.admin-contract-intro strong { color: #0b2e3a; font-size: 13px; line-height: 20px; }
.admin-contract-intro small { color: #617980; font-size: 11px; line-height: 18px; }
.admin-contract-filter {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d7e8e9;
  border-radius: 10px;
  background: #f8fbfb;
}
.admin-contract-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-contract-filter-grid label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #405e68;
  font-size: 11px;
  line-height: 17px;
}
.admin-contract-filter-grid label:last-child { grid-column: 1 / -1; }
.admin-contract-filter-grid input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cddfe2;
  border-radius: 8px;
  background: #fff;
  color: #0b2e3a;
  font: inherit;
  font-size: 12px;
  outline: none;
}
.admin-contract-filter-grid input:focus { border-color: #18c7c5; box-shadow: 0 0 0 3px rgb(24 199 197 / 12%); }
.admin-contract-filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-contract-filter-actions :is(button, .modal-submit, .modal-secondary) { min-height: 40px; margin: 0; font-size: 12px; }
.admin-contract-results-note { color: #71868d; font-size: 11px; line-height: 18px; }
.admin-contract-list { display: grid; gap: 9px; margin-top: 9px; }
.admin-contract-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e8e9;
  border-radius: 10px;
  background: #fff;
  color: #0b2e3a;
  font: inherit;
  text-align: left;
  box-shadow: 0 4px 14px rgb(11 46 58 / 4%);
}
.admin-contract-row:active { border-color: #8fd8d5; background: #f1fbfa; }
.admin-contract-row-main { display: grid; min-width: 0; gap: 2px; }
.admin-contract-row-main small { color: #00868d; font-size: 10px; font-weight: 700; line-height: 17px; }
.admin-contract-row-main strong { color: #0b2e3a; font-size: 14px; line-height: 21px; overflow-wrap: anywhere; }
.admin-contract-row-main :is(em, i) { color: #617980; font-size: 11px; font-style: normal; line-height: 17px; overflow-wrap: anywhere; }
.admin-contract-row-meta { display: grid; justify-items: end; gap: 5px; min-width: 72px; }
.admin-contract-row-meta b,
.admin-contract-detail-hero > b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2e8;
  color: #c65317;
  font-size: 10px;
  line-height: 17px;
  white-space: nowrap;
}
.admin-contract-row-meta b.is-signed,
.admin-contract-row-meta b.is-effective,
.admin-contract-detail-hero > b.is-signed,
.admin-contract-detail-hero > b.is-effective { background: #eaf8f0; color: #0b8c68; }
.admin-contract-row-meta b.is-terminated,
.admin-contract-detail-hero > b.is-terminated { background: #fff2e8; color: #c65317; }
.admin-contract-row-meta b.is-signed,
.admin-contract-row-meta b.is-signed_pending_effective,
.admin-contract-detail-hero > b.is-signed,
.admin-contract-detail-hero > b.is-signed_pending_effective { background: #fff2e8; color: #c65317; }
.admin-contract-row-meta b.is-superseded,
.admin-contract-row-meta b.is-void,
.admin-contract-row-meta b.is-cancelled,
.admin-contract-detail-hero > b.is-superseded,
.admin-contract-detail-hero > b.is-void,
.admin-contract-detail-hero > b.is-cancelled { background: #f0f4f5; color: #687f87; }
.admin-contract-row-meta b.is-unknown,
.admin-contract-detail-hero > b.is-unknown { background: #edf7fa; color: #3d6976; }
.admin-contract-row-meta small { color: #7b9096; font-size: 9px; line-height: 15px; white-space: nowrap; }
.admin-contract-row-meta .ui-icon { width: 17px; height: 17px; color: #00868d; }
.admin-contract-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 18px;
  border: 1px dashed #cfe2e4;
  border-radius: 10px;
  background: #f8fbfb;
  text-align: center;
}
.admin-contract-empty strong { color: #294b55; font-size: 14px; line-height: 22px; }
.admin-contract-empty small { color: #71868d; font-size: 11px; line-height: 19px; }
.admin-contract-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #cce8e8;
  border-radius: 10px;
  background: #f0faf9;
}
.admin-contract-detail-hero > div { display: grid; min-width: 0; gap: 3px; }
.admin-contract-detail-hero strong { color: #0b2e3a; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.admin-contract-detail-hero small { color: #617980; font-size: 11px; line-height: 18px; overflow-wrap: anywhere; }
.admin-contract-detail-section { display: grid; gap: 10px; margin-top: 15px; }
.admin-contract-detail-section h3 { margin: 0; color: #0b2e3a; font-size: 14px; line-height: 22px; }
.admin-contract-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-contract-detail-grid .tenancy-detail-field { min-width: 0; }
.admin-contract-content-note { padding: 10px 12px; border: 1px solid #cce8e8; border-radius: 8px; background: #f5fbfb; color: #617980; font-size: 11px; line-height: 18px; }
.admin-contract-document { max-height: min(64dvh, 680px); padding: 13px; overflow-y: auto; border: 1px solid #d7e8e9; border-radius: 9px; background: #fff; color: #294b55; font-size: 12px; line-height: 21px; }
.admin-contract-document img { max-width: 100%; height: auto; }
.admin-contract-document :is(h1, h2, h3, p, ul, ol, table) { max-width: 100%; overflow-wrap: anywhere; }
.admin-contract-detail-modal .tenancy-back-button { min-width: 0; }
.contract-document :is(h1, h2, h3, p, ul, ol, table) { max-width: 100%; overflow-wrap: anywhere; }
.contract-send-preview { margin: 12px 0; }
.contract-send-preview[hidden] { display: none; }
.contract-send-preview > h3 { margin: 0 0 4px; font-size: 15px; }
.contract-send-preview > p { margin: 0; color: #617980; font-size: 11px; line-height: 18px; }
.contract-send-preview .contract-document { max-height: min(64dvh, 680px); overflow: auto; padding: 12px; font-size: 12px; line-height: 1.7; }
.contract-document table { width: 100%; border-collapse: collapse; }
.contract-document :is(td, th) { padding: 6px; border: 1px solid #dce9eb; }
.contract-inventory-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.contract-inventory-table :is(td, th) { padding: 6px; border: 1px solid #cddfe1; overflow-wrap: anywhere; vertical-align: top; }
.contract-inventory-table th { background: #f1f7f7; color: #405e68; font-weight: 700; text-align: left; }
.contract-inventory-table :is(th, td):nth-child(1) { width: 6%; text-align: center; }
.contract-inventory-table :is(th, td):nth-child(2) { width: 20%; }
.contract-inventory-table :is(th, td):nth-child(3) { width: 22%; }
.contract-inventory-table :is(th, td):nth-child(4) { width: 8%; text-align: center; }
.contract-inventory-table :is(th, td):nth-child(5) { width: 13%; }
.contract-inventory-table :is(th, td):nth-child(6) { width: 19%; }
.contract-inventory-table :is(th, td):nth-child(7) { width: 12%; text-align: right; }
.contract-document h2 { margin: 20px 0 9px; color: #0b2e3a; font-size: 16px; line-height: 24px; }
.contract-document h3 { margin: 16px 0 7px; color: #193b46; font-size: 14px; line-height: 22px; }
.contract-document p { margin: 8px 0; }
.contract-document .contract-summary { table-layout: fixed; margin: 8px 0 16px; }
.contract-document .contract-summary th { width: 30%; background: #f3f8f8; color: #405e68; text-align: left; }
.contract-document .contract-party-heading { background: #eaf5f4; font-weight: 700; text-align: left; }
.contract-document :is(.contract-signature-landlord, .contract-signature-tenant) { display: block; min-height: 70px; }
.contract-document .contract-paper-signature { table-layout: fixed; }
.contract-party-identity span { overflow-wrap: anywhere; }
.contract-document .contract-fee-table { table-layout: fixed; margin: 8px 0 16px; font-size: 12px; }
.contract-document .contract-fee-table th { background: #f3f8f8; color: #405e68; text-align: left; }
.contract-document .contract-important { color: #8b461f; font-weight: 700; }
.contract-document .contract-sign-confirm,
.contract-document .contract-sign-confirm :is(th, td),
.contract-document .contract-confirm-marker {
  color: #b42318;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: auto;
}
.contract-document .contract-confirm-marker { font-weight: 700; }
.tenant-contract-sign-form { display: grid; gap: 14px; margin-top: 16px; }
.tenant-contract-sign-form .contract-sign-submit { width: min(100%, 220px); justify-self: center; }
.contract-consent { display: flex; align-items: flex-start; gap: 9px; color: #405e68; font-size: 12px; line-height: 20px; }
.contract-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.signature-field { display: grid; gap: 8px; color: #405e68; font-size: 12px; }
.signature-field canvas {
  display: block;
  width: 100%;
  height: 156px;
  border: 1px dashed #80c9c7;
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}
.contract-party-grid { display: grid; gap: 10px; margin: 16px 0; }
.contract-number-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-width: 0; overflow-wrap: anywhere; }
.contract-number-line strong { min-width: 0; overflow-wrap: anywhere; }
.contract-number-line b { margin-left: auto; }
.contract-party-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1.2fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e8e9;
  border-radius: 8px;
  background: #f8fbfb;
}
.contract-party-identity { display: grid; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.contract-party-identity small { color: #617980; font-size: 12px; }
.contract-party-identity strong { color: #0b2e3a; font-size: 15px; }
.contract-party-identity span { color: #536d76; font-size: 12px; }
.contract-party-signature { display: grid; place-items: center; height: 88px; min-width: 0; border-bottom: 1px solid #b9d8dc; background: #fff; }
.contract-party-signature img { display: block; width: 100%; height: 80px; object-fit: contain; }
.contract-party-signature em { color: #7b9096; font-size: 12px; font-style: normal; }
.contract-paper-archive { margin-top: 16px; padding-top: 12px; border-top: 1px solid #d7e8e9; }
.contract-paper-archive h3 { margin: 0 0 8px; font-size: 15px; }
.contract-paper-archive p { margin: 0 0 12px; color: #536d76; font-size: 12px; line-height: 1.7; }
.contract-paper-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 12px 0; }
.contract-paper-pages a { display: grid; gap: 6px; min-width: 0; padding: 6px; border: 1px solid #d7e8e9; border-radius: 7px; color: #0b2e3a; text-decoration: none; text-align: center; }
.contract-paper-pages img { display: block; width: 100%; height: 125px; object-fit: contain; background: #fff; }
.contract-paper-pages span { font-size: 11px; }
.contract-paper-original { padding: 12px 0; border-top: 1px solid #d7e8e9; margin: 12px 0; min-width: 0; }
.contract-paper-original strong, .contract-paper-original > span { display: block; overflow-wrap: anywhere; }
.contract-paper-original > span { color: #607f89; font-size: 12px; margin-top: 5px; }
.contract-paper-original > div { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 10px; }
.contract-paper-original a { display: inline-flex; align-items: center; gap: 6px; color: #00858a; font-size: 14px; text-decoration: none; min-height: 36px; }
.contract-paper-original a:hover { text-decoration: underline; }
.contract-paper-original a .ui-icon { width: 18px; height: 18px; }
.paper-archive-modal { color: var(--text); }
.paper-archive-modal .admin-modal-head { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.paper-archive-heading { min-width: 0; margin: 16px 0 10px; }
.paper-archive-heading small { display: block; color: var(--brand-strong); font-size: 11px; font-weight: 700; line-height: 18px; }
.paper-archive-heading h3 { margin: 2px 0 4px; font-size: 21px; line-height: 29px; }
.paper-archive-heading p { margin: 0; color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.paper-archive-intro { margin: 0 0 16px; padding: 11px 12px; border-left: 3px solid var(--brand); border-radius: 0 6px 6px 0; background: #f2fbfa; color: var(--secondary); font-size: 12px; line-height: 19px; }
.paper-archive-section { padding: 16px 0; border-top: 1px solid var(--border); }
.paper-archive-step { display: flex; align-items: center; gap: 9px; min-width: 0; margin-bottom: 12px; }
.paper-archive-step > span { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); font-size: 11px; font-weight: 800; }
.paper-archive-final .paper-archive-step > span { background: var(--accent-soft); color: var(--accent-strong); }
.paper-archive-step h4 { min-width: 0; margin: 0; font-size: 15px; line-height: 22px; }
.paper-archive-status { margin-left: auto; padding: 4px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; line-height: 15px; white-space: nowrap; }
.paper-archive-link, .paper-archive-upload-button, .paper-archive-confirm { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #9bdcda; border-radius: 8px; color: var(--brand-strong); background: #fff; font-size: 13px; font-weight: 700; line-height: 20px; text-align: center; text-decoration: none; }
.paper-archive-link span, .paper-archive-upload-button span, .paper-archive-confirm span { min-width: 0; }
.paper-archive-link .ui-icon, .paper-archive-upload-button .ui-icon, .paper-archive-confirm .ui-icon { width: 18px; height: 18px; }
.paper-archive-link .ui-icon:last-child { margin-left: auto; }
.paper-archive-link:focus-visible, .paper-archive-upload-button:focus-visible, .paper-archive-confirm:focus-visible, .paper-archive-clear:focus-visible { outline: 3px solid #087f8266; outline-offset: 2px; }
.paper-archive-empty { margin: 0 0 12px; padding: 12px; border: 1px dashed var(--control-border); border-radius: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.paper-archive-modal .contract-paper-pages { margin: 0 0 12px; }
.paper-archive-upload, .paper-archive-verify { display: grid; gap: 10px; }
.paper-upload-picker { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px; border: 1px dashed var(--brand-strong); border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 700; cursor: pointer; }
.paper-upload-picker > span { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.paper-upload-picker.has-selection { border-style: solid; border-color: var(--brand); background: #e9fbfa; box-shadow: inset 0 0 0 1px #18aaa833; font-size: 14px; }
.paper-upload-picker:focus-within { outline: 3px solid #087f8266; outline-offset: 2px; }
.paper-upload-picker .ui-icon { width: 19px; height: 19px; }
.paper-upload-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.paper-archive-hint, .paper-upload-selection { margin: 0; color: var(--secondary); font-size: 11px; line-height: 18px; overflow-wrap: anywhere; }
.paper-upload-selection { color: var(--brand-strong); font-size: 12px; }
.paper-upload-selection:empty { display: none; }
.paper-archive-upload-button { border-color: var(--brand); background: var(--brand); color: var(--text); }
.paper-archive-clear { display: flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 10px; padding: 6px 0; border: 0; background: transparent; color: var(--secondary); font-size: 11px; text-align: left; }
.paper-archive-clear .ui-icon { width: 16px; height: 16px; }
.paper-archive-note { display: grid; gap: 6px; color: var(--secondary); font-size: 12px; font-weight: 600; }
.paper-archive-note textarea { width: 100%; min-height: 64px; padding: 10px; border: 1px solid var(--control-border); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-weight: 400; resize: vertical; }
.paper-archive-note textarea:focus { outline: 3px solid #087f8226; border-color: var(--brand-strong); }
.paper-archive-consent { padding: 10px; border-radius: 8px; background: #f7fafa; }
.paper-archive-consent input { accent-color: var(--brand-strong); }
.paper-archive-confirm { border-color: var(--brand); background: var(--brand); color: var(--text); }
.paper-archive-modal [data-paper-error]:empty { display: none; }
@media (max-width: 400px) {
  .contract-party-card { grid-template-columns: minmax(0, 1fr); }
  .contract-document { padding: 13px; font-size: 12px; line-height: 1.7; }
  .contract-document .contract-summary,
  .contract-document .contract-fee-table { font-size: 11px; }
  .contract-document :is(td, th) { padding: 6px 5px; }
}
.contract-template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #617980;
  font-size: 12px;
}
.contract-variable-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
  max-height: 230px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid #d5e8e9;
  border-radius: 8px;
  background: #f7fbfb;
}
.contract-variable-list button {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 58px;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid #bce9e7;
  border-radius: 7px;
  background: #fff;
  color: #0b2e3a;
  text-align: left;
}
.contract-variable-list button:active { background: #eafafa; }
.contract-variable-list button span {
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.contract-variable-list button code {
  color: #087f82;
  font-size: 9px;
  line-height: 15px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.contract-template-row { width: 100%; text-align: left; }
.contract-template-create-row { display: flex; justify-content: flex-end; margin: 14px 0 4px; }
.contract-template-create-row .modal-submit { width: auto; min-height: 44px; padding: 10px 14px; font-size: 13px; line-height: 20px; }
.contract-template-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 8px;
  padding: 4px;
  border: 1px solid #cce7e7;
  border-radius: 8px;
  background: #edf9f8;
}
.contract-template-type-tabs button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #536d76;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}
.contract-template-type-tabs button[aria-selected="true"] {
  border-color: #8dd8d5;
  background: #fff;
  color: #007e82;
  box-shadow: 0 1px 3px rgb(11 46 58 / 8%);
}
.contract-template-type-tabs button:focus-visible { outline: 2px solid #00868d; outline-offset: 1px; }
.form-static-value {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cce3e5;
  border-radius: 7px;
  background: #f3f8f8;
  color: #087f82;
  font-size: 13px;
  font-weight: 700;
}
.contract-template-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 14px 0 10px;
  padding: 4px;
  border: 1px solid #d5e8e9;
  border-radius: 8px;
  background: #f3f8f8;
}
.contract-template-filters button {
  min-width: 0;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #536d76;
  font-size: 13px;
  font-weight: 650;
}
.contract-template-filters button[aria-selected="true"] {
  border-color: #a8e0de;
  background: #fff;
  color: #007e82;
  box-shadow: 0 1px 3px rgb(11 46 58 / 8%);
}
.contract-template-filters button:focus-visible { outline: 2px solid #00868d; outline-offset: 1px; }
.contract-template-list .contract-template-row {
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 12px;
  padding: 13px 12px;
}
.contract-template-row > span { min-width: 0; }
.admin-modal-card .contract-template-row > em {
  justify-self: end;
  width: max-content;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 18px;
}
.contract-template-row > svg { flex: 0 0 18px; width: 18px; height: 18px; }
.contract-template-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 8px; }
.contract-template-actions button { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 44px; padding: 9px 6px; font-size: 12px; line-height: 18px; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.contract-template-actions button > span { min-width: 0; overflow-wrap: anywhere; }
.contract-template-actions svg { width: 16px; height: 16px; flex: none; }
.contract-template-actions .contract-template-archive { color: #087f82; border-color: #b9e6e4; background: #f2fbfa; }
.contract-template-actions .contract-template-delete { color: #b3263c; border-color: #efd0d7; }
.contract-template-actions button:disabled { opacity: .5; cursor: not-allowed; }
.contract-template-detail > .modal-submit { display: block; width: max-content; max-width: 100%; margin: 0 auto 12px; }
@media (max-width: 380px) {
  .contract-template-actions { gap: 6px; }
  .contract-template-actions button { gap: 3px; padding-inline: 3px; font-size: 11px; }
  .contract-template-actions svg { width: 15px; height: 15px; }
}
.contract-template-editor .jodit-container { max-width: 100%; border-color: #cddfe2; border-radius: 8px; overflow: hidden; }
.contract-template-editor .jodit-workplace { min-height: clamp(420px, 58dvh, 600px) !important; }

/* Contract V2: signatures and clause confirmation stay readable on narrow H5 dialogs. */
.admin-contract-party-grid,
.admin-contract-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-contract-party-grid > label { min-width: 0; }
.admin-signature-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #cce8e8;
  border-radius: 10px;
  background: #f6fbfb;
}
.admin-signature-card > div,
.contract-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.admin-signature-card > div { color: #0b2e3a; font-size: 12px; line-height: 18px; }
.admin-signature-card canvas {
  display: block;
  width: 100%;
  height: 140px;
  border: 1px dashed #80c9c7;
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}
.admin-signature-card small,
.contract-section-heading small { color: #71868d; font-size: 10px; line-height: 17px; }
.admin-contract-signature-grid { align-items: stretch; }
.admin-contract-signature {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 10px;
  border: 1px solid #d7e8e9;
  border-radius: 9px;
  background: #f8fbfb;
}
.admin-contract-signature > div { display: grid; min-width: 0; gap: 3px; }
.admin-contract-signature strong { color: #0b2e3a; font-size: 12px; line-height: 18px; }
.admin-contract-signature small { color: #71868d; font-size: 10px; line-height: 16px; overflow-wrap: anywhere; }
.admin-contract-signature img {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 2px;
  border-top: 1px solid #dce9eb;
  background: #fff;
  object-fit: contain;
  object-position: left center;
}
.admin-contract-signature.is-pending { color: #7b9096; }
.admin-contract-clause-list,
.admin-contract-events,
.contract-template-clauses,
.contract-template-body,
.contract-clause-editor { display: grid; gap: 8px; }
.contract-confirmation-list { display: grid; gap: 8px; min-width: 0; }
.contract-confirmation-group {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d7e8e9;
  border-radius: 8px;
  background: #f8fbfb;
}
.contract-confirmation-group strong { color: #0b2e3a; font-size: 12px; line-height: 18px; }
.contract-confirmation-group small { color: #536d76; font-size: 11px; line-height: 18px; overflow-wrap: anywhere; }
.admin-contract-clause-row,
.contract-clause-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid #d7e8e9;
  border-radius: 9px;
  background: #f8fbfb;
}
.admin-contract-clause-row { grid-template-columns: minmax(0, 1fr); }
.admin-contract-clause-row.is-acknowledged,
.contract-clause-row.is-acknowledged { border-color: #bce9e7; background: #effaf9; }
.admin-contract-clause-row > div,
.contract-clause-copy { display: grid; min-width: 0; gap: 3px; }
.admin-contract-clause-row strong,
.contract-clause-copy strong { color: #0b2e3a; font-size: 12px; line-height: 18px; }
.admin-contract-clause-row small,
.contract-clause-copy small { color: #71868d; font-size: 10px; line-height: 16px; }
.admin-contract-clause-row p,
.contract-clause-copy p { margin: 2px 0 0; color: #536d76; font-size: 11px; line-height: 18px; overflow-wrap: anywhere; }
.contract-clause-index,
.contract-clause-number {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border-radius: 50%;
  background: #eafafa;
  color: #087f82;
  font-size: 10px;
  font-weight: 700;
}
.contract-clause-row { grid-template-columns: auto minmax(0, 1fr); }
.contract-clause-copy { align-content: start; gap: 8px; }
.contract-clause-read-button {
  justify-self: start;
  width: auto;
  min-width: 118px;
  min-height: 40px;
  margin-top: 6px;
  padding: 9px 16px;
  border: 1px solid #a7dfe0;
  border-radius: 8px;
  background: #eafafa;
  color: #007d83;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}
.contract-clause-read-button:focus-visible, .contract-clause-reader-confirm:focus-visible { outline: 2px solid #007d83; outline-offset: 2px; }
.contract-clause-read-button.is-confirmed:disabled { border-color: #bce9d9; background: #e9f8f2; color: #087f67; opacity: 1; cursor: default; }
.contract-clause-confirmed-time { display: block; margin-top: 1px; font-size: 11px !important; line-height: 18px !important; color: #087f82 !important; }
.contract-clause-reader-modal { background: rgb(11 46 58 / 50%); }
.message-detail-modal > .contract-clause-reader { border-top: 3px solid #18c7c5; }
.contract-clause-reader-content {
  max-height: min(42dvh, 360px);
  margin: 18px 0 12px;
  padding: 16px;
  border: 1px solid #d7e8e9;
  border-radius: 8px;
  background: #f5fbfb;
  color: #294b55;
  font-size: 14px;
  line-height: 24px;
  white-space: pre-wrap;
  overflow: auto;
  overflow-wrap: anywhere;
}
.contract-clause-reader-hint { margin: 0 0 12px !important; color: #617980; font-size: 12px; line-height: 20px; }
.contract-clause-reader-confirm {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #18c7c5;
  border-radius: 8px;
  background: #18c7c5;
  color: #0b2e3a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.contract-clause-reader-confirm:disabled { border-color: #d7e8e9; background: #f0f5f5; color: #71868d; cursor: not-allowed; }
.admin-contract-event {
  padding: 9px 10px;
  border: 1px solid #d7e8e9;
  border-radius: 9px;
  background: #f8fbfb;
}
.admin-contract-event strong { display: block; color: #294b55; font-size: 11px; line-height: 17px; }
.admin-contract-event small { display: block; margin-top: 2px; color: #71868d; font-size: 10px; line-height: 16px; overflow-wrap: anywhere; }
.contract-clause-editor-list { display: grid; gap: 10px; }
.contract-clause-editor-row {
  padding: 11px;
  border: 1px solid #d7e8e9;
  border-radius: 9px;
  background: #f8fbfb;
}
.contract-clause-editor-head { margin-bottom: 9px; }
.contract-clause-editor-head strong { color: #0b2e3a; font-size: 12px; line-height: 18px; }
.contract-clause-required { display: grid; gap: 5px; align-content: end; }
.contract-clause-required > span:first-child { color: #405e68; font-size: 11px; line-height: 17px; }
.contract-clause-required > span:last-child { display: flex; align-items: center; gap: 6px; color: #617980; font-size: 10px; line-height: 17px; }
.contract-clause-required input { width: 18px; height: 18px; margin: 0; }
.contract-content-warning {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #ffcfb0;
  border-radius: 9px;
  background: #fff6ef;
  color: #a24a20;
  font-size: 11px;
  line-height: 18px;
}
a.modal-submit { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Historical bills and payment records share the WO爱家 VI palette. */
.bill-history-modal { display: block; }
.bill-history-intro { margin: -4px 0 16px !important; }
.bill-history-period {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #cce8e8;
  border-radius: 10px;
  background: #effafa;
}
.bill-history-period label { display: grid; gap: 6px; min-width: 0; color: #536d76; font-size: 11px; line-height: 18px; }
.bill-history-period select {
  width: 100%;
  min-height: 44px !important;
  padding: 9px 34px 9px 11px !important;
  border-color: #b8dddd !important;
  background-color: #fff !important;
  color: #0b2e3a !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}
.bill-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid #dce9eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.bill-history-summary > div { min-width: 0; padding: 12px 8px; text-align: center; }
.bill-history-summary > div + div { border-left: 1px solid #e2ecee; }
.bill-history-summary span, .bill-history-summary strong { display: block; overflow-wrap: anywhere; }
.bill-history-summary span { color: #617980; font-size: 10px; line-height: 17px; }
.bill-history-summary strong { margin-top: 4px; color: #0b2e3a; font-size: 14px; line-height: 21px; }
.bill-history-summary > div:nth-child(2) strong { color: #078b69; }
.bill-history-summary > div:nth-child(3) strong { color: #c75016; }
.bill-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.bill-history-heading strong { color: #0b2e3a; font-size: 14px; line-height: 22px; }
.bill-history-heading small { color: #617980; font-size: 11px; line-height: 18px; }
.bill-history-list, .finance-record-list { display: grid; gap: 9px; }
.bill-history-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 17px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce8ea;
  border-radius: 10px;
  background: #fff;
  color: #0b2e3a;
  text-align: left;
}
.bill-history-row:active { background: #eff9f8; border-color: #9fd8d6; }
.bill-history-icon { display: grid; place-items: center; width: 42px; height: 42px; }
.bill-history-icon .brand-image-icon { width: 38px; height: 38px; object-fit: contain; }
.bill-history-copy, .bill-history-amount { min-width: 0; }
.bill-history-copy strong, .bill-history-copy small, .bill-history-amount b, .bill-history-amount em { display: block; overflow-wrap: anywhere; }
.bill-history-copy strong { font-size: 13px; line-height: 20px; }
.bill-history-copy small { margin-top: 2px; color: #617980; font-size: 10px; line-height: 16px; }
.bill-history-amount { text-align: right; }
.bill-history-amount b { color: #0b2e3a; font-size: 13px; line-height: 20px; }
.bill-history-amount em, .finance-record-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #617980;
  background: #eef3f4;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  white-space: nowrap;
}
.bill-history-amount .is-paid, .finance-record-status.is-paid { color: #078b69; background: #e4f8ef; }
.bill-history-amount .is-pending, .finance-record-status.is-pending { color: #b95a20; background: #fff0e4; }
.bill-history-amount .is-overdue, .finance-record-status.is-failed { color: #b3263c; background: #fff0f2; }
.finance-record-status.is-refunded { color: #087f82; background: #e7f8f7; }
.bill-history-row > .ui-icon { width: 17px; height: 17px; color: #00868d; }
.bill-history-empty, .bill-history-loading { display: grid; place-items: center; gap: 5px; min-height: 150px; padding: 22px; border: 1px dashed #c8dddf; border-radius: 10px; background: #f8fbfb; text-align: center; }
.bill-history-empty strong, .bill-history-loading strong { color: #0b2e3a; font-size: 14px; line-height: 22px; }
.bill-history-empty small, .bill-history-loading small { color: #617980; font-size: 11px; line-height: 18px; }
.finance-record-modal .flow-note { margin-bottom: 12px; }
.finance-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.finance-list-heading strong { color: #0b2e3a; font-size: 14px; line-height: 22px; }
.finance-list-heading small { color: #617980; font-size: 11px; line-height: 18px; }
.deposit-pending-section { margin: 0 0 6px; }
.deposit-pending-list { display: grid; gap: 8px; }
.deposit-pending-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid #ffd8be;
  border-radius: 10px;
  background: #fff8f2;
  color: #0b2e3a;
  text-align: left;
}
.deposit-pending-row span { min-width: 0; }
.deposit-pending-row strong, .deposit-pending-row small { display: block; overflow-wrap: anywhere; }
.deposit-pending-row strong { font-size: 12px; line-height: 19px; }
.deposit-pending-row small { margin-top: 3px; color: #6d625a; font-size: 10px; line-height: 16px; }
.deposit-pending-row em { padding: 4px 7px; border-radius: 999px; color: #b95a20; background: #ffe9d9; font-size: 10px; font-style: normal; white-space: nowrap; }
.deposit-pending-row > .ui-icon { width: 16px; height: 16px; color: #b95a20; }
.deposit-pending-row:active { border-color: #f3af81; background: #fff2e7; }
.deposit-pending-row:disabled { cursor: default; opacity: .72; }
.deposit-pending-row:disabled:active { border-color: #ffd8be; background: #fff8f2; }
.deposit-register-modal .admin-modal-head { margin-bottom: 16px; }
.deposit-register-hero { display: grid; gap: 4px; margin-bottom: 12px; }
.deposit-register-hero strong { color: #0b2e3a; font-size: 19px; line-height: 27px; }
.deposit-register-hero small { color: #617980; font-size: 11px; line-height: 18px; }
.deposit-register-modal .payment-context { background: #effafa; border-color: #cce8e8; }
.deposit-register-modal .modal-submit { margin-top: 4px; }
.finance-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 13px;
  border: 1px solid #dce8ea;
  border-radius: 10px;
  background: #fbfdfd;
}
.finance-record-main { grid-row: 1 / span 2; min-width: 0; }
.finance-record-main strong, .finance-record-main small, .finance-record-amount strong, .finance-record-amount small { display: block; overflow-wrap: anywhere; }
.finance-record-main strong { color: #0b2e3a; font-size: 13px; line-height: 20px; }
.finance-record-main small { margin-top: 3px; color: #617980; font-size: 10px; line-height: 17px; }
.finance-record-amount { min-width: 88px; text-align: right; }
.finance-record-amount strong { color: #0b2e3a; font-size: 14px; line-height: 21px; }
.finance-record-amount small { margin-top: 2px; color: #536d76; font-size: 10px; line-height: 17px; }
.finance-record-status { justify-self: end; margin-top: 0; }
button.finance-record-row {
  position: relative;
  width: 100%;
  padding-right: 42px;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.finance-record-row.is-interactive:active { border-color: #9edede; background: #f0fbfa; }
.finance-record-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #087f82;
  transform: translateY(-50%);
}
.finance-record-arrow .ui-icon { width: 16px; height: 16px; }
.deposit-record-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #bce9e7;
  border-radius: 8px;
  background: #ecfafa;
}
.deposit-record-summary div { grid-row: 1 / span 2; }
.deposit-record-summary small,
.deposit-record-summary strong,
.deposit-record-summary span,
.deposit-record-summary time { display: block; }
.deposit-record-summary small { color: #087f82; font-size: 11px; line-height: 17px; }
.deposit-record-summary strong { margin-top: 2px; color: #0b2e3a; font-size: 22px; line-height: 29px; }
.deposit-record-summary span { align-self: end; color: #0b2e3a; font-size: 12px; font-weight: 700; text-align: right; }
.deposit-record-summary time { color: #617980; font-size: 10px; text-align: right; }
.deposit-record-unlinked {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #ffd8be;
  border-radius: 8px;
  background: #fff5ed;
}
.deposit-record-unlinked strong { color: #b95a20; font-size: 13px; line-height: 20px; }
.deposit-record-unlinked small { color: #6d625a; font-size: 10px; line-height: 18px; }
.admin-message-detail-row { position: relative; }
.admin-message-detail-row.is-unread { padding-left: 30px; }
.admin-message-detail-row.is-unread::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #df3650;
  content: "";
  transform: translateY(-50%);
}

@media (max-width: 380px) {
  .check-in-progress-card,
  .admin-check-in-progress-card { padding: 14px 12px; }
  .check-in-progress-card header,
  .admin-check-in-progress-card header,
  .admin-fee-confirmation header,
  .check-in-context { grid-template-columns: auto minmax(0, 1fr); }
  .check-in-progress-card header em,
  .admin-check-in-progress-card header em,
  .admin-fee-confirmation header em,
  .check-in-context em { grid-column: 2; justify-self: start; }
  .check-in-mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .check-in-detail-steps,
  .tenant-fee-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-fee-confirmation > div p { grid-template-columns: minmax(0, 1fr); }
  .tenant-fee-rule-list b,
  .admin-fee-confirmation > div b { text-align: left; }
  .stay-history-row { grid-template-columns: minmax(0, 1fr) auto; }
  .stay-history-row > .ui-icon { display: none; }
  .signature-field canvas { height: 136px; }
  .bill-history-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .bill-history-row > .ui-icon { display: none; }
  .bill-history-icon { width: 40px; height: 40px; }
  .bill-history-summary > div { padding: 10px 5px; }
  .bill-history-summary strong { font-size: 12px; }
  .finance-record-row { grid-template-columns: minmax(0, 1fr) auto; padding: 11px; }
  button.finance-record-row { padding-right: 38px; }
  .contract-variable-list { grid-template-columns: minmax(0, 1fr); }
  .admin-contract-filter-grid,
  .admin-contract-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-contract-filter-grid label:last-child { grid-column: auto; }
  .admin-contract-filter-actions { grid-template-columns: minmax(0, 1fr); }
  .admin-contract-row { grid-template-columns: minmax(0, 1fr); }
  .admin-contract-row-meta { grid-template-columns: auto auto; justify-items: start; align-items: center; min-width: 0; }
  .admin-contract-row-meta .ui-icon { justify-self: end; }
  .admin-contract-detail-hero { align-items: flex-start; flex-direction: column; }
  .admin-contract-party-grid,
  .admin-contract-signature-grid { grid-template-columns: minmax(0, 1fr); }
  .contract-clause-editor-head { align-items: flex-start; flex-direction: column; }
}

/* Check-in workflow VI refinement. Visual-only: existing DOM and actions stay unchanged. */
.check-in-progress-card,
.admin-check-in-progress-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-color: #c8e4e4;
  background: #fff;
  box-shadow: 0 10px 28px rgb(11 46 58 / 7%);
}
.check-in-progress-card::before,
.admin-check-in-progress-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 4px;
  background: #18c7c5;
  content: "";
}
.check-in-progress-card::after,
.admin-check-in-progress-card::after {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: -1;
  width: 92px;
  height: 92px;
  border-radius: 0 0 0 92px;
  background: #f0fbfa;
  content: "";
}
.check-in-progress-card header,
.admin-check-in-progress-card header,
.admin-fee-confirmation header {
  position: relative;
  z-index: 1;
  gap: 10px;
}
.check-in-progress-icon,
.admin-check-in-progress-card header > span,
.admin-fee-confirmation header > span {
  width: 50px;
  height: 50px;
  border: 1px solid #bcebea;
  border-radius: 10px;
  background: #e8f9f8;
}
.check-in-progress-icon img,
.admin-check-in-progress-card header > span img,
.admin-fee-confirmation header > span img {
  width: 42px;
  height: 42px;
}
.check-in-progress-card header strong,
.admin-check-in-progress-card header strong,
.admin-fee-confirmation header strong {
  color: #0b2e3a;
  font-size: 16px;
  line-height: 23px;
}
.check-in-progress-card header small,
.admin-check-in-progress-card header small,
.admin-fee-confirmation header small {
  margin-top: 3px;
  color: #5e767e;
  font-size: 11px;
  line-height: 17px;
}
.check-in-progress-card header em,
.admin-check-in-progress-card header em,
.admin-fee-confirmation header em {
  position: relative;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid #b9e8e6;
  background: #e9fafa;
  color: #087f82;
  font-weight: 700;
}

.check-in-mini-steps {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
  padding: 14px 6px 12px;
  border: 1px solid #e1eded;
  border-radius: 10px;
  background: #f8fbfb;
}
.check-in-mini-steps > span {
  position: relative;
  z-index: 1;
  gap: 7px;
  padding: 0 2px;
}
.check-in-mini-steps > span:not(:last-child)::after {
  position: absolute;
  top: 15px;
  left: calc(50% + 17px);
  z-index: -1;
  width: calc(100% - 30px);
  height: 2px;
  border-radius: 2px;
  background: #d7e4e5;
  content: "";
}
.check-in-mini-steps > span.is-completed:not(:last-child)::after { background: #70d2ba; }
.check-in-mini-steps > span.is-current:not(:last-child)::after { background: #92dfdc; }
.check-in-mini-steps i {
  width: 30px;
  height: 30px;
  border-width: 2px;
  background: #fff;
  box-shadow: 0 0 0 4px #f8fbfb;
  font-size: 12px;
}
.check-in-mini-steps i .ui-icon { width: 16px; height: 16px; }
.check-in-mini-steps b {
  min-height: 32px;
  color: #6b8087;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}
.check-in-mini-steps .is-completed b { color: #168465; }
.check-in-mini-steps .is-current b { color: #087f82; }
.check-in-mini-steps .is-current i {
  border-color: #18c7c5;
  background: #18c7c5;
  color: #073641;
  box-shadow: 0 0 0 4px #dff7f6;
}
.check-in-mini-steps .is-completed i {
  border-color: #34b28b;
  background: #e9f8f2;
  box-shadow: 0 0 0 4px #f0faf6;
}
.tenant-check-in-card .check-in-mini-steps.is-five-step { row-gap: 20px; }
.tenant-check-in-card .check-in-mini-steps.is-five-step > span:nth-child(4)::after { display: none; }
.check-in-progress-card.is-completed::before { background: #20ad82; }
.check-in-progress-card.is-legacy::before { background: #9eb2b7; }
.check-in-progress-card.is-legacy .check-in-mini-steps { background: #fafbfb; }

.check-in-progress-action,
.admin-check-in-progress-card > button {
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 14px;
  border-color: #aee3e1;
  border-radius: 9px;
  background: #eafafa;
  color: #087f82;
  font-size: 13px;
  box-shadow: inset 3px 0 #18c7c5;
}
.check-in-progress-action:active,
.admin-check-in-progress-card > button:active { background: #dcf6f5; }
.admin-check-in-progress-card > button {
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 22px;
  text-align: center;
  box-shadow: none;
}
.admin-check-in-progress-card > button:focus-visible { outline: 2px solid #087f82; outline-offset: 2px; }

.admin-check-in-current,
.admin-check-in-empty {
  position: relative;
  margin-top: 16px;
  padding: 12px 13px 12px 16px;
  border: 1px solid #dce9e9;
  border-radius: 9px;
  background: #f7fafa;
}
.admin-check-in-current::before,
.admin-check-in-empty::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #ff8a3d;
  content: "";
}
.admin-check-in-empty::before { background: #7fcfc8; }
.admin-check-in-current b { font-size: 13px; line-height: 20px; }
.admin-check-in-current small { margin-top: 2px; color: #617980; font-size: 11px; line-height: 17px; }
.admin-check-in-current > strong {
  max-width: 42%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1e7;
  color: #c65317;
  font-size: 10px;
  line-height: 17px;
}

.check-in-list-modal .flow-note,
.check-in-detail-modal .flow-note {
  position: relative;
  margin-bottom: 14px;
  padding: 12px 12px 12px 15px;
  border: 1px solid #d6eaea;
  background: #f4fafa;
  color: #526d75;
}
.check-in-list-modal .flow-note::before,
.check-in-detail-modal .flow-note::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #18c7c5;
  content: "";
}
.check-in-list-summary {
  gap: 8px;
  margin: 0 0 14px;
}
.check-in-list-summary span {
  min-height: 60px;
  padding: 10px 12px;
  border-color: #cfe6e6;
  background: #fff;
  box-shadow: 0 4px 12px rgb(11 46 58 / 4%);
}
.check-in-list-summary b { color: #087f82; font-size: 22px; line-height: 27px; }
.check-in-list-summary span:last-child b { color: #15936f; }
.check-in-list-summary span:nth-child(3) b { color: #b3263c; }
.admin-process-list { gap: 9px; }
.admin-process-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e8e9;
  border-radius: 10px;
  background: #fff;
  color: #0b2e3a;
  font: inherit;
  text-align: left;
  box-shadow: 0 4px 14px rgb(11 46 58 / 4%);
}
.admin-process-row:active { border-color: #8ed6d3; background: #f1fbfa; }
.admin-process-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 9px;
  background: #e9f9f8;
}
.admin-process-icon img { width: 40px; height: 40px; object-fit: contain; }
.admin-process-row > span:nth-child(2) { min-width: 0; }
.admin-process-row > span:nth-child(2) strong,
.admin-process-row > span:nth-child(2) small,
.admin-process-row > span:nth-child(2) em { display: block; overflow-wrap: anywhere; }
.admin-process-row > span:nth-child(2) strong { font-size: 13px; line-height: 20px; }
.admin-process-row > span:nth-child(2) small { margin-top: 2px; color: #617980; font-size: 10px; line-height: 16px; }
.admin-process-row > span:nth-child(2) em {
  width: fit-content;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #edf8f7;
  color: #087f82;
  font-size: 9px;
  font-style: normal;
  line-height: 15px;
}
.admin-process-row > b {
  max-width: 88px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0e6;
  color: #c65317;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  overflow-wrap: anywhere;
}
.admin-process-row.is-completed > b { background: #e8f8f1; color: #0b8c68; }
.admin-process-row.is-cancelled { border-color: #ead8dc; background: #fff9fa; }
.admin-process-row.is-cancelled > b { background: #fff0f2; color: #b3263c; }
.admin-process-row > .ui-icon { width: 18px; height: 18px; color: #16868a; }

.check-in-context {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 14px 16px;
  border-color: #bfe4e3;
  border-radius: 10px;
  background: #effaf9;
}
.check-in-context::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #18c7c5;
  content: "";
}
.check-in-context strong { color: #0b2e3a; font-size: 15px; line-height: 22px; }
.check-in-context small { margin-top: 2px; color: #5d757d; font-size: 11px; line-height: 17px; }
.check-in-context em { border: 1px solid #ffd5ba; background: #fff1e7; color: #c65317; }

.check-in-detail-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.check-in-detail-steps > span,
.check-in-detail-steps > div,
.check-in-detail-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: start;
  align-items: center;
  gap: 2px 11px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #dce9ea;
  border-radius: 10px;
  background: #f8fbfb;
  color: #70858b;
  text-align: left;
}
.check-in-detail-steps > div:not(:last-child)::after,
.check-in-detail-steps > li:not(:last-child)::after {
  position: absolute;
  bottom: -10px;
  left: 29px;
  z-index: 2;
  width: 2px;
  height: 10px;
  background: #d4e3e4;
  content: "";
}
.check-in-detail-steps > div.is-completed:not(:last-child)::after,
.check-in-detail-steps > li.is-completed:not(:last-child)::after { background: #73cfb5; }
.check-in-detail-steps > div > span,
.check-in-detail-steps > li > span {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-width: 2px;
  background: #fff;
  font-size: 12px;
}
.check-in-detail-steps > li > div { grid-column: 2; min-width: 0; }
.check-in-detail-steps b,
.check-in-detail-steps strong {
  grid-column: 2;
  color: #36545d;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}
.check-in-detail-steps small,
.check-in-detail-steps > li small {
  grid-column: 2;
  display: block;
  margin: 0;
  color: #7a8f95;
  font-size: 10px;
  line-height: 16px;
}
.check-in-detail-steps .is-completed { border-color: #cbe8dc; background: #f3faf7; }
.check-in-detail-steps .is-completed b,
.check-in-detail-steps .is-completed strong { color: #147d60; }
.check-in-detail-steps .is-current {
  border-color: #83d9d6;
  background: #ebfafa;
  box-shadow: 0 5px 16px rgb(24 199 197 / 10%);
}
.check-in-detail-steps .is-current::before {
  position: absolute;
  inset: 9px auto 9px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #ff8a3d;
  content: "";
}
.check-in-detail-steps .is-current > span { box-shadow: 0 0 0 4px #d6f5f3; }
.check-in-detail-steps .is-current small { color: #c65317; font-weight: 700; }
.check-in-detail-steps .is-cancelled { border-color: #efcdd3; background: #fff6f7; }
.check-in-detail-steps .is-cancelled::before {
  position: absolute;
  inset: 9px auto 9px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #cf4056;
  content: "";
}
.check-in-detail-steps .is-cancelled > span { border-color: #cf4056; background: #fff0f2; color: #b3263c; }
.check-in-detail-steps .is-cancelled small { color: #b3263c; font-weight: 700; }
.check-in-cancellation-summary,
.check-in-cancel-impact {
  box-sizing: border-box;
  width: 100%;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #efcdd3;
  border-radius: 8px;
  background: #fff6f7;
}
.check-in-cancellation-summary header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.check-in-cancellation-summary header strong { color: #9f2438; font-size: 13px; line-height: 20px; }
.check-in-cancellation-summary header em { color: #8c6570; font-size: 10px; font-style: normal; line-height: 17px; }
.check-in-cancellation-summary p,
.check-in-cancel-impact p { margin: 7px 0 0; color: #633b45; font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.check-in-cancellation-summary small { display: block; margin-top: 7px; color: #876c73; font-size: 10px; line-height: 17px; }
.check-in-locked-note.is-cancelled { border-color: #efcdd3; background: #fff6f7; color: #9f2438; }
.check-in-cancel-button,
.check-in-cancel-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #df9daa;
  border-radius: 9px;
  background: #fff5f6;
  color: #b3263c;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.check-in-cancel-button:disabled,
.check-in-cancel-confirm:disabled { opacity: .55; }
.check-in-cancel-impact { margin: 14px 0; border-color: #ecd7b4; background: #fff9ef; }
.check-in-cancel-impact strong { color: #8b5515; font-size: 13px; line-height: 20px; }
.check-in-cancel-impact p { color: #765d3f; }
.check-in-cancel-actions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; }
.check-in-cancel-actions > button { min-width: 0; margin: 0; }

.tenant-fee-confirmation,
.admin-fee-confirmation,
.check-in-resource-row,
.check-in-locked-note,
.stay-history-panel {
  border-color: #d4e7e8;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgb(11 46 58 / 4%);
}
.tenant-fee-confirmation,
.admin-fee-confirmation { padding: 15px; }
.tenant-fee-summary-grid > div,
.tenant-fee-rule-list p,
.admin-fee-confirmation > div p { background: #f5f9f9; }
.check-in-resource-row {
  min-height: 48px;
  padding: 12px 14px;
  background: #f8fbfb;
}
.check-in-resource-row b {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #087f82;
  font-size: 10px;
}
.check-in-locked-note {
  border-color: #cce8dc;
  background: #f0faf5;
  color: #26745e;
}
.check-in-detail-actions {
  position: sticky;
  bottom: -1px;
  z-index: 3;
  margin: 18px -2px -2px;
  padding: 12px 2px 2px;
  background: #fff;
}
.check-in-detail-actions :is(.state-action, .modal-submit, .modal-secondary) {
  min-height: 46px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}
.check-in-detail-actions :is(.state-action, .modal-submit) {
  border-color: #18c7c5;
  background: #18c7c5;
  color: #0b2e3a;
}
.check-in-detail-actions .modal-secondary {
  border-color: #c9dddd;
  background: #f7fafa;
  color: #46636c;
}
.stay-history-panel > header { background: #f1f9f8; }

@media (max-width: 400px) {
  .check-in-list-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .check-in-list-summary span { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 9px 8px; text-align: center; }
  .check-in-list-summary b { font-size: 18px; line-height: 22px; }
  .check-in-cancel-actions { grid-template-columns: minmax(0, 1fr); }
  .check-in-progress-card,
  .admin-check-in-progress-card { padding: 17px 13px 14px; }
  .check-in-progress-card header,
  .admin-check-in-progress-card header,
  .admin-fee-confirmation header,
  .check-in-context { grid-template-columns: auto minmax(0, 1fr); }
  .check-in-progress-card header em,
  .admin-check-in-progress-card header em,
  .admin-fee-confirmation header em,
  .check-in-context em {
    grid-column: 2;
    justify-self: start;
  }
  .check-in-mini-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding-inline: 2px;
  }
  .check-in-mini-steps b { font-size: 10px; line-height: 15px; }
  .admin-check-in-current { align-items: flex-start; }
  .admin-check-in-current > strong { max-width: 46%; }
  .admin-process-row {
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 11px;
  }
  .admin-process-icon { width: 46px; height: 46px; }
  .admin-process-row > b {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    max-width: none;
  }
  .admin-process-row > .ui-icon {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 680px) {
  .tenant-check-in-card .check-in-mini-steps.is-five-step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 18px;
    padding: 16px 10px;
  }
  .tenant-check-in-card .check-in-mini-steps.is-five-step > span:nth-child(even)::after { display: none; }
  .tenant-check-in-card .check-in-mini-steps.is-five-step > span:nth-child(5) { grid-column: 1 / -1; }
  .tenant-check-in-card .check-in-mini-steps.is-five-step > span:nth-child(5) b { min-height: 0; }
}

@media (max-width: 340px) {
  .tenant-check-in-card .check-in-mini-steps.is-five-step { grid-template-columns: minmax(0, 1fr); }
  .tenant-check-in-card .check-in-mini-steps.is-five-step > span:nth-child(5) { grid-column: 1; }
}

.receipt-scan-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgb(11 46 58 / 60%);
}
.receipt-scan-card {
  box-sizing: border-box;
  width: min(100%, 416px);
  max-height: 100%;
  padding: 18px;
  border: 1px solid #dce9eb;
  border-radius: 8px;
  background: #fff;
  color: #0b2e3a;
  overflow: auto;
}
.receipt-scan-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.receipt-scan-card h2 { margin: 0; font-size: 18px; line-height: 26px; }
.receipt-scan-card [data-scan-close] { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #dce9eb; border-radius: 8px; background: #f4f8f8; color: #536d76; }
.receipt-scan-card [data-scan-close] .ui-icon { width: 20px; height: 20px; }
.receipt-scan-frame { position: relative; width: min(100%, 330px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; background: #16333c; }
.receipt-scan-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.receipt-scan-guide { position: absolute; inset: 17%; border: 2px solid #18c7c5; box-shadow: 0 0 0 999px rgb(11 46 58 / 18%); pointer-events: none; }
.receipt-scan-status { min-height: 40px; margin: 12px 0; color: #536d76; font-size: 13px; line-height: 20px; text-align: center; }
.receipt-scan-status.is-error { color: #a72e43; }
.receipt-scan-actions { display: grid; gap: 8px; }
.receipt-scan-actions :is(button, label) { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #bce9e8; border-radius: 8px; background: #effafa; color: #0b2e3a; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; }
.receipt-scan-actions :is(button, label) .ui-icon { width: 18px; height: 18px; }
.receipt-scan-actions button[hidden] { display: none; }
.receipt-scan-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.receipt-scan-file:focus-within { outline: 3px solid #087f8266; outline-offset: 2px; }

@media (max-width: 340px) {
  .check-in-mini-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .check-in-mini-steps > span {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    min-height: 48px;
    padding: 8px;
    border: 1px solid #e1eded;
    border-radius: 8px;
    background: #fff;
    text-align: left;
  }
  .check-in-mini-steps > span::after { display: none; }
  .check-in-mini-steps b { min-height: 0; }
}

/* Tenant detail context has no leading icon/status columns. */
.message-detail .check-in-context {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 3px;
}
.message-detail .check-in-context > strong,
.message-detail .check-in-context > small { grid-column: 1; }

.receipt-list-items { display: grid; gap: 9px; }
.receipt-list-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 12px 0; color: #617980; font-size: 12px; }
.receipt-list-controls label { display: grid; gap: 5px; min-width: 0; flex: 1 1 120px; font-weight: 600; }
.receipt-list-controls select { width: 100%; min-height: 38px; padding: 5px 28px 5px 10px; border: 1px solid #bfd9dc; border-radius: 6px; background: #fff; color: #0b2e3a; font: inherit; }
.receipt-list-controls > span { margin-left: auto; white-space: nowrap; }
.receipt-selection-rule { margin: 0 0 12px; color: #b42332; font-size: 12px; line-height: 1.55; }
.message-detail .receipt-selection-rule { margin: 0 0 12px; color: #b42332; line-height: 1.55; }
.receipt-select-entry { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.receipt-select-entry > input { width: 18px; height: 18px; margin: 0; accent-color: #087f82; cursor: pointer; }
.receipt-select-entry > input:disabled { cursor: not-allowed; opacity: .4; }
.receipt-selection-actions { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 2px; background: #fff; color: #617980; font-size: 12px; }
.receipt-selection-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: #18c7c5; color: #0b2e3a; font: inherit; font-weight: 700; cursor: pointer; }
.receipt-selection-actions button:disabled { opacity: .45; cursor: not-allowed; }
.receipt-selection-actions .ui-icon { width: 17px; height: 17px; }
.receipt-list-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 17px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce8ea;
  border-radius: 10px;
  background: #fbfdfd;
  color: #0b2e3a;
  font: inherit;
  text-align: left;
}
.receipt-list-row:active { border-color: #9edede; background: #f0fbfa; }
.receipt-list-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #087f82; }
.receipt-list-icon .ui-icon { width: 25px; height: 25px; }
.receipt-list-row > span:nth-child(2), .receipt-list-row > b { min-width: 0; }
.receipt-list-row strong, .receipt-list-row small { display: block; overflow-wrap: anywhere; }
.receipt-list-row strong { font-size: 13px; line-height: 20px; }
.receipt-list-row small { margin-top: 2px; color: #617980; font-size: 10px; line-height: 16px; }
.receipt-list-row > b { color: #0b2e3a; font-size: 13px; white-space: nowrap; }
.receipt-list-row > .ui-icon { width: 17px; height: 17px; color: #087f82; }
.receipt-back { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 14px; padding: 0; border: 0; background: transparent; color: #087f82; font: inherit; font-size: 12px; }
.receipt-back .ui-icon { width: 16px; height: 16px; }
.receipt-detail .receipt-back { display: flex; width: fit-content; }
.receipt-detail .message-detail-type { display: block; }
.receipt-detail-number { color: #617980; font-size: 11px; overflow-wrap: anywhere; }
.receipt-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; margin: 14px 0; padding: 16px; border-radius: 10px; background: #fff1e8; }
.receipt-total small { color: #a94d19; font-size: 11px; }
.receipt-total strong { grid-row: 2; color: #e5671f; font-size: 24px; line-height: 30px; }
.receipt-total em { align-self: end; color: #078b69; font-size: 11px; font-style: normal; }
.receipt-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 0; border-top: 1px solid #e3eeee; border-bottom: 1px solid #e3eeee; }
.receipt-detail-grid small, .receipt-detail-grid b { display: block; overflow-wrap: anywhere; }
.receipt-detail-grid small { color: #617980; font-size: 10px; line-height: 16px; }
.receipt-detail-grid b { margin-top: 3px; font-size: 12px; line-height: 19px; }
.receipt-fees { margin-top: 16px; }
.receipt-fees h3 { margin: 0 0 8px; font-size: 14px; }
.receipt-fees > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef3f4; font-size: 12px; }
.receipt-fees > div span { min-width: 0; overflow-wrap: anywhere; }
.receipt-verification { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border: 1px solid #dce8ea; border-radius: 10px; background: #f7fbfb; }
.receipt-verification img { width: 88px; height: 88px; flex: 0 0 88px; }
.receipt-verification strong, .receipt-verification small, .receipt-verification a { display: block; }
.receipt-verification strong { font-size: 12px; }
.receipt-verification small { margin-top: 4px; color: #617980; font-size: 10px; }
.receipt-verification a { margin-top: 8px; color: #087f82; font-size: 11px; overflow-wrap: anywhere; }
.receipt-download { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 44px; margin-top: 14px; border-radius: 8px; background: #18c7c5; color: #0b2e3a; font-weight: 700; text-decoration: none; }
.receipt-download .ui-icon { width: 17px; height: 17px; }
.receipt-list-modal .receipt-list-row { text-decoration: none; }

@media (max-width: 400px) {
  .receipt-list-row { grid-template-columns: 32px minmax(0, 1fr) auto 15px; gap: 7px; padding: 10px; }
  .receipt-list-icon { width: 32px; height: 32px; }
  .receipt-list-row > b { font-size: 12px; }
  .receipt-detail-grid { gap: 10px 8px; }
  .receipt-verification { align-items: flex-start; }
  .receipt-verification img { width: 76px; height: 76px; flex-basis: 76px; }
}

/* Tenant move-out: keep status, settlement and handover inventory scannable on H5. */
.message-detail-modal > .move-out-detail { border-top: 3px solid var(--brand); }
.move-out-detail > .message-detail-type { display: block; color: var(--brand-strong); font-weight: 700; }
.move-out-detail > h2 { margin: 7px 0 0; }
.move-out-room { display: grid; gap: 4px; margin: 16px 0 19px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.move-out-room small { color: var(--muted); font-size: 11px; }
.move-out-room strong { color: var(--text); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.move-out-state-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.move-out-state-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 8px; background: #fff1e6; color: var(--accent-strong); }
.move-out-state-icon .ui-icon { width: 21px; height: 21px; }
.move-out-status-card.is-completed .move-out-state-icon { background: var(--brand-soft); color: var(--brand-strong); }
.move-out-state-heading > div { display: grid; gap: 1px; flex: 1 1 120px; min-width: 0; }
.move-out-state-heading small { color: var(--muted); font-size: 11px; line-height: 17px; }
.move-out-state-heading strong { color: var(--text); font-size: 16px; line-height: 23px; }
.move-out-state-heading em { margin-left: auto; padding: 5px 8px; border-radius: 6px; background: #e9f8f0; color: #0b8063; font-size: 11px; font-style: normal; white-space: nowrap; }
.move-out-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 15px; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.move-out-date-grid > div { display: grid; gap: 4px; min-width: 0; }
.move-out-date-grid > div + div { padding-left: 14px; border-left: 1px solid var(--border); }
.move-out-date-grid small { color: var(--muted); font-size: 11px; }
.move-out-date-grid time { color: var(--text); font-size: 13px; line-height: 20px; font-weight: 650; overflow-wrap: anywhere; }
.move-out-detail .move-out-admin-note { display: grid; gap: 4px; margin: 12px 0 0; font-size: 12px; }
.move-out-admin-note strong { color: var(--text); }
.move-out-admin-note span { color: var(--secondary); line-height: 20px; overflow-wrap: anywhere; }
.move-out-settlement { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding: 15px; border-radius: 8px; background: #effafa; }
.move-out-settlement > div { display: grid; gap: 5px; min-width: 0; }
.move-out-settlement > div + div { padding-left: 12px; border-left: 1px solid #cee7e8; }
.move-out-settlement small { color: var(--secondary); font-size: 11px; }
.move-out-settlement strong { color: var(--text); font-size: 17px; line-height: 24px; overflow-wrap: anywhere; }
.move-out-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 20px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.move-out-steps > span { display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; color: var(--muted); font-size: 11px; line-height: 16px; text-align: center; }
.move-out-steps i { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--border); border-radius: 50%; background: #f6f9f9; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 700; }
.move-out-steps .is-done { color: var(--brand-strong); font-weight: 650; }
.move-out-steps .is-done i { border-color: #bde4df; background: var(--brand-soft); color: var(--brand-strong); }
.move-out-steps .is-current { color: var(--accent-strong); font-weight: 650; }
.move-out-steps .is-current i { border-color: #ffd7bf; background: var(--accent-soft); color: var(--accent-strong); }
.move-out-detail .tenant-current-inventory { margin: 20px 0 18px; }
.move-out-detail .tenant-inventory-heading { align-items: center; }
.move-out-detail .tenant-inventory-heading h3 { font-size: 15px; line-height: 22px; }
.move-out-detail .tenant-inventory-heading small { font-size: 11px; line-height: 17px; }
.move-out-detail .tenant-inventory-heading .form-secondary { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.move-out-detail .move-out-note { display: block; margin: 18px 0 0; padding: 11px 13px; border-left: 3px solid var(--brand-strong); border-radius: 0 6px 6px 0; background: #f5f9f9; color: var(--secondary); font-size: 12px; line-height: 20px; }
.move-out-primary-decision { display: grid; gap: 12px; margin-top: 18px; padding: 14px; border: 1px solid #bfe7e4; border-radius: 10px; background: #effafa; }
.move-out-primary-decision .flow-note { margin: 0; }
.move-out-primary-decision label { display: grid; gap: 6px; color: var(--secondary); font-size: 12px; font-weight: 650; }
.move-out-primary-decision textarea { min-height: 72px; }
.move-out-primary-decision .move-out-actions { margin-top: 0; }

/* Tenant account settings: compact navigation and a distinct cancellation request view. */
.message-detail-modal > .account-settings-panel {
  padding: 0 20px 20px;
  border-top: 3px solid #18c7c5;
}
.account-settings-head {
  position: relative;
  min-height: 76px;
  padding: 21px 44px 15px 0;
  border-bottom: 1px solid #dce9eb;
}
.account-settings-head:has(.account-settings-back) { padding-left: 42px; }
.account-settings-kicker { display: block; color: #007d83; font-size: 11px; line-height: 17px; font-weight: 650; }
.message-detail-modal .account-settings-head h2 { margin: 4px 0 0; color: #0b2e3a; font-size: 20px; line-height: 27px; font-weight: 700; }
.message-detail-modal .account-settings-head .message-detail-close { top: 16px; right: 0; }
.account-settings-back {
  position: absolute;
  top: 18px;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dce9eb;
  border-radius: 8px;
  background: #f4f8f8;
  color: #405e68;
}
.account-settings-back .ui-icon, .account-settings-head .message-detail-close .ui-icon { width: 19px; height: 19px; }
.account-settings-group { padding-top: 16px; }
.account-settings-group h3 { margin: 0 0 7px; color: #647d85; font-size: 11px; line-height: 18px; font-weight: 650; }
.account-settings-list { border-top: 1px solid #e2eced; }
.account-settings-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #e2eced;
  background: #fff;
  color: #0b2e3a;
  text-align: left;
  cursor: pointer;
}
.account-settings-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #eafbfa; color: #007d83; }
.account-settings-icon .ui-icon { width: 20px; height: 20px; }
.account-settings-copy { display: grid; gap: 2px; min-width: 0; }
.account-settings-copy strong { font-size: 14px; line-height: 20px; font-weight: 650; }
.account-settings-copy small { color: #647d85; font-size: 11px; line-height: 17px; }
.account-settings-row > .ui-icon { width: 18px; height: 18px; color: #8aa2a8; }
.account-settings-footer { margin-top: 18px; }
.account-settings-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 1px solid #e8ccd0;
  border-radius: 8px;
  background: #fff;
  color: #ab3244;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.account-settings-logout .ui-icon { width: 18px; height: 18px; }
.account-security-content { padding: 16px 0 2px; }
.account-security-title { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; border-bottom: 1px solid #dce9eb; }
.account-security-title > span { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 8px; background: #eafbfa; }
.account-security-title h3 { margin: 0; color: #0b2e3a; font-size: 17px; line-height: 24px; }
.account-security-title small { display: block; margin-top: 3px; color: #647d85; font-size: 11px; line-height: 17px; }
.message-detail .account-security-content p { margin: 12px 0 0; color: #536d76; font-size: 13px; line-height: 22px; }
.account-cancellation-contact {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #a7dfe0;
  border-radius: 8px;
  background: #eafbfa;
  color: #00727a;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.account-cancellation-contact .ui-icon { width: 19px; height: 19px; }
.account-security-hint { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid #e4eded; color: #647d85; font-size: 11px; line-height: 18px; }
.account-cancellation-state { margin-top: 17px; color: #536d76; font-size: 13px; line-height: 1.65; }
.account-cancellation-status { display: flex; align-items: center; gap: 8px; color: #007d83; }
.account-cancellation-status .ui-icon { width: 19px; height: 19px; flex: none; }
.account-cancellation-status strong { color: #0b2e3a; font-size: 14px; }
.account-cancellation-summary { padding: 4px 0 0 27px; }
.message-detail .account-cancellation-summary p { margin: 8px 0 0; }
.account-cancellation-state ul { margin: 9px 0 0; padding-left: 20px; }
.account-cancellation-state li + li { margin-top: 5px; }
.account-cancellation-warnings { margin-top: 16px; padding: 11px 0 11px 14px; border-left: 3px solid #ff8a3d; background: #fffaf5; }
.account-cancellation-warnings strong { color: #9b4e20; }
.account-cancellation-warnings ul { margin-bottom: 0; }
.account-cancellation-blocked .account-cancellation-status { color: #c35c24; }
.account-cancellation-blocked > ul { padding: 0 0 0 21px; color: #9b4e20; }
.account-cancellation-state .account-cancellation-contact { margin-top: 12px; }
.account-cancellation-state form { display: grid; gap: 13px; margin-top: 19px; padding-top: 18px; border-top: 1px solid #dce9eb; }
.account-cancellation-state form h4 { margin: 0; color: #0b2e3a; font-size: 14px; line-height: 21px; }
.account-cancellation-state form > label:not(.account-cancellation-check) { display: grid; gap: 6px; color: #405e68; font-weight: 600; }
.account-cancellation-state input:not([type="checkbox"]) { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c9dde1; border-radius: 7px; background: #faffff; color: #0b2e3a; font: inherit; }
.account-cancellation-state input:not([type="checkbox"]):focus { border-color: #18c7c5; outline: 3px solid rgb(24 199 197 / 16%); }
.account-cancellation-check { display: flex; align-items: flex-start; gap: 8px; padding: 11px 0; border-top: 1px solid #e4eded; border-bottom: 1px solid #e4eded; font-size: 12px; font-weight: 500; }
.account-cancellation-check input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; accent-color: #007d83; }
.account-cancellation-error { min-height: 0; margin: 0 !important; color: #aa3442 !important; }
.account-cancellation-error:empty { display: none; }
.account-cancellation-submit { min-height: 46px; border: 1px solid #bd4b3f; border-radius: 8px; background: #bd4b3f; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.account-cancellation-submit:disabled { opacity: .55; }
.account-settings-panel :is(button):focus-visible { outline: 2px solid #007d83; outline-offset: 2px; }
@media (hover: hover) {
  .account-settings-row:hover { background: #f6fbfb; }
  .account-cancellation-contact:hover { background: #ddf5f3; }
  .account-settings-logout:hover { background: #fff6f6; }
}
@media (max-width: 380px) {
  .message-detail-modal > .account-settings-panel { padding: 0 16px 16px; }
}
