.generator-main { padding: 31px 0 90px; }
.tool-breadcrumb { display: flex; align-items: center; gap: 10px; color: #6f7c73; font: 10px var(--mono); }
.tool-breadcrumb a { color: var(--mint); }
.tool-breadcrumb span:last-child { color: #a4b0a6; }
.generator-heading { display: flex; align-items: end; justify-content: space-between; gap: 55px; padding: 70px 0 63px; }
.generator-heading h1 { margin: 0; font-size: clamp(49px, 6.3vw, 85px); line-height: .94; letter-spacing: -.09em; }
.generator-intro { max-width: 310px; margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.generator-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 17px; align-items: stretch; }
.panel-surface { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 22px 65px rgba(0, 0, 0, .15); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 26px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
.panel-index { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--mint); font: 9px var(--mono); }
.panel-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.045em; }
.live-badge, .result-status { color: var(--mint); font: 9px var(--mono); }
.prompt-label, .control-field > span { display: block; margin-bottom: 9px; color: #a1aea5; font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
#prompt { display: block; width: 100%; min-height: 166px; resize: vertical; padding: 15px; border: 1px solid rgba(237, 245, 229, .14); border-radius: 8px; outline: none; color: var(--ink); background: rgba(5, 9, 7, .55); font: 12px/1.8 var(--sans); transition: border-color .2s ease, box-shadow .2s ease; }
#prompt::placeholder { color: #68756d; }
#prompt:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(198, 241, 124, .1); }
.prompt-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: #718077; font: 9px var(--mono); }
.prompt-footer #prompt-count { color: #819087; }
.prompt-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.suggestion { padding: 7px 9px; border: 1px solid rgba(237, 245, 229, .12); border-radius: 5px; color: #a1afa5; background: transparent; font: 9px var(--mono); transition: color .2s ease, border-color .2s ease, background .2s ease; }
.suggestion:hover, .suggestion:focus-visible { border-color: var(--line-bright); color: var(--mint); background: rgba(198, 241, 124, .07); }
.controls-heading { display: flex; align-items: center; gap: 13px; margin: 28px 0 17px; color: #a1aea5; font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.controls-line { height: 1px; flex: 1; background: var(--line); }
.controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.control-field select { display: block; width: 100%; padding: 12px 29px 12px 12px; border: 1px solid rgba(237, 245, 229, .13); border-radius: 7px; outline: none; color: var(--ink); background: #151e19; font-size: 11px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mint) 50%), linear-gradient(135deg, var(--mint) 50%, transparent 50%); background-position: calc(100% - 14px) 17px, calc(100% - 10px) 17px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.control-field select:focus { border-color: var(--mint); }
.generate-button { display: flex; align-items: center; justify-content: center; width: 100%; gap: 12px; margin-top: 24px; padding: 14px 16px; border: 0; border-radius: 7px; color: #172019; background: var(--mint); box-shadow: 0 10px 25px rgba(198, 241, 124, .12); font-size: 11px; font-weight: 800; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.generate-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--mint-bright); box-shadow: 0 14px 32px rgba(198, 241, 124, .2); }
.generate-button:disabled { cursor: wait; opacity: .72; }
.button-icon { margin-left: auto; font-size: 18px; line-height: .6; }
.button-spinner { display: none; width: 12px; height: 12px; border: 2px solid rgba(23, 32, 25, .27); border-top-color: #172019; border-radius: 50%; animation: spin .8s linear infinite; }
.generate-button.is-loading .button-spinner { display: block; }
.generate-button.is-loading .button-label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-disclaimer { margin: 13px 0 0; color: #67746b; font: 9px var(--mono); text-align: center; }
.result-panel { display: flex; flex-direction: column; min-height: 600px; }
.result-heading { margin-bottom: 19px; }
.result-status { max-width: 145px; overflow: hidden; color: #7d8b82; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.result-stage { position: relative; display: grid; min-height: 450px; flex: 1; place-items: center; overflow: hidden; border: 1px solid rgba(237, 245, 229, .1); border-radius: 9px; background: #0c110e; }
.result-stage::before { position: absolute; inset: 0; opacity: .25; content: ""; background-image: linear-gradient(rgba(198, 241, 124, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(198, 241, 124, .1) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle at center, black, transparent 80%); }
.result-placeholder, .loading-state, .result-error { position: relative; z-index: 1; display: grid; max-width: 280px; justify-items: center; padding: 25px; text-align: center; }
.result-placeholder strong, .loading-state strong, .result-error strong { margin-top: 18px; font-size: 12px; }
.result-placeholder p, .loading-state p, .result-error p { margin: 8px 0 0; color: #77857b; font-size: 10px; line-height: 1.6; }
.placeholder-icon { position: relative; display: grid; width: 55px; height: 55px; place-items: center; border: 1px solid rgba(198, 241, 124, .35); border-radius: 50%; }
.placeholder-icon::before, .placeholder-icon::after { position: absolute; content: ""; border: 1px solid rgba(198, 241, 124, .22); border-radius: 50%; }
.placeholder-icon::before { width: 72px; height: 72px; }
.placeholder-icon::after { width: 91px; height: 91px; border-style: dashed; opacity: .5; }
.placeholder-icon span { position: absolute; display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.placeholder-icon span:first-child { top: 8px; right: 5px; }
.placeholder-icon span:nth-child(2) { bottom: 8px; left: 3px; opacity: .6; }
.placeholder-icon span:last-child { top: 25px; left: 25px; width: 6px; height: 6px; }
.loading-orbit { position: relative; display: grid; width: 70px; height: 70px; place-items: center; border: 1px solid rgba(198, 241, 124, .25); border-radius: 50%; animation: loading-rotate 3s linear infinite; }
.loading-orbit::before, .loading-orbit::after { position: absolute; content: ""; border-radius: 50%; background: var(--mint); box-shadow: 0 0 13px var(--mint); }
.loading-orbit::before { top: -3px; left: 28px; width: 6px; height: 6px; }
.loading-orbit::after { right: -2px; bottom: 14px; width: 3px; height: 3px; opacity: .6; }
.loading-orbit span { width: 30px; height: 30px; border: 1px solid rgba(198, 241, 124, .5); border-radius: 50%; }
@keyframes loading-rotate { to { transform: rotate(360deg); } }
.loading-state strong { margin-top: 20px; }
.loading-bar { width: 180px; height: 3px; margin-top: 20px; overflow: hidden; border-radius: 5px; background: rgba(237, 245, 229, .12); }
.loading-bar span { display: block; width: 12%; height: 100%; border-radius: inherit; background: var(--mint); box-shadow: 0 0 10px var(--mint); transition: width .6s ease; }
#result-image { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 450px; object-fit: contain; background: #0b0f0c; }
.error-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(241, 167, 160, .45); border-radius: 50%; color: #f1a7a0; font: 18px var(--mono); }
.result-error strong { margin-top: 14px; color: #f1e4dc; }
.retry-button { margin-top: 18px; padding: 9px 12px; border: 1px solid rgba(198, 241, 124, .35); border-radius: 6px; color: var(--mint); background: transparent; font-size: 10px; font-weight: 700; }
.retry-button:hover { background: rgba(198, 241, 124, .1); }
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.result-meta-copy { display: grid; gap: 5px; color: #78867c; font: 9px var(--mono); }
.result-meta-copy strong { color: var(--mint); font-weight: 400; }
.download-button { padding: 9px 11px; border: 1px solid var(--line-bright); border-radius: 6px; color: var(--mint); font-size: 10px; font-weight: 700; white-space: nowrap; }
.download-button:hover { background: rgba(198, 241, 124, .1); }
.download-button span { margin-left: 7px; font-size: 14px; }
.generator-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.generator-notes > div { display: flex; gap: 12px; }
.note-number { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--mint); font: 10px var(--mono); }
.generator-notes p { margin: 2px 0 0; color: #7b897f; font-size: 10px; line-height: 1.7; }
.generator-notes strong { color: #b9c6b9; }

@media (max-width: 900px) {
  .generator-heading { display: block; padding: 60px 0 45px; }
  .generator-intro { margin-top: 25px; }
  .generator-layout { grid-template-columns: 1fr; }
  .result-panel { min-height: 560px; }
}

@media (max-width: 600px) {
  .generator-main { padding-top: 24px; }
  .generator-heading h1 { font-size: clamp(45px, 14vw, 70px); }
  .panel-surface { padding: 19px; }
  .result-stage, #result-image { min-height: 350px; }
  .generator-notes { grid-template-columns: 1fr; gap: 15px; }
  .result-meta { align-items: flex-start; flex-direction: column; }
  .download-button { width: 100%; text-align: center; }
  .controls-grid { grid-template-columns: 1fr; }
}
