@layer base,layout,components,responsive;
@layer base {
  :root {
    --paper: #f8f9f5;
    --surface: #fff;
    --ink: #29352b;
    --muted: #7a8076;
    --accent: #3c533e;
    --accent-hover: #2d4130;
    --sage: #e8eddf;
    --line: #e1e5db;
    --subtle: #f0f2eb;
    --danger: #ac4939;
    --selection: #7487c1;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Helvetica Neue", Arial, sans-serif;
    --radius: 16px;
    --shadow: 0 18px 60px #26351c0b;
  }
  * {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
  }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button,
  a,
  input,
  select,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
  button {
    color: inherit;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  button:focus-visible,
  a:focus-visible,
  summary:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 3px solid #a5b897;
    outline-offset: 4px;
  }
  button svg,
  .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 1.6;
  }
  svg {
    display: block;
  }
  button {
    border: 0;
    background: none;
  }
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  h2 em,
  h1 em {
    font-family: var(--serif);
    font-weight: 400;
  }
  h1 em {
    color: #697c5c;
  }
  img {
    max-width: 100%;
    display: block;
    height: auto;
  }
  [hidden] {
    display: none !important;
  }
  .mobile-only {
    display: none;
  }
  .skip-link {
    position: absolute;
    top: -60px;
    left: 20px;
    padding: 12px;
    background: white;
    z-index: 100;
  }
  .skip-link:focus {
    top: 10px;
  }
  .noscript {
    padding: 24px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
    font-weight: 500;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #82976e;
    border-radius: 50%;
    flex-shrink: 0;
  }
}
@layer layout {
  .site-header {
    height: 94px;
    max-width: 1300px;
    padding: 0 48px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    display: flex;
    align-items: center;
    font-size: 28px;
    letter-spacing: -1.5px;
    font-weight: 650;
    gap: 7px;
  }
  .brand-icon {
    height: 28px;
    width: 28px;
    flex: none;
    border-radius: 6px;
  }
  .site-header nav {
    display: flex;
    gap: 34px;
    color: #737a6f;
    font-size: 12px;
  }
  .site-header nav a:hover {
    color: var(--ink);
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .hero {
    max-width: 1300px;
    margin: auto;
    padding: 55px 48px 0;
    text-align: center;
  }
  .hero > .eyebrow {
    justify-content: center;
    font-size: 9px;
    letter-spacing: 1.8px;
  }
  h1 {
    font-size: 70px;
    font-weight: 450;
    letter-spacing: -3px;
    line-height: 1.06;
    margin: 23px 0 20px;
  }
  .hero-description {
    font-size: 14px;
    color: #7b8175;
    line-height: 1.8;
  }
  .converter {
    margin-top: 39px;
    text-align: left;
    scroll-margin-top: 24px;
    outline: none;
  }
  .upload-layout {
    display: grid;
    grid-template-columns: 0.94fr 1.18fr;
    border: 1px solid #dfe4d8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
  }
  .upload-panel {
    padding: 25px 30px 19px;
    display: flex;
    flex-direction: column;
  }
  .panel-kicker {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: 1.1px;
    color: #989e91;
  }
  .dropzone {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 30px 6px 23px;
    border-radius: 10px;
    transition: background 0.15s;
  }
  .dropzone.dragover {
    background: var(--sage);
    outline: 2px dashed var(--accent);
    outline-offset: 0;
  }
  .upload-symbol {
    width: 57px;
    height: 57px;
    background: #f3f5ed;
    border: 1px solid #e6ebde;
    border-radius: 16px;
    display: grid;
    place-items: center;
    position: relative;
    margin-bottom: 20px;
    transform: rotate(-5deg);
  }
  .upload-symbol svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.2;
    color: #66775a;
  }
  .tiny-spark {
    position: absolute;
    right: -5px;
    top: -6px;
    font-size: 20px;
    color: #839271;
  }
  .dropzone h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 11px;
  }
  .dropzone p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 24px;
  }
  .dropzone .primary-button {
    padding: 15px 23px;
    min-width: 215px;
    justify-content: space-between;
    gap: 13px;
  }
  .file-meta {
    font-size: 9px;
    color: #949b8b;
    margin-top: 12px;
    letter-spacing: 0.3px;
  }
  .sample-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid #edf0e7;
    padding-top: 16px;
    font-size: 10px;
    color: #8a9181;
  }
  .sample-row > .icon {
    width: 13px;
    height: 13px;
    color: #a5ac9c;
  }
  .sample-thumbnails {
    display: flex;
    gap: 7px;
  }
  .sample-thumbnails button {
    padding: 2px;
    background: #fff;
    border: 1px solid #e4e8dd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.2s;
  }
  .sample-thumbnails button:hover {
    transform: translateY(-3px);
  }
  .sample-thumbnails img {
    width: 38px;
    height: 31px;
    object-fit: cover;
    border-radius: 3px;
  }
  .showcase {
    background: #eff2e9;
    padding: 24px 24px 18px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .showcase-top {
    font-size: 8px;
    letter-spacing: 1px;
    color: #88917e;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mini-tag {
    font-size: 8px;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid #dce3d2;
    border-radius: 4px;
  }
  .mini-tag .status-dot {
    width: 4px;
    height: 4px;
  }
  .showcase-art {
    height: 340px;
    position: relative;
    margin: 7px 0;
  }
  .original-card,
  .result-card {
    width: 57%;
    position: absolute;
    border: 1px solid #dce1d4;
    background: #fff;
    padding: 0 8px 8px;
    border-radius: 7px;
    box-shadow: 0 8px 18px #26351c0c;
  }
  .original-card {
    top: 27px;
    left: 0;
    transform: rotate(-7deg);
    opacity: 0.85;
  }
  .result-card {
    width: 54%;
    right: 7px;
    top: 60px;
    transform: rotate(4deg);
    box-shadow: 0 15px 30px #26351c18;
  }
  .art-card-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 7px;
    height: 26px;
    color: #637357;
  }
  .art-card-label > span:last-child {
    margin-left: auto;
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .file-dot {
    width: 6px;
    height: 7px;
    border: 1px solid #959d8e;
    border-radius: 1px;
  }
  .green-file {
    font-size: 12px;
  }
  .original-card img,
  .result-card img {
    border-radius: 2px;
    width: 100%;
  }
  .selection-demo {
    position: absolute;
    bottom: 15.2%;
    left: 10.5%;
    width: 79%;
    height: 15%;
    border: 1px solid var(--selection);
    background: #8e9ac00a;
  }
  .selection-demo b {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fff;
    border: 1px solid var(--selection);
    top: -3px;
    left: -3px;
  }
  .selection-demo b:nth-child(2) {
    left: auto;
    right: -3px;
  }
  .selection-demo b:nth-child(3) {
    top: auto;
    bottom: -3px;
  }
  .selection-demo b:nth-child(4) {
    left: auto;
    right: -3px;
    top: auto;
    bottom: -3px;
  }
  .selection-demo > span {
    position: absolute;
    right: -1px;
    top: -21px;
    padding: 4px 6px;
    background: #7c8cba;
    color: white;
    font-size: 7px;
    border-radius: 2px;
  }
  .cursor-demo {
    position: absolute;
    bottom: 3%;
    right: 1%;
    display: flex;
    align-items: flex-start;
    transform: rotate(-4deg);
  }
  .cursor-demo span {
    background: #60764e;
    color: white;
    font-size: 8px;
    padding: 4px 7px;
    border-radius: 3px;
    margin-top: 19px;
    margin-left: -7px;
  }
  .transform-arrow {
    position: absolute;
    top: 8%;
    right: 21%;
    color: #9ba68c;
    font-size: 40px;
    font-family: var(--serif);
    transform: rotate(30deg);
  }
  .floating-colors {
    position: absolute;
    bottom: 9px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    padding: 10px 12px;
    border: 1px solid #e2e6da;
    border-radius: 6px;
    box-shadow: 0 6px 20px #2b3d2410;
    transform: rotate(-3deg);
    font-size: 9px;
    color: #7e8775;
  }
  .floating-colors b {
    width: 15px;
    height: 15px;
    background: var(--swatch);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #e6e9e1;
  }
  .floating-colors .icon {
    width: 12px;
    height: 12px;
    margin-left: 4px;
  }
  .showcase-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    color: #7b886f;
  }
  .showcase-bottom > span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .showcase-bottom .icon {
    width: 12px;
    height: 12px;
  }
  .showcase-bottom .text-button {
    font-size: 9px;
  }
  .value-strip {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 26px 0 47px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    color: #849078;
  }
  .value-strip > span {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .value-strip .icon {
    width: 14px;
    height: 14px;
  }
  .section-wrap {
    max-width: 1204px;
    margin: auto;
    padding: 76px 0;
  }
  .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 35px;
  }
  .section-heading .eyebrow,
  .faq-section .eyebrow {
    font-size: 9px;
    color: #88917c;
    margin-bottom: 16px;
  }
  .section-heading h2,
  .faq-section h2 {
    font-size: 38px;
    font-weight: 450;
    letter-spacing: -1.3px;
    line-height: 1.18;
  }
  .section-heading h2 em,
  .faq-section h2 em {
    color: #798a69;
  }
  .section-heading > p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    padding-bottom: 4px;
  }
  .examples-section {
    padding-top: 27px;
  }
  .example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .example-card {
    text-align: left;
    padding: 0;
  }
  .example-image {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }
  .example-image img {
    width: 100%;
    transition: transform 0.4s;
  }
  .example-card:hover .example-image img {
    transform: scale(1.035);
  }
  .example-image > span {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translate(-50%, 5px);
    background: white;
    padding: 9px 14px;
    border-radius: 20px;
    opacity: 0;
    font-size: 10px;
    white-space: nowrap;
    transition: 0.2s;
  }
  .example-card:hover .example-image > span,
  .example-card:focus-visible .example-image > span {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .example-caption {
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
    gap: 8px;
  }
  .example-caption h3 {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
  }
  .example-caption p {
    font-size: 10px;
    color: var(--muted);
  }
  .example-caption .icon {
    width: 14px;
    height: 14px;
    color: #8a9581;
  }
  .faq-section {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    gap: 70px;
  }
  .faq-list details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }
  .faq-list details:first-child {
    padding-top: 0;
  }
  .faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
  }
  .faq-list summary::-webkit-details-marker {
    display: none;
  }
  .faq-list summary .icon {
    width: 14px;
    height: 14px;
    color: #8b9680;
  }
  .faq-list details[open] summary .icon {
    transform: rotate(45deg);
  }
  .faq-list p {
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
    padding: 16px 35px 0 0;
  }
  .closing-cta {
    background: #eaf0e2;
    padding: 58px 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid #e1e7d9;
    border-bottom: 1px solid #e1e7d9;
  }
  .closing-cta .eyebrow {
    font-size: 8px;
    color: #869477;
  }
  .closing-cta h2 {
    font-size: 40px;
    letter-spacing: -1.2px;
    font-weight: 400;
    margin: 20px 0 27px;
  }
  .closing-cta > span:last-child {
    font-size: 9px;
    color: #869477;
    margin-top: 13px;
  }
  .site-footer {
    max-width: 1300px;
    padding: 34px 48px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 10px;
    color: #8a9382;
  }
  .site-footer .brand {
    color: var(--ink);
    font-size: 23px;
  }
  .footer-right {
    margin-left: auto;
    display: flex;
    gap: 26px;
  }
}
@layer components {
  .primary-button,
  .secondary-button,
  .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition:
      background 0.15s,
      transform 0.15s;
  }
  .primary-button {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    border-radius: 7px;
    padding: 12px 20px;
    font-size: 12px;
  }
  .primary-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
  }
  .secondary-button {
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 12px;
  }
  .secondary-button:hover {
    background: var(--subtle);
  }
  .text-button {
    padding: 6px 0;
    font-size: 12px;
  }
  .text-button:hover {
    color: #7a8e65;
  }
  .icon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #7e8874;
  }
  .icon-button:hover {
    background: #e9eddf;
  }
  .icon-button .icon {
    width: 17px;
    height: 17px;
  }
  .toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: #2d3c2f;
    color: white;
    padding: 13px 20px;
    border-radius: 9px;
    font-size: 12px;
    max-width: 90%;
    box-shadow: 0 8px 30px #26351c25;
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  .toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .dialog {
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 30px 120px #16221333;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
    max-height: 90vh;
  }
  .dialog::backdrop {
    background: #1f2d244a;
    backdrop-filter: blur(5px);
  }
  .dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
  }
  .auth-dialog {
    width: 460px;
    text-align: center;
  }
  .auth-content {
    padding: 43px 42px 32px;
  }
  .auth-symbol {
    margin: auto auto 22px;
    width: 54px;
    height: 54px;
    background: #e9efde;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #6b8058;
  }
  .auth-symbol .icon {
    width: 25px;
    height: 25px;
  }
  .auth-content .eyebrow {
    justify-content: center;
    font-size: 8px;
    color: #8d9781;
    margin-bottom: 14px;
  }
  .auth-content h2 {
    font-size: 32px;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 14px;
  }
  .auth-content > p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 25px;
  }
  .auth-benefits {
    text-align: left;
    margin: 24px auto;
    display: grid;
    gap: 13px;
    font-size: 12px;
    max-width: 280px;
  }
  .auth-benefits > span {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .auth-benefits .icon {
    color: #7e956b;
    width: 16px;
    height: 16px;
  }
  .google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid #dce0d4;
    background: white;
    padding: 13px;
    width: 100%;
    border-radius: 7px;
    font-weight: 500;
    font-size: 12px;
  }
  .google-mark {
    font-family: Arial;
    font-size: 20px;
    font-weight: 600;
    color: #4285f4;
  }
  .demo-divider {
    font-size: 9px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 20px 0 12px;
    color: #929b88;
  }
  .demo-divider:before,
  .demo-divider:after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
  }
  .auth-fine {
    font-size: 10px !important;
    margin: 13px 0 0 !important;
  }
  .auth-dialog .auth-footer {
    font-size: 10px;
    background: #eef2e7;
    padding: 17px;
    color: #859376;
    border-top: 1px solid var(--line);
  }
  .google-mount {
    min-height: 42px;
    display: flex;
    justify-content: center;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    color: #6d7863;
  }
  .field input,
  .field select,
  .field textarea {
    background: white;
    border: 1px solid #dfe4d8;
    border-radius: 5px;
    padding: 10px 11px;
    outline-offset: 1px;
    font-size: 12px;
    color: var(--ink);
    width: 100%;
    min-width: 0;
  }
  .field input[type="color"] {
    padding: 3px;
    width: 37px;
    height: 34px;
  }
  .field textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.6;
  }
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .inline-error {
    color: var(--danger);
    font-size: 11px;
    line-height: 1.6;
  }
  .upload-preview {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    min-height: 400px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .image-well {
    position: relative;
    background-color: #f0f2eb;
    background-image: radial-gradient(#d5dbce 0.7px, transparent 0.7px);
    background-size: 13px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 340px;
    overflow: hidden;
  }
  .image-well img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    box-shadow: 0 5px 20px #22351b14;
  }
  .conversion-result {
    grid-template-columns: 1fr 1fr;
  }
  .preview-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
  }
  .image-well .preview-label {
    position: absolute;
    top: 22px;
    left: 24px;
  }
  .result-side {
    min-width: 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  .result-heading,
  .result-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .result-heading .text-button,
  .result-actions .text-button {
    font-size: 11px;
  }
  .result-art {
    flex: 1;
    min-height: 270px;
    display: grid;
    place-items: center;
    padding: 20px 0;
  }
  .result-art img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
  }
  .result-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .result-actions .primary-button {
    min-width: 150px;
  }
  .result-message {
    justify-content: center;
    gap: 18px;
  }
  .result-message h2 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
  }
  .result-message .inline-error {
    font-size: 12px;
  }
  .processing-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  .preview-details {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .preview-details .eyebrow {
    font-size: 9px;
    color: #89967e;
    margin-bottom: 18px;
  }
  .preview-details h2 {
    font-family: var(--serif);
    font-size: 31px;
    font-weight: 400;
    letter-spacing: -0.9px;
    margin-bottom: 12px;
  }
  .preview-details > p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 23px;
  }
  .file-pill {
    font-size: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #8b9580;
    margin: 0 0 24px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .file-pill .icon {
    width: 14px;
    height: 14px;
  }
  .preview-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .preview-actions .primary-button {
    width: 100%;
  }
  .preview-actions .text-button {
    font-size: 10px;
    align-self: center;
  }
  .processing-list {
    display: grid;
    gap: 17px;
    margin: 12px 0 27px;
  }
  .processing-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #a5ad9b;
  }
  .processing-step > span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #dce3d2;
    display: grid;
    place-items: center;
    font-size: 9px;
  }
  .processing-step.active {
    color: var(--accent);
  }
  .processing-step.active > span {
    border: 2px solid #dae3d0;
    border-top-color: var(--accent);
    animation: spin 1.4s linear infinite;
    font-size: 0;
  }
  .processing-step.done {
    color: #7b9068;
  }
  .processing-step.done > span {
    background: #eaf0e0;
    border-color: transparent;
  }
  .processing-note {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.6;
  }
  .editor {
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .editor-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 17px;
    border-bottom: 1px solid var(--line);
    min-height: 61px;
  }
  .editor-title {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    min-width: 0;
  }
  .editor-title strong {
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .editor-tag {
    font-size: 8px;
    padding: 4px 6px;
    background: #eef3e7;
    color: #7b8a6a;
    border-radius: 4px;
    white-space: nowrap;
  }
  .editor-actions {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .editor-actions .primary-button {
    padding: 9px 13px;
    font-size: 10px;
  }
  .editor-body {
    display: grid;
    grid-template-columns: 155px 1fr 198px;
    min-height: 420px;
  }
  .layers-panel {
    border-right: 1px solid var(--line);
    padding: 15px 8px;
    max-height: 450px;
    overflow: auto;
  }
  .panel-label {
    font-size: 8px;
    letter-spacing: 1.1px;
    color: #8a9480;
    margin: 0 7px 13px;
    display: flex;
    justify-content: space-between;
  }
  .layer-button {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 7px;
    padding: 9px 8px;
    width: 100%;
    font-size: 10px;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #7a8470;
  }
  .layer-button .icon {
    width: 12px;
    height: 12px;
  }
  .layer-button:hover {
    background: #f2f5ed;
  }
  .layer-button.active {
    background: #eaf0e2;
    color: #3e5737;
  }
  .layer-button span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .canvas-area {
    position: relative;
    min-width: 0;
    background: #f0f2eb;
    background-image: radial-gradient(#d5dbce 0.7px, transparent 0.7px);
    background-size: 13px 13px;
    min-height: 420px;
    max-height: 650px;
    overflow: auto;
    display: flex;
    flex-direction: column;
  }
  .canvas-tools {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    z-index: 2;
  }
  .segmented {
    display: flex;
    padding: 3px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    gap: 2px;
    box-shadow: 0 2px 5px #26351c04;
  }
  .segmented button {
    padding: 5px 10px;
    font-size: 9px;
    color: #849276;
    border-radius: 3px;
  }
  .segmented button.active {
    background: #eaf0e2;
    color: #48603a;
  }
  .canvas-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px 27px 35px;
    min-height: 340px;
  }
  .svg-host {
    position: relative;
    width: 100%;
    max-width: 600px;
    flex-shrink: 0;
    box-shadow: 0 5px 20px #22351b12;
    touch-action: none;
  }
  .svg-host svg {
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow: visible;
    background: white;
    user-select: none;
  }
  .svg-host
    svg
    :is(text, path, rect, circle, ellipse, line, polyline, polygon, image) {
    cursor: move;
  }
  .svg-host.original img {
    width: 100%;
    height: auto;
  }
  .svg-host.original svg {
    display: none;
  }
  .selection-box {
    position: absolute;
    border: 1px solid #7487c1;
    pointer-events: none;
    z-index: 2;
  }
  .selection-box:before,
  .selection-box:after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border: 1px solid #7487c1;
    background: white;
    top: -3px;
    left: -3px;
  }
  .selection-box:after {
    top: auto;
    left: auto;
    bottom: -3px;
    right: -3px;
  }
  .properties-panel {
    border-left: 1px solid var(--line);
    padding: 16px;
    max-height: 450px;
    overflow: auto;
  }
  .properties-panel .field {
    font-size: 9px;
    gap: 6px;
    margin-top: 14px;
  }
  .properties-panel input,
  .properties-panel textarea,
  .properties-panel select {
    font-size: 11px;
    padding: 8px;
  }
  .property-empty {
    padding: 30px 0;
    text-align: center;
    color: #98a28e;
    font-size: 11px;
    line-height: 1.8;
  }
  .property-empty .icon {
    width: 27px;
    height: 27px;
    margin: 0 auto 14px;
    color: #b0baa7;
  }
  .property-type {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    margin-top: 12px;
  }
  .property-type .icon {
    width: 15px;
    height: 15px;
  }
  .color-field {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .color-field input[type="text"] {
    width: 100%;
  }
  .properties-panel .field-row {
    gap: 8px;
  }
  .editor-bottom {
    border-top: 1px solid var(--line);
    padding: 11px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    color: #8a9680;
    gap: 10px;
  }
  .editor-bottom > span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .editor-bottom .icon {
    width: 12px;
    height: 12px;
  }
  .zoom-controls {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .zoom-controls .icon-button {
    width: 25px;
    height: 25px;
  }
  .editor-coach {
    background: #f0f5e8;
    border-bottom: 1px solid #e3ebd9;
    padding: 10px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    color: #738760;
  }
  .editor-coach > span {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .editor-coach .icon {
    width: 13px;
    height: 13px;
  }
  .editor-coach button {
    font-size: 9px;
    text-decoration: underline;
  }
  .editor-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ac7966;
    font-size: 10px;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    border-top: 1px solid var(--line);
  }
  .editor-delete .icon {
    width: 13px;
    height: 13px;
  }
  .mini-error {
    padding: 14px 17px;
    background: #fbf1ed;
    color: var(--danger);
    font-size: 11px;
    line-height: 1.7;
    margin-top: 14px;
    border-radius: 8px;
  }
  .preview-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 2;
    font-size: 9px;
    color: #76856b;
    background: #fff;
    padding: 6px 8px;
    border-radius: 4px;
  }
  .image-well {
    position: relative;
  }
  .demo-status {
    display: block;
    color: #8e9883;
    font-size: 9px;
  }
  .account-menu {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .account-avatar {
    width: 25px;
    height: 25px;
    background: #dfe8d5;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
  }
  .error-help {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
  }
  .editor .text-button {
    font-size: 10px;
  }
  .compact-hero h1 {
    font-size: 48px;
    margin-top: 17px;
  }
  .compact-hero .hero-description {
    font-size: 12px;
  }
  .compact-hero {
    padding-top: 31px;
  }
  .compact-hero .converter {
    margin-top: 26px;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
}
@layer responsive {
  @media (min-width: 1440px) {
    .section-wrap {
      max-width: 1120px;
    }
    .hero {
      padding-left: 90px;
      padding-right: 90px;
    }
    .showcase-art {
      height: 350px;
    }
    .site-header {
      padding-left: 90px;
      padding-right: 90px;
    }
    .site-footer {
      padding-left: 90px;
      padding-right: 90px;
    }
  }
  @media (max-width: 1250px) {
    .section-wrap {
      margin: 0 48px;
    }
    .showcase-art {
      height: 320px;
    }
    .result-card {
      top: 60px;
    }
    .dropzone h2 {
      font-size: 21px;
    }
    .value-strip {
      gap: 28px;
    }
  }
  @media (max-width: 1000px) {
    .site-header {
      padding: 0 30px;
    }
    .hero {
      padding: 45px 30px 0;
    }
    .section-wrap {
      margin: 0 30px;
    }
    .upload-panel {
      padding: 22px 20px 18px;
    }
    .showcase {
      padding: 22px 18px 18px;
    }
    .dropzone h2 {
      font-size: 18px;
    }
    .showcase-art {
      height: 280px;
    }
    .original-card,
    .result-card {
      width: 64%;
    }
    .result-card {
      right: 0;
      top: 92px;
    }
    .showcase-top > span:first-child {
      font-size: 7px;
    }
    .showcase-top .mini-tag {
      font-size: 7px;
    }
    .showcase-bottom {
      font-size: 8px;
      gap: 10px;
    }
    .showcase-bottom .text-button {
      font-size: 8px;
    }
    .value-strip {
      gap: 19px;
      font-size: 9px;
    }
    .editor-body {
      grid-template-columns: 120px 1fr 175px;
    }
    .editor-title strong {
      max-width: 120px;
    }
    .editor-tag {
      display: none;
    }
    .properties-panel {
      padding: 12px;
    }
    .editor-actions {
      gap: 5px;
    }
    .section-heading h2,
    .faq-section h2 {
      font-size: 33px;
    }
  }
  @media (max-width: 760px) {
    .site-header {
      height: 75px;
      padding: 0 22px;
    }
    .site-header nav {
      gap: 18px;
      font-size: 10px;
    }
    .site-header nav a:last-child {
      display: none;
    }
    .header-actions {
      gap: 12px;
    }
    .brand {
      font-size: 25px;
    }
    .brand-icon {
      width: 23px;
      height: 23px;
    }
    .hero {
      padding: 36px 20px 0;
    }
    h1 {
      font-size: 57px;
      letter-spacing: -2.8px;
    }
    .hero-description {
      font-size: 12px;
      max-width: 390px;
      margin: auto;
    }
    .upload-layout {
      grid-template-columns: 1fr;
    }
    .upload-panel {
      padding: 24px;
    }
    .dropzone h2 {
      font-size: 24px;
    }
    .showcase {
      border-left: 0;
      border-top: 1px solid var(--line);
      padding: 22px 28px;
    }
    .showcase-art {
      height: 305px;
      width: 100%;
      max-width: 470px;
      margin: 8px auto;
    }
    .original-card,
    .result-card {
      width: 55%;
    }
    .result-card {
      top: 60px;
      right: 10px;
    }
    .showcase-top > span:first-child {
      font-size: 8px;
    }
    .showcase-top .mini-tag {
      font-size: 8px;
    }
    .showcase-bottom {
      font-size: 10px;
    }
    .showcase-bottom .text-button {
      font-size: 10px;
    }
    .value-strip {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px 23px;
      padding: 25px 12px 32px;
      text-align: left;
      font-size: 10px;
      justify-items: center;
    }
    .value-strip > span {
      width: 155px;
    }
    .section-wrap {
      margin: 0 24px;
      padding: 47px 0;
    }
    .section-heading {
      margin-bottom: 27px;
    }
    .section-heading h2,
    .faq-section h2 {
      font-size: 33px;
    }
    .section-heading > p {
      display: none;
    }
    .example-grid {
      gap: 13px;
    }
    .example-caption h3 {
      font-size: 11px;
      line-height: 1.5;
    }
    .example-caption p {
      font-size: 9px;
      line-height: 1.6;
    }
    .example-caption > .icon {
      display: none;
    }
    .example-image {
      border-radius: 6px;
    }
    .faq-section {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    .faq-section h2 br {
      display: none;
    }
    .faq-section h2 em:before {
      content: " ";
    }
    .faq-section h2 {
      font-size: 35px;
    }
    .faq-list summary {
      font-size: 12px;
    }
    .closing-cta h2 {
      font-size: 34px;
    }
    .site-footer {
      padding: 25px 22px;
      gap: 15px;
    }
    .site-footer > span:not(.footer-right) {
      display: none;
    }
    .footer-right {
      gap: 14px;
      font-size: 9px;
    }
    .upload-preview {
      grid-template-columns: 1fr;
    }
    .result-side {
      padding: 20px 22px;
    }
    .result-art {
      min-height: 230px;
    }
    .result-art img {
      max-height: 250px;
    }
    .image-well {
      min-height: 260px;
      padding: 22px;
    }
    .image-well img {
      max-height: 250px;
    }
    .preview-details {
      padding: 26px;
    }
    .preview-details h2 {
      font-size: 29px;
    }
    .preview-details > p {
      margin-bottom: 17px;
    }
    .editor-body {
      grid-template-columns: 1fr 175px;
      min-height: 350px;
    }
    .layers-panel {
      display: none;
    }
    .canvas-area {
      min-height: 350px;
    }
    .canvas-stage {
      padding: 17px 18px 26px;
      min-height: 270px;
    }
    .editor-bar {
      padding: 10px;
      flex-wrap: wrap;
    }
    .editor-title {
      flex: 1;
    }
    .editor-actions {
      gap: 3px;
    }
    .editor-actions .primary-button {
      font-size: 9px;
      padding: 8px;
    }
    .editor-actions .primary-button .icon {
      width: 13px;
      height: 13px;
    }
    .editor-bar .text-button {
      font-size: 9px;
    }
    .editor-actions .icon-button {
      width: 25px;
      height: 27px;
    }
    .editor-coach {
      font-size: 9px;
      padding: 10px;
    }
    .editor-bottom {
      font-size: 8px;
      padding: 7px 10px;
    }
    .editor-bottom > span {
      max-width: 70%;
    }
    .compact-hero h1 {
      font-size: 40px;
    }
    .compact-hero h1 br {
      display: none;
    }
    .compact-hero .hero-description {
      font-size: 11px;
    }
  }
  @media (max-width: 480px) {
    .site-header nav {
      display: none;
    }
    .header-actions .text-button {
      font-size: 11px;
    }
    .hero {
      padding: 32px 15px 0;
    }
    h1 {
      font-size: 48px;
      letter-spacing: -2.2px;
    }
    .hero > .eyebrow {
      font-size: 7px;
      letter-spacing: 1.5px;
    }
    .hero-description {
      font-size: 11px;
      line-height: 1.8;
    }
    .mobile-only {
      display: block;
    }
    .converter {
      margin-top: 29px;
    }
    .upload-panel {
      padding: 21px 19px 17px;
    }
    .panel-kicker {
      font-size: 7px;
    }
    .dropzone h2 {
      font-size: 22px;
    }
    .dropzone {
      padding: 25px 0 20px;
    }
    .showcase {
      padding: 18px 20px;
    }
    .showcase-art {
      height: 245px;
    }
    .original-card,
    .result-card {
      width: 60%;
    }
    .result-card {
      top: 70px;
      right: 0;
    }
    .original-card {
      top: 20px;
    }
    .floating-colors {
      bottom: 0;
      padding: 8px;
      font-size: 8px;
      gap: 5px;
    }
    .floating-colors b {
      width: 12px;
      height: 12px;
    }
    .showcase-bottom {
      padding-top: 12px;
      font-size: 8px;
    }
    .showcase-bottom .text-button {
      font-size: 8px;
    }
    .showcase-top > span:first-child {
      font-size: 6px;
    }
    .showcase-top .mini-tag {
      font-size: 6px;
    }
    .art-card-label {
      font-size: 5px;
      height: 21px;
      gap: 3px;
    }
    .art-card-label > span:last-child {
      font-size: 5px;
    }
    .selection-demo > span {
      font-size: 6px;
      top: -19px;
    }
    .value-strip {
      gap: 15px 8px;
      padding: 25px 0 30px;
      font-size: 9px;
    }
    .value-strip > span {
      width: 145px;
    }
    .section-heading h2 {
      font-size: 32px;
    }
    .example-grid {
      grid-template-columns: 1fr;
      gap: 21px;
    }
    .example-caption {
      padding: 13px 0 0;
    }
    .example-caption h3 {
      font-size: 13px;
    }
    .example-caption p {
      font-size: 10px;
    }
    .example-caption > .icon {
      display: block;
    }
    .example-image img {
      max-height: 270px;
      object-fit: cover;
    }
    .example-image > span {
      display: none;
    }
    .section-wrap {
      margin: 0 21px;
    }
    .auth-dialog {
      width: calc(100% - 26px);
    }
    .auth-content {
      padding: 40px 26px 25px;
    }
    .field-row {
      grid-template-columns: 1fr;
    }
    .editor-body {
      grid-template-columns: 1fr;
    }
    .properties-panel {
      border-left: 0;
      border-top: 1px solid var(--line);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px 13px;
      max-height: none;
      padding: 15px;
    }
    .properties-panel .panel-label,
    .properties-panel .property-type,
    .properties-panel .property-empty {
      grid-column: 1/-1;
    }
    .properties-panel .panel-label {
      margin: 0;
    }
    .properties-panel .field {
      margin-top: 0;
    }
    .properties-panel .field-row {
      grid-template-columns: 1fr 1fr;
    }
    .property-empty {
      padding: 7px;
    }
    .property-empty .icon {
      display: none;
    }
    .properties-panel .editor-delete {
      padding: 5px;
      margin-top: 0;
      border-top: 0;
    }
    .properties-panel .text-field {
      grid-column: 1/-1;
    }
    .properties-panel .field textarea {
      min-height: 42px;
    }
    .editor-coach > span {
      line-height: 1.5;
    }
    .editor-coach > span .icon {
      display: none;
    }
    .editor-tag {
      display: none;
    }
    .editor-title strong {
      max-width: 100px;
    }
    .editor-title {
      font-size: 10px;
    }
    .editor-actions .icon-button {
      width: 24px;
    }
    .canvas-area {
      max-height: 460px;
      min-height: 310px;
    }
    .canvas-stage {
      min-height: 240px;
      padding: 10px 25px 22px;
    }
    .canvas-tools {
      padding: 8px;
    }
    .compact-hero h1 {
      font-size: 31px;
      letter-spacing: -1px;
    }
    .compact-hero .eyebrow {
      display: none;
    }
    .compact-hero {
      padding-top: 15px;
    }
    .compact-hero .hero-description {
      display: none;
    }
    .editor-bottom > span {
      max-width: 64%;
      line-height: 1.5;
    }
    .closing-cta h2 {
      font-size: 31px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
}

@layer components {
  .mobile-layer-picker {
    display: none;
  }
  input[type="range"] {
    accent-color: var(--accent);
  }
}
@layer responsive {
  @media (max-width: 760px) {
    .canvas-tools {
      flex-wrap: wrap;
    }
    .mobile-layer-picker {
      display: block;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: #fff;
      color: var(--muted);
      font-size: 10px;
      max-width: 180px;
      padding: 7px;
      width: 100%;
    }
  }
}

@layer responsive {
  @media (max-width: 760px) {
    .compact-hero h1 em:before {
      content: " ";
    }
  }
}
html[data-mode="preview"] .header-actions {
  display: none;
}
