:root {
  --cream: #f6f2ea;
  --cream-2: #fbf9f4;
  --cream-3: #efe9df;
  --surface: rgba(255, 253, 249, 0.94);
  --surface-solid: #fffdf9;
  --surface-soft: #f3eee6;
  --burgundy: #5a1013;
  --burgundy-2: #76191d;
  --ink: #292522;
  --muted: #746d67;
  --muted-2: #9a928b;
  --line: #ded7ce;
  --line-soft: #ece6de;
  --olive: #707a3e;
  --olive-dark: #465126;
  --olive-soft: #edf0de;
  --coral: #fc805c;
  --green: #4d8a55;
  --red: #e94c43;
  --amber: #d36a2d;
  --shadow-sm: 0 8px 24px rgba(56, 43, 34, 0.06);
  --shadow: 0 18px 50px rgba(61, 46, 36, 0.09);
  --shadow-lg: 0 28px 80px rgba(42, 29, 23, 0.18);
  --sidebar: 248px;
  --dock-height: 82px;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
  background: var(--cream);
}
body {
  min-width: 1180px;
  min-height: 720px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 86% 8%,
      rgba(255, 255, 255, 0.8),
      transparent 33%
    ),
    linear-gradient(135deg, #f9f6ef 0%, #f2eee6 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
#app {
  height: 100%;
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
}
body.is-loading #app {
  opacity: 0;
  transform: translateY(12px) scale(0.992);
  filter: blur(5px);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
strong {
  font-weight: 750;
}
.noscript {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--burgundy);
  font-weight: 800;
}
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffdf5;
  background: #5d6734;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.62s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.62s ease,
    visibility 0.62s;
}
.loading-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(1.025);
  filter: blur(8px);
  pointer-events: none;
}
.loading-screen[hidden] {
  display: none;
}
.loading-screen:before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("assets/light_beams.png") 50% 50% / cover no-repeat;
  opacity: 0.45;
  animation: loadingDrift 8s ease-in-out infinite alternate;
}
.loading-screen:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 53% 42%,
      rgba(255, 255, 230, 0.08),
      transparent 28%
    ),
    linear-gradient(180deg, rgba(21, 27, 12, 0.04), rgba(20, 27, 10, 0.32));
}
.loading-beam {
  position: absolute;
  width: 65vw;
  height: 11vw;
  min-height: 100px;
  border-radius: 999px;
  transform: rotate(-12deg);
  background: rgba(239, 245, 185, 0.12);
  filter: blur(24px);
  mix-blend-mode: screen;
  z-index: 1;
}
.loading-beam-a {
  left: 31%;
  top: 18%;
  animation: beamSweepA 5.4s ease-in-out infinite alternate;
}
.loading-beam-b {
  left: 21%;
  top: 55%;
  opacity: 0.42;
  animation: beamSweepB 7s ease-in-out infinite alternate;
}
.loading-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(-20px);
  transition:
    opacity 0.4s ease,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
