/* Pearl studio. Editor geometry stays in styles.css. */
:root {
  --paper: #f8f5fb;
  --card: #ffffff;
  --ink: #352a40;
  --muted: #766980;
  --line: #e8dfed;
  --rose: #a33c7e;
  --rose-soft: #f7eaf3;
  --green: #456b63;
  --error: #a12e50;
  --radius: 22px;
  --display: "Bahnschrift", "Aptos Display", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  line-height: 1.65;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 85% 8%, #eddff180, transparent 36%),
    radial-gradient(ellipse at 8% 23%, #fde8ee80, transparent 28%),
    var(--paper);
}
button, input, select, textarea, a { transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
::selection { background: #eed1e5; color: #45283d; }
button:disabled { opacity: 1; color: #8e8094; background: #ede6f0; border-color: #e3dbe8; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #b45b98; outline-offset: 4px;
}
.site-header {
  height: 84px;
  padding-inline: max(28px, calc((100vw - 1200px) / 2));
  background: #fffcffbc;
  backdrop-filter: blur(18px);
  border-color: #e7ddec;
  gap: 28px;
}
.wordmark { font-family: var(--display); font-size: 22px; letter-spacing: 2px; font-weight: 600; gap: 12px; flex-shrink: 0; }
.brand-caption { font: 10px/1.7 "Segoe UI", "Microsoft YaHei UI", sans-serif; letter-spacing: 3px; color: #7b6a82; }
.brand-icon { width: 35px; height: 40px; gap: 3px; transform: rotate(-17deg); }
.brand-icon i { background: linear-gradient(130deg, #e9c8df, #ab578f 65%, #8d467b); box-shadow: inset 1px 1px 1px #fff9; width: 9px; border-radius: 8px 8px 5px 5px; }
.brand-icon i:nth-child(2) { background: linear-gradient(110deg, #baa7cf, #f1e8f9 40%, #8e749f 80%, #b99bc9); }
.header-nav { display: flex; gap: 28px; margin-left: auto; align-items: center; font-size: 12px; color: var(--muted); }
.header-nav a { padding: 9px 0; position: relative; }
.header-nav a:first-child { color: var(--ink); }
.header-nav a:first-child::after { content: ""; position: absolute; bottom: 1px; height: 2px; width: 16px; left: 0; background: var(--rose); border-radius: 2px; }
.header-nav a:hover { color: var(--rose); }
.header-right { gap: 15px; font-size: 11px; letter-spacing: 0; }
.local-tag { gap: 7px; white-space: nowrap; padding-left: 22px; border-left: 1px solid var(--line); }
.local-tag i { width: 5px; height: 5px; background: #9274a8; box-shadow: 0 0 0 4px #ece4f3; }
.header-tagline { border: 0; padding: 0; font-size: 10px; color: var(--muted); }
main { max-width: 1240px; padding: 28px 20px 28px; }
.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; min-height: 326px; align-items: center; margin-bottom: 28px; }
.intro-copy { padding: 12px 0 20px; position: relative; }
.eyebrow { font: 500 11px/1.5 var(--display); letter-spacing: 2.2px; color: #8e628c; margin-bottom: 17px; }
h1 { font: 600 clamp(32px, 3.5vw, 48px)/1.38 var(--display); letter-spacing: -.8px; text-wrap: balance; }
h1 span { color: #a24e88; }
.lead { font-size: 14px; line-height: 1.9; letter-spacing: .5px; color: var(--muted); margin-top: 18px; max-width: 40em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 25px; }
.hero-start { min-height: 44px; padding: 11px 19px; border-radius: 10px; color: #fff; background: #46304c; box-shadow: 0 5px 15px #6c416b16; font-size: 12px; }
.hero-start:hover { background: #6b3d67; transform: translateY(-2px); }
.hero-input-note { font-size: 11px; color: #7e6c86; }
.hero-visual { height: 300px; position: relative; min-width: 0; pointer-events: none; overflow: clip; }
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(#b99ec51c 1px, transparent 1px), linear-gradient(90deg, #b99ec51c 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse, #000 23%, transparent 72%);
}
.hero-orbit { position: relative; width: 420px; max-width: 100%; height: 280px; margin-inline: auto; }
.hero-orbit::before { content: ""; position: absolute; width: 210px; height: 130px; left: 100px; top: 110px; border-radius: 50%; background: #d4b3dd66; filter: blur(37px); }
.hero-orbit-ring { position: absolute; width: 370px; height: 150px; border: 1px solid #b89bc653; border-radius: 50%; left: 18px; top: 91px; transform: rotate(-20deg); box-shadow: 0 1px 0 #fff; }
.orbit-ring-inner { width: 292px; height: 202px; left: 65px; top: 60px; transform: rotate(27deg); border-color: #c6afd53d; }
.hero-nail {
  position: absolute; display: block;
  width: 78px; height: 161px; border-radius: 47% 47% 33% 33% / 38% 38% 18% 18%;
  border: 1px solid #ffffffb3;
  box-shadow: inset -8px -9px 18px #8a5e8e33, inset 3px 3px 8px #fff9, 10px 22px 26px #9c73aa26;
  transform: rotate(var(--tilt));
  animation: nail-hover 8s ease-in-out infinite;
}
.hero-nail::before { content: ""; position: absolute; top: 15px; left: 13px; width: 13px; height: 64%; border-radius: 80%; background: linear-gradient(#fff9, #ffffff0d); filter: blur(2px); transform: rotate(5deg); }
.nail-pearl { --tilt: -24deg; left: 65px; top: 67px; background: radial-gradient(ellipse at 34% 19%, #fff, transparent 48%), linear-gradient(105deg, #d4b9d9, #f8e8ec 41%, #eacbdb 70%, #c39cc5); animation-delay: -2s; }
.nail-pearl::after { content: ""; position: absolute; inset: 12px 10px auto; height: 35px; border-top: 2px solid #fff; border-radius: 50%; transform: rotate(7deg); }
.nail-chrome { --tilt: 14deg; width: 91px; height: 194px; left: 170px; top: 21px; background: linear-gradient(112deg, #9b7cac 0%, #e3d6ef 15%, #fffaff 25%, #af93bd 42%, #f1e6f9 54%, #d7bfdc 68%, #886496 83%, #d9c4e0 96%); animation-delay: -.8s; }
.nail-chrome::after { content: ""; position: absolute; inset: 16px 11px; border: 1px solid #ffffff80; border-radius: 48% 48% 34% 34%; box-shadow: inset -1px 0 1px #85649340; }
.nail-rose { --tilt: 32deg; left: 279px; top: 100px; width: 68px; height: 139px; background: radial-gradient(ellipse at 40% 20%, #ffe3ee, transparent 64%), linear-gradient(110deg, #c76f9c, #f3b8d4 38%, #d582b2 75%, #b46599); animation-delay: -4s; }
.nail-rose::after { content: ""; position: absolute; width: 25px; height: 28px; left: 25px; top: 36px; background: #fce2ef9c; clip-path: polygon(50% 0, 62% 37%, 100% 50%, 63% 61%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.hero-sparkle { position: absolute; width: 24px; height: 24px; color: #b07da6; }
.sparkle-one { left: 111px; top: 20px; }
.sparkle-two { right: 28px; top: 70px; width: 15px; height: 15px; color: #9f91b6; }
.hero-label { position: absolute; font: 10px/1.4 var(--mono); color: #8b7398; letter-spacing: .2px; white-space: nowrap; }
.label-pearl { left: 4px; top: 43px; }
.label-pearl::after { content: ""; display: block; width: 42px; margin: 9px 0 0 15px; border-top: 1px solid #bba0c4; transform: rotate(24deg); }
.label-chrome { right: 14px; bottom: 5px; }
.label-chrome::before { content: "+"; margin-right: 7px; }
.hero-caption { position: absolute; bottom: 2px; left: 14px; color: #87758f; letter-spacing: 2px; font-size: 10px; }
@keyframes nail-hover { 0%, 100% { transform: translateY(0) rotate(var(--tilt)); } 50% { transform: translateY(-7px) rotate(var(--tilt)); } }
.studio-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 17px; border-top: 1px solid #dfd1e7; scroll-margin-top: 24px; }
.studio-title-wrap { display: flex; align-items: center; gap: 13px; }
.studio-heading h2 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.studio-heading .step-number { font: 11px var(--mono); color: #91709a; border: 1px solid #ddcbe5; background: #f9f2fc; padding: 7px 8px; border-radius: 7px; }
.studio-tag { color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.capability-note { border: 0; border-left: 2px solid #cba6ca; background: #f0e9f280; padding: 12px 15px; border-radius: 0 10px 10px 0; color: #73517d; margin-bottom: 12px; }
.capability-note p { gap: 15px; font-size: 12px; }
.capability-note strong { font-size: 12px; font-weight: 600; }
.transport-note { margin: 0 0 18px; font-size: 11px; color: var(--muted); }
.demo-row { margin: 0 0 17px; }
.demo-row>div>span { font-size: 11px; }
.demo-row>.text-button { font-size: 10px; }
.demo-row button { background: #fffafee0; border-color: #d9c7df; color: #824477; padding: 9px 12px; font-size: 11px; }
.demo-row button:hover { background: #f5e8f2; border-color: #bb8bb4; }
.workspace-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
.editor-card {
  border: 1px solid #e6d9ec;
  background: #ffffffd9;
  box-shadow: 0 6px 22px #79518f06, inset 0 1px 0 #fff;
  border-radius: 20px;
  transition: border-color .25s, box-shadow .25s;
}
.editor-card:focus-within { border-color: #c293c0; box-shadow: 0 7px 24px #864d9012; }
.card-heading { padding: 18px 22px; background: #fffcfe99; border-bottom-color: #efe6f2; }
.card-heading>div { gap: 11px; }
.step-number { font: 500 11px/1 var(--mono); color: #845c8d; font-style: normal; }
.card-heading h2 { font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.card-meta { background: #f2edf5; color: #705b7e; border-radius: 5px; font-size: 10px; }
.upload-zone { min-height: 262px; margin: 16px; border: 1px dashed #d7bedf; border-radius: 13px; padding: 27px 16px; gap: 8px; background: radial-gradient(ellipse at 50% 30%, #f9eff8, #fcfafd 70%); }
.reference-card .upload-zone { background: radial-gradient(ellipse at 50% 30%, #f2edf9, #fcfafd 70%); border-color: #cfc1df; }
.upload-zone:hover, .upload-zone.dragover { background: #f6eaf5; border-color: #ab619c; box-shadow: inset 0 0 0 1px #ab619c15; }
.reference-card .upload-zone:hover, .reference-card .upload-zone.dragover { background: #f1eaf8; border-color: #9c80bb; }
.upload-zone strong { margin-top: 12px; font-size: 15px; font-weight: 600; color: #5a3c61; }
.upload-zone>span:not(.upload-art) { font-size: 12px; color: var(--muted); }
.upload-zone .format-note { font: 10px var(--mono); color: #796382!important; margin-top: 10px; }
.upload-symbol { width: 68px; height: 68px; color: #ac76a1; overflow: visible; filter: drop-shadow(0 5px 8px #b77caa16); transition: transform .25s; }
.reference-symbol { color: #9a82ba; }
.upload-zone:hover .upload-symbol { transform: translateY(-3px); }
.card-footer { border-color: #eee5f2; font-size: 11px; padding: 12px 20px; color: #7d6b85; }
.tiny-icon { color: #af86ad; font-size: 14px; }
.text-button { color: #935086; font-size: 12px; }
.text-button:hover { color: #7d326f; }
.image-toolbar { padding: 14px 1px; font-size: 11px; }
.image-viewport { border-radius: 12px; border-color: #e6dcec; background: repeating-conic-gradient(#f5f0f8 0% 25%, #eee8f2 0% 50%) 50% / 18px 18px; }
.button { border-radius: 10px; min-height: 44px; font-size: 12px; font-weight: 600; }
.button-small { border-radius: 7px; min-height: 36px; font-size: 11px; }
.button-outline { border-color: #daccdf; background: #ffffff80; }
.button-outline:hover { border-color: #ba9bc5; background: #f6edf7; }
.button-dark { background: #49314f; color: #fff; }
.button-dark:hover { background: #68416a; }
.button-primary { color: #fff; background: #a44185; box-shadow: 0 6px 16px #a4418520, inset 0 1px 0 #ffffff30; min-height: 48px; padding-inline: 24px; }
.button-primary:hover:not(:disabled) { background: #8e3473; box-shadow: 0 9px 22px #a4418530; transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary:disabled { color: #8c7397; background: #e9dfea; box-shadow: none; border-color: #e0d3e5; }
.button-arrow { font-weight: 400; margin-left: 12px; }
.generate-panel { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: 0 28px; padding: 25px; margin-top: 22px; border-color: #e2d4e8; background: #ffffffdc; box-shadow: 0 7px 30px #6a437506; }
.generate-heading { grid-column: 1/-1; align-items: flex-start; }
.generate-heading h2 { font-size: 19px; font-weight: 600; }
.generate-heading .step-number { margin-top: 9px; }
.generate-heading p { font-size: 12px; margin-top: 5px; }
.engine-panel { grid-column: 1; grid-row: 2; margin: 22px 0 20px; padding: 18px; background: #f6f1f8; border: 1px solid #e8deee; border-radius: 12px; align-self: start; min-width: 0; }
.engine-heading { gap: 10px; }
.engine-heading label { font-weight: 600; }
.engine-heading .text-button { font-size: 10px; }
.engine-panel select { max-width: 100%; border-color: #dbcde3; border-radius: 8px; font-size: 12px; padding: 10px; }
.engine-panel p { font-size: 11px; line-height: 1.75; }
#engine-status { color: #546e67; }
#engine-status.engine-unavailable { color: var(--error); }
.semantic-settings { grid-column: 2; grid-row: 2; margin: 22px 0 20px; min-width: 0; }
.semantic-settings>label[for="style-brief"] { font-weight: 600; }
.semantic-settings textarea { border-color: #decfe6; border-radius: 9px; min-height: 80px; background: #fefbff; }
.semantic-settings textarea::placeholder { color: #8a7993; }
.semantic-settings textarea:hover { border-color: #c5a7cf; }
.semantic-settings textarea:focus { box-shadow: 0 0 0 4px #f2e6f5; }
.resolution-control { max-width: none; margin-bottom: 17px; display: grid; grid-template-columns: 1fr 146px; gap: 0 12px; align-items: center; }
.resolution-control label { font-weight: 600; margin: 0; }
.resolution-control select { border-color: #decee5; border-radius: 8px; background: #fdf9ff; padding: 8px 10px; }
.resolution-control p { grid-column: 1/-1; margin-top: 4px; font-size: 10px; }
.semantic-settings>p { font-size: 11px; }
.consent-control { border: 1px solid #eee2ef; background: #f8f2f8; border-radius: 9px; padding: 12px; font-size: 11px; color: #705c78; line-height: 1.75; }
.consent-control input { margin-top: 2px; }
.advanced-options, .generate-bottom, .processing { grid-column: 1/-1; }
.advanced-options { margin-top: 0; padding: 14px 0 16px; border-top-color: #eee4f1; }
.advanced-options>summary { font-size: 11px; color: #806b8b; }
.advanced-options[open]>summary { color: #8e477e; }
.generate-bottom { padding-top: 17px; }
.generate-bottom p { font-size: 12px; }
.generate-panel:has(.semantic-settings[hidden]) .engine-panel { grid-column: 1/-1; }
.processing { padding: 15px; border: 1px solid #e7d4e9; border-radius: 10px; background: #f8f0fa; }
.processing p span { font-size: 11px; }
.spinner { border-color: #e7d3e8; border-top-color: var(--rose); }
.notice { border-color: #d6e5df; background: #f2f8f5; color: #47695b; border-radius: 10px; }
.notice.error { color: var(--error); background: #fcedf2; border-color: #ebc4d1; }
.result-section { margin-top: 40px; }
.result-heading h2 { font-size: 25px; font-weight: 600; color: #4c3154; }
.result-heading .eyebrow { color: #9a719e; font-size: 10px; }
.result-grid { border-color: #dfd0e8; box-shadow: 0 8px 28px #77478409; }
.compare-area { padding: 20px; background: #f0eaf5; }
.comparison { border-radius: 12px; background: #e8deed; }
.compare-label { background: #3e304bd9; color: #fff; border-radius: 6px; padding: 8px 11px; }
.label-result { background: #9a538bd9; }
.compare-control { font-size: 11px; margin-top: 17px; }
.compare-control input { min-height: 24px; }
.result-info { padding: 28px 25px; }
.result-info h3 { color: #59365e; font-size: 24px; letter-spacing: 0; font-weight: 500; }
.result-info dt { font-size: 11px; }
.result-info dd { color: #775283; font-family: var(--mono); font-size: 11px; }
.result-info p.result-warnings { color: #7c5a79; background: #f5eaf4; border-radius: 8px; }
.result-success { font-size: 11px; }
.fine-print { padding: 27px 0; gap: 48px; border-color: #e3d7eb; scroll-margin-top: 35px; }
.fine-print strong { font-size: 12px; font-weight: 600; color: #5d4266; }
.fine-print p { font-size: 11px; line-height: 1.85; }
.end-row { font-size: 10px; border-color: #e3d7eb; }
.footer-separator { color: #baa3c4; }
.end-row>.text-button { font-size: 11px; }
/* Advanced editors retain their geometry and semantic green extension guides. */
.editor-instruction, .presson-settings { background: #f6f0f9; border-color: #e1d2e8; }
.presson-source, .presson-controls select, .presson-mapping select { background: #fefaff; border-color: #e2d5ea; }
.presson-pairing { border-color: #e1d3e8; }
.segmented { background: #f1e9f5; border-color: #dfd0e7; }
.rotation-field select { background: #fcf9ff; border-color: #dfd0e7; }
.image-overlay circle, .image-overlay .point-handle { fill: #a14e8f; stroke: #fff4fd; }
.image-overlay polygon { fill: #a45a982e; stroke: #fceafa; }
.image-overlay polyline { fill: #a45a981c; stroke: #fceafa; }
.image-overlay text { stroke: #6d396a; }
.diagnostics-section { background: #fffaff; border-color: #e3d3e9; }
.diagnostics-grid img, .diagnostic-nail-grid img { background: #f1eaf5; }
.diagnostic-unavailable { background: #f5eff8; }
@media (min-width: 1440px) { .intro { min-height: 346px; } h1 { font-size: 49px; } }
@media (max-width: 1050px) {
  .header-tagline { display: none; }
  .site-header { padding-inline: 24px; }
  .hero-orbit { position: absolute; left: 50%; margin-left: -210px; width: 420px; max-width: none; transform: scale(.76); transform-origin: center; }
  .hero-visual { margin-left: -20px; }
  .intro { gap: 12px; }
  .generate-panel { grid-template-columns: minmax(225px, .85fr) minmax(0, 1.15fr); gap: 0 20px; }
}
@media (max-width: 760px) {
  .site-header { height: 75px; gap: 15px; padding-inline: 20px; }
  .header-nav { gap: 18px; font-size: 11px; }
  .header-right { display: none; }
  main { padding-top: 22px; }
  .intro { grid-template-columns: 1fr .75fr; min-height: 275px; margin-bottom: 15px; }
  h1 { font-size: 32px; }
  .hero-visual { height: 250px; margin-left: -30px; }
  .hero-orbit { transform: scale(.64); transform-origin: center; width: 420px; max-width: none; }
  .hero-caption { display: none; }
  .hero-actions { gap: 12px; margin-top: 20px; }
  .hero-input-note { font-size: 10px; }
  .studio-heading h2 { font-size: 18px; }
  .studio-tag { font-size: 10px; }
  .card-heading { padding: 17px 16px; }
  .card-heading>div { gap: 8px; }
  .card-heading h2 { font-size: 13px; }
  .workspace-grid { gap: 16px; }
  .upload-zone { margin: 12px; min-height: 250px; padding-inline: 10px; }
  .card-footer { font-size: 10px; padding-inline: 15px; }
  .generate-panel { grid-template-columns: 1fr; padding: 20px; }
  .engine-panel, .semantic-settings { grid-column: 1; grid-row: auto; }
  .engine-panel { margin: 20px 0 0; }
  .semantic-settings { margin: 20px 0; }
}
@media (max-width: 540px) {
  html { scroll-padding-top: 20px; }
  .site-header { height: 73px; padding-inline: 19px; }
  .wordmark { font-size: 19px; gap: 9px; }
  .brand-caption { font-size: 8px; letter-spacing: 2px; }
  .brand-icon { width: 29px; transform: scale(.86) rotate(-17deg); transform-origin: left center; margin-right: -3px; }
  .header-nav { gap: 16px; font-size: 11px; }
  .header-nav a:last-child { display: none; }
  main { padding: 25px 16px 24px; }
  .intro { display: block; position: relative; padding-bottom: 5px; min-height: auto; margin-bottom: 22px; }
  .intro-copy { padding: 0; }
  .intro .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 12px; max-width: 80%; }
  h1 { font-size: clamp(28px, 7.8vw, 36px); line-height: 1.4; letter-spacing: -.7px; }
  .lead { font-size: 12px; margin-top: 16px; max-width: 75%; }
  .hero-actions { margin-top: 18px; gap: 13px; }
  .hero-start { min-height: 42px; padding: 10px 14px; font-size: 11px; }
  .hero-input-note { font-size: 10px; }
  .hero-visual { position: absolute; top: 57px; right: -2px; width: 108px; height: 135px; margin: 0; opacity: .9; overflow: hidden; }
  .hero-visual::before { display: none; }
  .hero-orbit { left: 0; transform: scale(.35); transform-origin: top left; width: 420px; max-width: none; margin-left: -18px; }
  .hero-label, .hero-caption { display: none; }
  .intro-copy { z-index: 1; }
  .studio-heading { align-items: flex-start; gap: 10px; padding-top: 21px; flex-wrap: wrap; }
  .studio-heading h2 { font-size: 17px; }
  .studio-tag { margin-left: 43px; margin-top: -5px; }
  .capability-note { padding: 10px 12px; margin-bottom: 12px; }
  .capability-note p { display: block; font-size: 11px; line-height: 1.8; }
  .capability-note strong { display: block; margin-bottom: 3px; font-size: 12px; }
  .transport-note { font-size: 10px; margin-bottom: 14px; line-height: 1.85; }
  .demo-row { gap: 9px; margin-bottom: 16px; }
  .demo-row>div { gap: 10px; flex-wrap: wrap; }
  .demo-row>div>span { font-size: 10px; }
  .demo-row button { min-height: 37px; font-size: 11px; }
  .demo-row>.text-button { font-size: 10px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 16px; }
  .editor-card { border-radius: 17px; }
  .card-heading { padding: 16px 18px; }
  .card-heading h2 { font-size: 14px; }
  .card-meta { font-size: 10px; }
  .upload-zone { margin: 12px; min-height: 231px; padding-block: 24px; }
  .upload-symbol { width: 55px; height: 55px; }
  .upload-zone strong { margin-top: 10px; font-size: 14px; }
  .upload-zone>span:not(.upload-art) { font-size: 11px; }
  .upload-zone .format-note { margin-top: 8px; font-size: 9px!important; }
  .card-footer { padding: 11px 16px; font-size: 10px; }
  .generate-panel { padding: 20px 16px 17px; border-radius: 18px; margin-top: 18px; }
  .generate-heading { gap: 10px; }
  .generate-heading h2 { font-size: 17px; }
  .generate-heading p { font-size: 11px; }
  .engine-panel { padding: 14px; }
  .engine-panel select { min-height: 44px; font-size: 12px; }
  .resolution-control { grid-template-columns: 1fr 124px; }
  .semantic-settings textarea { min-height: 94px; font-size: 13px; }
  .consent-control { font-size: 11px; padding: 11px; }
  .generate-bottom { flex-direction: column; align-items: stretch; gap: 13px; }
  .generate-bottom p { font-size: 11px; }
  .generate-bottom .button-primary { width: 100%; min-height: 49px; font-size: 13px; justify-content: space-between; }
  .generate-bottom .button-primary .button-arrow { margin-left: auto; }
  .result-heading h2 { font-size: 20px; }
  .result-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .result-actions { width: 100%; justify-content: flex-start; }
  .result-actions .button { flex: 1; font-size: 11px; }
  .result-grid { grid-template-columns: 1fr; border-radius: 18px; }
  .compare-area { padding: 13px; }
  .compare-label { top: 9px; font-size: 10px; padding: 6px 8px; }
  .result-info { padding: 22px 20px; }
  .result-info h3 { font-size: 23px; margin: 15px 0; }
  .fine-print { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; padding: 24px 2px; }
  .fine-print p { font-size: 11px; }
  .end-row { gap: 15px; align-items: flex-start; font-size: 9px; }
  .end-row>span { max-width: 72%; }
  .end-row>.text-button { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}

.beta-account { display:grid; grid-template-columns:.85fr 1.35fr; gap:36px; padding:30px 32px; margin:0 0 38px; background:linear-gradient(112deg,#f4e9f4,#fffafddb 68%); border:1px solid #e8d8e7; border-radius:var(--radius); align-items:center; }
.beta-account-intro .eyebrow { margin:0 0 10px; font-size:10px; }
.beta-account h2 { font:600 23px/1.5 var(--display); letter-spacing:-.4px; margin:0 0 10px; }
.beta-account-intro>p:last-child { font-size:12px; color:var(--muted); max-width:28em; }
.beta-account-body { min-width:0; }
.beta-status { font-size:12px; line-height:1.8; margin:0 0 13px; color:#5c536b; overflow-wrap:anywhere; }
.beta-status.error { color:var(--error); }
.beta-auth-tabs { display:flex; gap:20px; margin-bottom:17px; }
.beta-auth-tabs button { padding:5px 0 7px; font-size:12px; background:none; color:var(--muted); border:0; border-bottom:2px solid transparent; cursor:pointer; }
.beta-auth-tabs button[aria-pressed="true"] { color:var(--rose); border-bottom-color:var(--rose); font-weight:600; }
.beta-auth-fields { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.beta-auth-fields label { display:flex; flex-direction:column; font-size:11px; color:#66516f; gap:6px; min-width:0; }
.beta-auth-fields input { width:100%; min-width:0; border:1px solid #e3d5e7; border-radius:9px; background:#fffcff; padding:10px 11px; color:var(--ink); font:inherit; font-size:12px; }
.beta-auth-fields input::placeholder { color:#9a8b9e; }
.beta-auth-bottom { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:17px; }
.beta-auth-bottom p { margin:0; font-size:10px; color:var(--muted); }
.beta-auth-bottom button { white-space:nowrap; }
.beta-account-summary { display:flex; gap:25px; align-items:center; justify-content:space-between; }
.beta-account-summary>div:first-child { min-width:0; }
.beta-small-label { display:block; font-size:11px; color:var(--muted); margin-bottom:6px; }
#beta-display-name { display:block; font-size:19px; font-weight:600; overflow-wrap:anywhere; }
.beta-credit { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
.beta-credit>span:first-child { font:500 34px/1.25 var(--display); color:var(--rose); font-variant-numeric:tabular-nums; }
.beta-credit>span:last-child { font-size:10px; color:var(--muted); }
.beta-history { margin-top:48px; scroll-margin-top:105px; }
.beta-history-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.beta-history-heading .eyebrow { margin:0 0 7px; font-size:10px; }
.beta-history-heading h2 { font:600 26px/1.4 var(--display); margin:0 0 8px; }
.beta-history-heading p:last-child { font-size:11px; color:var(--muted); }
.beta-history-heading button { flex-shrink:0; }
.beta-history-empty { display:flex; gap:24px; align-items:center; padding:30px; min-height:136px; border:1px dashed #d8c5dd; border-radius:18px; background:#fdfaff70; }
.beta-empty-art { font:normal 44px/1 var(--display); color:#b389b6; }
.beta-history-empty h3 { font-size:14px; font-weight:500; margin:0 0 7px; }
.beta-history-empty p { font-size:11px; color:var(--muted); }
.beta-history-empty>a { margin-left:auto; white-space:nowrap; }
.beta-job-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.beta-job { min-width:0; display:grid; grid-template-columns:112px minmax(0,1fr); background:#fffcff; border:1px solid #e5dbe9; border-radius:16px; overflow:hidden; }
.beta-job-picture { min-height:152px; background:linear-gradient(145deg,#f0e2f2,#f9eef4); display:grid; place-items:center; }
.beta-job-picture img { width:100%; height:100%; object-fit:cover; max-height:190px; }
.beta-job-mark { font-size:36px; color:#b096b8; }
.beta-job[data-status="running"] .beta-job-mark { animation:beta-breathe 2.4s ease-in-out infinite; }
@keyframes beta-breathe { 50% { opacity:.35; transform:scale(.88); } }
.beta-job-content { padding:17px 18px; min-width:0; }
.beta-job-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.beta-job-heading strong { font-size:13px; font-weight:600; white-space:nowrap; }
.beta-job-heading time { font-size:10px; color:#8c7a94; text-align:right; font-variant-numeric:tabular-nums; }
.beta-job-content>p { font-size:11px; line-height:1.8; margin:9px 0; color:var(--muted); overflow-wrap:anywhere; }
.beta-expiry { font-size:10px; color:#8c7a94; }
.beta-job-actions { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:10px; }
.beta-job-actions .text-button { font-size:11px; min-height:28px; padding-block:4px; }
.beta-delete-confirm { color:var(--error); }
.beta-preview { margin:24px 0 0; padding:20px; border:1px solid var(--line); border-radius:18px; background:#fffcff; }
.beta-preview-heading,.beta-preview-bottom { display:flex; justify-content:space-between; gap:15px; align-items:center; }
.beta-preview-heading { margin-bottom:18px; font-size:13px; }
.beta-preview>img { display:block; width:auto; max-width:100%; max-height:680px; object-fit:contain; margin:auto; border-radius:10px; }
.beta-preview-bottom { margin-top:18px; }
.beta-preview-bottom p { font-size:11px; color:var(--muted); }
.beta-preview-bottom a { flex-shrink:0; }
@media (max-width:900px) {
  .beta-account { grid-template-columns:1fr; gap:20px; padding:25px; }
  .beta-account-intro>p:last-child { max-width:none; }
  .beta-job-list { grid-template-columns:1fr; }
  .beta-job { grid-template-columns:130px minmax(0,1fr); }
}
@media (max-width:540px) {
  .beta-account { padding:21px 18px; border-radius:18px; margin-bottom:30px; }
  .beta-account h2 { font-size:21px; }
  .beta-auth-fields { grid-template-columns:1fr; gap:12px; }
  .beta-auth-fields input { min-height:44px; font-size:16px; }
  .beta-auth-bottom { align-items:flex-start; flex-direction:column; gap:13px; }
  .beta-auth-bottom button { align-self:stretch; min-height:44px; }
  .beta-account-summary { gap:14px; }
  #beta-display-name { font-size:16px; }
  .beta-credit>span:first-child { font-size:29px; }
  .beta-history-heading { gap:10px; align-items:flex-start; }
  .beta-history-heading h2 { font-size:23px; }
  .beta-history-heading p:last-child { font-size:10px; }
  .beta-history-heading button { font-size:10px; padding:8px 10px; }
  .beta-history-empty { flex-wrap:wrap; padding:22px 18px; gap:14px; }
  .beta-history-empty>a { margin-left:45px; }
  .beta-history-empty h3 { font-size:12px; }
  .beta-history-empty p { font-size:10px; }
  .beta-job { grid-template-columns:83px minmax(0,1fr); }
  .beta-job-content { padding:14px 13px; }
  .beta-job-heading { align-items:flex-start; flex-direction:column; gap:4px; }
  .beta-job-actions { gap:6px 12px; }
  .beta-preview { padding:15px; }
  .beta-preview-heading { font-size:11px; }
  .beta-preview-bottom { align-items:flex-start; flex-direction:column; }
  .beta-preview-bottom a { align-self:stretch; min-height:42px; }
}
