/* Ordered modules retain the established cascade and existing visual design. */
:root {
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  color:#1d1d1f;
  background:#f5f5f7;
  font-size:14px;
  line-height:1.5;
  color-scheme:light;
  --blue:#0071e3;
  --muted:#6e6e73;
  --line:#e5e5e8
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

button,input,select,textarea {
  font:inherit
}

button {
  cursor:pointer;
  color:inherit
}

button:disabled {
  cursor:default
}

svg {
  width:20px;
  height:20px;
  flex-shrink:0
}

button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible {
  outline:3px solid #0071e37a;
  outline-offset:4px
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}

button {
  transition:background .15s,color .15s,box-shadow .15s
}

main:focus {
  outline:none
}

.skip {
  position:fixed;
  top:-70px;
  left:20px;
  background:#fff;
  color:var(--blue);
  padding:12px 20px;
  z-index:100;
  border-radius:12px
}

.skip:focus {
  top:12px
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0)
}

.wordmark {
  font-size:17px;
  line-height:1.1;
  font-weight:750;
  letter-spacing:1.6px;
  display:inline-block;
  text-align:center;
  color:#29292b
}

.wordmark>span {
  display:block;
  font-size:7px;
  font-weight:500;
  letter-spacing:3px;
  margin-top:7px;
  color:#86868b
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:11px 19px;
  border:0;
  border-radius:12px;
  background:#f0f0f3;
  color:#343437;
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
  line-height:1.4
}

.button svg {
  width:17px;
  height:17px
}

.button:hover {
  background:#e7e7ec
}

.button.primary {
  background:var(--blue);
  color:#fff;
  box-shadow:0 2px 4px #0071e31a
}

.button.primary:hover {
  background:#0077ed
}

.button.primary:active {
  background:#0067ce
}

.button:disabled {
  opacity:.45
}

.button.text-button {
  background:transparent;
  color:var(--muted);
  font-weight:400
}

.button.text-button:hover {
  background:#ececf1;
  color:#1d1d1f
}

.button.danger {
  background:#fff1ef;
  color:#c63328
}

.button.danger:hover {
  background:#ffe7e3
}

.start-screen {
  min-height:100svh;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:100px 28px
}

.start-brand {
  position:absolute;
  top:55px;
  left:50%;
  transform:translateX(-50%)
}

.start-center {
  text-align:center;
  margin-top:-18px
}

.studio-symbol {
  width:86px;
  height:86px;
  border-radius:25px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 31px;
  box-shadow:0 4px 24px #17172008,inset 0 0 0 1px #00000004;
  color:#53535c
}

.studio-symbol svg {
  width:53px;
  height:53px
}

.start-center h1 {
  font-size:clamp(32px,3.8vw,48px);
  font-weight:600;
  letter-spacing:-1.8px;
  line-height:1.18;
  margin:0 0 17px
}

.start-center>p {
  font-size:17px;
  color:var(--muted);
  margin:0 0 33px;
  letter-spacing:-.25px
}

.start-primary {
  font-size:16px;
  padding:15px 26px;
  border-radius:15px;
  min-height:52px;
  gap:9px
}

.start-primary svg {
  width:20px;
  height:20px
}

.history-shortcut {
  position:absolute;
  top:43px;
  right:47px;
  background:transparent;
  border:0;
  border-radius:12px;
  min-height:44px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:#77777d
}

.history-shortcut svg {
  width:14px;
  height:14px
}

.history-shortcut:hover {
  color:#1d1d1f;
  background:#ececf1
}

.start-footnote {
  position:absolute;
  bottom:37px;
  color:#929298;
  font-size:11px
}

.history-screen,.preview-screen {
  width:min(1100px,100%);
  margin:0 auto;
  padding:36px 40px 35px
}

.screen-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:57px
}

.screen-top .wordmark {
  font-size:14px
}

.screen-top .wordmark>span {
  font-size:6px
}

.screen-top>.button {
  margin-left:-15px
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:28px
}

.page-heading h1 {
  font-size:35px;
  font-weight:600;
  letter-spacing:-1px;
  line-height:1.2;
  margin:8px 0;
  overflow-wrap:anywhere
}

.page-heading p:not(.eyebrow) {
  font-size:13px;
  color:var(--muted);
  margin:0;
  overflow-wrap:anywhere
}

.eyebrow {
  font-size:10px;
  font-weight:500;
  letter-spacing:1.4px;
  color:#86868b;
  margin:0
}

.filters {
  display:grid;
  grid-template-columns:minmax(150px,1fr) 210px 190px;
  gap:10px;
  margin-bottom:17px
}

.search {
  position:relative
}

.search svg {
  position:absolute;
  top:13px;
  left:13px;
  width:17px;
  height:17px;
  color:#94949a
}

.search input {
  padding-left:39px
}

input,select,textarea {
  width:100%;
  min-height:46px;
  border:1px solid #d8d8df;
  border-radius:11px;
  background:#fff;
  color:#1d1d1f;
  padding:12px 13px;
  box-shadow:0 1px 1px #00000002
}

input:hover,select:hover,textarea:hover {
  border-color:#b7b7c0
}

input:focus,select:focus,textarea:focus {
  border-color:#0071e3
}

input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:none;
  box-shadow:0 0 0 3px rgba(0,113,227,.11),0 0 15px rgba(0,113,227,.12);
}

input::placeholder,textarea::placeholder {
  color:#95959b;
  opacity:1
}

input:disabled,select:disabled,textarea:disabled {
  opacity:.6
}

select {
  padding-right:28px
}

textarea {
  resize:vertical;
  line-height:1.75
}

input[type=checkbox] {
  width:18px;
  height:18px;
  min-height:0;
  accent-color:var(--blue);
  box-shadow:none;
  flex-shrink:0
}

.filters input,.filters select {
  font-size:12px;
  background:#fbfbfd
}

.empty-state {
  text-align:center;
  min-height:350px;
  background:#fff;
  border:1px solid #e6e6eb;
  border-radius:21px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:30px 20px
}

.empty-icon {
  width:53px;
  height:53px;
  background:#f4f4f7;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  color:#92929b;
  margin-bottom:12px
}

.empty-icon svg {
  width:25px;
  height:25px
}

.empty-state h3 {
  font-size:19px;
  font-weight:550;
  margin:8px 0
}

.empty-state p {
  font-size:13px;
  color:var(--muted);
  margin:0 0 22px;
  line-height:1.8
}

.empty-caption {
  display:none
}

.history-tools {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:15px
}

.history-tools .button {
  font-size:11px;
  padding:9px 12px
}

.history-tools .button:first-child {
  margin-left:-12px
}

.history-tools .button svg {
  width:15px
}

.history-tools>span {
  margin-left:auto;
  font-size:10px;
  color:#8d8d93;
  text-align:right
}

.table-wrap {
  overflow-x:auto;
  background:#fff;
  border:1px solid #e5e5eb;
  border-radius:18px
}

table {
  width:100%;
  border-collapse:collapse;
  font-size:12px
}

th {
  text-align:left;
  font-size:10px;
  font-weight:500;
  color:#85858c;
  padding:17px 19px;
  background:#fbfbfd;
  border-bottom:1px solid #eaeaf0
}

td {
  padding:21px 19px;
  color:#6e6e73;
  border-bottom:1px solid #f0f0f4
}

tbody tr:last-child td {
  border-bottom:0
}

tr:hover td {
  background:#fdfdfe
}

.record-name {
  background:none;
  border:0;
  padding:0;
  text-align:left;
  color:#1d1d1f;
  font-size:13px;
  font-weight:550;
  line-height:1.5
}

.record-name:hover {
  color:var(--blue)
}

.address {
  display:block;
  color:#8d8d94;
  font-size:11px;
  margin-top:5px;
  max-width:300px;
  overflow-wrap:anywhere
}

.nowrap {
  white-space:nowrap
}

.row-actions {
  display:flex;
  gap:7px
}

.icon-button {
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f5f5f8;
  border:0;
  border-radius:9px;
  width:37px;
  height:37px;
  color:#74747c
}

.icon-button svg {
  width:16px;
  height:16px
}

.icon-button:hover {
  color:var(--blue);
  background:#edf4ff
}

.wizard-shell {
  min-height:100svh
}

.wizard-header {
  height:88px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:0 35px;
  background:#f5f5f7
}

.wizard-header>.button {
  justify-self:start;
  font-size:12px;
  padding-left:12px
}

.wizard-count {
  font-size:11px;
  color:#85858d;
  justify-self:end
}

.wizard-progress {
  height:3px;
  width:100%;
  background:#e5e5ea;
  position:relative
}

.wizard-progress>span {
  display:block;
  height:100%;
  background:var(--blue);
  transition:width .3s ease;
  border-radius:0 2px 2px 0
}

.wizard-body {
  display:grid;
  grid-template-columns:247px minmax(0,1fr);
  width:min(var(--workspace-max-width),100%);
  margin:0 auto;
  padding:27px 30px 40px;
  gap:34px
}

.steps {
  border:1px solid #e6e6ed;
  border-radius:18px;
  background:rgba(255,255,255,.5);
  backdrop-filter:blur(18px);
  padding:18px 11px 15px;
  position:sticky;
  top:22px;
  align-self:start;
  max-height:calc(100svh - 45px);
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#d8d8df transparent
}

.rail-heading {
  font-size:11px;
  font-weight:600;
  color:#6e6e78;
  padding:2px 11px 12px
}

.step {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  border:0;
  background:none;
  border-radius:9px;
  padding:9px 10px;
  min-height:36px;
  text-align:left;
  font-size:11px;
  color:#6e6e78;
  line-height:1.35;
  margin:1px 0
}

.step-number {
  display:flex;
  align-items:center;
  justify-content:center;
  width:22px;
  min-width:22px;
  height:20px;
  font-size:9px;
  color:#9898a0;
  font-variant-numeric:tabular-nums
}

.step-number svg {
  width:13px;
  height:13px
}

.step.active {
  background:#e8f0fc;
  color:#0066cc;
  font-weight:550
}

.step.active .step-number {
  color:#0071e3
}

.step.completed .step-number {
  color:#0071e3
}

.step:not(:disabled):hover {
  background:#eaeaf0
}

.step.active:not(:disabled):hover {
  background:#dfebfc
}

.step:disabled {
  color:#aeafb7;
  opacity:.65
}

.step:disabled .step-number {
  color:#b5b5bf
}

.rail-group {
  font-size:9px;
  color:#898991;
  padding:16px 12px 7px;
  text-transform:uppercase;
  letter-spacing:.65px
}

.step.technical-step {
  padding-left:13px;
  font-size:10px;
  min-height:34px
}

.rail-note {
  font-size:9px;
  color:#9a9aa1;
  line-height:1.7;
  padding:17px 11px 0;
  border-top:1px solid #e8e8ee;
  margin-top:13px
}

.wizard-main {
  width:100%;
  min-width:0;
  padding-top:15px
}

.step-window {
  position:relative;
  max-width:var(--form-content-max);
  margin:0 auto;
  background:#fff;
  border-radius:25px;
  border:1px solid #e9e9ee;
  box-shadow:0 9px 35px #18183004,0 1px 4px #18183003;
  padding:37px 39px 0;
  min-height:540px
}

.window-step {
  font-size:10px;
  font-variant-numeric:tabular-nums;
  color:#a0a0a8;
  letter-spacing:.6px;
  margin-bottom:20px
}

.panel-title {
  margin-bottom:31px
}

.panel-title>span {
  display:none
}

.panel-title h1,.panel-title h2 {
  font-size:29px;
  font-weight:600;
  line-height:1.23;
  letter-spacing:-.8px;
  margin:0 0 13px
}

.panel-title p {
  color:var(--muted);
  font-size:12px;
  line-height:1.85;
  margin:0;
  max-width:650px
}

.field-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:23px 20px
}

.field {
  min-width:0
}

.field.full {
  grid-column:1/-1
}

.field label,.checkbox-fieldset legend {
  display:block;
  font-size:12px;
  font-weight:500;
  color:#44444a;
  line-height:1.65;
  margin-bottom:9px
}

.field small {
  display:block;
  font-size:10px;
  line-height:1.7;
  color:#8d8d94;
  margin-top:8px
}

.required {
  color:#0071e3
}

.conditional {
  margin-top:10px
}

.conditional[hidden] {
  display:none
}

.form-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  border-top:1px solid #eeeef2;
  padding:24px 0;
  margin-top:35px
}

.form-footer>span {
  font-size:10px;
  color:#92929a
}

.form-footer>div {
  display:flex;
  align-items:center;
  gap:9px
}

.form-footer .button {
  min-width:94px
}

.checkbox-fieldset {
  border:0;
  padding:0;
  margin:0
}

.checkbox-fieldset legend {
  padding:0;
  margin-bottom:17px
}

.check-option {
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px 17px;
  min-height:54px;
  border:1px solid #e0e0e7;
  border-radius:12px;
  margin:0 0 10px;
  cursor:pointer;
  font-size:12px
}

.check-option input {
  margin:0
}

.check-option:has(input:checked) {
  background:#f3f8ff;
  border-color:#8db9f4
}

.check-option:hover {
  border-color:#aabedb
}

.form-error {
  border:1px solid #efb6ae;
  background:#fff5f3;
  border-radius:11px;
  padding:13px 15px;
  color:#ac3528;
  font-size:12px;
  margin-bottom:20px;
  line-height:1.7
}

.catalog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:-11px 0 12px
}

.selection-count {
  font-size:11px;
  color:#85858c
}

.catalog-heading .button {
  font-size:11px;
  padding:8px 10px;
  margin-right:-10px
}

.solution-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px
}

.solution {
  display:flex;
  flex-direction:column;
  text-align:left;
  min-width:0;
  background:#fff;
  border:1px solid #e1e1e8;
  border-radius:16px;
  padding:0;
  overflow:hidden;
  transition:border-color .15s,box-shadow .15s
}

.solution:hover {
  border-color:#9cbbdf;
  box-shadow:0 3px 12px #0071e309
}

.solution.selected {
  border-color:#0071e3;
  box-shadow:0 0 0 1px #0071e3;
  background:#f8fbff
}

.solution-image {
  display:block;
  width:100%;
  height:173px;
  position:relative;
  background:#f1f1f4
}

.solution-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}

.solution-check {
  position:absolute;
  top:11px;
  right:11px;
  width:27px;
  height:27px;
  border:1px solid #ffffffb3;
  background:#ffffffed;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#71717a;
  border-radius:50%;
  box-shadow:0 1px 5px #00000012
}

.solution-check svg {
  width:15px;
  height:15px
}

.solution.selected .solution-check {
  background:#0071e3;
  border-color:#0071e3;
  color:#fff
}

.solution-name {
  font-size:12px;
  font-weight:500;
  line-height:1.6;
  padding:14px 15px 5px;
  overflow-wrap:anywhere
}

.solution-status {
  font-size:10px;
  color:#8a8a93;
  padding:0 15px 15px;
  margin-top:auto
}

.solution.selected .solution-status {
  color:#0071e3
}

.optional-note {
  font-size:10px;
  color:#95959d;
  margin:20px 0 0
}

.summary-block {
  margin:0 0 30px
}

.summary-block>h3 {
  font-size:17px;
  font-weight:550;
  border-bottom:1px solid var(--line);
  padding-bottom:14px;
  margin:0 0 14px;
  letter-spacing:-.2px
}

.details-list {
  margin:0
}

.details-list>div {
  display:grid;
  grid-template-columns:42% minmax(0,1fr);
  gap:20px;
  padding:9px 0
}

.details-list dt {
  font-size:11px;
  color:#8a8a91
}

