:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d9dee7;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --brand: #0f6b5f;
  --brand-strong: #0a4c43;
  --accent: #b3452c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--brand-strong);
}

.brand::before {
  content: "의";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-size: 16px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-strong);
}

.brand-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding: 1px 8px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(15, 107, 95, 0.12);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

nav a.active,
nav a:hover {
  color: var(--brand-strong);
  background: #e7f3f0;
}

main {
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 56px 28px;
  background:
    linear-gradient(90deg, rgba(15, 107, 95, 0.92), rgba(15, 107, 95, 0.62)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='520' viewBox='0 0 1200 520'%3E%3Crect width='1200' height='520' fill='%23eef3f1'/%3E%3Cg fill='none' stroke='%23b8c8c2' stroke-width='3'%3E%3Cpath d='M80 390h1040M150 390V190l135-84 135 84v200M510 390V150h230v240M820 390V210l120-78 120 78v180'/%3E%3Cpath d='M205 390v-92h70v92M570 390v-80h55v80M675 390v-80h55v80M900 390v-78h62v78'/%3E%3Cpath d='M180 220h58v52h-58zM292 220h58v52h-58zM560 190h52v52h-52zM645 190h52v52h-52zM882 238h52v52h-52zM975 238h52v52h-52z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: white;
}

.hero.hero-photo {
  background:
    linear-gradient(100deg, rgba(10, 40, 34, 0.88), rgba(10, 40, 34, 0.5)),
    url("/static/images/hero-living-room.jpg");
  background-size: cover;
  background-position: center;
}

.hero > div {
  max-width: 760px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-lockup .logo-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 26px;
  font-weight: 900;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 24px;
}

.brand-lockup small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.hero .eyebrow {
  color: #f3d5c9;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  font-size: 17px;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 18px;
}

.hero-trust span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
}

.conversion-note,
.consult-lead {
  color: var(--muted);
}

.hero .conversion-note {
  max-width: 640px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.conversion-note.compact {
  margin: 14px 0 0;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.button.call-strong {
  border-color: #b3452c;
  background: #b3452c;
  color: white;
  box-shadow: 0 8px 18px rgba(179, 69, 44, 0.22);
}

.button.kakao-strong {
  border-color: #f4d34f;
  background: #ffe45c;
  color: #332600;
}

.button.small {
  min-height: 32px;
  font-size: 13px;
}

.section {
  padding: 34px 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
}

.section-head.compact {
  align-items: start;
  flex-direction: column;
  gap: 2px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.listing-card,
.panel,
.upload-box,
.consult,
.analysis,
.detail-info,
.section article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.listing-card {
  padding: 20px;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #dbe4e2;
  color: var(--brand-strong);
  font-weight: 800;
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-cards article {
  display: grid;
  gap: 6px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trust-cards article:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 107, 95, 0.12);
}

.trust-icon {
  font-size: 26px;
  line-height: 1;
}

.trust-cards strong {
  color: var(--brand-strong);
  font-size: 16px;
}

.trust-cards span:not(.trust-icon) {
  color: var(--muted);
  font-size: 14px;
}

/* 홈페이지의 핵심 목표: 첫 방문자가 5초 안에 집보는눈 AI / 매물 찾기 /
   부동산 정보 / 상담하기 중 원하는 곳으로 이동할 수 있어야 한다. 그래서
   트러스트 카드보다 눈에 띄게 크게, hero 바로 아래에 배치한다. */
.home-nav-cards {
  padding-top: 28px;
  padding-bottom: 8px;
}

.home-nav-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-nav-card {
  display: grid;
  gap: 8px;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 107, 95, 0.16);
  border-color: var(--brand);
}

.home-nav-card-icon {
  font-size: 32px;
  line-height: 1;
}

.home-nav-card strong {
  color: var(--brand-strong);
  font-size: 18px;
}

.home-nav-card span:not(.home-nav-card-icon) {
  color: var(--muted);
  font-size: 14px;
}

.page-head {
  padding: 34px 28px 8px;
}

.page-head h1 {
  margin: 4px 0 8px;
}

.page-head p {
  color: var(--muted);
}

.trust-explainer {
  background: #fff;
}

.trust-explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.trust-explainer-col {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.trust-explainer-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(15, 107, 95, 0.12);
  font-size: 20px;
}

.trust-explainer-col h3 {
  margin-bottom: 8px;
  color: var(--brand-strong);
}

.trust-explainer-col p {
  color: var(--muted);
  font-size: 14px;
}

.trust-explainer-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.trust-explainer-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.trust-explainer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.search-form select {
  min-width: 140px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  background: white;
}

.search-result-note {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.search-result-note a {
  color: var(--brand-strong);
  font-weight: 700;
}

.button.ai-strong {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: white;
  box-shadow: 0 8px 18px rgba(10, 76, 67, 0.28);
}

.home-eye-showcase {
  padding-top: 22px;
  border-top: 3px solid var(--brand);
  background: var(--soft);
}

.home-eye-showcase .section-head p {
  max-width: 640px;
}

.home-eye-showcase .eyebrow {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 107, 95, 0.1);
}

.home-eye-showcase-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8f6 100%);
  box-shadow: 0 16px 34px rgba(15, 107, 95, 0.16);
}

