/* A quieter visual system: warm paper, forest green and soft surfaces. */
:root { --ink:#203b32; --muted:#6a766f; --line:#e4e8e2; --paper:#f7f7f2; --panel:#fff; --teal:#254e3c; --teal-soft:#e8f1e9; --green:#3f7756; --gold:#88a18c; --gold-deep:#41614c; --shadow:0 6px 24px rgba(32,59,50,.045); }
body { background:#f7f7f2; }
h1,h2,h3 { font-family:inherit; letter-spacing:-.025em; }
h1 { font-weight:700; }
.app-shell { width:min(100%,960px); padding-top:28px; }
.topbar { background:transparent; border:0; border-radius:0; box-shadow:none; padding:8px 0 20px; }
.topbar::after, .auth-card::after { display:none; }
.topbar h1 { font-size:clamp(1.4rem,4vw,2.05rem); }
.brand-mark { background:#254e3c; border:0; box-shadow:none; border-radius:16px; }
.brand-mark span, .brand-mark span::before { border-color:#d8e5d5; }
.save-status { color:var(--muted); font-size:.75rem; font-weight:450; }
.summary-band { background:#eef3eb; color:var(--ink); box-shadow:none; border:0; border-radius:20px; padding:24px; }
.summary-copy h2 { font-size:1.05rem; font-weight:600; }
.status-wheel { background:conic-gradient(#78a889 var(--wheel,0deg),#dce6d9 0deg); }
.yield-wheel { background:conic-gradient(#98b59a var(--wheel,0deg),#dce6d9 0deg); }
.ltv-wheel { background:conic-gradient(#648a72 var(--wheel,0deg),#dce6d9 0deg); }
.status-wheel span { background:#254e3c; font-weight:650; }
.status-wheel small { color:#fff; font-weight:600; font-size:.63rem; }
.metric-grid { gap:12px; margin:20px 0; }
.metric { border:0; border-radius:14px; box-shadow:var(--shadow); }
.metric-open { padding:16px 14px 36px; min-height:122px; }
.metric span { font-weight:650; }
.metric p { color:var(--muted); }
.metric-visibility { border:0; background:#f2f5ef; font-weight:500; }
.tabs { border:0; background:#edf0e9; padding:5px; border-radius:14px; gap:4px; margin:20px 0; }
.tab { font-weight:550; border-radius:10px; }
.tab.active { background:#254e3c; box-shadow:0 2px 5px #254e3c12; }
.primary-button,.secondary-button,.danger-button,.icon-button { border-radius:10px; font-weight:600; }
.secondary-button { background:#fff; border-color:var(--line); }
.toolbar { margin-top:22px; }
.search-field, select, input, textarea { border-color:var(--line); border-radius:10px; }
.data-panel,.scenario-planner,.scorecard { border-color:var(--line); border-radius:16px; box-shadow:none; }
.task,.empty-state { border-radius:12px; border-color:var(--line); }
.property-summary-card { border:0; padding:0; border-radius:20px; overflow:hidden; box-shadow:0 5px 25px #203b3208; }
.property-summary-card:hover { box-shadow:0 10px 32px #203b3212; }
.property-cover { display:block; width:100%; height:230px; object-fit:cover; background:#e9eee5; }
.property-cover-empty { display:flex; justify-content:center; align-items:center; gap:12px; min-height:108px; background:linear-gradient(120deg,#eaf0e5,#f2f4ee); color:#69806a; }
.property-cover-empty img { width:36px; height:36px; opacity:.6; }
.property-cover-empty span { font-size:.8rem; font-weight:500; }
.property-card-body { padding:24px; }
.property-summary-card .property-heading h3 { font-size:1.12rem; font-weight:650; line-height:1.5; }
.property-figure-group { margin-top:22px; }
.property-figure-group h4 { margin:0 0 10px; color:#6a766f; text-transform:uppercase; letter-spacing:.11em; font-size:.65rem; font-weight:650; }
.property-financials { margin:0; gap:10px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.property-financials > div { padding:14px; border-radius:12px; background:#f6f7f2; }
.property-financials dt { font-size:.75rem; color:#6a766f; }
.property-financials dd { font-size:clamp(1.05rem,2.8vw,1.4rem); font-weight:650; color:#254e3c; }
.property-financials .property-monthly { background:#eff4ed; }
.property-financials .property-rent { background:#e7f2e8; }
.property-summary-card .property-actions { padding-top:16px; margin-top:6px; }
#propertyList { gap:24px; }
.property-photo-editor { padding:14px; background:#f3f6ef; border-radius:12px; }
.property-photo-editor label { font-weight:600; }
#propertyPhotoPreview { display:block; width:100%; height:170px; object-fit:cover; border-radius:10px; margin-bottom:12px; }
#propertyPhotoPreview[hidden], #propertyPhotoRemove[hidden] { display:none; }
#propertyPhotoFile { max-width:100%; padding:10px 0; font-size:.85rem; }
#propertyPhotoStatus { min-height:1em; font-size:.78rem; color:var(--muted); line-height:1.5; }
.property-photo-editor .data-actions { flex-wrap:wrap; }
.auth-gate { background:#e9eee5; }
.auth-card { background:#fff; border:1px solid var(--line); box-shadow:0 16px 60px #203b3212; }
.auth-form { background:#f6f7f2; border-color:var(--line); box-shadow:none; }
.plan-results { background:#edf3eb; border:0; }
.plan-step { border:0; box-shadow:var(--shadow); }
.plan-kpis strong { font-weight:650; }
.demo-banner { background:#edf2e8; border-color:#dae3d3; color:#41614c; }
.demo-banner .demo-size-links a,.demo-banner button { background:#f9fbf5; border-color:#dae3d3; color:#41614c; }
@media(max-width:700px) { .app-shell { padding-top:14px; } .summary-band { padding:18px; } .property-card-body { padding:18px; } .property-cover { height:190px; } .property-financials > div { padding:12px 8px; } }
@media(max-width:360px) { .property-financials { gap:6px; } .property-financials dt { font-size:.68rem; } .property-financials dd { font-size:.95rem; } }

.status-wheel small { top:calc(100% + 8px); transform:none; color:var(--teal); font-size:.66rem; }
.hero-wheels { padding-bottom:26px; }
.metric.warning span, .metric.urgent span { color:var(--ink); }
@media(max-width:360px) {
  .property-financials { grid-template-columns:1fr; gap:8px; }
  .property-financials > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; }
  .property-financials dt { font-size:.8rem; }
  .property-financials dd { margin:0; font-size:1rem; }
}

.property-cover-empty { border:0; width:100%; font:inherit; cursor:pointer; }
.property-cover-empty:hover { background:#e5eddf; }
.property-cover-empty:focus-visible { outline:3px solid var(--teal); outline-offset:-3px; }

.add-menu { position:relative; z-index:3; }
.actions-row > .add-menu-trigger { flex:0 0 auto; min-width:106px; padding:0 20px; }
.add-menu-panel { position:absolute; top:calc(100% + 8px); left:0; width:min(240px,calc(100vw - 36px)); display:grid; gap:4px; padding:8px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 12px 32px #203b321a; }
.add-menu-panel[hidden] { display:none; }
.add-menu-option { width:100%; min-height:48px; padding:10px 14px; border:0; border-radius:9px; background:transparent; text-align:left; color:var(--ink); font:inherit; font-weight:550; cursor:pointer; }
.add-menu-option:hover, .add-menu-option:focus-visible { background:var(--teal-soft); outline:2px solid transparent; }

.compliance-heading-button { border:0; background:transparent; color:inherit; font:inherit; font-weight:650; text-align:left; cursor:pointer; padding:8px 2px; line-height:1.4; }
.compliance-heading-button span { font-weight:400; opacity:.65; }
.compliance-heading-button:hover { text-decoration:underline; text-underline-offset:3px; }
.compliance-heading-button:focus-visible, .compliance-phone-value:focus-visible { outline:2px solid var(--teal); outline-offset:2px; border-radius:5px; }
.compliance-table .compliance-heading-button { width:100%; min-height:44px; text-transform:inherit; }
.compliance-phone-item { cursor:default; }
.compliance-phone-item .compliance-heading-button { min-height:44px; }
.compliance-phone-item .compliance-phone-value { border:0; border-radius:6px; background:transparent; color:inherit; font:inherit; min-height:44px; padding:4px 0; cursor:pointer; }
.renewal-guide { padding:8px 0; }
.renewal-guide-caption { font-size:.65rem; letter-spacing:.09em; color:var(--muted); }
.renewal-guide h3 { font-size:1.45rem; line-height:1.35; margin:12px 0; }
.renewal-guide > p { line-height:1.6; }
.renewal-guide .data-actions { margin-top:20px; flex-wrap:wrap; }

.view[hidden] { display:none; }

.yield-simple-total { padding:22px; margin-bottom:14px; border-radius:16px; background:#edf3eb; text-align:center; }
.yield-simple-total > span { color:var(--muted); font-size:.85rem; }
.yield-simple-total > strong { display:block; margin:8px 0; font-size:2.6rem; font-weight:650; color:var(--teal); }
.yield-simple-total p { margin:8px 0 0; font-size:.82rem; line-height:1.5; color:var(--muted); }
.yield-simple-details { margin-top:18px; }
.yield-simple-details > summary { padding:10px 0; font-weight:600; cursor:pointer; }
.yield-simple-details .breakdown-row { margin-top:8px; }
.yield-simple-property > span { overflow-wrap:anywhere; }

.app-access-bar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 18px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:#f7f7f2f5; backdrop-filter:blur(12px); }
.app-demo-links { display:flex; align-items:center; gap:8px; }
.app-demo-links > span { color:var(--muted); font-size:.8rem; margin-right:2px; }
.app-demo-links a { display:inline-flex; align-items:center; justify-content:center; min-width:42px; min-height:44px; padding:8px 10px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--teal); font-size:.85rem; text-decoration:none; font-weight:600; }
.app-demo-links a:hover, .app-demo-links a:focus-visible { background:var(--teal-soft); }
#headerSignOutButton[hidden], #headerExitDemo[hidden] { display:none; }
.app-access-bar > .secondary-button { font-size:.8rem; white-space:nowrap; }
@media(max-width:360px) { .app-access-bar { gap:6px; padding:8px; } .app-demo-links { gap:4px; } .app-demo-links a { min-width:36px; padding:6px; } .app-access-bar > .secondary-button { padding:0 8px; } }

.app-access-bar { padding:8px 0; border:0; border-radius:0; }
.demo-menu { position:relative; }
.demo-menu > summary { display:flex; align-items:center; gap:6px; min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:.85rem; font-weight:550; color:var(--teal); cursor:pointer; list-style:none; }
.demo-menu > summary::-webkit-details-marker { display:none; }
.demo-menu > summary:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.demo-menu-options { position:absolute; top:calc(100% + 8px); left:0; width:200px; padding:6px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 28px #203b321a; }
.demo-menu-options a, .demo-menu-options button { display:flex; align-items:center; width:100%; min-height:44px; padding:10px 12px; border:0; border-radius:8px; background:transparent; color:var(--ink); font:inherit; font-size:.85rem; text-align:left; text-decoration:none; cursor:pointer; }
.demo-menu-options [hidden] { display:none; }
.demo-menu-options a:hover, .demo-menu-options button:hover, .demo-menu-options a:focus-visible, .demo-menu-options button:focus-visible { background:var(--teal-soft); outline:none; }

.files-heading { margin:22px 0; }
.files-heading h2 { margin:0 0 6px; font-size:1.4rem; font-weight:650; }
.files-heading p { margin:0; color:var(--muted); font-size:.85rem; }
.files-section { margin:12px 0; background:#fff; border:1px solid var(--line); border-radius:14px; }
.files-section > summary { padding:20px; font-weight:600; cursor:pointer; font-size:.95rem; }
.files-section-body { padding:0 20px 20px; min-width:0; }
.files-help { color:var(--muted); font-size:.82rem; line-height:1.5; margin:0 0 16px; }
.files-count { display:inline-block; margin-left:8px; min-width:26px; padding:3px 7px; border-radius:20px; background:var(--teal-soft); color:var(--teal); text-align:center; font-size:.72rem; }
.files-subsection { margin:14px 0; }
.files-subsection > summary { min-height:44px; padding:12px 0; color:var(--teal); font-size:.83rem; cursor:pointer; font-weight:550; }
.files-reference-form { display:grid; gap:14px; padding:16px; background:#f6f8f2; border-radius:10px; margin-bottom:16px; }
.files-reference-form label { display:grid; gap:6px; font-size:.82rem; }
.files-report-property { display:flex; align-items:end; gap:12px; margin-top:20px; }
.files-report-property label { flex:1; min-width:0; display:grid; gap:8px; color:var(--muted); font-size:.82rem; }
.files-report-property select { width:100%; min-width:0; }
#filesView .data-actions { flex-wrap:wrap; gap:10px; }
#filesView input, #filesView select { max-width:100%; min-width:0; }
#filesView pre { max-width:100%; overflow-x:auto; }
#documentList .task { border:1px solid var(--line); background:#fff; }
#documentList .status-strip { background:#dce8da; }
#documentList .task-body { padding:14px; }
#documentList h3 { font-weight:600; font-size:.9rem; }
#documentList .task-meta:empty { display:none; }
#documentList .task-actions { justify-content:flex-end; margin-top:8px; }
#documentList .task-actions button { min-height:36px; padding:6px 10px; font-size:.75rem; background:transparent; border:0; color:var(--muted); }
@media(max-width:560px) { .files-section > summary { padding:16px; } .files-section-body { padding:0 16px 16px; } .files-reference-form { padding:12px; } .files-report-property { align-items:stretch; flex-direction:column; } }

.portfolio-combined { grid-column:span 2; }
.portfolio-combined .metric-open { min-height:86px; padding-bottom:8px; }
.portfolio-card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 14px 10px; }
.portfolio-card-footer .metric-visibility { position:static; flex:0 0 auto; }
.portfolio-count { border:0; padding:6px 0; min-height:36px; background:transparent; color:var(--muted); font:inherit; text-align:left; cursor:pointer; }
.portfolio-count span { font-size:.82rem; font-weight:500; }
.portfolio-count:hover { color:var(--teal); text-decoration:underline; text-underline-offset:3px; }
.portfolio-count:focus-visible { outline:2px solid var(--teal); border-radius:4px; }

.metric-extra-value { display:block; margin-top:8px; font-size:.8rem; line-height:1.4; color:var(--muted); font-weight:500; }

.portfolio-combined { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
.portfolio-main { min-width:0; }
.portfolio-cashflow { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px; border-left:1px solid var(--line); }
.portfolio-submetric { position:relative; min-width:0; padding:12px 12px 34px; border-radius:10px; background:#faf7ee; }
.portfolio-mini-open { width:100%; padding:0; border:0; background:transparent; text-align:left; color:inherit; font:inherit; cursor:pointer; }
.portfolio-submetric .metric-value,.portfolio-submetric .metric-mask { font-size:1.2rem; font-weight:650; overflow-wrap:anywhere; }
.portfolio-submetric p { font-size:.76rem; margin-top:6px; }
.portfolio-submetric .metric-visibility { bottom:7px; right:8px; }
@media(max-width:560px) { .portfolio-combined { display:block; } .portfolio-cashflow { border-left:0; border-top:1px solid var(--line); padding:12px; } }
/* One standard summary card, with its extra figures stacked inside. */
.portfolio-combined { grid-column:auto; display:block; }
.portfolio-combined .metric-open { min-height:0; padding:16px 14px 6px; }
.portfolio-combined .portfolio-card-footer { padding:0 14px 6px; gap:6px; align-items:start; }
.portfolio-count { min-height:28px; padding:3px 0; }
.portfolio-count span { font-size:.72rem; line-height:1.4; }
.portfolio-cashflow { display:block; padding:0 14px 10px; border:0; }
.portfolio-submetric { padding:8px 0; background:transparent; border-radius:0; border-top:1px solid var(--line); }
.portfolio-mini-open { padding-right:36px; }
.portfolio-submetric .metric-value,.portfolio-submetric .metric-mask { font-size:.95rem; }
.portfolio-submetric p { font-size:.72rem; margin:3px 0 0; }
.portfolio-submetric .metric-visibility { bottom:auto; top:9px; right:0; padding:3px 5px; font-size:.65rem; }
@media(min-width:901px) { .metric-grid { grid-template-columns:repeat(5,minmax(0,1fr)); } }

@media(max-width:560px) {
  .metric-grid .metric-open > .metric-value, .metric-grid .metric-open > .metric-mask { font-size:clamp(1rem,4.4vw,1.55rem); }
  .metric-grid .property-metric .metric-open > .metric-value { font-size:1rem; }
}

/* Keep the main figures aligned at the top of every summary card. */
.metric-grid .metric-open { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; }

/* Four balanced cards, with both net performers in one place. */
@media(min-width:901px) { .metric-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
.metric-grid { gap:14px; }
.net-performers { padding:0; }
.performer-group { position:relative; margin:0 14px; padding:15px 0; }
.performer-group + .performer-group { border-top:1px solid var(--line); }
.performer-open { display:block; width:100%; padding:0; border:0; background:transparent; text-align:left; color:inherit; font:inherit; cursor:pointer; }
.performer-open p { padding-right:38px; margin:0 0 7px; text-transform:uppercase; letter-spacing:.07em; font-size:.65rem; font-weight:600; }
.performer-open .metric-value,.performer-open .metric-mask { display:block; font-size:.92rem; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.performer-open .metric-extra-value { margin-top:5px; font-size:.75rem; }
.performer-group .metric-visibility { top:12px; right:0; bottom:auto; padding:3px 5px; font-size:.65rem; }
.performer-open:focus-visible { outline:2px solid var(--teal); outline-offset:3px; border-radius:4px; }
@media(max-width:360px) { .metric-grid { gap:10px; } .performer-open .metric-value { font-size:.82rem; } .performer-group { margin:0 12px; } }

/* Start each property as a simple address row. */
#propertyList { gap:10px; }
.property-summary-card { cursor:default; }
.property-summary-card:hover { transform:none; box-shadow:var(--shadow); }
.property-address-toggle { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:66px; padding:18px 20px; cursor:pointer; list-style:none; }
.property-address-toggle::-webkit-details-marker { display:none; }
.property-address-toggle h3 { margin:0; min-width:0; overflow-wrap:anywhere; font-size:.95rem; font-weight:600; line-height:1.5; }
.property-address-toggle > span { flex:0 0 auto; color:var(--gold-deep); font-size:1.15rem; transition:transform .15s ease; }
.property-summary-card[open] > .property-address-toggle > span { transform:rotate(180deg); }
.property-address-toggle:hover { background:#fcfaf4; }
.property-address-toggle:focus-visible { outline:2px solid var(--gold-deep); outline-offset:-3px; border-radius:12px; }
.property-summary-card[open] > .property-address-toggle { border-bottom:1px solid var(--line); }
.property-summary-card .property-card-body { padding:0 20px 20px; }
.property-summary-card .property-figure-group { margin-top:18px; }
@media(max-width:560px) { .property-address-toggle { padding:16px; } .property-summary-card .property-card-body { padding:0 16px 16px; } }

.property-repairs .panel-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.property-repairs .files-help { margin:0; }

.net-performers .performer-group:first-child .performer-open p,
.net-performers .performer-group:first-child .metric-value { color:#28724f; }
.net-performers .performer-group:last-child .performer-open p,
.net-performers .performer-group:last-child .metric-value { color:#b3261e; }