.details-list dd {
  font-size:12px;
  color:#45454b;
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

.summary-category {
  padding:13px 0;
  border-bottom:1px solid #f0f0f4
}

.summary-category h4 {
  font-size:12px;
  font-weight:550;
  margin:0 0 11px
}

.muted {
  font-size:11px;
  color:#9898a0;
  margin:0
}

.mini-solutions {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px
}

.mini-solutions>div {
  border:1px solid #e6e6ed;
  border-radius:10px;
  overflow:hidden
}

.mini-solutions img {
  width:100%;
  height:100px;
  object-fit:cover;
  display:block
}

.mini-solutions span {
  display:block;
  padding:9px 10px;
  font-size:10px;
  color:#61616a;
  overflow-wrap:anywhere
}

.long-text {
  font-size:12px;
  line-height:1.85;
  color:#55555e;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

.pill {
  display:inline-block;
  padding:3px 7px;
  background:#eef5ff;
  color:#0071e3;
  font-size:10px;
  border-radius:6px;
  margin-left:5px
}

.review-note {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px;
  background:#f5f8fc;
  border-radius:13px;
  color:#5b7391
}

.review-note>svg {
  width:18px;
  margin-top:1px
}

.review-note p {
  font-size:11px;
  line-height:1.8;
  margin:0
}

.preview-screen {
  max-width:1000px
}

.heading-actions {
  display:flex;
  gap:10px;
  flex-shrink:0
}

.preview-document {
  background:#fff;
  border:1px solid #e6e6ec;
  border-radius:24px;
  padding:36px 40px
}

.preview-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:20px
}

.preview-bottom>span {
  font-size:10px;
  color:#93939b
}

.preview-bottom>div {
  display:flex;
  gap:10px
}

.preview-bottom .button {
  font-size:11px
}

.toast {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  max-width:min(90vw,590px);
  z-index:100;
  background:#fff;
  color:#41414b;
  border:1px solid #e2e2ea;
  border-radius:15px;
  padding:16px 22px;
  box-shadow:0 7px 35px #26263b1a;
  font-size:12px
}

.toast.error {
  color:#ac3528;
  background:#fff8f6;
  border-color:#f0c4ba
}

.loading {
  padding:100px 30px;
  max-width:800px;
  margin:0 auto;
  text-align:center;
  color:#86868e
}

.loading h1 {
  font-weight:550;
  color:#1d1d1f
}

.loading .button {
  margin-top:15px
}

@media(min-width:1550px) {
  .wizard-body {
    padding-top:45px;
    gap:55px;
    grid-template-columns:255px minmax(0,1fr)
  }

  .wizard-main {
    padding-top:15px
  }

  .step-window {
    padding:43px 47px 0
  }

  .solution-image {
    height:190px
  }

}

@media(max-width:1100px) {
  .wizard-header {
    padding:0 23px
  }

  .wizard-body {
    grid-template-columns:213px minmax(0,1fr);
    gap:22px;
    padding:25px 22px 35px
  }

  .steps {
    padding:15px 8px
  }

  .step {
    font-size:10px;
    gap:7px;
    padding-left:8px
  }

  .step.technical-step {
    font-size:9px;
    padding-left:9px
  }

  .rail-heading {
    font-size:10px
  }

  .step-window {
    padding:30px 27px 0;
    border-radius:22px
  }

  .panel-title h1,.panel-title h2 {
    font-size:26px
  }

  .solution-image {
    height:155px
  }

  .form-footer {
    flex-wrap:wrap;
    gap:12px
  }

  .form-footer>span {
    font-size:9px
  }

  .form-footer>div {
    margin-left:auto
  }

  .history-screen,.preview-screen {
    padding-left:30px;
    padding-right:30px
  }

  .page-heading h1 {
    font-size:30px
  }

  .filters {
    grid-template-columns:minmax(150px,1fr) 185px 170px
  }

  .history-tools {
    flex-wrap:wrap
  }

  .history-tools>span {
    width:100%;
    text-align:left
  }

  .mini-solutions {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

}

@media(max-width:800px) {
  .wizard-body {
    grid-template-columns:175px minmax(0,1fr);
    padding:19px 16px 30px;
    gap:16px
  }

  .step-window {
    padding:26px 23px 0
  }

  .step {
    font-size:9px;
    gap:4px
  }

  .step-number {
    font-size:8px;
    min-width:19px;
    width:19px
  }

  .step.technical-step {
    font-size:9px;
    padding-left:7px
  }

  .steps {
    padding:13px 5px
  }

  .rail-group {
    font-size:8px;
    padding-left:9px
  }

  .panel-title h1,.panel-title h2 {
    font-size:24px
  }

  .panel-title p {
    font-size:11px
  }

  .field-grid {
    grid-template-columns:1fr;
    gap:20px
  }

  .solution-grid {
    gap:12px
  }

  .solution-image {
    height:135px
  }

  .solution-name {
    font-size:11px;
    padding:12px 12px 5px
  }

  .solution-status {
    font-size:9px;
    padding:0 12px 12px
  }

  .solution-check {
    width:24px;
    height:24px;
    top:9px;
    right:9px
  }

  .form-footer>span {
    width:100%
  }

  .form-footer .button {
    font-size:12px;
    min-width:87px
  }

  .filters {
    grid-template-columns:1fr 1fr
  }

  .filters .search {
    grid-column:1/-1
  }

  .heading-actions {
    flex-direction:column
  }

  .details-list>div {
    grid-template-columns:1fr;
    gap:5px
  }

  .preview-document {
    padding:30px
  }

  .screen-top {
    margin-bottom:40px
  }

  .history-screen,.preview-screen {
    padding-top:27px
  }

  .history-tools .button {
    padding:9px 10px
  }

  .history-tools .button:first-child {
    margin-left:-10px
  }

}

@media(max-width:600px) {
  .start-brand {
    top:38px
  }

  .wordmark {
    font-size:15px
  }

  .wordmark>span {
    font-size:6px;
    letter-spacing:2.6px
  }

  .history-shortcut {
    top:87px;
    right:18px;
    font-size:11px
  }

  .start-center {
    margin-top:-22px
  }

  .studio-symbol {
    width:74px;
    height:74px;
    border-radius:22px;
    margin-bottom:27px
  }

  .studio-symbol svg {
    width:46px;
    height:46px
  }

  .start-center h1 {
    font-size:31px;
    letter-spacing:-1.2px
  }

  .start-center>p {
    font-size:14px;
    line-height:1.8;
    max-width:250px;
    margin:0 auto 28px
  }

  .start-primary {
    font-size:15px;
    min-height:50px;
    padding:14px 24px
  }

  .start-footnote {
    font-size:9px;
    bottom:25px
  }

  .wizard-header {
    height:77px;
    padding:0 14px
  }

  .wizard-header>.button {
    font-size:0;
    padding:10px;
    width:44px
  }

  .wizard-header>.button svg {
    font-size:initial;
    width:18px;
    height:18px
  }

  .wizard-header .wordmark {
    font-size:12px;
    letter-spacing:1.2px
  }

  .wizard-header .wordmark>span {
    font-size:5px;
    letter-spacing:2.2px;
    margin-top:5px
  }

  .wizard-count {
    font-size:9px
  }

  .wizard-body {
    grid-template-columns:82px minmax(0,1fr);
    gap:9px;
    padding:15px 9px 25px
  }

  .wizard-main {
    padding-top:0
  }

  .steps {
    border-radius:13px;
    padding:10px 4px 8px;
    top:10px;
    max-height:calc(100svh - 20px)
  }

  .rail-heading {
    font-size:8px;
    line-height:1.5;
    padding:0 5px 9px
  }

  .step {
    display:flex;
    flex-direction:column;
    gap:3px;
    align-items:flex-start;
    padding:7px 5px;
    min-height:49px;
    border-radius:7px;
    font-size:8px;
    line-height:1.4;
    margin:2px 0
  }

  .step-number {
    font-size:7px;
    width:14px;
    height:13px;
    min-width:14px;
    justify-content:flex-start
  }

  .step-number svg {
    width:11px;
    height:11px
  }

  .step.technical-step {
    font-size:7px;
    min-height:47px;
    padding:7px 5px
  }

  .rail-group {
    font-size:6px;
    letter-spacing:0;
    padding:10px 5px 4px;
    overflow-wrap:break-word
  }

  .rail-note {
    font-size:6px;
    padding:10px 5px 0;
    line-height:1.6
  }

  .step-window {
    border-radius:18px;
    padding:23px 16px 0;
    min-height:550px
  }

  .window-step {
    font-size:9px;
    margin-bottom:17px
  }

  .panel-title {
    margin-bottom:24px
  }

  .panel-title h1,.panel-title h2 {
    font-size:21px;
    letter-spacing:-.55px;
    margin-bottom:10px
  }

  .panel-title p {
    font-size:10px;
    line-height:1.8
  }

  .field label,.checkbox-fieldset legend {
    font-size:10px;
    margin-bottom:7px
  }

  .field-grid {
    gap:18px
  }

  .field small {
    font-size:8px;
    line-height:1.7
  }

  .field input,.field select,.field textarea {
    font-size:12px;
    padding:11px 10px;
    border-radius:9px;
    min-height:43px
  }

  textarea {
    max-width:100%
  }

  .field select {
    padding-right:19px
  }

  .form-footer {
    padding:18px 0;
    margin-top:25px;
    gap:13px
  }

  .form-footer>span {
    font-size:8px
  }

  .form-footer>div {
    width:100%;
    justify-content:flex-end;
    gap:6px
  }

  .form-footer .button {
    padding:10px 11px;
    min-height:43px;
    min-width:0;
    font-size:11px;
    border-radius:10px;
    gap:5px
  }

  .form-footer .button svg {
    width:14px;
    height:14px
  }

  .check-option {
    font-size:10px;
    padding:12px 10px;
    gap:9px;
    min-height:49px;
    border-radius:10px
  }

  .check-option input {
    width:16px;
    height:16px
  }

  .solution-grid {
    grid-template-columns:1fr;
    gap:14px
  }

  .solution-image {
    height:164px
  }

  .solution-name {
    font-size:11px
  }

  .solution-status {
    font-size:9px
  }

  .solution {
    border-radius:13px
  }

  .catalog-heading {
    gap:5px;
    margin:-8px 0 10px
  }

  .catalog-heading .button {
    font-size:9px;
    padding:8px 6px;
    margin-right:-6px
  }

  .selection-count {
    font-size:9px
  }

  .optional-note {
    font-size:8px;
    margin-top:17px
  }

  .summary-block>h3 {
    font-size:14px;
    padding-bottom:11px
  }

  .details-list dt {
    font-size:9px
  }

  .details-list dd {
    font-size:10px
  }

  .details-list>div {
    padding:8px 0
  }

  .summary-category h4 {
    font-size:10px
  }

  .summary-category .muted {
    font-size:9px
  }

  .mini-solutions {
    grid-template-columns:1fr
  }

  .mini-solutions img {
    height:140px
  }

  .mini-solutions span {
    font-size:9px
  }

  .review-note {
    gap:8px;
    padding:12px
  }

  .review-note p {
    font-size:9px
  }

  .review-note svg {
    width:15px
  }

  .long-text {
    font-size:10px
  }

  .form-error {
    font-size:10px;
    padding:11px
  }

  .history-screen,.preview-screen {
    padding:23px 18px 30px
  }

  .screen-top {
    margin-bottom:35px
  }

  .screen-top>.button {
    font-size:11px;
    margin-left:-12px
  }

  .screen-top .wordmark {
    font-size:12px
  }

  .screen-top .wordmark>span {
    font-size:5px
  }

  .page-heading {
    align-items:flex-start;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:23px
  }

  .page-heading h1 {
    font-size:28px
  }

  .page-heading>.button {
    font-size:12px;
    padding:11px 13px
  }

  .page-heading p:not(.eyebrow) {
    font-size:11px
  }

  .eyebrow {
    font-size:8px
  }

  .filters {
    gap:8px
  }

  .filters input,.filters select {
    font-size:11px;
    padding-top:12px;
    padding-bottom:12px
  }

  .filters select {
    padding-left:10px;
    padding-right:22px
  }

  .empty-state {
    min-height:330px;
    padding:25px 16px;
    border-radius:17px
  }

  .empty-state h3 {
    font-size:17px
  }

  .empty-state p {
    font-size:11px
  }

  .empty-state .button {
    font-size:12px
  }

  .table-wrap {
    border-radius:15px
  }

  .table-wrap table {
    min-width:600px
  }

  .history-tools {
    gap:0 10px
  }

  .history-tools .button {
    font-size:10px;
    gap:6px
  }

  .history-tools>span {
    font-size:9px;
    padding-top:12px
  }

  .heading-actions {
    flex-direction:row;
    width:100%;
    gap:8px
  }

  .heading-actions .button {
    font-size:11px;
    padding:11px 12px;
    flex:1
  }

  .preview-document {
    border-radius:19px;
    padding:25px 20px
  }

  .preview-document .mini-solutions {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .preview-document .mini-solutions img {
    height:110px
  }

  .preview-bottom {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:12px
  }

  .preview-bottom>span {
    font-size:9px
  }

  .preview-bottom>div {
    width:100%;
    justify-content:flex-end
  }

  .toast {
    font-size:11px;
    bottom:16px;
    padding:14px 17px;
    border-radius:12px
  }

  .loading {
    padding:90px 25px
  }

}

@media(prefers-reduced-transparency:reduce) {
  .steps {
    backdrop-filter:none;
    background:#fbfbfc
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important
  }

}

/* Reading sizes for the focused form. Compact navigation stays secondary. */
body {
  font-size:16px
}

.field input,.field select,.field textarea {
  font-size:16px
}

.field label,.checkbox-fieldset legend {
  font-size:14px
}

.panel-title p {
  font-size:14px;
  line-height:1.75
}

.field small {
  font-size:12px
}

.check-option {
  font-size:14px
}

.solution-name {
  font-size:14px
}

.solution-status {
  font-size:11px
}

.step {
  font-size:12px
}

.step.technical-step {
  font-size:11px
}

.form-footer .button {
  font-size:14px
}

.details-list dt {
  font-size:12px
}

.details-list dd {
  font-size:14px
}

.long-text {
  font-size:14px
}

.summary-category h4 {
  font-size:14px
}

.mini-solutions span {
  font-size:12px
}

.review-note p {
  font-size:12px
}

@media(max-width:1100px) {
  .step {
    font-size:11px
  }

  .step.technical-step {
    font-size:10px
  }

}

@media(max-width:800px) {
  .step {
    font-size:10px
  }

  .step.technical-step {
    font-size:9px
  }

  .field label,.checkbox-fieldset legend {
    font-size:13px
  }

  .panel-title p {
    font-size:13px
  }

  .field small {
    font-size:11px
  }

}

@media(max-width:600px) {
  .field input,.field select,.field textarea {
    font-size:16px
  }

  .field label,.checkbox-fieldset legend {
    font-size:12px
  }

  .panel-title p {
    font-size:12px
  }

  .field small {
    font-size:10px
  }

  .check-option {
    font-size:12px
  }

  .solution-name {
    font-size:13px
  }

  .solution-status {
    font-size:10px
  }

  .step {
    font-size:8px
  }

  .step.technical-step {
    font-size:8px
  }

  .form-footer .button {
    font-size:12px
  }

  .details-list dt {
    font-size:11px
  }

  .details-list dd {
    font-size:12px
  }

  .summary-category h4 {
    font-size:12px
  }

  .long-text {
    font-size:12px
  }

  .mini-solutions span {
    font-size:10px
  }

  .review-note p {
    font-size:11px
  }

}

.wizard-header {
  position:sticky;
  top:0;
  z-index:30
}

.wizard-progress {
  position:sticky;
  top:88px;
  z-index:31
}

.steps {
  top:112px;
  max-height:calc(100svh - 137px)
}

.form-footer {
  position:sticky;
  bottom:0;
  background:#fff;
  z-index:5
}

@media(max-width:600px) {
  .wizard-progress {
    top:77px
  }

  .steps {
    top:95px;
    max-height:calc(100svh - 110px)
  }

}

@media(prefers-contrast:more) {
  :root {
    --muted:#4c4c53;
    --line:#9b9ba4
  }

  .steps {
    background:#fff;
    border-color:#9b9ba4;
    backdrop-filter:none
  }

  .step:disabled {
    opacity:1;
    color:#777780
  }

  .step:disabled .step-number {
    color:#777780
  }

  .field label,.checkbox-fieldset legend,.panel-title p,.field small,.details-list dt,.form-footer>span,.selection-count,.optional-note,.wizard-count {
    color:#4c4c53
  }

  .step-window,.solution,.preview-document {
    border-color:#9999a3
  }

  input,select,textarea {
    border-color:#777780
  }

  .button.primary {
    background:#005bb8
  }

  .step.active {
    outline:1px solid #0066cc
  }

  .solution.selected {
    box-shadow:0 0 0 2px #005bb8
  }

}

@media(forced-colors:active) {
  .step.active,.solution.selected {
    outline:2px solid Highlight
  }

  .step:disabled {
    color:GrayText
  }

  .wizard-progress>span {
    background:Highlight
  }

  .button.primary {
    border:1px solid ButtonText
  }

  .solution-check {
    border:1px solid ButtonText
  }

}

.steps-disclosure {
  position:sticky;
  top:112px;
  align-self:start;
  min-width:0
}

.steps-disclosure>summary {
  display:none
}

.steps-disclosure>.steps {
  position:static
}

@media(max-width:600px) {
  .wizard-body {
    display:flex;
    flex-direction:column;
    gap:15px;
    padding:15px 15px 25px
  }

  .steps-disclosure {
    position:static;
    width:100%;
    border:1px solid #e1e1e8;
    border-radius:13px;
    background:#fafafc;
    overflow:hidden
  }

  .steps-disclosure>summary {
    list-style:none;
    display:flex;
    align-items:center;
    gap:12px;
    min-height:48px;
    padding:12px 15px;
    font-size:13px;
    font-weight:500;
    color:#44444d;
    cursor:pointer
  }

  .steps-disclosure>summary::-webkit-details-marker {
    display:none
  }

  .steps-disclosure>summary>span:not(.disclosure-chevron) {
    margin-left:auto;
    font-size:11px;
    font-weight:400;
    color:#87878f
  }

  .steps-disclosure>summary:focus-visible {
    outline:3px solid #0071e37a;
    outline-offset:-4px;
    border-radius:12px
  }

  .disclosure-chevron {
    font-size:20px;
    line-height:1;
    transition:transform .15s;
    color:#7d7d88
  }

  .steps-disclosure[open] .disclosure-chevron {
    transform:rotate(180deg)
  }

  .steps-disclosure>.steps {
    display:grid;
    grid-template-columns:1fr 1fr;
    border:0;
    border-top:1px solid #e5e5eb;
    border-radius:0;
    max-height:52svh;
    padding:12px 10px;
    gap:3px;
    background:#fff;
    backdrop-filter:none;
    overflow-y:auto
  }

  .steps-disclosure .rail-heading,.steps-disclosure .rail-note {
    display:none
  }

  .steps-disclosure .rail-group {
    grid-column:1/-1;
    font-size:10px;
    padding:12px 9px 6px;
    letter-spacing:.35px
  }

  .steps-disclosure .step,.steps-disclosure .step.technical-step {
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:7px;
    font-size:12px;
    line-height:1.5;
    min-height:46px;
    padding:10px 9px;
    margin:0;
    border-radius:9px
  }

  .steps-disclosure .step-number {
    font-size:10px;
    width:20px;
    min-width:20px;
    height:20px;
    justify-content:center
  }

  .steps-disclosure .step-number svg {
    width:13px;
    height:13px
  }

  .steps-disclosure .step:disabled {
    opacity:.65
  }

  .wizard-main {
    width:100%
  }

  .step-window {
    padding:26px 23px 0;
    min-height:530px
  }

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

  .solution-image {
    height:137px
  }

  .solution-name {
    font-size:12px;
    padding-left:12px;
    padding-right:12px
  }

  .solution-status {
    padding-left:12px;
    padding-right:12px
  }

  .panel-title h1,.panel-title h2 {
    font-size:25px
  }

  .field label,.checkbox-fieldset legend {
    font-size:13px
  }

  .panel-title p {
    font-size:13px
  }

  .form-footer .button {
    font-size:13px;
    padding-left:15px;
    padding-right:15px
  }

  .mini-solutions {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .mini-solutions img {
    height:110px
  }

}

@media(max-width:360px) {
  .steps-disclosure>.steps {
    grid-template-columns:1fr
  }

  .solution-grid {
    grid-template-columns:1fr
  }

}

/* Theme, navigation and native-feeling controls. */
:root {
  --canvas:#f5f5f7;
  --card:#fff;
  --control:#fff;
  --text:#1d1d1f;
  --secondary:#6e6e73;
  --border:#e2e2e8;
  --selection:#edf5ff;
  --accent:#0071e3;
  --rail-width:247px
}

html[data-theme=dark] {
  color-scheme:dark;
  --canvas:#161618;
  --card:#242426;
  --control:#2c2c2f;
  --text:#f0f0f3;
  --secondary:#aaaab3;
  --border:#404046;
  --selection:#183655;
  --accent:#0a84ff;
  --muted:#aaaab3;
  --line:#404046
}

html,body {
  background:var(--canvas);
  color:var(--text);
  transition:background-color .22s,color .22s
}

.screen-theme {
  position:fixed;
  right:31px;
  top:28px;
  z-index:45
}

.theme-toggle,.rail-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--secondary);
  flex-shrink:0
}

.theme-toggle svg,.rail-toggle svg {
  width:19px;
  height:19px
}

.theme-toggle:hover,.rail-toggle:hover {
  background:#86868b12;
  color:var(--text)
}

.theme-toggle:active,.rail-toggle:active {
  transform:scale(.95)
}

body[data-page=start] .screen-theme {
  left:36px;
  right:auto;
  top:43px
}

.history-screen .screen-top,.preview-screen .screen-top {
  padding-right:55px
}

.wizard-header-start,.wizard-header-end {
  display:flex;
  align-items:center;
  gap:12px
}

.wizard-header-start {
  justify-self:start
}

.wizard-header-end {
  justify-self:end
}

.wizard-header .wizard-count {
  white-space:nowrap
}

.wizard-header .theme-toggle {
  width:38px;
  height:38px
}

.wizard-header {
  background:var(--canvas);
  transition:background-color .22s
}

.wizard-count {
  color:var(--secondary)
}

.wizard-body {
  grid-template-columns:var(--rail-width) minmax(0,1fr);
  transition:grid-template-columns .42s cubic-bezier(.22,.72,.18,1),column-gap .42s cubic-bezier(.22,.72,.18,1)
}

.steps-disclosure {
  overflow:hidden;
  transition:opacity .32s ease,transform .42s cubic-bezier(.22,.72,.18,1),visibility 0s linear
}

.steps {
  min-width:var(--rail-width)
}

.rail-hidden .wizard-body {
  grid-template-columns:0px minmax(0,1fr);
  column-gap:0
}

.rail-hidden .steps-disclosure {
  transition:opacity .24s ease,transform .42s cubic-bezier(.22,.72,.18,1),visibility 0s linear .42s;
  visibility:hidden;
  opacity:0;
  transform:translateX(-12px);
  pointer-events:none
}

.step-window {
  transition:max-width .42s cubic-bezier(.22,.72,.18,1),background-color .22s,border-color .22s;
  overflow:visible
}

.rail-hidden .step-window {
  --form-content-max:940px
}

.rail-heading>span {
  display:block;
  font-size:9px;
  line-height:1.5;
  font-weight:400;
  color:var(--secondary);
  margin-top:5px
}

.visited-dot {
  width:4px;
  height:4px;
  min-width:4px;
  border-radius:50%;
  background:#9b9ba6;
  margin-left:auto;
  align-self:center
}

.step.completed .visited-dot {
  display:none
}

.step.visited:not(.completed):not(.active) {
  color:#5c5c66
}

.step.active .visited-dot {
  background:var(--accent)
}

.step:not(.active):not(.completed):not(.visited) {
  color:#74747e
}

.step.visited:not(.completed) .step-number {
  color:#777783
}

.review-navigation {
  display:flex;
  align-items:center;
  gap:8px;
  border-top:1px solid var(--border);
  padding-top:18px;
  margin-top:24px
}

.review-navigation .button {
  font-size:12px
}

.preview-nav {
  display:flex;
  align-items:center;
  gap:8px
}

.preview-nav .button {
  font-size:12px
}

.custom-select {
  position:relative;
  min-width:0;
  width:100%
}

.custom-select>select[hidden] {
  display:none!important
}

.select-trigger {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  width:100%;
  min-height:46px;
  padding:12px 13px;
  border:1px solid #d8d8df;
  border-radius:11px;
  background:var(--control);
  color:var(--text);
  font-size:16px;
  line-height:1.5;
  text-align:left;
  box-shadow:0 1px 1px #00000002;
  transition:border-color .15s,box-shadow .15s,background-color .22s
}

.select-trigger:hover {
  border-color:#b7b7c0
}

.select-trigger[aria-expanded=true] {
  border-color:var(--accent);
  box-shadow:0 0 0 3px #0071e313
}

.select-trigger>svg {
  width:17px;
  height:17px;
  color:#8b8b96;
  transition:transform .18s;
  flex-shrink:0
}

.select-trigger[aria-expanded=true]>svg {
  transform:rotate(180deg)
}

.select-value {
  min-width:0;
  overflow-wrap:anywhere
}

.filters .select-trigger {
  font-size:12px;
  background:#fbfbfd
}

.custom-select.is-open {
  z-index:70
}

.select-popup {
  position:absolute;
  top:calc(100% + 7px);
  left:0;
  right:0;
  min-width:100%;
  max-height:282px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:6px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 9px 32px #1b1b3520,0 2px 5px #1b1b3508;
  z-index:80;
  animation:menuEnter .15s ease;
  transform-origin:top center;
  scrollbar-width:thin;
  scrollbar-color:#c8c8d0 transparent
}

.select-popup[hidden] {
  display:none
}

.select-popup.above {
  top:auto;
  bottom:calc(100% + 7px);
  transform-origin:bottom center
}

.select-option {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 11px;
  min-height:40px;
  border-radius:8px;
  font-size:13px;
  line-height:1.5;
  color:var(--text);
  cursor:pointer;
  transition:background-color .1s
}

.select-option:hover,.select-option.option-active {
  background:#f0f4fb
}

.select-option[aria-selected=true] {
  color:var(--accent);
  font-weight:500
}

.option-check {
  width:16px;
  height:16px;
  opacity:0;
  flex-shrink:0
}

.option-check svg {
  width:16px;
  height:16px
}

.select-option[aria-selected=true]>.option-check {
  opacity:1
}

.select-trigger[aria-invalid=true] {
  border-color:#c33b31
}

.select-popup:empty {
  display:none
}

.form-footer {
  z-index:5;
  background:var(--card);
  transition:background-color .22s
}

/* Cover card shadows and focus rings just outside the sticky panel edges. */
.form-footer::before {
  content:"";
  position:absolute;
  inset:0 -8px;
  background:var(--card);
  z-index:-1;
  pointer-events:none;
}

.step-enter-forward {
  animation:stepForward .44s cubic-bezier(.22,.72,.18,1)
}

.step-enter-back {
  animation:stepBack .44s cubic-bezier(.22,.72,.18,1)
}

.button:active {
  transform:scale(.98)
}

.solution {
  transition:border-color .16s,box-shadow .16s,background-color .2s,transform .16s
}

.solution:active {
  transform:scale(.99)
}

.solution-image {
  overflow:hidden
}

.solution-image img {
  transition:transform .3s cubic-bezier(.2,.7,.2,1)
}

.solution:hover .solution-image img {
  transform:none
}

.solution-check {
  transition:background-color .16s,border-color .16s,color .16s
}

.solution.selection-pulse .solution-check {
  animation:checkPulse .2s ease
}

.icon-button:active {
  transform:scale(.96)
}

@keyframes stepForward {
  from {
    opacity:0;
    transform:translate3d(0, 18px, 0) scale(.99);
    filter:blur(2px)
  }

  to {
    opacity:1;
    transform:translate3d(0, 0, 0) scale(1);
    filter:blur(0)
  }

}

@keyframes stepSelection {
  from { opacity:.72; transform:translateY(4px) scale(.985); }
  to { opacity:1; transform:translateY(0) scale(1); }
}

.step-enter-active {
  animation:stepSelection .34s cubic-bezier(.22,.72,.18,1);
}

@keyframes stepBack {
  from {
    opacity:0;
    transform:translate3d(0, 18px, 0) scale(.99);
    filter:blur(2px)
  }

  to {
    opacity:1;
    transform:translate3d(0, 0, 0) scale(1);
    filter:blur(0)
  }

}

@keyframes menuEnter {
  from {
    opacity:0;
    transform:translateY(-3px) scale(.985)
  }

  to {
    opacity:1;
    transform:translateY(0) scale(1)
  }

}

@keyframes checkPulse {
  0% {
    transform:scale(.8)
  }

  65% {
    transform:scale(1.09)
  }

  100% {
    transform:scale(1)
  }

}

html[data-theme=dark] .wordmark,html[data-theme=dark] .start-center h1,html[data-theme=dark] .page-heading h1,html[data-theme=dark] .panel-title h1,html[data-theme=dark] .panel-title h2 {
  color:var(--text)
}

html[data-theme=dark] .wordmark>span,html[data-theme=dark] .start-center>p,html[data-theme=dark] .start-footnote,html[data-theme=dark] .page-heading p:not(.eyebrow),html[data-theme=dark] .panel-title p,html[data-theme=dark] .field small,html[data-theme=dark] .form-footer>span,html[data-theme=dark] .rail-note,html[data-theme=dark] .window-step,html[data-theme=dark] .eyebrow,html[data-theme=dark] .history-shortcut,html[data-theme=dark] .history-tools>span,html[data-theme=dark] .selection-count,html[data-theme=dark] .optional-note,html[data-theme=dark] .solution-status,html[data-theme=dark] .preview-bottom>span {
  color:var(--secondary)
}

html[data-theme=dark] .studio-symbol {
  background:#2c2c30;
  color:#c0c0cc;
  box-shadow:0 6px 25px #00000018,inset 0 0 0 1px #ffffff05
}

html[data-theme=dark] .history-shortcut:hover {
  background:#ffffff08;
  color:#f3f3f7
}

html[data-theme=dark] .step-window,html[data-theme=dark] .preview-document,html[data-theme=dark] .empty-state,html[data-theme=dark] .table-wrap,html[data-theme=dark] .solution {
  background:var(--card);
  border-color:var(--border);
  box-shadow:0 8px 35px #00000009
}

html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select,html[data-theme=dark] .select-trigger {
  background:var(--control);
  border-color:#48484e;
  color:var(--text)
}

html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder {
  color:#8e8e99
}

html[data-theme=dark] .field label,html[data-theme=dark] .checkbox-fieldset legend,html[data-theme=dark] .check-option {
  color:#dbdbe3
}

html[data-theme=dark] .button.secondary,html[data-theme=dark] .icon-button {
  background:#343439;
  color:#e0e0e8
}

html[data-theme=dark] .button.secondary:hover,html[data-theme=dark] .icon-button:hover {
  background:#404047
}

html[data-theme=dark] .button.primary {
  background:#0a84ff;
  color:#fff
}

html[data-theme=dark] .button.primary:hover {
  background:#2693ff
}

html[data-theme=dark] .button.text-button {
  background:transparent;
  color:#b0b0ba
}

html[data-theme=dark] .button.text-button:hover {
  background:#ffffff09;
  color:#f0f0f6
}

html[data-theme=dark] .button.danger {
  background:#452824;
  color:#ffb0a8
}

html[data-theme=dark] .steps {
  background:#242426b3;
  border-color:#35353c
}

html[data-theme=dark] .rail-heading {
  color:#c1c1cb
}

html[data-theme=dark] .rail-group {
  color:#9696a3
}

html[data-theme=dark] .step {
  color:#a5a5b1
}

html[data-theme=dark] .step:not(.active):not(.completed):not(.visited) {
  color:#a5a5b1
}

html[data-theme=dark] .step.visited:not(.completed):not(.active) {
  color:#d1d1db
}

html[data-theme=dark] .step-number,html[data-theme=dark] .step.visited:not(.completed) .step-number {
  color:#9494a3
}

html[data-theme=dark] .step.active {
  background:#183859;
  color:#8fc7ff
}

html[data-theme=dark] .step.active .step-number,html[data-theme=dark] .step.completed .step-number {
  color:#5daeff
}

html[data-theme=dark] .step:not(:disabled):hover {
  background:#ffffff08
}

html[data-theme=dark] .step.active:not(:disabled):hover {
  background:#1e4164
}

html[data-theme=dark] .rail-note {
  border-color:#3c3c43
}

html[data-theme=dark] .wizard-progress {
  background:#303037
}

html[data-theme=dark] .wizard-progress>span {
  background:#0a84ff
}

html[data-theme=dark] .select-popup {
  background:#2c2c30;
  box-shadow:0 12px 38px #0000004d;
  border-color:#505057
}

html[data-theme=dark] .select-option:hover,html[data-theme=dark] .select-option.option-active {
  background:#3a3a43
}

html[data-theme=dark] .select-option[aria-selected=true] {
  color:#77b8ff
}

html[data-theme=dark] .filters .select-trigger,html[data-theme=dark] .filters input {
  background:#242426
}

html[data-theme=dark] .select-trigger[aria-expanded=true] {
  border-color:#0a84ff
}

html[data-theme=dark] .select-trigger>svg {
  color:#a2a2ae
}

html[data-theme=dark] .check-option {
  border-color:#48484f
}

html[data-theme=dark] .check-option:has(input:checked) {
  background:#19334f;
  border-color:#4484c6
}

html[data-theme=dark] .solution.selected {
  background:#1f3043;
  border-color:#0a84ff;
  box-shadow:0 0 0 1px #0a84ff
}

html[data-theme=dark] .solution.selected .solution-status {
  color:#77b8ff
}

html[data-theme=dark] .solution-check {
  background:#25252ce8;
  border-color:#8a8a93;
  color:#dedee8
}

html[data-theme=dark] .solution.selected .solution-check {
  background:#0a84ff;
  border-color:#0a84ff;
  color:#fff
}

html[data-theme=dark] .solution-image {
  background:#313138
}

html[data-theme=dark] .details-list dd,html[data-theme=dark] .long-text {
  color:#d8d8e0
}

html[data-theme=dark] .details-list dt,html[data-theme=dark] .summary-category .muted {
  color:#a8a8b4
}

html[data-theme=dark] .summary-block>h3 {
  border-color:#414148
}

html[data-theme=dark] .summary-category {
  border-color:#36363d
}

html[data-theme=dark] .mini-solutions>div {
  border-color:#45454d
}

html[data-theme=dark] .mini-solutions span {
  color:#d1d1db
}

html[data-theme=dark] .review-note {
  background:#273548;
  color:#acc0db
}

html[data-theme=dark] .pill {
  background:#18395b;
  color:#8fc7ff
}

html[data-theme=dark] .form-footer {
  border-color:#414148
}

html[data-theme=dark] .form-error {
  background:#432a28;
  border-color:#87544f;
  color:#ffbdb5
}

html[data-theme=dark] th {
  background:#29292d;
  color:#b0b0ba;
  border-color:#424249
}

html[data-theme=dark] td {
  color:#c0c0cc;
  border-color:#36363e
}

html[data-theme=dark] tr:hover td {
  background:#29292e
}

html[data-theme=dark] .record-name {
  color:#ededf3
}

html[data-theme=dark] .record-name:hover {
  color:#82baff
}

html[data-theme=dark] .address {
  color:#a0a0ad
}

html[data-theme=dark] .empty-icon {
  background:#33333b;
  color:#b0b0bd
}

html[data-theme=dark] .empty-state p {
  color:#aaaab7
}

html[data-theme=dark] .toast {
  background:#333338;
  color:#eeeef5;
  border-color:#51515b;
  box-shadow:0 9px 30px #00000040
}

html[data-theme=dark] .toast.error {
  background:#4b2c29;
  border-color:#92594f;
  color:#ffc4bb
}

@media(min-width:1550px) {
  :root {
    --rail-width:255px
  }

}

@media(max-width:1100px) {
  :root {
    --rail-width:213px
  }

  .wizard-header-start,.wizard-header-end {
    gap:7px
  }

}

@media(max-width:800px) {
  :root {
    --rail-width:175px
  }

  .wizard-header-start {
    gap:3px
  }

  .wizard-header-end {
    gap:7px
  }

  .wizard-count {
    font-size:10px
  }

}

@media(prefers-contrast:more) {
  .select-trigger,.select-popup,.step-window {
    border-color:#777780
  }

  .select-option.option-active {
    outline:1px solid var(--accent)
  }

  .step.visited:not(.active) {
    color:#44444d
  }

  .visited-dot {
    background:#666670
  }

  html[data-theme=dark] .step,html[data-theme=dark] .step:not(.active):not(.completed):not(.visited) {
    color:#d3d3df
  }

  html[data-theme=dark] .select-trigger,html[data-theme=dark] .select-popup {
    border-color:#a0a0ab
  }

}

@media(prefers-reduced-transparency:reduce) {
  html[data-theme=dark] .steps {
    background:#242426;
    backdrop-filter:none
  }

}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }

  .button:active,.solution:active,.theme-toggle:active,.rail-toggle:active,.solution:hover .solution-image img {
    transform:none!important
  }

}

