:root {
  --ink: #203c36;
  --muted: #63766d;
  --green: #14665c;
  --green-soft: #e8f1eb;
  --paper: #faf9f5;
  --line: #dedfd6;
  --yellow: #f3df97;
  --danger: #a33423;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 650;
}
button:hover {
  background: var(--green-soft);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ba7e12;
  outline-offset: 3px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #0c5148;
}
.large {
  padding: 18px 24px;
  font-size: 19px;
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px max(24px, calc((100vw - 1120px) / 2));
  gap: 16px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}
.brand-icon {
  background: var(--green);
  color: white;
  width: 48px;
  height: 48px;
  text-align: center;
  border-radius: 14px;
  font-size: 32px;
  line-height: 45px;
}
.brand small {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 24px 24px 120px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
}
h3 {
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 8px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 14px;
}
.muted,
small {
  color: var(--muted);
}
.hero {
  background: var(--green-soft);
  padding: 40px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.hero p:last-child {
  margin: 0;
  color: var(--muted);
}
.hero button {
  flex-shrink: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: white;
}
.stat strong {
  font-size: 32px;
  display: block;
}
.stat small {
  font-size: 15px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 20px;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
}
.workflow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.workflow button {
  text-align: left;
  padding: 18px 14px;
  border-radius: 16px;
  background: transparent;
}
.workflow span {
  display: block;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 14px;
}
.workflow small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  margin-top: 6px;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
}
.property-card {
  padding: 0;
  overflow: hidden;
}
.cover {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7e9dd;
  font-size: 50px;
  color: var(--green);
  overflow: hidden;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 20px;
}
.price {
  font-size: 23px;
  font-weight: 800;
  color: var(--green);
  margin: 12px 0;
}
.tag {
  display: inline-block;
  background: var(--green-soft);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  margin-bottom: 10px;
}
.tag.warn {
  background: #faecd0;
  color: #74521a;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.actions button,
.actions a {
  flex: 1;
  white-space: nowrap;
}
.actions a,
.call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 10px 16px;
  min-height: 48px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--green);
  font-weight: 650;
}
.list {
  display: grid;
  gap: 14px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.row p {
  margin: 5px 0;
}
.row .actions {
  margin: 0;
  flex-shrink: 0;
}
.notice {
  background: #f7efd7;
  border-left: 4px solid #b39437;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  color: #604f22;
}
.connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fffffff5;
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  z-index: 10;
}
.bottom-nav button {
  border: 0;
  border-radius: 12px;
  background: transparent;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.bottom-nav button[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green);
}
.bottom-nav span {
  font-size: 25px;
}
.search {
  max-width: 650px;
  margin-bottom: 24px;
}
label {
  display: block;
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 18px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #bbc5bc;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 12px;
  margin-top: 7px;
  min-height: 50px;
}
textarea {
  min-height: 105px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 400;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.login-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 65vh;
}
.login-view h1 {
  font-size: 54px;
}
.login-view form {
  padding: 32px;
}
.login-view form button {
  width: 100%;
}
.benefits {
  padding-left: 22px;
  color: var(--muted);
}
.benefits li {
  margin-bottom: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #102f2b88;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading button {
  flex-shrink: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-footer {
  position: sticky;
  bottom: -26px;
  padding: 16px 0;
  background: var(--paper);
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.form-footer button {
  flex: 1;
}
.empty {
  text-align: center;
  padding: 34px;
  border: 1px dashed #bfc6b8;
  border-radius: 16px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  z-index: 50;
  max-width: 90vw;
  width: max-content;
  box-shadow: 0 8px 30px #0002;
}
.error-text {
  color: var(--danger);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.media-grid img,
.media-grid video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  background: #e7e9dd;
}
.media-grid button {
  width: 100%;
  font-size: 14px;
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.detail-facts div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  overflow-wrap: anywhere;
}
.detail-facts small {
  display: block;
}
.detail-facts strong {
  font-weight: 650;
}
.history {
  border-left: 3px solid var(--line);
  padding: 0 0 16px 18px;
  margin: 16px 0;
}
.history p {
  white-space: pre-wrap;
}
.content-output textarea {
  min-height: 180px;
  font-size: 16px;
}
.deadline {
  font-size: 15px;
  color: var(--green);
}
.overdue {
  color: var(--danger);
}
[hidden] {
  display: none !important;
}
.voice-box {
  border: 1px dashed #9cb4a5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.voice-box textarea {
  margin-bottom: 10px;
}
.file-help {
  font-size: 14px;
  font-weight: 400;
  margin: 5px 0 12px;
}
.preview-files {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.preview-files img {
  height: 80px;
  max-width: 120px;
  object-fit: cover;
  border-radius: 8px;
}
.match-reasons {
  font-size: 14px;
  color: var(--green);
}
@media (max-width: 900px) {
  .workflow {
    grid-template-columns: repeat(3, 1fr);
  }
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding: 28px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero .large {
    font-size: 17px;
  }
  .login-view {
    gap: 28px;
  }
  .row {
    align-items: flex-start;
    flex-direction: column;
  }
  .bottom-nav button {
    min-width: 0;
    width: 25%;
    max-width: 180px;
  }
}
@media (max-width: 600px) {
  :root {
    font-size: 17px;
  }
  .topbar {
    padding: 16px;
  }
  .brand {
    font-size: 20px;
  }
  .brand small {
    font-size: 10px;
  }
  .brand-icon {
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 38px;
  }
  .account {
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    gap: 0;
  }
  .account button {
    min-height: 40px;
    padding: 4px;
  }
  .account span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  main {
    padding: 16px 16px 110px;
  }
  .hero {
    display: block;
    padding: 26px 22px;
    border-radius: 18px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero button {
    width: 100%;
    margin-top: 22px;
  }
  .stats {
    gap: 8px;
    margin: 16px 0 26px;
  }
  .stat {
    padding: 14px 10px;
    border-radius: 12px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat small {
    font-size: 12px;
  }
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow button {
    font-size: 17px;
  }
  .property-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    margin-top: 28px;
    align-items: center;
  }
  .section-heading h1 {
    font-size: 30px;
    letter-spacing: -0.6px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .section-heading .eyebrow {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .section-heading button {
    font-size: 15px;
    padding: 10px;
  }
  .bottom-nav {
    padding-left: 6px;
    padding-right: 6px;
  }
  .bottom-nav button {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px;
    min-height: 60px;
  }
  .bottom-nav span {
    font-size: 24px;
  }
  .login-view {
    display: block;
    min-height: auto;
  }
  .login-view h1 {
    font-size: 40px;
  }
  .login-view .card {
    margin-top: 28px;
    padding: 24px;
  }
  .benefits {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  dialog {
    padding: 20px;
    width: calc(100% - 16px);
    max-height: 94dvh;
  }
  .form-footer {
    bottom: -20px;
  }
  .detail-facts {
    gap: 12px;
  }
  .cover {
    height: 220px;
  }
  .card {
    padding: 18px;
  }
  .property-card {
    padding: 0;
  }
  .media-grid img,
  .media-grid video {
    height: 160px;
  }
  .row .actions {
    width: 100%;
  }
  .actions {
    width: 100%;
  }
  .row .actions button {
    white-space: normal;
  }
  .connection {
    font-size: 12px;
  }
  .toolbar {
    gap: 12px;
  }
}
@media (max-width: 360px) {
  .topbar {
    padding: 12px;
    gap: 8px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    line-height: 34px;
    flex-shrink: 0;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .account span {
    max-width: 88px;
  }
}

.auth-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--green-soft);
}
.login-view .auth-tabs button {
  width: 50%;
  background: transparent;
  border: 0;
}
.login-view .auth-tabs button[aria-pressed="true"] {
  background: white;
  color: var(--green);
  box-shadow: 0 2px 8px #203c3610;
}
#authError {
  padding: 12px;
  background: #fff0eb;
  border-radius: 10px;
}
