/* LCH Consultancy — compact private management panel. */

@font-face {
  font-family: "LCH Inter";
  src: url("fonts/inter-latin-400-600-v20.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

html {
  min-width: 320px;
}

html:has(body.lch-codex-staff),
body.lch-codex-staff {
  min-height: 100%;
  margin: 0;
  background: #fff;
}

body.lch-codex-staff {
  --staff-text: #121a23;
  --staff-muted: #68717b;
  --staff-border: #dfe3e7;
  --staff-control-border: #8a939c;
  --staff-blue: #315a86;
  --staff-blue-hover: #244667;
  min-height: 100vh;
  min-width: 320px;
  color: var(--staff-text);
  font: 400 16px/1.5 "LCH Inter", Inter, Arial, sans-serif;
}

body.lch-codex-staff a {
  color: inherit;
  touch-action: manipulation;
}

body.lch-codex-staff button {
  font: inherit;
}

body.lch-codex-staff img {
  display: block;
  max-width: 100%;
}

body.lch-codex-staff .skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 13px;
  border-radius: 4px;
  background: var(--staff-text);
  color: #fff;
  transform: translateY(-150%);
}

body.lch-codex-staff .skip-link:focus {
  transform: translateY(0);
}

body.lch-codex-staff *,
body.lch-codex-staff *::before,
body.lch-codex-staff *::after {
  box-sizing: border-box;
}

body.lch-codex-staff #wpadminbar,
body.lch-codex-staff #trp-floater-ls,
body.lch-codex-staff .trp-language-switcher,
body.lch-codex-staff .cky-consent-container,
body.lch-codex-staff .cky-btn-revisit-wrapper,
body.lch-codex-staff .cky-modal,
body.lch-codex-staff .cky-overlay {
  display: none !important;
}

html:has(body.lch-codex-staff.admin-bar) {
  margin-top: 0 !important;
}

.lch-staff-shell {
  min-height: 100vh;
  background: #fff;
}

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

/* Login */

.lch-staff-login__website {
  position: fixed;
  z-index: 20;
  top: 24px;
  right: 28px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  border-bottom: 1px solid transparent;
  color: var(--staff-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.lch-staff-login__website:hover {
  border-color: currentColor;
}

.lch-staff-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 24px 56px;
}

.lch-staff-login__panel {
  width: min(100%, 380px);
}

.lch-staff-login__brand {
  width: 194px;
  display: block;
  margin: 0 auto 46px;
}

.lch-staff-login__brand img,
.lch-staff-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.lch-staff-login h1 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
}

.lch-staff-estatik--login .es-auth,
.lch-staff-estatik--login .es-auth__item {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.lch-staff-estatik--login .lch-auth-direct > .es-auth__login-buttons,
.lch-staff-estatik--login .lch-auth-direct > .es-auth__reset-form,
.lch-staff-estatik--login .es-auth__login-form .all-login-back,
.lch-staff-estatik--login .es-auth__login-form > h3,
.lch-staff-estatik--login .es-auth__login-form > p,
.lch-staff-estatik--login .es-space {
  display: none !important;
}

.lch-staff-estatik--login .lch-auth-direct > .es-auth__login-form {
  display: block !important;
}

.lch-staff-estatik--login .es-auth__reset-form > h3 {
  display: none !important;
}

.lch-staff-estatik--login .es-auth__login-buttons h3,
.lch-staff-estatik--login .es-auth__reset-form h3 {
  margin: 0 0 10px !important;
  color: var(--staff-text) !important;
  font: 600 20px/1.3 "LCH Inter", Inter, Arial, sans-serif !important;
  letter-spacing: -0.015em !important;
  text-align: center;
}

.lch-staff-estatik--login .es-auth__login-buttons p,
.lch-staff-estatik--login .es-auth__reset-form p {
  margin: 0 0 22px !important;
  color: var(--staff-muted) !important;
  font: 400 14px/1.5 "LCH Inter", Inter, Arial, sans-serif !important;
  text-align: center;
}

.lch-staff-estatik--login .es-field {
  margin: 0 0 17px !important;
}

.lch-staff-estatik--login .es-field label,
.lch-staff-estatik--login .es-field__label {
  color: var(--staff-text) !important;
  font: 500 13px/1.35 "LCH Inter", Inter, Arial, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.lch-staff-estatik--login .es-field__input:not([type="hidden"]) {
  width: 100% !important;
  min-height: 46px !important;
  margin-top: 7px !important;
  padding: 10px 42px 10px 12px !important;
  border: 1px solid var(--staff-control-border) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--staff-text) !important;
  font: 400 16px/1.4 "LCH Inter", Inter, Arial, sans-serif !important;
  box-shadow: none !important;
}

.lch-staff-estatik--login .es-field__input:focus {
  border-color: var(--staff-blue) !important;
  box-shadow: 0 0 0 3px rgba(49, 90, 134, 0.12) !important;
}

.lch-staff-estatik--login .es-toggle-pwd,
.lch-staff-estatik--login .es-toggle-pwd .es-icon,
.lch-staff-estatik--login .es-toggle-pwd .es-icon::before {
  color: var(--staff-blue) !important;
}

.lch-staff-estatik--login .forgot-pwd,
.lch-staff-estatik--login .login-back {
  margin: -4px 0 18px !important;
}

.lch-staff-estatik--login .forgot-pwd a,
.lch-staff-estatik--login .login-back {
  color: var(--staff-muted) !important;
  font-size: 13px !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lch-staff-estatik--login .login-back .es-icon,
.lch-staff-estatik--login .login-back .es-icon::before {
  color: var(--staff-muted) !important;
}

.lch-staff-estatik--login .es-btn,
.lch-staff-estatik--login button.es-btn {
  width: 100% !important;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  border: 1px solid var(--staff-blue) !important;
  border-radius: 6px !important;
  background: var(--staff-blue) !important;
  color: #fff !important;
  font: 600 14px/1 "LCH Inter", Inter, Arial, sans-serif !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background-color 150ms ease, border-color 150ms ease !important;
}

.lch-staff-estatik--login .es-btn:hover {
  border-color: var(--staff-blue-hover) !important;
  background: var(--staff-blue-hover) !important;
}

.lch-staff-estatik--login .es-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.48 !important;
}

/* Logged-in shell */

.lch-staff-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--staff-border);
  background: rgba(255, 255, 255, 0.98);
}