html[data-theme=dark] .button.primary {
  background:#006bd6;
  color:#fff
}

html[data-theme=dark] .button.primary:hover {
  background:#0071e3
}

html[data-theme=dark] .button.primary:active {
  background:#0062c4
}

/* Numeric entries retain validation without browser stepper controls. */
#area, #budgetWithoutFurniture, #budgetWithFurniture {
  appearance: textfield;
  -moz-appearance: textfield;
}
#area::-webkit-inner-spin-button, #area::-webkit-outer-spin-button,
#budgetWithoutFurniture::-webkit-inner-spin-button, #budgetWithoutFurniture::-webkit-outer-spin-button,
#budgetWithFurniture::-webkit-inner-spin-button, #budgetWithFurniture::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Preserve every photo's original aspect ratio, including portrait samples. */
.solution-tile {
  position:relative;
  min-width:0;
  display:flex
}

.solution-tile>.solution {
  width:100%;
  height:100%
}

.solution .solution-image {
  height:300px;
  padding:12px;
  box-sizing:border-box;
  overflow:visible
}

.solution .solution-image img {
  object-fit:contain;
  transform:none;
  border-radius:7px
}

.photo-expand {
  position:absolute;
  left:23px;
  top:23px;
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid #ffffff9c;
  background:#fffffff0;
  color:#34343b;
  display:grid;
  place-items:center;
  cursor:zoom-in;
  box-shadow:0 2px 10px #00000015;
  transition:transform .18s,background .18s
}

.photo-expand svg {
  width:18px;
  height:18px
}

.photo-expand:hover {
  background:#fff;
  transform:scale(1.08)
}

.photo-expand:focus-visible,.summary-photo:focus-visible,.photo-close:focus-visible {
  outline:3px solid #007aff;
  outline-offset:3px
}

.summary-photo {
  border:0;
  padding:12px;
  width:100%;
  display:block;
  background:#f1f1f4;
  cursor:zoom-in
}

.mini-solutions .summary-photo img,.preview-document .mini-solutions .summary-photo img {
  height:210px;
  object-fit:contain
}

.photo-dialog {
  padding:24px;
  border:1px solid var(--border);
  border-radius:26px;
  width:min(1040px,90vw);
  max-width:90vw;
  max-height:90vh;
  box-sizing:border-box;
  background:var(--card,#fff);
  color:var(--text);
  box-shadow:0 24px 100px #00000045;
  overflow:auto
}

.photo-dialog[open] {
  animation:photo-reveal .2s ease-out
}

.photo-dialog::backdrop {
  background:#16161c99;
  backdrop-filter:blur(10px)
}

.photo-dialog header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px
}

.photo-dialog small {
  font-size:10px;
  letter-spacing:2px;
  color:var(--muted)
}

.photo-dialog h2 {
  font-size:23px;
  margin:7px 0 0;
  font-weight:600
}

.photo-close {
  flex:none;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  font-size:27px;
  line-height:1;
  background:#eeeef2;
  color:#55555d;
  cursor:pointer
}

.photo-full-stage {
  border-radius:16px;
  background:#f1f1f4;
  padding:12px
}

.photo-full-stage img {
  display:block;
  width:100%;
  height:calc(90vh - 195px);
  min-height:150px;
  object-fit:contain
}

.photo-dialog>p {
  font-size:12px;
  color:var(--muted);
  text-align:center;
  margin:14px 0 0
}

html[data-theme=dark] .summary-photo,html[data-theme=dark] .photo-full-stage {
  background:#313138
}

html[data-theme=dark] .photo-expand,html[data-theme=dark] .photo-close {
  background:#414149ef;
  color:#fff;
  border-color:#ffffff30
}

@keyframes photo-reveal {
  from {
    opacity:0;
    transform:translateY(6px) scale(.98)
  }

  to {
    opacity:1;
    transform:none
  }

}

.photo-full-stage {
  position:relative;
  padding-left:62px;
  padding-right:62px
}

.photo-dialog,.photo-dialog img,.photo-arrow {
  -webkit-user-select:none;
  user-select:none
}

.photo-dialog img {
  -webkit-user-drag:none;
  pointer-events:none
}

.photo-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:52px;
  display:grid;
  place-items:center;
  border:1px solid #ffffffb3;
  border-radius:14px;
  background:#ffffffeb;
  color:#3b3b43;
  box-shadow:0 3px 15px #0000000d;
  cursor:pointer;
  transition:background .15s,box-shadow .15s
}

.photo-arrow[hidden] {
  display:none
}

.photo-arrow-prev {
  left:12px
}

.photo-arrow-next {
  right:12px
}

.photo-arrow:hover {
  background:#fff;
  box-shadow:0 3px 18px #00000021
}

.photo-arrow:focus-visible {
  outline:3px solid #007aff;
  outline-offset:3px
}

.photo-arrow svg {
  width:23px;
  height:23px
}

.photo-gallery-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:14px;
  font-size:12px;
  color:var(--muted)
}

#photo-position {
  font-variant-numeric:tabular-nums;
  font-weight:600
}

.photo-dialog #photo-category {
  text-transform:uppercase
}

html[data-theme=dark] .photo-arrow {
  background:#45454def;
  border-color:#ffffff20;
  color:#f5f5f7
}

html[data-theme=dark] .photo-arrow:hover {
  background:#565660
}

/* Landscape wall samples match their card stage without cropping. */
.solution-grid:is(:has([data-solution^="walls-"]),:has([data-solution^="moldings-"]),:has([data-solution^="doors-"]),:has([data-solution^="skirting-"]),:has([data-solution^="lighting-"]),:has([data-solution^="plumbing-"]),:has([data-solution^="heating-"])) .solution .solution-image {
  height:auto;
  aspect-ratio:3/2;
  padding:0;
  overflow:hidden
}

.solution-grid:is(:has([data-solution^="walls-"]),:has([data-solution^="moldings-"]),:has([data-solution^="doors-"]),:has([data-solution^="skirting-"]),:has([data-solution^="lighting-"]),:has([data-solution^="plumbing-"]),:has([data-solution^="heating-"])) .solution .solution-image img {
  border-radius:0;
  object-fit:contain
}

/* Catalog columns follow available card space, including a hidden sidebar. */
.step-window:has(.solution-grid) {
  container-type:inline-size;
  container-name:catalog-step
}

@container catalog-step (min-width:1000px) {
  .solution-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }

}

.solution-grid:has([data-solution^="flooring-"]) .solution .solution-image {
  height:auto;
  aspect-ratio:3/2;
  padding:0;
  overflow:hidden
}

.solution-grid:has([data-solution^="flooring-"]) .solution .solution-image img {
  border-radius:0;
  object-fit:contain
}

.solution-grid:has([data-solution^="cooling-"]) .solution .solution-image {
  height:auto;
  aspect-ratio:3/2;
  padding:0;
  overflow:hidden
}

.solution-grid:has([data-solution^="cooling-"]) .solution .solution-image img {
  border-radius:0;
  object-fit:contain
}

/* Optional interior-style game */
.style-intro,.style-result {
  border:1px solid var(--border);
  border-radius:22px;
  background:var(--control,#f5f5f7);
  padding:28px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px
}

.style-intro h2,.style-result h2 {
  font-size:27px;
  letter-spacing:-.6px;
  margin:7px 0
}

.style-intro p,.style-result p {
  margin:0;
  color:var(--muted);
  max-width:620px
}

.result-label {
  font-size:10px;
  letter-spacing:1.6px;
  color:var(--muted)
}

.style-game-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
  color:var(--muted)
}

.style-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}

.style-option {
  padding:0;
  border:1px solid var(--border);
  border-radius:20px;
  overflow:hidden;
  background:var(--card);
  text-align:left;
  transition:transform .2s,box-shadow .2s,border-color .2s
}

.style-option:hover {
  transform:translateY(-3px);
  border-color:var(--blue);
  box-shadow:0 15px 38px #00000014
}

.style-option img {
  display:block;
  width:100%;
  height:295px;
  object-fit:cover
}

.style-option span {
  display:block;
  padding:17px 18px 18px
}

.style-option strong {
  display:block;
  font-size:18px
}

.style-option small {
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  margin-top:6px
}

.style-game-actions,.style-result-actions {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:20px
}

.style-alternatives {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:22px
}

.style-alternatives>div {
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--card);
  padding:16px
}

.style-alternatives span {
  display:block;
  font-size:10px;
  letter-spacing:1px;
  color:var(--muted);
  margin-bottom:4px
}

.style-alternatives strong {
  font-size:16px
}

.style-alternatives p {
  font-size:12px;
  margin-top:6px
}

.style-summary .pill {
  font-size:10px;
  font-weight:500
}

.style-summary p {
  margin:6px 0
}

html[data-theme=dark] .style-intro,html[data-theme=dark] .style-result {
  background:#2b2b30;
  border-color:#44444b
}

html[data-theme=dark] .style-option,html[data-theme=dark] .style-alternatives>div {
  background:#27272c;
  border-color:#44444b
}

@media(max-width:700px) {
  .style-pair,.style-alternatives {
    grid-template-columns:1fr
  }

  .style-intro,.style-result {
    display:block
  }

  .style-intro .button,.style-result-actions {
    margin-top:20px
  }

  .style-option img {
    height:230px
  }

}

.visualization-browse {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0
}

.visualization-browse span {
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}

.visual-dialog .visualization-browse button {
  width:44px;
  height:40px
}

.visualization-parameters .custom-select {
  margin-top:10px
}

.visualization-parameters .select-trigger {
  font-size:12px
}

.visualization-gallery button img {
  user-select:none;
  -webkit-user-drag:none
}

.visualization-gallery .visualization-thumb {
  flex-basis:122px
}

.visualization-thumb>button:first-child {
  width:122px
}

.visualization-thumb img {
  width:120px
}

.visual-dialog {
  user-select:none
}

/* Style Match: photo-first comparison and explicit manager confirmation. */
.style-stage-title>span {
  display:block!important;
  font-size:10px;
  letter-spacing:2px;
  color:var(--secondary);
  margin-bottom:14px
}

.style-stage-title p {
  max-width:780px
}

.style-match-intro {
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:34px;
  align-items:center;
  margin:26px 0 16px
}

.style-intro-collage {
  position:relative;
  display:grid;
  grid-template-columns:1.35fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:8px;
  border-radius:24px;
  overflow:hidden;
  height:430px;
  background:var(--control)
}

.style-intro-collage img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:0;
  filter:saturate(.85)
}

.style-intro-collage img:first-child {
  grid-row:1/3
}

.style-intro-collage:after {
  content:'';
  position:absolute;
  inset:55% 0 0;
  background:linear-gradient(transparent,#0009);
  pointer-events:none
}

.style-intro-collage>span {
  position:absolute;
  left:24px;
  bottom:24px;
  color:#fff;
  font-size:23px;
  font-weight:500;
  letter-spacing:-.4px;
  z-index:1
}

.style-meta {
  display:flex;
  flex-wrap:wrap;
  gap:7px
}

.style-meta>span {
  font-size:11px;
  border:1px solid var(--border);
  border-radius:20px;
  padding:6px 10px;
  color:var(--secondary)
}

.style-intro-copy h2 {
  font-size:31px;
  line-height:1.18;
  letter-spacing:-.9px;
  margin:20px 0 15px
}

.style-intro-copy p {
  color:var(--secondary);
  line-height:1.7;
  margin:0
}

.style-intro-copy ol {
  padding:0;
  margin:22px 0;
  list-style:none;
  counter-reset:style-guide;
  display:grid;
  gap:13px
}

.style-intro-copy li {
  counter-increment:style-guide;
  display:flex;
  align-items:center;
  gap:11px;
  font-size:12px;
  color:var(--text)
}

.style-intro-copy li:before {
  content:counter(style-guide);
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:24px;
  height:24px;
  border-radius:50%;
  background:var(--selection);
  color:var(--accent);
  font-size:11px
}

.style-intro-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:24px 0 17px
}

.style-intro-copy small {
  display:block;
  font-size:11px;
  line-height:1.7;
  color:var(--secondary)
}

.style-round {
  margin-top:26px
}

.style-game-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin:0 0 12px;
  font-size:12px
}

.style-game-head strong {
  color:var(--text);
  font-size:14px
}

.style-game-head strong>span {
  color:var(--secondary);
  font-weight:400
}

.style-game-head>span {
  color:var(--secondary);
  font-size:11px
}

.style-round-progress {
  height:4px;
  background:var(--border);
  border-radius:5px;
  overflow:hidden;
  margin-bottom:24px
}

.style-round-progress>span {
  display:block;
  height:100%;
  background:var(--accent);
  border-radius:inherit;
  transition:width .25s ease
}

.style-round .style-pair {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  animation:stylePairIn .24s ease both
}

.style-choice-tile {
  position:relative;
  min-width:0
}

.style-choice-tile .style-option {
  display:block;
  position:relative;
  width:100%;
  border:2px solid var(--border);
  border-radius:20px;
  background:var(--card);
  overflow:hidden;
  text-align:left;
  transition:border-color .18s,box-shadow .18s,transform .18s
}

.style-choice-tile .style-option:hover {
  transform:translateY(-2px);
  border-color:var(--accent);
  box-shadow:0 12px 28px #0000000d
}

.style-choice-tile .style-option>img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
  user-select:none;
  -webkit-user-drag:none
}

.style-choice-tile .style-option>.style-choice-caption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px;
  color:var(--text)
}

.style-choice-caption>strong {
  font-size:15px;
  font-weight:500
}

.style-choice-caption>span {
  display:flex!important;
  align-items:center;
  gap:7px;
  padding:0!important;
  font-size:11px;
  color:var(--secondary)
}

.style-choice-caption svg {
  width:16px;
  height:16px
}

.style-choice-tile .style-zoom {
  position:absolute;
  top:14px;
  right:14px;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid #ffffff90;
  border-radius:50%;
  background:#fffffff0;
  color:#333;
  box-shadow:0 2px 12px #0001;
  transition:transform .15s,background .15s
}

.style-zoom:hover {
  transform:scale(1.06);
  background:#fff
}

.style-choice-tile .style-option>.style-choice-check {
  position:absolute;
  display:grid;
  place-items:center;
  left:50%;
  top:43%;
  width:52px;
  height:52px;
  padding:0;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  opacity:0;
  transform:translate(-50%,-50%) scale(.7);
  transition:opacity .15s,transform .2s;
  box-shadow:0 5px 30px #0003
}

