@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
:root {
  color-scheme: only light;
  --bg: #f5f6f8;
  --surface: #fff;
  --surface-alt: #f0f2f4;
  --text: #242c3c;
  --muted: #808693;
  --line: #e6e8ed;
  --accent: #7961bb;
  --accent-soft: #efebf8;
  --lime: #c3ef68;
  --lime-ink: #283a0c;
  --sidebar: #191f2e;
  --plan-fill: #f5f1e8;
  --plan-wall: #697264;
  --shadow: 0 16px 55px #1720350a;
  --green: #487852;
  --danger: #b85847;
}
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #141924;
  --surface: #1c2331;
  --surface-alt: #252d3b;
  --text: #edf0f5;
  --muted: #a1aabd;
  --line: #333c4d;
  --accent: #bfa0ff;
  --accent-soft: #332d49;
  --sidebar: #0e1320;
  --plan-fill: #2c302e;
  --plan-wall: #a7b39c;
  --shadow: 0 16px 55px #0002;
  --green: #a3d7ab;
  --danger: #f0a491;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  background: none;
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: -0.04em;
}
h1 {
  font-size: 32px;
  font-weight: 750;
}
h2 {
  font-size: 21px;
  font-weight: 700;
}
h3 {
  font-size: 16px;
  font-weight: 750;
}
p {
  line-height: 1.8;
  color: var(--muted);
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.done {
  text-decoration: line-through;
  opacity: 0.55;
}
.spacer {
  flex: 1;
}
.wide {
  width: 100%;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 15px;
  background: var(--lime);
  color: #1b2430;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
hr {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 22px 0;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
.btn {
  padding: 10px 16px;
}
.icon-btn {
  width: 38px;
  min-height: 38px;
  padding: 7px;
}
.btn:hover,
.icon-btn:hover {
  background: var(--surface-alt);
}
.btn.primary {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}
.btn.primary:hover {
  background: #b4e752;
  transform: translateY(-1px);
}
.btn.outline {
  border-color: var(--line);
  background: var(--surface);
}
.btn.outline:hover {
  border-color: var(--accent);
}
.btn.quiet {
  padding-inline: 8px;
}
.btn.big {
  min-height: 51px;
  padding: 15px 23px;
  font-size: 13px;
}
.btn.danger {
  color: var(--danger);
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9bb859;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #9bb85912;
  flex-shrink: 0;
}
.badge {
  font-size: 10px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 5px;
  white-space: nowrap;
  font-weight: 650;
}
.badge.green {
  background: #e7f3e8;
  color: #4c8057;
}
.badge.violet {
  background: #eee9fa;
  color: #8164b3;
}
.badge.peach {
  background: #f9eee3;
  color: #af8050;
}
.badge.blue {
  background: #e7f1f8;
  color: #6387a2;
}
[data-theme='dark'] .badge.green {
  background: #293c30;
  color: #acdbb4;
}
[data-theme='dark'] .badge.violet {
  background: #383049;
  color: #c9b1ee;
}
[data-theme='dark'] .badge.peach {
  background: #40362d;
  color: #e2bb94;
}
.avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5eadc;
  color: #566849;
  font-size: 11px;
  font-weight: 750;
  flex-shrink: 0;
}
.avatar.violet {
  background: #eee7f7;
  color: #907ba8;
}
.avatar.peach {
  background: #f5e7d6;
  color: #b49262;
}
.avatar.tiny {
  width: 23px;
  height: 23px;
  font-size: 8px;
}
.avatar.small {
  width: 31px;
  height: 31px;
  font-size: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  line-height: 1.2;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand > span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand b {
  font-size: 20px;
  margin-left: 4px;
  font-weight: 800;
}
.brand-dot {
  color: var(--accent);
}
.brand small {
  display: block;
  font-weight: 450;
  font-size: 8px;
  letter-spacing: 0.4px;
  margin-top: 5px;
  color: var(--muted);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 27px 0 16px;
}
.section-heading:first-child {
  margin-top: 0;
}
.section-heading h2 {
  font-size: 19px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent);
  margin: 18px 0;
}
.notice p {
  font-size: 12px;
  margin-top: 4px;
}
.notice .icon {
  margin-top: 2px;
}
.notice b {
  font-size: 13px;
}
.notice.small {
  align-items: center;
  padding: 12px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 15px 0;
  color: var(--muted);
  font-size: 12px;
}
.field > span {
  font-weight: 650;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 41px;
  padding: 9px 12px;
  min-width: 0;
  font-size: 12px;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
input::placeholder {
  color: var(--muted);
}
select {
  max-width: 100%;
}
.two-fields,
.three-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.three-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 13px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}
.check-list .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-top: 2px;
}
.check-list.compact li {
  font-size: 12px;
  color: var(--muted);
}
.text-link {
  color: var(--accent);
  font-size: 12px;
  text-align: left;
  padding: 0;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 3px;
  margin-right: 7px;
}
.dot.violet {
  background: #aa90d4;
}
.dot.peach {
  background: #e7b694;
}
.dot.yellow {
  background: #dcb25a;
}
.direction-symbol {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.direction-symbol.peach {
  background: #f6e7db;
  color: #bc8e6f;
}
.direction-symbol.yellow {
  background: #fcf2ce;
  color: #ba984a;
}
.direction-symbol.blue {
  background: #e4eff7;
  color: #7296b0;
}
.direction-symbol.green {
  background: #e5efe5;
  color: #719174;
}
.floorplan {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--plan-wall);
}
.building-art {
  display: block;
  width: 100%;
  height: 100%;
}
/* Public website */
.site {
  background: var(--surface);
  overflow: clip;
}
.site-nav {
  max-width: 1440px;
  margin: auto;
  padding: 25px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.site-nav nav {
  display: flex;
  gap: 25px;
}
.site-nav nav button {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
}
.site-nav nav button:hover {
  color: var(--accent);
}
.hero {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 77px 50px 94px;
  min-height: 650px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(40px, 3.9vw, 61px);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -0.06em;
  margin: 24px 0;
}
.hero h1 span {
  color: var(--accent);
}
.hero-copy > p {
  font-size: 16px;
  line-height: 1.9;
  max-width: 475px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-foot {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  max-width: 550px;
}
.hero-foot span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
}
.hero-foot .icon {
  width: 15px;
}
.hero-visual {
  position: relative;
  min-width: 0;
  padding: 38px 0 55px;
}
.hero-orbit {
  position: absolute;
  inset: 0 -30px -30px -30px;
  background: radial-gradient(ellipse at center, #e7e2f54f 10%, #e7e2f500 68%);
}
.hero-window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 60px #37305114;
  transform: perspective(1500px) rotateY(-7deg) rotateX(3deg) rotateZ(1deg);
  overflow: hidden;
}
.mock-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}
.mock-title .badge {
  font-size: 8px;
}
.window-dots {
  font-size: 8px;
  letter-spacing: 3px;
  color: #b5b8bf;
}
.mock-layout {
  display: grid;
  grid-template-columns: 40px 1fr 133px;
  min-height: 325px;
}
.mock-layout aside {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-direction: column;
  padding-top: 20px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}
.mock-layout aside .icon {
  width: 16px;
}
.mock-layout aside .icon:first-child {
  color: var(--accent);
}
.mock-plan {
  min-width: 0;
  background: var(--bg);
}
.mock-plan .floorplan {
  min-height: 325px;
}
.mock-properties {
  padding: 20px 13px;
  border-left: 1px solid var(--line);
}
.mock-properties small {
  font-size: 8px;
  color: var(--muted);
}
.mock-properties h3 {
  font-size: 13px;
  margin: 5px 0 13px;
}
.mock-properties > b {
  font-size: 26px;
}
.mock-properties > b small {
  font-size: 12px;
}
.mock-properties p {
  font-size: 9px;
  margin-top: 8px;
}
.mock-rule {
  border-top: 1px solid var(--line);
  margin: 15px 0;
}
.mock-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 15px;
  font-size: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.mock-footer .icon {
  width: 12px;
  color: var(--green);
}
.mock-footer span {
  margin-left: auto;
}
.floating-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  position: absolute;
  bottom: 17px;
  left: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px #30353a12;
  border-radius: 10px;
  padding: 17px 21px;
}
.floating-metric > .icon {
  width: 30px;
  height: 30px;
  padding: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 7px;
}
.floating-metric small,
.floating-metric strong,
.floating-metric span:not(.badge) {
  display: block;
}
.floating-metric small {
  font-size: 9px;
  color: var(--muted);
}
.floating-metric strong {
  font-size: 21px;
  margin: 3px 0;
}
.floating-metric span:not(.badge) {
  font-size: 8px;
  color: var(--muted);
}
.floating-metric .badge {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 8px;
}
.floating-note {
  position: absolute;
  top: 0;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 16px;
  box-shadow: 0 9px 30px #31303a0a;
  font-size: 9px;
  color: var(--muted);
}
.floating-note b {
  color: var(--text);
}
.floating-note .icon {
  color: var(--accent);
}
.site-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 27px 40px;
  border-block: 1px solid var(--line);
  flex-wrap: wrap;
}
.site-strip > span {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
  max-width: 108px;
}
.site-strip button {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
}
.site-strip .icon {
  color: var(--muted);
}
.site-section,
.direction-section,
.subscription,
.site-cta {
  padding: 90px 50px;
  max-width: 1340px;
  margin: auto;
}
.section-intro h2 {
  font-size: 36px;
  line-height: 1.25;
}
.section-intro > p {
  max-width: 550px;
  margin-top: 20px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 34px;
}
.feature-top .icon {
  width: 27px;
  height: 27px;
  color: var(--accent);
}
.feature-top > span {
  font-size: 10px;
}
.feature-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 13px;
}
.direction-section {
  border-radius: 25px;
  background: var(--bg);
  padding-top: 58px;
  padding-bottom: 58px;
  max-width: 1240px;
}
.direction-tabs {
  display: flex;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.direction-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  background: var(--surface);
}
.direction-tabs button.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}
.direction-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}
.direction-showcase h3 {
  font-size: 28px;
  margin: 22px 0 14px;
  max-width: 390px;
}
.direction-showcase p {
  max-width: 460px;
}
.direction-art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  height: 410px;
}
.drawing-label {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 9px;
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.steps article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.steps article > span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 25px;
}
.steps h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.steps p {
  font-size: 12px;
}
.offline-banner {
  margin-top: 60px;
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.offline-banner > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 5px 10px;
}
.offline-banner > div > .icon {
  grid-row: 1/3;
  width: 27px;
  height: 27px;
  color: var(--accent);
}
.offline-banner p {
  font-size: 12px;
  max-width: 700px;
}
.subscription {
  background: var(--sidebar);
  color: #eef0f5;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  max-width: 1240px;
  padding: 60px;
}
.subscription h2 {
  font-size: 39px;
  line-height: 1.2;
  margin-bottom: 23px;
}
.subscription p {
  font-size: 13px;
  color: #a6afc0;
}
.subscription .eyebrow {
  color: #a6afc0;
}
.subscription-card {
  padding: 27px;
  border: 1px solid #414853;
  border-radius: 12px;
  background: #ffffff05;
}
.subscription-card small {
  display: block;
  color: #929bab;
  font-size: 9px;
  margin-top: 13px;
}
.subscription-card .check-list {
  margin-block: 22px;
}
.subscription-card .check-list li {
  font-size: 12px;
}
.subscription-card .icon {
  color: var(--lime);
}
.subscription-card .btn .icon {
  color: var(--lime-ink);
}
.site-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.site-cta h2 {
  font-size: 36px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 50px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: auto;
}
.site-footer > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.site-footer > small {
  font-size: 10px;
  flex-basis: 100%;
  color: var(--muted);
}
/* Entry */
.entry {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 45% 55%;
  background: var(--surface);
}
.entry > aside {
  background: #191f2e;
  color: #f3f4f8;
  padding: 45px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.entry > aside .brand small {
  color: #a6afc0;
}
.entry-message {
  margin: 65px 0;
}
.entry-message h1 {
  font-size: clamp(30px, 3.5vw, 51px);
  line-height: 1.24;
}
.entry-message h1 em {
  font-style: normal;
  color: var(--lime);
}
.entry-message .building-art {
  height: 280px;
  margin: 25px 0;
}
.entry-message p {
  color: #a6afc0;
  font-size: 12px;
}
.entry > aside > small {
  color: #7f899a;
  font-size: 10px;
}
.entry main {
  padding: 35px 45px;
}
.entry-top {
  display: flex;
  justify-content: space-between;
}
.entry-form {
  max-width: 420px;
  margin: 90px auto 40px;
}
.entry-form h1 {
  font-size: 34px;
  margin: 14px 0;
}
.entry-form > p {
  font-size: 13px;
}
.company-stamp {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  margin: 28px 0 18px;
}
.company-stamp > div {
  flex: 1;
}
.company-stamp small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.company-stamp > .icon {
  width: 28px;
  height: 28px;
  color: var(--muted);
}
.role-options {
  display: grid;
  gap: 9px;
  margin: 18px 0 24px;
}
.role-option {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 9px;
  cursor: pointer;
}
.role-option:has(:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.role-option b,
.role-option small {
  display: block;
}
.role-option b {
  font-size: 12px;
}
.role-option small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.entry-note {
  font-size: 10px;
  display: block;
  color: var(--muted);
  margin-top: 18px;
  text-align: center;
}
/* Cabinet */
.workspace {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
.sidebar-backdrop { display: none; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: var(--sidebar);
  color: #9ea7b9;
  padding: 28px 18px 15px;
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #ffffff30 transparent;
}
.sidebar .brand {
  color: #f3f5f9;
  gap: 8px;
}
.sidebar .brand img {
  width: 32px;
  height: 32px;
}
.sidebar .brand > span {
  font-size: 14px;
}
.sidebar .brand b {
  font-size: 17px;
}
.sidebar .brand-dot {
  color: var(--lime);
}
.workspace-name {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid #ffffff0f;
  margin: 22px 0 20px;
}
.company-avatar {
  width: 31px;
  height: 31px;
  flex: none;
  border: 1px solid #ffffff25;
  border-radius: 8px;
  color: #dde0e7;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.workspace-name b,
.workspace-name small {
  display: block;
}
.workspace-name b {
  font-size: 12px;
  color: #d6dbe5;
}
.workspace-name small {
  font-size: 9px;
  margin-top: 3px;
  color: #768096;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin: 0 10px 10px;
}
.sidebar .nav-caption {
  color: #616e87;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.5;
}
.nav-link .icon {
  width: 17px;
  height: 17px;
  opacity: 0.9;
}
.nav-link small {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: #ffffff10;
  font-size: 9px;
}
.nav-link:hover {
  background: #ffffff06;
  color: #fff;
}
.nav-link.active {
  background: #c3ef6814;
  color: #c3ef68;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.sidebar-bottom > .nav-link {
  font-size: 11px;
  padding: 10px 12px;
}
.sidebar-prototype {
  border: 1px solid #ffffff10;
  border-radius: 8px;
  margin: 20px 0 15px;
  padding: 12px 9px;
  font-size: 7px;
  letter-spacing: 0.07em;
}
.sidebar-prototype .live-dot {
  width: 4px;
  height: 4px;
  margin-right: 5px;
}
.sidebar-prototype p {
  font-size: 9px;
  letter-spacing: 0;
  margin: 5px 0 0 13px;
  color: #7e899e;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 14px 2px 0;
  border-top: 1px solid #ffffff0f;
  width: 100%;
}
.profile .avatar {
  width: 29px;
  height: 29px;
  background: #35432d;
  color: #c9daa9;
  font-size: 10px;
}
.profile b,
.profile small {
  display: block;
}
.profile b {
  font-size: 10px;
  color: #d0d7e3;
}
.profile small {
  font-size: 8px;
  color: #7c889c;
  margin-top: 3px;
}
.profile > .icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
}
.workspace-body {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 73px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
}
.breadcrumb b {
  font-weight: 600;
  color: var(--text);
}
.topbar .actions {
  gap: 14px;
  flex-wrap: nowrap;
}
.topbar .btn {
  font-size: 10px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  border-right: 1px solid var(--line);
  padding: 0 20px 0 0;
}
.search-trigger .icon {
  width: 15px;
}
.search-trigger kbd {
  border: 1px solid var(--line);
  padding: 0 5px;
  font-size: 10px;
  border-radius: 3px;
  margin-left: 15px;
}
.save-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
}
.save-state .icon {
  width: 13px;
  height: 13px;
  color: var(--green);
}
.mobile-menu {
  display: none;
}
.main {
  padding: 32px;
  max-width: 1680px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-head .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
.page-head h1 {
  font-size: 29px;
}
.page-head p {
  font-size: 12px;
  margin-top: 9px;
}
.greeting-dot {
  color: var(--accent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 30px;
}
.stat {
  padding: 21px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stat > span {
  font-size: 11px;
  color: var(--muted);
}
.stat > b {
  font-size: 36px;
  letter-spacing: -0.05em;
  line-height: 1.3;
  margin: 12px 0 16px;
}
.stat > b.money-stat {
  font-size: 28px;
  white-space: nowrap;
  letter-spacing: -0.045em;
  margin-block: 18px;
}
.stat small {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat small .icon {
  width: 12px;
  height: 12px;
}
.stat.accent-stat {
  background: var(--accent-soft);
  border-color: transparent;
}
.stat.accent-stat > b {
  color: var(--accent);
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 25px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.projects-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.project-art {
  height: 185px;
  position: relative;
  background: #edf0ec;
  overflow: hidden;
}
.project-art.violet {
  background: #ebe9f0;
}
.project-art.peach {
  background: #f0ece7;
}
.project-art.blue {
  background: #e9eef0;
}
.project-art.green {
  background: #edf0ea;
}
.project-art .floorplan {
  position: relative;
  height: 250px;
  top: -27px;
  --plan-fill: #eeebe1;
  --plan-wall: #859081;
  --surface: #f6f4ef;
  --text: #36423b;
  --muted: #859081;
  transform: rotate(-5deg) scale(0.9);
}
.project-art .building-art {
  height: 220px;
  position: relative;
  top: -5px;
}
.card-flags {
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.card-flags .badge:first-child {
  background: #ffffffde;
  color: #717a88;
  font-size: 8px;
}
.card-flags .badge {
  font-size: 8px;
}
.project-card-body {
  padding: 17px;
}
.project-card h3 {
  font-size: 14px;
  letter-spacing: -0.025em;
}
.project-card p {
  font-size: 9px;
  margin-top: 6px;
}
.project-meta {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: var(--muted);
  align-items: center;
  margin: 14px 0;
}
.project-meta > span:last-child {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.project-meta .icon {
  width: 13px;
  height: 13px;
}
.progress {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 9px;
  color: var(--muted);
  margin: 13px 0;
}
.progress progress {
  flex: 1;
  width: 100px;
}
progress {
  appearance: none;
  height: 4px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  background: var(--surface-alt);
}
progress::-webkit-progress-bar {
  background: var(--surface-alt);
}
progress::-webkit-progress-value {
  background: #b0bc9b;
}
progress::-moz-progress-bar {
  background: #b0bc9b;
}
.card-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
}
.card-foot > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-foot .icon {
  width: 11px;
  height: 11px;
}
.agenda {
  padding: 0 20px;
}
.task {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.task:last-child {
  border-bottom: 0;
}
.task > input {
  margin: 4px 0;
}
.task > span {
  min-width: 0;
  flex: 1;
}
.task small,
.task b,
.task > span > span {
  display: block;
}
.task small {
  font-size: 9px;
  color: var(--accent);
  margin-bottom: 6px;
}
.task b {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.6;
}
.task > span > span {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.team-note {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
  margin-top: 20px;
}
.team-note h3 {
  font-size: 13px;
  margin-top: 17px;
}
.team-note p {
  font-size: 11px;
  margin: 8px 0;
}
.team-note .btn {
  font-size: 10px;
  padding-left: 0;
  white-space: normal;
}
.avatar-stack {
  display: flex;
  padding-left: 5px;
}
.avatar-stack .avatar {
  border: 3px solid var(--surface-alt);
  margin-left: -5px;
}
.project-notice {
  align-items: center;
  font-size: 12px;
}
.project-notice .btn {
  margin-left: auto;
  font-size: 10px;
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-field {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-left: 12px;
  flex: 1;
  min-width: 180px;
}
.search-field input {
  border: 0 !important;
  outline-offset: -3px;
  width: 100%;
}
.search-field .icon {
  width: 17px;
  color: var(--muted);
}
.filter-bar .muted {
  font-size: 11px;
  margin-left: auto;
}
.project-subnav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  margin-bottom: 24px;
  border-block: 1px solid var(--line);
  padding: 13px 0;
}
.project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 25px;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.room-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 12px;
}
.room-mini {
  width: 82px;
  height: 94px;
  background: var(--bg);
  border-radius: 6px;
  flex-shrink: 0;
}
.room-card h3 {
  font-size: 13px;
}
.room-card p {
  font-size: 10px;
  margin: 6px 0;
}
.room-card small {
  font-size: 9px;
  color: var(--accent);
}
.room-card small .icon {
  width: 12px;
  height: 12px;
}
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.discipline-card h3 {
  margin: 17px 0 10px;
}
.discipline-card p {
  font-size: 12px;
}
.discipline-card > span:last-child {
  font-size: 11px;
  display: block;
  color: var(--accent);
  margin-top: 20px;
}
.discipline-card > span .icon {
  width: 14px;
}
.project-summary h2 {
  font-size: 18px;
}
.project-summary dl {
  font-size: 11px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  margin-block: 23px;
}
.project-summary dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.project-summary progress {
  width: 75%;
}
.timeline {
  margin-top: 18px;
}
.timeline h3 {
  margin-bottom: 20px;
}
.timeline p {
  padding: 0 0 22px 19px;
  border-left: 1px solid var(--line);
  position: relative;
}
.timeline p:last-child {
  padding-bottom: 0;
}
.timeline p i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  left: -4px;
  top: 5px;
}
.timeline p b {
  font-size: 9px;
  display: block;
  color: var(--text);
  font-weight: 600;
}
.timeline p span {
  font-size: 10px;
}
/* Tables, estimates and settings */
.table-panel {
  padding: 0;
  overflow: hidden;
}
.table-scroll {
  overflow-x: auto;
}
.table-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  gap: 15px;
}
.table-caption h2 {
  font-size: 16px;
}
.table-caption .muted {
  font-size: 11px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  font-weight: 550;
  color: var(--muted);
  background: var(--bg);
  padding: 14px 20px;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td b {
  font-weight: 650;
  font-size: 11px;
}
td small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.estimate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 15px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  padding: 13px 19px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
}
.estimate-table {
  min-width: 640px;
}
.estimate-table td,
.estimate-table th {
  padding: 15px 12px;
}
.estimate-table td:first-child {
  padding-left: 20px;
  width: 45%;
}
.estimate-table input {
  width: 83px;
  min-height: 35px !important;
  padding: 5px 8px !important;
}
.estimate-table [data-qty] {
  width: 65px;
}
.estimate-table .row-total {
  white-space: nowrap;
  font-weight: 650;
  font-size: 11px;
}
.table-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.table-footer .muted {
  font-size: 9px;
}
.estimate-summary {
  align-self: start;
  padding: 23px;
}
.estimate-summary > strong {
  font-size: 33px;
  display: block;
  letter-spacing: -0.045em;
  margin: 14px 0 25px;
  color: var(--accent);
}
.estimate-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 11px;
}
.estimate-summary dt {
  color: var(--muted);
}
.estimate-summary > p {
  font-size: 10px;
  margin-top: 18px;
}
.estimate-summary h3 {
  font-size: 13px;
}
.revision {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 5px;
}
.revision small {
  grid-column: 1/-1;
  font-size: 9px;
  color: var(--muted);
}
.revision button {
  font-size: 10px;
  margin-top: 5px;
}
.normative {
  max-width: 1000px;
}
.normative h2 {
  margin: 22px 0 12px;
}
.normative > p {
  max-width: 730px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.catalog-item {
  position: relative;
  padding: 16px;
  cursor: pointer;
}
.catalog-item:has(:checked) {
  border-color: var(--accent);
}
.catalog-item > input {
  position: absolute;
  top: 20px;
  left: 20px;
}
.catalog-art {
  height: 120px;
  background: var(--surface-alt);
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.catalog-art > .icon {
  width: 57px;
  height: 57px;
  color: var(--accent);
  stroke-width: 1;
}
.catalog-item > small {
  font-size: 9px;
  color: var(--muted);
}
.catalog-item h3 {
  font-size: 12px;
  margin: 8px 0 14px;
}
.catalog-item > b {
  font-size: 17px;
}
.catalog-item > b small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.permissions th:not(:first-child),
.permissions td:not(:first-child) {
  text-align: center;
}
.permissions-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 10px 22px;
  border-top: 1px solid var(--line);
}
.document-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.document-card {
  display: flex;
  gap: 16px;
  align-items: center;
}
.document-card > .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.document-card > div {
  flex: 1;
}
.document-card h3 {
  font-size: 13px;
}
.document-card p {
  font-size: 10px;
  margin-top: 7px;
}
.document-card .badge {
  font-size: 8px;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.album-card {
  padding: 0;
  overflow: hidden;
}
.album-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--surface-alt);
}
.album-caption {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.album-caption h3 {
  font-size: 12px;
}
.album-caption small {
  font-size: 9px;
  color: var(--muted);
}
.album-caption .btn {
  font-size: 10px;
  min-height: 34px;
}
.empty {
  padding: 65px 30px;
  text-align: center;
}
.empty > .icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  margin-bottom: 15px;
}
.empty h2 {
  font-size: 20px;
}
.empty p {
  font-size: 12px;
  margin: 15px auto 23px;
  max-width: 490px;
}
.engineering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.house-panel {
  padding: 18px;
}
.house-panel .building-art {
  height: 370px;
}
.engineering-grid h2 {
  margin: 17px 0;
}
.engineering-checks {
  display: grid;
  margin: 24px 0;
}
.engineering-checks > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.engineering-grid .small {
  margin-top: 18px;
}
.brief-banner {
  padding: 35px 40px;
  background: var(--sidebar);
  color: #f5f7fa;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.brief-banner h2 {
  font-size: 31px;
  line-height: 1.3;
}
.brief-banner p {
  font-size: 12px;
  margin-top: 20px;
  color: #a9b5c9;
}
.brief-banner > .icon {
  width: 130px;
  height: 130px;
  stroke-width: 0.6;
  color: var(--lime);
  margin-right: 35px;
}
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 25px;
}
.requirement > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.requirement > div > span:last-child {
  font-size: 11px;
  color: var(--muted);
}
.requirement h2 {
  font-size: 19px;
  margin: 20px 0 13px;
}
.requirement p {
  font-size: 12px;
}
.offline-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.offline-layout h2 {
  margin: 22px 0 13px;
}
.offline-layout p {
  font-size: 12px;
}
.offline-object {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
}
.offline-object > div {
  flex: 1;
}
.offline-object b,
.offline-object small {
  display: block;
  font-size: 10px;
}
.offline-object small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.offline-object > .badge {
  font-size: 8px;
}
.offline-layout .small {
  margin-top: 14px;
}
.conflict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}
.conflict-grid label {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 9px;
  cursor: pointer;
}
.conflict-grid label:has(:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.conflict-grid input {
  position: absolute;
  top: 14px;
  right: 12px;
}
.conflict-grid b {
  font-size: 10px;
  padding-right: 18px;
}
.conflict-grid strong {
  font-size: 24px;
  margin: 17px 0 10px;
}
.conflict-grid small {
  font-size: 9px;
  color: var(--muted);
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.week-strip button {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--muted);
}
.week-strip b {
  display: block;
  font-size: 24px;
  margin-top: 5px;
  color: var(--text);
}
.week-strip button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.week-strip button.active b {
  color: var(--accent);
}
.agenda.large .task {
  align-items: center;
  padding: 23px 0;
}
.agenda.large .task small {
  float: left;
  width: 70px;
  margin-top: 2px;
}
.agenda.large .task > span > span {
  margin-left: 70px;
}
.finance-flow {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 35px 0;
}
.finance-flow span {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 20px;
  border-radius: 7px;
  font-size: 12px;
}
.finance-flow .icon {
  width: 16px;
  color: var(--muted);
}
/* Professional canvas */
.editor-main {
  padding: 20px;
  max-width: none;
}
.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.editor-heading > div:first-child {
  display: flex;
  gap: 16px;
  align-items: center;
}
.editor-heading h1 {
  font-size: 20px;
}
.editor-heading h1 span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.editor-heading .btn {
  font-size: 10px;
}
.editor-directions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.editor-directions button {
  padding: 12px 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 11px;
}
.editor-directions .icon {
  width: 16px;
  height: 16px;
}
.editor-directions button.active {
  color: var(--accent);
  border-color: var(--accent);
}
.editor-layout {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 228px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  min-height: 650px;
  height: calc(100svh - 236px);
}
.editor-layers {
  border-right: 1px solid var(--line);
  padding: 18px 10px;
}
.editor-layers .section-heading {
  padding: 0 7px;
  margin: 0 0 19px;
  font-size: 11px;
}
.editor-layers .section-heading > .icon {
  width: 15px;
}
.tree-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  padding: 10px 7px;
  border-radius: 6px;
  width: 100%;
}
.tree-item .icon {
  width: 15px;
  height: 15px;
}
.tree-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.editor-layers .nav-caption {
  margin: 24px 7px 10px;
  font-size: 8px;
}
.layer-row {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  padding: 7px 3px;
}
.layer-row input {
  width: 12px;
  height: 12px;
}
.editor-help {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding: 16px 7px;
  color: var(--muted);
  font-size: 9px;
}
.editor-help p {
  font-size: 9px;
  margin-top: 10px;
}
.editor-center {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.canvas-toolbar {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  min-height: 61px;
}
.canvas-toolbar .btn,
.canvas-toolbar output {
  font-size: 10px;
}
.canvas-toolbar .icon-btn {
  min-height: 30px;
  width: 28px;
  padding: 4px;
}
.canvas-toolbar > .muted {
  display: none;
}
.canvas-toolbar .btn.quiet {
  min-height: 30px;
}
.segmented {
  display: inline-flex;
  background: var(--bg);
  padding: 3px;
  border-radius: 6px;
  margin-right: 10px;
}
.segmented button {
  padding: 5px 10px;
  font-size: 10px;
  border-radius: 4px;
  color: var(--muted);
}
.segmented button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px #0001;
}
.toolbar-separator {
  height: 19px;
  width: 1px;
  background: var(--line);
  margin: 0 5px;
}
.canvas-stage {
  position: relative;
  background: var(--bg);
  flex: 1;
  min-height: 320px;
  overflow: hidden;
}
.canvas-stage > .floorplan {
  touch-action: none;
}
.canvas-stage > .floorplan .point-hit {
  fill: transparent;
  cursor: grab;
}
.plan-point {
  cursor: grab;
  outline: none;
}
.plan-point.selected .point-hit {
  fill: #ac91da25;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.plan-point:focus-visible .point-hit {
  stroke: var(--accent);
  stroke-width: 2;
}
.canvas-caption {
  position: absolute;
  bottom: 13px;
  left: 15px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  pointer-events: none;
}
.canvas-caption > span:last-child {
  margin-left: 8px;
}
.equipment-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.equipment-bar > b {
  font-size: 9px;
  color: var(--muted);
  margin-right: 6px;
}
.equipment-bar button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 9px;
}
.equipment-bar button:hover {
  background: var(--accent-soft);
}
.equipment-bar .icon {
  width: 13px;
  height: 13px;
}
.editor-status {
  font-size: 9px;
  color: var(--muted);
  background: var(--surface-alt);
  padding: 10px 13px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.editor-status .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}
.editor-properties {
  border-left: 1px solid var(--line);
  padding: 19px;
  overflow: auto;
}
.editor-properties .section-heading {
  font-size: 11px;
  margin: 0 0 24px;
}
.editor-properties .section-heading .icon {
  width: 16px;
}
.editor-properties h2 {
  font-size: 19px;
  margin: 18px 0 8px;
}
.editor-properties p {
  font-size: 11px;
}
.editor-properties .field {
  font-size: 10px;
  margin: 20px 0;
}
.editor-properties .two-fields {
  gap: 10px;
}
.editor-properties input {
  font-size: 11px !important;
  width: 100%;
}
.editor-properties .notice {
  font-size: 10px;
  padding: 13px;
}
.properties-bottom {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.properties-bottom .btn {
  font-size: 10px;
  white-space: normal;
  padding-left: 0;
}
.editor-properties > .btn {
  font-size: 10px;
  white-space: normal;
}
.editor-properties .check-list {
  gap: 14px;
}
.editor-properties .check-list li {
  font-size: 10px;
}
.editor-properties .check-list .icon {
  width: 13px;
  height: 13px;
}
.editor-properties .small {
  font-size: 9px;
}
.canvas-stage #scene3d {
  position: absolute;
  inset: 0;
  touch-action: none;
}
.canvas-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
/* Dialogs, helpers, print */
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: var(--surface);
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: min(560px, 90vw);
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 29px;
  width: min(540px, calc(100vw - 30px));
  max-height: 88svh;
  box-shadow: 0 30px 100px #0003;
}
dialog::backdrop {
  background: #111a2b80;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.dialog-head h2 {
  font-size: 24px;
}
.dialog-copy {
  font-size: 12px;
  margin-bottom: 20px;
}
.dialog-actions {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.dialog-list {
  display: grid;
  gap: 10px;
}
.dialog-list .btn {
  white-space: normal;
  justify-content: flex-start;
}
.search-result {
  display: block;
  padding: 13px 3px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.search-result small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.count {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  border-radius: 5px;
  padding: 3px 7px;
  margin-left: 5px;
}
[hidden] {
  display: none !important;
}
.empty-result {
  padding: 35px;
  color: var(--muted);
  grid-column: 1/-1;
}
.mobile-backdrop {
  display: none;
}
@media (min-width: 1700px) {
  .sidebar {
    width: 246px;
    padding-inline: 22px;
  }
  .workspace {
    grid-template-columns: 246px 1fr;
  }
  .main {
    padding: 40px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .project-art {
    height: 225px;
  }
  .project-art .floorplan {
    height: 290px;
  }
  .project-art .building-art {
    height: 260px;
  }
  .project-card-body {
    padding: 22px;
  }
  .project-card h3 {
    font-size: 16px;
  }
  .project-card p,
  .card-foot {
    font-size: 11px;
  }
  .stat {
    padding: 26px;
  }
  .stat > b {
    font-size: 40px;
  }
  .stat > b.money-stat {
    font-size: 34px;
  }
  .editor-main {
    padding: 25px;
  }
  .editor-layout {
    grid-template-columns: 175px 1fr 285px;
  }
  .canvas-toolbar > .muted {
    display: block;
    font-size: 10px;
  }
  .hero {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .hero h1 {
    font-size: 61px;
  }
}
@media (max-width: 1200px) {
  .site-nav {
    padding: 22px 28px;
  }
  .site-nav nav {
    gap: 14px;
  }
  .site-nav .brand small {
    display: none;
  }
  .hero {
    padding: 55px 28px 65px;
    gap: 15px;
    min-height: 570px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    padding: 13px;
    font-size: 11px;
  }
  .hero-foot {
    flex-wrap: wrap;
    gap: 8px 15px;
  }
  .mock-layout {
    grid-template-columns: 32px 1fr 105px;
  }
  .mock-properties {
    padding: 16px 9px;
  }
  .mock-title > span:nth-child(2) {
    font-size: 8px;
  }
  .floating-metric {
    left: 12px;
    padding: 13px;
  }
  .site-section,
  .site-cta {
    padding: 65px 28px;
  }
  .direction-section,
  .subscription {
    border-radius: 0;
    padding: 45px 28px;
  }
  .site-strip {
    gap: 22px;
    padding-inline: 25px;
  }
  .subscription {
    gap: 35px;
  }
  .workspace {
    grid-template-columns: 195px 1fr;
  }
  .sidebar {
    width: 195px;
    padding-inline: 12px;
  }
  .sidebar .brand > span {
    font-size: 13px;
  }
  .sidebar .brand b {
    font-size: 16px;
  }
  .sidebar .brand img {
    width: 28px;
    height: 28px;
  }
  .nav-link {
    font-size: 11px;
  }
  .topbar {
    padding: 0 23px;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .search-trigger {
    padding-right: 12px;
  }
  .topbar .actions {
    gap: 9px;
  }
  .main {
    padding: 25px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 18px;
  }
  .stat {
    padding: 16px;
  }
  .stat > b.money-stat {
    font-size: 23px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat small {
    font-size: 8px;
  }
  .project-art {
    height: 155px;
  }
  .project-card-body {
    padding: 13px;
  }
  .project-card h3 {
    font-size: 12px;
  }
  .card-foot {
    font-size: 7px;
    gap: 4px;
  }
  .project-meta {
    gap: 8px;
  }
  .project-meta > span:last-child {
    gap: 4px;
  }
  .project-notice {
    flex-wrap: wrap;
  }
  .project-notice > div {
    flex: 1;
  }
  .project-notice .btn {
    margin-left: 29px;
  }
  .project-overview {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .estimate-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .editor-main {
    padding: 17px;
  }
  .editor-layout {
    grid-template-columns: 125px minmax(0, 1fr) 200px;
  }
  .editor-properties {
    padding: 14px;
  }
  .editor-heading h1 {
    font-size: 17px;
  }
  .editor-heading h1 span {
    display: none;
  }
  .editor-heading .btn {
    padding: 8px 9px;
  }
  .editor-heading .badge {
    display: none;
  }
  .editor-directions button {
    padding-inline: 12px;
  }
  .editor-layout {
    height: auto;
    min-height: 650px;
  }
  .canvas-stage {
    min-height: 400px;
  }
}
@media (max-width: 1000px) {
  .site-nav nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-copy > p {
    font-size: 13px;
  }
  .hero-foot {
    margin-top: 22px;
  }
  .hero-visual {
    padding-top: 25px;
  }
  .floating-note {
    display: none;
  }
  .mock-layout {
    grid-template-columns: 29px 1fr;
  }
  .mock-properties {
    display: none;
  }
  .mock-layout,
  .mock-plan .floorplan {
    min-height: 310px;
  }
  .mock-title {
    padding: 12px 9px;
  }
  .floating-metric {
    left: -10px;
    gap: 8px;
    padding: 12px;
  }
  .floating-metric strong {
    font-size: 18px;
  }
  .floating-metric .badge {
    display: none;
  }
  .site-strip {
    gap: 16px;
  }
  .site-strip > span {
    display: none;
  }
  .site-strip button {
    font-size: 11px;
  }
  .section-intro h2 {
    font-size: 31px;
  }
  .direction-showcase {
    gap: 25px;
  }
  .direction-art {
    height: 350px;
  }
  .subscription h2 {
    font-size: 33px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-columns > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .dashboard-columns > aside .section-heading {
    grid-column: 1/-1;
    margin: 0;
  }
  .dashboard-columns > aside .team-note {
    margin-top: 0;
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-art {
    height: 185px;
  }
  .project-card h3 {
    font-size: 14px;
  }
  .card-foot {
    font-size: 9px;
  }
  .project-card-body {
    padding: 17px;
  }
  .topbar .breadcrumb > span:first-of-type {
    display: none;
  }
  .topbar .breadcrumb > span:nth-of-type(2) {
    display: none;
  }
  .topbar .save-state span {
    display: none;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .page-head .actions .btn {
    font-size: 10px;
    padding-inline: 12px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat > b {
    font-size: 32px;
    margin: 8px 0;
  }
  .stat > b.money-stat {
    font-size: 29px;
    margin: 9px 0;
  }
  .stat small {
    font-size: 9px;
  }
  .stat {
    padding: 20px;
  }
  .project-overview {
    grid-template-columns: 1fr;
  }
  .room-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-overview > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .timeline {
    margin: 0;
  }
  .estimate-layout {
    grid-template-columns: 1fr;
  }
  .estimate-summary {
    max-width: none;
  }
  .estimate-summary dl {
    max-width: 300px;
  }
  .estimate-summary > strong {
    margin-bottom: 15px;
  }
  .estimate-summary .eyebrow {
    margin: 0;
  }
  .document-grid {
    grid-template-columns: 1fr;
  }
  .engineering-grid,
  .offline-layout {
    grid-template-columns: 1fr;
  }
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  .brief-banner h2 {
    font-size: 26px;
  }
  .brief-banner > .icon {
    width: 85px;
    margin: 0;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
  .editor-layers {
    display: none;
  }
  .editor-directions button {
    font-size: 10px;
    padding-inline: 10px;
    gap: 5px;
  }
  .editor-heading > div:first-child {
    gap: 8px;
  }
  .editor-heading .btn.quiet {
    font-size: 0;
  }
  .editor-heading .btn.quiet .icon {
    width: 17px;
  }
  .canvas-stage {
    min-height: 430px;
  }
  .feature-grid {
    gap: 15px;
  }
  .feature-card {
    padding: 22px;
  }
  .feature-card h3 {
    font-size: 16px;
  }
  .feature-card p {
    font-size: 12px;
  }
  .steps {
    gap: 20px;
  }
  .steps h3 {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .site-nav {
    padding: 19px 20px;
  }
  .site-nav .brand > span {
    font-size: 15px;
  }
  .site-nav .brand b {
    font-size: 17px;
  }
  .site-nav .brand img {
    width: 31px;
    height: 31px;
  }
  .site-nav .actions {
    gap: 5px;
  }
  .site-nav .actions > .btn.quiet {
    display: none;
  }
  .site-nav .btn.primary {
    font-size: 10px;
    padding: 10px;
  }
  .site-nav .btn .icon {
    display: none;
  }
  .hero {
    display: flex;
    flex-direction: column;
    padding: 40px 22px 50px;
    gap: 36px;
    align-items: stretch;
  }
  .hero h1 {
    font-size: clamp(34px, 7.5vw, 51px);
    line-height: 1.17;
    margin: 22px 0;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .hero-actions {
    margin-top: 24px;
  }
  .hero-actions .btn {
    font-size: 12px;
  }
  .hero-foot {
    gap: 12px 15px;
  }
  .hero-visual {
    width: 100%;
    max-width: 570px;
    align-self: center;
    padding-top: 5px;
    padding-bottom: 43px;
  }
  .mock-layout {
    grid-template-columns: 35px 1fr 122px;
  }
  .mock-properties {
    display: block;
  }
  .mock-layout,
  .mock-plan .floorplan {
    min-height: 275px;
  }
  .mock-title > span:nth-child(2) {
    font-size: 8px;
  }
  .floating-metric {
    bottom: 6px;
    left: 35px;
    padding: 13px 16px;
  }
  .floating-metric .badge {
    display: inline-flex;
  }
  .site-strip {
    gap: 17px 23px;
  }
  .site-section,
  .site-cta {
    padding: 55px 22px;
  }
  .section-intro h2 {
    font-size: 28px;
  }
  .section-intro > p {
    font-size: 13px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .feature-card {
    padding: 23px;
  }
  .feature-top {
    margin-bottom: 22px;
  }
  .feature-card h3 {
    font-size: 20px;
  }
  .feature-card p {
    font-size: 13px;
  }
  .direction-section {
    padding: 42px 22px;
  }
  .direction-tabs {
    gap: 7px;
  }
  .direction-tabs button {
    font-size: 10px;
    padding: 9px 11px;
    gap: 6px;
  }
  .direction-tabs .icon {
    width: 15px;
  }
  .direction-showcase {
    grid-template-columns: 1fr;
  }
  .direction-showcase h3 {
    font-size: 26px;
  }
  .direction-showcase p {
    font-size: 13px;
  }
  .direction-art {
    height: 360px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .steps article > span {
    margin-bottom: 18px;
  }
  .offline-banner {
    padding: 23px;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 38px;
  }
  .offline-banner > div {
    display: block;
  }
  .offline-banner > div > .icon {
    margin-bottom: 13px;
  }
  .offline-banner h3 {
    font-size: 18px;
  }
  .offline-banner p {
    margin-top: 12px;
  }
  .subscription {
    grid-template-columns: 1fr;
    padding: 42px 22px;
    gap: 20px;
  }
  .subscription h2 {
    font-size: 32px;
  }
  .subscription-card {
    padding: 23px;
  }
  .site-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .site-cta h2 {
    font-size: 28px;
  }
  .site-footer {
    padding: 28px 22px;
    gap: 19px;
  }
  .site-footer > span {
    margin: 0;
    font-size: 10px;
    flex: 1;
    text-align: right;
  }
  .site-footer > .btn {
    padding: 0;
    min-height: 20px;
  }
  .site-footer .brand > span {
    font-size: 14px;
  }
  .site-footer .brand b {
    font-size: 17px;
  }
  .site-footer .brand img {
    width: 30px;
    height: 30px;
  }
  .entry {
    grid-template-columns: 1fr;
  }
  .entry > aside {
    padding: 25px;
    min-height: auto;
  }
  .entry-message {
    display: none;
  }
  .entry > aside > small {
    display: none;
  }
  .entry main {
    padding: 15px 25px;
  }
  .entry-form {
    margin: 35px auto;
  }
  .entry-form h1 {
    font-size: 30px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 224px;
    box-shadow: 10px 0 45px #0003;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #17203360;
    z-index: 19;
    border: 0;
  }
  .sidebar .brand > span {
    font-size: 14px;
  }
  .sidebar .brand img {
    width: 33px;
    height: 33px;
  }
  .workspace-body {
    width: 100%;
  }
  .topbar {
    height: 62px;
    padding: 0 15px;
    gap: 5px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 10px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar .actions {
    gap: 6px;
  }
  .topbar .save-state {
    display: none;
  }
  .topbar .search-trigger {
    border: 0;
    padding: 0;
  }
  .topbar .btn.quiet {
    font-size: 9px;
    padding: 5px;
  }
  .topbar .btn.quiet .icon {
    display: none;
  }
  .topbar .icon-btn {
    width: 32px;
  }
  .main {
    padding: 23px 17px;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 23px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head p {
    font-size: 11px;
  }
  .page-head .eyebrow {
    font-size: 8px;
  }
  .page-head .actions .btn {
    font-size: 11px;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 24px;
  }
  .stat {
    padding: 16px;
  }
  .stat > span {
    font-size: 10px;
  }
  .stat > b {
    font-size: 33px;
  }
  .stat > b.money-stat {
    font-size: 25px;
  }
  .stat small {
    font-size: 8px;
    line-height: 1.6;
  }
  .stat small .icon {
    display: none;
  }
  .dashboard-columns {
    gap: 22px;
  }
  .project-art {
    height: 160px;
  }
  .project-card-body {
    padding: 14px;
  }
  .project-card h3 {
    font-size: 13px;
  }
  .project-card p {
    font-size: 9px;
  }
  .card-foot {
    font-size: 8px;
    flex-wrap: wrap;
  }
  .project-meta {
    gap: 10px;
    font-size: 9px;
  }
  .project-meta > span:last-child {
    display: none;
  }
  .project-notice {
    padding: 17px;
  }
  .project-notice b {
    font-size: 12px;
  }
  .project-notice p {
    font-size: 11px;
  }
  .project-notice .btn {
    margin-left: 29px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .filter-bar {
    gap: 10px;
  }
  .filter-bar .search-field {
    flex-basis: 100%;
  }
  .filter-bar .muted {
    font-size: 10px;
  }
  .project-subnav {
    gap: 12px;
    flex-wrap: wrap;
  }
  .project-subnav .spacer {
    display: none;
  }
  .project-subnav .btn {
    font-size: 10px;
  }
  .project-overview > aside {
    grid-template-columns: 1fr;
  }
  .room-card {
    padding: 10px;
    gap: 9px;
  }
  .room-mini {
    width: 58px;
    height: 75px;
  }
  .room-card h3 {
    font-size: 12px;
  }
  .room-card p {
    font-size: 9px;
  }
  .room-card small {
    font-size: 8px;
  }
  .discipline-card {
    padding: 19px;
  }
  .discipline-card h3 {
    font-size: 15px;
  }
  .discipline-card p {
    font-size: 11px;
  }
  .panel {
    padding: 20px;
  }
  .table-panel {
    padding: 0;
  }
  .table-caption {
    padding: 18px;
  }
  .table-caption h2 {
    font-size: 15px;
  }
  th,
  td {
    padding: 14px 15px;
  }
  .estimate-table td,
  .estimate-table th {
    padding: 13px 10px;
  }
  .estimate-table td:first-child {
    padding-left: 15px;
  }
  .estimate-top {
    flex-wrap: wrap;
  }
  .tabs button {
    padding: 12px 13px;
    font-size: 11px;
  }
  .table-footer {
    padding: 12px;
    flex-wrap: wrap;
  }
  .estimate-summary > strong {
    font-size: 33px;
  }
  .three-fields {
    grid-template-columns: 1fr;
  }
  .three-fields .field {
    margin: 5px 0;
  }
  .permissions-scope {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .permissions td:first-child {
    min-width: 140px;
  }
  .permissions th {
    font-size: 9px;
  }
  .document-card {
    gap: 11px;
    padding: 17px;
    flex-wrap: wrap;
  }
  .document-card > .icon {
    width: 23px;
  }
  .document-card h3 {
    font-size: 12px;
  }
  .album-grid {
    grid-template-columns: 1fr;
  }
  .album-card {
    padding: 0;
  }
  .engineering-grid {
    gap: 15px;
  }
  .house-panel .building-art {
    height: 250px;
  }
  .engineering-checks > div {
    font-size: 10px;
  }
  .engineering-checks .badge {
    font-size: 8px;
  }
  .brief-banner {
    padding: 25px;
  }
  .brief-banner h2 {
    font-size: 24px;
  }
  .brief-banner > .icon {
    display: none;
  }
  .brief-banner .eyebrow {
    font-size: 8px;
  }
  .requirement h2 {
    font-size: 19px;
  }
  .requirement p {
    font-size: 12px;
  }
  .notice {
    padding: 16px;
    gap: 10px;
  }
  .notice p {
    font-size: 11px;
  }
  .notice.small {
    font-size: 10px;
  }
  .offline-object {
    padding: 11px;
    flex-wrap: wrap;
  }
  .week-strip {
    gap: 5px;
  }
  .week-strip button {
    padding: 10px 5px;
    font-size: 9px;
  }
  .week-strip b {
    font-size: 20px;
  }
  .agenda.large {
    padding: 0 17px;
  }
  .agenda.large .task .badge {
    display: none;
  }
  .agenda.large .task small {
    width: 46px;
  }
  .agenda.large .task > span > span {
    margin-left: 46px;
  }
  .agenda.large .task b {
    font-size: 10px;
  }
  .finance-flow {
    gap: 10px;
  }
  .finance-flow span {
    padding: 11px;
    font-size: 10px;
  }
  .catalog-item {
    padding: 13px;
  }
  .catalog-art {
    height: 110px;
  }
  .catalog-item h3 {
    font-size: 11px;
  }
  .catalog-item > small {
    font-size: 8px;
  }
  .editor-main {
    padding: 16px 10px;
  }
  .editor-heading {
    flex-wrap: wrap;
    gap: 13px;
  }
  .editor-heading h1 {
    font-size: 19px;
  }
  .editor-heading .actions {
    margin-left: 6px;
  }
  .editor-directions {
    gap: 1px;
  }
  .editor-directions button {
    font-size: 9px;
    padding: 10px 8px;
    gap: 4px;
  }
  .editor-directions .icon {
    width: 13px;
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
  }
  .editor-center {
    min-height: 620px;
  }
  .editor-properties {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px;
  }
  .editor-properties > .section-heading {
    margin-bottom: 15px;
  }
  .editor-properties .check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .editor-properties .properties-bottom {
    margin-top: 15px;
  }
  .editor-properties .field {
    margin: 12px 0;
  }
  .canvas-stage {
    min-height: 400px;
  }
  .canvas-toolbar {
    gap: 1px;
    padding: 9px;
  }
  .canvas-toolbar .btn {
    font-size: 9px;
    padding-inline: 6px;
  }
  .canvas-toolbar output {
    font-size: 9px;
  }
  .canvas-toolbar .segmented {
    margin-right: 5px;
  }
  .canvas-toolbar .icon-btn {
    width: 24px;
  }
  .canvas-caption {
    font-size: 8px;
  }
  .equipment-bar {
    padding: 11px 9px;
  }
  .equipment-bar button {
    font-size: 8px;
    padding: 7px;
  }
  .editor-status {
    font-size: 8px;
  }
  .entry-note {
    font-size: 10px;
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: 34px;
  }
  .hero-actions .btn {
    font-size: 11px;
    padding-inline: 13px;
  }
  .hero-foot span {
    font-size: 8px;
  }
  .mock-layout {
    grid-template-columns: 28px 1fr 91px;
  }
  .mock-properties {
    padding: 13px 7px;
  }
  .mock-properties p {
    font-size: 8px;
  }
  .mock-properties h3 {
    font-size: 11px;
  }
  .mock-properties small {
    font-size: 7px;
  }
  .mock-layout,
  .mock-plan .floorplan {
    min-height: 265px;
  }
  .mock-title {
    font-size: 7px;
    gap: 6px;
  }
  .mock-title .window-dots {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .mock-title .badge {
    font-size: 6px;
    padding: 3px 5px;
  }
  .mock-footer {
    font-size: 6px;
    padding: 9px;
  }
  .floating-metric {
    left: 12px;
    padding: 11px;
    gap: 10px;
  }
  .floating-metric .badge {
    font-size: 7px;
  }
  .hero-visual {
    padding-bottom: 45px;
  }
  .projects-grid,
  .projects-grid.two {
    grid-template-columns: 1fr;
  }
  .project-art {
    height: 200px;
  }
  .project-card h3 {
    font-size: 15px;
  }
  .project-card p,
  .card-foot {
    font-size: 10px;
  }
  .project-meta > span:last-child {
    display: flex;
  }
  .project-card-body {
    padding: 19px;
  }
  .dashboard-columns > aside {
    grid-template-columns: 1fr;
  }
  .dashboard-columns > aside .team-note {
    margin-top: 3px;
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .room-mini {
    width: 72px;
    height: 82px;
  }
  .room-card h3 {
    font-size: 14px;
  }
  .discipline-grid {
    grid-template-columns: 1fr;
  }
  .stat > b.money-stat {
    font-size: 24px;
  }
  .site-nav .brand > span {
    font-size: 13px;
  }
  .site-nav .brand b {
    font-size: 16px;
  }
  .site-nav {
    padding-inline: 15px;
  }
  .site-nav .brand {
    gap: 7px;
  }
  .site-nav .actions {
    gap: 2px;
  }
  .site-nav .icon-btn {
    width: 30px;
  }
  .conflict-grid label {
    padding: 12px;
  }
  .conflict-grid b {
    font-size: 9px;
  }
  .offline-object .avatar {
    display: none;
  }
  .editor-directions button {
    padding-inline: 6px;
    font-size: 8px;
  }
  .editor-directions .icon {
    width: 12px;
  }
  .editor-heading .actions .btn {
    font-size: 10px;
  }
  .catalog-grid {
    gap: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  body {
    background: white;
    color: #222;
  }
  .sidebar,
  .topbar,
  .page-head .actions,
  .btn,
  .icon-btn,
  #toast,
  dialog,
  .skip,
  .filter-bar {
    display: none !important;
  }
  .workspace {
    display: block;
  }
  .workspace-body {
    width: 100%;
  }
  .main {
    padding: 0;
  }
  .panel {
    border-color: #ddd;
    break-inside: avoid;
  }
  .table-scroll {
    overflow: visible;
  }
  .estimate-layout {
    display: block;
  }
  .estimate-summary {
    margin-top: 20px;
  }
  .estimate-table input {
    border: 0 !important;
    padding: 0 !important;
    background: transparent;
  }
  .estimate-table th:last-child,
  .estimate-table td:last-child {
    display: none;
  }
  .table-footer {
    display: none;
  }
  .album-grid {
    display: block;
  }
  .album-card {
    break-inside: avoid;
    margin: 20px 0;
  }
  .album-card > img {
    max-height: 650px;
  }
  .album-caption .actions {
    display: none;
  }
  .notice {
    background: none;
    border: 1px solid #ddd;
  }
  .page-head h1 {
    color: #222;
  }
  .requirements-grid {
    display: block;
  }
  .requirement {
    margin-bottom: 15px;
  }
  .site-nav,
  .site-footer {
    display: none;
  }
  .editor-layout {
    height: auto;
  }
  .editor-layers,
  .editor-properties,
  .equipment-bar,
  .canvas-toolbar {
    display: none;
  }
  .editor-layout {
    display: block;
  }
  .canvas-stage {
    height: 650px;
  }
}

.estimate-layout > *,
.offline-layout > *,
.engineering-grid > * {
  min-width: 0;
}
.table-panel {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 760px) {
  .project-notice {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .project-notice .btn {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
}

.entry-plan {
  height: 280px;
  margin: 25px 0;
}

.app-update-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 40px);
  padding: 12px 16px;
  background: var(--surface, #fff);
  color: var(--text, #202938);
  border: 1px solid var(--line, #dce1eb);
  border-radius: 14px;
  box-shadow: 0 6px 24px #20293826;
}

@media (max-width: 760px) {
  .workspace-body > .topbar { position: relative; height: 52px; padding-inline: 10px; gap: 12px; }
  .topbar .breadcrumb { flex: 1; min-width: 0; gap: 8px; font-size: 12px; }
  .topbar .breadcrumb b { overflow: hidden; text-overflow: ellipsis; }
  .topbar > .actions { flex: none; gap: 8px; }
  .topbar :is(.icon-btn, .search-trigger, .demo-storage-info > summary) { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; }
  .topbar :is(.icon-btn, .search-trigger, .demo-storage-info > summary) .icon { width: 20px; height: 20px; }
  .topbar .topbar-home { display: none; }
  .main { padding: 14px 10px; }
  .main .btn { min-height: 34px; padding: 7px 10px; gap: 6px; font-size: 12px; }
  .main .btn .icon { width: 16px; height: 16px; }
  .main .page-head { gap: 10px; margin-bottom: 14px; }
  .main .page-head h1 { font-size: 23px; }
  .main .page-head p { margin-top: 6px; font-size: 12px; }
  .main .actions { gap: 6px; }
  .main .filter-bar { padding: 10px; gap: 8px; }
  #dialog { padding: 16px; }
  #dialog .btn { min-height: 36px; padding: 7px 10px; font-size: 12px; }
}
