:root {
  --white: #ffffff;
  --cream: #faf8f3;
  --light: #f5f3ee;
  --gray-100: #ececec;
  --gray-300: #c9c9c9;
  --gray-500: #8a8a8a;
  --gray-700: #4a4a4a;
  --gray-900: #1a1a1a;
  --black: #0a0a0a;
  --gold: #d4af37;
  --gold-dark: #a8884a;
  --gold-light: #e2c98a;
  --bg: var(--white);
  --surface: var(--white);
  --text: var(--black);
  --muted: var(--gray-700);
  --line: #e5e0d6;
  --soft-line: #f0ece4;
  --ink: var(--gold-dark);
  --ink-dark: #6f5529;
  --blue: #315d70;
  --red: #9f2f2f;
  --amber: #9a6a16;
  --green: #245f4e;
  --green-bg: #eef7f2;
  --red-bg: #fff1f0;
  --amber-bg: #fff8e6;
  --shadow: 0 18px 45px rgba(10, 10, 10, .07);
  --shadow-soft: 0 10px 28px rgba(10, 10, 10, .045);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(250, 248, 243, .82) 0, rgba(255, 255, 255, 0) 340px),
    var(--bg);
  color: var(--text);
  font: 14px/1.48 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(212, 175, 55, .28);
  color: var(--black);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 12px 30px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: inline-grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--black);
}

.subbrand {
  display: block;
  margin-top: 3px;
  color: var(--gray-700);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav a,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--gray-700);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
}

nav a.active,
nav a:hover,
.button {
  color: var(--black);
  background: var(--light);
  border-color: var(--line);
}

nav a.active {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.property-switch select {
  min-height: 38px;
  max-width: 220px;
  padding: 8px 34px 8px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-weight: 700;
}

.layout {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px 28px 44px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 760px);
  align-items: start;
  gap: 24px;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--soft-line);
  margin-bottom: 18px;
}

.hero p {
  max-width: 760px;
}

.dashboard-hero {
  grid-template-columns: 1fr;
  gap: 16px;
}

.dashboard-hero p {
  max-width: 1040px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
  color: var(--black);
}

h1 {
  max-width: 920px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
}

h2 {
  font-size: 18px;
  font-weight: 760;
}

h3 {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-700);
}

p {
  margin: 7px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  align-items: center;
  max-width: 760px;
}

.actions.dashboard-actions {
  justify-content: flex-start;
  max-width: none;
  width: 100%;
}

.actions.dashboard-actions button {
  flex: 1 1 180px;
}

