:root {
  color-scheme: light;
  --ink: #17242f;
  --muted: #65727d;
  --line: #dbe3e8;
  --paper: #fff;
  --bg: #f2f6f7;
  --brand: #087f72;
  --brand2: #0b655d;
  --danger: #a33c3c;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 9px;
  padding: 10px 15px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button:hover {
  background: var(--brand2);
}
a.button-link {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  border-radius: 9px;
  padding: 10px 15px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
a.button-link:hover {
  background: var(--brand2);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.public-page {
  min-height: 100vh;
  padding: 5px 16px 32px;
  background: #eef5f8;
}
.form-card {
  width: min(100%, 535px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 27px 22px;
  background: var(--paper);
  border-radius: 0;
  box-shadow: 0 0 12px rgba(24, 58, 72, 0.2);
}
.form-header {
  margin: 0 0 20px;
}
.reprotec-logo {
  display: block;
  width: min(100%, 455px);
  height: auto;
  margin: 0 auto 30px;
}
.form-card header p {
  margin: 0;
  color: #061d43;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: pre-line;
}
#fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}
.form-section-title {
  grid-column: 1/-1;
  margin: 19px 0 2px;
  color: #06244d;
  font-size: 18px;
  line-height: 1.2;
}
.field {
  grid-column: 1/-1;
  min-width: 0;
  margin: 12px 0;
}
.field--half {
  grid-column: auto;
}
.field > label {
  display: block;
  margin-bottom: 4px;
  color: #061d43;
  font-size: 9px;
  font-weight: 500;
}
.field label span {
  color: #e84747;
}
.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 27px;
  border: 1px solid #858585;
  border-radius: 11px;
  padding: 5px 11px;
  color: #17242f;
  background: #f6f8f9;
  font-size: 10px;
}
.field textarea {
  min-height: 82px;
  resize: vertical;
}
.phone-field {
  display: grid;
  grid-template-columns: minmax(116px, 170px) minmax(0, 1fr);
  gap: 4px;
}
.phone-field select {
  padding-right: 6px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(0, 128, 134, 0.25);
  border-color: #007f84;
}
.choices {
  display: grid;
  gap: 7px;
  font-size: 10px;
}
.form-card button {
  width: auto;
  min-width: 58px;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  background: #ff7c62;
  font-size: 9px;
  font-weight: 700;
}
.form-card button:hover {
  background: #e96750;
}
.honeypot {
  position: absolute;
  left: -9999px;
}
.success {
  color: #08765d;
  font-weight: 700;
}
.error {
  color: var(--danger);
  font-weight: 700;
}
.privacy-consent {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
  color: #06244d;
  font-size: 9px;
  line-height: 1.55;
}
.privacy-consent p {
  margin: 0 0 12px;
}
.privacy-consent label {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 4px 0;
  cursor: pointer;
}
.privacy-consent input {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #008087;
}
.privacy-consent b {
  color: #e84747;
}
.privacy-consent a {
  color: #06244d;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.privacy-consent a:hover {
  text-decoration: underline;
}

#public-form.submitted .form-header #description,
#public-form.submitted #fields,
#public-form.submitted .privacy-consent,
#public-form.submitted .honeypot,
#public-form.submitted #submit {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .public-page {
    padding: 0;
    background: #fff;
  }
  .form-card {
    width: 100%;
    min-height: 100vh;
    padding: 22px 18px 28px;
    box-shadow: none;
  }
  .reprotec-logo {
    width: min(100%, 420px);
    margin-bottom: 24px;
  }
  .form-card header p {
    font-size: 12px;
    line-height: 1.25;
  }
  #fields {
    grid-template-columns: 1fr;
  }
  .field,
  .field--half {
    grid-column: 1;
    margin: 14px 0;
  }
  .field > label,
  .privacy-consent,
  .form-card button {
    font-size: 11px;
  }
  .field input:not([type="radio"]):not([type="checkbox"]),
  .field select,
  .field textarea {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }
  .phone-field {
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
    gap: 6px;
  }
  .privacy-consent {
    line-height: 1.55;
  }
  .privacy-consent input {
    width: 14px;
    height: 14px;
    margin-top: 1px;
  }
  .form-card button {
    min-width: 72px;
    padding: 10px 18px;
  }
}
.admin-header {
  padding: 28px clamp(20px, 4vw, 60px);
  background: #102f35;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.admin-header h1 {
  margin: 6px 0;
}
.admin-header p {
  margin: 0;
  color: #b9ced1;
}
.secondary {
  background: #e5efef;
  color: #21454a;
}
.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 137px);
}
.admin-layout aside {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #eaf0f1;
}
.admin-layout aside h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-link {
  width: 100%;
  overflow: hidden;
  text-align: left;
  background: transparent;
  color: white;
  padding: 12px;
  margin: 3px 0;
}
.form-link:hover {
  background: #dce7e8;
}
.form-link strong,
.form-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-link small,
.item small,
.panel p,
.empty {
  color: var(--muted);
}
.editor {
  min-width: 0;
  padding: clamp(16px, 3vw, 32px);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 24px);
  margin-bottom: 18px;
}
.panel h2 {
  margin: 0 0 6px;
}
.panel-title {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(320px, 1.3fr);
  gap: 20px;
  align-items: start;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.panel label:not(.inline) {
  display: grid;
  min-width: 0;
  gap: 7px;
  font-weight: 650;
  margin-top: 14px;
}
.panel input:not([type="checkbox"]),
.panel textarea,
.panel select {
  max-width: 100%;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}
.add-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.property-search {
  min-width: 0;
  position: relative;
}
.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 36, 47, 0.18);
}
.search-results .search-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-weight: 400;
  box-shadow: none;
}
.search-results .search-option:hover,
.search-results .search-option:focus,
.search-results .search-option[aria-selected="true"] {
  color: #fff;
  background: var(--brand);
  outline: 0;
}
.search-results .search-option strong,
.search-results .search-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-results .search-option small {
  margin-top: 2px;
  color: var(--muted);
}
.search-results .search-option:hover small,
.search-results .search-option:focus small,
.search-results .search-option[aria-selected="true"] small {
  color: #d8f0eb;
}
.search-empty {
  margin: 8px;
}
.stack {
  min-width: 0;
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  gap: 10px;
  align-items: center;
  background: #fbfcfc;
}
.field-item {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(130px, 200px) auto;
}
.rule-item {
  display: grid;
  grid-template-columns:
    auto minmax(115px, 1fr) minmax(125px, 1fr) minmax(100px, 1fr)
    auto minmax(90px, 0.7fr) minmax(115px, 1fr) auto;
}
.item .grow {
  min-width: 0;
}
.item strong,
.item small {
  display: block;
  overflow-wrap: anywhere;
}
.inline {
  white-space: nowrap;
}
.danger {
  background: #f6e7e7;
  color: var(--danger);
  padding: 8px 10px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.actions p {
  margin: 0 auto 0 0;
  overflow-wrap: anywhere;
}
.actions a {
  color: var(--brand);
}
@media (max-width: 1050px) {
  .admin-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .panel-title {
    grid-template-columns: 1fr;
  }
  .rule-item {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  }
  .rule-item > * {
    min-width: 0;
  }
  .field-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .field-item > input {
    grid-column: 1/-1;
  }
  .field-item > .danger {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 720px) {
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-header button {
    width: 100%;
  }
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-layout aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .editor {
    padding: 14px;
  }
  .grid,
  .panel-title,
  .add-row,
  .field-item,
  .rule-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .item {
    align-items: stretch;
  }
  .field-item > input,
  .field-item > .danger {
    grid-column: auto;
    grid-row: auto;
  }
  .inline {
    white-space: normal;
  }
  .add-row button,
  .actions button {
    width: 100%;
  }
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .actions p {
    margin: 0;
  }
}
.field-tools {
  min-width: 0;
  display: grid;
  gap: 10px;
}
.custom-toggle {
  justify-self: end;
}
.custom-field-editor {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #bcd8d5;
  border-radius: 12px;
  background: #f3faf8;
}
.custom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.badge {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #08765d;
  background: #dff3ed;
  font-size: 11px;
  vertical-align: middle;
}
.public-url-panel {
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 2px solid var(--brand);
  border-radius: 14px;
  background: #eaf8f5;
}
.public-url-panel p {
  margin: 5px 0 10px;
  color: var(--muted);
}
.public-url-panel a {
  color: var(--brand2);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.form-list-item {
  margin: 8px 0;
  overflow: hidden;
  border: 1px solid #ccd9db;
  border-radius: 10px;
  background: #f5f9f9;
}
.form-list-item .form-link {
  margin: 0;
  border-radius: 0;
}
.form-list-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 8px 8px;
}
.mini {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 7px 5px;
  border-radius: 7px;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}
.view-link {
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}
.view-link:hover {
  background: var(--brand2);
}
.form-list-actions .danger {
  color: var(--danger);
  background: #f6e7e7;
}

.confirmation-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 45, 49, 0.62);
}

