/* KitStudio product shell. Document canvas colours remain independent. */
:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --panel: #fff;
  --raised: #edf0e9;
  --line: #dce1d7;
  --ink: #202922;
  --muted: #606c5e;
  --lime: #d5f769;
  --blue: #355ea5;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font-size: 14px;
}
button {
  min-height: 36px;
}
button:disabled {
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #577324;
  outline-offset: 3px;
}
input,
select,
textarea {
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  padding: 11px;
}
input::placeholder,
textarea::placeholder {
  color: #727b6e;
}
input[type="checkbox"],
input[type="range"] {
  accent-color: #496425;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 650;
  line-height: 1.18;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  line-height: 1.3;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
}
small,
.help {
  font-size: 12px;
  line-height: 1.6;
}
.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.primary:hover {
  background: #374333;
  color: #fff;
}
.primary .icon {
  color: inherit;
}
.tag {
  background: #ebf2df;
  color: #475f29;
  font-size: 12px;
}
.tag.amber {
  background: #fff0d8;
  color: #825823;
}
.tag.blue {
  background: #e7edff;
  color: #345785;
}
.chip {
  font-size: 11px;
  letter-spacing: 1px;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 64px;
  padding: 0 22px;
  gap: 14px;
}
.brand {
  font-size: 22px;
  letter-spacing: -1px;
  margin-right: 18px;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
}
.topbar .saved {
  font-size: 12px;
}
.user {
  background: #e8efde;
  color: #334628;
  min-width: 36px;
  min-height: 36px;
  width: 36px;
  height: 36px;
}
.topbar .user {
  display: grid;
}
.appbody {
  height: calc(100dvh - 64px);
}
.rail {
  background: #fff;
  width: 86px;
  padding: 14px 8px;
  gap: 8px;
}
.rail button {
  font-size: 12px;
  color: #636e61;
  min-height: 60px;
  border-radius: 10px;
}
.rail button.active {
  color: #283b22;
  background: #ecf3df;
}
.main {
  background: var(--bg);
}
.page {
  padding: 40px 4%;
  max-width: 1460px;
}
.page-heading {
  margin-bottom: 30px;
  align-items: center;
}
.page-heading > .row {
  flex-wrap: wrap;
}
.page-heading .chip {
  display: none;
}
.page-heading p {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 9px;
  max-width: 690px;
}
.card {
  border-radius: 14px;
  padding: 24px;
}
.card h3 {
  font-size: 18px;
}
.card p {
  font-size: 14px;
  line-height: 1.65;
}
.card .icon {
  color: #516a35;
}
.card .primary .icon {
  color: inherit;
}
.notice {
  font-size: 13px;
  line-height: 1.6;
  background: #eff3e8;
  border-color: #dfe7d5;
  color: #536548;
  margin: 22px 0;
}
.notice .icon {
  color: #4b6235;
}
.demo-note {
  font-size: 12px !important;
  color: var(--muted);
  line-height: 1.6;
  margin: 24px 0 4px;
}
.page .grid {
  gap: 22px;
}
.bigcard {
  background: #edf3e4;
  color: #263724;
}
.listtable {
  font-size: 14px;
}
.listtable th {
  font-size: 12px;
  color: var(--muted);
}
.listtable td p {
  font-size: 13px;
}
.server-icon,
.asset-empty,
.mini-icon {
  background: #edf3e4;
  color: #506b32;
}
.servercard {
  background: #fff;
}
.tabs button,
.inspector-title small,
.layer-name,
.layer-type,
.hintlabel,
.canvas-bottom {
  font-size: 12px;
}
.tabs button.active,
.layer.active,
.toolbar .tool.active,
.tools-device button.active {
  background: #e8f0dc;
  color: #344c23;
}
.layer.active {
  border-color: #bdd692;
}
.tools-device {
  background: #f0f2eb;
}
.left {
  width: 218px;
}
.right {
  width: 288px;
}
.panelhead {
  font-size: 12px;
  letter-spacing: 0.3px;
}
.artboard-title {
  color: #5a6654;
  font-size: 12px;
}
.canvas {
  background: #edf0e8;
}
.canvas-scroll {
  background-color: #edf0e8;
  background-image: radial-gradient(#c9d0c1 1px, transparent 1px);
}
.canvas-bottom {
  background: #fff;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.fields label,
.inspector-section label,
.quick-fields label {
  font-size: 12px;
}
.toolbar .hintlabel {
  color: var(--muted);
}
.layer .icon {
  color: #74826b;
}
.field-icon,
.toggle,
.inspector-details summary {
  color: var(--ink);
  font-size: 13px;
}
.inspector-details summary {
  padding-block: 14px;
}
.inspector-section input,
.inspector-section select {
  padding: 8px;
}
.quick button {
  font-size: 13px;
  background: #f2f4ee;
  border: 1px solid var(--line);
  white-space: normal;
}
.prompt {
  background: #fff;
}
.proposal {
  background: #f0f5e7;
  color: var(--ink);
}
.generation-dock {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 40px #25351a20;
}
.generation-dock small {
  color: var(--muted);
}
.gen-progress {
  background: #e3e8db;
}
.gen-progress > span {
  background: #7e9d4f;
}
dialog {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  border-radius: 18px;
  max-height: 88dvh;
  overflow: auto;
}
dialog p {
  font-size: 14px;
  line-height: 1.6;
}
dialog::backdrop {
  background: #20292266;
  backdrop-filter: blur(3px);
}
#toast {
  background: #263321;
  color: #fff;
  border: 1px solid #6c835a;
  font-size: 14px;
}
details > summary {
  cursor: pointer;
  min-height: 36px;
  align-content: center;
}
.more-menu {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}
.more-menu button {
  justify-content: flex-start;
  padding: 14px;
}
.more-menu small {
  margin-left: auto;
}
.kit-details {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 10px;
}
.kit-details > p {
  line-height: 1.6;
  margin: 10px 0;
}
.kit-details .row {
  flex-wrap: wrap;
  margin-top: 12px;
}
.kit-details > summary {
  font-size: 14px;
  color: var(--muted);
}
.kit-filter {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.kit-filter input {
  max-width: 320px;
}
.kit-filter > .tag {
  margin-left: auto;
}
.kit-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: #edf2e5;
  border: 1px solid #dfe6d6;
  border-radius: 16px;
  padding: 28px;
  margin: 24px 0;
}
.kit-summary h2 {
  margin: 12px 0;
}
.kit-summary p {
  color: var(--muted);
  margin: 8px 0;
  line-height: 1.6;
}
.kit-link-card {
  display: block;
  text-align: left;
  white-space: normal;
  min-height: 178px;
}
.kit-link-card span {
  font-size: 13px;
  color: #51693a;
}
.kit-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 1060px;
}
.kit-form-layout > .card,
.kit-form-layout > div {
  align-self: start;
}
.kit-form-layout > div > .card + .card {
  margin-top: 24px;
}
.kit-form-layout label {
  margin: 20px 0;
}
.kit-form-layout input,
.kit-form-layout textarea {
  font-size: 15px;
}
.kit-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  line-height: 1.5;
  margin: 24px 0;
}
.kit-check input {
  width: 18px;
  height: 18px;
  flex: none;
}
.kit-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.kit-list button {
  justify-content: flex-start;
}
.kit-person {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.kit-person .tag {
  margin-left: auto;
}
.kit-person p {
  margin: 3px 0;
}
.kit-thumb {
  position: relative;
  overflow: hidden;
  background: #eef3e5;
  padding: 24px;
  height: 210px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.kit-thumb > span {
  font-size: 10px;
  letter-spacing: 1px;
}
.kit-thumb strong {
  font-size: 26px;
  max-width: 68%;
  z-index: 1;
  font-weight: 650;
  line-height: 1.15;
}
.kit-thumb img {
  position: absolute;
  width: 36%;
  height: 100%;
  object-fit: cover;
  right: 0;
  top: 0;
}
.kit-thumb.secondary {
  background: #ebece7;
}
.kit-thumb.secondary strong {
  max-width: 100%;
}
.kit-template {
  padding: 12px 12px 22px;
}
.kit-template > h3,
.kit-template > p,
.kit-template > button {
  margin-left: 12px;
}
.template-art {
  position: relative;
  isolation: isolate;
  height: 350px;
  background: #eff2e6;
  border-radius: 8px;
  padding: 30px;
  overflow: hidden;
  color: #263026;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 24px;
}
.template-art > span {
  font-size: 22px;
  font-weight: 750;
}
.template-art strong {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  z-index: 1;
}
.template-art > b {
  font-size: 11px;
}
.template-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: absolute;
  right: -10px;
  top: 140px;
  background: linear-gradient(130deg, #cee66f, #788b3a);
  z-index: -1;
}
.template-art.warm {
  background: #fbeddc;
  color: #5e3829;
  font-family: Georgia, serif;
}
.warm .template-orb {
  background: linear-gradient(120deg, #f2c696, #995c3d);
  border-radius: 100px 100px 0 0;
}
.template-art.bold {
  background: #343244;
  color: #f7f5ff;
}
.bold .template-orb {
  background: #bdb3f5;
  border-radius: 30px;
  transform: rotate(-24deg);
}
.brand-hero {
  background: #eaf1dd;
  border-radius: 20px;
  padding: 60px;
  margin-bottom: 24px;
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 36px;
}
.brand-hero > img {
  width: 100%;
  max-width: 390px;
}
.brand-hero > p {
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -1px;
}
.brand-hero > span {
  font-size: 12px;
  color: #536348;
}
.kit-brand-options .card > img {
  width: 76px;
  height: 76px;
  display: block;
  margin: 30px 0;
}
.brand-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.brand-swatches > div {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.brand-swatches i {
  height: 85px;
  border-radius: 10px;
  border: 1px solid #cdd5c6;
}
.brand-swatches span {
  color: var(--muted);
}
.brand-social,
.brand-mail {
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 360px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.brand-social {
  background: #253321;
  color: #f7f9f1;
}
.brand-social img {
  width: 48px;
}
.brand-social h2 {
  font-size: 38px;
  line-height: 1.1;
}
.brand-social span {
  color: #c6d1ba;
  font-size: 13px;
}
.brand-mail {
  background: #fff;
}
.brand-mail img {
  width: 170px;
}
.brand-mail p {
  color: var(--muted);
  line-height: 1.6;
}
.brand-mail span {
  font-size: 12px;
  color: var(--muted);
}
.lead-card {
  display: block;
  text-align: left;
  white-space: normal;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f7f9f2;
  width: 100%;
}
.kit-empty-small {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  padding: 32px 0;
}
.diff-before,
.diff-after {
  padding: 30px;
  border-radius: 10px;
  background: #f5eee8;
}
.diff-after {
  background: #eef5df;
}
.diff-before h3,
.diff-after h3 {
  margin-top: 14px;
}
.kit-release {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.kit-release h2 {
  margin-top: 22px;
}
.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8efdc;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.domain-preview {
  padding: 18px 12px;
  background: #f1f4eb;
  font-size: 18px;
  word-break: break-word;
  margin: 22px 0;
}
.kit-welcome {
  max-width: 520px;
  margin: 10px auto 50px;
}
.kit-welcome > img {
  width: 180px;
  margin: 16px 0 48px;
}
.kit-welcome h1 {
  font-size: 48px;
}
.kit-welcome > p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 24px 0 36px;
}
.kit-screen {
  display: block;
  text-align: left;
  white-space: normal;
}
.kit-screen .screen-thumb {
  border: 1px solid var(--line);
  background: #f5f7ef;
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: top;
}
.kit-screen:hover {
  border-color: #8aa65e;
  background: #fff;
}
.kit-screen .row {
  gap: 8px;
}
.kit-screen p {
  margin-bottom: 0;
}
/* Live generator: prompt remains mounted while only the preview stream changes. */
.live-layout {
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.live-composer {
  padding: 26px;
  position: sticky;
  top: 20px;
}
.live-composer > h2 {
  font-size: 19px;
  margin-bottom: 20px;
}
.live-composer textarea {
  font-size: 16px;
  min-height: 160px;
  line-height: 1.65;
  padding: 15px;
  resize: vertical;
}
.live-composer .quick {
  margin-top: 14px;
}
.live-composer .quick button {
  padding: 7px 12px;
  border-radius: 100px;
  min-height: 32px;
}
.live-composer label:not(.kit-check) {
  font-size: 13px;
}
.live-composer .fields {
  margin: 16px 0;
}
.live-composer .kit-check {
  font-size: 13px;
  margin: 18px 0;
}
.live-composer > .primary {
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
}
.live-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 55px #2835180a;
  min-width: 0;
}
.live-browser {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  background: #fff;
}
.live-browser i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5dacd;
}
.live-browser > span {
  font-size: 12px;
  color: var(--muted);
  margin: auto;
}
.live-statusbar {
  padding: 14px 18px;
  background: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #87a83c;
  border-radius: 50%;
}
#live-site {
  width: 100%;
  min-height: 430px;
  max-height: 670px;
  overflow: auto;
  scrollbar-width: thin;
  background: #f5f6ef;
}
.live-scaled {
  position: relative;
  overflow: hidden;
}
.live-artboard {
  width: 1100px;
  transform-origin: top left;
  position: absolute;
  left: 0;
  top: 0;
}
.live-node {
  position: absolute;
  overflow: hidden;
  animation: node-in 0.22s ease-out;
}
.live-node img,
.live-node video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-button {
  display: grid;
  place-items: center;
}
.live-video-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: #fff;
  background: #202922cc;
  padding: 8px;
  font-size: 14px;
}
.live-empty {
  padding: 65px 24px;
  text-align: center;
  color: #606c5e;
}
.live-empty h3 {
  font-size: 22px;
  color: var(--ink);
  margin: 30px 0 12px;
}
.live-empty p {
  font-size: 14px;
  line-height: 1.65;
}
.empty-window {
  width: 170px;
  height: 120px;
  background: #fff;
  border: 1px solid #dfe5d7;
  border-radius: 12px;
  margin: auto;
  box-shadow: 0 10px 25px #32471b09;
  padding: 12px;
  text-align: left;
}
.empty-window i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccd5c0;
  margin-right: 3px;
}
.empty-window b {
  display: block;
  width: 70%;
  height: 12px;
  margin-top: 17px;
  background: #e3eccf;
  border-radius: 3px;
}
.empty-window span {
  display: block;
  width: 90%;
  height: 32px;
  margin-top: 9px;
  background: #eff2e8;
  border-radius: 3px;
}
.live-edit {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.live-edit textarea {
  min-height: 90px;
  font-size: 14px;
}
.live-edit .help {
  margin: 10px 0 0;
}
#live-edit-note {
  font-size: 12px;
  color: #5e713f;
  margin-top: 10px;
  line-height: 1.5;
}
.live-model-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0;
}
.live-model-note b {
  font-weight: 500;
}
.live-composer details .help {
  margin: 12px 0;
}
.live-composer .protection-control {
  margin: 16px 0;
}
.live-composer .protection-control small {
  font-size: 12px;
}
.kit-page [hidden] {
  display: none !important;
}
@keyframes node-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-node {
    animation: none;
  }
}
@media (max-width: 1100px) {
  .live-layout {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 20px;
  }
  .topbar {
    padding: 0 14px;
    gap: 8px;
  }
  .brand {
    margin-right: 8px;
  }
  .page {
    padding: 30px 3%;
  }
  .kit-release {
    grid-template-columns: 1fr;
  }
  .kit-release .card {
    padding: 24px;
  }
  .template-art {
    padding: 20px;
  }
  .template-art strong {
    font-size: 30px;
  }
  .brand-hero {
    padding: 36px;
  }
}
@media (max-width: 850px) {
  .live-layout,
  .kit-form-layout {
    grid-template-columns: 1fr;
  }
  .live-composer {
    position: static;
  }
  .live-composer textarea {
    min-height: 125px;
  }
  .live-layout {
    gap: 20px;
  }
  .kit-release,
  .page .grid:not(.two) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar .generate-top {
    display: none;
  }
  .live-preview {
    max-width: 760px;
  }
  .live-edit {
    margin-top: 16px;
  }
  .brand-hero {
    grid-template-columns: 1fr;
  }
  .brand-hero > p {
    font-size: 28px;
  }
  .kit-form-layout {
    max-width: 650px;
  }
  #live-site {
    max-height: 630px;
  }
  .page-heading {
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  :root {
    font-size: 14px;
  }
  .topbar {
    height: 60px;
    padding: 0 12px;
  }
  .appbody {
    height: calc(100dvh - 60px);
  }
  .topbar .brand {
    font-size: 20px;
  }
  .topbar .brand img {
    width: 29px;
    height: 29px;
  }
  .topbar > .user {
    display: grid;
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
  }
  .topbar .btn {
    min-height: 36px;
    font-size: 12px;
  }
  .rail {
    width: 62px;
    padding: 10px 4px;
  }
  .rail button {
    font-size: 10px;
    min-height: 54px;
  }
  .page {
    padding: 24px 16px;
  }
  .page-heading {
    display: block;
    margin-bottom: 22px;
  }
  .page-heading > .row {
    margin-top: 16px;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .page .grid,
  .page .grid.two,
  .kit-release {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .kit-filter input {
    max-width: 100%;
  }
  .kit-filter > .tag {
    margin-left: 0;
  }
  .kit-summary {
    display: block;
    padding: 22px;
  }
  .kit-summary > button {
    margin-top: 18px;
  }
  .live-layout {
    display: flex;
    flex-direction: column;
  }
  .live-composer {
    width: 100%;
    padding: 18px;
  }
  .live-preview {
    width: 100%;
  }
  .live-layout textarea {
    font-size: 15px;
  }
  .live-composer .fields {
    grid-template-columns: 1fr;
  }
  .live-empty {
    padding: 40px 14px;
  }
  .live-empty h3 {
    font-size: 20px;
  }
  #live-site {
    min-height: 300px;
    max-height: 500px;
  }
  .live-statusbar {
    font-size: 11px;
    padding: 12px;
  }
  .brand-hero {
    padding: 30px 22px;
  }
  .brand-swatches {
    grid-template-columns: 1fr 1fr;
  }
  .brand-social,
  .brand-mail {
    padding: 28px;
  }
  .brand-social h2 {
    font-size: 30px;
  }
  .kit-welcome h1 {
    font-size: 36px;
  }
  .kit-welcome > img {
    margin-bottom: 30px;
  }
  .kit-thumb strong {
    font-size: 25px;
  }
  .toolbar button {
    font-size: 12px;
  }
  .right {
    width: 280px;
  }
  .kit-filter {
    gap: 12px;
  }
  .more-menu button {
    min-height: 44px;
  }
  .kit-person {
    flex-wrap: wrap;
  }
  .kit-form-layout .card {
    overflow: hidden;
  }
}
.numfield,
.canvas-options > div {
  background: #fff;
}
.numfield span,
.canvas-options summary {
  color: #66735c;
}
.statusbar {
  background: #fff;
  color: #59694e;
  font-size: 11px;
}
.inspector-details[open] summary {
  color: #293923;
}
.protection {
  background: #eef4e4;
  border-color: #d9e4c9;
  color: #354c26;
  font-size: 13px;
}
.protection small {
  font-size: 12px;
  color: #596d48;
}
.card img:not(.screen-thumb):not(.project-thumb img) {
  background: transparent;
}
.kit-brand-options .card > img {
  object-fit: contain;
}
.flow .step {
  background: #fff;
}
.flow .step.done,
.phase-list button.active,
.filterbar button.active {
  background: #eaf1df;
  color: #3d572a;
}
.canvas-options > div {
  box-shadow: 0 8px 25px #32451a20;
  border-color: var(--line);
}
.bigcard p {
  color: #57694b;
}
.help b {
  color: #475a3a;
}
.inspector-title > .icon {
  color: #668a34;
}
.server-tab.active {
  background: #ebf3df;
  color: #3b5626;
}
.preview-top {
  background: #fff;
  color: var(--ink);
}
.brand a {
  border-radius: 8px;
}
.page a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  text-decoration: none;
}
.page a.primary {
  color: #fff;
}
.mono {
  font-size: 12px;
}
@media (max-width: 600px) {
  .live-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .live-composer {
    display: contents;
  }
  .live-composer > h2 {
    display: none;
  }
  .live-composer > label:first-of-type {
    order: 1;
  }
  .live-composer > label:first-of-type textarea {
    min-height: 110px;
    height: 110px;
  }
  .live-composer > .quick {
    order: 2;
    margin: 0;
  }
  .live-composer > .kit-check {
    order: 3;
    margin: 0;
  }
  .live-layout > div {
    order: 4;
    min-width: 0;
  }
  .live-composer > .live-edit {
    order: 5;
    margin: 0;
    padding-top: 14px;
  }
  .live-composer > .primary {
    order: 6;
    margin: 0;
  }
  .live-composer > .kit-details {
    order: 7;
    margin: 0;
  }
  .live-composer > .demo-note {
    order: 8;
    margin: 0;
  }
  .live-model-note {
    font-size: 11px;
    margin: 10px 0 0;
    align-items: flex-start;
  }
  .live-statusbar {
    font-size: 11px;
  }
  #live-site {
    min-height: 230px;
    max-height: 285px;
  }
  .live-empty {
    padding: 24px 12px;
  }
  .empty-window {
    width: 130px;
    height: 80px;
  }
  .empty-window b {
    margin-top: 8px;
    height: 8px;
  }
  .empty-window span {
    height: 20px;
  }
  .live-empty h3 {
    margin: 20px 0 8px;
  }
  .live-empty p {
    font-size: 12px;
  }
  .live-preview {
    margin-top: 4px;
  }
  .live-composer .help {
    font-size: 12px;
  }
  .live-composer .live-edit textarea {
    min-height: 80px;
  }
  .live-composer .quick button {
    font-size: 12px;
  }
  .page-heading p {
    line-height: 1.5;
  }
}
.card:has(> .listtable) {
  overflow-x: auto;
}
.filterbar {
  flex-wrap: wrap;
}
.page .row {
  max-width: 100%;
}
.kit-page .row {
  flex-wrap: wrap;
}
.phase-list button {
  white-space: normal;
}
.page .fields {
  min-width: 0;
}
@media (max-width: 600px) {
  .more-grid {
    grid-template-columns: 1fr;
  }
  .page .page-heading > .row {
    flex-wrap: wrap;
  }
  .filterbar input {
    max-width: 100%;
  }
  .flow {
    max-width: 100%;
  }
  .phase-layout {
    grid-template-columns: 1fr;
  }
  .grid.two .card > .row {
    flex-wrap: wrap;
  }
  .listtable th,
  .listtable td {
    padding-inline: 10px;
  }
}
@media(max-width:600px){.page .grid:not(.two){grid-template-columns:minmax(0,1fr)}.page button,.page a.btn{max-width:100%;white-space:normal}.page .project-thumb strong{font-size:24px;overflow-wrap:anywhere;min-width:0}.page .project-thumb img{flex:none}.page-heading .tag{white-space:normal}.template-art strong{font-size:30px}.kit-template>button{max-width:calc(100% - 24px)}}
@media(max-width:600px){.page .card>.row,.page .card .row.between{flex-wrap:wrap}.page .tag{max-width:100%;white-space:normal}}
@media(max-width:600px){.bigcard{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:24px}.bigcard>div{min-width:0;max-width:100%}.bigcard .tag{align-self:flex-start}}
.search-notice{display:flex;gap:18px;justify-content:space-between;align-items:center;border:1px solid #dae4ca;background:#f0f5e7;border-radius:12px;padding:18px 22px;margin:20px 0}.search-notice strong{font-size:14px;line-height:1.5}.search-notice p{font-size:13px;line-height:1.6;color:#5b6c4e;margin:5px 0 0}.search-notice.compact{padding:14px 16px;gap:12px}.search-notice.compact p{font-size:12px}.search-notice button{flex:none}.search-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:28px}.search-checks{display:grid;margin:16px 0}.search-checks>div{padding:16px 0;border-bottom:1px solid var(--line)}.search-checks strong{display:block;margin:9px 0 4px;font-size:14px}.search-checks p{font-size:13px;margin:0;color:var(--muted)}.search-snippet{background:#f7f8f5;border:1px solid var(--line);border-radius:10px;padding:20px;margin:18px 0}.search-snippet h3{color:#26569c;font-size:19px;margin:12px 0 8px}.search-snippet p{font-size:14px;color:var(--muted)}.search-future{padding-left:20px;color:var(--muted);font-size:14px;line-height:1.65}.search-future li+li{margin-top:9px}#modal:has(#seo-auto){width:860px;max-width:calc(100vw - 32px);padding:28px}#modal:has(#seo-auto)>.demo-note{margin-top:20px}#modal:has(#seo-auto) .row{flex-wrap:wrap}#modal:has(#seo-auto) button{white-space:normal}@media(max-width:700px){.search-columns{grid-template-columns:1fr;gap:24px}.search-notice{align-items:flex-start;flex-wrap:wrap;padding:16px}#modal:has(#seo-auto){padding:22px}.search-notice.compact{padding:14px}.search-notice.compact button{font-size:12px}.search-snippet{padding:16px}}
/* The connected shell owns project switching, save state and preview. */
html[data-connected="true"] .topbar,
html[data-connected="true"] .preview-top a,
html[data-connected="true"] .preview-top span,
html[data-connected="true"] .rail [data-action="screen:projects"] { display: none; }
html[data-connected="true"] .appbody { height: 100dvh; }
/* Object names must remain legible in the light Studio shell. */
.addgrid button { background: var(--raised); color: var(--ink); }
.addgrid svg { color: #527129; }

/* Catalog previews use the same script-free HTML as export, rather than a
   promotional screenshot that differs from the actual editable structure. */
.catalog-filter{display:flex;gap:12px;margin:24px 0}.catalog-filter input{flex:1}.catalog-filter select{max-width:240px}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.catalog-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--raised);min-width:0}.catalog-card[hidden]{display:none}
.catalog-cover{height:265px;overflow:hidden;background:#efefe8;position:relative;pointer-events:none}.catalog-cover iframe{width:1100px;height:1100px;border:0;transform:scale(.29);transform-origin:top left}.catalog-card-body{padding:22px}.catalog-card-body h2{font-size:28px;margin:14px 0 8px}.catalog-card-body p{min-height:55px}.catalog-card-body small{display:block;margin-top:14px;font-size:11px;color:var(--muted)}
#modal.catalog-dialog{width:min(1200px,95vw);max-width:95vw;padding:24px}.catalog-dialog iframe{width:100%;height:60vh;min-height:300px;border:1px solid #ddd;border-radius:12px;background:white;display:block;margin:18px 0}.catalog-dialog .preview-device{max-width:220px}
@media(max-width:1150px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.catalog-grid{grid-template-columns:1fr}.catalog-filter{flex-direction:column}.catalog-filter select{max-width:none}.catalog-cover iframe{transform:scale(.27)}}
[data-package-form] fieldset{border:0;margin:20px 0 0;padding:0;min-width:0}[data-package-form] [role="status"]{padding:16px;background:var(--raised);border-radius:12px;overflow-wrap:anywhere}[data-package-form] [hidden]{display:none!important}
/* CMS proposals stay inspectable on a narrow screen; only one preview is active. */
#modal.content-review-dialog {width:min(1180px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);overflow:auto}
.content-review-controls {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}
.content-review-controls label {margin-left:auto;display:flex;align-items:center;gap:8px}
.content-review-controls button[aria-pressed="true"] {background:#d5f769;color:#26342b}
.content-review-stage {background:#e8ebe3;border:1px solid #d3dacc;border-radius:12px;overflow:auto}
.content-review-stage iframe {display:block;height:420px;border:0;margin-inline:auto;background:white}
.content-protection {display:flex!important;align-items:center;gap:8px!important;margin:16px 0}
.content-protection input {width:auto!important}
.content-review-dialog li {margin:6px 0;overflow-wrap:anywhere}
@media(max-width:600px){.content-review-controls label{margin-left:0}.content-review-stage iframe{height:320px}}

#modal.content-review-dialog{padding:24px}
#modal .content-protection{flex-direction:row;justify-content:flex-start}
#modal .content-review-controls label{flex-direction:row}
#modal.content-review-dialog p{margin:8px 0}
#content-fit-warning{background:#fff1ca;padding:12px;border-radius:8px;overflow-wrap:anywhere}
#content-fit-warning[hidden]{display:none}
#modal.content-review-dialog .modal-actions{position:sticky;bottom:-24px;padding:12px 0;background:white;margin-top:12px}