.style-choice-check svg {
  width:26px;
  height:26px
}

.style-choice-tile .style-option.is-picked {
  border-color:var(--accent);
  box-shadow:0 0 0 3px #0071e319;
  transform:scale(.985)
}

.style-choice-tile .style-option.is-picked>.style-choice-check {
  opacity:1;
  transform:translate(-50%,-50%) scale(1)
}

.style-game-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:20px 0 0
}

.style-game-actions .button {
  font-size:12px
}

.style-key-hint {
  font-size:10px;
  color:var(--secondary);
  margin-left:auto
}

.style-previous-note,.style-result-note {
  color:var(--secondary);
  font-size:11px;
  line-height:1.7;
  margin:22px 0
}

.style-empty-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:28px 0
}

.style-match-result {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:26px;
  padding:0;
  border:0;
  background:transparent;
  margin-top:28px
}

.style-primary-photo {
  position:relative;
  min-width:0;
  border-radius:20px;
  overflow:hidden;
  background:var(--control);
  min-height:320px
}

.style-primary-photo>button {
  position:relative;
  display:block;
  width:100%;
  height:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor:zoom-in
}

.style-primary-photo img {
  display:block;
  width:100%;
  height:100%;
  min-height:320px;
  object-fit:cover;
  aspect-ratio:4/3
}

.style-primary-photo>.result-label {
  position:absolute;
  left:16px;
  bottom:16px;
  font-size:9px;
  letter-spacing:1.4px;
  background:#fffffff0;
  color:#333;
  padding:8px 11px;
  border-radius:8px;
  pointer-events:none
}

.style-photo-hint {
  position:absolute;
  right:12px;
  top:12px;
  display:flex;
  align-items:center;
  gap:6px;
  background:#fffffff0;
  color:#333;
  border-radius:20px;
  padding:7px 10px;
  font-size:10px
}

.style-photo-hint svg {
  width:15px;
  height:15px
}

.style-primary-copy {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  min-width:0;
  padding:8px 0
}

.style-primary-copy h2 {
  font-size:34px;
  letter-spacing:-1px;
  line-height:1.15;
  margin:20px 0 12px
}

.style-primary-copy>p {
  margin:0;
  color:var(--secondary);
  line-height:1.7;
  font-size:13px
}

.style-confirmation {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:20px;
  color:var(--secondary)
}

.style-confirmation svg {
  width:14px;
  height:14px
}

.style-confirmation.is-confirmed {
  background:var(--selection);
  color:var(--accent);
  border-color:transparent
}

.style-traits {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  list-style:none;
  margin:18px 0 0;
  padding:0
}

.style-traits li {
  font-size:10px;
  line-height:1.5;
  padding:7px 10px;
  background:var(--control);
  border:1px solid var(--border);
  border-radius:8px;
  color:var(--secondary)
}

.style-primary-copy .style-result-actions {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:23px 0 0
}

.style-result-actions .button {
  font-size:12px
}

.style-result-actions .text-button {
  font-size:10px
}

.style-match-result .style-alternatives {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:0
}

.style-match-result .style-alternatives article {
  display:grid;
  grid-template-columns:38% minmax(0,1fr);
  border:1px solid var(--border);
  background:var(--card);
  border-radius:17px;
  overflow:hidden;
  min-width:0
}

.style-match-result .style-alternatives article>button {
  display:block;
  border:0;
  padding:0;
  background:var(--control);
  cursor:zoom-in;
  min-width:0
}

.style-match-result .style-alternatives img {
  display:block;
  width:100%;
  height:100%;
  min-height:160px;
  object-fit:cover
}

.style-match-result .style-alternatives article>div {
  padding:20px
}

.style-match-result .style-alternatives span {
  font-size:9px;
  letter-spacing:1.3px;
  color:var(--secondary);
  margin:0 0 8px
}

.style-match-result .style-alternatives strong {
  font-size:17px;
  line-height:1.3
}

.style-match-result .style-alternatives p {
  font-size:11px;
  color:var(--secondary);
  line-height:1.6;
  margin:8px 0 0
}

.style-photo-dialog {
  width:min(1220px,94vw);
  max-height:94vh;
  margin:auto;
  border:1px solid var(--border);
  border-radius:24px;
  padding:22px;
  background:var(--card);
  color:var(--text);
  box-shadow:0 30px 90px #0003;
  user-select:none
}

.style-photo-dialog::backdrop {
  background:#1c1c2480;
  backdrop-filter:blur(10px)
}

.style-photo-dialog header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:15px;
  gap:20px
}

.style-photo-dialog h2 {
  font-size:20px;
  margin:0
}

.style-photo-dialog button {
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:var(--control);
  color:var(--text);
  width:40px;
  height:40px;
  font-size:25px
}

.style-photo-stage {
  position:relative;
  background:var(--canvas);
  border-radius:15px;
  overflow:hidden
}

.style-photo-stage>img {
  display:block;
  width:100%;
  height:70vh;
  object-fit:contain;
  -webkit-user-drag:none
}

.style-photo-stage>button {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:#fffffff0;
  color:#333;
  box-shadow:0 3px 20px #0002
}

.style-photo-stage>#style-photo-prev {
  left:12px
}

.style-photo-stage>#style-photo-next {
  right:12px
}

.style-photo-dialog footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-top:13px;
  color:var(--secondary);
  font-size:11px
}

html[data-theme=dark] .style-meta>span,html[data-theme=dark] .style-confirmation {
  border-color:var(--border)
}

html[data-theme=dark] .style-match-result {
  background:transparent
}

html[data-theme=dark] .style-match-result .style-alternatives article {
  background:var(--card);
  border-color:var(--border)
}

@keyframes stylePairIn {
  from {
    opacity:0;
    transform:translateY(6px)
  }

  to {
    opacity:1;
    transform:translateY(0)
  }

}

@media(max-width:1100px) {
  .style-match-intro {
    gap:22px
  }

  .style-intro-copy h2 {
    font-size:27px
  }

  .style-intro-collage {
    height:400px
  }

  .style-choice-caption>span {
    font-size:10px
  }

  .style-primary-copy h2 {
    font-size:29px
  }

}

@media(max-width:800px) {
  .style-match-intro,.style-match-result {
    grid-template-columns:1fr
  }

  .style-intro-collage {
    height:300px
  }

  .style-round .style-pair {
    gap:12px
  }

  .style-choice-tile .style-option>.style-choice-caption {
    padding:12px
  }

  .style-choice-caption>span {
    display:none!important
  }

  .style-match-result .style-alternatives {
    grid-template-columns:1fr
  }

  .style-key-hint {
    display:none
  }

}

@media(prefers-reduced-motion:reduce) {
  .style-round .style-pair {
    animation:none
  }

  .style-round-progress>span,.style-choice-tile .style-option,.style-choice-tile .style-zoom,.style-choice-tile .style-option>.style-choice-check {
    transition:none
  }

}

/* Edge-to-edge catalog photos, including ceiling samples. */
.solution-grid:has([data-solution^="ceiling-"]) .solution .solution-image {
  height:auto;
  aspect-ratio:3/2;
  padding:0;
  overflow:hidden
}

.solution-grid:has([data-solution^="ceiling-"]) .solution .solution-image img {
  border-radius:0;
  object-fit:contain
}

/* The lightbox fits the photo rather than a large fixed grey stage. */
.photo-dialog {
  width:fit-content;
  max-width:94vw;
  max-height:94vh;
  margin:auto;
  padding:20px;
  min-width:min(360px,94vw)
}

.photo-full-stage {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:transparent;
  overflow:hidden
}

.photo-full-stage img {
  display:block;
  width:auto;
  height:auto;
  min-height:0;
  max-width:calc(94vw - 42px);
  max-height:calc(94vh - 165px);
  object-fit:contain
}

.photo-arrow-prev {
  left:12px
}

.photo-arrow-next {
  right:12px
}

.style-photo-dialog {
  width:fit-content;
  max-width:94vw
}

.style-photo-stage>img {
  width:auto;
  height:auto;
  max-width:calc(94vw - 46px);
  max-height:calc(94vh - 145px);
  object-fit:contain
}

.style-choice-tile .style-option>.style-favorite {
  position:absolute;
  top:14px;
  left:14px;
  display:block;
  padding:7px 11px;
  border-radius:20px;
  background:#fffffff0;
  color:#333;
  font-size:10px;
  line-height:1.4;
  box-shadow:0 2px 8px #0001
}

.budget-currency-note {
  font-size:12px;
  color:var(--secondary);
  padding:10px 0
}

.budget-currency-note .button {
  font-size:11px
}

.visualization-workspace {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);
  gap:22px;
  align-items:start
}

.visualization-stage {
  min-width:0;
  align-self:start;
  padding:14px
}

.visualization-main {
  height:auto;
  aspect-ratio:3/2;
  background:transparent;
  border-radius:14px;
  overflow:hidden
}

.visualization-main img {
  width:100%;
  height:100%;
  object-fit:contain;
  background:transparent
}

.visualization-caption {
  align-items:flex-start;
  gap:10px;
  font-size:11px
}

.visualization-caption>span {
  font-size:10px;
  max-width:45%;
  text-align:right
}

.visualization-gallery {
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  max-height:150px;
  gap:10px;
  padding:8px 3px 7px;
  scrollbar-width:thin
}

.visualization-thumb img {
  height:76px;
  object-fit:cover
}

.visualization-gallery .visualization-thumb {
  flex:0 0 112px
}

.visualization-thumb>button:first-child {
  width:112px
}

.visualization-thumb img {
  width:110px
}

.visualization-thumb.viewing {
  outline:1px solid var(--accent);
  border-radius:12px
}

.visualization-thumb>button:first-child span {
  font-size:9px
}

.visualization-browse .button {
  font-size:11px;
  padding:10px 13px
}

.visual-pdf-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px
}

.visual-pdf-actions .button {
  font-size:11px;
  padding:11px 15px
}

.visual-pdf-actions>span {
  font-size:10px;
  color:var(--secondary)
}

.visualization-parameters {
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:570px;
  padding:20px;
  overflow:hidden
}

.visual-settings-heading {
  flex-shrink:0
}

.visual-settings-scroll {
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  min-height:0;
  padding-right:9px;
  margin-top:18px;
  border-top:1px solid var(--border)
}

.visual-settings-scroll h2 {
  font-size:15px;
  margin:18px 0 10px
}

.visual-setting-note {
  font-size:10px;
  color:var(--secondary);
  line-height:1.6
}

.visualization-parameters dl>div {
  padding:10px 0
}

.visualization-parameters dd {
  font-size:11px;
  line-height:1.5
}

.visual-priority {
  margin-bottom:13px
}

.visual-priority>label {
  display:block;
  font-size:10px;
  color:var(--secondary);
  margin-bottom:5px
}

.visual-priority .select-trigger {
  font-size:11px;
  min-height:36px;
  padding:8px
}

.visualization-empty {
  min-height:360px;
  padding:30px
}

.visualization-empty h2 {
  font-size:21px
}

.visualization-empty p {
  max-width:330px
}

.visual-room-wishes {
  margin-top:24px;
  padding:22px;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--card)
}

.visual-room-wishes h2 {
  font-size:16px;
  margin:0 0 7px
}

.visual-room-wishes p {
  font-size:11px;
  color:var(--secondary);
  max-width:760px;
  line-height:1.6;
  margin:0
}

.visual-room-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:16px 0 12px;
  background:var(--canvas);
  padding:4px;
  border-radius:11px;
  width:fit-content
}

.visual-room-tabs button {
  border:0;
  background:transparent;
  padding:8px 12px;
  border-radius:8px;
  font-size:11px;
  color:var(--secondary)
}

.visual-room-tabs button[aria-pressed=true] {
  background:var(--card);
  color:var(--accent);
  box-shadow:0 1px 6px #00000012
}

.visual-room-wishes textarea {
  display:block;
  resize:vertical;
  min-height:84px;
  max-height:220px;
  width:100%;
  padding:12px 14px;
  background:var(--control);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:11px;
  font-size:12px
}

.visual-room-wishes>small {
  display:block;
  font-size:10px;
  color:var(--secondary);
  margin-top:8px
}

.visual-render {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:390px;
  padding:30px 22px;
  text-align:center
}

.render-orb {
  width:60px;
  height:60px;
  border-radius:50%;
  background:conic-gradient(from 0deg,#0071e320,#0071e3,#a1cfff,#0071e320);
  box-shadow:0 0 30px #0071e325;
  animation:renderSpin 2.5s linear infinite;
  position:relative;
  margin-bottom:22px
}

.render-orb:after {
  content:'';
  position:absolute;
  inset:7px;
  border-radius:50%;
  background:var(--card)
}

.visual-render h2 {
  font-size:21px;
  letter-spacing:-.5px;
  margin:0 0 9px
}

.visual-render>p {
  font-size:11px;
  line-height:1.6;
  color:var(--secondary);
  max-width:290px
}

.render-track {
  height:4px;
  border-radius:4px;
  background:var(--border);
  overflow:hidden;
  width:min(330px,100%);
  margin:15px 0
}

.render-track>span {
  display:block;
  height:100%;
  background:var(--accent);
  transition:width .4s
}

.visual-render ol {
  list-style:none;
  display:grid;
  gap:10px;
  padding:0;
  margin:10px 0 20px;
  width:min(330px,100%);
  text-align:left
}

.visual-render li {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  color:var(--secondary)
}

.visual-render li small {
  margin-left:auto;
  font-size:10px
}

.visual-render li.active,.visual-render li.done {
  color:var(--accent)
}

.visual-render>small {
  font-size:9px;
  color:var(--secondary)
}

@keyframes renderSpin {
  to {
    transform:rotate(360deg)
  }

}

@media(prefers-reduced-motion:reduce) {
  .render-orb {
    animation:none
  }

  .render-track>span {
    transition:none
  }

}

@media(max-width:1050px) {
  .visualization-workspace {
    grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)
  }

  .visualization-parameters {
    max-height:515px;
    padding:15px
  }

  .visualization-caption {
    flex-direction:column
  }

  .visualization-caption>span {
    max-width:none;
    text-align:left
  }

}

@media(max-width:800px) {
  .visualization-workspace {
    grid-template-columns:1fr
  }

  .visualization-parameters {
    max-height:420px
  }

}

/* A frame identifies the viewed photo; the PDF badge is an independent state. */
.visualization-gallery .visualization-thumb {
  outline:none;
  align-self:flex-start;
  flex:0 0 112px
}

.visualization-gallery .visualization-thumb>button:first-child {
  box-sizing:border-box;
  width:100%;
  border:2px solid var(--border);
  box-shadow:none;
  border-radius:12px
}

.visualization-gallery .visualization-thumb.selected>button:first-child {
  border-color:var(--border);
  box-shadow:none
}

.visualization-gallery .visualization-thumb.viewing>button:first-child {
  border-color:var(--accent);
  box-shadow:none
}

.visualization-gallery .visualization-thumb img {
  width:100%;
  height:76px
}

.visualization-gallery .visual-thumb-caption {
  padding:7px 7px 6px;
  min-height:43px;
  line-height:1.4
}

.visualization-gallery .visual-thumb-caption small {
  display:block;
  margin-top:3px;
  font-size:8px;
  color:var(--secondary)
}

.visualization-gallery .viewing .visual-thumb-caption small {
  color:var(--accent)
}

.visualization-gallery .visualization-pdf-badge {
  position:absolute;
  top:6px;
  left:6px;
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:4px 6px;
  border-radius:6px;
  background:var(--accent);
  color:#fff;
  font-size:8px;
  line-height:1;
  pointer-events:none;
  box-shadow:0 1px 5px #0002
}

.visualization-pdf-badge svg {
  width:10px;
  height:10px
}

.visualization-gallery .visualization-remove {
  right:5px;
  top:5px;
  width:22px;
  height:22px;
  box-shadow:0 1px 5px #0002
}

.visualization-stage .visualization-gallery {
  overflow-x:auto;
  overflow-y:hidden;
  max-height:none;
  align-items:flex-start;
  cursor:grab;
  user-select:none;
  overscroll-behavior-x:contain
}

.visualization-stage .visualization-gallery [data-action="visual-view"] {
  cursor:grab
}

.visualization-stage .visualization-gallery.is-dragging,.visualization-stage .visualization-gallery.is-dragging * {
  cursor:grabbing
}

.visualization-stage .visualization-gallery img {
  -webkit-user-drag:none;
  user-select:none
}

.visual-rooms-header,.visual-room-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}

.visual-rooms-header .button {
  flex-shrink:0;
  font-size:11px
}

.visual-room-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:15px 0
}

.visual-room-fields label,.visual-room-description-label {
  display:block;
  font-size:11px;
  color:var(--secondary);
  margin:0 0 7px
}

.visual-room-fields input {
  width:100%;
  padding:11px 13px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--control);
  color:var(--text);
  font:inherit;
  font-size:12px
}

.visual-room-fields .select-trigger {
  font-size:12px;
  min-height:40px
}

.visual-room-footer {
  margin-top:12px
}

.visual-room-footer small {
  font-size:10px;
  line-height:1.5;
  color:var(--secondary);
  max-width:70%
}

.visual-room-footer button {
  color:var(--secondary);
  font-size:11px;
  flex-shrink:0
}

.visual-no-rooms {
  padding:16px 0
}

.row-actions .delete-project {
  color:#b43b35
}

.row-actions .delete-project:hover {
  background:#b43b3512
}

html[data-theme=dark] .row-actions .delete-project {
  color:#ff9b93
}

.photo-dialog .photo-close,.visual-dialog #visualization-close,.visual-dialog .visualization-browse>button,.style-photo-dialog button {
  display:grid;
  place-items:center;
  flex-shrink:0;
  padding:0;
  width:40px;
  height:40px;
  min-width:40px;
  min-height:40px;
  line-height:1;
  box-sizing:border-box
}

.visual-dialog .visualization-browse>button {
  width:44px;
  height:44px
}

.photo-close svg,.visual-dialog button svg,.style-photo-dialog button svg {
  display:block;
  width:20px;
  height:20px;
  margin:0;
  pointer-events:none
}

@media(max-width:600px) {
  .visual-rooms-header,.visual-room-footer {
    align-items:flex-start;
    flex-direction:column
  }

  .visual-room-fields {
    grid-template-columns:1fr
  }

  .visual-room-footer small {
    max-width:none
  }

}
/* Keep the options beside the empty preview compact so room controls follow it. */
.visualization-parameters { max-height: 343px; }
.visualization-parameters:has(.custom-concept-style) { max-height: 515px; }
/* Show the currency after editing while retaining a numeric value for storage. */
.budget-input { position: relative; width: 100%; font-size: 16px; }
.field .budget-input input { width: 100%; padding-left: 13px; padding-right: 44px; font: inherit; appearance: textfield; }
.budget-input input::-webkit-inner-spin-button,
.budget-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.budget-currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  pointer-events: none;
  opacity: 1;
  transition: opacity .18s ease;
}
.budget-input:focus-within .budget-currency,
.budget-input input:placeholder-shown ~ .budget-currency { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .budget-currency { transition: none; }
}

.budget-number { visibility: hidden; }
.budget-symbol { margin-left: 6px; }
.numeric-note { color: #bd492d; margin-top: 7px; }
.budget-comparison-note { color: var(--secondary); background: var(--control); padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; margin: 0; }
.choices-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; margin-left: 5px; padding: 2px 6px; border-radius: 8px; background: var(--canvas); font-size: 12px; color: var(--secondary); }
.empty-choices { margin-top: 14px; }
.empty-choices summary { cursor: pointer; color: var(--secondary); font-size: 12px; padding-block: 8px; }
.summary-edit { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 5px; border: 0; border-radius: 7px; color: var(--secondary); background: transparent; vertical-align: middle; }
.summary-edit svg { width: 16px; height: 16px; }
.summary-edit span { font-size: 0; }
.summary-edit:hover { color: var(--accent); background: var(--control); }
.summary-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search { position: relative; }
.search #search { padding-right: 42px; }
.clear-history-search { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--secondary); }
.clear-history-search svg { width: 16px; height: 16px; }
.clear-history-search:hover { background: var(--control); color: var(--text); }
.clear-history-search[hidden],.numeric-note[hidden],.budget-comparison-note[hidden] { display: none; }
.history-result-count { font-size: 12px; color: var(--secondary); margin: 0 0 12px; }
.search .clear-history-search svg { position: static; width: 16px; height: 16px; color: inherit; }
.search #search::-webkit-search-cancel-button { appearance: none; }
.summary-edit.has-label span { font-size: 11px; }
html[data-theme=dark] .numeric-note { color: #ff9a80; }

.visualization-status {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:13px 15px;
  border:1px solid #e7d9ba;
  background:#fffaf0;
  border-radius:13px;
  color:#725b2b;
  font-size:11px;
  line-height:1.55;
  margin:-10px 0 19px
}

.visualization-status strong {
  white-space:nowrap
}

.visualization-status.ready {
  border-color:#c9dff7;
  background:#f2f8ff;
  color:#34638e
}

.visualization-workspace {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(205px,.8fr);
  gap:18px
}

.visualization-stage,.visualization-parameters {
  border:1px solid var(--border);
  border-radius:19px;
  background:var(--control);
  padding:13px;
  min-width:0
}

.visualization-main {
  position:relative;
  display:block;
  width:100%;
  height:315px;
  padding:0;
  border:0;
  border-radius:13px;
  overflow:hidden;
  background:#ececf0;
  cursor:zoom-in
}

.visualization-main img {
  width:100%;
  height:100%;
  display:block;
  object-fit:contain
}

.visualization-main span {
  position:absolute;
  right:11px;
  bottom:11px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:7px 9px;
  border-radius:8px;
  background:#fffffff0;
  color:#34343a;
  font-size:10px
}

.visualization-main span svg {
  width:14px;
  height:14px
}

.visualization-caption {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:11px 3px 3px;
  font-size:11px
}

.visualization-caption span {
  color:var(--muted);
  text-align:right
}

.visualization-empty {
  min-height:315px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
  color:var(--muted)
}

.visualization-empty>div {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#eeeef2;
  margin-bottom:11px
}

.visualization-empty svg {
  width:22px
}

.visualization-empty h2 {
  font-size:17px;
  color:var(--text);
  margin:0 0 7px
}

.visualization-empty p {
  font-size:11px;
  line-height:1.6;
  max-width:250px;
  margin:0
}

.visualization-gallery {
  display:flex;
  gap:8px;
  overflow:auto;
  padding-top:11px
}

.visualization-thumb {
  position:relative;
  flex:0 0 98px
}

.visualization-thumb>button:first-child {
  display:block;
  width:98px;
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  padding:0;
  background:var(--card);
  text-align:left
}

.visualization-thumb.selected>button:first-child {
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent)
}