.home-eye-score-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.home-eye-score {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
}

.home-eye-score-number {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.home-eye-score-label {
  font-size: 12px;
  opacity: 0.85;
}

.home-eye-score-verdict {
  margin: 0;
  max-width: 130px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.home-eye-showcase-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.home-eye-showcase-col h3 {
  font-size: 14px;
  color: var(--brand-strong);
  margin-bottom: 8px;
}

.home-eye-showcase-col ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
}

.home-eye-showcase-photos {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.home-eye-showcase-card > .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.home-eye-consult-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-strong);
  color: white;
}

.home-eye-consult-cta h3 {
  margin-bottom: 4px;
  color: white;
}

.home-eye-consult-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.home-eye-consult-cta .actions {
  flex-wrap: nowrap;
}

.home-eye-feature {
  padding: 0;
  overflow: hidden;
}

.home-eye-feature-copy {
  padding: 40px 28px;
  background: linear-gradient(120deg, var(--brand-strong), #123f37);
  color: white;
}

.home-eye-feature-copy .eyebrow {
  color: #cfe7dd;
}

.home-eye-feature-copy h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.home-eye-feature-copy .lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
}

.home-eye-points {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.home-eye-points li {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.info-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-checklist li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.info-checklist summary {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.info-checklist summary::-webkit-details-marker {
  display: none;
}

.info-checklist summary::after {
  content: "자세히 보기 +";
  justify-self: start;
  margin-top: 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.info-checklist details[open] summary::after {
  content: "접기 -";
}

.info-checklist strong {
  color: var(--brand-strong);
}

.info-checklist span {
  color: var(--muted);
  font-size: 14px;
}

.info-detail {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
}

.info-detail p {
  margin: 14px 0 8px;
  font-weight: 700;
  color: var(--brand-strong);
  font-size: 13px;
}

.info-detail ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 14px;
  display: grid;
  gap: 6px;
}

.seo-heading {
  padding: 28px 28px 0;
}

.seo-heading h1 {
  max-width: 900px;
  margin-bottom: 10px;
}

.seo-heading p:last-child {
  max-width: 860px;
  color: var(--muted);
}

.price {
  color: var(--brand-strong);
  font-size: 20px;
  font-weight: 800;
}

.address,
.listing-card p {
  color: var(--muted);
}

.agent-line {
  margin-bottom: 14px;
  color: var(--brand-strong);
  font-weight: 800;
}

.registry-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 107, 95, 0.25);
  border-radius: 8px;
  background: rgba(15, 107, 95, 0.08);
  color: var(--brand-strong);
  font-size: 13px;
}

.registry-trust-icon {
  font-size: 16px;
  line-height: 1;
}

.registry-trust-age {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.detail {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  gap: 20px;
  padding: 28px;
}

.gallery {
  min-height: 360px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: start;
}

.gallery-item-block {
  display: grid;
  gap: 6px;
}

.gallery img,
.empty-photo,
.gallery-item {
  width: 100%;
  min-height: 170px;
  border-radius: 8px;
  background: #dbe4e2;
  border: 1px solid var(--line);
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.gallery-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(15, 107, 95, 0.92);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

/* 사진 카테고리(거실/주방/욕실 등) 기반 1~2줄 안내 문구 -- 사진 바로
   아래, 일반 문서 흐름에 배치되어 위 figcaption(대표 사진 배지)과는
   겹치지 않는다. */
.gallery-item-caption {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.empty-photo {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.detail-info {
  padding: 24px;
}

.specs {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.specs span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.two-col article,
.consult,
.analysis {
  padding: 22px;
}

.property-question-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.property-question-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.property-question-name {
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--brand-strong);
}

.property-question-message {
  margin: 0;
}

.property-question-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--soft);
}

.property-question-reply strong {
  color: var(--brand-strong);
}

.property-question-reply p {
  margin: 4px 0 0;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--brand-strong);
}

.form-note.error {
  color: var(--accent);
}

.assist-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
}

.assist-actions span {
  color: var(--muted);
  font-size: 14px;
}

.consult .assist-actions {
  display: none;
}

.analysis-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.analysis-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 6px;
  background: white;
}

.analysis-item.caution {
  border-left-color: var(--accent);
}

.analysis-card-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.analysis-card,
.metric-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.analysis-card strong,
.metric-grid strong {
  display: block;
  color: var(--brand-strong);
  font-size: 18px;
  margin-bottom: 8px;
}

.metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 24px;
}

.metric-grid strong {
  font-size: 28px;
}

