:root {
  --midnight: #081e35;
  --navy: #0b2f55;
  --ink: #081e35;
  --slate: #5d7182;
  --muted: #7d90a0;
  --bg: #edf8ff;
  --card: #ffffff;
  --line: rgba(13, 52, 86, 0.14);
  --teal: #1e79b7;
  --teal-dark: #0b2f55;
  --sky: #8ed8ff;
  --ice: #eaf8ff;
  --snow: #fbfdff;
  --gold: #c59a4a;
  --red: #dc2626;
  --amber: #c59a4a;
  --green: #16a34a;
  --blue: #1e79b7;
  --shadow: 0 24px 80px rgba(8, 30, 53, 0.16);
  --soft-shadow: 0 12px 36px rgba(8, 30, 53, 0.09);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(142, 216, 255, 0.34), transparent 34rem),
    linear-gradient(180deg, #f8fcff 0%, var(--bg) 58%, #f9fcff 100%);
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 30, 53, 0.96), rgba(8, 30, 53, 0.99)),
    radial-gradient(circle at 20% 0%, rgba(30, 121, 183, 0.48), transparent 18rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0;
  font-size: 20px;
}

.brand img,
.auth-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.app-brand {
  color: #ffffff;
  font-size: 19px;
  text-transform: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--midnight);
  background: linear-gradient(135deg, var(--ice), var(--sky));
  letter-spacing: -0.04em;
}

.side p {
  margin: -8px 0 0;
  color: #b5c6d3;
  line-height: 1.5;
}

.side nav { display: grid; gap: 6px; }

.side a,
.nav-group summary {
  display: block;
  color: #cad7e1;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 850;
}