.visualization-thumb img {
  width:96px;
  height:68px;
  display:block;
  object-fit:cover
}

.visualization-thumb span {
  display:block;
  padding:5px 6px;
  font-size:9px
}

.visualization-remove {
  position:absolute;
  right:-4px;
  top:-5px;
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:50%;
  color:#8e4141
}

.visualization-remove svg {
  width:12px;
  height:12px
}

.visualization-parameters {
  padding:18px
}

.visualization-parameters>div {
  padding-bottom:14px;
  border-bottom:1px solid var(--border)
}

.visualization-parameters strong {
  display:block;
  font-size:15px;
  line-height:1.35;
  margin-top:6px
}

.visualization-parameters small {
  display:block;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
  margin-top:7px
}

.visualization-parameters h2 {
  font-size:14px;
  margin:16px 0 7px
}

.visualization-parameters dl {
  margin:0
}

.visualization-parameters dl>div {
  padding:7px 0;
  border-bottom:1px solid #eeeef1
}

.visualization-parameters dt {
  font-size:9px;
  color:var(--muted)
}

.visualization-parameters dd {
  font-size:10px;
  line-height:1.45;
  margin:3px 0 0;
  overflow-wrap:anywhere
}

.visualization-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-top:1px solid var(--border);
  padding-top:18px;
  margin-top:19px
}

.visualization-actions>span {
  font-size:10px;
  line-height:1.55;
  color:var(--muted);
  max-width:420px
}

.visualization-action-buttons {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex-wrap:wrap
}

.visual-dialog {
  padding:20px;
  border:1px solid var(--border);
  border-radius:24px;
  background:var(--card);
  width:min(1100px,90vw);
  max-width:90vw;
  box-shadow:0 24px 100px #00000045
}

.visual-dialog::backdrop {
  background:#16161c99;
  backdrop-filter:blur(10px)
}

.visual-dialog header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px
}

.visual-dialog h2 {
  font-size:19px;
  margin:0
}

.visual-dialog img {
  display:block;
  width:100%;
  max-height:75vh;
  object-fit:contain;
  background:#f1f1f4;
  border-radius:14px;
  user-select:none;
  -webkit-user-drag:none
}

.visual-dialog > header > button,
.visual-dialog .photo-arrow {
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  font-size:25px;
  background:#eeeef2;
  color:#56565d
}

@media(max-width:850px) {
  .visualization-workspace {
    grid-template-columns:1fr
  }

  .visualization-main {
    height:280px
  }

}

html[data-theme=dark] .visualization-stage,html[data-theme=dark] .visualization-parameters {
  background:#2b2b30;
  border-color:#44444b
}

html[data-theme=dark] .visualization-main,html[data-theme=dark] .visual-dialog img {
  background:#313138
}

html[data-theme=dark] .visualization-status {
  background:#2d2a22;
  border-color:#5a4b2d;
  color:#dec584
}

html[data-theme=dark] .visualization-status.ready {
  background:#203346;
  border-color:#385b7a;
  color:#91c5f6
}

html[data-theme=dark] .visualization-empty>div,
html[data-theme=dark] .visual-dialog > header > button,
html[data-theme=dark] .visual-dialog .photo-arrow {
  background:#404047;
  color:#eeeef4
}

html[data-theme=dark] .visualization-thumb>button:first-child,html[data-theme=dark] .visualization-remove {
  background:#28282d;
  border-color:#45454d
}
/* Custom style stays with the concept controls and follows existing fields. */
.custom-concept-style { display: grid; gap: 8px; margin-top: 18px; }
.custom-concept-style label { font-size: 14px; font-weight: 600; }
.custom-concept-style textarea { width: 100%; min-height: 108px; resize: vertical; }

/* Shared dimensions for forms, catalog pages and visualization workspaces. */
:root {
  --workspace-max-width: 1760px;
  --form-content-max: 795px;
  --wide-content-max: 1280px;
}
html { scrollbar-gutter: stable; }
.step-window:has(.solution-grid, .style-round, .style-match-intro, .style-match-result, .visualization-workspace) {
  --form-content-max: var(--wide-content-max);
}
@media (min-width: 601px) {
  .wizard-shell .wizard-body { width: min(var(--workspace-max-width), 100%); }
  .wizard-shell .wizard-main { padding-top: 0; }
  .wizard-shell .wizard-main > .step-window { margin-inline: auto; }
}

/* Keep the stage control beside the stage list, away from the home action. */
.rail-region {
  position: sticky;
  top: 112px;
  align-self: start;
  min-width: 0;
  transition: opacity .32s ease, transform .42s cubic-bezier(.22,.72,.18,1), visibility 0s linear;
}
.rail-region .steps-disclosure { position: static; }
.rail-region .rail-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--canvas);
}
.rail-region .rail-heading { padding-right: 52px; }
@media (min-width: 601px) {
  .rail-hidden .wizard-body {
    grid-template-columns: 0px minmax(0,1fr);
    column-gap: 0;
  }
  .rail-hidden .rail-region .rail-toggle { top: 0; right: 0; }
}
@media (max-width: 600px) {
  .rail-region { position: relative; top: auto; width: 100%; }
  .rail-region .rail-toggle { top: 3px; right: 5px; width: 40px; height: 40px; }
  .rail-region .steps-disclosure > summary { padding-right: 54px; }
  .rail-hidden .rail-region { display: none; min-height: 44px; }
  .rail-hidden .rail-region .steps-disclosure { display: none; }
  .rail-hidden .rail-region .rail-toggle { top: 0; left: 0; right: auto; }
}

/* When collapsed, the restore action belongs to the form card. */
.rail-toggle-label { display: none; }
.rail-hidden .rail-region {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-12px);
  overflow: hidden;
  pointer-events: none;
  transition: opacity .24s ease, transform .42s cubic-bezier(.22,.72,.18,1), visibility 0s linear .42s;
}
.window-toolbar > .rail-toggle {
  position: static;
  width: auto;
  min-height: 40px;
  height: 40px;
  padding: 0 13px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
}
.window-toolbar > .rail-toggle .rail-toggle-label { display: inline; }
.window-toolbar > .rail-toggle:hover { color: var(--blue); border-color: var(--blue); }
@media (max-width:600px) {
  .window-toolbar > .rail-toggle { height: 36px; min-height: 36px; }
}

.window-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 40px;
  margin-bottom: 20px;
}
.window-toolbar .window-step { margin-bottom: 0; }

.draft-resume { margin-top: 16px; }
.draft-resume small { display: block; margin-top: 7px; color: var(--secondary); font-size: 11px; }
.draft-shelf { margin: 0 0 24px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.draft-shelf h2 { margin: 0 0 12px; font-size: 16px; }
.draft-shelf article { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 0; border-top: 1px solid var(--border); }
.draft-shelf article > div:last-child { display: flex; align-items: center; gap: 8px; }
.draft-shelf strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.draft-shelf small { display: block; margin-top: 4px; color: var(--secondary); font-size: 11px; }
.draft-shelf .button { font-size: 11px; }
.visual-room-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.visual-room-controls .button.secondary { color: var(--accent); }
@media (max-width: 600px) {
  .draft-shelf article { align-items: flex-start; flex-direction: column; gap: 10px; }
  .visual-room-controls { justify-content: flex-start; }
}

/* Shared visual treatment for the primary actions across the studio. */
html .button.primary:not(:disabled) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #ffffff38;
  background: linear-gradient(120deg, #087df5 0%, #0068e3 55%, #1858d8 100%);
  box-shadow: inset 0 1px 0 #ffffff40, 0 6px 16px #0066dd24;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s, background .32s;
}

html .button.primary:not(:disabled)::before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -75%;
  width: 45%;
  background: linear-gradient(90deg, transparent, #ffffff30, transparent);
  transform: skewX(-24deg);
  pointer-events: none;
}

html .button.primary:not(:disabled) svg {
  padding: 4px;
  box-sizing: content-box;
  border-radius: 9px;
  background: #ffffff16;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), background .3s;
}

@media (hover: hover) and (pointer: fine) {
  html .button.primary:not(:disabled):hover {
    transform: translateY(-4px);
    background: linear-gradient(120deg, #168bff 0%, #0777f4 55%, #2263e8 100%);
    box-shadow: inset 0 1px 0 #ffffff59, 0 12px 28px #0066dd38, 0 3px 8px #0066dd20;
  }

  html .button.primary:not(:disabled):hover::before {
    animation: create-brief-sheen .8s cubic-bezier(.2,.6,.3,1) both;
  }

  html .button.primary:not(:disabled):hover svg {
    transform: translateX(3px);
    background: #ffffff2b;
  }

  html .button.primary:not(:disabled):hover .icon-plus {
    transform: rotate(90deg);
  }

  html .button.primary:not(:disabled):hover .icon-download {
    transform: translateY(3px);
  }

  html .button.primary:not(:disabled):hover .icon-check {
    transform: scale(1.1);
  }
}

html .button.primary:not(:disabled):active {
  transform: translateY(0) scale(.98);
  box-shadow: inset 0 2px 4px #00439430, 0 2px 6px #0066dd20;
}

@keyframes create-brief-sheen {
  from { left: -75%; }
  to { left: 145%; }
}

@media (prefers-reduced-motion: reduce) {
  html .button.primary:not(:disabled),
  html .button.primary:not(:disabled) svg {
    transition: none;
  }
  html .button.primary:not(:disabled)::before { display: none; }
  html .button.primary:not(:disabled):hover,
  html .button.primary:not(:disabled):hover svg,
  html .button.primary:not(:disabled):hover .icon-plus,
  html .button.primary:not(:disabled):hover .icon-download,
  html .button.primary:not(:disabled):hover .icon-check,
  html .button.primary:not(:disabled):active { transform: none; }
}

/* Original brand paths; web SVG viewBoxes remove the export's empty canvas. */
.brand-logo { vertical-align: middle; }
.brand-logo img { width: 160px; height: auto; }
.brand-logo .brand-logo-light { display: block; }
.brand-logo .brand-logo-dark { display: none; }
html[data-theme="dark"] .brand-logo .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo .brand-logo-dark { display: block; }

@media (max-width: 700px) {
  .brand-logo img { width: 128px; }
  .wizard-header .brand-logo img { width: 112px; }
}
/* Match the centered brand on the saved-brief screen to the other screens. */
.preview-screen .screen-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding-right: 0;
}
.preview-screen .screen-top > .preview-nav {
  grid-column: 1;
  justify-self: start;
}
.preview-screen .screen-top > .brand-logo {
  grid-column: 2;
  justify-self: center;
}
@media (max-width: 700px) {
  .preview-screen .screen-top { gap: 8px; }
  .preview-screen .preview-nav { gap: 4px; }
  .preview-screen .preview-nav .button {
    font-size: 0;
    gap: 0;
    padding: 10px;
  }
}
@media (max-width: 380px) {
  .preview-screen .screen-top .brand-logo img { width: 112px; }
  .preview-screen .preview-nav .button { padding: 7px; }
}

/* A quiet, responsive ambient canvas for the empty space around the brief. */
@property --ambient-x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --ambient-y { syntax: "<percentage>"; inherits: true; initial-value: 42%; }

.wizard-shell,
.start-screen,
.cloud-login {
  isolation: isolate;
}
.wizard-shell {
  position: relative;
  background: var(--canvas);
}
.start-screen > .ambient-backdrop,
.cloud-login > .ambient-backdrop {
  position: absolute;
  z-index: 0;
}
.start-screen > .start-center {
  position: relative;
  z-index: 1;
}
.start-screen > .start-brand,
.start-screen > .start-actions,
.start-screen > .start-footnote {
  z-index: 1;
}
.wizard-shell > :not(.ambient-backdrop) {
  z-index: 1;
}
.wizard-shell > .wizard-body {
  position: relative;
}
.ambient-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}
.ambient-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse 520px 480px at var(--ambient-x, 50%) var(--ambient-y, 42%), rgba(173, 202, 239, .34), transparent 72%);
  transition: --ambient-x 1.05s cubic-bezier(.18,.72,.24,1), --ambient-y 1.05s cubic-bezier(.18,.72,.24,1), opacity 2.5s cubic-bezier(.22,.61,.36,1);
}
.ambient-backdrop.ambient-active::after {
  opacity: 1;
  transition: --ambient-x 1.05s cubic-bezier(.18,.72,.24,1), --ambient-y 1.05s cubic-bezier(.18,.72,.24,1), opacity .28s ease-out;
}

html[data-theme="dark"] .ambient-backdrop::after {
  background: radial-gradient(ellipse 520px 480px at var(--ambient-x, 50%) var(--ambient-y, 42%), rgba(52, 126, 196, .14), transparent 72%);
}

@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .ambient-backdrop::after { display: none; }
}

/* Keep the sticky brand header above the scrolling form card. */
.wizard-shell > .wizard-header {
  z-index: 40;
  background: var(--canvas);
}
.wizard-shell > .wizard-progress {
  z-index: 39;
}