.loading-screen.is-leaving .loading-brand {
  opacity: 0;
  transform: translateY(-34px) scale(0.985);
}
.loading-roman {
  font-family: var(--serif);
  font-size: clamp(64px, 6vw, 108px);
  line-height: 0.9;
  letter-spacing: -3px;
  text-shadow: 0 10px 40px rgba(20, 26, 10, 0.28);
}
.loading-roman span {
  font-size: 0.28em;
  margin-left: 7px;
  vertical-align: top;
  color: #fff7c6;
}
.loading-by {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
}
.loading-by img {
  width: 112px;
  height: auto;
}
.loading-copy {
  position: absolute;
  z-index: 2;
  left: 48px;
  bottom: 43px;
  display: flex;
  width: 310px;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  transition:
    opacity 0.32s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.loading-screen.is-leaving .loading-copy {
  opacity: 0;
  transform: translateY(-8px);
}
.loading-copy strong {
  font-size: 14px;
}
.loading-copy span {
  color: rgba(255, 255, 255, 0.74);
}
.loading-track {
  position: relative;
  height: 3px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}
.loading-track i {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 12px rgba(255, 255, 230, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
}
.loading-screen.is-playing .loading-track i {
  animation: loadingProgress 1.85s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}
.loading-track i:after {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, #fff 55%, transparent);
  transform: translateX(-100%);
}
.loading-screen.is-playing .loading-track i:after {
  animation: loadingShimmer 0.9s ease-in-out 0.35s infinite;
}
@keyframes loadingProgress {
  to {
    transform: scaleX(1);
  }
}
@keyframes loadingShimmer {
  to {
    transform: translateX(270%);
  }
}
@keyframes loadingDrift {
  from {
    transform: scale(1.05) translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: scale(1.12) translate3d(1.5%, 1%, 0);
  }
}
@keyframes beamSweepA {
  from {
    transform: translateX(-5%) rotate(-12deg);
  }
  to {
    transform: translateX(8%) rotate(-10deg);
  }
}
@keyframes beamSweepB {
  from {
    transform: translateX(3%) rotate(-12deg);
  }
  to {
    transform: translateX(-8%) rotate(-14deg);
  }
}
.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 1180px;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 92% 2%,
      rgba(255, 255, 255, 0.95),
      transparent 32%
    ),
    linear-gradient(135deg, #f8f5ee 0%, #f2eee6 100%);
}
.sidebar {
  position: absolute;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(223, 216, 207, 0.72);
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(20px);
}
.brand {
  padding: 3px 11px 25px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.brand-roman {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.8px;
}
.brand-roman sup {
  top: -0.4em;
  position: relative;
  margin-left: 3px;
  color: var(--coral);
  font-family: var(--sans);
  font-size: 12px;
}
.brand-by {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.brand-by img {
  width: 84px;
  height: auto;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  position: relative;
  width: 100%;
  height: 49px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #605953;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  transition: 0.16s ease;
}
.nav-item:hover {
  background: rgba(240, 232, 223, 0.75);
  color: var(--burgundy);
  transform: translateX(2px);
}
.nav-item.is-active {
  background: #f0e8df;
  color: var(--burgundy);
}
.nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}
.nav-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--burgundy);
  color: #fff;
  font-size: 10px;
}
.sidebar-spacer {
  flex: 1;
}
.sidebar-foot {
  display: grid;
  gap: 6px;
}
.sidebar-foot .nav-item {
  height: 44px;
  font-size: 12px;
}
.demo-tag {
  margin: 14px 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.45;
}
.main {
  position: absolute;
  inset: 0 0 0 var(--sidebar);
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 24px 30px calc(var(--dock-height) + 42px);
  scrollbar-width: thin;
  scrollbar-color: #d2c9bd transparent;
}
.screen.is-entering {
  animation: screenIn 0.24s ease both;
}
.screen::-webkit-scrollbar {
  width: 8px;
}
.screen::-webkit-scrollbar-thumb {
  background: #d2c9bd;
  border-radius: 99px;
}
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.topbar {
  min-height: 72px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}
