:root {
  --ink: #172b29;
  --muted: #5a6b64;
  --paper: #f5f7f6;
  --white: #fff;
  --line: #dce3df;
  --green: #153e36;
  --pale: #eef3f0;
  --orange: #a9502e;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: var(--green);
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 max(5vw, 24px);
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.055em;
}
.brand-mark {
  display: block;
  flex: none;
}
.brand span {
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: var(--tracking-label);
  display: inline-block;
  border-left: 1px solid var(--line);
  margin-left: 16px;
  padding-left: 16px;
  vertical-align: middle;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: var(--text-sm);
}
.text-button {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: var(--text-sm);
  font-weight: 500;
}
.file-label {
  cursor: pointer;
}
.file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 0 42px;
}
.eyebrow {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-label);
  font-weight: 600;
  color: var(--green);
  margin: 0 0 17px;
}
h1 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking-heading);
  margin: 0 0 20px;
}
h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
h3 {
  font-size: var(--text-lead);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
p {
  line-height: 1.65;
  margin: 0 0 15px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  gap: 15px;
  margin-bottom: 30px;
}
.steps button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  padding: 18px 0;
  text-align: left;
  font-size: var(--text-ui);
  font-weight: 500;
  line-height: 1.4;
}
.steps span {
  font-size: var(--text-xs);
  margin-right: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps .active {
  color: var(--ink);
  border-color: var(--green);
  font-weight: 700;
}
.view {
  animation: appear 0.2s ease;
}
@keyframes appear {
  from {
    opacity: 0.3;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
}
.aside {
  background: var(--pale);
  border: 1px solid #d0dbc5;
  border-radius: 12px;
  padding: 30px;
}
.upload {
  position: relative;
  border: 1px dashed #9eaf9b;
  border-radius: 9px;
  background: #f7f9f2;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 16px;
  text-align: center;
  padding: 22px;
}
.upload:focus-within {
  outline: 2px solid var(--green);
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.upload-icon {
  font-size: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: var(--text-sm);
}
.button {
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: 12px 19px;
  font-weight: 600;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  font-size: var(--text-ui);
}
.button.secondary {
  background: transparent;
  color: var(--green);
  border-color: #afbcab;
}
.button.small {
  padding: 7px 11px;
  font-size: var(--text-sm);
  min-height: 36px;
}
.button.danger {
  color: var(--orange);
  border-color: #c9a597;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}
.aside ol {
  padding-left: 20px;
  font-size: var(--text-ui);
  line-height: 1.8;
}
.aside li {
  padding-left: 5px;
  margin: 12px 0;
}
.aside a {
  font-weight: 600;
}
.aside hr {
  border: 0;
  border-top: 1px solid #cdd7c4;
  margin: 22px 0;
}
.context {
  display: flex;
  align-items: end;
  gap: 18px;
  background: var(--pale);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 24px;
}
.context label {
  min-width: 170px;
}
.context label:first-child {
  min-width: 0;
  flex: 1;
  max-width: 450px;
}
.context .badge {
  margin: auto 0 auto auto;
}
.badge {
  font-size: var(--text-xs);
  border: 1px solid #aabcaa;
  padding: 7px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.4;
}
.badge.ready {
  background: #d6e8d3;
  color: #245735;
}
.badge.warn {
  color: #884b2d;
  background: #f8eadb;
  border-color: #e0c2a5;
}
.notice {
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid #b9cbb5;
  border-radius: 8px;
  background: #eaf1e2;
  white-space: pre-line;
  font-size: var(--text-ui);
  line-height: 1.6;
}
.notice.error {
  background: #fff0e4;
  border-color: #e8b49a;
  color: #854728;
}
label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  display: block;
  border: 1px solid #bdc9b9;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 11px;
  width: 100%;
  margin-top: 7px;
  min-height: 44px;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin: 0 9px 0 0;
  flex-shrink: 0;
}
textarea {
  min-height: 140px;
  line-height: 1.6;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.fields .wide {
  grid-column: 1/-1;
}
.fields.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.subtle-note {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid #aebe9c;
  padding-left: 13px;
  margin: 18px 0 0;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 24px;
}
.stat {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat strong {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--tracking-heading);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-top: 8px;
}
.stat span {
  font-size: var(--text-sm);
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
}
.booking {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  margin: 16px 0;
  background: var(--white);
}
.booking-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.booking-head strong {
  font-size: var(--text-ui);
}
.booking-head span {
  font-size: var(--text-xs);
  color: var(--muted);
}
.booking .fields {
  gap: 12px;
}
.booking input,
.booking select {
  font-size: var(--text-body);
  padding: 8px;
}
.residence {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.party-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 90px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.party-row button {
  margin-bottom: 2px;
}
.row-issues {
  font-size: var(--text-sm);
  color: var(--orange);
  line-height: 1.6;
  padding-left: 18px;
}
.check {
  display: flex;
  align-items: flex-start;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink);
  font-weight: 400;
  margin: 15px 0;
}
.check input {
  margin-top: 3px;
}
.issue-box {
  background: #faf0e3;
  border: 1px solid #e2cbb2;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 24px;
  font-size: var(--text-sm);
  line-height: 1.65;
}
.issue-box ul {
  margin-bottom: 0;
  padding-left: 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-sm);
}
th {
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-align: left;
  background: var(--pale);
  color: var(--muted);
  font-weight: 600;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
}
td:not(:first-child),
th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
details {
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--green);
  line-height: 1.6;
  font-weight: 500;
}
details[open] > summary {
  margin-bottom: 18px;
}
.mapping {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.mini {
  font-size: var(--text-xs);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
}
.bookmark {
  border-style: dashed;
  background: #e5efdc !important;
  font-weight: 600;
}
.report-title {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.report-title p {
  margin: 5px 0;
}
.empty {
  padding: 45px;
  text-align: center;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 48px;
  font-size: var(--text-xs);
  line-height: 1.8;
  color: var(--muted);
}
footer strong {
  color: var(--ink);
}
footer p {
  text-align: right;
  font-size: var(--text-xs);
}
@media (max-width: 800px) {
  main {
    padding: 0 22px;
  }
  .topbar {
    padding: 0 22px;
    height: 75px;
  }
  .toolbar {
    gap: 13px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 8px;
  }
  .steps span {
    display: block;
    margin-bottom: 5px;
  }
  .steps button {
    font-size: var(--text-xs);
  }
  .context {
    flex-wrap: wrap;
  }
  .context .badge {
    margin-left: 0;
  }
  .mapping {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .brand span {
    display: none;
  }
  .toolbar {
    gap: 12px;
  }
  .text-button {
    font-size: var(--text-xs);
  }
  h1 {
    font-size: 28px;
  }
  .card,
  .aside {
    padding: 22px;
  }
  .context {
    padding: 16px;
  }
  .context label,
  .context label:first-child {
    min-width: 0;
    max-width: none;
    flex: 1 1 45%;
  }
  .fields,
  .fields.three {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .fields.three label:last-child {
    grid-column: 1/-1;
  }
  .stat {
    padding: 18px 12px;
  }
  .stat strong {
    font-size: 30px;
  }
  .stat span {
    font-size: var(--text-sm);
  }
  .booking {
    padding: 16px;
  }
  .party-row {
    grid-template-columns: minmax(110px, 1fr) 65px auto;
    gap: 6px;
  }
  .party-row .button {
    padding: 8px;
    font-size: var(--text-xs);
  }
  .mapping {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  footer {
    display: block;
  }
  footer p {
    text-align: left;
    margin-top: 18px;
  }
}
@media print {
  .topbar,
  .steps,
  .context,
  footer,
  .no-print,
  #notice {
    display: none !important;
  }
  body,
  main,
  .card {
    background: white;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
  .view:not(#view-transfer) {
    display: none;
  }
  #view-transfer {
    display: block !important;
  }
  .grid {
    display: block;
  }
  .aside {
    display: none;
  }
  h2 {
    font-size: 22px;
  }
}
:root .earnings-overview {
  margin-top: 24px;
}
.finance-table td:first-child {
  line-height: 1.5;
}
.finance-table td:last-child {
  white-space: nowrap;
}
.monthly-finance {
  padding: 16px;
  background: #f0f3e9;
  border-radius: 8px;
  margin: 18px 0;
}
.monthly-finance .finance-table td {
  padding: 10px 5px;
  font-size: var(--text-sm);
}
.monthly-finance .finance-table td:last-child {
  white-space: normal;
  min-width: 80px;
}
.monthly-finance .issue-box {
  padding: 12px;
  margin-top: 16px;
}
.earnings-overview details table {
  min-width: 1050px;
}

.date-detection {
  background: var(--pale);
  border-radius: 6px;
  padding: 14px;
  margin-top: 12px;
}
.date-detection p:last-child {
  margin-bottom: 0;
}
.date-detection ul {
  padding-left: 18px;
  line-height: 1.7;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.import-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}
.import-source + .import-source {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.import-source-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
}
.import-source .badge {
  padding: 4px 8px;
}
.import-source p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.import-continue {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.import-continue p {
  margin: 10px 0 0;
}

.property-save-status {
  color: var(--green);
  border-left: 2px solid var(--green);
  padding-left: 10px;
}
.context .show-inactive {
  min-width: 0;
  font-size: var(--text-xs);
  align-self: center;
  margin: 0;
  max-width: 150px;
}
.toolbar {
  flex-wrap: wrap;
}
.context {
  flex-wrap: wrap;
}

.workspace-status {
  font-size: var(--text-sm);
  color: var(--green);
  margin: 0 0 18px;
}
.workspace-status.error {
  color: var(--orange);
  background: #fff0e4;
  padding: 12px;
  border: 1px solid #e8b49a;
  border-radius: 6px;
}
footer details {
  max-width: 650px;
}
footer details p {
  text-align: left;
}

.helper-steps {
  font-size: var(--text-sm);
  line-height: 1.65;
  padding-left: 20px;
}
.helper-steps li {
  margin: 0 0 12px;
}
.browser-guide {
  border: 1px solid #abbba6;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  margin: 18px 0;
  font-size: var(--text-xs);
}
.browser-guide-address {
  margin: 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  text-align: center;
  background: var(--paper);
}
.browser-guide-bookmarks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--green);
  flex-wrap: wrap;
}
.browser-guide-bookmarks strong {
  border: 1px dashed var(--green);
  border-radius: 4px;
  padding: 5px 7px;
  color: var(--green);
}
.browser-guide-page {
  padding: 16px 10px;
  color: var(--muted);
  text-align: center;
}
.browser-guide + .bookmark {
  margin-bottom: 12px;
}

/* Compact working layout; the public introduction lives on the landing page. */
.topbar {
  height: auto;
  min-height: 76px;
  padding-block: 15px;
}
.app-heading {
  padding: 36px 0 24px;
}
.app-heading h1 {
  margin: 0 0 8px;
}
.app-heading p {
  color: var(--muted);
  font-size: var(--text-body);
  margin: 0;
}
.steps {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
}
.steps button,
.button,
.text-button,
.small,
.check,
label,
summary,
table {
  font-size: var(--text-ui);
}
.subtle-note {
  font-size: var(--text-ui);
}
.card,
.aside {
  padding: 28px;
  border-radius: 14px;
}
.upload {
  min-height: 120px;
  margin-block: 18px;
}
.workspace-status {
  font-size: var(--text-ui);
  margin-bottom: 8px;
}
.booking {
  padding: 0;
  margin-block: 10px;
  overflow: hidden;
}
.booking > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px;
  color: var(--ink);
  background: var(--white);
}
.booking > summary::before {
  content: "▸";
  color: var(--muted);
}
.booking[open] > summary::before {
  content: "▾";
}
.booking > summary > span {
  font-size: var(--text-ui);
  color: var(--muted);
}
.booking .booking-status {
  margin-left: auto;
}
.booking[open] > summary {
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.booking-content {
  padding: 20px;
}
.booking > summary > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.review-checklist {
  margin-top: 0;
  padding: 16px 20px;
}
.review-checklist summary {
  font-weight: 600;
  color: var(--ink);
}
.review-checklist li {
  margin-block: 4px;
}
.import-history {
  margin-top: 20px;
}
.import-history .earnings-overview {
  padding: 0;
  border: 0;
  margin-top: 16px;
}
.copy-value {
  font-size: var(--text-sm);
  margin-left: 8px;
  white-space: nowrap;
  color: var(--green);
}
.property-options {
  padding-block: 10px;
}
.property-options .fields {
  margin-top: 20px;
}
footer {
  font-size: var(--text-ui);
}
footer p {
  font-size: var(--text-sm);
}
@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
    gap: 12px;
  }
  .toolbar {
    justify-content: flex-end;
    gap: 8px 14px;
  }
  .toolbar .text-button {
    font-size: var(--text-sm);
  }
  .brand {
    font-size: 24px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .card,
  .aside {
    padding: 18px;
  }
  .booking-content {
    padding: 16px;
  }
  .booking > summary {
    align-items: flex-start;
  }
  .booking > summary > span {
    flex-basis: 100%;
    padding-left: 24px;
  }
  .booking .booking-status {
    margin-left: 0;
  }
  .app-heading h1 {
    font-size: 28px;
  }
  .steps button {
    font-size: var(--text-ui);
  }
  .context {
    gap: 12px;
  }
  .stat span {
    font-size: var(--text-sm);
  }
  .stat strong {
    font-size: 28px;
  }
  .copy-value {
    display: block;
    margin-left: auto;
  }
  .party-row {
    grid-template-columns: minmax(100px, 1fr) 65px auto;
  }
}
@media print {
  .app-heading,
  .copy-value,
  .workspace-status {
    display: none !important;
  }
}
