:root {
  --petrol: #12343b;
  --petrol-2: #1e4d5c;
  --bronze: #a67c52;
  --cream: #f7f4ee;
  --paper: #fffdf8;
  --section: #f2eee7;
  --section-2: #eef2f1;
  --ink: #152f38;
  --muted: #62747a;
  --line: #ded8cd;
  --ok: #1f7a4f;
  --warn: #b67a18;
  --danger: #b34537;
  --shadow: 0 18px 42px rgba(18, 52, 59, 0.12);
  font-family: "Noto Sans", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
}

button, input, select, textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: block;
}

.app-sidebar.is-retired {
  display: none;
}

body[data-app-mode="broker"] [data-view="aktivmonitor"],
body[data-app-mode="broker"] [data-view="begleiter"],
body[data-app-mode="broker"] #aktivmonitor,
body[data-app-mode="broker"] #begleiter {
  display: none;
}

body[data-app-mode="broker"] .mode-switch {
  display: none;
}

body[data-app-mode="broker"] #wertcockpit > :not(.object-header):not(.broker-overview) {
  display: none;
}

.broker-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.advisor-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.advisor-controls label {
  display: grid;
  gap: 4px;
  min-width: 220px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.advisor-controls select {
  min-height: 42px;
}

.broker-record-list {
  display: grid;
  gap: 10px;
}

.broker-record {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.broker-record.is-active {
  border-color: var(--petrol);
  box-shadow: inset 4px 0 0 var(--petrol);
}

.broker-record strong,
.broker-record span {
  display: block;
}

.broker-record small {
  color: var(--muted);
}

.broker-preview {
  display: grid;
  gap: 10px;
}

.broker-preview .summary-row {
  background: rgba(255, 255, 255, 0.68);
}

.broker-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.broker-actions button {
  width: 100%;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: var(--petrol);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-inline {
  color: var(--ink);
}

.brand-inline .brand-mark {
  background: var(--petrol);
  color: white;
}

.brand-inline small {
  color: var(--muted);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--petrol);
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-item {
  width: auto;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: center;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-item span {
  width: auto;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 900;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.sidebar-note {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #63d297;
  flex: 0 0 auto;
}

.app-main {
  padding: 24px clamp(18px, 3vw, 42px) 36px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}

.record-tools {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.record-tools label {
  min-width: min(360px, 100%);
  max-width: 420px;
}

.record-tools > *,
.record-tools select,
.nav-tabs,
.nav-tabs > * {
  min-width: 0;
}

.record-tools .btn-primary,
.record-tools .text-button {
  min-height: 42px;
}

.eyebrow {
  color: var(--bronze);
  margin: 0 0 7px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-family: "Montserrat", "Noto Sans", sans-serif;
  font-size: 34px;
  margin-bottom: 0;
}

h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.muted {
  color: var(--muted);
}

.mode-switch {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 4px;
}

.segmented {
  border: 0;
  min-height: 38px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segmented.is-active {
  background: var(--petrol);
  color: white;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.is-hidden {
  display: none !important;
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -4px 0 22px;
}

.dashboard-tab {
  border: 0;
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.dashboard-tab.is-active {
  background: var(--paper);
  color: var(--petrol);
  box-shadow: 0 4px 14px rgba(18, 52, 59, 0.08);
}

.object-header,
.panel,
.metric,
.guide-card,
.valuation-hero {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.object-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin-bottom: 18px;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  background: rgba(166, 124, 82, 0.14);
  color: #75502f;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

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

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 30px;
  font-family: "Montserrat", sans-serif;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.valuation-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  padding: 20px;
  margin-bottom: 18px;
  align-items: stretch;
}

.valuation-intro {
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 24px;
}

.valuation-intro h3 {
  max-width: 420px;
  font-size: 22px;
}

.valuation-intro .muted {
  max-width: 480px;
}

.map-card {
  min-height: 300px;
  overflow: hidden;
  background: #eef2ef;
  position: relative;
}

.map-grid {
  position: relative;
  height: 100%;
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.9) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(255,255,255,0.9) 1px, transparent 1px) 0 0 / 42px 42px,
    #eef2ef;
}

.map-road,
.map-zone,
.map-pin {
  position: absolute;
  display: block;
}

.map-road {
  height: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  transform-origin: left center;
}

.road-a { width: 78%; left: 8%; top: 28%; transform: rotate(11deg); }
.road-b { width: 62%; left: 19%; top: 65%; transform: rotate(-16deg); }
.road-c { width: 52%; left: 40%; top: 43%; transform: rotate(78deg); }
.road-d { width: 45%; left: 9%; top: 50%; transform: rotate(91deg); }

.map-zone {
  width: 18px;
  height: 58px;
  border-radius: 3px;
  opacity: 0.9;
}

.zone-good {
  background: #76b86f;
  left: 16%;
  top: 36%;
  box-shadow: 34px -18px #76b86f, 68px 11px #76b86f, 270px 62px #76b86f, 318px 18px #76b86f, 360px 74px #76b86f;
}

.zone-mid {
  background: #e5c64c;
  left: 38%;
  top: 32%;
  box-shadow: 32px 17px #e5c64c, 70px -10px #e5c64c, 122px 45px #e5c64c, 170px 10px #e5c64c;
}

.zone-watch {
  background: #de8c72;
  left: 24%;
  top: 70%;
  box-shadow: 44px 8px #de8c72, 86px -18px #de8c72;
}

.map-pin {
  width: 52px;
  height: 52px;
  left: 58%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 50% 0;
  background: #0f72bf;
  rotate: -45deg;
  box-shadow: 0 12px 28px rgba(15, 114, 191, 0.28);
}

.map-pin::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 17px;
  top: 17px;
  border-radius: 50%;
  background: white;
}

.valuation-panel,
.property-detail-panel {
  margin-bottom: 18px;
}

.value-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  text-align: center;
  margin: 20px 0 12px;
}

.value-band span,
.value-band small {
  display: block;
  color: var(--muted);
}

.value-band strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  margin: 4px 0;
}

.value-main strong {
  font-size: 34px;
  color: var(--petrol);
}

.value-scale {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7bb6dd, #0f72bf 48%, #82c39a);
  overflow: visible;
}

.value-scale span {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.42);
}

.value-scale strong {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 3px solid white;
  border-radius: 50%;
  background: var(--petrol);
  box-shadow: 0 4px 12px rgba(18, 52, 59, 0.22);
}

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

.detail-grid article {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.detail-grid span {
  color: var(--muted);
  font-size: 12px;
}

.detail-grid strong {
  font-size: 15px;
}

.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.insight-icon,
.advisor-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid #0f72bf;
  color: #0f72bf;
  font-weight: 900;
  border-radius: 50%;
}

.advisor-avatar {
  border: 0;
  background: var(--petrol);
  color: white;
  border-radius: 4px;
  font-size: 12px;
}

.teaser-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.mini-chart {
  height: 70px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 6px;
  padding: 8px 0;
}

.mini-chart span {
  display: block;
  min-height: 12px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #0f72bf, rgba(15, 114, 191, 0.18));
}

.mini-chart span:nth-child(1) { height: 38px; }
.mini-chart span:nth-child(2) { height: 48px; }
.mini-chart span:nth-child(3) { height: 28px; }
.mini-chart span:nth-child(4) { height: 52px; }
.mini-chart span:nth-child(5) { height: 58px; }
.mini-chart span:nth-child(6) { height: 64px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.split-wide {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
}

.panel {
  padding: 20px;
}

.sticky-panel {
  position: sticky;
  top: 28px;
}

.panel-wide {
  margin-top: 18px;
}

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

.timeline,
.offer-list,
.document-list,
.task-list,
.upload-log {
  display: grid;
  gap: 10px;
}

.timeline-item,
.offer-item,
.document-item,
.task-item,
.upload-item,
.activity-row {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
}

.initials {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--petrol);
  color: white;
  font-weight: 800;
}

.offer-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.document-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.document-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--petrol);
}

.attachment-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  min-width: 0;
  overflow: hidden;
}