.nav-group {
  border: 1px solid rgba(203, 213, 225, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-group summary {
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.nav-group summary::-webkit-details-marker { display: none; }

.nav-group summary::after {
  content: "+";
  float: right;
  color: var(--teal);
}

.nav-group[open] summary::after { content: "–"; }

.nav-group a {
  margin: 0 6px 6px;
  padding: 10px 12px;
  font-size: 14px;
}

.side a:hover,
.side a.active,
.nav-group summary:hover,
.nav-group[open] summary {
  color: #fff;
  background: rgba(20, 184, 166, 0.18);
}

.side-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.side-card span,
.side-card small { display: block; color: #b5c6d3; }
.side-card strong { display: block; margin: 5px 0; font-size: 18px; }
.side-card small { line-height: 1.45; }

.main {
  width: 100%;
  min-width: 0;
  max-width: 1220px;
  padding: 38px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 24px;
  min-width: 0;
}

.hero > * { min-width: 0; }

.eyebrow {
  color: var(--teal-dark);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

h1 {
  max-width: 760px;
  margin: 7px 0 10px;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

.hero p,
.panel-head p,
.body-copy {
  color: var(--slate);
  line-height: 1.6;
}

.hero p { max-width: 760px; margin: 0; font-size: 18px; }

.badge,
.button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--slate);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metrics article,
.metric-card,
.panel {
  border: 1px solid rgba(220, 230, 228, 0.95);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metrics article,
.metric-card,
.panel,
.issue-row,
.approval-card,
.service-card,
.queue-card { min-width: 0; }

.metrics article,
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.metrics article::after,
.metric-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
}

.metric-card:hover,
.metric-card:focus-visible {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 18px 48px rgba(14, 49, 59, 0.12);
  transform: translateY(-1px);
}

.metrics span,
.metrics small,
.panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.metrics small { display: block; margin-top: 4px; }

.panel {
  margin-bottom: 18px;
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.panel-head p { margin: 5px 0 0; }
.panel-head span { text-align: right; white-space: nowrap; }

.issue-list { display: grid; gap: 8px; }

.issue-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--navy);
  text-decoration: none;
  background: #f8fbfa;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.issue-row:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.28);
  background: #fff;
}

.issue-main strong { display: block; font-size: 17px; }
.issue-main small { display: block; margin-top: 5px; color: var(--slate); }
.issue-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.status,
.urgency {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 950;
  text-transform: capitalize;
  white-space: nowrap;
}

.status { color: #334155; background: #eef2ff; }
.status.awaiting_approval,
.status.pending { color: #92400e; background: #fffbeb; }
.status.closed,
.status.resolved,
.status.approved,
.status.owner_confirmed { color: var(--green); background: #ecfdf5; }
.status.rejected,
.status.cancelled,
.status.blocked { color: var(--red); background: #fef2f2; }
.status.triaged,
.status.coordinating,
.status.scheduled,
.status.review_needed { color: var(--blue); background: #eff6ff; }
.status.paused { color: var(--amber); background: #fffbeb; }
.status.ended { color: var(--muted); background: #f1f5f9; }

.urgency { color: var(--teal-dark); background: #ecfdf5; }
.urgency.high,
.urgency.emergency { color: var(--amber); background: #fffbeb; }
.urgency.low { color: var(--slate); background: #f1f5f9; }
.urgency.emergency { color: var(--red); background: #fef2f2; }

.issue-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -8px 0 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
}

.form-grid label {
  color: var(--slate);
  font-weight: 900;
  min-width: 0;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  outline: none;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(20, 184, 166, 0.8);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.form-grid textarea { min-height: 126px; resize: vertical; }
.form-grid textarea,
.draft-editor textarea { max-width: 100%; overflow-wrap: anywhere; }
.stacked-form { grid-template-columns: minmax(0, 1fr); }
.account-profile-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phone-field {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px;
}
.field-error {
  margin: -4px 0 0;
  color: var(--red);
  font-weight: 900;
  line-height: 1.4;
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.form-note {
  margin: 14px 0 0;
  padding: 13px 14px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 16px;
  color: var(--slate);
  background: #f0fdfa;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.full { grid-column: 1 / -1; }

button,
.button {
  border: 0;
  border-radius: 15px;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #123a5a);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(10, 31, 51, 0.18);
}

.secondary { color: var(--navy) !important; background: #edf2f7 !important; box-shadow: none; }
.danger { color: var(--red) !important; background: #fef2f2 !important; box-shadow: none; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.triage-list { display: grid; gap: 14px; margin: 0; }
.triage-list div { padding: 14px; border-radius: 16px; background: #f8fbfa; }
.triage-list dt { color: var(--muted); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: 0.08em; }
.triage-list dd { margin: 5px 0 0; color: var(--ink); line-height: 1.55; }

.approval-card {
  padding: 18px;
  border: 1px solid rgba(220, 230, 228, 0.95);
  border-radius: 20px;
  background: #f8fbfa;
}

.approval-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.approval-card p { color: var(--slate); line-height: 1.55; }
.approval-limit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.approval-limit-grid div {
  padding: 12px;
  border: 1px solid #dbe8e5;
  border-radius: 16px;
  background: #fff;
}
.approval-limit-grid span,
.approval-confirm label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.approval-limit-grid strong { display: block; margin-top: 5px; color: var(--ink); font-size: 20px; }
.approval-confirm {
  align-items: flex-start;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(46, 139, 122, 0.25);
  border-radius: 18px;
  background: #eefaf7;
}
.approval-confirm h3 { width: 100%; margin: 0; color: var(--navy); }
.approval-confirm p { width: 100%; margin: 0; }
.approval-confirm input:not([type="checkbox"]) {
  display: block;
  width: 140px;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
}
.approval-confirm .checkbox-line {
  display: flex;
  flex: 1 1 420px;
  align-items: flex-start;
  gap: 8px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}
.message-preview {
  margin: 12px 0;
  padding: 14px 14px 14px 16px;
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  color: var(--slate);
  background: #fff;
  overflow-wrap: anywhere;
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.timeline { position: relative; }
.event {
  position: relative;
  padding: 4px 0 16px 26px;
  border-left: 2px solid #d8e6e3;
}
.event::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px #e8faf7;
}
.event strong { text-transform: capitalize; }
.event span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.event p { margin: 7px 0 0; color: var(--slate); line-height: 1.5; }

.empty-state {
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  color: var(--slate);
  background: #f8fbfa;
}

@media (max-width: 940px) {
  body { grid-template-columns: 1fr; }
  .side { position: static; height: auto; gap: 16px; padding: 22px 20px; }
  .side nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .side a { padding: 10px 12px; }
  .side-card { margin-top: 2px; }
  .main { padding: 20px; overflow-x: hidden; }
  h1 { font-size: clamp(30px, 9vw, 38px); line-height: 1.02; letter-spacing: -0.045em; }
  .hero p { font-size: 16px; }
  .metrics,
  .layout,
  .form-grid,
  .account-profile-form,
  .phone-field { grid-template-columns: 1fr; }
  .hero,
  .panel-head,
  .issue-row,
  .approval-head { display: block; }
  .badge,
  .button { margin-top: 14px; max-width: 100%; white-space: normal; text-align: center; }
  .chip,
  .status,
  .urgency { max-width: 100%; white-space: normal; text-align: center; }
  .issue-meta { justify-content: flex-start; margin-top: 12px; }
  .panel-head span { display: inline-block; margin-top: 8px; text-align: left; }
}

/* Review workflow additions */
.review-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(232,250,247,0.82)),
    radial-gradient(circle at 92% 20%, rgba(20,184,166,0.26), transparent 18rem);
  box-shadow: var(--shadow);
}

.access-badge { color: var(--teal-dark); border-color: rgba(20,184,166,.35); }

.review-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #092136, #0d3a4f 58%, #0f766e);
  color: white;
}
.review-strip h2 { margin: 5px 0; font-size: 28px; letter-spacing: -0.04em; }
.review-strip p { margin: 0; color: #c9eef0; line-height: 1.55; }
.review-strip .eyebrow { color: #92f3e7; }
.review-strip .button { background: #ffffff; color: var(--navy); box-shadow: none; }
.readiness-strip { align-items: flex-start; }
.compact-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.compact-list li { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; background: rgba(255,255,255,0.09); }
.compact-list span { color: #b9e5e9; font-size: 13px; font-weight: 850; }
.review-gate-note { margin-top: 10px !important; font-size: 14px; }
.review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.review-actions .button.secondary { background: rgba(255,255,255,0.14); color: #ffffff; border-color: rgba(255,255,255,0.32); }

.metrics { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.compact-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stacked-form { margin-top: 16px; }
.mini-panel .panel-head a,
.timeline-panel .panel-head a { color: var(--teal-dark); font-weight: 950; text-decoration: none; }

.queue-card {
  display: block;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
}
.queue-card strong,
.queue-card span { display: block; }
.queue-card span { margin-top: 5px; color: var(--slate); }

.landlord-cockpit {
  background:
    radial-gradient(circle at 92% 10%, rgba(20, 184, 166, .12), transparent 20rem),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(248,251,250,.96));
}
.landlord-cockpit .panel-head h2 { margin: 5px 0; }
.cockpit-grid {
  display: grid;
  grid-template-columns: .62fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.cockpit-grid article,
.cockpit-attention-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.cockpit-grid span,
.cockpit-grid strong,
.cockpit-grid small,
.cockpit-attention-card strong,
.cockpit-attention-card span,
.cockpit-attention-card small { display: block; }
.cockpit-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cockpit-grid strong {
  margin-top: 6px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.05;
}
.cockpit-grid small,
.cockpit-attention-card span {
  margin-top: 7px;
  color: var(--slate);
  line-height: 1.45;
}
.cockpit-attention-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.cockpit-attention-card {
  color: inherit;
  text-decoration: none;
}
.cockpit-attention-card.needs_review {
  border-color: rgba(217, 119, 6, .25);
  background: #fffaf0;
}
.cockpit-attention-card.ready {
  border-color: rgba(22, 163, 74, .22);
  background: #f0fdf4;
}
.cockpit-attention-card strong { color: var(--navy); }
.cockpit-attention-card small { margin-top: 7px; color: var(--teal-dark); font-weight: 900; line-height: 1.4; }
.cockpit-readiness-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.property-grid,
.directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.property-card h2 { margin: 12px 0 6px; color: var(--navy); letter-spacing: -0.04em; }
.property-card p,
.contact-card p { color: var(--slate); line-height: 1.5; }
.property-link { margin-top: 14px; }
.service-alert { margin: 12px 0 0; color: var(--amber) !important; font-weight: 900; }
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.mini-metrics div,
.mini-metrics .setup-step {
  padding: 12px;
  border-radius: 16px;
  background: #f8fbfa;
}
.mini-metrics .setup-step {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
}
.mini-metrics .setup-step.todo { border-color: rgba(217, 119, 6, 0.28); background: #fffaf0; }
.mini-metrics .setup-step:hover { border-color: rgba(20, 184, 166, 0.42); transform: translateY(-1px); }
.mini-metrics strong,
.mini-metrics span,
.mini-metrics small { display: block; }
.mini-metrics strong { color: var(--navy); font-size: 19px; }
.mini-metrics span { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.mini-metrics small { margin-top: 8px; color: var(--teal-dark); font-weight: 900; }

.quick-start-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.quick-start-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfa;
}
.quick-start-summary strong,
.quick-start-summary span { display: block; }
.quick-start-summary strong { color: var(--navy); font-size: 24px; }
.quick-start-summary span { margin-top: 4px; color: var(--muted); font-weight: 850; }
.quick-start-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.quick-start-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(100px, .6fr) minmax(180px, 1.4fr) minmax(150px, .9fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.quick-start-row:not(.quick-start-head):hover {
  border-color: rgba(20, 184, 166, .42);
  transform: translateY(-1px);
}
.quick-start-row span,
.quick-start-row strong { min-width: 0; overflow-wrap: anywhere; }
.quick-start-head {
  background: #f8fbfa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-card .chip { box-shadow: none; }
.approval-list-card { margin-bottom: 14px; background: #fff; }
.approval-list-card .approval-head p { margin: 5px 0 0; color: var(--slate); }
.approval-list-card form { display: inline; }

.draft-editor {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8fbfa;
  margin-bottom: 14px;
}
.draft-editor label { display: block; color: var(--slate); font-weight: 900; }
.draft-editor textarea {
  width: 100%;
  min-height: 126px;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--navy);
  background: white;
  font: inherit;
}
.guardrail-stack {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
.guardrail-stack .message-preview { margin: 0; }
.guardrail-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 14px 12px 32px;
  border: 1px solid rgba(20, 184, 166, .22);
  border-radius: 16px;
  color: var(--slate);
  background: linear-gradient(135deg, rgba(232, 250, 247, .82), rgba(255, 255, 255, .92));
  line-height: 1.45;
}
.guardrail-checklist strong { color: var(--teal-dark); }
.feedback-row { align-items: flex-start; }
.feedback-row p { margin: 8px 0 0; color: var(--slate); line-height: 1.5; }
.compact-timeline .event { padding-bottom: 12px; }

.property-hub-hero h1 { max-width: 860px; }
.command-centre {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(520px, 1.12fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 92% 8%, rgba(125, 255, 233, .28), transparent 18rem),
    linear-gradient(135deg, rgba(8, 26, 43, .96), rgba(11, 58, 79, .94) 58%, rgba(15, 118, 110, .9));
  color: #fff;
}
.command-centre::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.command-centre > * { position: relative; z-index: 1; min-width: 0; }
.command-centre-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.command-centre .eyebrow { color: #91f4e8; }
.command-centre-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(145, 244, 232, .32);
  border-radius: 999px;
  color: #dffdf8;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.command-centre h2 {
  max-width: 720px;
  margin: 8px 0 10px;
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.command-centre p { max-width: 66ch; margin: 0 0 18px; color: #c9eef0; line-height: 1.55; }
.command-centre .button { background: #fff; color: var(--navy); box-shadow: none; }
.command-centre-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.command-centre-action-row small {
  max-width: 320px;
  color: #bfe4e7;
  font-weight: 850;
  line-height: 1.4;
}
.command-centre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.command-centre-grid article {
  min-width: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 1.6vw, 18px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.command-centre-grid span,
.command-centre-grid small { display: block; color: #bfe4e7; font-weight: 850; }
.command-centre-grid span { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; overflow-wrap: anywhere; }
.command-centre-grid strong { display: block; margin: 8px 0 4px; font-size: clamp(28px, 3vw, 38px); line-height: 1; letter-spacing: -0.04em; }
.command-centre-grid small { line-height: 1.35; }
.command-action-panel { border-color: rgba(217, 119, 6, .28); }
.property-hub-layout { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: start; }
.service-list { display: grid; gap: 14px; }
.service-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.service-card h3 { margin: 10px 0 0; color: var(--navy); font-size: 24px; letter-spacing: -0.04em; }
.service-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.service-meta span {
  padding: 10px;
  border-radius: 14px;
  color: var(--slate);
  background: #f8fbfa;
  font-size: 12px;
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
}
.service-card .actions select {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--navy);
  background: white;
  font: inherit;
  font-weight: 850;
}
.service-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phone-field { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); gap: 8px; }
.phone-field select, .phone-field input { width: 100%; min-width: 0; }
.legal-card { background: linear-gradient(135deg, #ffffff 0%, #f8fbfa 100%); }
.legal-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1320px) {
  /* The app has a persistent side rail, so viewport-based “desktop” widths can still
     leave the command centre with a narrow content column. Collapse the component
     earlier instead of forcing snapshot cards into cramped two-row grids. */
  .command-centre { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .metrics { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .property-grid,
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .metrics,
  .compact-form,
  .property-grid,
  .directory,
  .quick-start-summary,
  .quick-start-row,
  .command-centre,
  .property-hub-layout,
  .service-meta,
  .service-form { grid-template-columns: 1fr; }
  .command-centre-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .phone-field { grid-template-columns: 1fr; }
  .review-strip { display: block; }
  .service-card-head { display: block; }
}
.feedback-controls {
  display: grid;
  gap: 12px;
  min-width: min(420px, 100%);
}
.feedback-controls .compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdfc;
}
.feedback-controls .compact-form button { align-self: end; }
.status.blocker,
.status.needs_michael_decision { background: #fee2e2; color: #991b1b; }
.status.needs_tony_review { background: #dbeafe; color: #1e3a8a; }
.status.triaged,
.status.planned,
.status.in_progress { background: #fef3c7; color: #92400e; }
.status.parked { background: #e5e7eb; color: #374151; }
.status.tony,
.status.michael { background: #ede9fe; color: #5b21b6; }

@media (max-width: 940px) {
  .feedback-controls .compact-form { grid-template-columns: 1fr; }
  .cockpit-grid,
  .cockpit-attention-list { grid-template-columns: 1fr; }
}
.enrichment-card { border-color: rgba(20, 184, 166, .35); }
.enrichment-card .chip { background: #ccfbf1; color: #115e59; }
.status.furnished,
.status.part_furnished,
.status.unfurnished,
.status.occupied,
.status.vacant,
.status.between_tenants { background: #ecfeff; color: #155e75; }
.readiness-card { background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%); }
.status.not_applicable { background: #e5e7eb; color: #374151; }
.status.blocked { background: #fee2e2; color: #991b1b; }
.status.ready { background: #dcfce7; color: #166534; }

.signup-layout {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
}
.signup-hero h1 { max-width: 820px; }
.signup-principles {
  position: sticky;
  top: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(239,253,250,.9)),
    radial-gradient(circle at 10% 0%, rgba(20,184,166,.16), transparent 18rem);
}
.signup-principles h2 { margin: 8px 0 12px; color: var(--navy); letter-spacing: -0.03em; }
.signup-principles ul,
.error-box ul,
.next-steps { margin: 0; padding-left: 20px; color: var(--slate); line-height: 1.6; }
.signup-principles li + li { margin-top: 12px; }
.signup-form-card { overflow: hidden; }
.signup-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.signup-checks {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8fbfa;
}
.signup-checks label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--slate);
  font-weight: 800;
  line-height: 1.45;
}
.signup-checks input { margin-top: 3px; }
.error-box {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 20px;
  background: #fff1f2;
  color: #991b1b;
}
.confirmed-hero strong { color: var(--navy); }
.signup-next { max-width: 900px; }
.next-steps {
  display: grid;
  gap: 12px;
  margin: 10px 0 16px;
}
@media (max-width: 940px) {
  .signup-layout,
  .signup-form { grid-template-columns: 1fr; }
  .signup-principles { position: static; }
}
.signup-lead-list { display: grid; gap: 14px; }
.signup-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfdfc;
}
.signup-lead-main h3 { margin: 8px 0 4px; color: var(--navy); font-size: 24px; letter-spacing: -0.03em; }
.signup-lead-main p { margin: 4px 0; color: var(--slate); line-height: 1.5; }
.signup-lead-main small { color: var(--muted); font-weight: 800; }
.signup-review-form { display: grid; gap: 10px; align-content: start; }
.status.new { background: #dbeafe; color: #1e3a8a; }
.status.reviewing { background: #fef3c7; color: #92400e; }
.status.invited { background: #ede9fe; color: #5b21b6; }
.status.provisioned { background: #dcfce7; color: #166534; }
.status.declined { background: #fee2e2; color: #991b1b; }
@media (max-width: 940px) { .signup-lead-card { grid-template-columns: 1fr; } }

.onboarding-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 197, 94, .22), transparent 28%),
    linear-gradient(135deg, #f8faf3 0%, #eef7ee 46%, #fffaf0 100%);
}
.onboarding-progress-panel { position: relative; overflow: hidden; }
.onboarding-progress-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(13, 148, 136, .10);
  pointer-events: none;
}
.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.onboarding-step {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fbfdf8;
  display: grid;
  gap: 8px;
}
.onboarding-step.active {
  border-color: #0f766e;
  box-shadow: 0 12px 30px rgba(15, 118, 110, .12);
}
.onboarding-step span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.onboarding-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.status.ready { background: #dcfce7; color: #166534; }
.status.pending { background: #fef3c7; color: #92400e; }
.readiness-blockers {
  margin-top: 16px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 251, 235, .78);
  color: #78350f;
  position: relative;
  z-index: 1;
}
.readiness-blockers ul { margin: 8px 0 0; padding-left: 20px; color: #92400e; }
.readiness-blockers li + li { margin-top: 4px; }
.readiness-blockers.ready {
  border-color: rgba(22, 163, 74, .28);
  background: rgba(240, 253, 244, .82);
  color: #166534;
}
.onboarding-review-panel {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .06), rgba(245, 158, 11, .06)),
    #ffffff;
}
.collapsible-panel { overflow: hidden; }
.collapsible-summary {
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}
.collapsible-summary::-webkit-details-marker { display: none; }
.collapsible-summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(204, 251, 241, .82);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}
.collapsible-panel[open] .collapsible-summary { margin-bottom: 16px; }
.collapsible-panel[open] .collapsible-summary::after { content: "–"; }
.collapsible-body {
  animation: tab-panel-in .18s ease-out;
}
.handoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.handoff-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, .82);
  display: grid;
  gap: 8px;
}
.handoff-grid span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.onboarding-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.onboarding-tabs { display: grid; gap: 14px; }
.tab-radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.onboarding-tab-list {
  position: sticky;
  top: 14px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(220, 230, 228, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}
.onboarding-tab-list label {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--slate);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.onboarding-tab-list label:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, .26);
  background: rgba(240, 253, 250, .72);
}
.onboarding-tab-list strong { color: inherit; font-size: .95rem; }
.onboarding-tab-list span { color: var(--muted); font-size: .78rem; font-weight: 850; }
.onboarding-tab-panel { display: none; margin: 0; }
#tab-property-basics:checked ~ .onboarding-tab-panels .tab-property-basics,
#tab-authority:checked ~ .onboarding-tab-panels .tab-authority,
#tab-access:checked ~ .onboarding-tab-panels .tab-access,
#tab-boundaries:checked ~ .onboarding-tab-panels .tab-boundaries {
  display: block;
  animation: tab-panel-in .18s ease-out;
}
#tab-property-basics:checked ~ .onboarding-tab-list label[for="tab-property-basics"],
#tab-authority:checked ~ .onboarding-tab-list label[for="tab-authority"],
#tab-access:checked ~ .onboarding-tab-list label[for="tab-access"],
#tab-boundaries:checked ~ .onboarding-tab-list label[for="tab-boundaries"] {
  color: #063b35;
  border-color: rgba(15, 118, 110, .32);
  background: linear-gradient(135deg, rgba(204, 251, 241, .96), rgba(240, 253, 244, .88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 10px 26px rgba(15, 118, 110, .12);
}
@keyframes tab-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.boundary-panel {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .03), rgba(13, 148, 136, .05)),
    #ffffff;
}
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.check-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
.check-card input { margin-top: 4px; width: auto; }
.check-card span { display: grid; gap: 4px; }
.check-card small { color: var(--muted); line-height: 1.45; }
@media (max-width: 980px) {
  .onboarding-steps,
  .handoff-grid,
  .boundary-grid { grid-template-columns: 1fr; }
  .onboarding-tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
}

/* Mobile overflow hardening: keep audit/demo screens readable on narrow devices. */
@media (max-width: 520px) {
  body,
  .side,
  .main,
  .hero,
  .panel,
  .metrics article {
    width: 100%;
    max-width: 100vw;
  }

  .side nav {
    grid-template-columns: 1fr;
  }

  .side a,
  .side-card,
  h1,
  .hero p,
  .panel-head p,
  .body-copy,
  .empty-state,
  .queue-card span,
  .event p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero,
  .panel {
    border-radius: 22px;
  }

  .panel {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(28px, 7.5vw, 32px);
    letter-spacing: -0.035em;
  }
}

/* Guided owner journey: reusable demo/onboarding map. */
.journey-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(239, 253, 250, .9)),
    radial-gradient(circle at 95% 12%, rgba(20, 184, 166, .18), transparent 18rem);
}

.journey-panel .panel-head { margin-bottom: 18px; }
.journey-panel .eyebrow { display: block; margin-bottom: 6px; }

.journey-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 35, 52, .05);
}

.journey-step:hover {
  border-color: rgba(20, 184, 166, .42);
  transform: translateY(-1px);
}

.journey-step strong,
.journey-step small { min-width: 0; overflow-wrap: anywhere; }
.journey-step strong { line-height: 1.15; }
.journey-step small {
  grid-column: 2;
  color: var(--slate);
  line-height: 1.35;
}

.journey-dot {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--slate);
  background: #eef2f7;
  font-size: 12px;
  font-weight: 950;
}

.journey-step.done .journey-dot {
  color: #065f46;
  background: #ccfbf1;
}

.journey-step.done .journey-dot::before { content: "✓"; }
.journey-step.done .journey-dot { font-size: 0; }
.journey-step.done .journey-dot::before { font-size: 13px; }

.journey-step.active {
  border-color: rgba(15, 118, 110, .75);
  box-shadow: 0 12px 30px rgba(15, 118, 110, .12);
}

.journey-next {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 16px;
  color: var(--slate);
  background: #f8fbfa;
}

.journey-next strong { color: var(--navy); }
.journey-next a { color: var(--teal-dark); font-weight: 950; text-decoration: none; }
.journey-next span { overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .journey-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .journey-rail,
  .command-centre-grid { grid-template-columns: 1fr; }
  .command-centre-action-row { align-items: stretch; }
  .command-centre-action-row .button { width: 100%; justify-content: center; text-align: center; }
  .journey-step { padding: 13px; }
}

/* Google OAuth release slice: direct owner sign-in once account review/linking is complete. */
.oauth-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  margin: 0 0 16px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.84));
}
.oauth-panel p { margin: 4px 0 0; color: var(--slate); line-height: 1.5; }
.oauth-panel.is-connected {
  border-color: rgba(34, 197, 94, 0.24);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.94), rgba(255, 255, 255, 0.86));
}
.google-button::before { content: "G"; font-weight: 950; color: #4285f4; }
.muted-badge { color: var(--muted); background: rgba(248, 250, 252, 0.9); }
.success-badge { color: #166534; background: #dcfce7; }
.account-status-panel .local-note { margin-top: 14px; }
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.status-card {
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 18px;
  background: rgba(240, 253, 250, 0.68);
}
.status-card strong { display: block; color: var(--navy); margin-bottom: 6px; }
.status-card p { margin: 0; color: var(--slate); line-height: 1.5; }
.nav-logout { margin-top: 8px; }
.nav-logout button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
  cursor: pointer;
}
@media (max-width: 760px) {
  .status-grid { grid-template-columns: 1fr; }
  .oauth-panel { align-items: stretch; flex-direction: column; }
  .oauth-panel .button, .oauth-panel .badge { white-space: normal; }
}


/* Auth landing page: refined minimal gate before the owner workspace. */
.auth-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(142, 216, 255, 0.22), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(8, 30, 53, 0.13), transparent 24%),
    linear-gradient(135deg, #f8fcff 0%, #edf8ff 48%, #fbfdff 100%);
}
.auth-shell {
  width: min(560px, 100%);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
}
.auth-card,
.auth-aside {
  min-width: 0;
  border: 1px solid rgba(220, 230, 228, 0.92);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.auth-card {
  display: grid;
  justify-items: center;
  padding: clamp(26px, 5vw, 54px);
  text-align: center;
}
.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 34px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(15, 118, 110, 0.82)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='rgba(255,255,255,.12)'%3E%3Cpath d='M0 80h160M80 0v160M20 20l120 120M140 20L20 140'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 24px; font-weight: 950; letter-spacing: 0; color: var(--navy); font-size: 20px; }
.auth-card h1 { max-width: 430px; margin: 0 auto 12px; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: 0; color: var(--navy); text-align: center; }
.auth-copy { max-width: 620px; margin: 0 0 28px; color: var(--slate); font-size: 18px; line-height: 1.6; }
.auth-form { width: min(360px, 100%); display: grid; gap: 14px; margin: 24px auto 0; }
.auth-form label { display: grid; gap: 8px; color: var(--slate); font-size: 13px; font-weight: 900; text-align: left; }
.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(248, 250, 252, 0.9);
  font: inherit;
}
.auth-form input:focus { outline: 3px solid rgba(20, 184, 166, 0.22); border-color: rgba(20, 184, 166, 0.7); }
.auth-form button {
  margin-top: 4px;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  font-weight: 950;
  cursor: pointer;
}
.auth-divider { position: relative; width: min(360px, 100%); display: grid; place-items: center; margin: 24px auto; color: var(--muted); font-weight: 900; }
.auth-divider::before { content: ""; position: absolute; inset-inline: 0; height: 1px; background: var(--line); }
.auth-divider span { position: relative; padding: 0 12px; background: rgba(255, 255, 255, 0.92); }
.auth-actions { width: min(360px, 100%); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ghost-button { background: rgba(255,255,255,.5); }
.auth-actions .ghost-button { color: var(--navy); border: 1px solid rgba(15, 23, 42, 0.15); }
.auth-footnote { max-width: 360px; margin: 18px auto 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-aside h2 { margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 0.96; letter-spacing: -0.05em; }
.auth-aside ul { margin: 0; padding-left: 18px; display: grid; gap: 12px; color: rgba(255,255,255,.84); line-height: 1.55; }
@media (max-width: 880px) {
  .auth-body { padding: 16px; align-items: center; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 280px; }
}

/* DEPLOY-24 guided walkthrough: demo-friendly first-run map. */
.walkthrough-hero {
  padding: 28px;
  border: 1px solid rgba(220, 230, 228, 0.95);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,248,246,.92));
  box-shadow: var(--shadow);
}

.walkthrough-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.walkthrough-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  overflow: hidden;
}

.walkthrough-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(20, 184, 166, .12);
  pointer-events: none;
}

.spotlight-card { box-shadow: 0 0 0 2px rgba(20,184,166,.22), var(--shadow); }

.walkthrough-step {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 950;
}

.walkthrough-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.walkthrough-card p { color: var(--slate); line-height: 1.55; }
.walkthrough-card .button { margin-top: auto; }

@media (max-width: 1180px) {
  .walkthrough-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .walkthrough-grid { grid-template-columns: 1fr; }
}

/* KAN-88: keep the current portfolio first while making add-property a focused local flow. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.add-property-flow {
  scroll-margin-top: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.add-property-flow summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.add-property-flow summary::-webkit-details-marker { display: none; }
.add-property-flow summary strong { display: block; color: var(--navy); font-size: 20px; letter-spacing: -0.02em; }
.add-property-flow summary small { display: block; margin-top: 4px; color: var(--slate); font-weight: 800; line-height: 1.45; }

.add-property-flow[open] {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(232,250,247,0.82)),
    radial-gradient(circle at 88% 10%, rgba(20,184,166,0.18), transparent 18rem);
}

.add-property-flow[open] summary { margin-bottom: 16px; }

.modal-card {
  padding: 18px;
  border: 1px solid rgba(220, 230, 228, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

@media (max-width: 940px) {
  .hero-actions { justify-content: flex-start; margin-top: 14px; }
  .add-property-flow summary { display: block; }
  .add-property-flow summary .button { margin-top: 12px; }
}

/* Calm owner redesign: home is a decision surface, not an operations cockpit. */
.owner-calm-hero {
  padding: 26px;
  border: 1px solid rgba(13, 52, 86, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(251, 253, 255, .94), rgba(234, 248, 255, .82)),
    radial-gradient(circle at 90% 10%, rgba(142, 216, 255, .24), transparent 18rem);
  box-shadow: var(--shadow);
}

.owner-calm-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.owner-calm-hero p { max-width: 720px; }
.owner-calm-badge {
  color: var(--navy);
  background: rgba(234, 248, 255, 0.88);
  border-color: rgba(30, 121, 183, 0.18);
  box-shadow: none;
}

.owner-outcome-card {
  display: grid;
  gap: 7px;
  max-width: 520px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(251, 253, 255, .94), rgba(234, 248, 255, .78)),
    radial-gradient(circle at 92% 12%, rgba(142, 216, 255, .26), transparent 15rem);
  box-shadow: var(--shadow);
}

.owner-outcome-title {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.owner-outcome-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 9px 11px 9px 15px;
  border: 1px solid rgba(13, 52, 86, 0.14);
  border-radius: 8px;
  background: rgba(251, 253, 255, .86);
  overflow: hidden;
}

.owner-outcome-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--sky));
}

.owner-outcome-row span {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 950;
  line-height: 1;
}

.owner-outcome-row strong {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--midnight));
  box-shadow: 0 13px 30px rgba(30, 121, 183, .25);
  font-size: 23px;
  line-height: 1;
}

.owner-calm-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  margin-bottom: 18px;
}

.owner-next-card,
.owner-portfolio-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(13, 52, 86, 0.14);
  border-radius: 8px;
  background: rgba(251, 253, 255, .92);
  box-shadow: var(--soft-shadow);
}

.owner-next-card {
  background: #f7fbff;
}

.owner-next-card h2 {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: 0;
}

.owner-next-card p,
.owner-portfolio-card p {
  margin: 10px 0 0;
  color: var(--slate);
  line-height: 1.55;
}

.owner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.owner-portfolio-card strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.owner-mini-links,
.owner-tool-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.owner-mini-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-mini-links a,
.owner-tool-list a,
.owner-property-row,
.owner-case-card {
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
}

.owner-mini-links a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--snow);
  font-size: 13px;
  font-weight: 900;
}

.owner-journey-panel {
  border-radius: 8px;
  background: rgba(251, 253, 255, .92);
  box-shadow: var(--soft-shadow);
}

.owner-journey-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.owner-journey-step {
  display: block;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #f7fbff;
  text-decoration: none;
}

.owner-journey-step span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: var(--slate);
  background: #eef2f7;
  font-size: 12px;
  font-weight: 950;
}

.owner-journey-step strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.owner-journey-step small {
  display: block;
  margin-top: 5px;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.3;
}

.owner-journey-step.done {
  border-color: rgba(30, 121, 183, .24);
  background: #eaf8ff;
}

.owner-journey-step.done span {
  color: #fff;
  background: var(--blue);
}

.owner-journey-step.active {
  border-color: rgba(197, 154, 74, .44);
  background: #fff8ea;
}

.owner-journey-step.active span {
  color: #fff;
  background: var(--amber);
}

.owner-calm-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.owner-case-list,
.owner-property-list {
  display: grid;
  gap: 10px;
}

.owner-case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.owner-case-card.active {
  border-color: rgba(30, 121, 183, .28);
  background: #eaf8ff;
}

.owner-case-card strong,
.owner-property-row strong,
.owner-tool-list strong {
  display: block;
}

.owner-case-card small,
.owner-tool-list span {
  display: block;
  margin-top: 4px;
  color: var(--slate);
  line-height: 1.4;
}

.owner-case-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.owner-property-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.owner-property-row:last-child { border-bottom: 0; }

.owner-quiet-tools {
  border-radius: 8px;
  background: #fbfdff;
}

.owner-tool-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-tool-list a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.case-journey-panel { scroll-margin-top: 18px; }

@media (max-width: 1180px) {
  .owner-journey-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .owner-tool-list { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .owner-calm-summary,
  .owner-calm-grid {
    grid-template-columns: 1fr;
  }

  .owner-journey-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-case-card,
  .owner-property-row {
    display: grid;
  }

  .owner-case-status {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .owner-mini-links,
  .owner-journey-rail {
    grid-template-columns: 1fr;
  }

  .owner-outcome-card {
    max-width: none;
    padding: 13px;
  }

  .owner-outcome-row {
    grid-template-columns: minmax(0, 1fr) 34px;
    min-height: 42px;
    padding: 8px 9px 8px 13px;
  }

  .owner-outcome-row span {
    font-size: 16px;
  }

  .owner-outcome-row strong {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 20px;
  }
}


/* Calm rich visual layer: premium graphics and interactions without crowding the owner home. */
.owner-calm-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: 24px;
  overflow: hidden;
}

.owner-calm-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.72), transparent 44%),
    radial-gradient(circle at 76% 18%, rgba(197,154,74,.16), transparent 12rem);
  pointer-events: none;
}

.owner-calm-hero > * {
  position: relative;
  z-index: 1;
}

.owner-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.owner-flow-visual {
  position: relative;
  min-height: 300px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(8,30,53,.96), rgba(11,47,85,.92)),
    radial-gradient(circle at 78% 18%, rgba(142,216,255,.28), transparent 11rem);
  box-shadow: 0 26px 72px rgba(8,30,53,.22);
  overflow: hidden;
}

.owner-flow-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(142,216,255,.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(142,216,255,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(142,216,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15));
}

.owner-flow-card,
.owner-flow-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}

.owner-flow-card.main {
  left: 24px;
  top: 28px;
  width: 145px;
  min-height: 128px;
  padding: 18px;
  border-radius: 8px;
}

.owner-flow-card span,
.owner-flow-node small {
  color: rgba(255,255,255,.74);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.owner-flow-card strong {
  font-size: 46px;
  line-height: .9;
}

.owner-flow-card small {
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

.owner-flow-node {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.owner-flow-node span {
  font-size: 27px;
  font-weight: 950;
}

.owner-flow-node.issue {
  right: 35px;
  top: 30px;
  background: rgba(30,121,183,.36);
}

.owner-flow-node.approval {
  right: 86px;
  bottom: 34px;
  background: rgba(197,154,74,.34);
}

.owner-flow-node.quiet {
  left: 56px;
  bottom: 28px;
  background: rgba(22,163,74,.22);
}

.owner-flow-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(142,216,255,.78), transparent);
  transform-origin: left center;
}

.owner-flow-line.one {
  left: 158px;
  top: 90px;
  width: 138px;
  transform: rotate(-8deg);
}

.owner-flow-line.two {
  left: 165px;
  bottom: 112px;
  width: 128px;
  transform: rotate(18deg);
}

.owner-flow-line.three {
  left: 97px;
  bottom: 122px;
  width: 86px;
  transform: rotate(-54deg);
}

.owner-signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.owner-signal-strip a {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 132px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(234,248,255,.78)),
    radial-gradient(circle at 95% 18%, rgba(142,216,255,.24), transparent 8rem);
  box-shadow: 0 18px 48px rgba(8,30,53,.1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.owner-signal-strip a::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -48px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 1px solid rgba(30,121,183,.18);
  background: radial-gradient(circle, rgba(30,121,183,.16), transparent 62%);
}

.owner-signal-strip a:hover,
.owner-mini-links a:hover,
.owner-tool-list a:hover,
.owner-case-card:hover,
.owner-property-row:hover,
.owner-journey-step:hover {
  transform: translateY(-3px);
  border-color: rgba(30,121,183,.34);
  box-shadow: 0 24px 64px rgba(8,30,53,.15);
}

.owner-signal-strip span,
.owner-signal-strip small {
  position: relative;
  z-index: 1;
  color: var(--slate);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.owner-signal-strip strong {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .9;
}

.owner-next-card,
.owner-portfolio-card,
.owner-journey-panel,
.owner-quiet-tools,
.owner-case-card,
.owner-property-row,
.owner-tool-list a,
.owner-mini-links a {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.owner-next-card {
  position: relative;
  overflow: hidden;
}

.owner-next-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(142,216,255,.22), transparent 65%),
    conic-gradient(from 160deg, rgba(30,121,183,.18), rgba(197,154,74,.16), rgba(30,121,183,.18));
  opacity: .8;
  pointer-events: none;
}

.owner-journey-step {
  position: relative;
  overflow: hidden;
}

.owner-journey-step::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  opacity: 0;
  transition: opacity .18s ease;
}

.owner-journey-step:hover::after,
.owner-journey-step.active::after {
  opacity: 1;
}

.owner-case-card,
.owner-tool-list a {
  position: relative;
  overflow: hidden;
}

.owner-case-card::before,
.owner-tool-list a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--sky));
  opacity: .7;
}

.owner-property-row {
  padding-inline: 12px;
  border-radius: 8px;
}

.owner-property-row:hover {
  background: #eaf8ff;
}

@media (prefers-reduced-motion: reduce) {
  .owner-signal-strip a,
  .owner-mini-links a,
  .owner-tool-list a,
  .owner-case-card,
  .owner-property-row,
  .owner-journey-step {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .owner-signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .owner-calm-hero {
    grid-template-columns: 1fr;
  }
  .owner-flow-visual {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .owner-signal-strip {
    grid-template-columns: 1fr;
  }
  .owner-flow-card.main {
    left: 18px;
    top: 22px;
    width: 128px;
  }
  .owner-flow-node {
    width: 82px;
    height: 82px;
  }
  .owner-flow-node.issue { right: 18px; }
  .owner-flow-node.approval { right: 46px; }
}

/* App page command centre: implements the approved owner command mockup. */
.app-page-command {
  margin-bottom: 28px;
  padding: clamp(18px, 2.4vw, 30px);
  border-top: 14px solid #18b7a5;
  border-radius: 8px;
  background: #f3f7fb;
  box-shadow: 0 24px 70px rgba(8, 30, 53, 0.10);
}

.command-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  margin-bottom: 42px;
  padding: 16px 28px;
  border: 1px solid #d5e0ec;
  border-radius: 22px;
  background: #ffffff;
  color: #61708c;
  font-size: clamp(17px, 1.8vw, 23px);
  letter-spacing: .03em;
}

.command-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: #0b2038;
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: .01em;
}

.command-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.command-hero {
  margin-bottom: 64px;
}

.command-hero .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #667894;
}

