[x-cloak] {
  display: none !important;
}

@font-face {
  font-family: system-serif;
  src: local("Georgia");
}
:root {
  color-scheme: light;
  --bg: #f4f2ec;
  --surface: #fcfbf7;
  --ink: #28392f;
  --muted: #6e766d;
  --border: #d9dcd2;
  --accent: #bd4b2d;
  --accent-hover: #a53e23;
  --tint: #e9ede2;
  --drop: #f8f9f2;
  --input: #fffefa;
  --shadow: 0 12px 28px #27352b0b;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b2520;
  --surface: #222e27;
  --ink: #edf0e4;
  --muted: #afb9ac;
  --border: #425045;
  --accent: #ef9471;
  --accent-hover: #ffac8d;
  --tint: #303e32;
  --drop: #242f26;
  --input: #1c2820;
  --shadow: 0 12px 28px #0002;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #1b2520;
    --surface: #222e27;
    --ink: #edf0e4;
    --muted: #afb9ac;
    --border: #425045;
    --accent: #ef9471;
    --accent-hover: #ffac8d;
    --tint: #303e32;
    --drop: #242f26;
    --input: #1c2820;
    --shadow: 0 12px 28px #0002;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.header,
main,
footer {
  width: calc(100% - 80px);
  margin: auto;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 105px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.2px;
  text-decoration: none;
}
.brand-light {
  font-weight: 400;
}
.brand-dot {
  color: var(--accent);
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--surface);
  width: 33px;
  height: 36px;
  border-radius: 6px;
}
.brand-icon svg {
  fill: currentColor;
  stroke: none;
  width: 23px;
  height: 23px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  margin-right: 12px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #70825a;
}
.header select {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  max-width: 100px;
  padding: 5px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 46px 0 32px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  margin: 0 0 13px;
  color: var(--accent);
}
h1 {
  font-family: system-serif, Georgia, serif;
  font-size: clamp(42px, 5.1vw, 65px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -2.7px;
  margin: 0 0 18px;
}
.intro-copy {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
}
.intro-note {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 24px 65px 0 0;
  transform: rotate(-6deg);
  color: var(--muted);
}
.intro-note p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
}
.note-arrow {
  font-family: Georgia, serif;
  font-size: 65px;
  font-weight: 400;
  transform: rotate(10deg);
}
.dropzone {
  position: relative;
  border: 1px dashed #a7b296;
  border-radius: 12px;
  text-align: center;
  background: var(--drop);
  padding: 24px 20px 18px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.dropzone.dragging {
  border: 2px solid var(--accent);
  padding: 23px 19px 17px;
  background: var(--tint);
}
.drop-art {
  position: relative;
  width: 90px;
  height: 62px;
  margin: auto auto 8px;
}
.mini-image {
  position: absolute;
  width: 49px;
  height: 54px;
  border: 1px solid #b8c1aa;
  border-radius: 5px;
  background: #e0e6d4;
  color: #6e7d58;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 5px #28392f08;
}
.mini-image svg {
  width: 28px;
  height: 28px;
}
.mini-image.back {
  transform: rotate(-14deg);
  left: 8px;
  top: 1px;
  background: #f1ebdd;
  border-color: #d1c6b3;
  color: #a59473;
}
.mini-image.front {
  transform: rotate(10deg);
  left: 35px;
  top: 3px;
}
.plus-badge {
  position: absolute;
  right: 0;
  bottom: 1px;
  border: 2px solid var(--drop);
  background: var(--ink);
  color: var(--bg);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 19px;
  line-height: 18px;
}
.dropzone h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.6px;
  margin: 3px 0 3px;
}
.dropzone > p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.drop-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 17px 0 12px;
}
.button {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 17px;
  border-radius: 6px;
  font-weight: 550;
  font-size: 12px;
  line-height: 1.5;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.button:not(:disabled):hover {
  background: var(--tint);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}
:root[data-theme="dark"] .button.primary {
  color: #1b2520;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .button.primary {
    color: #1b2520;
  }
}
.button.primary:not(:disabled):hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.button svg {
  width: 16px;
  height: 16px;
}
.button.small {
  font-size: 11px;
  padding: 6px 10px;
}
.paste-hint {
  font-size: 10px !important;
}
kbd {
  font-family: inherit;
  font-size: 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 3px;
  background: var(--surface);
}
.paste-detail {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  opacity: 0.85;
}
.collection-bar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 2px;
  font-size: 11px;
  flex-wrap: wrap;
}
.collection-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.collection-bar strong {
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  padding: 3px 0;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover {
  color: var(--ink);
}
.workspace {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 6px 0 25px;
}
.settings-panel,
.preview-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 23px;
}
.section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 23px;
}
.section-heading h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0;
}
.section-heading .text-button,
.output-badge {
  margin-left: auto;
}
.step {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.7px;
}
.output-badge {
  font-size: 9px;
  color: var(--muted);
  background: var(--tint);
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.field {
  margin-bottom: 17px;
  min-width: 0;
}
.field label {
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  font-weight: 600;
}
.field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--input);
  color: var(--ink);
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.5;
}
.unit-input {
  position: relative;
}
.unit-input input {
  padding-right: 32px;
}
.unit-input > span {
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
}
.field-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 0;
}
.field-error {
  color: var(--accent);
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0 0;
}
.field input[aria-invalid="true"] {
  border-color: var(--accent);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
}
.color-input {
  border: 1px solid var(--border);
  background: var(--input);
  border-radius: 5px;
  display: flex;
  gap: 7px;
  align-items: center;
  height: 38px;
  padding: 7px;
}
.color-input input {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.color-input input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-input input::-webkit-color-swatch {
  border: 1px solid var(--border);
  border-radius: 3px;
}
.color-input span {
  font-size: 9px;
  color: var(--muted);
}
.generate {
  width: 100%;
  margin-top: 3px;
  justify-content: space-between;
  padding: 12px;
  font-size: 11px;
}
.cancel {
  margin-top: 10px;
  width: 100%;
}
.status-text {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.status-text.error {
  color: var(--accent);
}
.privacy-note {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.privacy-note svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.privacy-note p {
  font-size: 10px;
  line-height: 1.7;
  margin: 0;
}
.preview-panel {
  padding-bottom: 16px;
  min-width: 0;
}
.empty-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 64px 32px 56px;
  overflow: hidden;
  min-height: 475px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.sample-sheet {
  width: 78%;
  max-width: 365px;
  aspect-ratio: 1.3;
  background: #fff;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform: rotate(-3deg);
  box-shadow:
    0 7px 0 -3px #e5e5dc,
    0 13px 0 -6px #d8dcd1,
    0 15px 25px #27352b1a;
  border: 1px solid #d7d9cf;
}
.sample-row {
  display: flex;
  gap: 5px;
  flex: 1;
  min-height: 0;
}
.landscape {
  display: block;
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #c8d3ba;
}
.landscape:before,
.landscape:after {
  content: "";
  position: absolute;
}
.landscape:before {
  width: 140%;
  height: 110%;
  border-radius: 50% 60% 0 0;
  top: 45%;
  left: -30%;
  transform: rotate(-17deg);
  background: #637b5a;
}
.landscape:after {
  width: 100%;
  height: 100%;
  border-radius: 60% 50% 0 0;
  top: 65%;
  left: 30%;
  transform: rotate(17deg);
  background: #435b45;
}
.forest {
  flex: 1.5;
  background: linear-gradient(#c4d0be, #a1b0a1);
}
.sky {
  background: #cedee2;
}
.sky:before {
  background: #9eaaa4;
  top: 65%;
}
.sky:after {
  background: #738d7b;
  top: 82%;
}
.clay {
  background: #d6b49a;
  flex: 0.8;
}
.clay:before {
  background: #b57b5e;
}
.clay:after {
  background: #86513d;
}
.sand {
  background: #e4d3b0;
  flex: 1.5;
}
.sand:before {
  background: #ccab7c;
  top: 55%;
}
.sand:after {
  background: #ad8a5d;
  top: 75%;
}
.sea {
  background: linear-gradient(#c2d1cc 45%, #819d97 45%, #476d66);
}
.sea:before {
  background: #d5c4a0;
  top: 80%;
  left: -80%;
}
.sea:after {
  background: #e4d7b9;
  top: 89%;
  left: -50%;
}
.sage {
  background: #b4bda5;
}
.sage:before {
  background: #818f67;
}
.sage:after {
  background: #5c7151;
}
.dusk {
  background: #d3c9c0;
  flex: 1.3;
}
.dusk:before {
  background: #99a39c;
}
.dusk:after {
  background: #687c74;
}
.rose {
  background: #d7b8a5;
}
.rose:before {
  background: #b68b72;
}
.rose:after {
  background: #956d50;
}
.empty-caption {
  text-align: center;
  margin-top: 48px;
}
.empty-caption h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 8px 0;
}
.empty-caption p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.results {
  display: grid;
  gap: 18px;
}
.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  min-width: 0;
}
.result-card > a {
  display: block;
}
.result-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--bg);
}
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.result-meta p {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 0;
}
.result-meta strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.download-bar {
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.download-bar p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.download-bar .button {
  font-size: 11px;
}
.progress-wrap {
  margin-top: 14px;
}
progress {
  width: 100%;
  height: 6px;
  display: block;
  accent-color: var(--accent);
}
.file-list {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 20px;
  max-height: 240px;
  overflow: auto;
}
.file-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.file-list span {
  min-width: 0;
}
.file-list button {
  flex-shrink: 0;
  padding: 3px 6px;
}
.file-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}
.warnings {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 24px;
}
.warnings ul {
  padding-left: 20px;
  color: var(--muted);
  max-height: 220px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.update-banner {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 12px;
}
footer {
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 16px;
  justify-content: space-between;
  padding: 20px 0 30px;
  font-size: 10px;
  color: var(--muted);
}
footer > span:first-child {
  font-weight: 650;
  font-size: 13px;
  letter-spacing: -0.3px;
}
.install-help {
  max-width: 260px;
}
.install-help summary {
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.install-help p {
  line-height: 1.7;
}
@media (min-width: 1400px) {
  .intro {
    padding-top: 54px;
    padding-bottom: 38px;
  }
  .dropzone {
    padding-top: 28px;
    padding-bottom: 24px;
  }
}
@media (max-width: 900px) {
  .header,
  main,
  footer {
    width: calc(100% - 48px);
  }
  .local-badge {
    display: none;
  }
  .intro-note {
    margin-right: 12px;
  }
  .workspace {
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 16px;
  }
  .settings-panel,
  .preview-panel {
    padding: 18px;
  }
  .empty-preview {
    padding: 30px 12px;
    min-height: 465px;
  }
  .sample-sheet {
    width: 95%;
  }
  .output-badge {
    display: none;
  }
}
@media (max-width: 650px) {
  .header,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .header {
    min-height: 80px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 17px 0;
  }
  .brand {
    font-size: 21px;
    gap: 8px;
  }
  .brand-icon {
    width: 29px;
    height: 31px;
  }
  .header-actions {
    gap: 3px;
    flex-wrap: wrap;
  }
  .header select {
    font-size: 11px;
    padding: 4px;
    max-width: 77px;
  }
  .intro {
    padding: 32px 0 25px;
  }
  .intro-note {
    display: none;
  }
  h1 {
    font-size: 49px;
    letter-spacing: -2px;
  }
  .intro-copy {
    font-size: 12px;
  }
  .intro-copy br {
    display: none;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .dropzone {
    padding: 24px 14px 18px;
  }
  .dropzone.dragging {
    padding: 23px 13px 17px;
  }
  .dropzone h2 {
    font-size: 25px;
  }
  .dropzone > p {
    font-size: 11px;
  }
  .paste-detail {
    max-width: 260px;
    margin: 5px auto 0;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .settings-panel,
  .preview-panel {
    padding: 20px;
  }
  .field-pair {
    grid-template-columns: 1fr 1fr;
  }
  .empty-preview {
    min-height: 400px;
    padding: 48px 24px;
  }
  .sample-sheet {
    width: 82%;
    max-width: 330px;
  }
  .output-badge {
    display: block;
  }
  .collection-bar {
    align-items: start;
    font-size: 10px;
  }
  .collection-bar > div:last-child {
    margin-left: auto;
  }
  .collection-bar .muted {
    display: block;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .generate {
    font-size: 12px;
  }
  .empty-caption h3 {
    font-size: 23px;
  }
  .update-banner {
    align-items: start;
    flex-direction: column;
  }
  footer {
    gap: 13px;
  }
  .install-help {
    max-width: none;
    flex-basis: 100%;
  }
  .install-help summary {
    text-align: left;
  }
  .file-list > div {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
[data-t="headline"],
[data-t="intro"],
[data-t="note"],
[data-t="privacy"] {
  white-space: pre-line;
}
/* Native selects remain usable when customizable selects are unavailable. */
@supports (appearance: base-select) {
  .header select,
  .header select::picker(select) {
    appearance: base-select;
  }
  .header select {
    border: 1px solid transparent;
    border-radius: 5px;
    gap: 7px;
    padding: 6px 8px;
    max-width: none;
    align-items: center;
  }
  .header select:hover,
  .header select:open {
    border-color: var(--border);
    background: var(--surface);
  }
  .header select::picker(select) {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    padding: 5px;
    min-width: 110px;
    margin-top: 5px;
  }
  .header select::picker-icon {
    color: var(--muted);
    transition: rotate 0.15s;
  }
  .header select:open::picker-icon {
    rotate: 180deg;
  }
  .header option {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    gap: 10px;
  }
  .header option:hover,
  .header option:focus {
    background: var(--tint);
    outline: none;
  }
  .header option:checked {
    color: var(--accent);
    font-weight: 600;
  }
  .header option::checkmark {
    color: var(--accent);
  }
}