.attachment-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  overflow: hidden;
}

.attachment-item img,
.attachment-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--section-2);
  max-width: 72px;
}

.attachment-icon {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--petrol);
}

@media (max-width: 760px) {
  .attachment-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .attachment-item .text-button {
    grid-column: 1 / -1;
  }
}

.progress-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--bronze) var(--progress, 0%), #ebe4d8 0);
  font-weight: 900;
}

.progress-ring span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.upload-box,
.feedback-form,
[data-property-form],
[data-dictation-form] {
  display: grid;
  gap: 14px;
}

label,
fieldset {
  display: grid;
  gap: 7px;
}

fieldset {
  border: 1px solid var(--line);
  padding: 14px;
}

.property-form fieldset {
  position: relative;
  border: 1px solid #d8d0c4;
  border-left: 5px solid rgba(166, 124, 82, 0.72);
  background: var(--section);
  padding: 18px;
}

.property-form fieldset:nth-of-type(even) {
  background: var(--section-2);
  border-left-color: rgba(30, 77, 92, 0.56);
}

.property-form legend {
  padding: 0 9px;
  color: var(--petrol);
  font-family: "Montserrat", "Noto Sans", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.intake-guide {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.intake-guide h3 {
  margin: 2px 0 4px;
}

.intake-progress {
  min-width: 76px;
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(30, 77, 92, 0.2);
  color: var(--petrol);
  font-weight: 900;
}

.intake-steps {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.intake-steps button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  background: white;
  color: var(--petrol);
  font-weight: 900;
  cursor: pointer;
}

.intake-steps button.is-active {
  background: var(--petrol);
  color: white;
  border-color: var(--petrol);
}

.property-form.is-guided fieldset {
  display: none;
}

.property-form.is-guided fieldset.is-active-step {
  display: block;
}

.intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.intake-actions .text-button,
.intake-actions .btn-primary {
  min-height: 46px;
  padding: 0 16px;
}

.voice-dock {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(30, 77, 92, 0.22);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 28px rgba(18, 52, 59, 0.12);
}

.voice-dock strong,
.voice-dock span {
  display: block;
}

.voice-dock span {
  color: var(--muted);
  font-size: 13px;
}

.voice-control {
  min-height: 48px;
  border: 0;
  background: var(--petrol);
  color: white;
  font-weight: 900;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.voice-control.is-recording {
  background: var(--danger);
}

fieldset label {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.form-grid label,
.property-form label {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.property-form label:has([name="firstName"]) { order: 1; }
.property-form label:has([name="lastName"]) { order: 2; }
.property-form label:has([name="email"]) { order: 3; }
.property-form label:has([name="phone"]) { order: 4; }
.property-form label:has([name="contactRole"]) { order: 5; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.choice-grid label {
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
}

.check-grid label {
  min-height: 46px;
  height: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-grid input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--petrol);
}

.subsection-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 18px 0 10px;
}

.subsection-head h4 {
  margin: 0;
  font-size: 15px;
}

.add-line-button,
.remove-line-button {
  min-height: 42px;
  padding: 0 12px;
}

.line-repeater {
  display: grid;
  gap: 12px;
}

.line-row {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.line-row__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.property-form textarea[name="modernizations"] {
  min-height: 240px;
}

.property-form input,
.property-form select,
.property-form textarea {
  background: rgba(255, 255, 255, 0.92);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cabfac;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 42px;
}

textarea {
  resize: vertical;
  overflow: hidden;
}

.btn-primary,
.text-button {
  border: 0;
  cursor: pointer;
}

.btn-primary {
  min-height: 44px;
  background: var(--bronze);
  color: white;
  font-weight: 800;
  padding: 0 18px;
  justify-self: start;
}

.text-button {
  background: transparent;
  color: var(--petrol-2);
  font-weight: 800;
  padding: 0;
}

.voice-button {
  justify-self: start;
}

.export-dialog {
  width: min(860px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.export-dialog::backdrop {
  background: rgba(18, 52, 59, 0.42);
}

.export-dialog form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.export-dialog textarea {
  min-height: 420px;
  font-family: Consolas, "Courier New", monospace;
  white-space: pre;
}

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

.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.upload-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.file-card {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 8px;
  align-content: start;
}

.file-card strong,
.file-card span {
  display: block;
}

.file-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.property-summary,
.next-list {
  display: grid;
  gap: 10px;
}

.summary-row,
.next-item {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.summary-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.summary-row strong {
  display: block;
}

.next-item {
  border-left: 5px solid var(--bronze);
  display: grid;
  gap: 6px;
}

.next-item span {
  justify-self: start;
  padding: 3px 7px;
  background: var(--section-2);
  color: var(--petrol-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.next-item strong {
  font-size: 13px;
  line-height: 1.35;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

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

.guide-card {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.guide-card__tag {
  color: var(--bronze);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.activity-table {
  display: grid;
  gap: 8px;
}

.activity-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: center;
}

.task-item {
  border-left: 5px solid var(--line);
}

.task-item[data-kind="green"] { border-left-color: var(--ok); }
.task-item[data-kind="yellow"] { border-left-color: var(--warn); }
.task-item[data-kind="red"] { border-left-color: var(--danger); }

.timeline.compact .timeline-item {
  grid-template-columns: 42px 1fr auto;
}

@media (max-width: 1220px) {
  .split-wide,
  .valuation-hero,
  .dashboard-card-grid,
  .dashboard-card-grid.three {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
  }

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

  .nav-tabs {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  .metric-grid,
  .split,
  .split-wide,
  .guide-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }

  .topbar,
  .object-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-row,
  .timeline-item,
  .document-item {
    grid-template-columns: 1fr;
  }

  .document-item input {
    justify-self: start;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .choice-grid,
  .upload-actions,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .record-tools {
    justify-content: flex-start;
  }

  .valuation-intro {
    min-height: 220px;
    padding: 18px;
  }

  .value-band,
  .insight-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .value-main strong {
    font-size: 28px;
  }
}

@media (min-width: 700px) and (max-width: 1180px) {
  .app-main {
    padding: 22px;
  }

  .topbar {
    gap: 14px;
  }

  .nav-tabs,
  .dashboard-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav-item,
  .dashboard-tab,
  .btn-primary,
  .text-button {
    min-height: 52px;
    padding-left: 16px;
    padding-right: 16px;
  }

  input,
  select,
  textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .check-grid,
  .upload-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-form fieldset {
    padding: 20px;
  }

  .record-tools {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto auto;
    align-items: end;
  }

  .record-tools label {
    max-width: none;
  }

  .split-wide,
  .valuation-hero,
  .dashboard-card-grid,
  .dashboard-card-grid.three {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }

  .export-dialog textarea {
    min-height: 52vh;
  }
}

@media (max-width: 560px) {
  .app-main {
    padding: 18px;
  }

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

  .nav-tabs {
    flex-wrap: nowrap;
  }

  .record-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .record-tools label {
    grid-column: 1 / -1;
    max-width: none;
  }

  h1 {
    font-size: 27px;
  }
}
