:root {
  font-family: Inter, system-ui, sans-serif;
  color: #123b46;
  background: #fcfaf5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #2869c7;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px max(20px, calc((100vw - 1120px) / 2));
  gap: 20px;
  background: #fffdf8;
  border-bottom: 1px solid #e4e5dd;
}
.account-header img {
  object-fit: contain;
  max-width: 140px;
  height: 55px;
}
.account-header nav {
  display: flex;
  gap: 20px;
}
.account-header nav a {
  font-size: 13px;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.account-main {
  max-width: 1120px;
  margin: auto;
  padding: 36px 20px 70px;
}
.account-card {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e1e4dd;
  border-radius: 22px;
  padding: clamp(22px, 4vw, 38px);
}
h1 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 24px;
}
p {
  font-size: 14px;
  line-height: 1.7;
  color: #627577;
}
form {
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cdd6d2;
  border-radius: 11px;
  background: #fff;
  min-width: 0;
  font-size: 16px;
  color: #123b46;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
button,
.action-link {
  border: 0;
  border-radius: 12px;
  background: #2869c7;
  color: #fff;
  padding: 13px 18px;
  min-height: 46px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
button.secondary,
.secondary {
  background: #edf3ef;
  color: #123b46;
}
.danger {
  background: #fff0ed !important;
  color: #9c3527 !important;
}
small {
  font-weight: 400;
  color: #627577;
  line-height: 1.5;
}
#account-status,
.feedback {
  min-height: 22px;
  color: #9c3527;
  white-space: pre-line;
}
input:focus-visible,
button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #80b4f7;
  outline-offset: 3px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b6603f;
  font-weight: 700;
}
.office-head,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.office-head {
  margin-bottom: 28px;
}
.actions {
  justify-content: flex-start;
}
.office-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.office-layout .account-card {
  width: 100%;
  max-width: none;
}
.property-card {
  border: 1px solid #e0e6df;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}
.property-card h3 {
  margin: 0 0 8px;
}
.property-card .actions {
  margin-top: 16px;
}
.property-card .actions button,
.property-card .actions a {
  font-size: 12px;
  padding: 10px 12px;
  min-height: 44px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wide {
  grid-column: 1/-1;
}
.photo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.photo-list img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}
.photo-list button {
  width: 100%;
  font-size: 12px;
  padding: 8px;
}
.notice {
  background: #edf3ef;
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
  line-height: 1.6;
}
.contact-table {
  width: 100%;
  border-collapse: collapse;
}
td {
  padding: 10px;
  border-bottom: 1px solid #dce3dd;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .office-layout {
    grid-template-columns: 1fr;
  }
  .account-main {
    padding-top: 24px;
  }
  .account-header {
    padding: 8px 16px;
    gap: 12px;
  }
  .account-header nav {
    gap: 12px;
  }
  .account-header nav a {
    font-size: 12px;
  }
  .account-header img {
    max-width: 110px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .actions > * {
    flex: 1;
  }
  .office-head .actions {
    width: 100%;
  }
}

#account-status[data-state="success"] { color: #21633b; }
#account-status[data-state="pending"] { color: #627577; }

/* Atalhos de navegação e ação com a mesma geometria no escritório. */
.office-head .office-shortcuts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}
.office-shortcuts .office-shortcut {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 60px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #d8e2ec;
  border-radius: 12px;
  background: #f7f9fc;
  color: #123b46;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
}
.office-shortcuts .office-shortcut svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #2869c7;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.office-shortcut span { min-width: 0; overflow-wrap: anywhere; }
.office-shortcuts .office-shortcut:hover {
  background: #edf4fd;
  border-color: #2869c7;
  color: #123b46;
}
.office-shortcuts .office-shortcut-primary {
  background: #2869c7;
  border-color: #2869c7;
  color: #fff;
}
.office-shortcuts .office-shortcut-primary svg { stroke: currentColor; }
.office-shortcuts .office-shortcut-primary:hover {
  background: #1f56a7;
  border-color: #1f56a7;
  color: #fff;
}
.office-shortcuts .office-shortcut:focus-visible {
  outline: 3px solid #80b4f7;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .office-head .office-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .office-shortcuts .office-shortcut { min-height: 64px; padding: 12px; gap: 9px; font-size: 13px; }
}
@media (max-width: 360px) {
  .office-head .office-shortcuts { grid-template-columns: minmax(0, 1fr); }
}


/* Carteira: linhas de imóveis e espaço próprio para publicidade. */
.office-page .account-main { max-width: 1440px; }
.office-page .office-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.office-portfolio { min-width: 0; grid-column: 1; }
.office-portfolio h2 { margin: 0 0 18px; }
.office-sidebar { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.office-sidebar > .xb-ad { margin-top: 0; position: sticky; top: 20px; }
.office-page #property-editor { grid-column: 1; margin: 0; }
.office-page #properties { border-top: 1px solid #dce5e9; }
.office-page .property-row { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 12px 20px; padding: 20px 0; margin: 0; border: 0; border-bottom: 1px solid #dce5e9; border-radius: 0; }
.property-row .property-photo { grid-row: 1 / span 2; width: 176px; height: 132px; padding: 0; background: #eef3f7; border: 1px solid #dce5e9; border-radius: 10px; color: #627577; overflow: hidden; display: grid; place-items: center; }
.property-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.property-photo-empty { font-size: 12px; }
.property-info { min-width: 0; }
.property-row h3 { margin: 0 0 7px; line-height: 1.35; }
.property-row .property-title { background: transparent; border: 0; border-radius: 0; color: #123b46; font-size: 17px; font-weight: 700; padding: 0; min-height: 0; text-align: left; line-height: inherit; overflow-wrap: anywhere; }
.property-title:hover { color: #2869c7; text-decoration: underline; text-underline-offset: 3px; }
.property-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #627577; font-size: 12px; }
.property-state { border-radius: 20px; padding: 3px 9px; background: #f0f3f6; color: #496269; font-size: 11px; font-weight: 650; }
.property-state-published { background: #e9f5ed; color: #22603b; }
.property-state-paused { background: #fff3db; color: #805710; }
.property-row p { margin: 6px 0; font-size: 12px; line-height: 1.5; }
.property-row .property-facts { color: #496269; }
.property-price { display: block; margin-top: 8px; font-size: 17px; }
.property-row .property-actions { margin: 0; gap: 8px; grid-column: 2; }
.property-row .property-actions button, .property-row .property-actions a { padding: 8px 12px; min-height: 40px; border-radius: 8px; font-size: 12px; }
.property-row button:focus-visible { outline: 3px solid #80b4f7; outline-offset: 3px; }
@media (max-width: 1100px) {
  .office-page .office-layout { grid-template-columns: minmax(0, 1fr); }
  .office-sidebar { grid-column: 1; grid-row: auto; order: 3; }
  .office-sidebar > .xb-ad { position: static; margin: 12px auto; }
}
@media (max-width: 600px) {
  .office-page .property-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .property-row .property-photo { grid-row: 1; width: 96px; height: 90px; }
  .property-row .property-title { font-size: 14px; }
  .property-row .property-actions { grid-column: 1 / -1; gap: 6px; }
  .property-row .property-actions button, .property-row .property-actions a { min-height: 44px; padding: 8px 10px; }
  .property-meta { gap: 6px; }
  .property-row p { font-size: 11px; }
  .property-price { font-size: 16px; }
}
