body.image-rize-tool .image-rize-app {
  color-scheme: dark;
  --bg-deep: #030813;
  --bg: #071021;
  --panel: rgba(15, 27, 53, 0.95);
  --panel-soft: rgba(8, 28, 54, 0.75);
  --field: #071229;
  --field-soft: #16274a;
  --field-strong: #1c2f57;
  --line: #2a3e6d;
  --line-bright: rgba(125, 211, 252, 0.45);
  --text: #eef4ff;
  --muted: #a8b9dd;
  --muted-strong: #d8e6ff;
  --accent: #7dd3fc;
  --accent-ink: #052033;
  --ok: #95f4b3;
  --warn: #ffd996;
  --danger: #ffb0b0;
  --shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

body.image-rize-tool .image-rize-app *,
body.image-rize-tool .image-rize-app *::before,
body.image-rize-tool .image-rize-app *::after {
  box-sizing: border-box;
}

body.image-rize-tool .image-rize-app button,
body.image-rize-tool .image-rize-app input,
body.image-rize-tool .image-rize-app textarea {
  font: inherit;
}

body.image-rize-tool .image-rize-app button {
  cursor: pointer;
}

body.image-rize-tool .image-rize-app button:disabled {
  cursor: wait;
  opacity: 0.7;
}

body.image-rize-tool .image-rize-app [hidden] {
  display: none !important;
}

.clipboard-helper {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.app-shell {
  min-height: 100vh;
  padding: 32px 18px 44px;
}

.workspace {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.intro,
.drop-panel,
.output-panel,
.html-panel {
  min-width: 0;
  background: linear-gradient(180deg, rgba(15, 27, 53, 0.95), rgba(11, 21, 44, 0.95));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.intro {
  margin-bottom: 16px;
  padding: 18px;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.app-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-logo {
  width: 72px;
  height: 72px;
  display: block;
}

.logo-refresh-button {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
}

.logo-refresh-button:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.4);
  outline-offset: 4px;
}

.logo-refresh-button:hover {
  filter: brightness(1.08);
}

.header-actions {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-left: auto;
}

.header-tool-actions {
  display: grid;
  gap: 8px;
}

.image-rize-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.image-rize-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.image-rize-steps li,
.image-rize-trust-grid p,
.generation-summary-card,
.image-rize-section-intro {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field-soft);
}

.image-rize-steps li {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.image-rize-steps strong,
.image-rize-trust-grid strong {
  color: var(--text);
  font-size: 13px;
}

.image-rize-steps span,
.image-rize-trust-grid span,
.generation-summary-note,
.image-rize-section-intro p,
.image-rize-section-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.image-rize-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.image-rize-trust-grid p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 12px;
}

.image-rize-section-intro {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 14px;
}

.image-rize-section-intro h2,
.image-rize-section-heading h2,
.generation-summary-card h2 {
  margin: 0;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.image-rize-section-intro p,
.image-rize-section-heading p {
  margin: 0;
}

.image-rize-section-heading {
  display: grid;
  gap: 6px;
}

.generation-summary-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.generation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.generation-summary div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.generation-summary dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.generation-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.generation-summary-note {
  margin: 0;
}

.refresh-button,
.global-zip-button {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
  background: var(--field-soft);
  padding: 0 12px;
  font-weight: 800;
}

.global-zip-button {
  width: 100%;
  color: var(--text);
}

.refresh-button .fa-solid {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.biw-signature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.biw-signature:hover,
.refresh-button:hover,
.global-zip-button:hover:not(:disabled) {
  color: var(--muted-strong);
}

.biw-logo {
  width: 32px;
  height: 32px;
  display: block;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: #d8eeff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.image-rize-tool .image-rize-panel h2,
body.image-rize-tool .image-rize-panel h3,
body.image-rize-tool .image-rize-panel p {
  margin-top: 0;
}

.sub {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.mode-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 10px;
  scrollbar-width: thin;
}

.mode-tab {
  flex: 1 0 max-content;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--muted-strong);
  background: var(--field-soft);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.mode-tab.is-active {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.mode-description {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.mode-settings {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.mode-setting,
.mode-setting label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mode-setting-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-setting small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.mode-setting input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--field);
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.mode-setting input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 16px;
  align-items: start;
}

.drop-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.drop-zone {
  min-height: 380px;
  border: 1px dashed var(--line-bright);
  border-radius: 14px;
  background: rgba(125, 211, 252, 0.06);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.drop-zone.is-dragging {
  background: rgba(125, 211, 252, 0.13);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 999px;
  background: #16274a;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.drop-icon .fa-solid {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

.drop-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.drop-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.batch-summary,
.status,
.batch-rename {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.batch-summary {
  padding: 12px;
}

.batch-summary p {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.batch-summary p:first-child {
  color: var(--text);
  font-weight: 800;
}

.batch-summary p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.output-panel {
  grid-column: 1 / -1;
  padding: 18px;
}

.html-panel {
  padding: 18px;
}

.output-header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.output-header h2 {
  margin-bottom: 0;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.html-header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.html-header h2 {
  margin-bottom: 0;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.secondary-button,
.download-button,
.compact-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.secondary-button,
.compact-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--field-soft);
}

.download-button {
  color: var(--accent-ink);
  background: var(--accent);
}

.status {
  min-height: 42px;
  margin: 16px 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.status.is-error {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
}

.batch-rename {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
}

.batch-rename-label,
.filename-label,
.form-field,
.feature-group-label,
.html-output-label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.batch-rename input,
.filename-input,
.form-field input,
.form-field textarea,
.feature-row input,
.html-output {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--field);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  outline: none;
}

.form-field textarea,
.html-output {
  min-height: 112px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.html-output {
  min-height: 300px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 600;
  white-space: pre;
}

.batch-rename input:focus,
.filename-input:focus,
.form-field input:focus,
.form-field textarea:focus,
.feature-row input:focus,
.html-output:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
}

.batch-rename p {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.outputs {
  display: grid;
  gap: 12px;
}

.custom-profile-panel {
  display: block;
}

.custom-profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 16px;
  align-items: start;
}

.custom-profile-form,
.custom-profile-list-card,
.custom-profile-picker-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--field-soft);
}

.custom-profile-picker-card {
  grid-column: 1 / -1;
}

.profile-size-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.custom-profile-actions,
.profile-list-head,
.custom-profile-card,
.custom-profile-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-list-head,
.custom-profile-card {
  justify-content: space-between;
}

.profile-list-head h2,
.profile-list-head h3,
.custom-profile-card h4 {
  margin: 0;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-size: 17px;
}

.custom-profile-list,
.custom-profile-options {
  display: grid;
  gap: 10px;
}

.custom-profile-card,
.custom-profile-option {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.custom-profile-card-main {
  min-width: 0;
}

.custom-profile-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.custom-profile-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  color: var(--text);
  font-weight: 800;
}

.custom-profile-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.custom-profile-option small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.profile-multi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.profile-multi-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.html-products {
  display: grid;
  gap: 14px;
}

.html-prompt-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--field-soft);
}

.image-prompt-card {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.html-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.html-prompt-heading {
  min-width: min(100%, 420px);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.html-prompt-heading h2,
.html-prompt-heading h3 {
  margin-bottom: 0;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-size: 17px;
}

.html-prompt-content {
  display: grid;
  gap: 12px;
}

.html-prompt-output {
  min-height: 340px;
  resize: vertical;
}

.image-prompt-output {
  min-height: 280px;
}

.og-studio-panel {
  display: grid;
  gap: 16px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.08), rgba(15, 23, 42, 0.78));
}

.og-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.og-studio-fieldset {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--field-soft);
}

.og-studio-fieldset legend {
  padding: 0 8px;
  color: var(--accent);
  font-weight: 900;
}

.og-studio-fieldset textarea {
  min-height: 74px;
  resize: vertical;
}

.og-color-fields input[type="color"] {
  min-height: 46px;
  padding: 4px;
}

.og-logo-drop {
  min-height: 150px;
}

.og-logo-drop .drop-icon {
  width: 54px;
  height: 54px;
}

.og-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.og-logo-plate-toggle {
  align-self: start;
}

.output-card,
.export-item {
  min-height: 118px;
  display: grid;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--field-soft);
}

.html-product-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--field-soft);
}

.html-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.html-product-header h3 {
  margin-bottom: 0;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-size: 17px;
}

.html-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.html-product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.html-product-form,
.html-result,
.feature-group {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.price-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-list {
  display: grid;
  gap: 9px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.feature-row .compact-button {
  min-width: 102px;
}

.html-copy-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.output-card {
  grid-template-columns: 1fr;
}

.output-card h3 {
  margin-bottom: 6px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-size: 17px;
}

.output-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.export-item {
  grid-template-columns: 86px minmax(0, 1fr) auto;
}

.export-item.is-ready {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.export-item.is-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
}

.item-preview {
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
  background: var(--field);
}

.item-main {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.item-status,
.item-details {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.item-status {
  color: var(--text);
  font-weight: 800;
}

.item-gain {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(7, 18, 41, 0.62);
}

.gain-chart {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--field-soft) 0 48%, transparent 49%),
    conic-gradient(#38e6a0 0 calc(100% - var(--gain-used)), rgba(248, 113, 113, 0.82) 0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.item-gain.has-no-gain .gain-chart {
  background:
    radial-gradient(circle at center, var(--field-soft) 0 48%, transparent 49%),
    linear-gradient(rgba(248, 113, 113, 0.82), rgba(248, 113, 113, 0.82));
}

.gain-chart span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.gain-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.gain-copy strong {
  color: var(--ok);
  font-size: 13px;
}

.item-gain.has-no-gain .gain-copy strong {
  color: var(--warn);
}

.gain-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.item-actions {
  display: grid;
  gap: 9px;
  min-width: 150px;
}

.download-button:hover:not(:disabled),
.secondary-button:hover,
.compact-button:hover:not(:disabled),
.mode-tab:hover {
  filter: brightness(1.06);
}

.download-button:disabled,
.compact-button:disabled,
.global-zip-button:disabled {
  color: var(--muted);
  background: #16274a;
}

@media (max-width: 800px) {
  .app-shell {
    padding: 20px 14px 34px;
  }

  .tool-grid,
  .image-rize-steps,
  .image-rize-trust-grid,
  .generation-summary {
    grid-template-columns: 1fr;
  }

  .custom-profile-grid,
  .og-studio-grid,
  .profile-size-fields {
    grid-template-columns: 1fr;
  }

  .drop-zone {
    min-height: 260px;
  }

  .output-card,
  .export-item,
  .batch-rename,
  .mode-settings,
  .mode-setting-pair,
  .html-product-layout,
  .feature-row,
  .price-fields {
    grid-template-columns: 1fr;
  }

  .item-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .item-actions {
    min-width: 0;
  }

  .html-header,
  .html-prompt-header,
  .html-prompt-heading,
  .html-product-header,
  .feature-group-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .html-product-actions {
    width: 100%;
  }

  .custom-profile-card,
  .profile-list-head,
  .custom-profile-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-button,
  .compact-button,
  .html-prompt-toggle,
  .mode-tab {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .app-shell {
    padding: 12px;
  }

  .intro,
  .drop-panel,
  .output-panel,
  .html-panel {
    padding: 14px;
  }

  .output-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .output-actions,
  .html-prompt-header,
  .html-product-actions,
  .custom-profile-card-actions,
  .header-tool-actions,
  .secondary-button,
  .download-button,
  #download-all,
  #apply-batch-rename,
  #add-html-product,
  #export-html-file {
    width: 100%;
  }
}

body.image-rize-tool .image-rize-app {
  --panel-gradient: linear-gradient(180deg, rgba(15, 27, 53, 0.95), rgba(11, 21, 44, 0.95));
  --accent-soft: rgba(125, 211, 252, 0.12);
  --focus-ring: rgba(125, 211, 252, 0.2);
}

html[data-seo-style="style2"] body.image-rize-tool .image-rize-app {
  --bg-deep: #020617;
  --bg: #0f172a;
  --panel: rgba(30, 41, 59, 0.96);
  --panel-soft: rgba(30, 41, 59, 0.78);
  --field: rgba(15, 23, 42, 0.82);
  --field-soft: rgba(30, 41, 59, 0.82);
  --field-strong: rgba(51, 65, 85, 0.92);
  --line: #334155;
  --line-bright: rgba(192, 132, 252, 0.46);
  --text: #f1f5f9;
  --muted: #cbd5e1;
  --muted-strong: #f1f5f9;
  --accent: #c084fc;
  --accent-ink: #ffffff;
  --ok: #86efac;
  --warn: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 24px rgba(192, 132, 252, 0.12);
  --panel-gradient: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  --accent-soft: rgba(192, 132, 252, 0.14);
  --focus-ring: rgba(192, 132, 252, 0.22);
}

html[data-seo-style="style3"] body.image-rize-tool .image-rize-app {
  --bg-deep: #02050a;
  --bg: #030712;
  --panel: rgba(3, 10, 18, 0.96);
  --panel-soft: rgba(4, 18, 30, 0.84);
  --field: rgba(1, 8, 16, 0.82);
  --field-soft: rgba(4, 18, 30, 0.84);
  --field-strong: rgba(0, 255, 136, 0.09);
  --line: rgba(0, 255, 136, 0.32);
  --line-bright: rgba(0, 212, 255, 0.34);
  --text: #effff8;
  --muted: rgba(198, 255, 228, 0.72);
  --muted-strong: #d7fff0;
  --accent: #00ff88;
  --accent-ink: #02050a;
  --ok: #00ff88;
  --warn: #ffb020;
  --danger: #ff2d6a;
  --shadow: inset 0 0 28px rgba(0, 255, 136, 0.05), 0 18px 48px rgba(0, 0, 0, 0.4);
  --panel-gradient:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(0, 255, 136, 0.022) 6px 7px),
    linear-gradient(180deg, rgba(4, 18, 30, 0.95), rgba(1, 8, 16, 0.94));
  --accent-soft: rgba(0, 255, 136, 0.12);
  --focus-ring: rgba(0, 255, 136, 0.2);
}

html[data-seo-style="style4"] body.image-rize-tool .image-rize-app {
  --bg-deep: #040b16;
  --bg: #071021;
  --panel: var(--motion-panel-strong, rgba(8, 20, 39, 0.9));
  --panel-soft: var(--motion-panel, rgba(8, 20, 39, 0.72));
  --field: rgba(4, 14, 28, 0.88);
  --style4-08: var(--seo-style4-08, rgba(56, 189, 248, 0.08));
  --style4-10: var(--seo-style4-10, rgba(56, 189, 248, 0.1));
  --style4-12: var(--seo-style4-12, rgba(56, 189, 248, 0.12));
  --style4-16: var(--seo-style4-16, rgba(56, 189, 248, 0.16));
  --style4-22: var(--seo-style4-22, rgba(56, 189, 248, 0.22));
  --style4-28: var(--seo-style4-28, rgba(56, 189, 248, 0.28));
  --style4-38: var(--seo-style4-38, rgba(56, 189, 248, 0.38));
  --field-soft: var(--style4-08);
  --field-strong: var(--style4-12);
  --line: var(--motion-border, var(--style4-28));
  --line-bright: var(--motion-primary-line, var(--style4-38));
  --text: var(--motion-text, #f4fbff);
  --muted: var(--motion-muted, #b9c8df);
  --muted-strong: #eff8ff;
  --accent: var(--motion-primary, var(--seo-style4-color, #38bdf8));
  --accent-ink: #f8fbff;
  --ok: #86efac;
  --warn: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 24px var(--style4-10);
  --panel-gradient:
    linear-gradient(145deg, var(--style4-08), transparent 44%),
    var(--motion-panel-strong, rgba(8, 20, 39, 0.9));
  --accent-soft: var(--style4-16);
  --focus-ring: var(--style4-22);
}

html[data-seo-style="style5"] body.image-rize-tool .image-rize-app {
  color-scheme: light;
  --bg-deep: #e4ebf5;
  --bg: #f7f9ff;
  --panel: #f8fbff;
  --panel-soft: #eef3fb;
  --field: #eef3fb;
  --field-soft: #f4f7fc;
  --field-strong: #e4ebf5;
  --line: rgba(151, 163, 193, 0.42);
  --line-bright: rgba(109, 93, 252, 0.32);
  --text: #1f2a44;
  --muted: #66718f;
  --muted-strong: #24304f;
  --accent: #6d5dfc;
  --accent-ink: #ffffff;
  --ok: #0f9f6e;
  --warn: #b7791f;
  --danger: #dc2626;
  --shadow: 10px 10px 22px rgba(163, 177, 198, 0.42), -10px -10px 22px rgba(255, 255, 255, 0.92);
  --panel-gradient: linear-gradient(145deg, #ffffff, #edf2fb);
  --accent-soft: rgba(109, 93, 252, 0.1);
  --focus-ring: rgba(109, 93, 252, 0.18);
}

body.image-rize-tool .image-rize-app :is(.intro, .drop-panel, .output-panel, .html-panel, .og-studio-panel) {
  border-color: var(--line);
  background: var(--panel-gradient);
  box-shadow: var(--shadow);
}

body.image-rize-tool .image-rize-app :is(.mode-description, .mode-settings, .batch-summary, .status, .batch-rename, .custom-profile-form, .custom-profile-list-card, .custom-profile-picker-card, .custom-profile-card, .custom-profile-option, .html-prompt-card, .html-product-card, .output-card, .export-item, .item-gain, .og-studio-fieldset) {
  color: var(--text);
  border-color: var(--line);
  background: var(--field-soft);
}

body.image-rize-tool .image-rize-app :is(.drop-zone, .drop-icon, .item-preview, .gain-chart) {
  border-color: var(--line-bright);
  background-color: var(--field-strong);
}

body.image-rize-tool .image-rize-app :is(.eyebrow) {
  color: var(--accent);
  border-color: var(--line-bright);
  background: var(--accent-soft);
}

body.image-rize-tool .image-rize-app :is(.refresh-button, .global-zip-button, .secondary-button, .compact-button, .mode-tab) {
  color: var(--muted-strong);
  border-color: var(--line);
  background: var(--field-soft);
}

body.image-rize-tool .image-rize-app :is(.mode-tab.is-active, .download-button) {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
}

body.image-rize-tool .image-rize-app :is(.mode-setting input, .batch-rename input, .filename-input, .form-field input, .form-field textarea, .feature-row input, .html-output) {
  color: var(--text);
  border-color: var(--line);
  background: var(--field);
}

body.image-rize-tool .image-rize-app :is(.mode-setting input, .batch-rename input, .filename-input, .form-field input, .form-field textarea, .feature-row input, .html-output):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

body.image-rize-tool .image-rize-app :is(.download-button:disabled, .compact-button:disabled, .global-zip-button:disabled) {
  color: var(--muted);
  border-color: var(--line);
  background: var(--field-strong);
}