.command-hero h1 {
  max-width: none;
  margin: 0 0 8px;
  color: #0b2038;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.command-hero p {
  max-width: 980px;
  margin: 0;
  color: #667894;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
}

.command-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}

.command-summary-card {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 28px;
  min-height: 210px;
  padding: 26px 26px;
  border: 1px solid #d5e0ec;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(8, 30, 53, 0.04);
}

.command-summary-card .accent {
  width: 15px;
  min-height: 154px;
  align-self: center;
  background: #18b7a5;
}

.command-summary-card.is-approval .accent { background: #f59e0b; }
.command-summary-card.is-issue .accent { background: #ef233c; }
.command-summary-card.is-controls .accent { background: #16a34a; }

.command-summary-card h2 {
  margin: 3px 0 8px;
  color: #0b2038;
  font-size: clamp(27px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.command-summary-card ul {
  margin: 0;
  padding-left: 22px;
  color: #667894;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.34;
}

.command-summary-card li {
  margin: 2px 0;
}

@media (max-width: 1180px) {
  .command-card-grid { gap: 20px; }
  .command-summary-card { min-height: 180px; }
}

@media (max-width: 820px) {
  .command-topbar,
  .command-card-grid { grid-template-columns: 1fr; }
  .command-card-grid { display: grid; }
  .command-topbar { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .command-hero { margin-bottom: 32px; }
  .command-summary-card { grid-template-columns: 10px minmax(0, 1fr); gap: 16px; }
}

/* Exact app mockup shell: left menu + calm owner-home dashboard. */
body.mockup-app-shell {
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f2f7fa;
  color: #10263d;
}

body.mockup-app-shell .mockup-sidebar {
  width: 250px;
  padding: 22px 18px;
  gap: 0;
  background: #0b2942;
  color: #ffffff;
}

body.mockup-app-shell .mockup-brand {
  display: block;
  margin: 0 0 28px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 35px rgba(0,0,0,.12);
}

body.mockup-app-shell .mockup-brand img {
  display: block;
  width: 150px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

body.mockup-app-shell .side nav { display: block; }
body.mockup-app-shell .nav-title {
  margin: 22px 12px 8px;
  color: #8fb5c9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.mockup-app-shell .side a,
body.mockup-app-shell .nav-group summary {
  margin: 3px 0;
  padding: 13px 14px;
  border-radius: 14px;
  color: #dcedf5;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: none;
}

body.mockup-app-shell .side a.support-link { opacity: .72; }
body.mockup-app-shell .side a.active,
body.mockup-app-shell .side a:hover,
body.mockup-app-shell .nav-group summary:hover,
body.mockup-app-shell .nav-group[open] summary {
  background: #155171;
  color: #ffffff;
}

body.mockup-app-shell .nav-group {
  margin-top: 10px;
  border: 0;
  background: transparent;
}

body.mockup-app-shell .nav-group a {
  margin-left: 12px;
  color: #bcd7e5;
  font-size: 13px;
}

body.mockup-app-shell .nav-logout button {
  width: 100%;
  margin-top: 14px;
  background: rgba(255,255,255,.1);
  color: #dcedf5;
}

body.mockup-app-shell .mockup-main {
  max-width: 1240px;
  padding: 34px;
}

.mockup-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 38px;
}

.mockup-eyebrow {
  color: #287aa7;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mockup-top h1 {
  max-width: 900px;
  margin: 7px 0 10px;
  color: #10263d;
  font-size: clamp(42px, 5vw, 56px);
  line-height: .96;
  letter-spacing: -.055em;
}

.mockup-top p,
.mockup-decision p,
.mockup-quiet-card p {
  max-width: 720px;
  margin: 0;
  color: #526b7e;
  font-size: 19px;
  line-height: 1.48;
}

.mockup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: #0d5e8e;
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
  box-shadow: none;
}

.mockup-button.secondary {
  border: 1px solid #d5e3eb;
  background: #ffffff;
  color: #10263d;
}

.mockup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.mockup-panel {
  border: 1px solid #d7e5ed;
  border-radius: 26px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(15,65,98,.07);
}

.mockup-decision {
  border: 2px solid #bad9ea;
}

.mockup-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff1d1;
  color: #875604;
  font-size: 12px;
  font-weight: 950;
}

.mockup-decision h2,
.mockup-quiet-card h2,
.mockup-lower-grid h2 {
  margin: 13px 0 10px;
  color: #061d34;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.mockup-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.mockup-facts div,
.mockup-metric,
.mockup-stats article,
.mockup-case,
.mockup-setup-list a {
  border: 1px solid #dbe8ef;
  border-radius: 16px;
  background: #fbfdff;
}

.mockup-facts div { padding: 13px; }
.mockup-facts span,
.mockup-metric span,
.mockup-stats span,
.mockup-case span,
.mockup-setup-list span {
  display: block;
  color: #526b7e;
  font-weight: 780;
}
.mockup-facts span { font-size: 13px; }
.mockup-facts strong { color: #061d34; font-size: 16px; }
.mockup-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.mockup-quiet-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.mockup-property-photo {
  min-height: 142px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8,30,53,.1), transparent 55%),
    radial-gradient(circle at 22% 38%, #d9e5ec 0 12%, transparent 13%),
    linear-gradient(90deg, #dde8ed 0 22%, #f7fafc 22% 50%, #c68c62 50% 72%, #24394d 72% 100%);
  overflow: hidden;
}

.mockup-metric { padding: 22px 18px; }
.mockup-metric strong,
.mockup-stats strong {
  display: block;
  color: #061d34;
  font-size: 34px;
  line-height: 1;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.mockup-stats article { padding: 22px 20px; }

.mockup-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.mockup-case-list,
.mockup-setup-list { display: grid; gap: 10px; margin-top: 18px; }
.mockup-case,
.mockup-setup-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #061d34;
  text-decoration: none;
}
.mockup-case strong,
.mockup-setup-list strong { display: block; font-size: 18px; }
.mockup-case em {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff1d1;
  color: #875604;
  font-style: normal;
  font-weight: 900;
}
.mockup-case em:not(:first-child) { background: #ffffff; border: 1px solid #dbe8ef; color: #526b7e; }
.mockup-setup-list a { display: block; }

@media (max-width: 960px) {
  body.mockup-app-shell { display: block; }
  body.mockup-app-shell .mockup-sidebar {
    position: static;
    width: auto;
    height: auto;
  }
  body.mockup-app-shell .mockup-brand { max-width: 220px; }
  body.mockup-app-shell .side nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  body.mockup-app-shell .nav-title { grid-column: 1 / -1; }
  .mockup-top,
  .mockup-hero,
  .mockup-stats,
  .mockup-lower-grid { grid-template-columns: 1fr; }
  .mockup-facts { grid-template-columns: 1fr; }
}

/* Pixel-faithful minimalist owner-home baseline from Michael's attached mockup. */
body.pixel-app-shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
  margin: 0;
  background: #eef5f8;
  color: #071c32;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pixel-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 16px;
  background: #082d48;
  color: #ffffff;
}

.pixel-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 136px;
  margin: 0 0 26px;
  padding: 12px;
  border-radius: 15px;
  background: #f7fafc;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.pixel-brand-card img {
  display: block;
  width: 166px;
  height: auto;
}

.pixel-navigation summary {
  width: fit-content;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #86aec2;
  border-radius: 11px;
  color: #ffffff;
  font-weight: 780;
  cursor: pointer;
}
.pixel-navigation summary:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
@media (min-width: 961px) {
  .pixel-navigation[open] > summary { display: none; }
}
.pixel-sidebar nav {
  display: block;
}

.pixel-nav-title {
  margin: 0 0 9px 11px;
  color: #86aec2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pixel-nav-title.support-title {
  margin-top: 28px;
}

.pixel-sidebar nav a {
  display: block;
  margin: 3px 0;
  padding: 12px 13px;
  border-radius: 11px;
  color: #c5d8e3;
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
}

.pixel-sidebar nav a.active {
  background: #155f7d;
  color: #ffffff;
}

.pixel-sidebar .nav-logout { margin: 18px 0 0; }
.pixel-sidebar .nav-logout button { min-height: 44px; }

.pixel-main {
  max-width: 1046px;
  padding: 28px 32px 34px 30px;
}

.pixel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.pixel-copy-head { max-width: 760px; }
.pixel-eyebrow {
  margin: 0 0 8px;
  color: #277e9b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.pixel-top h1 {
  margin: 0 0 15px;
  color: #071c32;
  font-size: 49px;
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 900;
}

.pixel-lead,
.pixel-decision-card > p,
.pixel-portfolio-card > p {
  margin: 0;
  color: #516878;
  font-size: 16px;
  line-height: 1.55;
}

.pixel-lead { max-width: 650px; }
.pixel-add-repair,
.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7,28,50,.05);
}

.pixel-add-repair {
  min-width: 104px;
  margin-top: 2px;
  padding: 12px 18px;
  border: 1px solid #dce7ec;
  background: #ffffff;
  color: #071c32;
  font-size: 15px;
}

.pixel-hero {
  display: grid;
  grid-template-columns: 1.12fr .83fr;
  gap: 17px;
  margin-bottom: 17px;
}

.pixel-card {
  border: 1px solid #d2e0e8;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(7,49,78,.06);
}

.pixel-decision-card {
  min-height: 398px;
  padding: 22px 22px 20px;
}

.pixel-status {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff5d8;
  color: #7e5b05;
  font-size: 10px;
  font-weight: 950;
}

.pixel-decision-card h2,
.pixel-portfolio-card h2,
.pixel-cases-card h2,
.pixel-help-card h2 {
  margin: 0;
  color: #071c32;
  font-weight: 900;
  letter-spacing: -.04em;
}

.pixel-decision-card h2 {
  max-width: 500px;
  margin-bottom: 18px;
  font-size: 35px;
  line-height: 1.05;
}

.pixel-decision-card > p {
  max-width: 535px;
  margin-bottom: 18px;
  font-size: 17px;
}

.pixel-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 17px;
}

.pixel-fact,
.pixel-overdue,
.pixel-stat-card,
.pixel-case-row,
.pixel-help-list a {
  border: 1px solid #e1e8ed;
  background: #fbfdfe;
}

.pixel-fact {
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 15px;
}

.pixel-fact span {
  display: block;
  color: #748491;
  font-size: 11px;
  line-height: 1.1;
}

.pixel-fact strong {
  display: block;
  color: #0a2035;
  font-size: 14px;
  line-height: 1.2;
}

.pixel-attention {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 17px;
  padding: 12px;
  border: 1px solid #f0d9a8;
  border-radius: 15px;
  background: #fffaf0;
}

.pixel-attention .pixel-eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: #8a5a00;
}

.pixel-attention div span,
.pixel-attention div strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pixel-attention div span {
  color: #8a6b35;
  font-size: 11px;
  line-height: 1.1;
}

.pixel-attention div strong {
  color: #4f3710;
  font-size: 13px;
  line-height: 1.25;
}

.pixel-actions { display: flex; gap: 10px; }
.pixel-button {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 14px;
}
.pixel-button.primary { background: #13799c; color: #ffffff; }
.pixel-button.secondary { border: 1px solid #dfe7eb; background: #ffffff; color: #071c32; }

.pixel-portfolio-card {
  min-height: 398px;
  padding: 20px;
}

.pixel-property-photo {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 16px;
  border-radius: 18px;
}

.pixel-portfolio-card h2 {
  max-width: 350px;
  margin: 0 0 17px;
  font-size: 29px;
  line-height: 1.1;
}
.pixel-portfolio-card > p:not(.pixel-eyebrow) {
  margin-bottom: 33px;
  font-size: 15px;
}

.pixel-overdue {
  min-height: 87px;
  padding: 18px;
  border-radius: 18px;
}
.pixel-overdue strong,
.pixel-stat-card strong {
  display: block;
  color: #071c32;
  font-size: 29px;
  line-height: 1;
}
.pixel-overdue span,
.pixel-stat-card span {
  display: block;
  margin-top: 5px;
  color: #607485;
  font-size: 14px;
  font-weight: 800;
}

.pixel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.pixel-stat-card {
  min-height: 84px;
  padding: 18px 16px;
  border-radius: 19px;
}

.pixel-bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 17px;
}
.pixel-cases-card,
.pixel-help-card { padding: 22px; }
.pixel-cases-card h2,
.pixel-help-card h2 { margin: 0 0 18px; font-size: 24px; }
.pixel-case-list,
.pixel-help-list { display: grid; gap: 9px; }
.pixel-case-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 65px;
  padding: 12px 14px;
  border-radius: 15px;
  color: #071c32;
  text-decoration: none;
}
.pixel-case-row strong,
.pixel-help-list strong { display: block; font-size: 16px; }
.pixel-case-row small,
.pixel-help-list span {
  display: block;
  margin-top: 2px;
  color: #617382;
  font-size: 12px;
}
.pixel-case-row em {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #e5edf1;
  background: #ffffff;
  color: #415462;
  font-style: normal;
  font-size: 13px;
}
.pixel-case-row em.high { border: 0; background: #fff2c4; color: #8d6300; font-weight: 900; }
.pixel-help-list a {
  display: block;
  min-height: 61px;
  padding: 12px 13px;
  border-radius: 15px;
  color: #071c32;
  text-decoration: none;
}

@media (max-width: 960px) {
  body.pixel-app-shell { display: block; }
  .pixel-sidebar { position: relative; width: auto; height: auto; padding: 12px 16px; overflow: visible; }
  .pixel-sidebar .pixel-brand-card { width: 84px; height: 60px; padding: 5px; margin: 0; border-radius: 8px; }
  .pixel-sidebar .pixel-brand-card img { width: 74px; }
  .pixel-navigation > summary { position: absolute; right: 16px; top: 20px; }
  .pixel-navigation[open] nav { margin-top: 16px; }
  .pixel-sidebar .pixel-nav-title.support-title { margin-top: 12px; }
  .pixel-sidebar .nav-logout { grid-column: 1 / -1; margin-top: 8px; }
  .pixel-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .pixel-nav-title { grid-column: 1 / -1; }
  .pixel-main { padding: 24px 18px; }
  .pixel-top,
  .pixel-hero,
  .pixel-stats,
  .pixel-bottom-grid { grid-template-columns: 1fr; }
  .pixel-top { display: grid; }
  .pixel-fact-grid { grid-template-columns: 1fr; }
  .pixel-top h1 { font-size: 40px; }
}

.pixel-anchor { display: block; height: 1px; }

/* ROAD-5 canonical issue detail */
.road5-issue-hero .crumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.road5-command-panel { background: rgba(255,255,255,0.94); }
.road5-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
}
.road5-pills { margin: 0 0 16px; }
.road5-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.road5-fact {
  padding: 14px;
  border: 1px solid rgba(220, 230, 228, 0.95);
  border-radius: 18px;
  background: #f8fbfa;
}
.road5-fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.road5-fact strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  line-height: 1.35;
}
.road5-fact-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.road5-decision-box {
  padding: 20px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--midnight), var(--navy));
  box-shadow: var(--soft-shadow);
}
.road5-decision-box h2 { margin: 0 0 8px; color: #fff; }
.road5-decision-box p { color: #dbeafe; line-height: 1.55; }
.road5-safety-note {
  color: var(--navy);
  background: #eefaf7;
  border-color: rgba(20,184,166,.24);
}
.road5-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.road5-side-stack { display: grid; gap: 18px; }
@media (max-width: 940px) {
  .road5-command-grid,
  .road5-layout,
  .road5-fact-grid,
  .road5-fact-grid.compact { grid-template-columns: 1fr; }
}

/* Owner Digest 1440x900 viewport budget. Keep the overview above the fold and
   reveal longer workflow panels through the existing secondary tabs. */
body.pixel-app-shell:has(.owner-digest-main) {
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.pixel-main.owner-digest-main {
  width: 100%;
  max-width: none;
  height: 100vh;
  min-height: 0;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 24px 30px;
}

.owner-digest-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.owner-digest-page > .pixel-top {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.owner-digest-page > .pixel-tabs,
.owner-digest-page > .pixel-boundary {
  flex: 0 0 auto;
}

.owner-digest-page > .pixel-hero {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
}

.owner-digest-page > .pixel-bottom-grid {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: auto;
}

.owner-digest-page > .pixel-bottom-grid:target,
.owner-digest-page > .pixel-bottom-grid:has(:target) {
  display: grid;
}

.owner-digest-page:has(> .pixel-bottom-grid:target) > .pixel-hero {
  display: none !important;
}

.owner-digest-page:has(> .pixel-bottom-grid :target) > .pixel-hero {
  display: none !important;
}

.owner-digest-page > .pixel-bottom-grid > * {
  min-height: 0;
}

.owner-digest-page .pixel-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.owner-digest-page .pixel-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--navy);
  font-weight: 800;
}

.owner-digest-page .pixel-form input,
.owner-digest-page .pixel-form select,
.owner-digest-page .pixel-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.owner-digest-page .pixel-form textarea {
  resize: vertical;
}

/* Keep the complete owner summary, attention callout, and review actions inside
   the fixed 1440×900 desktop workspace. If valid owner-entered text exceeds the
   card budget, the card itself scrolls so every field and action stays reachable. */
@media (min-width: 1280px) {
  .owner-digest-page .pixel-decision-card {
    min-height: 0;
    padding: 14px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .owner-digest-page .pixel-status {
    margin-bottom: 10px;
    padding-block: 5px;
  }

  .owner-digest-page .pixel-decision-card h2 {
    margin-bottom: 10px;
    font-size: 32px;
  }

  .owner-digest-page .pixel-decision-card > p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
  }

  .owner-digest-page .pixel-fact-grid {
    gap: 7px 10px;
    margin-bottom: 10px;
  }

  .owner-digest-page .pixel-fact {
    min-height: 50px;
    padding: 8px 10px;
  }

  .owner-digest-page .pixel-attention {
    gap: 8px 10px;
    margin-bottom: 10px;
    padding: 9px 10px;
  }
}

/* Short desktop windows cannot honor the fixed-workspace budget safely. Restore
   normal document flow so maximum-length owner content and actions stay reachable. */
@media (max-height: 700px) {
  body.pixel-app-shell:has(.owner-digest-main) {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .pixel-main.owner-digest-main,
  .owner-digest-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .owner-digest-page .pixel-decision-card {
    overflow-y: visible;
    scrollbar-gutter: auto;
  }

  .owner-digest-page > .pixel-bottom-grid:target,
  .owner-digest-page > .pixel-bottom-grid:has(:target) {
    display: grid;
    overflow: visible;
  }
}

.owner-digest-page .pixel-form label:has(textarea),
.owner-digest-page .pixel-form .pixel-boundary,
.owner-digest-page .pixel-form .pixel-checkbox,
.owner-digest-page .pixel-form button {
  grid-column: 1 / -1;
}

@media (max-width: 1279px) {
  body.pixel-app-shell:has(.owner-digest-main) {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .pixel-main.owner-digest-main,
  .owner-digest-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .owner-digest-page > .pixel-bottom-grid:target,
  .owner-digest-page > .pixel-bottom-grid:has(:target) {
    display: grid;
    overflow: visible;
  }
}

@media (max-width: 960px) {
  body.pixel-app-shell:has(.owner-digest-main) {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .pixel-main.owner-digest-main,
  .owner-digest-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .owner-digest-page > .pixel-bottom-grid:target,
  .owner-digest-page > .pixel-bottom-grid:has(:target) {
    display: grid;
    overflow: visible;
  }
}
