body:has(.ac-page) { background: #0b0e0c; }
.ac-page *, .ac-page *::before, .ac-page *::after { box-sizing: border-box; }

.ac-page.vs-page {
  max-width: none;
  padding: 0;
  background: radial-gradient(ellipse 60% 380px at 50% 0, rgba(140, 194, 94, .10), transparent 80%), #0b0e0c;
  color: #f3f5f0;
  font-family: Inter, system-ui, sans-serif;
}
.ac-page.vs-page::before { display: none; }
.ac-shell { max-width: 1180px; margin: 0 auto; padding: 58px 30px 96px; }
.ac-hero { max-width: 750px; margin-bottom: 42px; }
.ac-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: #a5bc95; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ac-eyebrow-mark { width: 7px; height: 7px; border-radius: 50%; background: #a5df71; box-shadow: 0 0 0 5px rgba(165, 223, 113, .10); }
.ac-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 750; letter-spacing: -.065em; line-height: 1.04; }
.ac-hero h1 span { color: #a5df71; }
.ac-hero > p:last-child { max-width: 620px; margin: 18px 0 0; color: #aeb7aa; font-size: clamp(.96rem, 1.6vw, 1.08rem); line-height: 1.6; }

.ac-studio-grid.vs-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); grid-template-areas: "upload preview" "settings preview"; gap: 18px 28px; align-items: start; }
.ac-studio-grid.ac-wide-preview { grid-template-columns: minmax(0, 1fr) minmax(400px, 500px); }
.ac-workflow { display: contents; }
.ac-panel, .ac-preview-panel { min-width: 0; border: 1px solid rgba(230, 244, 218, .10); border-radius: 24px; background: #151a17; box-shadow: 0 18px 50px rgba(0, 0, 0, .14), inset 0 1px rgba(255, 255, 255, .035); }
.ac-panel { padding: 26px; }
.ac-upload-panel { grid-area: upload; }
.ac-settings-panel { grid-area: settings; }
.ac-section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.ac-step { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #273523; color: #b6e991; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.ac-section-heading h2 { margin: -2px 0 4px; color: #f3f5f0; font-size: 1.28rem; font-weight: 680; letter-spacing: -.025em; line-height: 1.3; }
.ac-section-heading p { margin: 0; color: #9ba79a; font-size: .83rem; line-height: 1.45; }

.ac-dropzone { padding: 0; border: 1px dashed rgba(190, 215, 177, .27); border-radius: 16px; background: #101511; text-align: left; outline: none; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease; }
.ac-dropzone:hover, .ac-dropzone.drag-over, .ac-dropzone:focus-visible { border-color: #9bcf75; background: #172019; box-shadow: 0 0 0 3px rgba(165, 223, 113, .10); }
.ac-dropzone.has-file { border-style: solid; border-color: rgba(165, 223, 113, .45); background: #172019; }
.ac-upload-content { display: flex; align-items: center; gap: 16px; min-height: 102px; padding: 20px; }
.ac-upload-icon { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #253020; color: #afe284; }
.ac-upload-icon-ready { background: #293d25; }
.ac-upload-copy { display: grid; gap: 4px; min-width: 0; }
.ac-upload-copy strong { overflow: hidden; color: #eff2eb; font-size: .93rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ac-upload-copy small { color: #a2ada0; font-size: .77rem; line-height: 1.35; }
.ac-upload-action, .ac-remove-file { flex: 0 0 auto; margin-left: auto; padding: 9px 13px; border: 1px solid rgba(201, 227, 188, .20); border-radius: 10px; background: #242d24; color: #dcebd2; font: 650 .76rem Inter, system-ui, sans-serif; white-space: nowrap; }
.ac-remove-file { cursor: pointer; }
.ac-remove-file:hover { background: #3b2828; border-color: #8f5555; color: #ffd0d0; }

.ac-field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ac-field-heading h3 { margin: 0; color: #e7ebe3; font-size: .82rem; font-weight: 660; }
.ac-field-heading span { color: #8f9a8d; font-size: .73rem; }
.ac-group-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 14px; padding: 4px; border: 1px solid rgba(255,255,255,.05); border-radius: 12px; background: #0d120e; }
.ac-group-tab { min-height: 37px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: #9da89b; font: 620 .78rem Inter, system-ui, sans-serif; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.ac-group-tab:hover { color: #f0f3ed; }
.ac-group-tab.active { background: #2b3529; color: #f3f5f0; box-shadow: 0 2px 8px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.07); }
.ac-style-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ac-style-grid[hidden] { display: none !important; }
.ac-style-pill { display: flex; justify-content: flex-start; align-items: center; gap: 8px; min-height: 47px; padding: 10px 11px; border: 1px solid rgba(218,231,209,.10); border-radius: 12px; background: #1b211c; color: #c9d2c5; font-size: .78rem; font-weight: 590; line-height: 1.2; white-space: normal; text-align: left; box-shadow: none; }
.ac-style-pill:hover { border-color: rgba(165,223,113,.45); background: #242e24; color: #fff; }
.ac-style-pill.active { border-color: #a8df7d; background: #263724; color: #f4f9ef; box-shadow: inset 0 0 0 1px rgba(168,223,125,.16); }
.ac-style-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.045); }
.ac-style-desc { display: flex; align-items: baseline; gap: 9px; min-height: 38px; margin: 13px 0 0; color: #9fae9d; font-size: .76rem; line-height: 1.45; }
.ac-style-desc strong { color: #dce8d4; font-weight: 660; }
.ac-position-heading { margin-top: 26px; }
.ac-position-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border-radius: 12px; background: #0d120e; border: 1px solid rgba(255,255,255,.05); }
.ac-pos-pill { min-height: 38px; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: #9da89b; font-size: .78rem; font-weight: 620; }
.ac-pos-pill:hover { color: #fff; background: #222b22; }
.ac-pos-pill.active { color: #f3f5f0; background: #2b3529; box-shadow: 0 2px 8px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.07); }

.ac-advanced { margin-top: 22px; border: 1px solid rgba(219,238,207,.10); border-radius: 14px; background: #111712; }
.ac-advanced > summary { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 12px 16px; color: #e9eee4; cursor: pointer; list-style: none; }
.ac-advanced > summary::-webkit-details-marker { display: none; }
.ac-advanced > summary:hover { background: rgba(255,255,255,.025); }
.ac-advanced-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #263126; color: #b3d799; font-size: 18px; }
.ac-advanced > summary span:nth-child(2) { display: grid; gap: 2px; }
.ac-advanced > summary strong { font-size: .81rem; font-weight: 650; }
.ac-advanced > summary small { color: #99a597; font-size: .72rem; }
.ac-chevron { margin-left: auto; color: #a9b5a4; transition: transform 180ms ease; }
.ac-advanced[open] .ac-chevron { transform: rotate(180deg); }
.ac-advanced-content { padding: 18px 16px 16px; border-top: 1px solid rgba(219,238,207,.08); }
.ac-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 18px; }
.ac-control { min-width: 0; }
.ac-control > label:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #cbd5c5; font-size: .76rem; font-weight: 630; }
.ac-control input[type="range"] { display: block; width: 100%; margin: 0; }
.ac-control output { color: #b5df91; }
.ac-control input[type="range"] { accent-color: #a4d87d; }
.ac-control select { display: block; width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid rgba(219,238,207,.17); border-radius: 9px; background: #202820; color: #eef2e9; font: 500 .78rem Inter, system-ui, sans-serif; }
.ac-color-control { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.ac-color-control input[type="color"], .ac-inline-controls input[type="color"] { width: 42px; height: 38px; border: 1px solid rgba(219,238,207,.17); border-radius: 9px; background: #202820; padding: 4px; cursor: pointer; }
.ac-color-value { color: #aeb9a8; font-size: .73rem; }
.ac-toggle-row { display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 0; color: #c5d0bf; font-size: .76rem; }
.ac-toggle-row input { accent-color: #a4d87d; }
.ac-inline-controls { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ac-inline-controls input[type="range"] { flex: 1; min-width: 0; }
.ac-position-fine { grid-column: 1 / -1; }
.ac-reset { margin-top: 20px; padding: 8px 0; border: 0; background: transparent; color: #b8dba1; font: 650 .76rem Inter, system-ui, sans-serif; cursor: pointer; }
.ac-reset:hover { color: #e3f5d9; text-decoration: underline; }
.ac-legacy-note { color: #aeb9a8; font-size: .78rem; }
.vs-status { margin-top: 20px; }
.ac-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(219,238,207,.09); }
.ac-submit-row p { margin: 0; color: #a4aea1; font-size: .76rem; line-height: 1.5; }
.ac-submit-row p strong { color: #e4ebdd; font-weight: 680; }
.ac-submit-row p span { display: block; }
.ac-submit-row .vs-generate { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 45px; padding: 11px 17px; border-radius: 11px; background: #a5dc79; color: #14200e; font-size: .82rem; font-weight: 750; }
.ac-submit-row .vs-generate:hover:not(:disabled) { background: #b6e990; }
.ac-submit-row .vs-generate:disabled { background: #323b30; color: #8a9685; }
.ac-submit-row .vs-generate span { font-size: 1.12rem; line-height: 1; }

.ac-preview-panel.vs-preview { grid-area: preview; position: sticky; top: 24px; width: 100%; max-width: none; padding: 24px; justify-self: stretch; }
.ac-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ac-preview-kicker { color: #a3bc95; font-size: .62rem; font-weight: 750; letter-spacing: .13em; }
.ac-preview-top h2 { margin: 3px 0 0; font-size: 1.12rem; font-weight: 670; letter-spacing: -.025em; }
.ac-preview-badge { padding: 7px 10px; border: 1px solid rgba(192,219,174,.16); border-radius: 999px; background: #243023; color: #c4e3af; font-size: .69rem; font-weight: 680; white-space: nowrap; }
.ac-preview-stage { display: flex; align-items: center; justify-content: center; min-height: 500px; padding: 24px; border: 1px solid rgba(236,246,227,.06); border-radius: 18px; background: radial-gradient(ellipse at 50% 40%, #252d27, #0d120f 76%); }
.ac-preview-panel .vs-phone { max-width: 248px; border: 1px solid rgba(239,246,232,.18); border-radius: 20px; box-shadow: 0 20px 52px rgba(0,0,0,.48); }
.ac-preview-panel .vs-phone.ac-has-source { max-width: var(--ac-preview-width, 248px); aspect-ratio: var(--ac-preview-ratio, 9 / 16); border-radius: 16px; }
.ac-preview-panel .vs-phone.ac-has-source video { border-radius: 16px !important; }
.ac-preview-panel #acSourcePreview { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
#acSourcePreview[hidden], #vsResult[hidden] { display: none !important; }
.ac-preview-panel #acPreviewMock { position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: linear-gradient(160deg, #263027, #0a0d0b 68%); pointer-events: none; }
.ac-preview-panel #acPreviewMock.ac-on-video { background: transparent; }
.ac-phone-screen-inner { position: relative; width: 100%; height: 100%; }
#acSampleText { position: absolute; left: 5%; right: 5%; bottom: 10%; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; text-align: center; text-transform: uppercase; word-break: break-word; }
.ac-sample-box { display: inline; padding: 2px 5px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ac-sample-active { display: inline-block; color: var(--ac-highlight, #00e5ff); }
.ac-sample[data-style="hormozi"] { --ac-highlight: #00ffff; text-shadow: 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
.ac-sample[data-style="mrbeast"] { --ac-highlight: #ff6600; color: #ffff00; text-shadow: 2px 2px #000, -2px -2px #000, 2px -2px #000, -2px 2px #000; }
.ac-sample[data-style="prestige"] { --ac-highlight: #ffd700; text-shadow: 0 2px 8px #000; }
.ac-sample[data-style="clarity"] { --ac-highlight: #0de079; text-shadow: 0 2px 8px #000; }
.ac-sample[data-style="vibe"] { --ac-highlight: #ff99cc; text-shadow: 0 2px 8px #000; }
.ac-sample[data-style="impact"] { --ac-highlight: #ff0000; font-style: italic; text-shadow: 2px 2px #000, -2px -2px #000, 2px -2px #000, -2px 2px #000; }
.ac-sample[data-animation="scale"] .ac-sample-active, .ac-sample[data-animation="bounce"] .ac-sample-active { animation: ac-word-pop .45s ease-in-out infinite alternate; }
@keyframes ac-word-pop { from { transform: scale(.98); } to { transform: scale(1.08); } }
.ac-preview-panel #vsResult { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.ac-preview-panel .vs-busy { z-index: 3; }
.ac-preview-controls { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.ac-preview-controls[hidden] { display: none !important; }
.ac-preview-controls button { min-width: 74px; padding: 7px 12px; border: 1px solid rgba(219,238,207,.16); border-radius: 999px; background: #212b21; color: #d4e9c6; font: 620 .72rem Inter, system-ui, sans-serif; cursor: pointer; }
.ac-preview-controls button:hover { background: #2d3b2b; }
.ac-preview-hint, .ac-preview-empty { margin: 15px 0 0; color: #a8b3a4; font-size: .72rem; line-height: 1.55; text-align: center; }
.ac-preview-hint[hidden], .ac-preview-empty[hidden] { display: none !important; }
.ac-studio-grid.ac-wide-preview .ac-preview-panel { max-width: none; }

.ac-page button:focus-visible, .ac-page summary:focus-visible, .ac-page .ac-dropzone:focus-visible { outline: 2px solid #b6e990; outline-offset: 3px; }
@media (max-width: 860px) {
  .ac-shell { padding: 38px 20px 70px; }
  .ac-studio-grid.vs-grid, .ac-studio-grid.ac-wide-preview { grid-template-columns: minmax(0, 1fr); grid-template-areas: "upload" "preview" "settings"; gap: 16px; }
  .ac-preview-panel.vs-preview { position: static; }
  .ac-preview-stage { min-height: 350px; }
  .ac-preview-panel .vs-phone { max-width: 190px; }
}
@media (max-width: 540px) {
  .ac-shell { padding: 28px 16px 64px; }
  .ac-hero { margin-bottom: 30px; }
  .ac-hero h1 { font-size: clamp(2.7rem, 13vw, 3.8rem); }
  .ac-panel, .ac-preview-panel.vs-preview { padding: 19px; border-radius: 20px; }
  .ac-section-heading { margin-bottom: 20px; }
  .ac-upload-content { gap: 12px; min-height: 88px; padding: 14px; }
  .ac-upload-icon { width: 42px; height: 42px; }
  .ac-upload-action { display: none; }
  .ac-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-style-desc { display: block; min-height: 0; }
  .ac-style-desc strong { margin-right: 7px; }
  .ac-control-grid { grid-template-columns: 1fr; gap: 18px; }
  .ac-position-fine { grid-column: auto; }
  .ac-submit-row { align-items: stretch; flex-direction: column; gap: 14px; }
  .ac-submit-row p span { display: inline; }
  .ac-submit-row .vs-generate { width: 100%; }
  .ac-preview-stage { min-height: 335px; padding: 18px; }
  .ac-preview-panel .vs-phone { max-width: 165px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-page .ac-chevron, .ac-page .ac-style-pill, .ac-page .ac-group-tab, .ac-page .ac-dropzone { transition: none; }
  .ac-page .ac-sample-active { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .ac-panel, .ac-preview-panel { background: #151a17; box-shadow: none; }
}
@media (prefers-contrast: more) {
  .ac-panel, .ac-preview-panel, .ac-style-pill, .ac-advanced { border-color: #b9c9af; }
  .ac-page .ac-section-heading p, .ac-page .ac-style-desc, .ac-page .ac-preview-hint { color: #e0e8da; }
}
