:root {
  --ink: #16232a;
  --ink-2: #23343c;
  --navy: #10242d;
  --navy-soft: #1d343e;
  --green: #1d806b;
  --green-dark: #126452;
  --green-soft: #dcece6;
  --sand: #d99a57;
  --sand-soft: #f5eadb;
  --coral: #d76f5b;
  --coral-soft: #f6e4df;
  --blue-soft: #e4ebee;
  --paper: #f4f5f1;
  --surface: #fff;
  --surface-2: #fafaf8;
  --line: #e2e5df;
  --line-dark: #ced4cd;
  --muted: #6d7a7e;
  --shadow: 0 14px 42px rgba(20, 35, 40, .07);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  color: #f6f8f5;
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,.07);
}
.brand {
  height: 82px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: #e8f2ed;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  flex: 0 0 auto;
}
.brand-mark.light { background: #f4f4ed; color: var(--navy); }
.brand-copy { display: flex; flex-direction: column; letter-spacing: .08em; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { margin-top: 2px; color: #93a4a8; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.portfolio-context { margin: 14px 12px 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); }
.portfolio-context span { color: #71898e; font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.portfolio-context strong { overflow: hidden; color: #e4ebe7; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.primary-nav { padding: 12px; display: grid; gap: 5px; }
.nav-link {
  position: relative;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  color: #a9b6b9;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-link.is-active { background: #f5f7f3; color: var(--navy); }
.nav-link.is-active::before { content: ""; position: absolute; left: -12px; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: #5cb49a; }
.nav-symbol { width: 20px; text-align: center; font-size: 17px; font-weight: 500; }
.nav-count { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--coral); color: #fff; font-size: 10px; }
.sidebar-section { margin: 18px 12px 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-label { padding: 0 12px 9px; color: #6f8388; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.object-shortcut { padding: 8px 11px; display: flex; align-items: center; gap: 10px; border-radius: 8px; color: #9caeb1; }
.object-shortcut:hover { background: rgba(255,255,255,.05); color: #fff; }
.object-shortcut > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.object-shortcut strong { color: #dce4e4; font-size: 10px; letter-spacing: .08em; }
.object-shortcut small { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.object-dot { width: 7px; height: 7px; border-radius: 50%; background: #61af98; box-shadow: 0 0 0 4px rgba(97,175,152,.12); }
.sidebar-bottom { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.user-card { padding: 8px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: #3c5962; color: #fff; font-weight: 700; }
.user-meta { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.user-meta strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: #809399; font-size: 10px; }
.icon-button { border: 0; background: transparent; cursor: pointer; }
.icon-button.dark { color: #82969a; }
.icon-button.dark:hover { color: #fff; }

.app-main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255,255,253,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.top-search { width: min(480px, 48vw); display: flex; align-items: center; gap: 10px; }
.top-search > span { color: #899497; font-size: 21px; }
.top-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.top-search input::placeholder { color: #8b9698; }
.top-search kbd { padding: 3px 7px; border: 1px solid var(--line); border-bottom-color: var(--line-dark); border-radius: 5px; color: #889497; background: var(--surface-2); font-size: 10px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.notification-button { position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #849296; }
.notification-button > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-button:hover { color: var(--green-dark); border-color: #c8d8d0; background: var(--green-soft); }
.notification-button b { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 10px; background: var(--coral); color: #fff; font-size: 9px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 20px; }
.content-wrap { width: min(1480px, 100%); margin: 0 auto; padding: 34px 36px 60px; }

.button {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform .16s ease, background .16s ease, border .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(29,128,107,.16); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: #cbd5cf; background: #fff; color: var(--green-dark); }
.button-secondary:hover { border-color: var(--green); }
.button-ghost { border-color: var(--line); background: transparent; color: #526166; }
.button-ghost:hover { background: #fff; }
.button-danger { background: var(--coral-soft); color: #a64537; }
.button.compact { min-height: 38px; padding: 0 13px; font-size: 12px; }
.button-wide { width: 100%; margin-top: 12px; }
.text-button { color: var(--green-dark); font-size: 12px; font-weight: 700; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow { display: block; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.eyebrow.light-text { color: #88c1af; }
.muted { color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: clamp(29px, 3vw, 40px); font-weight: 650; line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
h3 { margin-bottom: 5px; font-size: 16px; }
.page-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading p { margin-bottom: 0; color: var(--muted); }
.page-heading .eyebrow, .dashboard-intro .eyebrow { margin-bottom: 8px; }
.narrow-heading { max-width: 980px; margin-left: auto; margin-right: auto; }
.section-heading { margin: 34px 0 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 5px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 3px rgba(25,38,40,.02); }
.panel-header { min-height: 76px; padding: 19px 22px 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-header .eyebrow { margin-bottom: 5px; }
.panel-header > a { color: var(--green-dark); font-size: 12px; font-weight: 700; }
.panel-footer { min-height: 54px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }

.dashboard-intro { margin-bottom: 27px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.intro-context { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.intro-context .eyebrow { margin-bottom: 0; }
.intro-context > span:last-child { padding-left: 10px; border-left: 1px solid var(--line-dark); color: #839094; font-size: 9px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-intro p { margin-bottom: 0; color: var(--muted); }
.dashboard-intro p strong { color: var(--coral); }
.score-card { min-width: 355px; padding: 13px 16px; display: flex; align-items: center; gap: 15px; border: 1px solid #dfe6e0; border-radius: 14px; background: #f9fbf8; }
.score-card > div:last-child { display: flex; flex-direction: column; }
.score-card strong { margin: 4px 0 1px; font-size: 12px; }
.score-card small { color: var(--muted); font-size: 10px; }
.score-ring { --score: 0; width: 56px; height: 56px; padding: 5px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--score) * 1%), #dce4df 0); }
.score-ring::before { content: ""; grid-area: 1 / 1; width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.score-ring span { z-index: 1; grid-area: 1 / 1; font-size: 15px; font-weight: 750; }
.score-ring small { font-size: 8px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi-card { min-height: 112px; padding: 20px; display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.kpi-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; font-size: 15px; font-weight: 800; }
.kpi-icon.green { color: var(--green-dark); background: var(--green-soft); }
.kpi-icon.navy { color: var(--navy); background: var(--blue-soft); }
.kpi-icon.sand { color: #8f5b26; background: var(--sand-soft); }
.kpi-icon.coral { color: #a94e3f; background: var(--coral-soft); }
.kpi-card > div { display: flex; flex-direction: column; }
.kpi-card small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kpi-card strong { margin: 2px 0 2px; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 26px; font-weight: 650; line-height: 1.1; letter-spacing: -.035em; }
.kpi-card span:last-child { color: #859094; font-size: 10px; }

.dashboard-grid { display: grid; gap: 16px; }
.primary-grid { margin-top: 17px; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr); }
.action-list { min-height: 376px; }
.action-row { min-height: 61px; padding: 10px 20px 10px 12px; display: grid; grid-template-columns: 4px 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf0eb; }
.action-row:last-child { border-bottom: 0; }
.action-row:hover { background: #fafbf8; }
.priority-line { width: 3px; height: 31px; border-radius: 3px; background: #bac4c1; }
.priority-line.high { background: var(--sand); }
.priority-line.urgent { background: var(--coral); }
.priority-line.low { background: #7dafc3; }
.task-check { width: 19px; height: 19px; border: 1.5px solid #b7c2bd; border-radius: 6px; background: #fff; cursor: pointer; }
.task-check:hover { border-color: var(--green); background: var(--green-soft); }
.action-copy { min-width: 0; display: flex; flex-direction: column; }
.action-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.action-copy span { margin-top: 2px; color: #879194; font-size: 10px; }
.action-copy b { color: var(--green-dark); letter-spacing: .03em; }
.action-date { min-width: 48px; display: flex; flex-direction: column; align-items: flex-end; }
.action-date small { color: #99a2a3; font-size: 9px; text-transform: uppercase; }
.action-date strong { font-size: 12px; }
.action-row.is-overdue .action-date { color: var(--coral); }
.check-form { display: flex; }
.feed-list { min-height: 376px; max-height: 376px; overflow: auto; }
.feed-row { position: relative; min-height: 74px; padding: 14px 20px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; border-bottom: 1px solid #edf0eb; }
.feed-row.unread::after { content: ""; position: absolute; top: 19px; right: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.feed-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--navy); font-size: 11px; font-weight: 800; }
.feed-icon.success { background: var(--green-soft); color: var(--green-dark); }
.feed-icon.warning { background: var(--sand-soft); color: #8b5928; }
.feed-icon.urgent { background: var(--coral-soft); color: #a84c3c; }
.feed-row strong { padding-right: 12px; display: block; font-size: 12px; }
.feed-row p { margin: 2px 0; color: #6f7c80; font-size: 10px; line-height: 1.35; }
.feed-row small { color: #a0a8aa; font-size: 9px; }
.unread-pill { padding: 4px 8px; border-radius: 12px; background: var(--coral-soft); color: #a84b3b; font-size: 9px; font-weight: 800; text-transform: uppercase; }

.property-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.property-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.property-visual { position: relative; height: 94px; padding: 18px 20px; overflow: hidden; color: #fff; background: var(--accent); }
.property-visual::before, .property-visual::after { content: ""; position: absolute; background: rgba(255,255,255,.12); }
.property-visual::before { width: 150px; height: 150px; top: 26px; right: -20px; transform: rotate(34deg); }
.property-visual::after { width: 72px; height: 110px; top: 45px; right: 88px; transform: rotate(34deg); }
.property-visual span { position: relative; z-index: 1; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.property-visual b { position: absolute; right: 18px; bottom: -14px; color: rgba(255,255,255,.2); font-family: Georgia, serif; font-size: 72px; line-height: 1; }
.property-card-body { padding: 18px 20px 17px; }
.property-title { display: flex; justify-content: space-between; gap: 12px; }
.property-title small { color: var(--green-dark); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.property-title h3 { margin: 2px 0 2px; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.property-title p { margin: 0; color: var(--muted); font-size: 10px; }
.property-title > span { color: #95a09f; }
.property-stats { margin: 17px 0 14px; padding: 13px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.property-stats span { display: flex; flex-direction: column; }
.property-stats span + span { padding-left: 13px; border-left: 1px solid var(--line); }
.property-stats small { color: #95a0a1; font-size: 8px; text-transform: uppercase; }
.property-stats strong { font-size: 12px; }
.completeness > span { margin-bottom: 6px; display: flex; justify-content: space-between; }
.completeness small { color: #7b898c; font-size: 9px; }
.completeness b { font-size: 9px; }
.completeness > div { height: 4px; overflow: hidden; border-radius: 3px; background: #e6ebe7; }
.completeness i { height: 100%; display: block; border-radius: 3px; background: var(--accent); }
.span-all { grid-column: 1 / -1; }

.review-strip { margin-top: 28px; padding: 23px; display: grid; grid-template-columns: minmax(300px, .8fr) minmax(450px, 1.2fr); gap: 28px; border: 1px solid #ccdcd5; border-radius: var(--radius); background: #edf5f0; }
.review-strip > div:first-child { display: flex; gap: 14px; }
.ai-spark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--green); color: #fff; }
.review-strip h3 { margin: 5px 0 4px; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.review-strip p { margin: 0; color: #64746e; font-size: 11px; }
.review-docs { display: grid; gap: 7px; }
.review-docs a { padding: 9px 11px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid #d9e4de; border-radius: 9px; background: rgba(255,255,255,.7); }
.review-docs a > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--coral-soft); color: #a84d3d; font-size: 8px; font-weight: 900; }
.review-docs a div { min-width: 0; display: flex; flex-direction: column; }
.review-docs strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.review-docs small { color: #899491; font-size: 9px; }
.review-docs b { color: var(--green-dark); font-size: 10px; }

.empty-state { padding: 50px 24px; text-align: center; }
.empty-state > span { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); font-size: 21px; }
.empty-state h3 { font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.empty-state p { max-width: 460px; margin: 0 auto 20px; color: var(--muted); }
.compact-empty { padding: 58px 20px 30px; }
.compact-empty > span { width: 36px; height: 36px; margin-bottom: 9px; font-size: 15px; }
.compact-empty strong { display: block; font-size: 13px; }
.compact-empty p { margin: 3px 0 0; font-size: 10px; }

.flash-stack { position: fixed; z-index: 80; top: 86px; right: 26px; width: min(390px, calc(100vw - 30px)); display: grid; gap: 8px; }
.flash { padding: 13px 42px 13px 15px; position: relative; border: 1px solid #cfe0d9; border-radius: 10px; background: #eef7f2; color: #1b6554; box-shadow: var(--shadow); font-size: 12px; }
.flash.error { border-color: #edcec7; background: #fff0ed; color: #9a4134; }
.flash button { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 18px; }

.form-panel { max-width: 980px; margin: 0 auto; padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.form-field { min-width: 0; display: flex; flex-direction: column; }
.form-field.span-2 { grid-column: 1 / -1; }
.form-field label, .login-form label { margin-bottom: 7px; color: #536166; font-size: 11px; font-weight: 700; }
.form-field label em { color: var(--coral); font-style: normal; }
.form-control {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #d4dad5;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border .16s ease, box-shadow .16s ease;
}
textarea.form-control { resize: vertical; }
.form-control:focus { border-color: #5d9d8c; box-shadow: 0 0 0 3px rgba(29,128,107,.09); }
.checkbox-field { justify-content: flex-end; }
.checkbox-label { min-height: 43px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; }
.checkbox-label input { accent-color: var(--green); }
.help-text { margin-top: 4px; color: #8b9698; font-size: 9px; }
.field-error { margin-top: 4px; color: #ad4939; font-size: 10px; }
.form-alert { margin-bottom: 18px; padding: 11px 13px; border: 1px solid #efcbc3; border-radius: 8px; background: var(--coral-soft); color: #963f32; font-size: 11px; }
.form-alert ul { margin: 0; padding-left: 18px; }
.form-actions { margin-top: 28px; padding-top: 20px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }

/* Portfolio team and central access management */
.team-heading { align-items: center; }
.team-summary { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.team-summary article { min-height: 104px; padding: 18px 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.team-summary span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.team-summary strong { margin: 6px 0 3px; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 22px; letter-spacing: -.03em; }
.team-summary small { color: #8b9698; font-size: 10px; }
.team-panel { overflow: hidden; }
.team-list { display: grid; }
.team-row { min-height: 82px; padding: 14px 18px; display: grid; grid-template-columns: 38px minmax(170px, 1fr) 150px minmax(210px, 1.2fr) 78px auto; align-items: center; gap: 14px; border-bottom: 1px solid #edf0eb; }
.team-row:last-child { border-bottom: 0; }
.team-row:hover { background: #fbfcfa; }
.team-avatar { width: 38px; height: 38px; color: #e8f1ed; background: var(--navy-2); }
.team-person, .team-scope { min-width: 0; display: flex; flex-direction: column; }
.team-person strong, .team-scope strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.team-person span, .team-scope span { margin-top: 3px; overflow: hidden; color: #879295; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.role-pill, .status-pill { width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.role-pill { color: #44575c; background: #e9eeeb; }
.role-pill.admin { color: #176954; background: var(--green-soft); }
.role-pill.manager { color: #355f72; background: var(--blue-soft); }
.role-pill.caretaker { color: #8b5c22; background: var(--sand-soft); }
.role-pill.accounting { color: #724d78; background: #f0e7f2; }
.status-pill { color: #8c9698; background: #eef0ed; }
.status-pill.active { color: #26745f; background: var(--green-soft); }
.role-guide { margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.role-guide article { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.55); }
.role-guide span { color: var(--ink); font-size: 10px; font-weight: 750; }
.role-guide p { margin: 6px 0 0; color: #7e8b8e; font-size: 9px; line-height: 1.5; }
.team-form { width: min(980px, 100%); margin: 0 auto; display: grid; gap: 16px; }
.form-section { padding: 25px 28px; }
.form-section-heading { margin-bottom: 22px; display: flex; align-items: flex-start; gap: 13px; }
.form-section-heading > span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: var(--green-dark); background: var(--green-soft); font-size: 9px; font-weight: 800; }
.form-section-heading h2 { font-size: 19px; }
.form-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.form-grid.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.field-group, .role-select-field { display: flex; flex-direction: column; gap: 6px; }
.field-group label, .role-select-field label, .field-label { color: #5d6b6f; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.field-group > small { color: #90999b; font-size: 8px; line-height: 1.4; }
.field-error { display: block; margin-top: 5px; color: var(--coral); font-size: 9px; }
.checkbox-field { align-self: end; }
.choice-toggle { min-height: 64px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfa; cursor: pointer; }
.choice-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.choice-toggle span { display: flex; flex-direction: column; }
.choice-toggle strong { color: var(--ink); font-size: 11px; }
.choice-toggle small { margin-top: 2px; color: #879295; font-size: 9px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.scope-all { margin-bottom: 18px; }
.scope-all:has(input:checked) { border-color: #a8cbbc; background: var(--green-soft); }
.property-scope { padding-top: 18px; border-top: 1px solid var(--line); }
.property-choice-grid ul { margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; list-style: none; }
.property-choice-grid label { min-height: 58px; padding: 11px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; color: #506065; background: #fff; cursor: pointer; font-size: 10px; }
.property-choice-grid input { width: 16px; height: 16px; accent-color: var(--green); }
.property-scope.is-disabled { opacity: .45; pointer-events: none; }
.team-form-actions { margin-top: 2px; padding-bottom: 30px; }

.login-body { min-height: 100vh; background: #edf0eb; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(460px, .95fr); }
.login-story { padding: 38px clamp(36px, 6vw, 86px); display: flex; flex-direction: column; color: #eef3ef; background: var(--navy); }
.login-brand { display: flex; align-items: center; gap: 12px; letter-spacing: .12em; }
.story-content { max-width: 610px; margin: auto 0; }
.story-content h1 { max-width: 560px; margin: 14px 0 18px; font-size: clamp(44px, 5vw, 68px); line-height: 1.03; }
.story-content > p { max-width: 510px; color: #9fb0b2; font-size: 16px; line-height: 1.65; }
.story-metric { margin-top: 45px; padding-top: 25px; display: flex; align-items: center; gap: 17px; border-top: 1px solid rgba(255,255,255,.12); }
.story-benefit-icon { width: 62px; height: 62px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(122,196,174,.5); border-radius: 18px; color: #d9eee6; background: rgba(73,154,130,.18); font-size: 22px; font-weight: 750; }
.story-metric > span:last-child { display: flex; flex-direction: column; }
.story-metric strong { font-size: 12px; }
.story-metric small { color: #86999d; font-size: 10px; }
.story-footer { color: #657c81; font-size: 10px; }
.login-panel { display: grid; place-items: center; padding: 40px; background: #fbfbf8; }
.login-form { width: min(400px, 100%); }
.login-form h2 { margin: 9px 0 8px; font-size: 31px; }
.login-form > p { margin-bottom: 28px; }
.login-form .form-control { margin-bottom: 17px; min-height: 48px; }
.login-note { margin: 16px 0 0 !important; color: #9aa2a2; font-size: 9px; text-align: center; }
.sidebar-scrim { display: none; }

.list-toolbar { min-height: 64px; margin-bottom: 18px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; }
.inline-search { min-width: 250px; display: flex; flex: 1; align-items: center; gap: 9px; }
.inline-search > span { color: #8a9698; font-size: 20px; }
.inline-search input { min-width: 0; min-height: 38px; flex: 1; border: 0; outline: 0; background: transparent; }
.result-count { color: #899496; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.roomy-grid { gap: 20px; }

.property-hero { position: relative; min-height: 190px; padding: 30px 32px 26px 190px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.property-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--accent); }
.property-hero-pattern { position: absolute; inset: 0 auto 0 8px; width: 150px; overflow: hidden; display: grid; place-items: center; color: #fff; background: var(--accent); }
.property-hero-pattern::before, .property-hero-pattern::after { content: ""; position: absolute; width: 120px; height: 160px; border: 1px solid rgba(255,255,255,.18); transform: rotate(35deg); }
.property-hero-pattern::before { left: -74px; top: -55px; }
.property-hero-pattern::after { right: -77px; bottom: -80px; }
.property-hero-pattern span { position: relative; z-index: 1; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.property-hero-copy .eyebrow { margin-bottom: 7px; }
.property-hero-copy h1 { margin-bottom: 5px; font-size: 34px; }
.property-hero-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.property-hero-score { width: 170px; padding: 13px 15px; border-left: 1px solid var(--line); }
.property-hero-score > span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.property-hero-score strong { display: block; margin: 1px 0 7px; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 24px; font-weight: 650; letter-spacing: -.035em; }
.property-hero-score > div { height: 5px; border-radius: 4px; background: #e5eae6; }
.property-hero-score i { height: 100%; display: block; border-radius: 4px; background: var(--accent); }
.property-hero-actions { grid-column: 1 / -1; display: flex; gap: 9px; }
.detail-kpis { margin: 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.detail-kpis article { min-height: 93px; padding: 18px 21px; display: flex; flex-direction: column; background: var(--surface); }
.detail-kpis small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.detail-kpis strong { margin: 1px 0; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.detail-kpis span { color: #929c9d; font-size: 9px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .65fr); gap: 16px; }
.lower-detail { margin-top: 16px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { height: 38px; padding: 0 16px; color: #899496; background: #fafbf8; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid #edf0eb; color: #536166; font-size: 11px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfa; }
.data-table td > strong, .data-table td > small { display: block; }
.data-table td strong { color: var(--ink); font-size: 11px; }
.data-table td small { color: #929c9f; font-size: 9px; }
.status-pill { padding: 4px 7px; border-radius: 11px; background: var(--green-soft); color: var(--green-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.status-pill.vacant { background: var(--coral-soft); color: #a44a3b; }
.status-pill.renovation { background: var(--sand-soft); color: #885a2c; }
.row-action { color: var(--green-dark); font-size: 10px; font-weight: 800; white-space: nowrap; }
.row-action:hover { text-decoration: underline; }
.empty-table { padding: 28px 20px; color: var(--muted); font-size: 11px; text-align: center; }
.empty-table a { color: var(--green-dark); font-weight: 700; }
.aside-actions { min-height: 246px; }
.aside-action { min-height: 64px; padding: 12px 17px; display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #edf0eb; }
.aside-action:hover { background: #fbfcfa; }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; background: #aab6b3; box-shadow: 0 0 0 4px #eef1ef; }
.priority-dot.high { background: var(--sand); box-shadow: 0 0 0 4px var(--sand-soft); }
.priority-dot.urgent { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.aside-action div { min-width: 0; display: flex; flex-direction: column; }
.aside-action strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.aside-action small { color: #8d999a; font-size: 9px; }
.aside-action b { color: #96a1a2; }
.document-rows { min-height: 272px; }
.document-row { min-height: 65px; padding: 10px 17px; display: grid; grid-template-columns: 35px minmax(0, 1fr) auto 70px 14px; align-items: center; gap: 11px; border-bottom: 1px solid #edf0eb; }
.document-row:hover { background: #fbfcfa; }
.document-row > div { min-width: 0; display: flex; flex-direction: column; }
.document-row > div strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.document-row > div small { color: #909a9c; font-size: 9px; }
.document-row time { color: #849092; font-size: 9px; }
.file-badge { width: 32px; height: 34px; display: grid; place-items: center; border-radius: 7px 7px 7px 3px; background: var(--coral-soft); color: #a84d3d; font-size: 8px; font-weight: 900; }
.file-badge.large { width: 46px; height: 50px; font-size: 10px; }
.doc-status { padding: 4px 7px; border-radius: 11px; background: var(--blue-soft); color: var(--navy-soft); font-size: 8px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.doc-status.review { background: var(--sand-soft); color: #855728; }
.doc-status.confirmed { background: var(--green-soft); color: var(--green-dark); }
.doc-status.error { background: var(--coral-soft); color: #a0493a; }
.doc-status.analyzing { background: #e7e5f1; color: #665c91; }
.detail-list { margin: 0; }
.detail-list > div { min-height: 50px; padding: 11px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0eb; }
.detail-list dt { color: #7f8b8d; font-size: 9px; }
.detail-list dd { margin: 0; font-size: 11px; font-weight: 700; text-align: right; }

.filter-toolbar .inline-search { min-width: 260px; }
.toolbar-select { min-height: 38px; max-width: 180px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #536166; font-size: 10px; }
.wide-select { max-width: 235px; }
.document-table-panel { overflow: hidden; }
.document-table { min-width: 1020px; }
.file-cell { min-width: 220px; display: flex; align-items: center; gap: 10px; }
.file-cell > div { min-width: 0; }
.category-code { padding: 3px 6px; border-radius: 5px; background: #edf1ee; color: var(--green-dark); font-size: 8px; font-weight: 900; }
.pagination { min-height: 55px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination div { display: flex; gap: 15px; }
.pagination a { color: var(--green-dark); font-weight: 700; }

.dropzone-heading { align-items: center; }
.secure-note { padding: 7px 10px; border: 1px solid #d8e5df; border-radius: 16px; color: var(--green-dark); background: #f6faf7; font-size: 9px; font-weight: 700; }
.secure-note::first-letter { color: #54a78f; }
.dropzone-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .5fr); gap: 18px; }
.upload-panel { padding: 25px; }
.drop-area { position: relative; min-height: 405px; padding: 40px 28px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1.5px dashed #b8c7c0; border-radius: 14px; background: #fafcf9; cursor: pointer; text-align: center; transition: border .18s ease, background .18s ease; }
.drop-area:hover, .drop-area.is-dragging { border-color: var(--green); background: #f1f8f4; }
.drop-area.has-file { border-style: solid; border-color: #83b6a6; }
.drop-area > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { width: 58px; height: 58px; margin-bottom: 17px; display: grid; place-items: center; border-radius: 15px; background: var(--green-soft); color: var(--green-dark); font-size: 25px; }
.drop-area > strong { font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.drop-area > p { margin: 5px 0 14px; color: var(--muted); }
.drop-area > small { color: #a0a9a8; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.selected-file { position: absolute; inset: auto 24px 23px; padding: 11px 13px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; border: 1px solid #d4e2db; border-radius: 9px; background: #fff; text-align: left; }
.selected-file[hidden] { display: none; }
.selected-file > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--coral-soft); color: #a44a3b; font-size: 8px; font-weight: 900; }
.selected-file > div { display: flex; flex-direction: column; min-width: 0; }
.selected-file strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.selected-file small { color: #8e999a; font-size: 9px; }
.selected-file b { color: var(--green); font-size: 9px; text-transform: uppercase; }
.upload-options { padding: 20px 2px 0; display: flex; align-items: flex-end; gap: 20px; }
.upload-options > div { flex: 1; display: flex; flex-direction: column; }
.upload-options label { margin-bottom: 6px; color: #536166; font-size: 10px; font-weight: 700; }
.upload-options select { min-height: 42px; padding: 0 10px; border: 1px solid #d4dad5; border-radius: 8px; background: #fff; }
.upload-options small { margin-top: 4px; color: #929c9d; font-size: 8px; }
.dropzone-aside { display: grid; align-content: start; gap: 14px; }
.process-card { padding: 23px; }
.process-card ol { margin: 20px 0 0; padding: 0; display: grid; gap: 20px; list-style: none; }
.process-card li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; }
.process-card li > b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); font-size: 10px; }
.process-card li strong { font-size: 11px; }
.process-card li p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.privacy-card { padding: 17px; display: grid; grid-template-columns: 27px 1fr; gap: 11px; border: 1px solid #e5dbc9; border-radius: 13px; background: #faf6ed; }
.privacy-card > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #efe1c8; color: #825c2c; font-family: Georgia, serif; }
.privacy-card strong { font-size: 10px; }
.privacy-card p { margin: 3px 0 0; color: #7d7569; font-size: 9px; }
.loading-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; transform: scale(.7); } }

.heading-actions { display: flex; align-items: center; gap: 9px; }
.analysis-error { margin-bottom: 18px; padding: 15px 17px; border: 1px solid #efcbc3; border-radius: 11px; background: var(--coral-soft); color: #873c30; }
.analysis-error strong { font-size: 11px; }
.analysis-error p { margin: 3px 0 0; font-size: 10px; }
.document-detail-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); gap: 16px; }
.document-summary { padding: 24px; }
.summary-top { padding-bottom: 20px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.summary-top h2 { margin-top: 4px; }
.document-abstract { margin: 22px 0; color: #526267; font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif; font-size: 16px; font-weight: 450; line-height: 1.6; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.two-col > div { min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; border-bottom: 1px solid var(--line); }
.two-col > div:nth-child(odd) { border-right: 1px solid var(--line); }
.two-col dd { text-align: left; }
.extracted-fields { margin-top: 25px; }
.extracted-fields .eyebrow { margin-bottom: 10px; }
.extracted-fields > div { padding: 9px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0eb; }
.extracted-fields span { color: var(--muted); font-size: 9px; }
.extracted-fields strong { font-size: 10px; text-align: right; }
.file-preview { min-height: 670px; overflow: hidden; }
.file-preview object, .review-preview object { width: 100%; height: 100%; min-height: 670px; border: 0; }
.preview-fallback { height: 100%; min-height: 500px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; }
.preview-fallback > span { width: 52px; height: 56px; display: grid; place-items: center; border-radius: 10px; background: var(--coral-soft); color: #a54b3c; font-size: 10px; font-weight: 900; }

.review-heading { align-items: center; }
.confidence { min-width: 170px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.confidence span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.confidence strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 25px; font-weight: 650; letter-spacing: -.035em; }
.confidence small { color: #a0a8a9; font-size: 8px; }
.review-layout { display: grid; grid-template-columns: minmax(380px, .8fr) minmax(520px, 1.2fr); gap: 16px; align-items: start; }
.review-preview { height: 760px; overflow: hidden; }
.review-file-head { min-height: 58px; padding: 9px 12px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.review-file-head > div { min-width: 0; display: flex; flex-direction: column; }
.review-file-head strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.review-file-head small { color: var(--muted); font-size: 8px; }
.review-preview object { min-height: 702px; }
.review-form { padding: 25px; }
.review-form-head { margin-bottom: 23px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.review-form-head > div { display: flex; align-items: center; gap: 11px; }
.ai-spark.small { width: 34px; height: 34px; }
.large-code { font-size: 10px; }
.review-fields { gap: 16px; }
.extraction-section-label { margin: 2px 0 18px; padding: 11px 13px; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; border: 1px solid #d8e5df; border-radius: 9px; background: #f5faf7; }
.extraction-section-label > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--green); color: #fff; font-size: 9px; font-weight: 900; }
.extraction-section-label div { display: flex; flex-direction: column; }
.extraction-section-label strong { font-size: 10px; }
.extraction-section-label small { color: #75847f; font-size: 8px; }
.payment-planner { margin-top: 22px; border: 1px solid #d8e3de; border-radius: 12px; overflow: hidden; background: #fbfcfa; }
.payment-planner > summary { position: relative; min-height: 68px; padding: 12px 15px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; cursor: pointer; list-style: none; user-select: none; }
.payment-planner > summary::-webkit-details-marker { display: none; }
.payment-planner > summary::after { content: "⌄"; margin-left: 7px; color: #87938f; font-size: 15px; transition: transform .18s ease; }
.payment-planner[open] > summary::after { transform: rotate(180deg); }
.payment-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); font-size: 15px; font-weight: 800; }
.payment-planner > summary > span:nth-child(2) { display: flex; flex-direction: column; }
.payment-planner > summary strong { font-size: 12px; }
.payment-planner > summary small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.payment-plan-total { display: flex; flex-direction: column; align-items: flex-end; }
.payment-plan-total b { font-size: 9px; }
.payment-planner-body { padding: 17px 15px 15px; border-top: 1px solid #e5ebe7; background: #fff; }
.payment-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-method-hint { margin: 8px 0 15px; color: #73817c; font-size: 8px; }
.payment-entry-list { display: grid; gap: 8px; }
.payment-entry { position: relative; padding: 12px 37px 12px 42px; display: grid; grid-template-columns: 124px 110px minmax(150px, .8fr) minmax(180px, 1.2fr); gap: 10px; align-items: start; border: 1px solid #e1e8e4; border-radius: 10px; background: #fafbf9; transition: border-color .16s ease, opacity .16s ease; }
.payment-entry:focus-within { border-color: #9fc5b7; box-shadow: 0 0 0 3px rgba(36,119,94,.07); }
.payment-entry.is-removed { display: none; }
.payment-entry-number { position: absolute; top: 13px; left: 11px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: #e9efeb; color: #60706a; font-size: 8px; font-weight: 800; }
.payment-entry .form-field { gap: 4px; }
.payment-entry .form-field label { font-size: 7px; }
.payment-entry .form-control { min-height: 34px; padding: 7px 9px; font-size: 9px; }
.money-input { position: relative; }
.money-input .form-control { padding-right: 27px; }
.money-input > span { position: absolute; top: 50%; right: 10px; color: #7b8884; font-size: 9px; transform: translateY(-50%); }
.payment-remove { position: absolute; top: 13px; right: 10px; width: 23px; height: 23px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #9aa4a1; cursor: pointer; font-size: 16px; line-height: 1; }
.payment-remove:hover { background: var(--coral-soft); color: #a54a3c; }
.payment-delete-field { display: none; }
.payment-row-error { grid-column: 1 / -1; }
.payment-add { width: 100%; min-height: 39px; margin-top: 9px; border: 1px dashed #b9cbc3; border-radius: 9px; background: #f7faf8; color: var(--green-dark); cursor: pointer; font-size: 9px; font-weight: 750; }
.payment-add:hover { border-color: var(--green); background: var(--green-soft); }
.payment-add span { margin-right: 5px; font-size: 13px; }
.payment-notes { margin-top: 13px; }
.payment-notes textarea { min-height: 58px; resize: vertical; }
.task-preview { margin-top: 20px; padding: 13px 15px; border: 1px solid #e5d6bd; border-radius: 9px; background: #fbf5e9; }
.task-preview > span { display: block; color: #93672f; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.task-preview strong { display: block; margin: 3px 0; font-size: 11px; }
.task-preview p { margin: 0; color: #7d7468; font-size: 9px; }
.review-confirm { margin: 23px -25px -25px; padding: 18px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: #fafbf8; border-radius: 0 0 var(--radius) var(--radius); }
.review-confirm p { max-width: 380px; margin: 0; color: var(--muted); font-size: 9px; }
.review-confirm strong { color: var(--ink); }

.saved-payment-plan { margin-top: 24px; border: 1px solid #dce6e1; border-radius: 11px; overflow: hidden; }
.saved-payment-plan > header { min-height: 67px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #f6faf7; border-bottom: 1px solid #e1e9e5; }
.saved-payment-plan h3 { margin: 4px 0 0; font-size: 12px; }
.saved-payment-plan > header > div:last-child { display: flex; flex-direction: column; align-items: flex-end; }
.saved-payment-plan > header > div:last-child strong { font-size: 10px; }
.saved-payment-plan > header > div:last-child small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.saved-payment-note { margin: 0; padding: 10px 14px; border-bottom: 1px solid #edf1ef; background: #fff; color: #697772; font-size: 9px; line-height: 1.5; }
.saved-payment-rows { max-height: 360px; overflow: auto; }
.saved-payment-row { min-height: 58px; padding: 10px 13px; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; border-bottom: 1px solid #edf1ef; }
.saved-payment-row:last-child { border-bottom: 0; }
.saved-payment-row time { color: #5f6d68; font-size: 9px; font-weight: 700; }
.saved-payment-row > div { min-width: 0; display: flex; flex-direction: column; }
.saved-payment-row > div strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.saved-payment-row > div small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.saved-payment-row > b { font-size: 10px; white-space: nowrap; }
.payment-state { padding: 4px 7px; border-radius: 12px; background: var(--sand-soft); color: #865828; font-size: 7px; font-weight: 800; white-space: nowrap; }
.payment-state.paid { background: var(--green-soft); color: var(--green-dark); }
.payment-state.skipped { background: #edf0ed; color: #76827e; }

.board-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 16px; align-items: start; }
.board-filter { min-height: 65px; padding: 12px 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.segmented { padding: 3px; display: flex; border-radius: 8px; background: #edf0ec; }
.segmented button { min-height: 31px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #798689; cursor: pointer; font-size: 9px; font-weight: 700; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(20,35,40,.08); }
.board-filter select { min-height: 36px; max-width: 210px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #5e6b70; font-size: 9px; }
.board-action-list { min-height: 520px; }
.board-action-row { min-height: 94px; padding: 15px 18px; display: grid; grid-template-columns: 21px 34px minmax(0,1fr) auto; align-items: start; gap: 12px; border-bottom: 1px solid #edf0eb; }
.board-action-row:hover { background: #fbfcfa; }
.board-action-row.done { opacity: .58; }
.board-action-row.done .board-action-copy strong { text-decoration: line-through; }
.task-check.checked { border-color: var(--green); background: var(--green); color: #fff; font-size: 10px; }
.board-kind { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--navy); font-size: 10px; font-weight: 800; }
.board-kind.payment { background: var(--sand-soft); color: #875625; }
.board-kind.expiry { background: var(--coral-soft); color: #a14a3a; }
.board-kind.document { background: #e9e6f2; color: #665b8d; }
.board-kind.maintenance { background: var(--green-soft); color: var(--green-dark); }
.board-action-copy { min-width: 0; }
.board-action-copy > div { display: flex; align-items: center; gap: 8px; }
.board-action-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.board-action-copy p { margin: 3px 0; color: #758285; font-size: 9px; }
.board-action-copy small { color: #929c9e; font-size: 8px; }
.board-action-copy small b { color: var(--green-dark); }
.priority-label { padding: 3px 6px; border-radius: 9px; background: #edf0ed; color: #68777a; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.priority-label.high { background: var(--sand-soft); color: #865828; }
.priority-label.urgent { background: var(--coral-soft); color: #a14b3c; }
.board-due { min-width: 70px; padding-top: 3px; display: flex; flex-direction: column; align-items: flex-end; }
.board-due small { color: #939d9f; font-size: 8px; text-transform: uppercase; }
.board-due strong { font-size: 10px; }
.board-due.overdue { color: var(--coral); }
.notification-board { overflow: hidden; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--green-dark); cursor: pointer; font-size: 9px; font-weight: 700; }
.notification-list { max-height: 690px; overflow: auto; }
.notification-item { position: relative; padding: 15px 18px; display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 11px; border-bottom: 1px solid #edf0eb; }
.notification-item.unread { background: #fbfdfb; }
.notification-item.unread::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--green); }
.notification-item > div > div { display: flex; align-items: center; gap: 7px; }
.notification-item strong { font-size: 11px; }
.notification-item i { padding: 2px 5px; border-radius: 7px; background: var(--coral-soft); color: #a14b3b; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.notification-item p { margin: 3px 0 4px; color: #738084; font-size: 9px; line-height: 1.4; }
.notification-item small { color: #9aa3a4; font-size: 8px; }
.notification-item small b { color: var(--green-dark); }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .property-card-grid { grid-template-columns: repeat(2, 1fr); }
  .primary-grid { grid-template-columns: 1fr; }
  .feed-list { min-height: 310px; max-height: 420px; }
  .review-strip { grid-template-columns: 1fr; }
  .detail-layout, .board-grid { grid-template-columns: 1fr; }
  .notification-list { max-height: 520px; }
  .document-detail-grid, .review-layout { grid-template-columns: 1fr; }
  .review-form { grid-row: 1; order: 1; }
  .review-preview { grid-row: 2; order: 2; height: 440px; }
  .review-preview object { min-height: 382px; }
  .team-row { grid-template-columns: 38px minmax(160px, 1fr) 140px minmax(180px, 1fr) auto; }
  .team-row .status-pill { display: none; }
  .role-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --sidebar: 244px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-open .sidebar-scrim { position: fixed; inset: 0; z-index: 35; display: block; background: rgba(8,23,29,.48); }
  .app-main { margin-left: 0; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 20px; }
  .content-wrap { padding: 28px 22px 50px; }
  .dashboard-intro { align-items: flex-start; flex-direction: column; }
  .score-card { min-width: 0; width: 100%; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: 340px; }
  .story-content { margin: 60px 0; }
  .story-content h1 { font-size: 42px; }
  .detail-kpis { grid-template-columns: repeat(2, 1fr); }
  .filter-toolbar { flex-wrap: wrap; }
  .filter-toolbar .inline-search { flex-basis: 100%; }
  .dropzone-layout { grid-template-columns: 1fr; }
  .team-summary { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: 38px minmax(150px, 1fr) auto; }
  .team-row > div:nth-of-type(2), .team-row .team-scope { grid-column: 2 / -1; }
  .role-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .top-search { display: none; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions .button { width: 39px; padding: 0; font-size: 0; }
  .topbar-actions .button span { font-size: 16px; }
  .content-wrap { padding: 24px 15px 45px; }
  .kpi-grid, .property-card-grid, .form-grid { grid-template-columns: 1fr; }
  .form-field.span-2 { grid-column: auto; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .button { display: none; }
  .panel-header { padding-left: 16px; padding-right: 16px; }
  .action-row { grid-template-columns: 4px 22px minmax(0, 1fr); padding-right: 14px; }
  .action-date { display: none; }
  .panel-footer { padding: 0 16px; }
  .review-strip { padding: 18px; }
  .review-docs a { grid-template-columns: 32px minmax(0, 1fr); }
  .review-docs a > b { display: none; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; }
  .property-hero { padding: 118px 20px 22px; grid-template-columns: 1fr; }
  .property-hero-pattern { inset: 0 0 auto 8px; width: auto; height: 92px; }
  .property-hero-score { width: 100%; padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .detail-kpis { grid-template-columns: 1fr 1fr; }
  .upload-panel { padding: 15px; }
  .drop-area { min-height: 340px; padding: 30px 18px 100px; }
  .upload-options { align-items: stretch; flex-direction: column; }
  .upload-options .button { width: 100%; }
  .heading-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .heading-actions .button, .heading-actions form .button { width: 100%; }
  .two-col { grid-template-columns: 1fr; }
  .two-col > div:nth-child(odd) { border-right: 0; }
  .file-preview { min-height: 520px; }
  .file-preview object { min-height: 520px; }
  .review-layout { display: flex; flex-direction: column; }
  .review-preview { width: 100%; height: 420px; }
  .review-preview object { min-height: 362px; }
  .review-form { padding: 18px; }
  .payment-planner > summary { grid-template-columns: 34px minmax(0, 1fr); }
  .payment-plan-total { display: none; }
  .payment-planner > summary::after { position: absolute; right: 28px; }
  .payment-settings, .payment-entry { grid-template-columns: 1fr; }
  .payment-entry { padding-left: 40px; }
  .saved-payment-plan > header { align-items: flex-start; flex-direction: column; }
  .saved-payment-plan > header > div:last-child { align-items: flex-start; }
  .saved-payment-row { grid-template-columns: 68px minmax(0, 1fr) auto; }
  .saved-payment-row .payment-state { grid-column: 2 / -1; justify-self: start; }
  .review-confirm { margin: 20px -18px -18px; padding: 16px 18px; align-items: stretch; flex-direction: column; }
  .review-confirm .button { width: 100%; }
  .board-filter { align-items: stretch; flex-direction: column; }
  .board-filter select { max-width: none; }
  .board-action-row { grid-template-columns: 21px 32px minmax(0,1fr); padding: 13px; }
  .board-due { display: none; }
  .form-grid.two-columns, .property-choice-grid ul, .role-guide { grid-template-columns: 1fr; }
  .form-section { padding: 20px 17px; }
  .team-row { grid-template-columns: 34px minmax(0, 1fr); }
  .team-row > * { grid-column: 2; }
  .team-row .team-avatar { grid-column: 1; grid-row: 1; }
  .team-row > .button { width: fit-content; }
}