.confirmation-dialog {
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(7, 45, 49, 0.28);
}

.confirmation-dialog h2 {
  margin: 0 0 12px;
}

.confirmation-dialog p {
  margin: 0;
  line-height: 1.55;
}

.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
@media (max-width: 720px) {
  .custom-toggle {
    justify-self: stretch;
  }
  .custom-actions {
    flex-direction: column-reverse;
  }
  .custom-actions button {
    width: 100%;
  }
}

/* Administrador Reprotec */
.admin-page {
  --admin-navy: #082b35;
  --admin-teal: #00858a;
  --admin-coral: #f47d70;
  --admin-canvas: #f5f8f9;
  --admin-border: #dce6e8;
  min-height: 100vh;
  color: #122f39;
  background: var(--admin-canvas);
}
.admin-page button {
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.admin-page button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(4, 75, 80, 0.13);
}
.admin-header {
  min-height: 170px;
  padding: 26px clamp(24px, 4vw, 68px);
  color: #fff;
  background: linear-gradient(115deg, #062832 0%, #0b3d45 65%, #0c4a50 100%);
  border-bottom: 4px solid var(--admin-coral);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}
.admin-logo-wrap {
  display: grid;
  place-items: center;
  width: 190px;
  height: 104px;
  flex: 0 0 auto;
  padding: 11px 15px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.admin-logo {
  display: block;
  width: 100%;
  height: auto;
}
.admin-header .eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #8ee0dc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.admin-header h1 {
  margin: 0 0 7px;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.admin-header p {
  color: #d5e7e8;
  font-size: 15px;
}
.admin-header .secondary {
  flex: 0 0 auto;
  padding: 13px 20px;
  color: #06363d;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
}
.admin-header .secondary:hover {
  color: #fff;
  background: var(--admin-coral);
}
.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.header-actions .button-link,
.header-actions button {
  min-height: 44px;
}
.settings-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px);
}
.settings-page .panel {
  margin-bottom: 0;
}
.settings-page #settings-status {
  margin: 16px 0 0;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.title-row h2 {
  margin: 0;
}
.icon-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: #06363d;
  background: #fff;
  box-shadow: none;
}
.icon-button:hover,
.icon-button:focus {
  color: #fff;
  background: var(--brand);
  outline: 0;
}
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 29, 67, 0.42);
}
.modal-card {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(6, 29, 67, 0.26);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.modal-header h2 {
  margin: 0;
}
.help-list {
  display: grid;
  gap: 12px;
  margin: 0;
}
.help-list div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.help-list dt {
  margin-bottom: 4px;
  color: #061d43;
  font-weight: 800;
}
.help-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.generated-link {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #b9dcda;
  border-radius: 12px;
  background: #f0faf8;
}
.generated-link a {
  color: var(--brand2);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.generated-link button {
  justify-self: start;
}
.reschedule-card {
  min-height: auto;
}
.reschedule-choice {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.reschedule-choice legend {
  padding: 0 6px;
  color: #061d43;
  font-size: 12px;
  font-weight: 800;
}
.reschedule-choice label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #06244d;
  font-size: 12px;
}
.reschedule-summary,
.reschedule-options {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.reschedule-summary h2,
.reschedule-options h2 {
  margin: 0 0 12px;
  color: #06244d;
  font-size: 17px;
}
.reschedule-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.reschedule-summary div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
}
.reschedule-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.reschedule-summary dd {
  margin: 0;
  color: #17242f;
  font-size: 12px;
  font-weight: 700;
}
.option-list {
  display: grid;
  gap: 8px;
}
.form-card .reschedule-option {
  display: grid;
  width: 100%;
  gap: 4px;
  margin: 0;
  text-align: left;
}
.reschedule-option small {
  color: #fff;
  opacity: 0.9;
}
.form-card .reschedule-empty-action {
  margin-top: 10px;
  color: #12414a;
  background: #e5f0f1;
}
.form-card .reschedule-empty-action:hover {
  color: #fff;
  background: var(--brand2);
}
.admin-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 170px);
}
.admin-layout aside {
  padding: 28px 20px;
  border-color: var(--admin-border);
  background: #edf4f5;
}
.aside-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 5px 18px;
}
.aside-heading h2 {
  margin: 0;
  color: #16414a;
  font-size: 12px;
  letter-spacing: 0.13em;
}
.aside-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  background: var(--admin-teal);
  font-size: 13px;
  font-weight: 900;
}
.editor {
  max-width: 1260px;
  padding: 32px clamp(20px, 3vw, 42px) 60px;
}
.panel {
  padding: 25px 27px;
  margin-bottom: 20px;
  border-color: var(--admin-border);
  border-radius: 16px;
  box-shadow: 0 7px 25px rgba(18, 57, 65, 0.055);
}
.panel h2 {
  color: #092f39;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.panel p {
  line-height: 1.45;
}
.panel label:not(.inline) {
  color: #173942;
  font-size: 13px;
}
.panel input:not([type="checkbox"]),
.panel textarea,
.panel select {
  min-height: 44px;
  padding: 10px 13px;
  border-color: #d3e0e3;
  border-radius: 10px;
  color: #14343c;
  background: #fbfcfd;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.panel input:not([type="checkbox"]):focus,
.panel textarea:focus,
.panel select:focus {
  outline: 0;
  border-color: var(--admin-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 133, 138, 0.12);
}
.panel textarea {
  resize: vertical;
}
.hubspot-form-source {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 4px;
  padding: 18px;
  border: 1px solid #b9dcda;
  border-radius: 12px;
  background: #f0faf8;
}
.hubspot-form-source label {
  margin-top: 0 !important;
}
.hubspot-form-source small {
  color: #567278;
  font-weight: 400;
  line-height: 1.35;
}
.panel-title {
  align-items: center;
}
.field-tools {
  align-content: center;
}
.admin-page button:not(.danger):not(.secondary),
.view-link {
  background: var(--admin-teal);
}
.admin-page button:not(.danger):not(.secondary):hover,
.view-link:hover {
  background: #006f74;
}
.admin-page .icon-button,
.admin-page .icon-button:not(.danger):not(.secondary) {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #06363d;
  background: #fff;
  box-shadow: none;
}
.admin-page .icon-button:hover,
.admin-page .icon-button:focus,
.admin-page .icon-button:not(.danger):not(.secondary):hover,
.admin-page .icon-button:not(.danger):not(.secondary):focus {
  color: #fff;
  background: var(--admin-teal);
  outline: 0;
}
.secondary {
  color: #12414a;
  background: #e5f0f1;
}
.custom-toggle {
  border: 1px solid #d3e3e5;
}
.custom-field-editor {
  border-color: #b9dcda;
  background: #f0faf8;
  box-shadow: inset 0 0 0 1px rgba(0, 133, 138, 0.03);
}
.item {
  padding: 13px 14px;
  border-color: #dbe6e8;
  border-radius: 11px;
  background: #fbfdfd;
}
.item:hover {
  border-color: #bfd5d8;
  background: #fff;
}
.item strong {
  color: #143941;
}
.item small {
  margin-top: 3px;
}
.badge {
  color: #006c64;
  background: #d9f3ec;
}
.danger {
  color: #b43d35;
  background: #fbe9e7;
}
.danger:hover {
  color: #fff;
  background: #c94c42;
}
.form-list-item {
  margin: 10px 0;
  border-color: #d5e2e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(18, 57, 65, 0.05);
}
.admin-page .form-list-item .form-link {
  padding: 15px 13px 10px;
  color: #fff;
  background: #fff;
}
.admin-page .form-list-item .form-link:hover {
  color: #fff;
  background: #f1f8f8;
  box-shadow: none;
  transform: none;
}
.form-list-item .form-link strong,
.form-list-item .form-link small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.form-list-item .form-link strong {
  line-height: 1.3;
}
.form-list-item .form-link small {
  margin-top: 4px;
  color: #fff;
  line-height: 1.3;
}
.form-list-actions {
  gap: 6px;
  padding: 10px;
}
.mini {
  min-height: 34px;
}
.public-url-panel {
  padding: 20px 24px;
  border: 1px solid #83c9c5;
  border-left: 5px solid var(--admin-teal);
  border-radius: 14px;
  background: #eaf8f5;
  box-shadow: 0 7px 20px rgba(18, 57, 65, 0.05);
}
.public-url-panel strong {
  color: #07585b;
}
.actions {
  position: sticky;
  z-index: 10;
  bottom: 16px;
  border-color: #cbdfe1;
  box-shadow: 0 12px 35px rgba(18, 57, 65, 0.13);
}
.actions #save {
  padding: 12px 20px;
}
@media (max-width: 1050px) {
  .admin-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .admin-logo-wrap {
    width: 155px;
    height: 88px;
  }
  .admin-header {
    padding-inline: 28px;
  }
}
@media (max-width: 720px) {
  .admin-header {
    min-height: 0;
    padding: 20px 16px 22px;
  }
  .admin-brand {
    width: 100%;
    align-items: flex-start;
    gap: 14px;
  }
  .admin-logo-wrap {
    width: 112px;
    height: 67px;
    padding: 8px;
    border-radius: 11px;
  }
  .admin-header h1 {
    font-size: 23px;
  }
  .admin-header p {
    font-size: 13px;
  }
  .admin-header .secondary {
    width: 100%;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions .button-link,
  .header-actions button {
    width: 100%;
  }
  .admin-layout {
    display: block;
    min-height: 0;
  }
  .admin-layout aside {
    width: 100%;
    padding: 18px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--admin-border);
  }
  .aside-heading {
    margin-bottom: 10px;
  }
  .form-list-item {
    width: 100%;
    max-width: none;
  }
  .form-list-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .editor {
    width: 100%;
    max-width: none;
    padding: 16px 12px 45px;
  }
  .panel {
    width: 100%;
    min-width: 0;
    padding: 19px 16px;
    border-radius: 13px;
  }
  .panel h2 {
    font-size: 20px;
  }
  .panel-title,
  .grid,
  .add-row,
  .field-item,
  .rule-item,
  .hubspot-form-source {
    grid-template-columns: minmax(0, 1fr);
  }
  .field-tools,
  .property-search,
  .panel input:not([type="checkbox"]),
  .panel textarea,
  .panel select {
    min-width: 0;
    width: 100%;
  }
  .item {
    width: 100%;
    overflow: hidden;
  }
  .field-item > input,
  .field-item > .danger {
    grid-column: auto;
    grid-row: auto;
  }
  .actions {
    position: static;
    bottom: auto;
  }
  .actions #save {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .admin-brand {
    flex-direction: column;
  }
  .admin-logo-wrap {
    width: 145px;
    height: 78px;
  }
  .admin-header h1 {
    font-size: 21px;
  }
  .admin-header p {
    margin-bottom: 3px;
  }
  .panel {
    padding: 17px 13px;
  }
  .form-list-actions {
    grid-template-columns: 1fr;
  }
  .mini {
    width: 100%;
  }
  .form-list-item .form-link {
    padding: 14px 13px;
  }
  .custom-actions {
    width: 100%;
  }
  .rule-item {
    gap: 8px;
  }
}
