.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 5px;
  background: #d93434;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .3px;
}

.generation-form { margin-top: 24px; padding: 20px; border: 1px solid #e6ebe8; border-radius: 14px; background: #f8faf7; }
.generation-form .field:first-child { margin-top: 0; }
.generation-form textarea { min-height: 118px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-row select { display: block; width: 100%; margin-top: 8px; padding: 11px; border: 1px solid #e0e7e3; border-radius: 9px; background: #fff; }
.reference-hint { margin: 14px 0 0; color: #718079; font-size: 11px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.primary:disabled { cursor: not-allowed; background: #a7b5af; color: #eef2f0; }
.image-tool-options { margin-top: 22px; padding: 20px; border: 1px solid #e1e8e4; border-radius: 12px; background: #f8faf7; }
.image-tool-options select,.image-tool-options textarea { display: block; width: 100%; margin-top: 8px; padding: 11px; border: 1px solid #dfe7e2; border-radius: 8px; background: #fff; font: inherit; }
.image-tool-options textarea { min-height: 76px; resize: vertical; }
.image-tool-options .two { grid-template-columns: 1fr 2fr; }
.image-check { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 12px; }
.image-check input { width: 17px; height: 17px; accent-color: #175c45; }
@media (max-width: 700px) { .image-tool-options .two { grid-template-columns: 1fr; } }
.workflow-notice { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.workflow-notice b { font-size: 15px; }
.workflow-notice span, .batch-columns small { color: #718079; font-size: 11px; line-height: 1.6; }
.batch-options { grid-template-columns: 1.35fr 1fr .65fr; }
.form-row input { display: block; width: 100%; margin-top: 8px; padding: 11px; border: 1px solid #e0e7e3; border-radius: 9px; background: #fff; }
.batch-columns { display: flex; flex-direction: column; gap: 6px; margin-top: 17px; padding: 13px 15px; border-radius: 10px; background: #eef4e9; font-size: 11px; }
.batch-columns span { color: #315746; font-weight: 600; }

.generation-studio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); gap: 18px; margin-top: 24px; }
.studio-config { padding: 22px; border: 1px solid #e1e8e4; border-radius: 16px; background: linear-gradient(145deg, #fbfcfa, #f4f8f3); }
.studio-kicker { width: max-content; color: #527664 !important; font-size: 9px !important; font-weight: 800; letter-spacing: 1.7px; }
.section-label { margin: 20px 0 2px; color: #315746; font-size: 11px; font-weight: 750; letter-spacing: .5px; }
.output-options { grid-template-columns: 1.15fr 1fr .7fr; }

.visual-preview { padding: 18px; border-radius: 16px; background: #112f26; color: #fff; overflow: hidden; }
.preview-head { display: flex; align-items: center; justify-content: space-between; }
.preview-head b, .preview-head span { display: block; }
.preview-head b { font-size: 13px; }
.preview-head div span { margin-top: 4px; color: #8da79e; font-size: 10px; }
.live-dot { padding: 5px 8px; border: 1px solid #31564a; border-radius: 12px; color: #b7ce6c; font-size: 9px; }
.live-dot:before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #cbe955; }
.preview-stage { display: grid; place-items: center; height: 300px; margin: 15px 0; border-radius: 13px; background: radial-gradient(circle at 50% 35%, #315d4c, #183a30 50%, #102a23); overflow: hidden; }
.preview-frame { position: relative; width: auto; height: 80%; max-width: 90%; max-height: 90%; overflow: hidden; border: 1px solid #ffffff2b; border-radius: 10px; background: linear-gradient(145deg, #eee2cc, #b5c6b1); box-shadow: 0 20px 45px #07191499; transition: aspect-ratio .25s ease, width .25s ease; }
.preview-glow { position: absolute; width: 75%; aspect-ratio: 1; top: 8%; left: 12%; border-radius: 50%; background: #fff9dd99; filter: blur(24px); }
.preview-product { position: absolute; inset: 22% 12% 18%; display: flex; align-items: end; justify-content: center; gap: 4%; }
.preview-product i { display: block; width: 29%; height: 67%; border-radius: 50% 50% 22% 22%; background: linear-gradient(100deg, #d9ec61, #f4f6c2); transform: rotate(-8deg); box-shadow: 0 12px 20px #1c3a2d42; }
.preview-product i:nth-child(2) { height: 88%; background: linear-gradient(100deg, #294f43, #6b9486); transform: none; }
.preview-product i:nth-child(3) { background: linear-gradient(100deg, #dcae81, #f2d9bb); transform: rotate(8deg); }
.preview-frame strong { position: absolute; left: 8%; bottom: 8%; color: #173c30; font-size: clamp(9px, 1vw, 15px); letter-spacing: 2px; }
.preview-frame small { position: absolute; right: 7%; top: 7%; color: #315746; font-size: 6px; letter-spacing: 1px; writing-mode: vertical-rl; }
.preview-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.preview-specs div { padding: 9px; border: 1px solid #2a4b40; border-radius: 9px; background: #17382e; }
.preview-specs span, .preview-specs b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-specs span { margin-bottom: 4px; color: #78958b; font-size: 8px; }
.preview-specs b { color: #e3eddf; font-size: 9px; }
.workbook-state { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px; border: 1px dashed #3c5d51; border-radius: 10px; }
.workbook-state.ready { border-style: solid; border-color: #79934a; background: #263f2c; }
.sheet-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 8px; background: #294b3f; color: #d7ed76; }
.workbook-state b, .workbook-state small { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbook-state b { font-size: 10px; }
.workbook-state small { margin-top: 3px; color: #78958b; font-size: 8px; }

@media (max-width: 1050px) { .generation-studio { grid-template-columns: 1fr; } .visual-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .preview-head, .preview-specs, .workbook-state { grid-column: 1 / -1; } .preview-stage { height: 250px; } }
@media (max-width: 700px) { .generation-studio, .batch-options, .output-options { grid-template-columns: 1fr; } .visual-preview { display: block; } }

.installer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.installer-title { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.installer-title>span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e8f2d8; color: #175c45; font-size: 24px; }
.installer-title h3, .installer-title p { margin: 0; }.installer-title p { margin-top: 5px; color: #718079; font-size: 11px; }
.installer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.installer-grid input, .installer-grid select { display: block; width: 100%; margin-top: 8px; padding: 11px; border: 1px solid #dfe6e2; border-radius: 9px; background: #fff; }
.package-drop { display: flex; flex-direction: column; align-items: center; padding: 34px 20px; margin-top: 20px; border: 1.5px dashed #b5c7be; border-radius: 14px; background: #f9fbf8; cursor: pointer; text-align: center; }
.package-drop input { display: none; }.package-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 10px; background: #e8f2d8; color: #175c45; font-size: 20px; }.package-drop b { font-size: 13px; }.package-drop small { margin-top: 6px; color: #718079; font-size: 10px; }.package-drop em { margin-top: 12px; color: #3b6856; font-size: 10px; font-style: normal; font-weight: 700; }
.install-guide { padding: 26px; border-radius: 18px; background: #13342a; color: #fff; }.guide-tag { color: #d9f36c; font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }.install-guide h3 { margin: 12px 0 24px; }.install-guide ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; }.install-guide li { position: relative; padding: 0 0 22px 40px; counter-increment: steps; }.install-guide li:before { content: counter(steps); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #244b3e; color: #d9f36c; font-size: 10px; font-weight: 800; }.install-guide li:not(:last-child):after { content: ''; position: absolute; left: 13px; top: 27px; width: 1px; height: 20px; background: #33584c; }.install-guide li b,.install-guide li span { display: block; }.install-guide li b { font-size: 12px; }.install-guide li span { margin-top: 4px; color: #8da79e; font-size: 10px; line-height: 1.5; }.safe-note { margin-top: 6px; padding: 12px; border: 1px solid #31584a; border-radius: 9px; color: #a8bdb5; font-size: 10px; line-height: 1.6; }
@media(max-width:900px){.installer-layout{grid-template-columns:1fr}.installer-grid{grid-template-columns:1fr}}
.installer-tool-field select { display: block; width: 100%; margin-top: 9px; padding: 13px 14px; border: 1px solid #dce5e0; border-radius: 10px; background: #fff; color: #17201d; font-size: 13px; }
.selected-tool-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 13px; opacity: .55; }
.selected-tool-meta.ready { opacity: 1; }
.selected-tool-meta>div { padding: 11px 13px; border: 1px solid #e3e9e6; border-radius: 10px; background: #f7f9f7; }
.selected-tool-meta span,.selected-tool-meta b { display: block; }.selected-tool-meta span { margin-bottom: 5px; color: #7a8982; font-size: 9px; }.selected-tool-meta b { overflow: hidden; color: #294c3e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.selected-tool-meta .meta-pending { color: #c83232; }
@media(max-width:600px){.selected-tool-meta{grid-template-columns:1fr}}
