:root {
  --bg: #eef3f8;
  --panel: #ffffff;
  --text: #17324d;
  --muted: #5f7388;
  --line: #d7e0ea;
  --blue: #1f5d99;
  --blue-dark: #133d66;
  --blue-soft: #dceafa;
  --green: #1f8a5b;
  --amber: #d58f18;
  --red: #b14a4a;
  --shadow: 0 16px 40px rgba(18, 50, 82, 0.08);
  --radius: 22px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow-shell { width: min(820px, calc(100% - 32px)); }
.stack-lg > * + * { margin-top: 18px; }
.stack-xl > * + * { margin-top: 28px; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215,224,234,0.75);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand strong { display: block; font-size: 1.1rem; }
.brand small { color: var(--muted); }
.brand__mark {
  width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(145deg, var(--blue), var(--blue-dark)); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.top-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-nav a:not(.btn) { color: var(--blue-dark); font-weight: 700; }
.top-nav__welcome { color: var(--muted); font-size: 0.95rem; }
.page-main { padding: 30px 0 48px; }
.card {
  background: var(--panel);
  border: 1px solid rgba(215,224,234,0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-flat { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 700; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
h3 { font-size: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.btn {
  border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: linear-gradient(145deg, var(--blue), var(--blue-dark)); color: #fff; }
.btn-secondary { background: #f1f6fb; color: var(--blue-dark); border: 1px solid var(--line); }
.btn-danger { background: #fff0f0; color: #8d3131; border: 1px solid #f1c9c9; }
.btn-block { width: 100%; }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; }
.alert-error { background: #fff0f0; color: #8d3131; border: 1px solid #f1c9c9; }
.alert-success { background: #edf8f3; color: #1b6c47; border: 1px solid #c7e8d7; }
.notice-box, .comment-box {
  background: #f7fbff; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
}
.login-shell { width: min(520px, calc(100% - 32px)); margin: 60px auto; }
.login-card { padding: 30px; }
label span, .field-label { display: block; margin-bottom: 8px; font-weight: 700; }
input, select, textarea {
  width: 100%; padding: 14px 15px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; font: inherit; color: var(--text);
}
textarea { resize: vertical; min-height: 120px; }
.help-text { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.stats-grid-tight { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stat-card__label { display: block; color: var(--muted); margin-bottom: 10px; }
.stat-card__value { font-size: clamp(2rem, 4vw, 2.8rem); }
.property-grid, .user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.property-card, .user-card { padding: 0; overflow: hidden; }
.property-card__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.property-card__body, .user-card__body { padding: 20px; }
.property-card__topline, .user-card__topline { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.price-pill {
  white-space: nowrap; padding: 11px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark);
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.meta-row span {
  background: #f4f7fb; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 0.94rem;
}
.meta-row-wide { margin-top: 0; }
.mini-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px;
}
.mini-stats-four {
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.mini-stats div { background: #f8fbfe; border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.mini-stats span { display: block; color: var(--muted); font-size: 0.84rem; }
.mini-stats strong { font-size: 1.15rem; }
.progress-block { margin-top: 16px; }
.progress-block__label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.95rem; }
.progress {
  height: 12px; border-radius: 999px; background: #e8f0f8; overflow: hidden;
}
.progress > span {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--blue), #5ea2e5);
  border-radius: inherit;
  transition: width 1s ease;
}
.realtor-strip, .profile-card {
  display: flex; gap: 14px; align-items: center; margin-top: 18px;
  background: #f9fbfe; border: 1px solid var(--line); border-radius: 18px; padding: 14px;
}
.profile-card-inline { margin-top: 0; }
.realtor-strip img, .profile-card img, .user-avatar {
  width: 68px; height: 68px; border-radius: 18px; object-fit: cover; flex: 0 0 auto;
}
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.inline-form { display: inline-flex; }
.detail-layout {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 22px; align-items: start;
}
.client-layout { grid-template-columns: 1.1fr 0.9fr; }
.media-card { padding: 0; overflow: hidden; }
.media-card__content { padding: 22px; }
.property-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.feedback-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: #fff;
}
.feedback-card + .feedback-card { margin-top: 16px; }
.feedback-card__top {
  display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 16px;
}
.answers-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px;
}
.badge {
  padding: 8px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 700;
}
.badge-pending { background: #fff6df; color: #8f6200; }
.badge-approved { background: #e7f7ef; color: #196e48; }
.badge-hidden { background: #edf1f5; color: #50606f; }
.badge-deleted { background: #fde9e9; color: #9d3636; }
.badge-info { background: #eaf2fc; color: #234d79; }
.success-card { text-align: center; padding: 46px 26px; }
.table-like { width: 100%; border-collapse: collapse; }
.table-like tr + tr td { border-top: 1px solid var(--line); }
.table-like td { padding: 14px 0; vertical-align: top; }
.panel-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
.activity-list { display: grid; gap: 12px; }
.activity-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #f9fbfe; }
.empty-state { padding: 22px; border-radius: 18px; border: 1px dashed var(--line); color: var(--muted); background: #fbfdff; }
@media (max-width: 980px) {
  .stats-grid, .property-grid, .detail-layout, .client-layout, .panel-grid, .grid-2, .user-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .card-flat, .section-heading, .feedback-card__top, .property-card__topline, .user-card__topline { flex-direction: column; align-items: start; }
  .answers-grid, .stats-grid-tight, .mini-stats { grid-template-columns: 1fr; }
  .site-header__inner { align-items: start; padding: 14px 0; }
}


.image-preview-card {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fbfdff;
}
.image-preview-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.form-image-preview {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f7fbff;
}
.form-image-preview-avatar {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
}

.notice-box-preview {
  padding: 24px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fd 100%);
  border-color: #cddff2;
}
.preview-banner__text {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--blue-dark);
  font-weight: 700;
}
.progress-block-rich .muted.small {
  display: block;
  margin-top: 8px;
}
.progress-scale-labels {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}
.progress-scale-labels span {
  text-align: center;
}
.progress-scale-labels-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.progress-scale-labels-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.progress-scale-labels-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .progress-scale-labels {
    display: none;
  }
}
.approvals-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.approvals-head__main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.approvals-head__actions {
  justify-content: flex-end;
}
.approval-thumb {
  width: 132px;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f7fbff;
}
@media (max-width: 720px) {
  .approvals-head, .approvals-head__main {
    flex-direction: column;
  }
  .approval-thumb {
    width: 100%;
    max-width: 320px;
  }
}
.password-field {
  display: flex;
  gap: 10px;
  align-items: center;
}
.password-field input {
  flex: 1 1 auto;
}
.password-reveal {
  min-width: 86px;
  white-space: nowrap;
}
.card-actions-compact {
  margin-top: 0;
  align-items: center;
}
@media (max-width: 720px) {
  .password-field {
    flex-direction: column;
    align-items: stretch;
  }
  .password-reveal {
    width: 100%;
  }
}


.site-footer {
  border-top: 1px solid rgba(215,224,234,0.75);
  background: rgba(255,255,255,0.92);
}
.site-footer__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.meta-pill {
  white-space: nowrap;
  padding: 11px 14px;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--blue-dark);
  border: 1px solid var(--line);
  font-weight: 700;
}
.price-pill-large {
  font-size: 1.35rem;
  padding: 13px 18px;
}
.card-actions-topline {
  align-items: center;
}


.stat-card__value-small {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  line-height: 1.35;
}
.feedback-card__top-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.seller-insight-card .notice-box {
  background: #f9fbfe;
}
.insight-list {
  display: grid;
  gap: 12px;
}
.seller-insight-item {
  font-weight: 700;
  color: var(--blue-dark);
}
.seller-status-note {
  border-radius: 18px;
}
.seller-status-note-new {
  background: #edf8f3;
  border-color: #c7e8d7;
  color: #1b6c47;
}
@media (max-width: 720px) {
  .seller-summary-grid {
    grid-template-columns: 1fr;
  }
  .feedback-card__top-badges {
    justify-content: flex-start;
  }
}

.answers-grid-visual {
  gap: 16px;
}
.answer-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f9fbfe;
}
.progress-block-answer {
  margin-top: 0;
}
.progress-block-answer .progress-block__label {
  align-items: flex-start;
}
.progress-answer {
  margin-top: 10px;
}
.answer-card__value {
  margin-top: 10px;
  font-weight: 700;
  color: var(--blue-dark);
}

.checkbox-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.checkbox-item input {
  margin-top: 3px;
}
.seller-login-row + .seller-login-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.seller-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .seller-summary-grid {
    grid-template-columns: 1fr;
  }
}
.comment-box strong {
  color: var(--blue-dark);
}

.toolbar-card {
  padding-top: 18px;
  padding-bottom: 18px;
}
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 20px;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-label {
  color: var(--muted);
  font-weight: 700;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7fbff;
  color: var(--blue-dark);
  font-weight: 700;
}
.chip-active {
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-color: transparent;
}
.card-actions-split {
  justify-content: space-between;
  align-items: center;
}
.mini-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mini-meta-list > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.seller-picker-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}
.seller-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.seller-card-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.seller-card-choice:hover {
  border-color: #b8cee4;
  box-shadow: 0 8px 22px rgba(18, 50, 82, 0.06);
}
.seller-card-choice-selected {
  border-color: #9ec2e6;
  background: #f5faff;
}
.seller-card-choice input {
  width: auto;
  margin-top: 4px;
}
.seller-card-choice__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.seller-card-choice__header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .toolbar-row, .card-actions-split {
    flex-direction: column;
    align-items: stretch;
  }
  .mini-meta-list, .seller-card-list {
    grid-template-columns: 1fr;
  }
}

.progress-scale-points {
  position: relative;
  height: 34px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}
.progress-scale-points span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}
.progress-scale-points span.is-start {
  left: 0 !important;
  transform: none;
  text-align: left;
}
.progress-scale-points span.is-end {
  transform: translateX(-100%);
  text-align: right;
}
.progress-scale-points span.is-first-real {
  min-width: 84px;
}
.progress-neutral {
  background: #edf1f6;
}
.progress-neutral > span {
  background: #c7d0db;
}
.answer-card__value-muted {
  color: var(--muted);
}
@media (max-width: 720px) {
  .progress-scale-points {
    display: none;
  }
}

