:root {
    color-scheme: light;
    --ink: #23352e;
    --muted: #68756d;
    --accent: #2d624b;
    --line: #e0e5dd;
    --paper: #f7f8f4;
    --rz-primary: #2d624b;
    --rz-primary-light: #eaf2df;
    --rz-on-primary: #ffffff;
    --rz-text-font-family: "Segoe UI", system-ui, sans-serif;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #88ad58; outline-offset: 3px; }
input, select, textarea { width: 100%; border: 1px solid #dbe1d6; border-radius: 7px; padding: 11px 12px; color: var(--ink); background: white; transition: border-color .15s; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%2323352e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #818b82; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; margin: 3px 0 0; padding: 0; }
textarea { resize: vertical; line-height: 1.65; }
label { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
label > select, label > input, label > textarea { margin-top: 7px; font-size: 13px; font-weight: 400; }
.app-header { height: 78px; padding: 0 4.4%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: white; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: -.5px; text-decoration: none; }
.brand-symbol { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; background: var(--ink); color: #cbe5b0; display: grid; place-items: center; }
.brand-symbol svg { display: block; width: 28px; height: 28px; }
.brand-light { font-weight: 400; color: var(--muted); }
.header-caption { font-size: 12px; color: var(--muted); }
.header-link { border: 1px solid var(--line); padding: 8px 13px; border-radius: 7px; text-decoration: none; font-size: 12px; }
.header-link:hover { background: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.info-button { display: inline-flex; align-items: center; gap: 6px; background: white; color: var(--ink); }
.info-button span { font-size: 15px; line-height: 1; }
.app-main { width: min(1512px, 92%); margin: 0 auto; min-height: calc(100vh - 168px); }
.hero { padding: 49px 0 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 650; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
h1 { font-size: clamp(35px, 3.4vw, 51px); font-weight: 600; line-height: 1.12; letter-spacing: -2px; margin: 17px 0; }
h1 span { color: #7d8e6c; }
.hero h1:focus { outline: none; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-note { display: flex; align-items: center; gap: 15px; font-size: 12px; line-height: 1.9; color: var(--muted); padding: 12px 0; }
.hero-note strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.hero-note-mark { font-size: 54px; font-weight: 300; line-height: 1; color: #879e6b; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 5px #1c312904; }
.credentials { margin-bottom: 25px; }
.credentials > summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 23px; font-weight: 600; font-size: 13px; list-style: none; gap: 15px; }
.credentials > summary::-webkit-details-marker { display: none; }
.credentials > summary::after { content: "+"; color: var(--muted); font-size: 19px; }
.credentials[open] > summary::after { content: "−"; }
.credentials > summary > span:first-child { display: flex; align-items: center; gap: 9px; }
.section-icon { font-size: 21px; font-weight: 400; }
.key-summary { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; }
.credentials-body { padding: 0 23px 17px; }
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.field-heading a { color: var(--muted); font-size: 10px; text-decoration: none; }
.field-heading a:hover { color: var(--accent); text-decoration: underline; }
.key-field input { font-size: 12px; background: #fcfdfa; }
.field-note { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.65; margin: 12px 0 0; }
.workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 25px; align-items: start; }
.workspace-main { min-width: 0; }
.model-panel { padding: 23px 18px 17px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: -.2px; font-weight: 600; margin: 0; }
.step-number { font-size: 10px; font-weight: 600; color: #7a8971; background: #f0f3eb; border: 1px solid #e6ebdf; width: 26px; height: 26px; border-radius: 6px; display: inline-grid; place-items: center; }
.count-badge { padding: 5px 8px; border-radius: 5px; background: #eef3e6; color: #496139; font-size: 10px; white-space: nowrap; }
.selection-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.selection-tools select { width: auto; min-width: 132px; font-size: 11px; padding: 8px 36px 8px 12px; background-color: #fafbf7; }
.text-button { border: 0; background: none; color: #617257; text-decoration: underline; text-underline-offset: 3px; padding: 5px 0; font-size: 11px; }
.text-button:hover { color: #1e4432; }
.model-list { max-height: 650px; overflow-y: auto; overscroll-behavior: contain; padding: 0 3px 0 0; scrollbar-width: thin; scrollbar-color: #d9e1d2 transparent; }
.provider-heading { display: flex; align-items: center; gap: 7px; padding: 20px 4px 10px; font-size: 11px; font-weight: 600; }
.provider-heading > span:last-child { margin-left: auto; color: var(--muted); font-weight: 400; }
.provider-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: #61845e; }
.provider-dot.google { background: #6e8ec3; }
.provider-dot.stabilityai { background: #b192ca; }
.model-option { display: flex; align-items: flex-start; gap: 11px; border: 1px solid transparent; border-radius: 8px; padding: 11px 10px; cursor: pointer; margin: 3px 0; }
.model-option:hover { background: #f8faf5; }
.model-option.selected { background: #f1f6ea; border-color: #d4e2c5; }
.model-option:has(input:disabled):not(.selected) { cursor: not-allowed; }
.model-copy { display: grid; gap: 3px; min-width: 0; }
.model-copy strong { font-size: 11px; font-weight: 600; line-height: 1.5; }
.model-copy > span { font-size: 10px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.model-copy .deprecation { color: #906727; font-size: 9px; }
.prompt-panel { padding: 23px; }
.subtle { color: var(--muted); font-size: 11px; }
.prompt-input { min-height: 145px; padding: 15px 16px; border-radius: 8px; background: #fcfdfb; font-size: 13px; }
.prompt-caption { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--muted); margin-top: 7px; }
.sample-prompts { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0 22px; }
.sample-button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 10px; border-radius: 6px; color: #4c5e4b; background: white; font-size: 10px; }
.sample-button > span:first-child { color: #8a967e; font-size: 9px; }
.sample-button > span:last-child { font-size: 12px; color: #7a8c6e; }
.sample-button:hover { background: #f1f6ea; border-color: #c3d4af; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.advanced-settings { border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-top: 17px; }
.advanced-settings > summary { font-size: 11px; color: var(--muted); padding: 4px 0; }
.advanced-settings[open] > summary { margin-bottom: 17px; }
.advanced-settings > label { margin-top: 17px; }
.generate-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.generate-row > div:first-child { display: grid; gap: 5px; }
.selection-caption { color: #52644a; font-size: 11px; }
.generate-row small { color: var(--muted); font-size: 10px; }
.generate-button.rz-button { background: var(--accent); border-radius: 7px; text-transform: none; box-shadow: none; padding: 12px 18px; height: 43px; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.generate-button.rz-button:not(:disabled):hover { background: #204d3a; }
.cancel-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; height: 43px; padding: 12px 18px; border: 1px solid #dbe1d6; border-radius: 7px; background: #f3f5ef; color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
.cancel-button:not(:disabled):hover { background: #e9eee3; border-color: #c6d1bd; }
.cancel-button svg { width: 16px; height: 16px; flex-shrink: 0; }
.validation-hint { margin: 12px 0 0; font-size: 11px; color: #896b38; }
.validation-message { color: #a03d36; font-size: 11px; }
.results-heading { margin: 26px 0 17px; }
.results-actions { display: flex; align-items: center; gap: 14px; font-size: 10px; color: var(--muted); }
.empty-state { min-height: 390px; border: 1px dashed #d4ddcd; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(135deg, #f1f4ecaa, #fafbf7); padding: 30px 20px; }
.empty-state .eyebrow { font-size: 9px; margin-top: 8px; color: #7e8e6d; letter-spacing: 1.8px; }
.empty-state h3 { margin: 14px 0 10px; font-size: 25px; font-weight: 500; line-height: 1.25; letter-spacing: -.8px; }
.empty-state p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.empty-steps { display: flex; justify-content: center; gap: 22px; font-size: 9px; color: #6f7d64; margin-top: 26px; }
.empty-art { width: 142px; height: 105px; position: relative; margin: 0 0 14px; }
.empty-frame { position: absolute; width: 77px; height: 83px; border-radius: 5px; border: 1px solid #c5d2b9; box-shadow: 0 6px 15px #263b2410; display: grid; place-items: center; padding-bottom: 9px; }
.empty-frame::after { content: ""; height: 2px; width: 22px; background: #c6d4b9; position: absolute; bottom: 10px; left: 11px; }
.frame-back { background: #e6eddc; left: 16px; top: 2px; transform: rotate(-13deg); color: #acbf8e; font-size: 38px; }
.frame-front { background: #fff; left: 55px; top: 18px; transform: rotate(9deg); color: #96aa77; font-size: 43px; }
.art-spark { position: absolute; right: -5px; top: 2px; font-size: 23px; color: #9fb18b; }
.run-summary { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 15px; }
.summary-label { color: #7d8974; letter-spacing: 1.3px; font-size: 9px; margin-top: 3px; }
.run-summary p { font-size: 12px; color: #596650; margin: 0; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-card { border: 1px solid var(--line); background: #fff; border-radius: 10px; overflow: hidden; min-width: 0; }
.result-heading { padding: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.provider-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.result-heading h3 { font-size: 13px; font-weight: 600; margin: 6px 0 0; }
.status-badge { font-size: 9px; border-radius: 4px; padding: 4px 6px; white-space: nowrap; }
.status-badge.success { color: #35623b; background: #ecf4e4; }
.status-badge.error { color: #9a4940; background: #fcf0ed; }
.status-badge.canceled { color: #71664a; background: #f3f0e8; }
.image-preview { width: 100%; padding: 0; display: block; border: 0; background: #f1f3ed; position: relative; }
.image-preview img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; }
.preview-label { opacity: 0; position: absolute; right: 10px; bottom: 10px; background: #21362dde; color: white; padding: 8px 11px; border-radius: 5px; font-size: 10px; transition: opacity .15s; }
.image-preview:hover .preview-label, .image-preview:focus-visible .preview-label { opacity: 1; }
.result-placeholder { aspect-ratio: 1; background: #f5f7f0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; color: var(--muted); text-align: center; font-size: 12px; }
.result-placeholder small { font-size: 10px; }
.result-placeholder.failed { background: #faf6f2; color: #8c6655; }
.result-placeholder.failed > span { width: 30px; height: 30px; border: 1px solid #ddccbf; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.result-meta { font-size: 9px; line-height: 1.7; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.cost-summary { padding: 12px 16px; border-top: 1px solid var(--line); margin-bottom: 4px; }
.cost-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 11px; }
.cost-heading > span { color: var(--muted); }
.cost-heading strong { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; }
.cost-details { color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 8px; }
.cost-details summary { color: #526c44; }
.cost-details p { margin: 8px 0; }
.cost-breakdown { margin: 10px 0; display: grid; gap: 9px; }
.cost-breakdown > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cost-breakdown dt { color: var(--ink); }
.cost-breakdown small { display: block; color: var(--muted); font-size: 9px; }
.cost-breakdown dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-source { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.cost-source a { color: var(--accent); }
.cost-disclaimer { font-size: 9px; }
.comparison-cost-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 16px; background: #eef4e6; border: 1px solid #d8e3cb; border-radius: 8px; margin-bottom: 16px; font-size: 12px; }
.comparison-cost-total > div { display: grid; gap: 4px; }
.comparison-cost-total span { font-size: 10px; color: var(--muted); }
.comparison-cost-total > strong { color: var(--accent); font-size: 16px; font-variant-numeric: tabular-nums; }
.detail-info .cost-summary { padding-left: 0; padding-right: 0; margin: 15px 0; }
.download-button { width: calc(100% - 32px); margin: 0 16px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; padding: 10px 11px; background: #f3f6ee; border: 1px solid #dae3ce; border-radius: 6px; color: #435d35; font-size: 10px; }
.download-button:hover { background: #e8f0dd; }
.download-button span { font-size: 9px; opacity: .8; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.button-link { display: inline-block; padding: 10px 16px; background: var(--accent); border: 1px solid var(--accent); border-radius: 7px; color: white; text-decoration: none; font-size: 12px; }
.button-link.secondary { background: white; color: var(--accent); border-color: #d3dfca; }
.export-note { font-size: 10px; color: var(--muted); margin-top: 8px; }
.detail-image { background: #f2f4ee; text-align: center; border-radius: 6px; }
.detail-image img { display: block; max-width: 100%; max-height: 65vh; object-fit: contain; margin: auto; }
.detail-info p { font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.alert { padding: 14px 17px; margin-bottom: 15px; border-radius: 8px; font-size: 12px; }
.error-alert { background: #faf0ec; border: 1px solid #efd8ce; color: #994e3f; }
.loading-panel { padding: 35px; display: flex; align-items: center; gap: 16px; }
.loader { display: inline-block; width: 25px; height: 25px; border: 2px solid #d7e1ca; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-page { padding: 30px; margin-top: 40px; }
.error-page h1 { font-size: 28px; letter-spacing: -.6px; }
.app-footer { width: 92%; margin: 39px auto 0; padding: 21px 0 26px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.app-footer a { text-decoration: none; }
.footer-dot { padding: 0 6px; color: #acb79e; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.imprint-button { font-size: 10px; padding: 0; }
.app-dialog { padding: 4px; font-size: 13px; line-height: 1.75; color: var(--ink); }
.app-dialog h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.4px; margin: 0 0 17px; }
.app-dialog h4 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.app-dialog section { margin: 24px 0 0; }
.app-dialog p { margin: 10px 0 0; }
.app-dialog address { font-style: normal; }
.app-dialog a { color: var(--accent); overflow-wrap: anywhere; }
.dialog-note { display: grid; gap: 4px; margin-top: 20px; padding: 14px 16px; border-left: 3px solid #789e58; background: #f0f5e9; border-radius: 6px; font-size: 12px; }
.feature-list { display: grid; gap: 9px; list-style: none; padding: 0; margin: 0; }
.feature-list li { padding-left: 24px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.technology-list { display: grid; gap: 11px; margin: 0; }
.technology-list div { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 12px; }
.technology-list dt { font-weight: 600; }
.technology-list dd { margin: 0; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.app-dialog .dialog-source { font-size: 11px; color: var(--muted); margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 9999; padding: 12px; background: white; color: var(--accent); }
.skip-link:focus { top: 10px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; padding: 15px; background: #fff1cc; box-shadow: 0 -1px 8px #0002; z-index: 10000; }
@media (min-width: 1600px) { .workspace { grid-template-columns: 360px minmax(0, 1fr); } .model-list { max-height: 700px; } }
@media (max-width: 1100px) { .workspace { grid-template-columns: 285px minmax(0, 1fr); gap: 18px; } .app-main { width: 94%; } .hero-note { display: none; } .sample-button { padding: 7px; gap: 5px; } .result-grid { grid-template-columns: 1fr; } .field-heading { flex-wrap: wrap; gap: 3px; } .key-grid { gap: 15px; } .generate-row { gap: 12px; } }
@media (max-width: 760px) { .header-caption { display: none; } .app-header { height: 66px; padding: 0 5%; } .brand { font-size: 16px; } .app-main { width: 90%; } .hero { padding: 33px 0 25px; } .hero h1 { font-size: 39px; } .hero p { font-size: 12px; } .workspace { grid-template-columns: 1fr; gap: 18px; } .model-list { max-height: 300px; } .key-grid { grid-template-columns: 1fr; gap: 15px; } .field-heading { flex-wrap: nowrap; } .credentials > summary { padding: 16px; } .credentials-body { padding: 0 16px 17px; } .model-panel, .prompt-panel { padding: 19px 16px; } .key-summary { font-size: 10px; } .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-footer { width: 90%; flex-direction: column; gap: 8px; } .results-heading { align-items: flex-start; flex-wrap: wrap; } .results-actions { width: 100%; } }
@media (max-width: 480px) { .brand-light { font-size: 13px; } .brand { gap: 7px; } .brand-symbol { width: 30px; height: 30px; font-size: 26px; } .header-link { padding: 6px 9px; font-size: 11px; } .section-heading > .subtle { display: none; } .generate-row { align-items: stretch; flex-direction: column; gap: 13px; } .generate-row .rz-button { width: 100%; } .result-grid { grid-template-columns: 1fr; } .empty-steps { flex-direction: column; gap: 9px; } .empty-state { min-height: 400px; } .empty-state h3 { font-size: 24px; } .prompt-caption { font-size: 9px; } .key-summary { display: none; } .desktop-break { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 480px) { .generate-row .cancel-button { width: 100%; } }
@media (forced-colors: active) { select { appearance: auto; -webkit-appearance: auto; background-image: none; padding-right: 12px; } }
@media (max-width: 480px) { .app-header { gap: 10px; } .header-actions { gap: 6px; } .brand-light { font-size: 11px; } .brand-symbol svg { width: 24px; height: 24px; } }