.metric-grid span {
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge-pass {
  background: #e6f5ed;
  color: #16603a;
}

.badge-review {
  background: #fff4d8;
  color: #805600;
}

.badge-block {
  background: #fde9e7;
  color: #9a2c1f;
}

.internal-link-box code {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.workspace {
  max-width: none;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.side {
  padding: 26px 18px;
  background: #21312f;
  color: white;
}

.side h1 {
  font-size: 26px;
}

.side-link {
  display: block;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.side-link.active,
.side-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.panel {
  margin: 28px;
  padding: 22px;
  overflow-x: auto;
}

.admin-layout {
  max-width: 940px;
}

.admin-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-hint {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #c8ded9;
  border-radius: 8px;
  background: #eef8f5;
}

.admin-hint strong {
  color: var(--brand-strong);
}

.admin-hint span {
  color: var(--muted);
}

.login-form {
  max-width: 520px;
}

.mobile-sticky-contact {
  display: none;
}

.mobile-workbench {
  max-width: 760px;
}

.mobile-hero {
  padding: 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mobile-hero h1 {
  font-size: 30px;
}

.mobile-task-list {
  display: grid;
  gap: 12px;
}

.mobile-task-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-task-card strong {
  color: var(--brand-strong);
  font-size: 18px;
}

.mobile-task-card span {
  color: var(--muted);
}

.mobile-task-card select {
  min-width: 140px;
  margin-top: 0;
}

.mobile-task-card-done {
  opacity: 0.55;
}

.quick-property-form {
  display: grid;
  gap: 4px;
}

.quick-capture-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.quick-capture-start select {
  min-width: 120px;
}

.quick-capture-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.quick-capture-category-grid button {
  padding: 14px 8px;
}

.quick-capture-category-grid button.quick-capture-category-active {
  background: var(--brand-strong);
  color: #fff;
}

.quick-capture-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quick-capture-gallery-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-capture-review {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.mobile-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
}

.mobile-tab-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.mobile-tab-btn.active {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}

/* 등록완료 버튼을 화면 하단에 고정해, 필수 항목만 채우고 스크롤 없이
   바로 저장할 수 있게 한다 -- populateReview()가 사진을 한 장이라도
   찍은 뒤에만 hidden을 해제한다 (platform.js 참고). */
.mobile-savebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(23, 32, 42, 0.12);
}

.mobile-savebar .button {
  min-height: 52px;
}

body[data-page="mobile"] .mobile-workbench {
  padding-bottom: 110px;
}

.building-lookup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -4px;
}

.optional-fieldset {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.optional-fieldset summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--brand-strong);
}

.distribution-channels {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.distribution-channels legend {
  font-weight: 800;
  color: var(--brand-strong);
  padding: 0 4px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.checkbox-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.copy-source-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.distribution-preview {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.pro-table th,
.pro-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pro-table span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 86px;
  }

  .topbar,
  .section-head,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 10px;
    padding: 10px 16px;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  nav a {
    text-align: center;
  }

  /* 현장에서 촬영부터 바로 보이도록, /admin/mobile 화면(body[data-page="mobile"])
     에서만 좁은 화면일 때 메뉴를 기본적으로 접어둔다. 다른 관리자 화면과
     데스크톱 화면은 이 규칙의 영향을 받지 않는다 (선택자가 이 조합에만
     걸리기 때문). */
  body[data-page="mobile"] .topbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  body[data-page="mobile"] .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--soft);
    color: var(--brand-strong);
    font-weight: 700;
    font-size: 14px;
  }

  body[data-page="mobile"] .topbar nav {
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  body[data-page="mobile"] .topbar.nav-open nav {
    display: grid;
  }

  h1 {
    font-size: 32px;
  }

  .hero {
    min-height: auto;
    padding: 26px 18px 30px;
  }

  .brand-lockup {
    margin-bottom: 12px;
  }

  .brand-lockup .logo-mark {
    width: 48px;
    height: 48px;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: 1fr;
    margin: 16px 0;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .button.call-strong,
  .button.primary {
    font-size: 16px;
  }

  input[type="file"] {
    min-height: 54px;
    padding-top: 14px;
  }

  .detail,
  .two-col,
  .workspace,
  .form-grid,
  .trust-cards,
  .trust-explainer-grid,
  .analysis-card-grid,
  .metric-grid,
  .home-nav-card-grid {
    grid-template-columns: 1fr;
  }

  .trust-cards {
    padding: 18px;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form select,
  .search-form button {
    width: 100%;
  }

  .home-eye-feature-copy {
    padding: 28px 18px;
  }

  .home-eye-showcase-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 20px;
  }

  .home-eye-showcase-body {
    grid-template-columns: 1fr;
    text-align: left;
    width: 100%;
  }

  .home-eye-showcase-card > .button {
    justify-self: center;
  }

  .home-eye-consult-cta {
    flex-direction: column;
    text-align: center;
  }

  .home-eye-consult-cta .actions {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .home-eye-consult-cta .actions .button {
    flex: 1 1 140px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item figcaption {
    position: static;
    border-radius: 0;
  }

  .mobile-sticky-contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(23, 32, 42, 0.12);
  }

  .mobile-sticky-contact .button {
    min-height: 52px;
  }

  .mobile-workbench .section {
    padding: 22px 16px;
  }

  .mobile-task-card .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-property-form .assist-actions {
    position: sticky;
    bottom: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.96);
  }

  .side {
    min-height: auto;
  }
}
