/* Palettes live in themes.css. Only derived values themes.css does not
   declare are defined here. */
:root {
  --warn: #ad762d;
  --bad: #b64b3f;
  --room-furniture-side-a: color-mix(
    in srgb,
    var(--room-furniture) 80%,
    #69442f
  );
  --room-furniture-side-b: color-mix(
    in srgb,
    var(--room-furniture) 62%,
    #543629
  );
  --room-fixture-side-a: color-mix(in srgb, var(--room-fixture) 80%, #385348);
  --room-fixture-side-b: color-mix(in srgb, var(--room-fixture) 64%, #263f37);
  --room-bed-side-a: color-mix(in srgb, var(--room-bed-frame) 82%, #172e27);
  --room-bed-side-b: color-mix(in srgb, var(--room-bed-frame) 68%, #11231e);
  --room-mattress-side-a: color-mix(in srgb, var(--room-mattress) 84%, #c4ad88);
  --room-mattress-side-b: color-mix(in srgb, var(--room-mattress) 70%, #ae9674);
  --room-door-side-a: color-mix(in srgb, var(--room-door) 80%, #70452f);
  --room-door-side-b: color-mix(in srgb, var(--room-door) 62%, #563326);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}
body:has(#start-screen:not([hidden])) {
  background: #fff9f4;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 9px;
  padding: 8px 11px;
  cursor: pointer;
  font-weight: 650;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}
button:hover,
.button:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--card) 88%, var(--accent-soft));
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent-deep);
}
.primary:hover {
  color: white;
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.topbar {
  height: 74px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  background: #fffdf9;
  border-bottom: 1px solid #eadfd6;
  display: flex;
  align-items: center;
  gap: 22px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 24px rgb(50 35 40 / 5%);
}
.topbar .brand {
  color: #292640;
}
.topbar .tagline {
  color: #7b6d72;
}
.topbar .save-status {
  color: #7b6d72;
}
.topbar button {
  color: #292640;
  background: white;
  border-color: #ded2c9;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px 11px 5px 5px;
  color: white;
  background: #df6658;
  box-shadow: inset 0 -3px 0 rgb(104 40 50 / 12%);
  font-size: 18px;
  font-weight: 850;
}
.tagline {
  color: var(--ink-2);
  margin: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 650;
}
.save-status {
  color: var(--ink-3);
  font-size: 12px;
}
.app-version {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  color: var(--ink-3);
  background: color-mix(in srgb, var(--card) 86%, transparent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.update-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100vw - 32px));
  padding: 14px 14px 14px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 94%, var(--accent-soft));
  box-shadow: 0 18px 48px rgb(43 31 35 / 18%);
}
.update-banner div {
  display: grid;
  flex: 1;
  gap: 1px;
}
.update-banner strong {
  color: var(--ink);
  font-size: 14px;
}
.update-banner span {
  color: var(--ink-3);
  font-size: 12px;
}
.update-banner .primary {
  flex: 0 0 auto;
  white-space: nowrap;
}
.update-banner .update-dismiss {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink-3);
  background: transparent;
  font-size: 22px;
}
@media (max-width: 640px) {
  .update-banner {
    right: 16px;
    bottom: 16px;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .update-banner div {
    flex-basis: calc(100% - 46px);
  }
  .update-banner .primary {
    flex: 1 0 100%;
    order: 2;
  }
  .update-banner .update-dismiss {
    order: 0;
  }
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar-nav a {
  color: #51474d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.topbar-nav a:hover {
  color: #be4f47;
}
.topbar-nav .nav-cta {
  padding: 10px 15px;
  border-radius: 10px;
  color: white;
  background: #292640;
}
.topbar-nav .nav-cta:hover {
  color: white;
  background: #df6658;
}
body:has(#start-screen:not([hidden])) .save-status,
body:has(#start-screen:not([hidden])) #back-button {
  display: none;
}
body:has(#planner-screen:not([hidden])) .topbar-nav {
  display: none;
}
body:has(#planner-screen:not([hidden])) .topbar {
  padding-right: 20px;
  padding-left: 20px;
}
body:has(#planner-screen:not([hidden])) .save-status {
  margin-left: auto;
}
.start-screen {
  --home-ink: #292640;
  --home-body: #62555c;
  --home-coral: #df6658;
  --home-coral-dark: #b94743;
  --home-peach: #fce4dd;
  --home-yellow: #f4d37a;
  --home-mint: #beddd4;
  --home-lilac: #e9e3f7;
  position: relative;
  min-height: calc(100dvh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 54px clamp(42px, 5vw, 76px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 82px) max(28px, 3vw) 72px;
  color: var(--home-ink);
  background: #fff9f4;
  overflow: clip;
}
.start-screen::before,
.start-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.start-screen::before {
  width: 330px;
  height: 330px;
  top: 28px;
  right: 52px;
  background: var(--home-peach);
}
.start-screen::after {
  width: 170px;
  height: 170px;
  top: 560px;
  left: 34px;
  background: var(--home-lilac);
}
.dorm-finder {
  order: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
}
.hero-shot {
  grid-column: 1 / -1;
  order: 4;
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  min-width: 0;
  margin: 0 auto;
  padding: 0 0 142px;
  border: 0;
  overflow: visible;
  background: transparent;
}
.start-screen.no-saved-plans .hero-shot {
  grid-column: 2;
  order: 2;
  width: 100%;
  margin: 48px 0 0;
}
.hero-shot::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 270px;
  height: 270px;
  top: 20px;
  right: 28px;
  border-radius: 50%;
  background: var(--home-yellow);
}
.preview-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #ded3cc;
  border-radius: 20px;
  background: white;
  box-shadow: 0 28px 70px rgb(83 57 62 / 18%);
  transform: none;
}
.preview-topline {
  min-height: 52px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: #51474d;
  border-bottom: 1px solid #eee5df;
  background: #fffdfb;
  font-size: 12px;
}
.preview-topline b {
  white-space: nowrap;
}
.window-dots {
  display: flex;
  gap: 5px;
}
.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e9a69c;
}
.window-dots i:nth-child(2) {
  background: #f0cf75;
}
.window-dots i:nth-child(3) {
  background: #9bcbbb;
}
.layout-ready {
  justify-self: end;
  color: #367765;
  font-size: 11px;
  font-weight: 750;
}
.layout-ready::before {
  content: "✓";
  margin-right: 5px;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.match-preview {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 2px;
  width: min(300px, 52%);
  padding: 20px;
  border: 1px solid #e2d8d1;
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 45px rgb(72 50 57 / 18%);
}
.match-preview > p {
  margin: 0 0 3px;
  color: var(--home-coral-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.match-preview h2 {
  margin: 0 0 13px;
  color: var(--home-ink);
  font:
    700 18px/1.2 Georgia,
    "Times New Roman",
    serif;
}
.match-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #eee7e1;
}
.match-row b,
.match-row small {
  display: block;
}
.match-row b {
  color: #3d343a;
  font-size: 12px;
}
.match-row small {
  color: #887980;
  font-size: 10.5px;
}
.match-row > strong {
  color: #377665;
  font-size: 10px;
}
.match-swatch {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--home-lilac);
}
.rug-swatch {
  border: 5px solid #e0a08e;
  background: #f8d6cd;
}
.table-swatch {
  border: 6px solid #d6b687;
  background: #f5e9d4;
}
.fridge-swatch {
  border: 5px solid #9cb7c2;
  background: #dbe7ea;
}
.hero-shot figcaption {
  position: absolute;
  z-index: 3;
  left: -20px;
  bottom: 34px;
  width: 248px;
  padding: 17px 20px;
  border: 1px solid #e2c463;
  border-radius: 14px;
  color: #4b3d34;
  background: #ffe99c;
  box-shadow: 0 14px 36px rgb(87 64 34 / 13%);
  font:
    700 17px/1.25 Georgia,
    "Times New Roman",
    serif;
}
.hero-shot figcaption span {
  display: block;
  margin-bottom: 3px;
  color: #8a5d41;
  font:
    750 10px/1.3 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-kicker {
  order: 1;
  width: max-content;
  margin: 0 0 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--home-coral-dark);
  background: var(--home-peach);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-kicker span {
  margin-right: 5px;
}
.dorm-finder h1 {
  order: 2;
  max-width: 11ch;
  margin: 0 0 18px;
  color: var(--home-ink);
  font:
    700 clamp(44px, 4.6vw, 62px) / 0.98 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.045em;
}
.finder-intro {
  order: 3;
  max-width: 50ch;
  margin: 0 0 17px;
  color: var(--home-body);
  font-size: 17px;
  line-height: 1.6;
}
.landing-actions {
  order: 4;
  display: grid;
  width: min(100%, 390px);
  gap: 7px;
  margin-top: 8px;
}
.landing-actions .primary {
  min-height: 56px;
  border-color: var(--home-coral-dark);
  border-radius: 11px;
  background: var(--home-coral);
  box-shadow: 0 10px 24px rgb(179 73 67 / 18%);
  font-size: 15px;
}
.landing-actions .primary:hover {
  background: var(--home-coral-dark);
}
.landing-actions .quiet-action {
  min-height: 42px;
  border: 0;
  color: #66585f;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12.5px;
}
.landing-actions .quiet-action:hover {
  color: var(--home-coral-dark);
  background: transparent;
}
.landing-actions p {
  margin: 4px 0 0;
  color: #8a7c82;
  text-align: center;
  font-size: 10.5px;
  font-weight: 650;
}
.room-start {
  order: 4;
  scroll-margin-top: 94px;
  padding: 23px;
  border: 1px solid #e5d9d1;
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 45px rgb(78 55 62 / 10%);
}
.room-start-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.room-start-heading p,
.benefits-intro > p,
.recent-plans > div:first-child > p {
  margin: 0 0 3px;
  color: var(--home-coral-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.room-start-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font:
    700 24px/1.15 Georgia,
    "Times New Roman",
    serif;
}
.room-start-heading > span {
  color: #887980;
  font-size: 10.5px;
  font-weight: 650;
}
.room-start-heading > button {
  border: 0;
  color: #74676d;
  background: transparent;
  font-size: 12px;
}
.finder-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
}
.finder-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #4a3e44;
  font-weight: 700;
}
.finder-field > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.finder-field b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--home-coral-dark);
  background: var(--home-peach);
  font-size: 10px;
}
.finder-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 35px 0 11px;
  border: 1px solid #dcd0c8;
  border-radius: 9px;
  color: #3c3338;
  background: white;
  font-size: 13px;
  font-weight: 600;
}
.finder-field select:disabled {
  color: #aa9da1;
  background: #f8f4f1;
  cursor: not-allowed;
}
.finder-open {
  grid-column: 1;
  min-height: 50px;
  margin-top: 1px;
  border-color: var(--home-coral-dark);
  border-radius: 10px;
  background: var(--home-coral);
  font-size: 14px;
  box-shadow: 0 8px 18px rgb(179 73 67 / 18%);
}
.finder-open:hover {
  background: var(--home-coral-dark);
  border-color: var(--home-coral-dark);
}
.finder-choice-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--home-coral);
  border-radius: 0 8px 8px 0;
  color: #61545a;
  background: #fff3ef;
  font-size: 12px;
}
.finder-note {
  margin: 10px 0 0;
  color: #92858a;
  font-size: 10.5px;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 750;
  font-size: 11px;
}
.start-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.start-tabs button {
  min-height: 74px;
  padding: 12px;
  border: 1px solid #ded2ca;
  border-radius: 11px;
  color: #51454b;
  background: #fffaf7;
  font-size: 12.5px;
}
.start-tabs button[aria-selected="true"] {
  color: #3c3338;
  background: white;
  box-shadow: 0 2px 8px rgb(71 50 57 / 10%);
}
.starter-panel {
  text-align: left;
}
.start-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.start-card > label,
.custom-form strong {
  display: block;
  font-weight: 750;
  margin-bottom: 8px;
}
.start-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
}
.room-results {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.room-result {
  text-align: left;
  padding: 12px;
}
.room-result small {
  display: block;
  color: var(--ink-3);
  font-weight: 400;
}
.or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 11px;
  margin: 22px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.or::before,
.or::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 12px;
}
.preset-grid button {
  padding: 14px 10px;
  font-size: 16px;
}
.preset-grid small {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 400;
}
.measure-launch {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  background: var(--accent-soft);
}
.measure-launch > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--accent);
  font-size: 22px;
}
.measure-launch strong,
.measure-launch small {
  display: block;
}
.measure-launch small {
  margin-top: 2px;
  color: var(--ink-2);
  font-weight: 500;
}
.custom-form {
  display: grid;
  gap: 9px;
}
.custom-form label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-2);
}
.custom-form input {
  width: 90px;
  padding: 6px 8px;
}
.custom-form label span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.custom-form label span input {
  width: 48px;
}
.recent-plans {
  position: relative;
  z-index: 1;
  grid-column: 2;
  order: 2;
  display: block;
  align-self: start;
  padding: 30px;
  border: 1px solid #ddd4ea;
  border-radius: 20px;
  background: #f5f0ff;
  box-shadow: 0 18px 45px rgb(78 55 62 / 9%);
}
.recent-plans h2 {
  margin: 0 0 20px;
  color: var(--home-ink);
  font:
    700 32px/1.08 Georgia,
    "Times New Roman",
    serif;
}
.recent-plans > .microcopy {
  margin: 15px 0 0;
  color: #776a78;
}
#recent-plans {
  display: grid;
  gap: 12px;
}
.recent-plan-primary {
  width: 100%;
  min-height: 62px;
  padding: 12px 14px;
  border-color: #d7cce7;
  box-shadow: 0 8px 22px rgb(57 45 75 / 8%);
}
.saved-plan-tools {
  color: #6e6271;
  font-size: 12px;
}
.saved-plan-tools summary {
  width: max-content;
  cursor: pointer;
  font-weight: 700;
}
.saved-plan-rows {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.recent-plan {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
}
.recent-plan-open {
  text-align: left;
  background: white;
}
.recent-plan-open small {
  display: block;
  color: var(--ink-3);
  font-weight: 400;
}
.landing-benefits {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  order: 3;
  scroll-margin-top: 94px;
  display: grid;
  grid-template-columns: 0.65fr 1.65fr;
  gap: clamp(28px, 4vw, 58px);
  padding: 30px 38px;
  border-radius: 26px;
  color: white;
  background: var(--home-ink);
  box-shadow: 0 24px 55px rgb(52 43 63 / 14%);
}
.benefits-intro > p {
  color: #f09a8d;
}
.benefits-intro h2 {
  margin: 4px 0 0;
  font:
    700 clamp(27px, 2.6vw, 36px) / 1.04 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.025em;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefit-grid li {
  padding: 4px 24px;
  border-left: 1px solid rgb(255 255 255 / 15%);
}
.benefit-grid li:first-child {
  padding-left: 0;
  border-left: 0;
}
.benefit-grid li:last-child {
  padding-right: 0;
}
.benefit-grid li > span {
  color: #f09a8d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
}
.benefit-grid h3 {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.25;
}
.advanced-room {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--ink-2);
}
.advanced-room summary {
  cursor: pointer;
  font-weight: 650;
}
.advanced-room fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0 0;
  padding: 8px;
}
.advanced-room legend {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}
.advanced-room label {
  margin-top: 7px;
}
.advanced-room select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px;
  background: var(--card);
}
.planner-screen {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 300px;
  height: calc(100dvh - 74px);
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}
.library-panel,
.inspector-panel {
  background: var(--panel);
  padding: 16px;
  height: 100%;
  overflow-y: auto;
}
.library-panel {
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--line);
}
.inspector-panel {
  padding: 18px 14px 14px;
  border-left: 1px solid var(--line);
}
/* Rail headings are quiet labels — the drawing is what should carry weight. */
.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin: 0 3px;
  padding: 0 1px 14px;
  border-bottom: 1px solid var(--line);
}
.library-heading p {
  margin: 0 0 2px;
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.library-heading > span {
  padding-bottom: 2px;
  color: var(--ink-3);
  font-size: 10px;
  white-space: nowrap;
}
.rail-title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.inspector-panel .rail-title {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.library-help {
  display: grid;
  gap: 3px;
  margin: auto 2px 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 11px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--accent-soft) 58%, var(--card));
  font-size: 10.5px;
  line-height: 1.4;
}
.library-help b {
  color: var(--ink);
  font-size: 11px;
}
.room-bar h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.icon-button {
  padding: 5px 9px;
  font-size: 18px;
}
.library {
  display: grid;
  gap: 16px;
  padding: 15px 0 18px;
}
.library-section {
  display: grid;
  gap: 6px;
}
.library-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 7px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.library-group small {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-3);
  background: color-mix(in srgb, var(--line) 44%, transparent);
  font-size: 9px;
  letter-spacing: 0;
}
.library-section-items {
  display: grid;
  gap: 3px;
}
.library-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 7px 6px 10px;
  border-color: transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}