button,
.button {
  min-height: 39px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

button.primary {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  box-shadow: 0 9px 22px rgba(10, 10, 10, .14);
}

button.danger {
  border-color: #e8c0ba;
  color: var(--red);
  background: #fffafa;
}

button:hover,
.button:hover {
  border-color: var(--gold-dark);
  background: var(--cream);
  transform: translateY(-1px);
}

button.primary:hover {
  background: var(--gray-900);
  border-color: var(--gold-dark);
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.inline-actions {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.inline-actions + .inline-actions { margin-top: 8px; }
.inline-actions input { min-height: 34px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  gap: 14px;
  margin: 8px 0 20px;
}

.kpis article,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kpis article {
  position: relative;
  min-height: 112px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.kpis article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}

.kpis span,
.forecast-kpis span {
  color: var(--gray-700);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.kpis strong {
  display: block;
  margin-top: 10px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.grid.two {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .82fr);
  gap: 16px;
}

.panel {
  padding: 19px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.panel:nth-of-type(even) {
  background: linear-gradient(180deg, var(--white), rgba(250, 248, 243, .58));
}

.panel.narrow {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.ai-brief {
  margin-top: -4px;
  border-color: rgba(212, 175, 55, .42);
  background:
    linear-gradient(180deg, rgba(250, 248, 243, .82), rgba(255, 255, 255, .98)),
    var(--white);
}

.ai-brief-body {
  display: grid;
  gap: 9px;
  max-width: none;
}

.ai-brief-body h3 {
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
  color: var(--black);
  font-size: 13px;
  text-transform: none;
}

.ai-brief-body h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ai-brief-body p {
  margin: 0;
  color: var(--gray-700);
}

.ai-brief-body strong {
  color: var(--black);
  font-weight: 850;
}

.ai-brief-item {
  position: relative;
  padding-left: 18px;
}

.ai-brief-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 1px;
  background: var(--gold-dark);
}

.checks {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.check span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.check small {
  color: var(--gray-500);
  min-width: 64px;
  text-align: right;
}

.check b {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.check.good { background: var(--green-bg); }
.check.warn { background: var(--amber-bg); }
.check.bad { background: var(--red-bg); }
.check.bad b { color: var(--red); background: rgba(159, 47, 47, .08); }
.check.warn b { color: var(--amber); background: rgba(154, 106, 22, .10); }
.check.good b { color: var(--green); background: rgba(36, 95, 78, .10); }

.strategy-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.strategy-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--white);
}

.strategy-list strong {
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.forecast-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0 12px;
}

.forecast-kpis article {
  min-height: 88px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--cream);
}

.forecast-kpis strong {
  display: block;
  margin-top: 7px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.forecast-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.forecast-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.forecast-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.forecast-legend b {
  margin-left: auto;
  color: var(--black);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.forecast-legend .reserved { background: var(--green); }
.forecast-legend .predicted { background: var(--gold-dark); }
.forecast-legend .blocked { background: var(--gray-300); }

.forecast-chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 2px;
  padding: 12px 9px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(250, 248, 243, .92), rgba(255, 255, 255, .98)),
    repeating-linear-gradient(0deg, transparent, transparent 36px, rgba(201, 201, 201, .22) 37px);
  overflow: hidden;
  margin-bottom: 12px;
}

.forecast-bar {
  flex: 1;
  min-width: 3px;
  height: 100%;
  display: flex;
  align-items: end;
}

.forecast-bar span {
  display: block;
  width: 100%;
  height: var(--h);
  min-height: 6px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  opacity: .82;
}

.forecast-bar.reserved span {
  height: 100%;
  background: var(--green);
  opacity: .92;
}

.forecast-bar.blocked span {
  height: 100%;
  background: var(--gray-300);
  opacity: .48;
}

.forecast-table { margin-top: 10px; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1060px;
  background: var(--white);
}

.compact-table table { min-width: 920px; }

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--cream);
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

td strong {
  color: var(--black);
}

tbody tr:hover {
  background: rgba(250, 248, 243, .72);
}

tr.locked {
  color: var(--gray-500);
  background: #fbfbfa;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 11px;
  border: 1px solid transparent;
}

.pill.sellable { background: var(--green-bg); color: var(--green); border-color: #cfe7da; }
.pill.locked { background: var(--light); color: var(--gray-700); border-color: var(--line); }
.pill.watch { background: var(--amber-bg); color: var(--amber); border-color: #f1dfaa; }
.pill.danger { background: var(--red-bg); color: var(--red); border-color: #efc1bc; }

.cockpit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
  gap: 18px;
  align-items: end;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--soft-line);
  margin-bottom: 14px;
}

.cockpit-hero h1 {
  font-size: 34px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-actions button {
  min-width: 0;
  padding-inline: 10px;
}

.filter-bar {
  margin: 0 0 15px;
  padding: 12px;
  border: 1px solid #dce7eb;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdfe, var(--white));
  box-shadow: var(--shadow-soft);
}

.filter-bar form {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(5, minmax(132px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.filter-bar label {
  gap: 5px;
  color: var(--gray-700);
  font-size: 11px;
  text-transform: uppercase;
}

.filter-bar select {
  min-height: 38px;
  background: var(--white);
}

.filter-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
}

.owner-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.owner-strip article {
  min-height: 104px;
  padding: 14px;
  border: 1px solid #dce7eb;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.owner-strip span,
.owner-strip small,
.cockpit-view small,
.decision-card small,
.decision-meta {
  color: var(--gray-700);
  font-size: 12px;
}

.owner-strip span {
  display: block;
  font-weight: 850;
  text-transform: uppercase;
}

.owner-strip strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  overflow-wrap: anywhere;
}

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

.cockpit-view {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dce7eb;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 252, 253, .92)),
    var(--white);
  box-shadow: var(--shadow-soft);
}

.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.view-head a {
  color: var(--blue);
  text-transform: none;
}

.cockpit-view > strong {
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 2px;
}

.mini-calendar span {
  min-height: 25px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 850;
  border: 1px solid transparent;
}

.mini-calendar .up { background: var(--green-bg); color: var(--green); border-color: #cfe7da; }
.mini-calendar .down { background: var(--red-bg); color: var(--red); border-color: #efc1bc; }
.mini-calendar .flat { background: #eef5f8; color: var(--blue); border-color: #d3e3e9; }
.mini-calendar .locked { background: var(--light); color: var(--gray-500); border-color: var(--line); }

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef1;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.compact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.decision-card {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid #dce7eb;
  border-radius: 8px;
  background: var(--white);
}

.decision-card-head,
.price-row,
.decision-meta {
  display: grid;
  gap: 8px;
}

.decision-card-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.decision-card-head strong {
  display: block;
  font-size: 16px;
}

.price-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-row span {
  min-height: 58px;
  padding: 10px;
  border-radius: 7px;
  background: #f8fbfc;
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.price-row b {
  display: block;
  margin-top: 5px;
  color: var(--black);
  font-size: 17px;
  overflow-wrap: anywhere;
  text-transform: none;
}

.decision-card p {
  min-height: 42px;
  margin: 0;
}

.decision-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-meta span {
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--light);
  overflow-wrap: anywhere;
}

.owner-gain {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-left: 3px solid var(--green);
  background: #f6fbf8;
  border-radius: 7px;
}

.owner-gain strong {
  color: var(--green);
}

.business-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr);
  gap: 16px;
  margin-bottom: 16px;
}

.strategy-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.strategy-card.primary-strategy {
  border-color: #cfe0e7;
  background: linear-gradient(180deg, #fbfdfe, var(--white));
}

.strategy-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--gray-700);
}

.business-kpis {
  margin: 0;
}

.business-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.business-facts span {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid #dce7eb;
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 800;
}

.business-facts b {
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0 14px;
}

.tag-cloud span {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid #d3e3e9;
  background: #f8fbfc;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.business-list {
  display: grid;
  gap: 9px;
}

.business-list p {
  margin: 0;
  padding: 11px 12px;
  border-left: 3px solid var(--blue);
  border-radius: 7px;
  background: #f8fbfc;
}

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

.pricing-options article {
  min-height: 185px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 15px;
  border: 1px solid #dce7eb;
  border-radius: 8px;
  background: var(--white);
}

.pricing-options article.recommended {
  border-color: #cfe7da;
  background: #f6fbf8;
}

.pricing-options span {
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-options strong {
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.08;
}

.pricing-options small {
  color: var(--gray-700);
}

.settings-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--gray-900);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  font: inherit;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}

input[readonly] {
  background: var(--light);
  color: var(--gray-700);
}

textarea { resize: vertical; }

.row2,
.row3 {
  display: grid;
  gap: 12px;
}

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

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

.owner-form { margin-top: 16px; }
.table-actions { margin-top: 12px; }

.inline-edit {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  gap: 6px;
  min-width: 135px;
}

.inline-edit input { min-height: 34px; }
.inline-edit button { min-height: 34px; padding: 6px 10px; }

.toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--cream);
}

.toggle input {
  width: auto;
  min-height: auto;
  accent-color: var(--gold-dark);
}

.notice {
  padding: 13px 14px;
  border-radius: 7px;
  background: var(--cream);
  color: var(--gray-900);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

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

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.timeline article {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

time {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

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

.flash {
  padding: 13px 15px;
  border-radius: 7px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.flash.success { background: var(--green-bg); color: var(--green); border-color: #cfe7da; }
.flash.error { background: var(--red-bg); color: var(--red); border-color: #efc1bc; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, .86), rgba(26, 26, 26, .94)),
    linear-gradient(180deg, var(--cream), var(--white));
}

.login-panel {
  width: min(440px, 100%);
  padding: 31px;
  background: var(--white);
  border: 1px solid rgba(212, 175, 55, .32);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.login-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: var(--white);
}

.login-panel h1 {
  font-size: 34px;
}

.login-panel form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

small {
  color: var(--gray-500);
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  nav,
  .actions {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .cockpit-hero,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .filter-bar form,
  .owner-strip,
  .cockpit-grid,
  .decision-cards,
  .business-grid,
  .pricing-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .forecast-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px 14px;
  }

  .layout {
    padding: 16px 14px 30px;
  }

  .brand-lockup {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-mark img {
    width: 35px;
    height: 35px;
  }

  .brand {
    font-size: 19px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  nav a,
  nav .button {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }

  .property-switch,
  .property-switch select {
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: 28px;
  }

  .kpis,
  .owner-strip,
  .cockpit-grid,
  .decision-cards,
  .business-grid,
  .business-facts,
  .pricing-options,
  .filter-bar form,
  .row2,
  .row3,
  .timeline article,
  .forecast-kpis {
    grid-template-columns: 1fr;
  }

  .quick-actions,
  .price-row,
  .decision-meta,
  .filter-actions {
    grid-template-columns: 1fr;
  }

  .cockpit-hero h1 {
    font-size: 27px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .actions button,
  .actions .button {
    width: 100%;
  }

  .panel {
    padding: 15px;
  }

  .section-head {
    display: grid;
  }
}

.manual-date-choice { display: flex; align-items: center; white-space: nowrap; }
.manual-date-choice input { width: 18px; min-height: 18px; padding: 0; flex: 0 0 18px; }
