@import url("https://rsms.me/inter/inter.css");
:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #252723;
  background: #f6f5f1;
  font-synthesis: none;
  --muted: #73766f;
  --line: #dedfd7;
  --accent: #e0ac57;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary,
input,
select {
  touch-action: manipulation;
}
button,
a,
select,
summary {
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #ab791e;
  outline-offset: 3px;
}
header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 5vw;
}
.brand {
  font-size: 30px;
  letter-spacing: -2px;
  font-weight: 750;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
}
.brand-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 100%;
  align-self: end;
  margin-bottom: 8px;
}
.breadcrumb {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.breadcrumb b {
  padding: 0 14px;
  font-weight: 400;
}
.prototype {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 11px;
  color: var(--muted);
}
main {
  max-width: 1460px;
  margin: auto;
  padding: 48px 5vw 0;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0 0 15px;
}
h1 {
  font-weight: 500;
  letter-spacing: -1.9px;
  font-size: 40px;
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}
.intro p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.sample-tag {
  font-size: 11px;
  white-space: nowrap;
  background: #eaece4;
  border-radius: 5px;
  padding: 9px 12px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
}
.preview-panel {
  min-width: 0;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #eceee7;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.panel-top .eyebrow {
  margin: 0;
}
.segmented {
  display: flex;
  gap: 2px;
  background: #dee1d7;
  border-radius: 6px;
  padding: 3px;
}
.segmented button {
  font-size: 10px;
  background: none;
  padding: 6px 9px;
  border-radius: 4px;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  color: #34382e;
  box-shadow: 0 1px 2px #0000000a;
}
.stage {
  background: #eceee7;
  min-height: 344px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 20px;
  border-inline: 1px solid var(--line);
  overflow: hidden;
  background-image: radial-gradient(#cfd3c7 0.6px, transparent 0.6px);
  background-size: 14px 14px;
}
.screen-shell {
  padding: 18px;
  background: #252722;
  border-radius: 19px;
  box-shadow:
    0 17px 22px -16px #2228,
    0 1px 0 #fff3 inset;
  max-width: 100%;
  transition: width 0.2s;
  width: 628px;
  line-height: 0;
}
.screen-shell img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border: 1px solid #000;
  background: white;
}
.stage.actual .screen-shell {
  width: 332px;
  flex-shrink: 0;
}
.screen-caption {
  color: var(--muted);
  font-size: 10px;
  margin-top: 27px;
  text-align: center;
  line-height: 1.8;
}
.screen-caption span {
  margin: 0 8px;
}
.preview-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #eceee7;
  color: #5b6053;
}
.preview-bottom > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #929983;
  flex-shrink: 0;
}
a {
  color: inherit;
}
.preview-bottom a {
  text-decoration: none;
}
.preview-bottom a span {
  padding-left: 8px;
}
.scene-section {
  padding: 27px 0 20px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 550;
  margin: 0 0 16px;
}
.section-title h2 {
  margin: 0;
}
.section-title > span {
  font-size: 10px;
  color: var(--muted);
}
.variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.variant {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  padding: 14px;
  color: inherit;
  min-width: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.variant[aria-pressed="true"] {
  border-color: #a89062;
  background: #efe9da;
}
.variant:hover {
  background: #efeee8;
}
.variant .number {
  font-size: 10px;
  color: #807d71;
  display: flex;
  justify-content: space-between;
}
.variant h3 {
  font-size: 12px;
  margin: 14px 0 7px;
  font-weight: 550;
}
.variant p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.variant img {
  width: 112px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  margin-top: 10px;
}
.fineprint {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}
.device-row {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.device-row h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 8px;
}
.device-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.secondary {
  background: transparent;
  border: 1px solid #c9cdc0;
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 11px;
  white-space: nowrap;
}
.secondary:hover {
  background: #eceee7;
}
aside {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.control-section + .control-section {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 22px;
}
.control-section .eyebrow {
  font-size: 9px;
}
.scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.scenario {
  font-size: 11px;
  text-align: left;
  padding: 12px 10px;
  background: #eeeee8;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #686b61;
}
.scenario[aria-pressed="true"] {
  border-color: #8a927c;
  color: #313b23;
  background: #e4e8dc;
}
.scenario:hover {
  background: #e4e8dc;
}
label {
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}
select,
textarea {
  width: 100%;
  border: 1px solid #ced1c6;
  border-radius: 6px;
  background: #fafbf7;
  color: #42463b;
  padding: 10px;
  font-size: 12px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
textarea::placeholder {
  color: #858a7b;
}
.range-label {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
}
.range-label output {
  font-size: 11px;
  color: var(--muted);
}
input[type="range"] {
  width: 100%;
  accent-color: #797f69;
  margin: 0 0 15px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.checkbox input {
  accent-color: #797f69;
  margin: 0;
}
label span {
  color: var(--muted);
}
.primary {
  margin-top: 10px;
  background: #dba74f;
  color: #29281d;
  width: 100%;
  padding: 13px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.primary:not(:disabled):hover {
  background: #d09b40;
}
details {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
summary {
  color: #555e4b;
}
code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding: 24px 0;
  font-size: 9px;
  letter-spacing: 1px;
  color: #85897c;
}
footer span:last-child {
  letter-spacing: 0;
}
#publish-status {
  min-height: 18px;
}
.generation .fineprint {
  min-height: 36px;
}
@media (min-width: 1400px) {
  .stage {
    min-height: 390px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
  }
  aside {
    padding-left: 20px;
  }
  .stage {
    min-height: 290px;
  }
  .screen-shell {
    padding: 12px;
    border-radius: 14px;
  }
  .device-row {
    align-items: start;
    flex-direction: column;
  }
  .variants {
    gap: 7px;
  }
  .variant {
    padding: 10px;
  }
}
@media (max-width: 760px) {
  header {
    height: 68px;
    gap: 20px;
  }
  .breadcrumb {
    display: none;
  }
  main {
    padding-top: 30px;
  }
  .intro {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  h1 {
    font-size: 34px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .stage {
    min-height: 280px;
  }
  aside {
    padding-left: 0;
    border-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .control-section + .control-section {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .generation {
    grid-column: 1/-1;
    border-top: 1px solid var(--line) !important;
    padding-top: 23px !important;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .device-row {
    flex-direction: row;
    align-items: center;
  }
  footer {
    gap: 20px;
    line-height: 1.7;
  }
  .stage.actual .screen-shell {
    padding: 0;
    width: 298px;
    border-radius: 0;
  }
  .screen-caption span {
    margin: 0 4px;
  }
}
@media (max-width: 430px) {
  .variants {
    grid-template-columns: 1fr;
  }
  .variant h3 {
    margin-top: 7px;
  }
  .variant p {
    font-size: 12px;
  }
  .variant .number {
    float: right;
  }
  .panel-top {
    padding: 15px 12px;
  }
  .panel-top .eyebrow {
    font-size: 8px;
  }
  .preview-bottom {
    padding: 14px 12px;
    flex-wrap: wrap;
  }
  .stage {
    padding: 20px 8px 10px;
    min-height: 235px;
  }
  .screen-shell {
    padding: 9px;
  }
  .screen-caption {
    font-size: 9px;
  }
  .device-row {
    align-items: start;
    flex-direction: column;
  }
  aside {
    grid-template-columns: 1fr;
  }
  .control-section + .control-section {
    border-top: 1px solid var(--line);
    padding-top: 23px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
  }
}

.unlock {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.unlock-row {
  display: flex;
  gap: 7px;
}
.unlock-row input {
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid #ced1c6;
  background: #fafbf7;
  border-radius: 6px;
  font-size: 12px;
}
.unlock-row button {
  padding: 10px;
}
.unlock [hidden] {
  display: none;
}
@media (max-width: 760px) {
  .unlock-row input {
    font-size: 16px;
  }
}

#recovery {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
#recovery button {
  white-space: normal;
  text-align: left;
}

.preferences {
  margin-top: 18px;
}
.preferences fieldset {
  border: 0;
  padding: 12px 0;
  margin: 0;
}
.preferences legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0;
}
.line-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.line-options .checkbox {
  margin: 0;
  font-size: 11px;
}
#character {
  margin-top: 8px;
}

[hidden] {
  display: none !important;
}
#data-mode {
  margin: 8px 0 18px;
}