.library-item-copy {
  display: block;
  min-width: 0;
}
.library-item-copy b,
.library-item-copy small {
  display: block;
}
.library-item-copy b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.library-item-copy small {
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.library-add {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
.library-item:hover,
.library-item:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 62%, var(--card));
  color: var(--accent-deep);
}
.library-item:hover .library-add,
.library-item:focus-visible .library-add {
  border-color: var(--accent);
  color: white;
  background: var(--accent);
}
.size-options {
  display: grid;
  gap: 5px;
}
.size-options button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 10px 7px 12px;
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  text-align: left;
  font-weight: 500;
}
.size-options b {
  font-size: 12px;
}
.size-options small {
  color: var(--ink-3);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.size-options button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--accent-deep);
  font-weight: 650;
}
.size-options button[aria-pressed="true"] small {
  color: var(--accent-deep);
}
.metrics,
.field input,
.room-overview {
  font-variant-numeric: tabular-nums;
}
.microcopy,
.notice {
  color: var(--ink-3);
  font-size: 12px;
}
.canvas-column {
  padding: 12px 20px 16px;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
}
/* One row above the room: what it is, how you are looking at it, and what you
   can do to it. Everything the room does not need to say all the time folds
   away, because the room is the part worth the space. */
.room-bar {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin: 0;
}
.room-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 220px;
}
.view-tabs {
  margin: 0;
  flex: 0 0 auto;
}
.toolbar {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.toolbar button,
.toolbar .button {
  padding: 6px 10px;
  font-size: 13px;
}
/* The line under the bar: the note about the last arrangement, or the small
   print behind the room's measurements once you ask for it. */
.bar-detail {
  margin: 0;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}
/* What the last arrangement decided, and why — it stays put while you look at
   the room, rather than passing by in the save line. */
.layout-note {
  color: var(--accent-deep);
}
/* The provenance of the measurements, as a chip you can open rather than a
   paragraph sitting on top of the room. */
.verification {
  flex: 0 0 auto;
  max-width: 30ch;
  overflow: hidden;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--card);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.verification:disabled {
  opacity: 1;
  cursor: default;
}
.verification.has-detail::after {
  content: " ⌄";
  font-size: 11px;
  letter-spacing: 0;
}
.verification[aria-expanded="true"] {
  color: var(--ink);
  border-color: var(--ink-3);
}
.verification[aria-expanded="true"].has-detail::after {
  content: " ⌃";
}
.canvas-card {
  background: var(--canvas-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.view-tabs {
  width: max-content;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--tab-bg);
}
.view-tabs button {
  padding: 5px 13px;
  font-size: 12px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.view-tabs button:hover {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  transform: none;
  box-shadow: none;
}
.view-tabs button.on {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.view-label {
  min-height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 700;
}
.axon-head {
  gap: 12px;
  align-items: flex-start;
}
.axon-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.axon-presets {
  width: max-content;
}
.axon-zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.axon-zoom input {
  width: 150px;
  height: 4px;
  appearance: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 25%, var(--line));
  accent-color: var(--accent);
}
.axon-zoom input::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--accent);
}
.axon-zoom input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--accent);
}
#plan,
#elevation,
#axon {
  width: 100%;
  min-height: 0;
  display: block;
  touch-action: none;
  user-select: none;
  background: var(--canvas-a);
  border: 1px solid var(--line);
  border-radius: 12px;
}
/* One view is on screen at a time, and it takes whatever height is left. */
#plan,
#elevation,
#axon {
  flex: 1 1 0;
  height: 0;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  color: var(--ink-2);
  font-size: 11px;
  margin-top: 8px;
}
.legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  vertical-align: -1px;
  border-radius: 2px;
}
.furniture-key {
  background: var(--room-furniture);
}
.fixture-key {
  background: var(--room-fixture);
  border: 1px solid var(--room-outline);
}
.collision-key {
  background: color-mix(in srgb, var(--bad) 28%, var(--card));
  border: 1px solid var(--bad);
}
.segmented {
  display: flex;
  gap: 3px;
  padding: 2px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--tab-bg) 76%, var(--card));
}
.segmented button {
  padding: 4px 8px;
  font-size: 10px;
}
.segmented button.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.inspector-panel > section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding: 16px 3px 0;
}
.inspector-section-heading {
  margin-bottom: 8px;
}
.inspector-section-heading p {
  margin: 0 0 2px;
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.inspector-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: -0.01em;
}
.inspector-heading {
  margin: 0 3px;
  padding: 0 1px 14px;
  border-bottom: 1px solid var(--line);
}
.inspector-heading p {
  margin: 0 0 3px;
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.inspector-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.inspector-heading h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.inspector-heading > div > span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--card);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}
.inspector-intro {
  margin: 13px 3px 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
}
.empty-inspector {
  display: grid;
  justify-items: start;
  margin: 0 0 4px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 13px;
  color: var(--ink-3);
  background: color-mix(in srgb, var(--accent-soft) 46%, var(--card));
}
.empty-inspector > span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-size: 14px;
}
.empty-inspector h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}
.empty-inspector p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.5;
}
.inspector-control {
  margin: 0 3px;
  padding: 15px 1px;
  border-bottom: 1px solid var(--line);
}
.inspector-control-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.inspector-control-heading h3,
.rotation-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: -0.01em;
}
.inspector-control-heading span,
.rotation-copy small {
  color: var(--ink-3);
  font-size: 9.5px;
}
.field {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.field > span {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 650;
}
.field input,
.field select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: var(--card);
  color: var(--ink);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
}
.field-grid .field {
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 0;
}
.field-grid .field > span {
  font-size: 10px;
}
.rotation-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rotation-copy {
  display: grid;
  gap: 2px;
}
.rotation-buttons {
  display: flex;
  gap: 5px;
}
.rotation-buttons button {
  width: 38px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  background: var(--card);
  font-size: 18px;
}
.exact-fields {
  margin: 14px 3px 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
}
.exact-fields summary {
  position: relative;
  display: grid;
  gap: 1px;
  padding-left: 16px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.exact-fields summary::marker {
  content: "";
}
.exact-fields summary::before {
  content: "+";
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.exact-fields[open] summary::before {
  content: "−";
}
.exact-fields summary small {
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 450;
}
.exact-fields .field-grid {
  margin-top: 12px;
}
.inspector-actions {
  display: grid;
  gap: 8px;
  margin: 14px 3px 0;
}
.inspector-actions .match-action {
  display: grid;
  gap: 1px;
  justify-items: start;
  min-height: 52px;
  padding: 9px 12px;
  color: white;
  background: var(--accent);
  border-color: var(--accent-deep);
}
.inspector-actions .match-action span {
  font-size: 12px;
  font-weight: 750;
}
.inspector-actions .match-action small {
  color: rgb(255 255 255 / 78%);
  font-size: 9.5px;
  font-weight: 500;
}
.inspector-actions .match-action:hover {
  background: var(--accent-deep);
}
.inspector-actions > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.danger {
  color: var(--bad);
}
.metrics {
  width: 100%;
  border-collapse: collapse;
}
.metrics td {
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  font-size: 12px;
}
.metrics td:first-child {
  color: var(--ink-2);
}
.metrics td:last-child {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.verdict {
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 7px;
  font-size: 12px;
}
.verdict b {
  display: block;
}
.verdict.good {
  background: #e7f1eb;
  color: #285f4b;
  border: 1px solid #d5e7dc;
}
.verdict.neutral {
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.verdict.warn {
  background: #f8f0df;
  color: #7b571c;
  border: 1px solid #eee0c4;
}
.verdict.bad {
  background: #f7e8e5;
  color: #8b372f;
  border: 1px solid #ecd4cf;
}
dialog {
  width: min(560px, calc(100vw - 30px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  color: var(--ink);
  background: var(--card);
}
dialog::backdrop {
  background: color-mix(in srgb, var(--topbar-a) 52%, transparent);
}
.dialog-close {
  float: right;
  border: 0;
  font-size: 20px;
}
dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  resize: none;
}
.shop-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--accent);
  color: white;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    0 12px 28px rgb(143 88 59 / 16%);
}
.shop-launch:hover,
.shop-launch:focus-visible {
  color: white;
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  outline: none;
}
.shop-dialog {
  width: min(1320px, calc(100vw - 16px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
}
.shop-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 4px;
  padding: 12px 4px 10px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
  align-items: start;
}
.shop-hero-copy {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  align-content: start;
  text-align: left;
  width: 100%;
}
.shop-hero-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.1vw, 3.4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.shop-hero-note {
  display: grid;
  align-content: start;
  gap: 12px;
}
.shop-controls {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}
.shop-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 10px 24px rgb(0 0 0 / 8%);
  z-index: 2;
}
.shop-summary-copy,
.shop-disclosure {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  color: var(--ink-2);
  text-align: center;
}
.shop-dropdown {
  position: relative;
  display: grid;
  gap: 10px;
}
.shop-dropdown[data-dropdown="category"] {
  flex: 1 1 auto;
  min-width: 0;
  justify-items: center;
}
.shop-dropdown[data-dropdown="category"] .shop-dropdown-label {
  font-size: 12px;
  color: var(--ink);
}
.shop-dropdown[data-dropdown="category"] .shop-dropdown-button {
  width: min(520px, 100%);
  min-height: 56px;
  font-size: 1rem;
  font-weight: 800;
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-soft) 82%, var(--card)),
    var(--card)
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 74%),
    0 10px 20px rgb(60 42 45 / 7%);
}
.shop-dropdown[data-dropdown="sort"] {
  flex: 0 0 236px;
  min-width: 236px;
}
.shop-dropdown-label {
  font-size: 11px;
  font-weight: 800;
  color: color-mix(in srgb, var(--ink-2) 72%, var(--ink));
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.shop-dropdown-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 18px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 70%),
    0 8px 18px rgb(60 42 45 / 6%);
  appearance: none;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--card) 96%, var(--accent-soft)),
    var(--card)
  );
}
.shop-dropdown[data-dropdown="sort"] .shop-dropdown-button {
  min-height: 40px;
  padding-inline: 12px;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 68%),
    0 6px 14px rgb(60 42 45 / 5%);
}
.shop-sort-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}
.shop-sort-row .shop-dropdown-button {
  flex: 1 1 auto;
}
.shop-sort-direction-button {
  flex: 0 0 auto;
  min-width: 84px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--card) 96%, var(--accent-soft)),
    var(--card)
  );
  color: var(--ink-2);
  font-size: 0.79rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 70%),
    0 6px 14px rgb(60 42 45 / 5%);
}
.shop-sort-direction-button:hover,
.shop-sort-direction-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
  outline: none;
}

