@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  font-family: "Golos Text", system-ui, sans-serif;
  background: #f3f6fb;
  color: #14243b;
  --line: #dde5f1;
  --muted: #4f6078;
  --blue: #2058d6;
}
body { grid-template-columns: 220px minmax(0, 1fr); }
aside {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  background: #111c2e;
  color: #b9c8db;
  padding: 25px 14px 18px;
  gap: 28px;
}
.brand { font-size: 24px; font-weight: 720; letter-spacing: -.04em; }
.logo { background: #356bf2; border-radius: 11px; box-shadow: 0 3px 10px #0b2f9766; }
.nav { gap: 4px; overflow-y: auto; }
.nav button { position: relative; min-height: 43px; padding: 9px 11px; font-weight: 550; border-radius: 8px; }
.nav button:hover { background: #1d2e48; }
.nav button[aria-current="true"] { background: #233b65; color: #f7faff; font-weight: 650; }
.nav button[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #77a4ff;
  border-radius: 3px;
}
.nav button[aria-current="true"] svg { color: #a9c7ff; }
.profile { border-top-color: #2c3d56; padding-top: 16px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.estate-workspace { min-width: 0; }
.estate-workspace > header { height: 57px; padding-inline: clamp(16px, 2.8vw, 42px); font-weight: 550; }
.demo { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; color: #354a66; font-size: 13px; }
.demo i { height: 6px; width: 6px; border-radius: 50%; background: #3a6be1; }
main { max-width: 1560px; padding: 28px clamp(16px, 2.8vw, 42px) 38px; }
.heading { gap: 17px; margin-bottom: 19px; }
h1 { font-size: clamp(28px, 3.3vw, 41px); line-height: 1.08; letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; line-height: 1.2; }
h3 { letter-spacing: -.012em; }
.heading p { font-size: 15px; line-height: 1.45; }
.filters { padding: 6px; width: fit-content; background: #e8eef7; border-radius: 11px; gap: 5px; }
select, .filters select, .floor-task-fields select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23536581' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
  padding-right: 28px;
}
select, .light, .primary { border-radius: 9px; font-weight: 560; }
.primary { box-shadow: 0 2px 4px #123d9b20; }
.primary:hover { background: #1a4bc1; border-color: #1a4bc1; }
.card { border-radius: 15px; padding: clamp(14px, 1.6vw, 21px); box-shadow: 0 2px 3px #172c5010; }
.sub { line-height: 1.45; }
.value, .overview-value, .formula, td, .floor-delta, .room-highlights strong { font-variant-numeric: tabular-nums; }
.value { font-size: clamp(20px, 2.3vw, 31px); }
.pill { border-radius: 99px; padding: 4px 9px; font-weight: 600; }
th { font-weight: 600; border-top: 1px solid #ecf1f7; }
tbody tr:hover td { background-color: #f7faff; }
tbody tr:hover td[style] { background-color: unset; }
.footer { margin-top: 21px; border-top: 1px solid var(--line); padding-top: 11px; }
.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 16px;
  color: #f8fbff;
  background: radial-gradient(ellipse at 90% 7%, #203e71, transparent 64%), #14243d;
}
.overview-hero h2 { color: #cbdaee; font-size: 15px; font-weight: 560; letter-spacing: 0; }
.overview-value { font-size: clamp(31px, 5.7vw, 65px); font-weight: 750; line-height: 1.08; letter-spacing: -.055em; margin: 10px 0; }
.overview-comparison { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #c2d2ea; font-size: 13px; }
.overview-comparison strong { border-radius: 7px; background: #345787; color: white; padding: 4px 6px; font-variant-numeric: tabular-nums; }

.floor-layout { grid-template-columns: minmax(0, 1.92fr) minmax(285px, 1fr); }
.floor-plan-card { padding: 15px; }
.floor-details { padding: 15px; }
.floor-tour-card { border-top: 1px solid #bed4fb; background: #f9fbff; }
.floor-tour-card .floor-tour-launch h2 { font-size: 18px; }
.floor-kpis .metric { box-shadow: none; }
.floor-kpis .value { color: #143254; }
.floor-scroll {
  min-height: 160px;
  background: #152338;
  border-color: #243850;
  border-radius: 12px;
  scrollbar-color: #567398 #182a41;
}
.floor-outline { fill: #263b54; stroke: #8da3bd; }
.floor-grid path { stroke: #9bb3d2; stroke-opacity: .52; }
.floor-grid text { fill: #e1ebfa; opacity: .9; }
.floor-columns { fill: #d5deea; stroke: #465f7b; }
.floor-map-pdf { background: #f3f7fc; }
.floor-room-shape { transition: fill 180ms ease, opacity 180ms ease, stroke 180ms ease; }
.floor-zone text { transition: opacity 180ms ease; }
.floor-map-focused .floor-zone:not(.floor-zone-selected):not(:hover):not(:focus-visible) .floor-room-shape { opacity: .76; }
.floor-map-focused .floor-zone:not(.floor-zone-selected):not(:hover):not(:focus-visible) text { opacity: .8; }
.floor-zone-selected .floor-room-shape { stroke: #2760e2; stroke-width: 7; }
@keyframes floor-layer-enter { from { opacity: .73; } to { opacity: 1; } }
.floor-map-forecast .floor-zone { animation: floor-layer-enter 180ms ease-out; }
.room-highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin-top: 11px; }
.room-highlights > div { display: grid; align-content: start; gap: 4px; background: #edf3fb; border-radius: 7px; padding: 7px 5px; }
.room-highlights .sub { font-size: 12px; }
.room-highlights strong { font-size: clamp(12px, 1.12vw, 16px); white-space: nowrap; letter-spacing: -.02em; }
.floor-effect-blue { color: #194ebf; }
.floor-detail-block h3 { font-weight: 650; }

.review-card { border-top: 1px solid var(--line); }
.review-chart-wrap { background: #f6f9fd; }
.review-month[aria-pressed="true"] { background: #e4edff; border-color: #9abbfa; }
.review-month[aria-pressed="true"] .review-bar i { background: #245ee5; }
.review-month[aria-pressed="true"].review-negative .review-bar i { background: #167558; }
.review-detail { background: #fff; border-left: 3px solid #a3bdfa; box-shadow: 0 2px 8px #1d3c7010; }
.review-selected { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.review-total strong { color: #142d56; }
@media (min-width: 1100px) {
  .review-breakdown { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 10px 16px; align-items: start; }
  .review-breakdown > div:first-child { grid-column: 1; }
  .review-factors { grid-column: 1; }
  .review-detail { grid-column: 2; grid-row: 1 / span 2; }
}

.task-workspace { display: grid; grid-template-columns: minmax(245px, .86fr) minmax(0, 1.36fr); gap: 16px; align-items: start; }
.task-workspace .floor-task { margin: 0; background: #fff; border-color: var(--line); border-radius: 15px; box-shadow: 0 2px 3px #172c5010; }
.task-workspace .floor-task > summary { padding: 15px 19px; }
.task-workspace .floor-task-content { padding: 16px 19px; }
.task-workspace .floor-task-metrics div { background: #f3f7fd; }
.task-queue-item { padding: 13px; border: 1px solid #c4d7fa; border-left: 3px solid #356be7; border-radius: 9px; background: #f3f7ff; }
.task-queue-name { display: block; padding: 0; border: 0; background: none; color: #1648ac; font-size: 16px; font-weight: 650; text-align: left; margin-bottom: 4px; }
.task-queue-name:hover { text-decoration: underline; }
.task-queue-status { margin-top: 9px; }
.task-queue-meta { display: grid; gap: 9px; margin: 10px 0 0; }
.task-queue-meta > div { border-top: 1px solid #dce6f7; padding-top: 6px; display: grid; gap: 2px; }
.task-queue-meta dt { color: var(--muted); font-size: 13px; }
.task-queue-meta dd { margin: 0; font-weight: 610; font-size: 14px; }

@media (max-width: 1080px) { body { grid-template-columns: 186px minmax(0, 1fr); } }
@media (max-width: 1050px) {
  .floor-layout { grid-template-columns: minmax(0, 1fr); }
  .overview-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { display: block; }
  aside { position: static; height: auto; padding: 11px 13px; gap: 8px; }
  .nav { overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; }
  .nav button { min-height: 37px; padding: 8px 9px; font-size: 14px; }
  .estate-workspace > header { height: 44px; }
  main { padding-top: 18px; }
  .task-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .floor-plan-card, .floor-details { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .floor-room-shape, .floor-zone text { transition: none; }
  .floor-map-forecast .floor-zone { animation: none; }
}

aside {
  background: linear-gradient(164deg, #0b172c, #153b61 78%, #10263e);
}
.nav button {
  color: #e2ecfa;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav button:hover { background: #accbf526; }
.nav button[aria-current="true"] {
  background: #f2f6fb;
  color: #152b49;
  box-shadow: 0 2px 8px #050f2429;
}
.nav button[aria-current="true"]::before { content: none; }
.nav button[aria-current="true"] svg { color: #23446d; }

@media (min-width: 761px) {
  aside {
    background:
      linear-gradient(180deg, #08172e 0%, #092445 28%, #09294ae8 43%, #09294a25 61%, #062c5140 79%, #05162cc7 100%),
      radial-gradient(ellipse at 107% 49%, #158f9a6b, transparent 44%),
      url("images/sidebar-waterfront.webp") 51% bottom / auto 69% no-repeat,
      #09213d;
  }
  .profile {
    border-top: 1px solid #a8c4e44d;
    padding: 13px 7px 0;
    background: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav button { transition: none; }
}