.lch-staff-brand {
  width: 130px;
  flex: 0 0 auto;
}

.lch-staff-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lch-staff-header__actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  border-bottom: 1px solid transparent;
  color: var(--staff-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.lch-staff-header__actions a:hover {
  border-color: currentColor;
}

.lch-staff-workspace {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding: 18px 0 56px;
}

.lch-staff-tabs {
  min-height: 45px;
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--staff-border);
}

.lch-staff-tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: -1px;
  padding: 0 2px;
  border-bottom: 2px solid transparent;
  color: var(--staff-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.lch-staff-tabs a:hover {
  color: var(--staff-text);
}

.lch-staff-tabs a[aria-current="page"] {
  border-bottom-color: var(--staff-blue);
  color: var(--staff-text);
}

.lch-staff-content,
.lch-staff-properties {
  min-width: 0;
}

.lch-staff-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 13px/1 "LCH Inter", Inter, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.lch-staff-button--primary {
  border-color: var(--staff-blue);
  background: var(--staff-blue);
  color: #fff;
}

.lch-staff-button--primary:hover {
  border-color: var(--staff-blue-hover);
  background: var(--staff-blue-hover);
  color: #fff;
}

.lch-staff-button--quiet {
  border-color: var(--staff-border);
  background: #fff;
  color: var(--staff-text);
}

.lch-staff-button--quiet:hover {
  border-color: var(--staff-text);
}

.lch-staff-notice {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid var(--staff-border);
  border-left: 3px solid var(--staff-blue);
  border-radius: 4px;
  background: #fff;
  color: var(--staff-text);
  font-size: 13px;
  line-height: 1.45;
}

.lch-staff-notice--error {
  border-left-color: var(--staff-text);
}

/* Estatik: keep its native manager, only normalize colour and spacing. */

.lch-staff-estatik--manager {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lch-staff-estatik--manager,
.lch-staff-estatik--manager *:not(.es-icon):not(.fa):not(.fas):not(.far):not(.fab):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: "LCH Inter", Inter, Arial, sans-serif !important;
}

.lch-staff-estatik--manager .es-property-management {
  max-width: none !important;
  margin: 0 !important;
}

.lch-staff-estatik--manager .es-btn,
.lch-staff-estatik--manager button,
.lch-staff-estatik--manager input[type="submit"] {
  min-height: 44px;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.lch-staff-estatik--manager .es-btn--primary,
.lch-staff-estatik--manager button.es-btn--primary,
.lch-staff-estatik--manager input[type="submit"],
.lch-staff-estatik--manager .es-btn--secondary,
.lch-staff-estatik--manager button.es-btn--secondary,
.lch-staff-estatik--manager a.es-btn--secondary {
  border-color: var(--staff-blue) !important;
  background: var(--staff-blue) !important;
  color: #fff !important;
}

.lch-staff-estatik--manager .es-btn--primary:hover,
.lch-staff-estatik--manager button.es-btn--primary:hover,
.lch-staff-estatik--manager input[type="submit"]:hover,
.lch-staff-estatik--manager .es-btn--secondary:hover {
  border-color: var(--staff-blue-hover) !important;
  background: var(--staff-blue-hover) !important;
}

.lch-staff-estatik--manager .es-secondary-bg,
.lch-staff-estatik--manager .es-bg-secondary,
.lch-staff-estatik--manager .es-field.es-field--checkbox input:checked,
.lch-staff-estatik--manager .es-field.es-field--radio input:checked,
.lch-staff-estatik--manager .es-property-management--form .es-tabs__nav li:hover .es-tabs__numeric,
.lch-staff-estatik--manager .es-property-management--form .es-tabs__nav li.active .es-tabs__numeric {
  border-color: var(--staff-blue) !important;
  background-color: var(--staff-blue) !important;
}

.lch-staff-estatik--manager .es-secondary-color,
.lch-staff-estatik--manager a.es-secondary-color,
.lch-staff-estatik--manager a.es-secondary-color:hover,
.lch-staff-estatik--manager .es-property-field__value a:hover,
.lch-staff-estatik--manager .es-agent-field__value a {
  color: var(--staff-blue) !important;
}

.lch-staff-estatik--manager input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.lch-staff-estatik--manager select,
.lch-staff-estatik--manager textarea {
  min-height: 44px;
  border-color: var(--staff-control-border) !important;
  border-radius: 6px !important;
  color: var(--staff-text) !important;
  box-shadow: none !important;
}

.lch-staff-estatik--manager input:focus,
.lch-staff-estatik--manager select:focus,
.lch-staff-estatik--manager textarea:focus {
  border-color: var(--staff-blue) !important;
}

/* Reviews list */

.lch-staff-toolbar,
.lch-staff-editor__head {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
}

.lch-staff-toolbar h1,
.lch-staff-editor__head h1 {
  margin: 0;
  color: var(--staff-text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lch-staff-review-list {
  border-top: 1px solid var(--staff-border);
}

.lch-staff-review-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--staff-border);
}

.lch-staff-review-row__copy {
  min-width: 0;
}

.lch-staff-review-row__copy h2 {
  margin: 0 0 3px;
  color: var(--staff-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.lch-staff-review-row__copy p {
  display: -webkit-box;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  color: var(--staff-muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lch-staff-review-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.lch-staff-review-row__actions form {
  margin: 0;
}

.lch-staff-text-link,
.lch-staff-text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--staff-text);
  font: 500 12px/1 "LCH Inter", Inter, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.lch-staff-text-link:hover,
.lch-staff-text-button:hover {
  border-bottom-color: currentColor;
  color: var(--staff-blue);
}

.lch-staff-toggle:disabled,
.lch-staff-text-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.lch-staff-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--staff-muted);
  font: 500 12px/1 "LCH Inter", Inter, Arial, sans-serif;
  cursor: pointer;
}

.lch-staff-toggle__track {
  width: 34px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--staff-control-border);
  border-radius: 999px;
  background: #e7e9eb;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.lch-staff-toggle__track span {
  width: 14px;
  height: 14px;
  display: block;
  border-radius: 50%;
  background: #fff;
  transform: translateX(0);
  transition: transform 150ms ease;
}

.lch-staff-toggle[aria-checked="true"] {
  color: var(--staff-text);
}

.lch-staff-toggle[aria-checked="true"] .lch-staff-toggle__track {
  border-color: var(--staff-blue);
  background: var(--staff-blue);
}

.lch-staff-toggle[aria-checked="true"] .lch-staff-toggle__track span {
  transform: translateX(14px);
}

/* Review editor */

.lch-staff-editor {
  width: min(100%, 760px);
}

.lch-staff-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.lch-staff-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lch-staff-field--wide {
  grid-column: 1 / -1;
}

.lch-staff-field label {
  color: var(--staff-text);
  font-size: 13px;
  font-weight: 500;
}

.lch-staff-field label span {
  color: var(--staff-muted);
  font-weight: 400;
}

.lch-staff-field input[type="text"],
.lch-staff-field input[type="file"],
.lch-staff-field textarea,
.lch-staff-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--staff-control-border);
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--staff-text);
  font: 400 15px/1.45 "LCH Inter", Inter, Arial, sans-serif;
  box-shadow: none;
}

