:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --ink: #17221e;
  --ink-soft: #46514b;
  --ink-faint: #727b75;
  --line: #e2ddd2;
  --pine: #1f6f5c;
  --pine-dark: #175243;
  --pine-wash: #e7f1ec;
  --amber: #b9792b;
  --amber-wash: #f6ecdc;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
}
.brand .logo {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--pine); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
}
.brand b { font-size: 19px; }
.brand small { display: block; font-size: 13px; color: var(--ink-faint); font-weight: 600; }

h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; }
h2 { font-size: 23px; font-weight: 800; margin: 0 0 14px; }
p.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 24px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 18px;
}

label { display: block; font-weight: 700; font-size: 18px; margin-bottom: 10px; }

input[type="text"], textarea {
  width: 100%; font-size: 20px; font-family: inherit; color: var(--ink);
  padding: 16px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff;
}
input[type="text"]:focus, textarea:focus {
  outline: none; border-color: var(--pine);
}
textarea { min-height: 220px; line-height: 1.6; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 20px; font-weight: 800; font-family: inherit; cursor: pointer;
  background: var(--pine); color: #fff; border: none; border-radius: 12px;
  padding: 16px 26px; text-decoration: none; width: 100%;
}
.btn:hover { background: var(--pine-dark); }
.btn.secondary {
  background: #fff; color: var(--pine); border: 2px solid var(--pine);
}
.btn.big { padding: 20px; font-size: 22px; }

.hint { font-size: 15px; color: var(--ink-faint); margin-top: 10px; }
.error { color: #b02a2a; font-weight: 700; margin-top: 10px; }

/* 매물 목록 */
.prop {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.prop:first-child { border-top: none; }
.prop .pname { font-weight: 800; font-size: 19px; }
.prop .pmeta { font-size: 14px; color: var(--ink-faint); margin-top: 2px; }
.badge {
  font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.badge.waiting { background: var(--amber-wash); color: var(--amber); }
.badge.done { background: var(--pine-wash); color: var(--pine); }
.badge.error { background: #f6dcdc; color: #b02a2a; }

.prop.new { background: var(--pine-wash); margin: 0 -14px; padding: 18px 14px; border-radius: 12px; border: none; }

.linkbox {
  background: var(--pine-wash); border-radius: 12px; padding: 16px; margin-top: 12px;
  word-break: break-all; font-size: 16px; color: var(--pine-dark); font-weight: 600;
}

/* 브리핑 결과 */
.summary {
  background: var(--surface); border-left: 5px solid var(--pine);
  border-radius: 12px; padding: 18px 20px; font-size: 19px; font-weight: 700;
  margin-bottom: 20px;
}
table.highlights { width: 100%; border-collapse: collapse; }
table.highlights td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; font-size: 17px; }
table.highlights td.k { font-weight: 800; white-space: nowrap; width: 120px; color: var(--pine-dark); }
.section h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.section .ssum { color: var(--ink-soft); margin: 0 0 10px; }
.section ul { margin: 0 0 12px; padding-left: 20px; }
.section li { margin: 6px 0; }
.ment {
  background: var(--pine-wash); border-radius: 10px; padding: 14px 16px;
  font-size: 17px; color: var(--pine-dark); font-style: italic;
}
.ment b { font-style: normal; }
.tips { padding-left: 20px; }
.tips li { margin: 8px 0; }
.closing { font-size: 20px; font-weight: 800; color: var(--pine-dark); }

.row-actions { display: flex; gap: 10px; }
.row-actions .btn { width: auto; flex: 1; }

/* 상단바 · 로그인 상태 */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; font-size: 17px;
}
.topbar .logout {
  color: var(--ink-faint); text-decoration: none; font-weight: 700; font-size: 15px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}

/* 무료 사용량 표시 */
.usage {
  background: var(--pine-wash); color: var(--pine-dark);
  border-radius: 12px; padding: 14px 16px; font-size: 16px; font-weight: 600;
  margin-bottom: 18px;
}
.usage.zero { background: #f6dcdc; color: #b02a2a; }

/* 음성 입력 버튼 */
.btn.voice {
  background: #fff; color: var(--pine); border: 2px solid var(--pine);
  width: 100%; margin-bottom: 12px;
}
.btn.voice.recording { background: #b02a2a; color: #fff; border-color: #b02a2a; }