.topbar-left {
  min-width: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.breadcrumb button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.breadcrumb button:hover {
  color: var(--burgundy);
}
.page-title {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(30px, 2vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.7px;
}
.page-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}
.icon-circle {
  width: 41px;
  height: 41px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.84);
  cursor: pointer;
  transition: 0.16s ease;
}
.icon-circle:hover {
  transform: translateY(-2px);
  border-color: #c8bbb0;
  box-shadow: var(--shadow-sm);
}
.icon-circle svg {
  width: 18px;
  height: 18px;
}
.avatar {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.panel {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.panel.no-shadow {
  box-shadow: none;
}
.panel.interactive {
  cursor: pointer;
  transition: 0.18s ease;
}
.panel.interactive:hover {
  transform: translateY(-3px);
  border-color: #d4c8bd;
  box-shadow: var(--shadow);
}
.btn {
  min-height: 41px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-solid);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: #c9bbb0;
  box-shadow: 0 8px 18px rgba(67, 48, 38, 0.09);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.primary {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fff;
}
.btn.primary:hover {
  border-color: var(--burgundy-2);
  background: var(--burgundy-2);
}
.btn.soft {
  border-color: transparent;
  background: #f1e9e2;
  color: var(--burgundy);
}
.btn.olive {
  border-color: var(--olive);
  background: var(--olive);
  color: #fff;
}
.btn.danger {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.btn.icon-only {
  width: 42px;
  padding: 0;
}
.btn.large {
  min-height: 50px;
  padding: 0 21px;
  border-radius: 15px;
  font-size: 13px;
}
.btn.block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #e6dfd6;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f2eee7;
  color: #625a54;
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1;
}
.chip.green {
  border-color: #cfe4d1;
  background: #eaf5e9;
  color: #3f7848;
}
.chip.orange {
  border-color: #f2d1be;
  background: #fff0e7;
  color: #a34a25;
}
.chip.blue {
  border-color: #d4e2e8;
  background: #eaf2f5;
  color: #416a7b;
}
.chip.olive {
  border-color: #dfe3bf;
  background: var(--olive-soft);
  color: #5f672f;
}
.chip.burgundy {
  border-color: #e7c9cb;
  background: #f5e7e8;
  color: var(--burgundy);
}
.chip.is-clickable {
  cursor: pointer;
  transition: 0.15s ease;
}
.chip.is-clickable:hover {
  transform: translateY(-1px);
  border-color: #cdbfb4;
}
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.h-serif {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.h-lg {
  font-size: clamp(42px, 4vw, 66px);
  line-height: 0.98;
  letter-spacing: -1.8px;
}
.h-md {
  font-size: 28px;
  line-height: 1.05;
}
.h-sm {
  font-size: 21px;
  line-height: 1.12;
}
.muted {
  color: var(--muted);
}
.caption {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}
.divider {
  height: 1px;
  background: var(--line-soft);
}
.row {
  display: flex;
  align-items: center;
}
.row.space {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.voice-dock {
  position: absolute;
  z-index: 80;
  left: calc(var(--sidebar) + 26px);
  right: 26px;
  bottom: 18px;
  min-height: var(--dock-height);
  padding: 10px 13px;
  border: 1px solid rgba(221, 213, 203, 0.88);
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(210px, 310px) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 18px 50px rgba(60, 42, 30, 0.13);
  backdrop-filter: blur(22px);
}
.voice-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.voice-face {
  width: 54px;
  height: 54px;
  flex: none;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 17px rgba(0, 0, 0, 0.14);
}
.voice-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.voice-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}
.voice-sub {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wave {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.wave i {
  width: 3px;
  height: var(--h, 12px);
  flex: none;
  border-radius: 3px;
  background: var(--olive);
  opacity: 0.9;
  transform-origin: center;
  animation: wave 1.15s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.voice-dock.is-paused .wave i {
  height: 4px !important;
  animation: none;
  opacity: 0.38;
}
.voice-dock.is-ended .wave i {
  background: #b8b0a8;
  animation: none;
  height: 3px !important;
}
@keyframes wave {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1.08);
  }
}
.voice-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.quick-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.quick-action {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fffdf9;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 760;
  white-space: nowrap;
  transition: 0.15s ease;
}
.quick-action:hover {
  transform: translateY(-2px);
  border-color: #c8b9ad;
  background: #fff;
}
.quick-action svg {
  width: 15px;
  height: 15px;
}
.voice-popover {
  position: absolute;
  right: 28px;
  bottom: 112px;
  z-index: 81;
  width: min(430px, 34vw);
  padding: 15px 17px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: var(--shadow-lg);
  animation: popIn 0.2s ease both;
}
.voice-popover:after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fffdf9;
}
.voice-popover strong {
  display: block;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 17px;
}
.voice-popover span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.home-screen {
  padding: 0;
  overflow: hidden;
}
.home-layout {
  display: grid;
  grid-template-columns: 42% 58%;
  height: 100%;
}
.home-visual {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: #5f6835 url("assets/light_beams.png") center/cover no-repeat;
}
.home-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(25, 30, 14, 0.08),
    rgba(23, 28, 13, 0.48)
  );
}
.home-visual > * {
  position: relative;
  z-index: 2;
}
.home-visual .h-serif {
  max-width: 560px;
  color: #fffdf6;
}
.home-visual p {
  max-width: 480px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.65;
}
.home-visual-illustration {
  position: absolute;
  right: -20px;
  bottom: 80px;
  z-index: 1;
  width: 42%;
  max-width: 360px;
  opacity: 0.95;
  mix-blend-mode: screen;
  filter: sepia(0.2) brightness(1.5);
}
.home-content {
  position: relative;
  min-width: 0;
  padding: 28px 36px 130px;
  overflow: auto;
}
.home-content .topbar {
  margin-bottom: 50px;
}
.home-copy {
  max-width: 910px;
  margin: 5vh auto 0;
}
.home-copy .h-lg em {
  font-weight: 500;
}
.home-intro {
  max-width: 520px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.start-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.start-card {
  min-height: 185px;
  padding: 18px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 253, 249, 0.8);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: 0.18s ease;
}
.start-card:hover {
  transform: translateY(-5px);
  border-color: #cdbdb0;
  background: #fff;
  box-shadow: var(--shadow);
}
.start-illustration {
  width: 100%;
  height: 75px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.start-illustration img {
  max-width: 100px;
  max-height: 78px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.start-card strong {
  margin-top: 13px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 17px;
}
.start-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}
.home-search {
  max-width: 720px;
  margin: 34px auto 0;
}
.search-field {
  height: 59px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}
.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.search-field input::placeholder {
  color: #9b938d;
}
.search-add {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}
.search-mic {
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--burgundy);
  color: #fff;
  cursor: pointer;
  transition: 0.16s ease;
}
.search-mic:hover {
  transform: scale(1.05);
  background: var(--burgundy-2);
}
.search-mic svg {
  width: 18px;
  height: 18px;
}
.home-note {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 9.5px;
  text-align: center;
}
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
}
.project-main {
  min-width: 0;
}
.project-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 14px;
}
.stat-card {
  padding: 16px 17px;
  border: 1px solid var(--line-soft);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.88);
}
.stat-value {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
}
.stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}
.room-list {
  display: grid;
  gap: 11px;
}
.room-card {
  min-height: 124px;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 19px;
  display: grid;
  grid-template-columns: 174px minmax(180px, 1fr) 170px 30px;
  align-items: center;
  gap: 15px;
  background: rgba(255, 253, 249, 0.88);
  cursor: pointer;
  transition: 0.18s ease;
}
.room-card:hover {
  transform: translateY(-3px);
  border-color: #cdbfb4;
  box-shadow: var(--shadow);
}
.room-card.is-selected {
  border-color: rgba(90, 16, 19, 0.52);
  box-shadow:
    0 0 0 1px rgba(90, 16, 19, 0.06),
    var(--shadow-sm);
}
.room-thumb {
  width: 174px;
  height: 101px;
  overflow: hidden;
  border-radius: 13px;
}
.room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.room-title {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}
.room-purpose {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.room-status {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-window-list {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.mini-window {
  width: 66px;
  height: 72px;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #f6f2eb;
  cursor: pointer;
  transition: 0.15s ease;
}
.mini-window:hover {
  transform: translateY(-2px);
  border-color: #c9bbb0;
}
.mini-window img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}
.arrow-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.arrow-button:hover {
  background: var(--surface-soft);
  color: var(--burgundy);
}
.project-aside {
  position: sticky;
  top: 0;
  min-height: 620px;
  padding: 20px;
  align-self: start;
  display: flex;
  flex-direction: column;
}
.project-aside-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.project-aside-photo {
  height: 190px;
  margin: 15px 0;
  overflow: hidden;
  border-radius: 16px;
}
.project-aside-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-section {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.detail-section h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 11px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 10.5px;
}
.detail-row strong {
  color: var(--ink);
  text-align: right;
}
.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 18px;
}
.room-hero {
  position: relative;
  height: 192px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 21px;
}
.room-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.room-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(34, 24, 20, 0.72),
    rgba(34, 24, 20, 0.05) 68%
  );
}
.room-hero-copy {
  position: absolute;
  z-index: 2;
  left: 26px;
  top: 28px;
  color: #fff;
}
.room-hero-copy .h-serif {
  color: #fff;
  font-size: 34px;
}
.room-hero-copy p {
  max-width: 390px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.5;
}
.window-list {
  display: grid;
  gap: 11px;
}
.window-row {
  min-height: 135px;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 19px;
  display: grid;
  grid-template-columns: 168px minmax(190px, 1fr) 190px 30px;
  align-items: center;
  gap: 15px;
  background: rgba(255, 253, 249, 0.9);
  cursor: pointer;
  transition: 0.17s ease;
}
.window-row:hover {
  transform: translateY(-3px);
  border-color: #cdbfb4;
  box-shadow: var(--shadow);
}
.window-row img {
  width: 168px;
  height: 111px;
  border-radius: 13px;
  object-fit: cover;
}
.window-name {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}
.window-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}
.window-progress {
  min-width: 0;
}
.window-progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9.5px;
}
.progress {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7e0d7;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--olive);
}
.room-aside {
  padding: 19px;
  align-self: start;
}
.aside-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.aside-section:last-child {
  border-bottom: 0;
}
.aside-section h3 {
  margin: 0 0 9px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 18px;
}
.preference-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sun-path {
  position: relative;
  height: 100px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4e5c8, #f8f4ec);
}
.sun-path:before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 17px;
  height: 56px;
  border-top: 1px dashed #c9965e;
  border-radius: 50%;
}
.sun {
  position: absolute;
  right: 23%;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7b645;
  box-shadow: 0 0 0 8px rgba(247, 182, 69, 0.15);
}
.window-layout {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 335px;
  gap: 16px;
}
.subnav {
  padding: 14px;
  align-self: start;
}
.subnav-title {
  margin: 3px 9px 11px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.subnav-item {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 760;
  text-align: left;
}
.subnav-item:hover {
  background: #f5efe8;
  color: var(--burgundy);
}
.subnav-item.is-active {
  background: #f0e8df;
  color: var(--burgundy);
}
.subnav-item svg {
  width: 16px;
  height: 16px;
}
.subnav-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: #e9e1d8;
  font-size: 9px;
}
.window-center {
  min-width: 0;
  display: grid;
  gap: 16px;
}
.window-overview-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}
.photo-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-label {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 9.5px;
  font-weight: 800;
}
.measure-card {
  min-height: 270px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 180px;
  align-items: center;
  gap: 10px;
}
.measure-list {
  display: grid;
  gap: 11px;
  margin-top: 13px;
}
.measure-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px;
}
.measure-line strong {
  font-size: 12px;
}
.window-diagram {
  width: 100%;
  max-width: 190px;
  margin: auto;
}
.window-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
.window-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.info-card {
  padding: 18px;
}
.info-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.preference-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10.5px;
}
.preference-line:last-child {
  border-bottom: 0;
}
.preference-line strong {
  color: var(--ink);
  text-align: right;
}
.window-aside {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}
.insight {
  padding: 14px 15px;
  border: 1px solid #f1d2c3;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff1ea, #f8e5dd);
  color: #6e2a18;
  font-size: 11px;
  line-height: 1.5;
}
.next-list {
  display: grid;
  gap: 8px;
}
.next-item {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: 0.15s ease;
}
.next-item:hover {
  transform: translateX(3px);
  border-color: #cdbfb4;
}
.next-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f1e9e2;
  color: var(--burgundy);
}
.next-icon svg {
  width: 17px;
  height: 17px;
}
.next-copy strong {
  display: block;
  font-size: 10.5px;
}
.next-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}
.measure-mode {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 18px;
}
.measure-conversation {
  position: relative;
  min-height: 700px;
  padding: 28px 38px 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.measure-conversation:after {
  content: "";
  position: absolute;
  left: -42px;
  bottom: -65px;
  width: 290px;
  height: 340px;
  background: url("assets/illustration_measure.png") center/contain no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.88;
}
.listen-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 10.5px;
  font-weight: 820;
}
.listen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(77, 138, 85, 0.13);
}
.measure-question {
  max-width: 720px;
  margin: 86px auto 0;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(36px, 3.2vw, 53px);
  line-height: 1.08;
  text-align: center;
  letter-spacing: -1px;
}
.measure-helper {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.capture-card {
  width: min(640px, 82%);
  margin: 30px auto 0;
  padding: 18px 20px;
  border: 1px solid #f0d4c7;
  border-radius: 20px;
  background: #fff5ef;
}
.capture-label {
  color: #9d5f48;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.capture-speech {
  margin-top: 8px;
  color: #71301c;
  font-family: var(--serif);
  font-size: 19px;
}
.capture-value {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.capture-number {
  color: var(--burgundy);
  font-size: 40px;
  font-weight: 820;
  letter-spacing: -1px;
}
.capture-unit {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}
.capture-actions {
  display: flex;
  gap: 8px;
}
.measure-history {
  width: min(640px, 82%);
  margin: 12px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}
.measure-guide {
  min-height: 700px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.guide-camera {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 17px;
  background: #e8e3dc;
}
.guide-camera img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 33%,
      rgba(255, 255, 255, 0.45) 33%,
      rgba(255, 255, 255, 0.45) 33.3%,
      transparent 33.3%,
      transparent 66%,
      rgba(255, 255, 255, 0.45) 66%,
      rgba(255, 255, 255, 0.45) 66.3%,
      transparent 66.3%
    ),
    linear-gradient(
      0deg,
      transparent 33%,
      rgba(255, 255, 255, 0.45) 33%,
      rgba(255, 255, 255, 0.45) 33.3%,
      transparent 33.3%,
      transparent 66%,
      rgba(255, 255, 255, 0.45) 66%,
      rgba(255, 255, 255, 0.45) 66.3%,
      transparent 66.3%
    );
  opacity: 0.55;
  pointer-events: none;
}
.camera-label {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 99px;
  background: rgba(20, 18, 15, 0.64);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
}
.guide-steps {
  margin-top: 15px;
  display: grid;
  gap: 8px;
}
.guide-step {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  display: flex;
  gap: 10px;
  background: #f5f1ea;
}
.step-number {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--burgundy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.guide-step.is-done .step-number {
  background: var(--green);
}
.guide-step strong {
  display: block;
  font-size: 10.5px;
}
.guide-step span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}
.recommend-head {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}
.filter-pill {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 760;
  transition: 0.15s ease;
}
.filter-pill:hover {
  transform: translateY(-2px);
  border-color: #c7b9ad;
}
.filter-pill.is-active {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fff;
}
.filter-pill svg {
  width: 14px;
  height: 14px;
}
.sort-control {
  color: var(--muted);
  font-size: 10.5px;
}
.recommend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 16px;
}
.product-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  align-content: start;
}
.product-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  transition: 0.18s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: #cdbfb4;
  box-shadow: var(--shadow);
}
.product-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #ece7df;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.025);
}
.product-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.product-heart:hover {
  color: var(--burgundy);
  transform: scale(1.06);
}
.product-heart.is-saved {
  background: var(--burgundy);
  color: #fff;
}
.product-heart svg {
  width: 17px;
  height: 17px;
}
.best-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  background: var(--olive);
  color: #fff;
  font-size: 9px;
  font-weight: 820;
}
.product-body {
  padding: 13px;
}
.product-name {
  min-height: 34px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.3;
}
.product-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}
.product-price-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-price {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}
.rating {
  color: var(--amber);
  font-size: 9.5px;
}
.swatches {
  margin-top: 8px;
  display: flex;
  gap: 5px;
}
.swatch {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 50%;
  cursor: pointer;
}
.product-actions {
  margin-top: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.product-actions .btn {
  min-height: 36px;
  padding: 0 8px;
  font-size: 9.5px;
}
.why-panel {
  min-height: 590px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.fit-score {
  width: 105px;
  height: 105px;
  margin: 15px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--olive) 0 88%, #e8e2d9 88%);
}
.fit-score:after {
  content: "88%";
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-solid);
  color: var(--burgundy);
  font-size: 23px;
  font-weight: 820;
}
.reason {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 9px;
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.4;
}
.reason-icon {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f3e9;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}
.compare-tray {
  position: fixed;
  z-index: 86;
  left: calc(var(--sidebar) + 50px);
  right: 50px;
  bottom: 114px;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 249, 0.97);
  box-shadow: var(--shadow-lg);
  animation: popIn 0.2s ease both;
}
.compare-item {
  height: 43px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  font-size: 9.5px;
}
.compare-item img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}
.compare-tray .btn {
  margin-left: auto;
}
.drawer-dim {
  position: fixed;
  z-index: 110;
  inset: 0 0 0 var(--sidebar);
  background: rgba(40, 35, 31, 0.18);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.16s ease both;
}
.filter-drawer {
  position: fixed;
  z-index: 111;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: 465px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  box-shadow: 0 28px 80px rgba(35, 24, 19, 0.26);
  animation: drawerIn 0.22s ease both;
  overflow: auto;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.drawer-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-section h3 {
  margin: 0 0 12px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 18px;
}
.colour-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.colour-dot {
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line);
  transition: 0.15s ease;
}
.colour-dot:hover {
  transform: scale(1.08);
}
.colour-dot.is-active {
  box-shadow: 0 0 0 2px var(--burgundy);
}
.check-line {
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 11.5px;
  cursor: pointer;
  text-align: left;
}
.check-box {
  width: 20px;
  height: 20px;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
}
.check-box.is-on {
  border-color: var(--burgundy);
  background: var(--burgundy);
}
.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}
.range-row input {
  width: 100%;
  accent-color: var(--burgundy);
}
.range-value {
  min-width: 60px;
  color: var(--burgundy);
  font-weight: 800;
  text-align: right;
  font-size: 12px;
}
.visual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 16px;
}
.visual-main {
  min-width: 0;
  padding: 15px;
}
.hero-visual {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 17px;
  background: #e7e2da;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.visual-badge {
  position: absolute;
  left: 13px;
  top: 13px;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  background: rgba(76, 86, 45, 0.92);
  color: #fff;
  font-size: 9.5px;
  font-weight: 820;
}
.visual-controls {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: flex;
  gap: 7px;
}
.visual-controls .btn {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.92);
}
.thumb-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}
.visual-thumb {
  position: relative;
  height: 95px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: 0.15s ease;
}
.visual-thumb:hover {
  transform: translateY(-2px);
  border-color: #c7b8ad;
}
.visual-thumb.is-active {
  border: 2px solid var(--burgundy);
  padding: 2px;
}
.visual-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.visual-side {
  min-height: 650px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.selected-product {
  margin-top: 14px;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  background: #fff;
}
.selected-product img {
  width: 86px;
  height: 86px;
  border-radius: 11px;
  object-fit: cover;
}
.note-box {
  padding: 13px;
  border: 1px solid #f0d3c7;
  border-radius: 14px;
  background: #fff3ed;
  color: #7b3b27;
  font-size: 9.5px;
  line-height: 1.45;
}
.visual-progress {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: blur(5px);
}
.visual-progress-card {
  min-width: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 3px solid #e7e0d7;
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.measure-details-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 315px;
  gap: 16px;
}
.dimension-panel,
.guide-panel,
.confidence-panel {
  padding: 18px;
  min-height: 650px;
}
.dimension-box {
  margin-top: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: #fbf8f2;
}
.dimension-label {
  color: var(--muted);
  font-size: 9.5px;
}
.dimension-value {
  margin-top: 3px;
  color: var(--burgundy);
  font-size: 28px;
  font-weight: 820;
  letter-spacing: -0.5px;
}
.dimension-unit {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9.5px;
}
.guide-tabs {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.guide-tab {
  min-height: 37px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fff;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 780;
}
.guide-tab:hover {
  border-color: #c8b9ad;
}
.guide-tab.is-active {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fff;
}
.mount-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mount-card {
  min-height: 245px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: #fbf8f2;
  cursor: pointer;
  text-align: left;
  transition: 0.15s ease;
}
.mount-card:hover {
  transform: translateY(-2px);
  border-color: #c8b9ad;
}
.mount-card.is-active {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 1px rgba(90, 16, 19, 0.06);
}
.mount-visual {
  height: 140px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mount-visual .window-diagram {
  max-width: 135px;
}
.mount-visual img {
  max-height: 128px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mount-card strong {
  display: block;
  margin-top: 8px;
  font-size: 11px;
}
.mount-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}
.confidence-ring {
  width: 118px;
  height: 118px;
  margin: 18px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 0 100%, #e8e2d9 100%);
}
.confidence-ring:after {
  content: "Ready";
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--green);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 17px;
}
.cart-items {
  overflow: hidden;
}
.cart-row {
  min-height: 151px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 118px minmax(210px, 1fr) 210px 115px;
  align-items: center;
  gap: 15px;
}
.cart-row:last-child {
  border-bottom: 0;
}
.cart-row > img {
  width: 118px;
  height: 118px;
  border-radius: 14px;
  object-fit: cover;
}
.cart-room {
  color: var(--muted);
  font-size: 9.5px;
}
.cart-name {
  margin-top: 4px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}
.cart-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.cart-price {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  text-align: right;
}
.qty-control {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}
.qty-control button {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.qty-control button:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}
.qty-control span {
  min-width: 26px;
  text-align: center;
  font-size: 11px;
}
.remove-link {
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9.5px;
  text-decoration: underline;
}
.remove-link:hover {
  color: var(--burgundy);
}
.cart-summary {
  min-height: 600px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.summary-line {
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}
.summary-line strong {
  color: var(--ink);
}
.summary-total {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}
.project-note {
  margin-top: 10px;
  padding: 13px;
  border-radius: 14px;
  background: var(--olive-soft);
  color: #59612e;
  font-size: 9.5px;
  line-height: 1.5;
}
.secure {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9.5px;
  text-align: center;
}
.shopify {
  color: #5fa23a;
  font-weight: 850;
}
.empty-state {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}
.empty-state img {
  width: 160px;
  margin: 0 auto 18px;
  mix-blend-mode: multiply;
}
.modal-dim {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(39, 33, 29, 0.32);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease both;
}
.modal {
  width: min(560px, 90vw);
  max-height: 88vh;
  overflow: auto;
  padding: 23px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease both;
}
.modal.wide {
  width: min(960px, 92vw);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.modal-body {
  margin-top: 18px;
}
.modal-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.field label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.field input,
.field select {
  height: 44px;
  padding: 0 13px;
}
.field textarea {
  min-height: 100px;
  padding: 12px 13px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(90, 16, 19, 0.08);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.screen-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.screen-link {
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fbf8f2;
  cursor: pointer;
  text-align: left;
  transition: 0.15s ease;
}
.screen-link:hover {
  transform: translateY(-2px);
  border-color: #c8b9ad;
}
.screen-link strong {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 15px;
}
.screen-link span {
  color: var(--muted);
  font-size: 9.5px;
}
.toast-root {
  position: fixed;
  z-index: 1000;
  right: 26px;
  top: 24px;
  width: min(370px, 32vw);
  display: grid;
  gap: 9px;
  pointer-events: none;
}
.toast {
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: var(--shadow);
  animation: toastIn 0.22s ease both;
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.45;
  transition: 0.2s ease;
}
.toast-icon {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f3e9;
  color: var(--green);
  font-weight: 900;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
:focus-visible {
  outline: 3px solid rgba(112, 122, 62, 0.35);
  outline-offset: 2px;
}
@media (max-width: 1500px) {
  :root {
    --sidebar: 222px;
  }
  .sidebar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .screen {
    padding-left: 23px;
    padding-right: 23px;
  }
  .project-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-card:nth-child(4) {
    display: none;
  }
  .quick-action:nth-child(3) {
    display: none;
  }
  .voice-dock {
    grid-template-columns: 250px minmax(150px, 1fr) auto;
  }
  .home-visual {
    padding: 44px;
  }
}
@media (max-width: 1280px) {
  :root {
    --sidebar: 200px;
  }
  .brand-roman {
    font-size: 29px;
  }
  .nav-item {
    font-size: 12px;
  }
  .project-layout,
  .room-layout {
    grid-template-columns: 1fr;
  }
  .project-aside,
  .room-aside {
    display: none;
  }
  .window-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .window-aside {
    grid-column: 2;
  }
  .recommend-layout {
    grid-template-columns: 1fr;
  }
  .why-panel {
    display: none;
  }
  .visual-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .measure-details-layout {
    grid-template-columns: 270px 1fr;
  }
  .confidence-panel {
    grid-column: 1/-1;
    min-height: auto;
  }
  .voice-dock {
    grid-template-columns: 220px 1fr auto;
  }
  .quick-actions {
    display: none;
  }
  .home-layout {
    grid-template-columns: 36% 64%;
  }
  .home-visual {
    padding: 35px;
  }
  .home-visual-illustration {
    display: none;
  }
}
/* Final home composition refinements */
.home-visual {
  padding: 54px 54px 168px;
}
.home-visual .h-serif {
  max-width: 455px;
  font-size: clamp(44px, 3.5vw, 58px);
}
.home-visual p {
  max-width: 430px;
}
.home-visual-illustration {
  right: 18px;
  top: 72px;
  bottom: auto;
  width: 285px;
  opacity: 0.72;
  mix-blend-mode: multiply;
  filter: none;
}

/* Final presentation polish */
.home-visual .h-serif.h-lg {
  max-width: 430px;
  font-size: 58px;
  line-height: 0.98;
  letter-spacing: -1.7px;
}
.home-visual p {
  max-width: 430px;
}
.home-visual-illustration {
  right: 0;
  bottom: 70px;
  width: 34%;
  max-width: 300px;
}
.home-visual {
  padding-right: 44px;
}
.screen.filters-open {
  z-index: 120;
  overflow: visible;
}