.lch-staff-field textarea {
  min-height: 104px;
  resize: vertical;
}

.lch-staff-field input:focus,
.lch-staff-field textarea:focus,
.lch-staff-field select:focus {
  border-color: var(--staff-blue);
  box-shadow: 0 0 0 3px rgba(49, 90, 134, 0.12);
}

.lch-staff-field small {
  color: var(--staff-muted);
  font-size: 12px;
  line-height: 1.45;
}

.lch-staff-check {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
}

.lch-staff-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--staff-blue);
}

.lch-staff-check > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lch-staff-check strong {
  font-size: 13px;
  font-weight: 500;
}

.lch-staff-check small {
  display: block;
}

.lch-staff-current-image {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--staff-muted);
  font-size: 12px;
}

.lch-staff-current-image img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.lch-staff-form__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.lch-staff-empty {
  padding: 24px;
  border: 1px solid var(--staff-border);
  border-radius: 6px;
  background: #fff;
}

.lch-staff-empty h1,
.lch-staff-empty h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.lch-staff-empty p {
  margin: 0;
  color: var(--staff-muted);
  font-size: 14px;
}

.lch-codex-staff :focus-visible {
  outline: 3px solid var(--staff-blue) !important;
  outline-offset: 3px !important;
}

@media (max-width: 760px) {
  .lch-staff-header {
    height: 58px;
    padding: 0 16px;
  }

  .lch-staff-brand {
    width: 112px;
  }

  .lch-staff-header__actions {
    gap: 12px;
  }

  .lch-staff-header__actions a {
    font-size: 12px;
  }

  .lch-staff-workspace {
    width: calc(100% - 32px);
    padding-top: 14px;
  }

  .lch-staff-tabs {
    gap: 24px;
    margin-bottom: 18px;
  }

  .lch-staff-review-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .lch-staff-review-row__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .lch-staff-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .lch-staff-field--wide {
    grid-column: auto;
  }

  .lch-staff-estatik--manager .es-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
}

@media (max-width: 480px) {
  .lch-staff-login__website {
    top: 14px;
    right: 16px;
  }

  .lch-staff-login {
    padding: 84px 20px 40px;
  }

  .lch-staff-login__brand {
    width: 172px;
    margin-bottom: 38px;
  }

  .lch-staff-header {
    gap: 14px;
  }

  .lch-staff-brand {
    width: 100px;
  }

  .lch-staff-header__actions {
    gap: 9px;
  }

  .lch-staff-header__actions a {
    padding: 0;
    font-size: 12px;
  }

  .lch-staff-toolbar,
  .lch-staff-editor__head {
    align-items: center;
    gap: 12px;
  }

  .lch-staff-toolbar h1,
  .lch-staff-editor__head h1 {
    font-size: 19px;
  }

  .lch-staff-review-row__actions {
    column-gap: 14px;
  }
}

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