.shop-dropdown-button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 72%, transparent);
  outline: none;
}
.shop-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 20px;
  background: rgba(255, 251, 247, 0.98);
  box-shadow: 0 24px 52px rgb(45 28 30 / 14%);
  backdrop-filter: blur(12px);
}
.shop-dropdown-option {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-weight: 650;
}
.shop-dropdown-option:hover,
.shop-dropdown-option:focus-visible {
  background: color-mix(in srgb, var(--accent-soft) 64%, white);
  color: var(--accent-deep);
  outline: none;
}
.shop-dropdown-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent-soft) 82%, white);
  color: var(--accent-deep);
}
.shop-results {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  max-height: min(68vh, 820px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--accent)
    color-mix(in srgb, var(--accent-soft) 54%, var(--card));
}
.shop-results::-webkit-scrollbar {
  width: 12px;
}
.shop-results::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--accent-soft) 54%, var(--card));
  border-radius: 999px;
}
.shop-results::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border: 3px solid color-mix(in srgb, var(--accent-soft) 54%, var(--card));
  border-radius: 999px;
}
.shop-results::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--accent-deep),
    color-mix(in srgb, var(--accent-deep) 78%, black)
  );
}
.shop-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  padding: 4px 4px 10px;
  scroll-snap-type: y proximity;
}
.shop-results-section {
  display: grid;
  gap: 10px;
}
.shop-results-heading {
  margin: 0;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.product-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  overflow: clip;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    var(--card),
    color-mix(in srgb, var(--card) 82%, var(--accent-soft))
  );
  box-shadow: 0 10px 26px rgb(0 0 0 / 7%);
  scroll-snap-align: start;
}
.product-card[data-fit-status="fit"] {
  border-color: color-mix(in srgb, #6bbf59 38%, var(--line));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #effaf0 82%, var(--card)),
    color-mix(in srgb, #f7fff8 66%, var(--accent-soft))
  );
}
.product-card[data-fit-status="larger"] {
  border-color: color-mix(in srgb, #cc5a4f 28%, var(--line));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #fff2ef 82%, var(--card)),
    color-mix(in srgb, #fff8f6 66%, var(--accent-soft))
  );
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: color-mix(in srgb, var(--accent-soft) 65%, var(--card));
  clip-path: inset(0 round 18px 18px 0 0);
}
.product-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 0) 28%),
    radial-gradient(circle at 72% 18%, rgb(255 255 255 / 16%), transparent 34%),
    radial-gradient(circle at 24% 82%, rgb(255 255 255 / 12%), transparent 40%);
  z-index: 1;
  pointer-events: none;
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 42%),
    inset 0 -18px 28px rgb(0 0 0 / 8%);
  z-index: 1;
  pointer-events: none;
}
.product-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    filter 0.18s ease,
    transform 0.18s ease;
}
.product-card.has-real-image .product-media {
  background: #f5eee7;
}
.product-card:hover .product-media img,
.product-card:focus-within .product-media img {
  filter: saturate(1.08) brightness(1.02) contrast(1.02);
  transform: scale(1.01);
}
@media (max-width: 720px) {
  .shop-track {
    grid-template-columns: minmax(0, 1fr);
  }
  .shop-results {
    max-height: min(62vh, 720px);
  }
  .product-card {
    min-height: 0;
  }
  .shop-launch {
    font-size: 1rem;
  }
}
@media (min-width: 721px) and (max-width: 1120px) {
  .shop-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.product-card-body {
  display: grid;
  gap: 7px;
  padding: 10px 10px 12px;
  justify-items: center;
  text-align: center;
}
.product-card-body h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.22;
  font-weight: 850;
}
.product-price {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 850;
  color: var(--accent-deep);
}
.product-button {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    0 12px 28px rgb(143 88 59 / 16%);
}
.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(64px, 0.65fr);
  gap: 7px;
  width: 100%;
}
.product-fit-button {
  min-width: 0;
  padding: 8px 9px;
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, var(--accent-soft));
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.product-fit-button:hover,
.product-fit-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  outline: none;
}
.product-button:hover,
.product-button:focus-visible {
  background: var(--accent-deep);
  color: #fff;
  border-color: #cc7300;
  transform: translateY(-1px);
}
.shop-empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
}
.toolbar #shop-button {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%);
}
.toolbar #shop-button:hover,
.toolbar #shop-button:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.shop-dialog .dialog-close {
  font-size: 28px;
  line-height: 1;
  padding: 0 4px 2px;
  z-index: 2;
}
.shop-dialog .notice {
  margin-bottom: 0;
}
.shop-dialog > form {
  margin-bottom: 0;
}
.shop-dialog h2 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}
.shop-dialog > .eyebrow {
  margin-bottom: 6px;
}
.shop-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: stretch;
  gap: 16px;
  width: 100%;
  padding-right: 74px;
}
.shop-hero-top h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.4vw, 2.85rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  margin-top: 10px;
  white-space: nowrap;
  position: relative;
}
.shop-sort .shop-dropdown-label {
  font-size: 13px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.02em;
}
.shop-sort-button {
  min-height: 34px;
  min-width: 142px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--accent));
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    #fff,
    color-mix(in srgb, var(--card) 92%, var(--accent-soft))
  );
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 80%),
    0 6px 14px rgb(60 42 45 / 5%);
  position: relative;
}
.shop-sort-button::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}
.shop-sort-button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 72%, transparent);
  outline: none;
}
.shop-sort-button::after {
  content: none;
  display: none;
}
.shop-sort .shop-dropdown-menu {
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 220px;
}
.shop-dropdown-menu[hidden] {
  display: none;
}
.shop-category-area {
  display: grid;
  gap: 12px;
}
.shop-category-area .shop-dropdown-label {
  font-size: 13px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.02em;
}
.shop-category-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  padding: 2px 0 6px;
}
.shop-category-grid::-webkit-scrollbar {
  height: 6px;
}
.shop-category-grid::-webkit-scrollbar-track {
  background: transparent;
}
.shop-category-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 72%, transparent);
}
.shop-category-tile {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 78px;
  min-width: 88px;
  flex: 1 0 88px;
  padding: 14px 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--accent));
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    #fff,
    color-mix(in srgb, var(--card) 92%, var(--accent-soft))
  );
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 82%),
    0 8px 18px rgb(60 42 45 / 5%);
}
.shop-category-tile[aria-selected="true"] {
  background: linear-gradient(
    180deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 84%, var(--accent-deep))
  );
  border-color: var(--accent-deep);
  color: #fff;
}
.shop-category-icon {
  width: 26px;
  height: 26px;
  color: currentColor;
}
.shop-category-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.shop-category-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.shop-results-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent));
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    #fff,
    color-mix(in srgb, var(--card) 94%, var(--accent-soft))
  );
}
.shop-results-count {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}
.shop-filter-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}
.shop-filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, var(--accent));
  background: color-mix(in srgb, var(--accent-soft) 62%, #fff);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}
.shop-clear-all {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0;
}
.product-card-body h3 {
  font-size: 0.9rem;
  line-height: 1.18;
}
.product-size {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-2);
  font-weight: 600;
}
.product-price-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
@media (max-width: 880px) {
  .shop-hero {
    grid-template-columns: 1fr;
  }
  .shop-hero-top {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 58px;
  }
  .shop-hero-top h2 {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }
  .shop-sort {
    justify-content: flex-end;
    margin-top: 6px;
  }
  .shop-category-grid {
    width: 100%;
  }
  .shop-results-bar {
    align-items: center;
  }
  .shop-track {
    grid-auto-columns: minmax(220px, 82vw);
  }
  .shop-launch {
    min-height: 76px;
    font-size: 1.1rem;
  }
}
.measure-dialog {
  width: min(720px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  overflow: auto;
}
.measurement-tip {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}
.measurement-tip ol {
  margin: 6px 0 0;
  padding-left: 20px;
}
.measure-form {
  display: grid;
  gap: 18px;
}
.shape-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 0;
  padding: 0;
}
.shape-options legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  font-weight: 750;
}
.shape-options label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.shape-options label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.shape-options b,
.shape-options small {
  display: block;
}
.shape-options small {
  color: var(--ink-2);
}
.measure-name {
  display: grid;
  gap: 5px;
  font-weight: 700;
}
.measure-name input,
.measurement-row input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
}
.measurement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.measurement-row {
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.measurement-row legend {
  padding: 0 5px;
  font-weight: 750;
}
.measurement-row label {
  display: grid;
  gap: 3px;
  color: var(--ink-2);
  font-size: 12px;
}
.measurement-row input {
  width: 84px;
  color: var(--ink);
  font-size: 15px;
}
.notch-fields {
  padding: 14px;
  border: 1px dashed var(--good);
  border-radius: 12px;
}
.notch-fields h3,
.notch-fields p {
  margin-top: 0;
}
.measure-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 1100px) {
  .planner-screen {
    grid-template-columns: 168px minmax(0, 1fr) 264px;
  }
  .library-heading > span {
    display: none;
  }
}
@media (max-width: 900px) {
  .start-screen {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-right: max(28px, 7vw);
    padding-left: max(28px, 7vw);
  }
  .hero-shot {
    order: 4;
    width: min(100%, 760px);
    margin: 0 auto;
  }
  .start-screen.no-saved-plans .hero-shot {
    grid-column: 1;
    order: 2;
    width: min(100%, 760px);
    margin: 0 auto;
  }
  .dorm-finder {
    width: min(100%, 700px);
    margin: 0 auto;
  }
  .dorm-finder h1 {
    max-width: 13ch;
  }
  .landing-benefits {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .recent-plans {
    grid-column: 1;
  }
  .planner-screen {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .library-panel,
  .inspector-panel {
    border: 0;
    border-top: 1px solid var(--line);
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .library-panel {
    padding: 18px;
  }
  .library-heading > span {
    display: block;
  }
  .library {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .library-section {
    align-content: start;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card) 72%, transparent);
  }
  .library-help {
    margin-top: 0;
  }
  .canvas-column {
    order: 2;
    padding: 12px;
    height: auto;
    overflow: visible;
    display: block;
  }
  .inspector-panel {
    order: 3;
    padding: 18px;
  }
  .inspector-main,
  .inspector-panel > section {
    width: min(100%, 720px);
    margin-right: auto;
    margin-left: auto;
  }
  .inspector-main .size-options {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  #plan,
  #elevation,
  #axon {
    height: auto;
    min-height: 420px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 66px;
    padding: 0 14px;
  }
  .tagline {
    display: none;
  }
  .topbar-nav {
    margin-left: auto;
  }
  .topbar-nav > a:first-child {
    display: none;
  }
  .topbar-nav .nav-cta {
    padding: 9px 11px;
    font-size: 11px;
  }
  body:has(#planner-screen:not([hidden])) .save-status {
    display: none;
  }
  .start-screen {
    min-height: calc(100dvh - 66px);
    gap: 38px;
    padding: 38px 16px 48px;
  }
  .dorm-finder h1 {
    font-size: clamp(39px, 12.5vw, 50px);
  }
  .finder-intro {
    font-size: 15.5px;
  }
  .room-start {
    padding: 18px;
    border-radius: 16px;
  }
  .room-start-heading > span {
    display: none;
  }
  .start-tabs button {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 10.5px;
    line-height: 1.25;
  }
  .finder-card {
    grid-template-columns: 1fr;
  }
  .finder-open,
  .finder-choice-note {
    grid-column: 1;
  }
  .hero-shot {
    margin-top: 0;
    padding-bottom: 0;
  }
  .hero-shot::before {
    width: 170px;
    height: 170px;
    top: 16px;
    right: 12px;
  }
  .preview-window {
    border-radius: 15px;
    transform: none;
  }
  .preview-topline {
    min-height: 44px;
    grid-template-columns: 1fr auto;
  }
  .preview-topline .layout-ready {
    display: none;
  }
  .match-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 28px);
    margin: -26px 14px 0;
    padding: 17px;
  }
  .hero-shot figcaption {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: 12px 14px 0;
  }
  .landing-benefits {
    gap: 28px;
    padding: 30px 22px;
    border-radius: 20px;
  }
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .benefit-grid li,
  .benefit-grid li:first-child,
  .benefit-grid li:last-child {
    padding: 19px 0;
    border: 0;
    border-top: 1px solid rgb(255 255 255 / 15%);
  }
  .benefit-grid h3 {
    margin: 8px 0 5px;
  }
  .recent-plans {
    padding: 24px;
  }
  .recent-plan {
    grid-template-columns: 1fr 1fr;
  }
  .recent-plan-open {
    grid-column: 1 / -1;
  }
  .measurement-grid,
  .shape-options {
    grid-template-columns: 1fr;
  }
  .measurement-row {
    justify-content: space-between;
  }
  .library {
    grid-template-columns: repeat(2, 1fr);
  }
  .room-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