.pdf-composer { width: min(900px, calc(100vw - 32px)); max-height: 90dvh; padding: 0; border: 1px solid var(--line); border-radius: 26px; background: var(--card, #fff); color: inherit; box-shadow: 0 30px 100px #0003; }
.pdf-composer::backdrop { background: #16192370; backdrop-filter: blur(6px); }
.pdf-composer[open] { display: flex; flex-direction: column; }
.pdf-composer-header { display: flex; justify-content: space-between; gap: 24px; padding: 26px 30px 20px; border-bottom: 1px solid var(--line); }
.pdf-composer h2 { margin: 4px 0 8px; font-size: 28px; letter-spacing: -.7px; }
.pdf-composer h3 { margin: 0 0 14px; font-size: 18px; }
.pdf-composer-header p { margin: 0; color: var(--muted); }
.pdf-close, .pdf-photo-order button { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #86868b14; }
.pdf-close svg, .pdf-photo-order svg { width: 19px; height: 19px; }
.pdf-composer-body { overflow-y: auto; overscroll-behavior: contain; padding: 24px 30px; }
.pdf-composer-body section + section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.pdf-sections { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.pdf-sections label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pdf-sections label:has(:checked) { border-color: #0071e355; background: #0071e309; }
.pdf-composer input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: #0071e3; flex-shrink: 0; }
.pdf-hint { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0; }
.pdf-photos-heading { display: flex; justify-content: space-between; gap: 15px; }
.pdf-photos-heading h3 { margin-bottom: 0; }
.pdf-photo-count { color: var(--muted); white-space: nowrap; font-size: 13px; }
.pdf-photo-list { display: grid; gap: 12px; margin-top: 18px; }
.pdf-photo-list[inert] { opacity: .45; }
.pdf-photo-row { display: grid; grid-template-columns: 155px minmax(0,1fr) 38px; gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.pdf-photo-row.is-included { border-color: #0071e36b; }
.pdf-photo-choice { position: relative; cursor: pointer; align-self: start; }
.pdf-photo-choice img { width: 100%; height: 112px; object-fit: cover; border-radius: 10px; display: block; }
.pdf-photo-choice input { position: absolute; left: 8px; top: 8px; box-shadow: 0 0 0 3px #fff; border-radius: 3px; }
.pdf-photo-details { min-width: 0; display: grid; gap: 6px; }
.pdf-photo-details > span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pdf-photo-details label { font-size: 12px; margin-top: 4px; }
.pdf-photo-details textarea { width: 100%; min-height: 70px; padding: 10px 12px; font-size: 13px; resize: vertical; }
.pdf-photo-order { display: grid; align-content: start; gap: 8px; }
.pdf-photo-order button:disabled { opacity: .3; }
.pdf-composer-footer { border-top: 1px solid var(--line); padding: 18px 30px; }
.pdf-composer-footer > div { display: flex; justify-content: flex-end; gap: 10px; }
.pdf-composer-error { display: block; color: #c13737; margin-bottom: 12px; }
.pdf-composer-error[hidden] { display: none; }
.pdf-budget-notice { padding: 14px 16px; margin-bottom: 22px; border: 1px solid #c58b2540; border-radius: 14px; background: #c58b2510; }
.pdf-budget-notice strong { font-size: 14px; }
.pdf-budget-notice p { font-size: 13px; line-height: 1.6; margin: 5px 0 0; color: var(--muted); }
.pdf-composer.pdf-is-loading { width: min(540px,calc(100vw - 32px)); }
.pdf-loading-screen { padding: 44px 40px 32px; text-align: center; }
.pdf-loading-art { width: 176px; height: 176px; position: relative; margin: 0 auto 20px; display: grid; place-items: center; }
.pdf-loading-halo { position: absolute; inset: 0; background: radial-gradient(circle,#007aff21,transparent 70%); border-radius: 50%; animation: pdf-halo 2.8s ease-in-out infinite; }
.pdf-loading-paper { position: relative; overflow: hidden; width: 106px; height: 138px; border-radius: 12px; border: 1px solid #0071e326; background: var(--card,#fff); padding: 16px 13px; box-shadow: 0 16px 40px #0066dd19,0 2px 6px #00000008; transform: rotate(-6deg); animation: pdf-paper-float 3s ease-in-out infinite; }
.pdf-paper-brand { display: block; font-size: 9px; font-weight: 700; text-align: left; letter-spacing: .5px; }
.pdf-paper-picture { display: block; height: 34px; border-radius: 5px; margin-top: 12px; background: linear-gradient(135deg,#007aff25,#007aff08); border: 1px solid #007aff14; }
.pdf-paper-line { display: block; height: 4px; margin-top: 8px; border-radius: 5px; background: #86868b25; }
.pdf-paper-line.short { width: 65%; }
.pdf-paper-seal { position: absolute; bottom: 11px; right: 12px; font-size: 8px; font-weight: 700; letter-spacing: .8px; color: #0071e3; }
.pdf-paper-scan { position: absolute; inset: -40% 0 auto; height: 45%; background: linear-gradient(transparent,#007aff14,transparent); animation: pdf-paper-scan 2.4s ease-in-out infinite; }
.pdf-loading-spark { position: absolute; width: 7px; height: 7px; background: #007aff; border-radius: 50%; box-shadow: 0 0 0 5px #007aff0d; animation: pdf-spark 2.8s ease-in-out infinite; }
.spark-one { top: 30px; right: 15px; }
.spark-two { bottom: 28px; left: 13px; width: 5px; height: 5px; animation-delay: -1.4s; }
.pdf-loading-screen .eyebrow { font-size: 9px; letter-spacing: 1.6px; color: var(--muted); margin: 0 0 10px; }
.pdf-loading-screen h2 { font-size: clamp(22px,4vw,28px); margin: 0 0 12px; }
.pdf-loading-description { color: var(--muted); font-size: 14px; line-height: 1.6; min-height: 45px; margin: 0; }
.pdf-loading-meter { margin-top: 26px; height: 5px; background: #007aff14; border-radius: 10px; overflow: hidden; }
.pdf-loading-meter > span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg,#0071e3,#55adff); animation: pdf-meter-travel 1.6s ease-in-out infinite; }
.pdf-loading-meter.is-determinate > span { animation: none; transition: width .18s ease; }
.pdf-loading-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.pdf-loading-value { font-variant-numeric: tabular-nums; }
.pdf-loading-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 26px 0 0; }
.pdf-loading-complete .pdf-loading-paper { animation: none; transform: rotate(0); transition: transform .3s; }
.pdf-loading-complete .pdf-paper-scan { display: none; }
.pdf-loading-complete .pdf-loading-meter > span { background: #22a06b; }
@keyframes pdf-paper-float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-7px) rotate(-3deg); } }
@keyframes pdf-halo { 0%,100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes pdf-spark { 0%,100% { opacity: .35; transform: translateY(3px); } 50% { opacity: 1; transform: translateY(-4px); } }
@keyframes pdf-paper-scan { to { top: 110%; } }
@keyframes pdf-meter-travel { 0% { transform: translateX(-110%); } 100% { transform: translateX(350%); } }
@media(prefers-reduced-motion:reduce) {
  .pdf-loading-art *, .pdf-loading-meter > span { animation: none!important; transition: none!important; }
  .pdf-loading-meter:not(.is-determinate) > span { width: 100%; opacity: .5; }
}
@media(max-width: 600px) {
  .pdf-composer { width: calc(100vw - 16px); max-height: 94dvh; border-radius: 18px; }
  .pdf-composer-header, .pdf-composer-body, .pdf-composer-footer { padding: 18px; }
  .pdf-sections { grid-template-columns: 1fr; }
  .pdf-photo-row { grid-template-columns: minmax(0,1fr) 38px; gap: 12px; }
  .pdf-photo-choice { grid-column: 1; }
  .pdf-photo-choice img { height: 140px; }
  .pdf-photo-details { grid-row: 2; grid-column: 1 / -1; }
  .pdf-photo-order { grid-column: 2; grid-row: 1; }
  .pdf-loading-screen { padding: 30px 22px; }
}

/* Soft open and close transitions for enlarged-photo lightboxes. */
.photo-dialog,
.style-photo-dialog,
.visual-dialog {
  opacity: 0;
  transform: translateY(12px) scale(.97);
  filter: blur(5px);
  transition:
    opacity 380ms cubic-bezier(.22,.61,.36,1),
    transform 480ms cubic-bezier(.22,.61,.36,1),
    filter 380ms cubic-bezier(.22,.61,.36,1),
    display 480ms allow-discrete,
    overlay 480ms allow-discrete;
}

.photo-dialog[open],
.style-photo-dialog[open],
.visual-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.photo-dialog[open] { animation: none; }

.photo-dialog::backdrop,
.style-photo-dialog::backdrop,
.visual-dialog::backdrop {
  background: rgba(15, 16, 22, 0);
  backdrop-filter: blur(0);
  transition:
    background 420ms ease,
    backdrop-filter 420ms ease,
    display 480ms allow-discrete,
    overlay 480ms allow-discrete;
}

.photo-dialog[open]::backdrop,
.style-photo-dialog[open]::backdrop,
.visual-dialog[open]::backdrop {
  background: rgba(15, 16, 22, .62);
  backdrop-filter: blur(12px);
}

@starting-style {
  .photo-dialog[open],
  .style-photo-dialog[open],
  .visual-dialog[open] {
    opacity: 0;
    transform: translateY(12px) scale(.97);
    filter: blur(5px);
  }

  .photo-dialog[open]::backdrop,
  .style-photo-dialog[open]::backdrop,
  .visual-dialog[open]::backdrop {
    background: rgba(15, 16, 22, 0);
    backdrop-filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-dialog,
  .style-photo-dialog,
  .visual-dialog,
  .photo-dialog::backdrop,
  .style-photo-dialog::backdrop,
  .visual-dialog::backdrop {
    transition-duration: .01ms;
  }
}

/* Smooth, cursor-focused wheel zoom in the solution lightbox. */
.photo-full-stage {
  overflow: hidden;
  cursor: default;
}

.photo-full-stage.photo-zoomed:not(.photo-panning) {
  cursor: grab;
}

.photo-full-stage.photo-panning {
  cursor: grabbing !important;
}

.photo-full-stage.photo-wheel-in:not(.photo-panning) {
  cursor: zoom-in;
}

.photo-full-stage.photo-wheel-out:not(.photo-panning) {
  cursor: zoom-out;
}

.photo-full-stage #photo-full,
.photo-full-stage #visualization-full {
  transform-origin: 0 0;
  transform: translate3d(var(--photo-zoom-x, 0px), var(--photo-zoom-y, 0px), 0)
    scale(var(--photo-zoom-scale, 1));
  transition: transform 420ms cubic-bezier(.2, .75, .25, 1);
  will-change: transform;
}

.photo-full-stage #photo-full.photo-zoom-no-transition,
.photo-full-stage #visualization-full.photo-zoom-no-transition {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .photo-full-stage #photo-full,
.photo-full-stage #visualization-full {
    transition-duration: .01ms;
  }
}
.photo-full-stage.photo-panning #photo-full,
.photo-full-stage.photo-panning #visualization-full {
  transition: none;
}
/* Directional, soft transitions between photos in the enlarged gallery. */
.photo-full-stage.photo-switch-out-left {
  animation: photo-switch-out-left 150ms cubic-bezier(.4, 0, 1, 1) both;
}
.photo-full-stage.photo-switch-out-right {
  animation: photo-switch-out-right 150ms cubic-bezier(.4, 0, 1, 1) both;
}
.photo-full-stage.photo-switch-in-from-right {
  animation: photo-switch-in-from-right 420ms cubic-bezier(.2, .75, .25, 1) both;
}
.photo-full-stage.photo-switch-in-from-left {
  animation: photo-switch-in-from-left 420ms cubic-bezier(.2, .75, .25, 1) both;
}
@keyframes photo-switch-out-left {
  to { opacity: 0; transform: translateX(-24px) scale(.992); filter: blur(2px); }
}
@keyframes photo-switch-out-right {
  to { opacity: 0; transform: translateX(24px) scale(.992); filter: blur(2px); }
}
@keyframes photo-switch-in-from-right {
  from { opacity: 0; transform: translateX(24px) scale(.992); filter: blur(2px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@keyframes photo-switch-in-from-left {
  from { opacity: 0; transform: translateX(-24px) scale(.992); filter: blur(2px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-full-stage.photo-switch-out-left,
  .photo-full-stage.photo-switch-out-right,
  .photo-full-stage.photo-switch-in-from-left,
  .photo-full-stage.photo-switch-in-from-right { animation-duration: .01ms; }
}
/* Let generated room images use nearly the whole viewport without cropping. */
.visual-dialog.photo-dialog {
  width: 98vw;
  max-width: 98vw;
  max-height: 98vh;
  padding: 18px 20px 14px;
  box-sizing: border-box;
  overflow: hidden;
}
.visual-dialog .visualization-full-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border-radius: 16px;
  background: transparent;
  padding: 0;
}
.visual-dialog .visualization-full-stage #visualization-full {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(98vh - 150px);
  min-height: 0;
  object-fit: contain;
}
.visual-dialog .photo-arrow {
  width: 40px;
  height: 52px;
  min-width: 40px;
  min-height: 52px;
  padding: 0;
  border: 1px solid #ffffffb3;
  border-radius: 14px;
  background: #ffffffeb;
  color: #3b3b43;
  font-size: 16px;
}
.visual-dialog .photo-arrow:hover {
  background: #fff;
  box-shadow: 0 5px 18px #00000018;
}
.visual-dialog .photo-gallery-footer {
  margin-top: 14px;
}
html[data-theme=dark] .visual-dialog .visualization-full-stage {
  background: transparent;
}
html[data-theme=dark] .visual-dialog .photo-arrow {
  background: #45454def;
  border-color: #ffffff20;
  color: #f5f5f7;
}
html[data-theme=dark] .visual-dialog .photo-arrow:hover {
  background: #565660;
}
@media (max-width: 640px) {
  .visual-dialog.photo-dialog {
    width: 96vw;
    max-width: 96vw;
    max-height: 96vh;
    padding: 12px 10px 10px;
  }
  .visual-dialog .visualization-full-stage {
    min-height: 0;
  }
  .visual-dialog .visualization-full-stage #visualization-full {
    max-width: 100%;
    max-height: calc(88vh - 130px);
  }
}/* Transition images independently; keep the frame and navigation fully opaque. */
.photo-full-stage { position: relative; }
.photo-full-stage.photo-blending { background: #191b20; }
.photo-full-stage > .gallery-previous { display: block; border-radius: inherit; }
.photo-full-stage .photo-arrow { z-index: 4; }

/* Small, shared refinements that keep the existing BudeGood visual language. */
:root {
  --motion-ui: cubic-bezier(.2,.72,.24,1);
  --motion-fast: 180ms;
  --motion-panel: 320ms;
}

/* Keep responsive layouts from nudging when a stage has more content. */
.wizard-body,
.wizard-main,
.wizard-main > .step-window {
  min-width: 0;
}

.wizard-main > .step-window {
  width: 100%;
}

/* Consistent, restrained response on controls and selectable solution cards. */
.button,
.solution,
.visualization-gallery .visualization-thumb > button:first-child,
.pdf-sections label,
.pdf-photo-row {
  transition-timing-function: var(--motion-ui);
}

.button {
  transition-property: transform, background-color, color, box-shadow, border-color;
  transition-duration: var(--motion-fast);
}

.button:active:not(:disabled) {
  transform: scale(.985);
}

.solution {
  transition: transform 220ms var(--motion-ui), border-color 220ms var(--motion-ui), box-shadow 220ms var(--motion-ui), background-color 220ms var(--motion-ui);
}

.solution:focus-visible,
.visualization-gallery .visualization-thumb > button:first-child:focus-visible,
.pdf-close:focus-visible,
.pdf-photo-order button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .button:active:not(:disabled) {
    transform: scale(.985);
  }

  .solution:hover,
  .solution.selected:hover {
    transform: translateY(-2px);
  }

  .visualization-gallery .visualization-thumb > button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #11111112;
  }
}

.visualization-gallery .visualization-thumb > button:first-child {
  transition: transform 220ms var(--motion-ui), border-color 220ms var(--motion-ui), box-shadow 220ms var(--motion-ui);
}

.visualization-gallery .visualization-thumb.viewing > button:first-child {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* The PDF editor shares the page's theme and receives a soft native-style entrance. */
.pdf-composer {
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity var(--motion-panel) var(--motion-ui),
    transform var(--motion-panel) var(--motion-ui),
    display var(--motion-panel) allow-discrete,
    overlay var(--motion-panel) allow-discrete;
}

.pdf-composer[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .pdf-composer[open] {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }

  .pdf-composer[open]::backdrop {
    opacity: 0;
  }
}

.pdf-composer::backdrop {
  opacity: 1;
  transition: opacity var(--motion-panel) var(--motion-ui),
    display var(--motion-panel) allow-discrete,
    overlay var(--motion-panel) allow-discrete;
}

.pdf-composer[open]::backdrop {
  background: rgb(18 20 27 / 48%);
  backdrop-filter: blur(9px) saturate(.9);
}

.pdf-composer-header,
.pdf-composer-footer,
.pdf-photo-row,
.pdf-sections label,
.pdf-close,
.pdf-photo-order button {
  transition: background-color var(--motion-fast) var(--motion-ui), border-color var(--motion-fast) var(--motion-ui), box-shadow var(--motion-fast) var(--motion-ui), transform var(--motion-fast) var(--motion-ui);
}

.pdf-sections label:hover,
.pdf-photo-row:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.pdf-close:hover,
.pdf-photo-order button:not(:disabled):hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--canvas));
  color: var(--accent);
}

html[data-theme="dark"] .pdf-composer {
  color: var(--text);
  border-color: var(--border);
  background: var(--card);
  box-shadow: 0 32px 100px rgb(0 0 0 / 55%);
}

html[data-theme="dark"] .pdf-composer::backdrop {
  background: rgb(0 0 0 / 58%);
}

html[data-theme="dark"] .pdf-composer-header,
html[data-theme="dark"] .pdf-composer-footer,
html[data-theme="dark"] .pdf-composer-body section + section {
  border-color: var(--border);
}

html[data-theme="dark"] .pdf-sections label,
html[data-theme="dark"] .pdf-photo-row {
  border-color: var(--border);
  background: #29292d;
}

html[data-theme="dark"] .pdf-sections label:has(:checked),
html[data-theme="dark"] .pdf-photo-row.is-included {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}

html[data-theme="dark"] .pdf-close,
html[data-theme="dark"] .pdf-photo-order button {
  background: #38383e;
  color: var(--text);
}

html[data-theme="dark"] .pdf-photo-choice input {
  box-shadow: 0 0 0 3px var(--card);
}

html[data-theme="dark"] .pdf-composer textarea {
  background: var(--control);
  color: var(--text);
  border-color: var(--border);
}

@media (max-width: 600px) {
  .pdf-composer {
    transform: translateY(8px) scale(.99);
  }

  .pdf-composer[open] {
    transform: translateY(0) scale(1);
  }

  .pdf-composer-header {
    gap: 12px;
  }

  .pdf-composer h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .solution,
  .visualization-gallery .visualization-thumb > button:first-child,
  .pdf-composer,
  .pdf-composer::backdrop,
  .pdf-composer-header,
  .pdf-composer-footer,
  .pdf-photo-row,
  .pdf-sections label,
  .pdf-close,
  .pdf-photo-order button {
    transition: none !important;
  }

  .button:active:not(:disabled),
  .button:hover:not(:disabled),
  .solution:hover,
  .visualization-gallery .visualization-thumb > button:first-child:hover {
    transform: none;
  }
}




.photo-filmstrip[hidden] { display: none !important; }
.photo-filmstrip {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 12px;
  box-sizing: border-box;
  width: max-content;
  max-width: min(560px, calc(100% - 96px));
  padding: 7px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.46), rgba(255,255,255,.22));
  box-shadow: 0 8px 28px rgba(20,25,35,.14), inset 0 1px 0 rgba(255,255,255,.6);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(.98);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.2,.75,.25,1);
}
.photo-dialog.photo-filmstrip-visible .photo-filmstrip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.photo-filmstrip-track {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.photo-filmstrip-track::-webkit-scrollbar { display: none; }
.photo-filmstrip .photo-filmstrip-thumb {
  box-sizing: border-box;
  position: relative;
  display: block;
  flex: 0 0 78px;
  width: 78px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.24);
  border-radius: 11px;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  opacity: .76;
  transition: opacity 180ms ease, transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.photo-filmstrip .photo-filmstrip-thumb:hover { opacity: 1; transform: translateY(-2px); }
.photo-filmstrip .photo-filmstrip-thumb[aria-current="true"] {
  border-color: #1682ff;
  box-shadow: 0 0 0 1px #1682ff, 0 4px 16px rgba(0,102,255,.35);
  opacity: 1;
}
.photo-filmstrip .photo-filmstrip-thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.photo-filmstrip .photo-filmstrip-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: inherit;
  background: transparent;
  object-fit: cover;
  pointer-events: none;
}
.photo-filmstrip-index {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 17px;
  padding: 1px 4px;
  border-radius: 6px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font: 600 10px/1.4 system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}
@media (max-width: 640px) {
  .photo-filmstrip { max-width: calc(100% - 54px); bottom: 8px; padding: 5px; border-radius: 14px; }
  .photo-filmstrip-track { gap: 5px; }
  .photo-filmstrip .photo-filmstrip-thumb { flex-basis: 64px; width: 64px; height: 46px; border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-filmstrip, .photo-filmstrip .photo-filmstrip-thumb { transition-duration: .01ms; }
}

/* Match the smooth zoom and panning used by the other photo viewers. */
.style-photo-stage {
  cursor: default;
  touch-action: none;
}
.style-photo-stage.photo-zoomed { cursor: grab; }
.style-photo-stage.photo-wheel-in { cursor: zoom-in; }
.style-photo-stage.photo-wheel-out { cursor: zoom-out; }
.style-photo-stage.photo-panning { cursor: grabbing; }
.style-photo-stage > #style-photo-image {
  transform-origin: 0 0;
  transform: translate3d(var(--photo-zoom-x, 0px), var(--photo-zoom-y, 0px), 0)
    scale(var(--photo-zoom-scale, 1));
  transition: transform 420ms cubic-bezier(.2, .75, .25, 1);
  will-change: transform;
  user-select: none;
}
.style-photo-stage.photo-panning > #style-photo-image,
.style-photo-stage > #style-photo-image.photo-zoom-no-transition { transition: none; }
.style-photo-stage > button { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .style-photo-stage > #style-photo-image { transition: none; }
}

/* Reversible selection feedback for completed construction stages. */
.checkbox-fieldset .check-option.work-option {
  --work-fill-start: rgba(0,113,227,.11);
  --work-fill-end: rgba(0,113,227,.035);
  --work-border: rgba(0,113,227,.5);
  --work-check-border: #93939d;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  transition: border-color 320ms ease, box-shadow 360ms ease;
  -webkit-tap-highlight-color: transparent;
}
.checkbox-fieldset .work-option::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg, var(--work-fill-start), var(--work-fill-end));
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: transform 460ms cubic-bezier(.2,.75,.25,1), opacity 320ms ease;
}
.checkbox-fieldset .check-option.work-option:has(input:checked) {
  background: transparent;
  border-color: var(--work-border);
  box-shadow: 0 3px 15px rgba(0,113,227,.065);
}
.checkbox-fieldset .work-option:has(input:checked)::before {
  transform: scaleX(1);
  opacity: 1;
}
.checkbox-fieldset .work-option > input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  clip-path: inset(50%);
}
.checkbox-fieldset .work-option > .work-checkbox {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1.5px solid var(--work-check-border);
  border-radius: 6px;
  background: transparent;
  box-shadow: 0 2px 6px transparent;
  transition: background-color 260ms ease, border-color 260ms ease, box-shadow 320ms ease;
}
.work-checkbox svg {
  display: block;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: scale(.7);
  transition: opacity 180ms ease, transform 320ms cubic-bezier(.2,.75,.25,1);
}
.work-checkbox path {
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 260ms cubic-bezier(.2,.75,.25,1);
}
.work-option > input:checked + .work-checkbox {
  background-color: var(--blue, #0071e3);
  border-color: var(--blue, #0071e3);
  box-shadow: 0 2px 8px rgba(0,113,227,.18);
}
.work-option > input:checked + .work-checkbox svg { opacity: 1; transform: scale(1); }
.work-option > input:checked + .work-checkbox path { stroke-dashoffset: 0; transition-delay: 70ms; }
.checkbox-fieldset .work-option:has(input:focus-visible) {
  border-color: var(--blue, #0071e3);
  box-shadow: 0 0 0 3px rgba(0,113,227,.14);
}
html[data-theme="dark"] .checkbox-fieldset .check-option.work-option {
  --work-fill-start: rgba(10,132,255,.22);
  --work-fill-end: rgba(10,132,255,.07);
  --work-border: rgba(88,166,255,.62);
  --work-check-border: #8a8a96;
}
@media (prefers-reduced-motion: reduce) {
  .checkbox-fieldset .work-option,
  .checkbox-fieldset .work-option::before,
  .checkbox-fieldset .work-checkbox,
  .work-checkbox svg,
  .work-checkbox path { transition-duration: .01ms; transition-delay: 0ms; }
}
@media (forced-colors: active) {
  .checkbox-fieldset .work-option::before,
  .checkbox-fieldset .work-option > .work-checkbox { display: none; }
  .checkbox-fieldset .work-option > input[type="checkbox"] {
    position: static;
    width: 20px;
    height: 20px;
    opacity: 1;
    clip-path: none;
  }
}

/* Keep photo selection on the existing card so every state can transition. */
.solution-grid .solution {
  transition: border-color 360ms ease, box-shadow 400ms ease, background-color 400ms ease;
}
.solution-grid .solution,
.solution-grid .solution:hover,
.solution-grid .solution:active,
.solution-grid .solution.selected:hover {
  transform: none;
}
.solution-grid > .solution-tile {
  transform: scale(1);
  transform-origin: center;
  transition: transform 460ms cubic-bezier(.2,.75,.25,1);
}
.solution-grid > .solution-tile:has(> .solution.selected) {
  transform: scale(1.008);
  z-index: 1;
}
.solution-grid .solution .solution-check {
  transition: background-color 320ms ease, border-color 320ms ease,
    color 260ms ease, box-shadow 320ms ease;
}
.solution-grid .solution .solution-check svg {
  position: absolute;
  display: block;
  transform-origin: center;
  transition: opacity 220ms ease, transform 340ms cubic-bezier(.2,.75,.25,1);
}
.solution-grid .solution .solution-check .icon-plus {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.solution-grid .solution.selected .solution-check .icon-plus {
  opacity: 0;
  transform: rotate(90deg) scale(.75);
}
.solution-grid .solution .solution-check .icon-check {
  opacity: 0;
  transform: scale(.8);
}
.solution-grid .solution.selected .solution-check .icon-check {
  opacity: 1;
  transform: scale(1);
}
.solution-grid .solution .icon-check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 280ms cubic-bezier(.2,.75,.25,1);
}
.solution-grid .solution.selected .icon-check path {
  stroke-dashoffset: 0;
  transition-delay: 60ms;
}
.solution-grid .solution .solution-status {
  display: grid;
  transition: color 300ms ease;
}
.solution-grid .solution .solution-status > span {
  grid-area: 1 / 1;
  transition: opacity 240ms ease;
}
.solution-grid .solution .solution-status-selected { opacity: 0; }
.solution-grid .solution.selected .solution-status-selected { opacity: 1; }
.solution-grid .solution.selected .solution-status-available { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .solution-grid > .solution-tile,
  .solution-grid > .solution-tile:has(> .solution.selected) {
    transform: none;
    transition: none;
  }
  .solution-grid .solution,
  .solution-grid .solution .solution-check,
  .solution-grid .solution .solution-check svg,
  .solution-grid .solution .icon-check path,
  .solution-grid .solution .solution-status,
  .solution-grid .solution .solution-status > span {
    transition-duration: .01ms;
    transition-delay: 0ms;
  }
}

/* A centered history header with a theme canvas covering the entire viewport. */
@media screen {
  html {
    min-height: 100%;
    background-color: var(--canvas);
  }
  body,
  #app,
  .history-screen {
    min-height: 100vh;
    min-height: 100dvh;
  }
  body,
  #app {
    background-color: var(--canvas);
  }
  #app { transition: background-color 220ms ease; }
}
.history-screen .screen-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding-right: 0;
}
.history-screen .screen-top > .button {
  grid-column: 1;
  justify-self: start;
  width: max-content;
}
.history-screen .screen-top > .brand-logo {
  grid-column: 2;
  justify-self: center;
}
@media (max-width: 480px) {
  .history-screen .screen-top { gap: 8px; }
  .history-screen .screen-top > .button {
    font-size: 0;
    gap: 0;
    padding: 10px;
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #app { transition: none; }
}

/* A gentle, temporary comparison cue before the next tournament pair. */
.style-round {
  --style-picked-tint: rgba(34, 179, 104, .10);
  --style-other-tint: rgba(222, 75, 75, .065);
}
.style-choice-tile .style-option {
  isolation: isolate;
  transition: border-color 280ms ease, box-shadow 320ms ease,
    transform 360ms cubic-bezier(.2,.75,.25,1);
}
.style-choice-tile .style-option::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  transition: opacity 280ms ease, background-color 280ms ease;
}
.style-choice-tile .style-option.is-picked {
  border-color: #31ad72;
  box-shadow: 0 0 0 3px rgba(34,179,104,.14), 0 6px 22px rgba(34,179,104,.08);
  transform: scale(1.006);
}
.style-choice-tile .style-option.is-picked::after {
  opacity: 1;
  background-color: var(--style-picked-tint);
}
.style-choice-tile .style-option.is-not-picked {
  border-color: #d89b9b;
  box-shadow: 0 0 0 2px rgba(222,75,75,.07);
  transform: none;
}
.style-choice-tile .style-option.is-not-picked::after {
  opacity: 1;
  background-color: var(--style-other-tint);
}
.style-choice-tile .style-option > .style-choice-check {
  z-index: 2;
  background: #25a667;
  box-shadow: 0 5px 24px rgba(25,128,76,.25);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.2,.75,.25,1);
}
.style-choice-check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 260ms cubic-bezier(.2,.75,.25,1);
}
.style-option.is-picked .style-choice-check path {
  stroke-dashoffset: 0;
  transition-delay: 60ms;
}
html[data-theme="dark"] .style-round {
  --style-picked-tint: rgba(53, 201, 125, .12);
  --style-other-tint: rgba(245, 107, 107, .08);
}
@media (prefers-reduced-motion: reduce) {
  .style-choice-tile .style-option,
  .style-choice-tile .style-option::after,
  .style-choice-tile .style-option > .style-choice-check,
  .style-choice-check path { transition-duration: .01ms; transition-delay: 0ms; }
  .style-choice-tile .style-option.is-picked { transform: none; }
}


/* A single, uniform dissolve keeps text, surfaces and the icon in sync. */
html.theme-crossfade::view-transition-group(root),
html.theme-crossfade::view-transition-old(root),
html.theme-crossfade::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
html.theme-crossfade::view-transition-old(root) { z-index: 1; }
html.theme-crossfade::view-transition-new(root) { z-index: 2; }
html.theme-crossfade,
html.theme-crossfade *,
html.theme-crossfade *::before,
html.theme-crossfade *::after {
  transition: none !important;
}
html.theme-fade,
html.theme-fade *,
html.theme-fade *::before,
html.theme-fade *::after {
  transition: background-color .52s cubic-bezier(.4,0,.2,1),
    color .52s cubic-bezier(.4,0,.2,1),
    border-color .52s cubic-bezier(.4,0,.2,1),
    box-shadow .52s cubic-bezier(.4,0,.2,1),
    fill .52s cubic-bezier(.4,0,.2,1),
    stroke .52s cubic-bezier(.4,0,.2,1) !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
    transition: none !important;
  }
}


/* Shared spacing and control geometry, scoped to the existing studio screens. */
:root { --ui-radius: 12px; --ui-panel-radius: 22px; --ui-gap: 20px; }
.step-window, .preview-document { border-radius: var(--ui-panel-radius); }
.table-wrap { border-radius: 18px; }
.panel-title h1, .page-heading h1 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -.6px; }
.panel-title { margin-bottom: 24px; }
.panel-title p { line-height: 1.65; }
.window-toolbar { min-height: 28px; margin-bottom: 14px; }
.step-window:has(.field-grid, .checkbox-fieldset):not(:has(.solution-grid, .visualization-workspace)) { min-height: 0; padding-top: 24px; }
.step-window .field-grid { gap: 18px 20px; }
.step-window .field label { margin-bottom: 8px; line-height: 1.5; }
.field input, .field textarea, .select-trigger { border-radius: var(--ui-radius); }
.field input, .select-trigger { min-height: 48px; }
.button { border-radius: var(--ui-radius); min-height: 44px; }
.step-window .form-footer { margin-top: 24px; padding-top: 18px; padding-bottom: 18px; }
.visualization-stage, .visualization-parameters, .visual-room-wishes { border-radius: 18px; }
.field small, .optional-note, .budget-currency-note, .history-result-count { line-height: 1.6; }
/* Text communicates progress as well as color, including on the active stage. */
.step { min-height: 50px; }
.step .step-label { display: grid; gap: 3px; min-width: 0; text-align: left; }
.step .step-status { display: block; font-size: 10px; line-height: 1.3; font-weight: 400; color: var(--secondary); }
.step.completed .step-status { color: var(--accent); }
.step.partial:not(.active) .step-number { color: var(--accent); background: #0071e312; box-shadow: inset 0 0 0 1px #0071e32a; border-radius: 7px; }
.step .visited-dot { display: none; }
/* Separate the image viewer from the action that selects a solution. */
.solution-grid .photo-expand { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 36px; height: auto; padding: 8px 11px; left: 14px; top: 14px; border-radius: 10px; font-size: 12px; }
.solution-grid .photo-expand svg { width: 16px; height: 16px; }
.solution-grid .solution.selected { border-color: var(--accent); box-shadow: 0 0 0 2px #0071e333; }
.solution-grid .solution.selected .solution-status { color: var(--accent); font-weight: 600; }
.solution-grid .solution-status { min-height: 18px; }
.generation-recovery { border: 1px solid var(--border); background: var(--control); padding: 16px 18px; border-radius: 14px; margin-bottom: 20px; }
.generation-recovery strong { font-size: 15px; }
.generation-recovery p { color: var(--secondary); font-size: 13px; line-height: 1.6; margin: 8px 0 12px; overflow-wrap: anywhere; }
.generation-recovery > div { display: flex; flex-wrap: wrap; gap: 8px; }
.visual-render h2 { font-size: 20px; line-height: 1.4; }
@media (max-width: 600px) {
 .step-window:has(.field-grid, .checkbox-fieldset):not(:has(.solution-grid, .visualization-workspace)) { padding-top: 20px; }
 .panel-title { margin-bottom: 20px; }
 .window-toolbar { margin-bottom: 12px; }
 .step-window .field-grid { gap: 16px; }
 .step-window .form-footer { margin-top: 20px; }
 .generation-recovery .button { width: 100%; }
}
.generation-recovery, .visual-render { scroll-margin-top: 112px; }
.solution-grid .solution.selected .solution-status-available { visibility: hidden; }
.solution-grid .solution:not(.selected) .solution-status-selected { visibility: hidden; }
@media (max-width: 600px) { .generation-recovery, .visual-render { scroll-margin-top: 92px; } }

.solution-grid .photo-expand { width: 36px; height: 36px; min-height: 36px; padding: 8px; border-radius: 50%; }
.toast .toast-undo { margin-left: 12px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--control); color: var(--text); font-size: 13px; font-weight: 600; }
.toast .toast-undo:hover { color: var(--accent); }
#save-state { display: inline-flex; align-items: center; gap: 7px; max-width: 290px; line-height: 1.5; }
#save-state[data-status=saved]::before,#save-state[data-status=pending]::before,#save-state[data-status=error]::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
#save-state[data-status=saved]::before { background: #32916a; }
#save-state[data-status=error]::before { background: #d46c57; }
.field textarea.auto-grow-wishes,textarea.auto-grow-wishes { overflow-y: hidden; max-height: none; resize: none; min-height: 112px; }
#additionalWishes.auto-grow-wishes { min-height: 180px; }
@media (max-width:600px) { #save-state { max-width: 150px; font-size: 10px; } }

#save-state[hidden] { display: none; }
.form-footer:has(> #save-state[hidden]) { justify-content: flex-end; }


.solution-tile:has(.skirting-section-button) .solution-name { padding-right: 116px; }
.solution-tile:has(.skirting-section-button) .solution-status { padding-right: 116px; }
.skirting-section-button { position: absolute; z-index: 2; right: 14px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 11px; background: var(--control); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 12px; }
.skirting-section-button svg { width: 17px; height: 17px; }
.skirting-section-button:hover { color: var(--accent); border-color: var(--accent); }
.skirting-section-button:focus-visible,.section-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skirting-section-dialog { width: min(1080px,94vw); max-width: 94vw; max-height: 92dvh; overflow: auto; margin: auto; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--card); color: var(--text); box-shadow: 0 24px 100px #0004; }
.skirting-section-dialog::backdrop { background: #10131caa; backdrop-filter: blur(9px); }
.skirting-section-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.skirting-section-dialog header small { color: var(--secondary); font-size: 10px; letter-spacing: 1.5px; }
.skirting-section-dialog h2 { font-size: 25px; line-height: 1.3; margin: 7px 0 0; }
.section-close { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; font-size: 25px; color: var(--text); background: var(--control); }
.section-navigation { display: flex; align-items: center; justify-content: center; margin-top: 12px; }
.section-nav-button { -webkit-user-select: none; user-select: none; position: fixed; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; place-items: center; width: 44px; height: 64px; padding: 0; border: 1px solid #ffffff20; border-radius: 18px; background: #ffffff16; color: #ffffffbf; cursor: pointer; backdrop-filter: blur(8px); opacity: 1; transition: opacity 600ms ease, background-color 180ms ease, color 180ms ease; }
.section-nav-button[data-section-direction="-1"] { left: max(8px,calc((100vw - 1140px)/4 - 22px)); }
.section-nav-button[data-section-direction="1"] { right: max(8px,calc((100vw - 1140px)/4 - 22px)); }
.section-nav-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section-nav-button:hover { opacity: 1; background: #ffffff30; color: #fff; }
.section-nav-button:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 3px; }
.skirting-section-dialog.navigation-idle .section-nav-button:not(:hover):not(:focus-visible) { opacity: .12; }
.section-counter { color: var(--secondary); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) {
 .section-navigation { position: relative; min-height: 40px; }
 .section-nav-button { position: absolute; top: 50%; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb,var(--secondary) 9%,transparent); color: var(--secondary); border-color: transparent; }
 .section-nav-button[data-section-direction="-1"] { left: 0; }
 .section-nav-button[data-section-direction="1"] { right: 0; }
 .section-nav-button:hover { opacity: 1; background: color-mix(in srgb,var(--secondary) 16%,transparent); color: var(--text); }
}
.section-lead { color: var(--secondary); font-size: 14px; line-height: 1.65; margin: 16px 0 22px; max-width: 760px; }
.section-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(260px,1fr); align-items: start; gap: 24px; }
.section-layout figure { margin: 0; min-width: 0; }
.section-layout figure svg { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 16px; background: #f7f9fc; font-family: Arial,sans-serif; }
.section-layout figcaption { margin-top: 9px; color: var(--secondary); font-size: 11px; line-height: 1.5; }
.section-explanation h3 { font-size: 15px; margin: 0 0 12px; }
.section-legend { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.section-legend li { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.45; }
.section-legend li > span { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border: 1px solid #0071e350; border-radius: 50%; color: var(--accent); font-size: 11px; }
.section-explanation p { margin: 12px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.7; }
.section-caveat { margin: 22px 0 0; border-radius: 12px; background: var(--control); padding: 12px 15px; font-size: 12px; line-height: 1.7; color: var(--secondary); }
.section-sources { margin-top: 18px; font-size: 12px; line-height: 1.7; }
.section-sources summary { cursor: pointer; padding-block: 5px; }
.section-sources a { display: inline-block; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.section-sources > a { margin-top: 10px; }
.section-sources ul { padding-left: 19px; margin-block: 10px; }
.section-sources small { color: var(--secondary); }
@media (max-width: 760px) { .section-layout { grid-template-columns: 1fr; gap: 20px; } .skirting-section-dialog { padding: 20px; } .skirting-section-dialog h2 { font-size: 21px; } }
@media (max-width: 600px) { .solution-grid:has(.skirting-section-button) { grid-template-columns: minmax(0,1fr); } .skirting-section-dialog { padding: 16px; max-height: 94dvh; } }
@media (prefers-reduced-motion: no-preference) {
 .skirting-section-dialog[open] { animation: section-dialog-in 320ms cubic-bezier(.2,.8,.2,1) both; }
 .skirting-section-dialog[open]::backdrop { animation: section-backdrop-in 320ms ease both; }
 .skirting-section-dialog[open]:not(.is-closing) { animation-fill-mode: backwards; }
 .skirting-section-dialog[open].is-closing { animation: section-dialog-out 240ms ease both; pointer-events: none; }
 .skirting-section-dialog[open].is-closing::backdrop { animation: section-backdrop-out 240ms ease both; }
 @keyframes section-dialog-in { from { opacity: 0; } to { opacity: 1; } }
 @keyframes section-dialog-out { from { opacity: 1; } to { opacity: 0; } }
 @keyframes section-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
 @keyframes section-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
}
/* Only the matching construction layer is tinted; geometry stays fixed. */
.section-legend-target { display: flex; align-items: center; gap: 9px; width: 100%; margin: -4px -6px; padding: 4px 6px; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; border-radius: 8px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.section-legend-target > span { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border: 1px solid #0071e350; border-radius: 50%; color: var(--accent); font-size: 11px; transition: background-color 200ms ease, color 200ms ease; }
.section-legend-target.is-active { background: #0071e310; color: var(--accent); }
.section-legend-target.is-active > span { background: #0071e3; color: #fff; }
.section-legend-target:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.section-part-highlight { opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.section-part-highlight.is-active { opacity: .38; }
[data-section-marker] circle, [data-section-marker] text, [data-section-marker] path { transition: fill 200ms ease, stroke 200ms ease; }
[data-section-marker].is-active > circle { fill: #0071e3; stroke: #0071e3; }
[data-section-marker].is-active > text { fill: #fff; }
[data-section-marker].is-active > path { stroke: #0071e3; }
@media (prefers-reduced-motion: reduce) { .section-part-highlight,.section-legend-target,.section-legend-target > span,[data-section-marker] circle,[data-section-marker] text,[data-section-marker] path { transition: none; } }

@media (prefers-reduced-motion: reduce) { .section-nav-button { transition: none; } }

.section-layout svg [data-highlight-part],.section-layout svg [data-section-marker] { cursor: pointer; }
.section-layout svg [data-section-marker]:focus-visible { outline: none; }
.section-layout svg [data-section-marker]:focus-visible > circle { stroke-width: 2.5; }


/* Navigation groups and compact catalogue cards. */
.steps .rail-group { margin: 18px 10px 8px; color: var(--secondary); font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.steps .rail-group:first-of-type { margin-top: 8px; }
.step-window:has(.solution-grid) .panel-title { margin-bottom: 18px; }
.solution-grid { gap: 18px; }
@container catalog-step (min-width: 860px) {
 .solution-grid.many-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.solution-grid .solution-name { font-size: 16px; line-height: 1.4; padding-top: 14px; }
.solution-grid .solution-status { font-size: 12px; }
.field-error { display: block; color: #b83f30; margin-top: 8px; font-size: 12px; line-height: 1.5; }
.field [aria-invalid="true"] { border-color: #c74838; box-shadow: 0 0 0 3px #c7483816; }
html[data-theme=dark] .field-error { color: #ffad9d; }
.field { scroll-margin-block: 120px; }
/* Native disclosure controls keep the saved brief easy to scan. */
.summary-block.review-section { margin: 0 0 10px; padding: 0; border: 0; border-radius: 14px; background: color-mix(in srgb,var(--text) 3%,var(--card)); overflow: hidden; }
.review-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 20px; cursor: pointer; list-style: none; }
.review-section > summary::-webkit-details-marker { display: none; }
.review-section > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--secondary); border-bottom: 1.5px solid var(--secondary); margin: -4px 3px 0 12px; transform: rotate(45deg); flex-shrink: 0; transition: transform 180ms ease; }
.review-section[open] > summary::after { transform: rotate(225deg); }
.review-section > summary h3 { margin: 0; padding: 0; border: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; font-weight: 550; line-height: 1.5; }
.review-section > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.review-section-body { padding: 0 20px 20px; }
.review-section-body > :first-child { margin-top: 0; }
.review-section-body > :last-child { margin-bottom: 0; }
.review-section > summary h3 .pill { margin: 0; display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; font-size: 11px; line-height: 16px; font-weight: 500; }
.review-section-body .summary-category { border: 0; }
.review-selection-meta { color: var(--secondary); font-size: 12px; }
.review-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
.review-readiness { padding: 0; margin: 0 0 24px; border: 0; background: transparent; font-size: 13px; color: var(--secondary); }
.review-readiness > strong { font-weight: 500; }
.review-readiness:not(.has-issues) > strong::before { content: "✓"; color: var(--accent); margin-right: 8px; }
.review-readiness.has-issues { padding: 14px 16px; background: var(--control); border-radius: 12px; }
.review-readiness > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review-issue-link { padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; color: var(--accent); background: var(--card); font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.review-issue-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width:600px) {
 body[data-page=editor] .step-window { padding-bottom: 115px; }
 #app > .mobile-form-nav { position: fixed; z-index: 40; inset: auto 0 0; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); min-height: 76px; display: flex; flex-direction: column; gap: 7px; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: var(--card); box-shadow: 0 -8px 30px #0000000a; }
 #app > .mobile-form-nav::before { display: none; }
 #app > .mobile-form-nav > div { display: flex; width: 100%; gap: 10px; justify-content: flex-end; }
 #app > .mobile-form-nav > div > .button { flex: 1; min-height: 48px; padding: 12px; font-size: 15px; }
 #app > .mobile-form-nav > #save-state:not([hidden]) { max-width: none; width: 100%; font-size: 11px; }
 .review-section > summary { min-height: 60px; padding: 16px; }
 .review-section-body { padding: 0 16px 16px; }
 .review-section > summary h3 { font-size: 16px; }
 .solution-grid .solution-name { font-size: 15px; }
 .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) { .review-section > summary::after { transition: none; } }

.review-empty-categories > summary { padding: 12px 0; color: var(--secondary); font-size: 13px; cursor: pointer; }
@media(max-width:600px) { .wizard-header .wizard-count { display: none; } }

.review-step .review-note { margin-top: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; gap: 10px; }
.review-step .review-note p { margin: 0; font-size: 12px; line-height: 1.65; }
.review-step .review-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.review-step .review-navigation { border: 0; margin: 20px 0 0; padding: 0; gap: 12px; }
.review-step .review-navigation::before,.review-step .form-footer::before { display: none; }
.review-step .form-footer { position: static; inset: auto; border: 0; margin-top: 22px; padding-top: 0; background: transparent; box-shadow: none; }

.review-section.is-collapsing > summary::after { transform: rotate(45deg); }

.select-option .option-check { transition: opacity 160ms ease,transform 220ms cubic-bezier(.2,.8,.2,1); transform: scale(.8); }
.select-option[aria-selected=true] .option-check { transform: scale(1); }
.select-option.option-confirm { background: color-mix(in srgb,var(--accent) 12%,var(--card)); }
.select-popup.is-confirming .select-option { pointer-events: none; }
.select-option.option-confirm .option-check path { stroke-dasharray: 30; stroke-dashoffset: 0; animation: select-check-draw 220ms ease-out both; }
@keyframes select-check-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@media(prefers-reduced-motion:reduce) { .select-option .option-check { transition: none; } .select-option.option-confirm .option-check path { animation: none; } }

.steps { overflow-anchor: none; scroll-behavior: auto; }


.visual-room-workbench { min-width: 0; }
.workbench-room-navigation { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.workbench-room-navigation > .visual-room-tabs { display: flex; flex-wrap: nowrap; flex: 1; min-width: 0; width: auto; max-width: 100%; overflow-x: auto; margin: 0; padding: 4px; background: var(--control); border: 0; border-radius: 12px; scrollbar-width: thin; }
.workbench-room-navigation .visual-room-tabs button { flex: 0 0 auto; min-height: 40px; padding: 9px 14px; font-size: 12px; white-space: nowrap; border-radius: 9px; }
.workbench-room-navigation > .button { flex-shrink: 0; font-size: 12px; }
.workbench-room-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.workbench-room-heading h2 { margin: 0 0 5px; font-size: 21px; line-height: 1.4; }
.workbench-room-heading > div > span { color: var(--secondary); font-size: 12px; }
.workbench-room-heading > .button { font-size: 12px; min-height: 40px; padding: 9px 13px; }
.workbench-room-heading .is-in-pdf { color: var(--accent); background: color-mix(in srgb,var(--accent) 9%,var(--card)); }
.visual-room-workbench .visualization-workspace { grid-template-columns: minmax(0,1fr) minmax(280px,320px); align-items: start; gap: 24px; }
.visual-room-workbench .visualization-stage { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.workbench-photo-frame { position: relative; border-radius: 16px; overflow: hidden; background: var(--control); }
.visual-room-workbench .visualization-main { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 3/2; margin: 0; border: 0; border-radius: 16px; padding: 0; background: var(--control); }
.visual-room-workbench .visualization-main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.visual-room-workbench .visualization-main > span { display: grid; place-items: center; width: 34px; height: 34px; bottom: 12px; right: 12px; padding: 8px; border-radius: 50%; background: #ffffffd9; color: #222; }
.visual-room-workbench .visualization-main > span svg { width: 17px; height: 17px; }
.workbench-photo-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; z-index: 2; width: 38px; height: 48px; padding: 10px; border: 1px solid #ffffff30; border-radius: 14px; background: #20202465; color: white; backdrop-filter: blur(8px); cursor: pointer; transition: background-color 180ms ease; }
.workbench-photo-arrow.prev { left: 12px; }
.workbench-photo-arrow.next { right: 12px; }
.workbench-photo-arrow svg { width: 19px; height: 19px; }
.workbench-photo-arrow:hover { background: #202024a0; }
.workbench-photo-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visual-room-workbench .visualization-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 12px 0 20px; padding: 0; font-size: 12px; }
.visual-room-workbench .visualization-caption > span { font-size: 11px; line-height: 1.5; }
.workbench-variants-heading { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 12px; font-weight: 500; }
.workbench-variants-heading > span { color: var(--secondary); font-weight: 400; }
.visual-room-workbench .visualization-stage .visualization-gallery { gap: 10px; margin: 0; padding: 4px 3px 9px; max-height: none; }
.visual-room-workbench .visualization-gallery .visualization-thumb { flex: 0 0 128px; min-width: 0; padding: 0; }
.visual-room-workbench .visualization-gallery .visualization-thumb > button:first-child { width: 128px; padding: 0; }
.visual-room-workbench .visualization-gallery .visualization-thumb img { width: 100%; height: 80px; object-fit: cover; }
.visual-room-workbench .visualization-gallery .visual-thumb-caption { padding: 8px 10px; font-size: 11px; }
.visual-room-workbench .visualization-gallery .visual-thumb-caption small { min-height: 14px; margin-top: 3px; font-size: 10px; }
.visual-room-workbench .visualization-parameters { min-width: 0; max-height: none; height: auto; overflow: visible; padding: 18px; border-radius: 16px; background: var(--control); box-shadow: none; }
.visual-room-workbench .visual-settings-heading { margin: 0; padding: 0 0 20px; border: 0; }
.visual-room-workbench .visual-settings-heading > .result-label { display: block; margin-bottom: 10px; font-size: 10px; }
.visual-room-workbench .visual-settings-heading small { display: block; font-size: 11px; line-height: 1.5; }
.visual-room-workbench .visual-settings-heading .workbench-shared-note { margin: 5px 0 0; }
.visual-room-workbench .visual-room-wishes { padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; }
.visual-room-workbench .visual-room-description-label { display: block; margin: 0 0 9px; font-size: 13px; font-weight: 500; }
.visual-room-workbench .visual-room-wishes textarea { width: 100%; min-height: 112px; padding: 12px; font-size: 13px; line-height: 1.6; border-radius: 12px; }
.visual-room-workbench .visual-room-wishes > small { display: block; margin-top: 7px; font-size: 11px; line-height: 1.5; color: var(--secondary); }
.visual-room-workbench .visual-room-controls { display: block; margin-top: 16px; }
.visual-room-workbench .visual-room-controls > .button { width: 100%; font-size: 13px; }
.visual-room-properties,.workbench-choices { margin-top: 18px; font-size: 12px; }
.visual-room-properties > summary,.workbench-choices > summary { padding: 9px 0; cursor: pointer; color: var(--secondary); line-height: 1.5; }
.visual-room-workbench .visual-room-fields { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0; }
.visual-room-workbench .visual-room-fields label { display: block; margin-bottom: 7px; font-size: 12px; }
.visual-room-workbench .visual-room-fields input { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 13px; }
.visual-room-properties > small { display: block; margin-top: 6px; color: var(--secondary); font-size: 11px; }
.visual-room-workbench .visual-settings-scroll { max-height: 340px; margin: 10px 0 0; padding: 0 4px 0 0; border: 0; overflow-y: auto; }
.visual-room-workbench .visual-settings-scroll dl { margin: 12px 0; }
.visual-room-workbench .visualization-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; aspect-ratio: 3/2; padding: 28px; border-radius: 16px; background: var(--control); }
.visual-room-workbench .visualization-empty h2 { margin: 16px 0 8px; font-size: 20px; text-align: center; }
.visual-room-workbench .visualization-empty p { margin: 0; max-width: 340px; font-size: 13px; line-height: 1.65; text-align: center; }
.visual-room-workbench .visualization-actions { margin-top: 22px; gap: 16px; }
.visual-room-workbench .visualization-actions > span { font-size: 11px; }
.visual-archived-note p { font-size: 12px; line-height: 1.6; color: var(--secondary); }
.visual-refinement { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.visual-refinement label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 500; }
.visual-refinement textarea { width: 100%; min-height: 94px; padding: 12px; border-radius: 12px; font-size: 12px; line-height: 1.6; resize: vertical; }
.visual-refinement small { display: block; margin: 7px 0 12px; color: var(--secondary); font-size: 11px; line-height: 1.5; }
.visual-refinement > .button { width: 100%; font-size: 12px; }
@media(max-width:1050px) {
 .visual-room-workbench .visualization-workspace { grid-template-columns: minmax(0,1fr); gap: 20px; }
 .visual-room-workbench .visualization-parameters { width: 100%; }
 .visual-room-workbench .visualization-empty { aspect-ratio: auto; min-height: 260px; }
}
@media(max-width:600px) {
 .workbench-room-navigation { align-items: stretch; flex-direction: column; gap: 9px; margin-bottom: 20px; }
 .workbench-room-navigation > .button { align-self: flex-start; min-height: 36px; padding: 7px 10px; }
 .workbench-room-heading { align-items: center; gap: 10px; }
 .workbench-room-heading h2 { font-size: 18px; }
 .workbench-room-heading > .button { flex-shrink: 0; font-size: 11px; padding: 9px; }
 .workbench-room-heading > div > span { font-size: 10px; }
 .visual-room-workbench .visualization-caption { flex-direction: column; gap: 4px; }
 .visual-room-workbench .visualization-caption > span { max-width: none; text-align: left; }
 .visual-room-workbench .visualization-parameters { padding: 16px; }
 .visual-room-workbench .visualization-actions { align-items: flex-start; flex-direction: column; }
 .visual-room-workbench .visualization-empty h2 { font-size: 18px; }
}
@media(prefers-reduced-motion:reduce) { .workbench-photo-arrow { transition: none; } }

html[data-theme=dark] .visual-room-workbench .visualization-stage,
html[data-theme=dark] .visual-room-workbench .visualization-gallery { background: transparent; }
.step-window:has(.visual-room-workbench) > .form-footer { position: static; inset: auto; margin-top: 24px; }
.step-window:has(.visual-room-workbench) > .form-footer::before { display: none; }

/* Room management stays beside the room list in both themes. */
.workbench-room-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.workbench-room-actions > .button { min-height: 42px; padding: 10px 12px; font-size: 12px; }
.workbench-room-actions [data-action=visual-room-remove] { color: var(--secondary); }
.workbench-room-actions [data-action=visual-room-remove]:hover { color: #bc4b42; }
.workbench-room-heading { padding-left: 18px; }
.workbench-room-heading > div { min-width: 0; }
.workbench-room-heading h2 { text-align: left; overflow-wrap: anywhere; }
html:not([data-theme=dark]) .workbench-room-navigation > .visual-room-tabs { background: #f0f2f6; }
html:not([data-theme=dark]) .workbench-room-navigation .visual-room-tabs button[aria-pressed=true] { background: #fff; box-shadow: 0 2px 7px #1823410d; }
html:not([data-theme=dark]) .visual-room-workbench .visualization-empty { background: #f5f6f9; border: 1px solid #e4e7ee; }
html:not([data-theme=dark]) .visual-room-workbench .visualization-parameters { background: #f5f6f9; border: 1px solid #e4e7ee; }
html:not([data-theme=dark]) .visual-room-workbench .visualization-parameters textarea,
html:not([data-theme=dark]) .visual-room-workbench .visualization-parameters .select-trigger,
html:not([data-theme=dark]) .visual-room-workbench .visualization-parameters input { background: #fff; }
html:not([data-theme=dark]) .workbench-photo-frame { background: #f5f6f9; border: 1px solid #e4e7ee; }
@media(max-width:1250px) { .workbench-room-navigation { flex-wrap: wrap; } .workbench-room-navigation > .visual-room-tabs { flex-basis: 100%; } .workbench-room-actions { margin-left: auto; } }
@media(max-width:600px) { .workbench-room-actions { margin-left: 0; align-self: flex-start; } .workbench-room-actions > .button { font-size: 11px; padding: 9px 10px; } .workbench-room-heading { padding-left: 18px; } }


.visual-room-workbench .concept-loading { position: relative; min-height: 510px; padding: 24px 28px 30px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb,var(--accent) 3%,var(--card)); overflow: hidden; }
.concept-loading-art { position: relative; width: min(300px,85%); margin: 0 auto 8px; isolation: isolate; }
.concept-loading-art svg { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 360/260; overflow: visible; }
.concept-loading-halo { position: absolute; inset: 15% 0 0; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse,#228cff20,transparent 68%); animation: concept-breathe 5s ease-in-out infinite; }
.concept-floor-fill { fill: #1688ff09; }
.concept-grid { stroke: #1688ff26; stroke-width: .7; }
.concept-room-lines { stroke: #1688ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.concept-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: concept-draw 7s cubic-bezier(.3,0,.2,1) infinite; animation-delay: var(--draw-delay,0s); }
.concept-furniture { stroke: #1688ff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.concept-object-fill { fill: #1688ff0d; stroke: none; animation: concept-material 7s ease-in-out infinite; }
.concept-scan { stroke: #64bbff; stroke-width: 2; opacity: 0; filter: drop-shadow(0 0 5px #329bff60); animation: concept-scan 4s ease-in-out infinite; }
.concept-nodes { fill: #1688ff; animation: concept-node 4s ease-in-out infinite; }
.concept-loading-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #1688ff; box-shadow: 0 0 0 5px #1688ff0d; animation: concept-node 3s ease-in-out infinite; }
.spark-one { left: 10%; top: 42%; }
.spark-two { right: 10%; top: 16%; animation-delay: 1.5s; }
.render-status-copy { width: min(390px,100%); }
.concept-loading-eyebrow { display: block; margin: 0 0 10px; color: var(--accent); font-size: 9px; font-weight: 500; letter-spacing: 1.5px; }
.concept-loading .render-status-copy h2 { margin: 0; font-size: clamp(18px,1.5vw,23px); line-height: 1.4; letter-spacing: -.4px; }
.concept-loading-count { margin: 10px 0 0; color: var(--secondary); font-size: 12px; }
.concept-loading .render-track { position: relative; width: 100%; height: 3px; margin: 22px 0 17px; background: color-mix(in srgb,var(--accent) 12%,var(--card)); }
.concept-loading .render-track::after { content: ''; position: absolute; inset: 0 auto 0 -40%; width: 40%; background: linear-gradient(90deg,transparent,#1688ff90,transparent); animation: concept-track 2.8s ease-in-out infinite; }
.concept-loading ol { width: 100%; max-height: 155px; overflow-y: auto; scrollbar-width: thin; margin: 0 0 17px; gap: 9px; }
.concept-loading li { min-height: 24px; font-size: 12px; }
.concept-room-dot { display: grid; place-items: center; flex-shrink: 0; width: 15px; height: 15px; border-radius: 50%; color: var(--accent); font-size: 11px; }
.concept-loading li.active .concept-room-dot::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #1688ff12; animation: concept-node 2s ease-in-out infinite; }
.concept-loading li:not(.active):not(.done) .concept-room-dot::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--secondary); opacity: .35; }
.concept-loading-note { display: block; color: var(--secondary); font-size: 10px; line-height: 1.65; }
@keyframes concept-draw { 0% { stroke-dashoffset: 1; opacity: .2; } 35%,78% { stroke-dashoffset: 0; opacity: 1; } 95%,100% { stroke-dashoffset: 0; opacity: .2; } }
@keyframes concept-material { 0%,20%,100% { opacity: 0; } 45%,80% { opacity: 1; } }
@keyframes concept-scan { 0%,100% { transform: translateY(-48px); opacity: 0; } 20% { opacity: .7; } 75% { opacity: .4; } 90% { transform: translateY(54px); opacity: 0; } }
@keyframes concept-breathe { 0%,100% { opacity: .5; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes concept-node { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes concept-track { to { transform: translateX(350%); } }
html[data-theme=dark] .visual-room-workbench .concept-loading { background: #242831; border-color: #3c4552; }
html[data-theme=dark] .concept-room-lines,html[data-theme=dark] .concept-furniture { stroke: #6eb5ff; }
html[data-theme=dark] .concept-grid { stroke: #6eb5ff30; }
@media(max-width:600px) { .visual-room-workbench .concept-loading { min-height: 440px; padding: 18px 18px 24px; } .concept-loading-art { width: min(250px,100%); } .concept-loading .render-status-copy h2 { font-size: 18px; } }
@media(prefers-reduced-motion:reduce) { .concept-loading-art *,.concept-loading .concept-room-dot::after,.concept-loading .render-track::after { animation: none !important; } .concept-draw { stroke-dashoffset: 0; } .concept-scan { display: none; } .concept-object-fill { opacity: 1; } .concept-loading .render-track > span { transition: none; } }


.photo-pending { opacity: 0; }
.photo-ready { opacity: 1; transition: opacity 420ms cubic-bezier(.2,.75,.25,1); }
.photo-reveal { animation:photo-entry 420ms cubic-bezier(.2,.75,.25,1) both; }
.photo-failed { opacity: 0; }
.photo-loading-placeholder { position: absolute; display: grid; place-items: center; z-index: 1; overflow: hidden; border-radius: inherit; background: color-mix(in srgb,var(--text) 5%,var(--card)); pointer-events: none; opacity:1; transition:opacity 420ms cubic-bezier(.2,.75,.25,1); }
.photo-loading-placeholder.is-ready { opacity:0; }
.photo-loading-placeholder::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg,transparent 20%,color-mix(in srgb,var(--card) 55%,transparent) 48%,transparent 76%); transform: translateX(-100%); animation: photo-placeholder-sweep 2.4s ease-in-out infinite; }
.photo-loading-placeholder.is-error { color: var(--secondary); font-size: 11px; text-align: center; padding: 10px; }
.photo-loading-placeholder.is-error::after { display: none; }
.style-option > img { aspect-ratio: 3/2; }
.visualization-caption > span { overflow-wrap: anywhere; }
@keyframes photo-placeholder-sweep { to { transform: translateX(100%); } }
@keyframes photo-entry { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .photo-ready,.photo-loading-placeholder { transition: none; } .photo-loading-placeholder::after,.photo-reveal { animation: none; } }


:root { --reading-muted: #64646f; }
html[data-theme=dark] { --reading-muted: #b8bac4; }
/* Explanations share a readable line length; field errors keep their own color. */
html :is(.panel-title p,.page-heading p:not(.eyebrow),.review-note p,.visualization-actions > span,.visual-setting-note,.visualization-caption > span,.concept-loading-note,.visual-archived-note p) { max-width: 70ch; line-height: 1.65; color: var(--reading-muted); text-wrap: pretty; overflow-wrap: anywhere; }
html .panel-title p { font-size: 14px; }
html .field small:not(.field-error):not(.numeric-note) { display: block; max-width: 65ch; margin-top: 7px; font-size: 12px; line-height: 1.65; color: var(--reading-muted); text-wrap: pretty; overflow-wrap: anywhere; }
html .visual-room-workbench :is(.visual-settings-heading small,.visual-room-wishes > small,.visual-refinement small,.visual-room-properties > small,.visualization-actions > span,.visual-archived-note p) { max-width: 65ch; font-size: 12px; line-height: 1.65; color: var(--reading-muted); text-wrap: pretty; overflow-wrap: anywhere; }
html .review-step .review-note p { max-width: 70ch; font-size: 12px; line-height: 1.65; color: var(--reading-muted); }
html .details-list dt { font-size: 12px; line-height: 1.6; color: var(--reading-muted); }
html .rail-note { font-size: 11px; line-height: 1.65; color: var(--reading-muted); }
html .concept-loading-note { font-size: 11px; }
.toast:has(.toast-undo) { display: flex; align-items: center; gap: 12px; max-width: min(520px,calc(100vw - 32px)); line-height: 1.5; }
.toast .toast-undo { flex-shrink: 0; margin-left: 0; min-height: 36px; }
@media(max-width:600px) { html .panel-title p { font-size: 13px; line-height: 1.65; } .toast:has(.toast-undo) { font-size: 12px; } }

.visual-photo-trash { margin-top:24px; padding:18px 20px; border:1px solid var(--border,#dedee7); border-radius:18px; }
.visual-photo-trash summary { cursor:pointer; font-weight:550; }
.visual-photo-trash > p { font-size:13px; line-height:1.6; }
.trash-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; margin-top:16px; }
.trash-photo-grid article { display:flex; gap:12px; align-items:center; min-width:0; }
.trash-photo-grid img { width:88px; height:72px; object-fit:cover; border-radius:10px; }
.trash-photo-grid article > div { min-width:0; display:grid; gap:5px; }
.trash-photo-grid strong,.trash-photo-grid small { overflow-wrap:anywhere; }
.trash-photo-grid small { opacity:.7; }
.trash-photo-grid .button { min-height:36px; padding:7px 12px; font-size:13px; justify-self:start; }

.text-repel .repel-word { display:inline-block; white-space:nowrap; }
.text-repel .repel-letter { display:inline-block; }
@media (prefers-reduced-motion:reduce) {
  .text-repel .repel-letter { transform:none !important; }
}

.cloud-login { position:relative; isolation:isolate; min-height:100dvh; display:grid; place-items:center; padding:24px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; color:var(--text); }
.cloud-login form { position:relative; z-index:1; width:min(100%,420px); padding:34px; border:1px solid var(--line); background:var(--card); border-radius:24px; box-shadow:0 14px 60px #00000006; }
.cloud-login-brand { display:flex; align-items:center; justify-content:center; margin-bottom:32px; }
.cloud-login-brand .brand-logo img { width:160px; height:auto; }
.cloud-login h1 { font-size:26px; font-weight:600; letter-spacing:-.6px; line-height:1.25; margin:0 0 10px; }
.cloud-login p { color:var(--muted); line-height:1.6; }
.cloud-login-description { font-size:15px; margin:0 0 26px; }
.cloud-login-field + .cloud-login-field { margin-top:20px; }
.cloud-login label { display:block; margin:20px 0 7px; }
.cloud-login-field label { margin-top:0; font-size:14px; }
.cloud-login input { display:block; width:100%; min-height:48px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--control); color:inherit; font:inherit; }
.cloud-login .button { width:100%; }
#login-error { color:#c83b35; font-size:13px; min-height:20px; margin:12px 0 16px; }
.login-submit-spinner { width:15px; height:15px; border:2px solid #ffffff60; border-top-color:white; border-radius:50%; animation:login-submit-spin .8s linear infinite; }
.start-actions { position:absolute; z-index:1; top:43px; right:47px; display:flex; align-items:center; gap:4px; }
.start-actions > .history-shortcut { position:static; }
.history-shortcut.cloud-session-button { position:fixed; z-index:2; top:auto; right:32px; bottom:16px; padding:10px 12px; font-size:12px; color:var(--secondary); background:transparent; border:0; box-shadow:none; }
.history-shortcut.cloud-session-button:hover { color:var(--text); background:transparent; }
.history-screen:has(.cloud-session-button),.preview-screen:has(.cloud-session-button) { padding-bottom:80px; }
.cloud-session-button:disabled { opacity:.55; }
.history-screen .screen-top { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; }
.history-screen .screen-top > .wordmark { justify-self:center; }
.history-screen .screen-top > .button { justify-self:start; }
@keyframes login-submit-spin { to { transform:rotate(360deg); } }
@media(max-width:600px) {
 .start-actions { top:87px; right:18px; gap:0; }
 .cloud-login { padding:20px; }
 .cloud-login form { padding:30px 24px; }
 .history-shortcut.cloud-session-button { right:14px; bottom:max(8px,env(safe-area-inset-bottom)); font-size:11px; }
 .start-screen:has(.cloud-session-button) .start-footnote { bottom:66px; }
 .history-screen .screen-top > .button { font-size:0; gap:0; padding:10px; }
}
@media(prefers-reduced-motion:reduce) { .login-submit-spinner { animation:none; } }

.studio-confirm { width:min(420px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; margin:auto; padding:30px; border:1px solid var(--border); border-radius:24px; background:var(--card); color:var(--text); box-shadow:0 24px 90px #10182835; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; }
.studio-confirm::backdrop { background:#151b2859; backdrop-filter:blur(5px); animation:studio-confirm-backdrop 220ms ease-out both; }
.studio-confirm.is-closing::backdrop { animation:studio-confirm-backdrop-out 150ms ease-in both; }
.studio-confirm-close { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:36px; height:36px; padding:8px; border:0; border-radius:50%; background:transparent; color:var(--secondary); }
.studio-confirm-close:hover { background:var(--canvas); color:var(--text); }
.studio-confirm-icon { display:grid; place-items:center; width:48px; height:48px; margin-bottom:22px; border-radius:16px; background:color-mix(in srgb,#d63c35 10%,var(--card)); color:#d63c35; }
.studio-confirm-icon svg { width:23px; height:23px; }
.studio-confirm h2 { margin:0 24px 10px 0; font-size:24px; font-weight:600; line-height:1.25; letter-spacing:-.5px; }
.studio-confirm p { margin:0; font-size:14px; line-height:1.65; color:var(--secondary); }
.studio-confirm-item { margin-top:18px; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:var(--canvas); font-size:14px; font-weight:500; line-height:1.5; overflow-wrap:anywhere; }
.studio-confirm-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:26px; }
.studio-confirm-actions .button { justify-content:center; padding:12px; font-size:14px; }
.studio-confirm-actions .studio-confirm-delete { background:#d63c35; color:white; border:1px solid #d63c35; }
.studio-confirm-actions .studio-confirm-delete:hover { background:#bd2e28; border-color:#bd2e28; }
@keyframes studio-confirm-backdrop { from { opacity:0; } to { opacity:1; } }
@keyframes studio-confirm-backdrop-out { from { opacity:1; } to { opacity:0; } }
@media(prefers-reduced-motion:reduce) { .studio-confirm::backdrop,.studio-confirm.is-closing::backdrop { animation:none; } }
@media(max-width:420px) { .studio-confirm { padding:26px 22px 22px; } .studio-confirm h2 { font-size:22px; } }


/* Shared mobile-first geometry; desktop layout remains owned by existing modules. */
:root { --touch-target:44px; --mobile-gap:12px; --mobile-inset:16px; --field-height:48px; --mobile-radius:14px; }
:where(.field,.field-grid,.filters,.search,.custom-select,.summary-block,.details-list,.visualization-workspace,.visualization-parameters) { min-width:0; }
:where(.long-text,.address,.record-name,.solution-name,.studio-confirm-item) { overflow-wrap:anywhere; }
@media (max-width:767px) {
 .history-screen,.preview-screen { padding-inline:var(--mobile-inset); }
 .history-screen .table-wrap { width:100%; max-width:100%; overflow:visible; border:0; background:transparent; }
 .history-screen table,.history-screen tbody { display:block; width:100%; min-width:0; }
 .history-screen thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .history-screen tbody { display:grid; gap:var(--mobile-gap); }
 .history-screen tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding:16px; background:var(--card); border:1px solid var(--border); border-radius:var(--mobile-radius); }
 .history-screen td { display:block; min-width:0; padding:8px 0; border:0; white-space:normal; font-size:13px; }
 .history-screen td:first-child,.history-screen td:nth-child(2),.history-screen td:last-child { grid-column:1/-1; }
 .history-screen td:nth-child(3)::before { content:'Площа'; }
 .history-screen td:nth-child(4)::before { content:'Оновлено'; }
 .history-screen td:nth-child(3)::before,.history-screen td:nth-child(4)::before { display:block; color:var(--secondary); font-size:12px; margin-bottom:4px; }
 .history-screen .record-name { text-align:left; white-space:normal; font-size:16px; min-height:var(--touch-target); }
 .history-screen .row-actions { justify-content:flex-end; gap:8px; }
 .history-screen .filters { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--mobile-gap); }
 .history-screen .filters > * { width:100%; min-width:0; max-width:100%; }
 .history-tools { flex-wrap:wrap; gap:8px; }
 .history-tools > span { width:100%; }
 :is(.icon-button,.photo-expand,.skirting-section-button,.rail-toggle,.theme-toggle,.pdf-close,.photo-close,.studio-confirm-close,.summary-edit) { min-width:var(--touch-target); min-height:var(--touch-target); }
 .solution-grid .photo-expand { width:var(--touch-target); height:var(--touch-target); }
 :is(.text-button,.visual-room-tabs button,.pdf-photo-order button,.section-legend-target,.select-option) { min-height:var(--touch-target); }
 .check-option,.pdf-sections label,.review-issue-link { min-height:var(--touch-target); }
 .field input,.field select,.select-trigger { min-height:var(--field-height); font-size:16px; }
 .field textarea,.cloud-login input { font-size:16px; }
 .field-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
 .field-grid > * { min-width:0; max-width:100%; }
 .form-footer .button { min-height:var(--touch-target); }
 .visual-room-workbench .workbench-room-heading { padding-left:0; }
 .workbench-room-actions { flex-wrap:wrap; gap:8px; }
 .workbench-room-actions > .button { min-height:var(--touch-target); }
 .pdf-composer { width:calc(100% - 24px); max-height:calc(100dvh - 24px); }
 .pdf-composer-header,.pdf-composer-body,.pdf-composer-footer { padding:16px; }
 .pdf-composer-footer > div { display:flex; flex-wrap:wrap; gap:8px; width:100%; }
 .pdf-composer-footer .button { flex:1; min-width:0; justify-content:center; white-space:normal; }
 .pdf-photo-row { grid-template-columns:64px minmax(0,1fr); gap:12px; }
 .pdf-photo-details { min-width:0; }
 .pdf-photo-order { grid-column:1/-1; flex-direction:row; justify-content:flex-end; }
 .pdf-photo-details textarea { width:100%; font-size:16px; }
 .section-layout svg { max-width:100%; height:auto; }
 .details-list { grid-template-columns:minmax(0,1fr); }
 .details-list dd { margin:0 0 12px; overflow-wrap:anywhere; }
}
@media (min-width:768px) { .field-grid > .field { min-width:0; } }

@media (max-width:430px) { .pdf-composer-footer > div { flex-direction:column; } .pdf-composer-footer .button { width:100%; flex:auto; } }

