:root {
  --bg: #111113;
  --surface: #1b1b1e;
  --surface-raised: #222226;
  --surface-soft: #28282d;
  --border: #37373d;
  --border-soft: #2b2b30;
  --text: #f6f5f4;
  --text-soft: #c8c6c5;
  --muted: #949196;
  --red: #ff4052;
  --red-deep: #d92f43;
  --orange: #ff8548;
  --pink: #ef5aa8;
  --green: #a8d7a4;
  --font: 'Bricolage Grotesque', Inter, ui-sans-serif, system-ui, sans-serif;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { background: rgba(255,64,82,.3); color: #fff; }
.is-hidden { display: none !important; }

.page-shell { width: min(var(--shell), calc(100% - 56px)); margin: 0 auto; padding: 82px 0 82px; }
.hero { min-height: 330px; display: grid; grid-template-columns: minmax(0, 770px) minmax(210px, 1fr); align-items: center; gap: clamp(18px, 2.2vw, 30px); padding: 30px 0 58px; position: relative; }
.hero-copy { width: 100%; max-width: 770px; min-width: 0; position: relative; z-index: 1; }
.eyebrow, .section-kicker, .content-mark, .column-step, .queue-heading { font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.eyebrow { color: #a09da1; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 2px; background: var(--red); display: inline-block; }
.eyebrow-divider { color: var(--orange); }
.hero h1 { font-size: clamp(54px, 6.3vw, 82px); letter-spacing: -.07em; line-height: .94; margin: 0 0 13px; font-weight: 800; }
.accent-orange { color: var(--orange); }
.accent-fuchsia { color: var(--pink); }
.accent-red { color: var(--red); }
.hero-subtitle { margin: 0 0 15px; color: #e4dfe0; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.hero-lede { max-width: 700px; margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.68; }
.hero-points { display: flex; flex-wrap: wrap; gap: 11px 24px; margin-top: 25px; color: #dedbdd; font-size: 12px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.point-check { width: 17px; height: 17px; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; border-radius: 5px; color: var(--red); background: rgba(255,64,82,.08); }

/* Compact file illustration: layered document shapes instead of decorative orbit rings. */
.hero-stamp { width: clamp(220px, 24vw, 286px); max-width: 100%; height: 245px; min-width: 0; position: relative; display: block; justify-self: start; margin: 0; }
.art-file { position: absolute; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #414148; border-radius: 15px; background: #1a1a1e; box-shadow: 0 22px 46px rgba(0,0,0,.3); }
.art-file-back { width: 164px; height: 168px; left: 8px; top: 43px; padding: 16px 15px; transform: rotate(-6deg); background: #19191c; }
.art-file-front { width: 174px; height: 190px; right: 14px; top: 13px; padding: 16px 16px 12px; transform: rotate(4deg); background: #202024; border-color: #4a3439; }
.art-file-label { color: #a9a5a9; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.art-image-preview { width: 100%; height: 87px; position: relative; margin: 12px 0 8px; overflow: hidden; border: 1px solid #3c3b40; border-radius: 8px; background: #27272b; }
.art-image-preview::before { content: ''; position: absolute; width: 100%; height: 100%; left: 0; top: 0; background: linear-gradient(145deg, transparent 45%, rgba(255,120,63,.16) 46% 100%); }
.art-image-preview i { position: absolute; width: 19px; height: 17px; border: 2px solid var(--orange); border-radius: 4px; top: 13px; right: 17px; }
.art-image-preview b { position: absolute; width: 112px; height: 54px; left: 10px; bottom: -19px; transform: rotate(-18deg); background: #ff7840; opacity: .78; clip-path: polygon(0 100%,30% 10%,48% 65%,70% 0,100% 100%); }
.art-image-preview span { position: absolute; width: 70px; height: 2px; left: 11px; top: 13px; background: #747078; }
.art-file small { color: #8d8990; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.art-file-front svg { width: 100%; height: 100px; margin: 8px 0 4px; }
.art-file-front small { color: #ff7882; }
.art-bridge { position: absolute; left: 128px; top: 107px; width: 34px; height: 28px; z-index: 3; display: flex; align-items: center; justify-content: center; color: #f0dfe1; background: var(--red); border-radius: 7px; box-shadow: 0 8px 22px rgba(255,64,82,.2); }
.art-bridge b { font-size: 17px; line-height: 1; }
.art-bridge span { display: none; }
.art-caption { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: max-content; color: #a6a1a6; font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.art-caption i { color: var(--orange); font-style: normal; padding: 0 5px; }

.converter-section { margin-top: 4px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin: 0 0 22px; }
.section-kicker { color: var(--red); margin-bottom: 7px; }
.section-heading h2, .content-grid h2 { font-size: clamp(30px, 3vw, 41px); letter-spacing: -.05em; line-height: 1.1; margin: 0; font-weight: 750; }
.workspace-heading { padding: 0 4px; }
.workspace-meta { max-width: 260px; margin: 0 0 4px; color: var(--muted); font-size: 12px; text-align: right; }

.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mode-card { min-height: 88px; display: flex; align-items: center; gap: 16px; text-align: left; padding: 17px 20px; background: #19191c; border: 1px solid #34343a; border-radius: 12px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.mode-card:hover { border-color: #565057; background: #1e1d21; transform: translateY(-1px); }
.mode-card.is-active { border-color: rgba(255,64,82,.78); background: #241a1d; box-shadow: inset 0 0 0 1px rgba(255,64,82,.12); }
.mode-card[data-mode="svg-to-image"].is-active { border-color: rgba(255,64,82,.78); background: #241a1d; box-shadow: inset 0 0 0 1px rgba(255,64,82,.12); }
.mode-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 10px; font-size: 23px; font-weight: 600; background: #292024; color: var(--red); }
.mode-icon-orange { color: var(--orange); background: #2b211d; }
.mode-icon-pink { color: var(--red); background: #2b1d22; }
.mode-copy { display: flex; flex-direction: column; gap: 2px; }
.mode-copy strong { font-size: 17px; letter-spacing: -.025em; }
.mode-copy strong em { color: var(--red); font-style: normal; padding: 0 3px; }
.mode-card[data-mode="svg-to-image"] .mode-copy strong em { color: var(--red); }
.mode-copy small { color: #a5a1a6; font-size: 12px; }
.mode-arrow { display: none; }

.workbench { border: 1px solid #35353b; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 26px 65px rgba(0,0,0,.24); }
.workbench-topline { min-height: 58px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-soft); background: #202024; }
.workbench-title { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 750; }
.privacy-chip { display: inline-flex; align-items: center; color: #c4c0c4; font-size: 11px; font-weight: 600; }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); }
.input-column, .settings-column { padding: 28px; min-width: 0; }
.input-column { border-right: 1px solid var(--border-soft); }
.column-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; min-height: 43px; }
.column-heading h3, .results-head h3 { margin: 4px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -.04em; }
.column-step { color: #a29da3; font-size: 9px; letter-spacing: .17em; }
.file-counter { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.04em; }
.file-counter i { font-size: 12px; font-style: normal; color: var(--muted); font-weight: 600; }
.dropzone { min-height: 224px; padding: 29px 16px 23px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #555158; border-radius: 12px; background: #202024; cursor: pointer; outline: none; transition: border-color .18s ease, background .18s ease; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-dragging { border-color: var(--red); background: #251c20; }
.mode-svg .dropzone:hover, .mode-svg .dropzone:focus-visible, .mode-svg .dropzone.is-dragging { border-color: var(--red); background: #251c20; }
.dropzone-icon { color: var(--red); width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 11px; }
.dropzone-icon svg { width: 42px; height: 42px; }
.dropzone strong { font-size: 18px; letter-spacing: -.025em; }
.dropzone > span { color: #aaa5ab; font-size: 12px; margin-top: 3px; }
.dropzone u { color: var(--red); text-decoration-color: rgba(255,64,82,.65); text-underline-offset: 3px; }
.mode-svg .dropzone u, .mode-svg .dropzone-icon { color: var(--red); }
.format-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.format-pills span { padding: 5px 8px; font-size: 9px; font-weight: 800; letter-spacing: .07em; color: #c9c5c9; background: #2b2b30; border: 1px solid #3b3a41; border-radius: 5px; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; color: #a09ca2; margin: 21px 0 10px; font-size: 9px; }
.text-button { border: 0; padding: 2px 0; background: transparent; color: #b4afb5; font-size: 11px; font-weight: 650; cursor: pointer; }
.text-button b { color: var(--red); font-size: 16px; margin-left: 3px; vertical-align: -1px; }
.text-button:disabled { opacity: .35; cursor: not-allowed; }
.file-list { display: flex; flex-direction: column; gap: 8px; max-height: 294px; overflow-y: auto; padding-right: 2px; }
.empty-queue { min-height: 76px; border: 1px solid #303036; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #89858d; font-size: 12px; background: #1e1e22; }
.empty-queue-mark { width: 23px; height: 23px; border-radius: 6px; display: grid; place-items: center; border: 1px solid #49434a; color: var(--orange); font-size: 16px; }
.file-row { min-height: 62px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto 28px; align-items: center; gap: 10px; border: 1px solid #36363c; border-radius: 9px; padding: 8px 10px; background: #222226; }
.file-thumb { width: 38px; height: 38px; border-radius: 7px; border: 1px solid #424148; display: grid; place-items: center; overflow: hidden; background: #2b2b30; color: var(--orange); font-size: 10px; font-weight: 800; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-info { min-width: 0; display: flex; flex-direction: column; }
.file-name { font-size: 12px; font-weight: 700; color: #f0edf0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 10px; color: #99949b; }
.file-state { font-size: 10px; color: #b8afb5; white-space: nowrap; }
.file-state.is-done { color: var(--green); }
.file-remove { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #9e98a0; font-size: 18px; cursor: pointer; }
.file-remove:hover { background: #392126; color: var(--red); }
.queue-footnote { margin-top: 14px; color: #9b969d; font-size: 10px; display: flex; align-items: center; gap: 7px; }
.mini-check { color: var(--orange); font-weight: 800; }

.settings-column { background: #1d1d21; display: flex; flex-direction: column; }
.settings-card { border: 1px solid #37373d; border-radius: 11px; padding: 17px; background: #242428; }
.setting-row { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-row label, .setting-block label { color: #f0edf0; font-size: 13px; font-weight: 700; }
.setting-row p { margin: 3px 0 0; color: #a19ca3; font-size: 11px; line-height: 1.5; }
.format-token { font-size: 11px; font-weight: 800; padding: 6px 9px; border-radius: 6px; background: #30201f; color: var(--red); border: 1px solid #63343b; letter-spacing: .04em; }
.setting-value { color: #e0d9dc; font-size: 11px; font-weight: 700; }
.setting-divider { height: 1px; background: #3b3a40; margin: 12px 0; }
.setting-note { display: flex; align-items: flex-start; gap: 9px; color: #aaa5ac; font-size: 11px; line-height: 1.65; margin-top: 15px; }
.setting-block { display: flex; flex-direction: column; gap: 9px; }
.setting-label-line { display: flex; justify-content: space-between; align-items: center; }
.select-control { width: 100%; appearance: none; border: 1px solid #4a474e; border-radius: 8px; background: #1d1d21; color: #f1eef0; padding: 12px 36px 12px 12px; outline: none; font-size: 12px; font-weight: 600; cursor: pointer; 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='m2.5 4.5 3.5 3 3.5-3' stroke='%23C9C2C8' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.select-control:focus { border-color: var(--red); }
.mode-svg .column-step { color: #aaa2aa; }
.mode-svg .settings-symbol { display: none; }
.convert-button { min-height: 55px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 19px; margin-top: 16px; border: 1px solid #ff6673; border-radius: 9px; color: #fff; background: var(--red); font-size: 14px; font-weight: 800; cursor: pointer; transition: background .18s ease, transform .18s ease, opacity .18s ease; }
.convert-button:hover:not(:disabled) { background: #ff5264; transform: translateY(-1px); }
.convert-button:disabled { cursor: not-allowed; opacity: .43; filter: saturate(.65); }
.button-arrow { display: none; }
.mode-svg .convert-button { background: var(--red); border-color: #ff6673; color: #fff; }
.mode-svg .convert-button:hover:not(:disabled) { background: #ff5264; }
.convert-hint { min-height: 16px; margin: 9px 0 0; text-align: center; color: #99939b; font-size: 10px; }

.results-panel { border-top: 1px solid var(--border-soft); padding: 24px 28px 26px; background: #1a1a1e; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.results-count { font-size: 11px; color: var(--green); font-weight: 700; }
.results-actions { display: flex; align-items: center; gap: 14px; }
.zip-button { padding: 10px 13px; background: #30201f; color: #ff7b85; border: 1px solid #66353d; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 800; }
.zip-button span { font-size: 15px; margin-right: 5px; }
.zip-button:disabled { opacity: .4; cursor: not-allowed; }
.progress-wrap { margin: 0 0 17px; }
.progress-copy { display: flex; justify-content: space-between; color: #c2bbc2; font-size: 11px; margin-bottom: 8px; }
.progress-copy strong { color: var(--red); }
.progress-track { height: 5px; border-radius: 10px; background: #343238; overflow: hidden; }
.progress-track span { height: 100%; display: block; width: 0%; background: var(--red); transition: width .2s ease; }
.result-list { display: flex; flex-direction: column; gap: 8px; }
.result-row { min-height: 68px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 9px 12px; background: #242428; border: 1px solid #39383f; border-radius: 9px; }
.result-preview { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 7px; background-color: #303036; background-image: linear-gradient(45deg,#38383e 25%,transparent 25%),linear-gradient(-45deg,#38383e 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#38383e 75%),linear-gradient(-45deg,transparent 75%,#38383e 75%); background-size: 12px 12px; background-position: 0 0,0 6px,6px -6px,-6px 0; overflow: hidden; }
.result-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.result-info { min-width: 0; display: flex; flex-direction: column; }
.result-name { color: #f3f0f3; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-meta { color: #a09aa2; font-size: 10px; }
.result-ready { color: var(--green); font-size: 10px; font-weight: 700; }
.download-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #713b42; border-radius: 7px; background: #302024; color: #ff858e; font-size: 10px; font-weight: 800; text-decoration: none; cursor: pointer; }
.download-button:hover { background: #3c252c; border-color: var(--red); }
.workspace-bottom { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 26px; background: #17171a; border-top: 1px solid #2d2d32; color: #9c979e; font-size: 10px; }
.workspace-bottom i { color: var(--orange); font-style: normal; }

.content-section { padding: 86px 8px 0; }
.content-mark { display: flex; gap: 9px; align-items: center; color: #9b969d; margin-bottom: 24px; font-size: 9px; }
.content-mark span { color: var(--red); }
.content-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 74px; align-items: start; }
.content-grid h2 { max-width: 470px; }
.content-copy { color: #c6c1c7; font-size: 14px; line-height: 1.85; }
.content-copy p { margin: 0 0 16px; }
.content-copy p:last-child { margin-bottom: 0; }
.feature-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-top: 34px; }
.feature-item { min-height: 180px; padding: 22px 22px 21px; border: 1px solid #34343a; border-radius: 11px; background: #1a1a1e; }
.feature-number { color: var(--red); font-weight: 800; font-size: 11px; letter-spacing: .1em; }
.feature-pink { color: var(--orange); }
.feature-red { color: var(--pink); }
.feature-item h3 { margin: 16px 0 8px; font-size: 18px; letter-spacing: -.03em; }
.feature-item p { color: #b0abb2; font-size: 12px; line-height: 1.75; margin: 0; }
.section-subtitle { margin: 9px 0 0; color: #aaa5ad; font-size: 13px; line-height: 1.7; }
.use-section .section-heading, .faq-section .section-heading { margin-bottom: 24px; }
.use-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.use-card { min-height: 196px; padding: 23px; background: #1b1b1f; border: 1px solid #36363c; border-radius: 11px; position: relative; overflow: hidden; }
.use-card::after { content: none; }
.use-card-orange, .use-card-pink, .use-card-red { color: var(--red); border-top-color: #36363c; }
.use-card-orange .use-glyph { color: var(--orange); }
.use-card-pink .use-glyph { color: var(--pink); }
.use-card-red .use-glyph { color: var(--red); }
.use-glyph { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.use-card h3 { color: #f3f0f3; font-size: 17px; margin: 16px 0 8px; letter-spacing: -.025em; }
.use-card p { color: #b3aeb5; font-size: 12px; margin: 0; line-height: 1.75; max-width: 350px; }
.comparison-grid { margin-bottom: 24px; }
.format-table-wrap { overflow-x: auto; border: 1px solid #37373d; border-radius: 11px; background: #1b1b1f; }
.format-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.format-table th { text-align: left; padding: 14px 18px; color: #a7a1a9; font-size: 9px; letter-spacing: .14em; background: #242428; border-bottom: 1px solid #3a3940; }
.format-table td { padding: 16px 18px; color: #c8c3c9; font-size: 12px; border-bottom: 1px solid #303036; }
.format-table tr:last-child td { border-bottom: 0; }
.format-table td:first-child { color: #f5f2f5; width: 90px; }
.format-svg { color: var(--red); }
/* FAQ: separate, softly raised rows with proper inner breathing room. */
.faq-list { display: grid; gap: 9px; padding: 0 2px; }
.faq-item { border: 0; border-radius: 11px; padding: 0 21px; background: #19191d; transition: background .16s ease; }
.faq-item[open] { background: #202024; padding-left: 21px; border: 0; }
.faq-item summary { list-style: none; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 17px 0; color: #f1eef2; font-size: 14px; font-weight: 700; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border: 0; color: #c2bac2; background: #30272e; border-radius: 8px; font-size: 17px; font-weight: 400; transition: transform .15s ease, color .15s ease, background .15s ease; }
.faq-item[open] .faq-x { color: #fff; background: rgba(255,64,82,.2); }
.faq-item:not([open]) .faq-x { transform: rotate(45deg); color: #d5c3ce; background: #2a242b; }
.faq-answer { max-width: 960px; padding: 0 50px 22px 0; color: #c2bcc4; font-size: 13px; line-height: 1.8; }
.closing-line { margin: 70px 8px 0; padding: 20px 0 12px; border: 0; display: flex; align-items: center; justify-content: center; }
.closing-line p { margin: 0; color: #c5bfc6; font-size: 14px; text-align: center; }
.closing-line strong { color: #fff; }
.closing-dot { display: none; }
.toast-region { position: fixed; z-index: 120; right: 24px; bottom: 24px; width: min(370px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 13px 16px; border: 1px solid #604047; background: #262024; color: #f6e9ec; border-radius: 9px; box-shadow: 0 15px 40px rgba(0,0,0,.35); font-size: 12px; animation: toast-in .2s ease-out; }
.toast.error { border-color: #8e3543; background: #2d1d23; }
.toast.success { border-color: #425d46; background: #1f2921; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* Injected Runtime Hub chrome */
.rh-topbar { position: fixed; z-index: 100; inset: 0 0 auto; height: 66px; background: rgba(17,17,19,.86); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.rh-topbar-inner { width: min(var(--shell), calc(100% - 56px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rh-tool-title { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.rh-home-button { min-height: 38px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #47434a; border-radius: 8px; background: rgba(34,33,37,.78); text-decoration: none; color: #f5f1f4; font-size: 11px; font-weight: 800; transition: background .15s ease, border-color .15s ease; }
.rh-home-button:hover { background: #302329; border-color: #80434d; }
.rh-home-button span { display: none; }
.rh-footer { border: 0; background: var(--bg); padding: 48px 0 25px; }
.rh-footer-inner { width: min(var(--shell), calc(100% - 56px)); margin: 0 auto; }
.rh-footer-top { display: grid; grid-template-columns: 1.05fr 2fr; gap: 70px; padding-bottom: 38px; }
.rh-footer-brand { max-width: 320px; }
.rh-footer-brand-lockup { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.rh-footer-brand p { color: #aaa4ac; font-size: 12px; line-height: 1.8; margin: 15px 0 0; }
.rh-footer-brand .rh-footer-free { color: #e0dbe0; font-weight: 700; }
.rh-footer-groups { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.rh-footer-group h3 { color: #f0ecf0; font-size: 10px; letter-spacing: .1em; margin: 3px 0 14px; text-transform: uppercase; }
.rh-footer-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 7px 0; border: 0; }
.rh-footer-link strong { font-size: 11px; color: #e0dbe0; font-weight: 700; transition: color .15s ease; }
.rh-footer-link span { color: #918b94; font-size: 9px; }
.rh-footer-link:hover strong { color: var(--red); }
.rh-footer-group:nth-child(2) h3 { color: var(--orange); }
.rh-footer-group:nth-child(3) h3 { color: var(--pink); }
.rh-footer-group:nth-child(2) .rh-footer-link:hover strong { color: var(--orange); }
.rh-footer-group:nth-child(3) .rh-footer-link:hover strong { color: var(--pink); }
.rh-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; padding-top: 9px; color: #918b94; font-size: 10px; }
.rh-footer-bottom strong { color: #d5cfd6; }
.rh-footer-bottom a { color: #b9b2bb; text-decoration: none; }
.rh-footer-bottom a:hover { color: var(--red); }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(210px, 240px); gap: 20px; padding-right: 4px; }
  .hero-copy { max-width: none; }
  .hero-stamp { width: 100%; max-width: 240px; height: 230px; transform: none; margin: 0; }
  .workbench-grid { grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr); }
  .input-column, .settings-column { padding: 23px; }
  .content-grid { gap: 42px; }
  .rh-footer-top { gap: 38px; }
}
@media (max-width: 760px) {
  .page-shell { width: min(100% - 32px, var(--shell)); padding-top: 66px; padding-bottom: 60px; }
  .rh-topbar { height: 60px; }
  .rh-topbar-inner, .rh-footer-inner { width: calc(100% - 32px); }
  .rh-tool-title { font-size: 14px; }
  .rh-home-button { min-height: 35px; padding: 0 11px; }
  .hero { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(210px, 220px); padding: 30px 0 42px; gap: 16px; }
  .hero-stamp { width: 100%; max-width: 220px; height: 210px; transform: none; margin: 0; }
  .hero h1 { font-size: clamp(45px, 10vw, 66px); }
  .hero-subtitle { font-size: 14px; }
  .hero-lede { font-size: 14px; line-height: 1.7; }
  .hero-points { gap: 9px 15px; margin-top: 19px; font-size: 11px; }
  .section-heading h2, .content-grid h2 { font-size: 30px; }
  .workspace-heading { align-items: flex-start; }
  .workspace-meta { max-width: 150px; font-size: 10px; padding-top: 5px; }
  .mode-switch { gap: 8px; }
  .mode-card { padding: 12px; min-height: 76px; gap: 9px; }
  .mode-icon { width: 35px; height: 35px; flex-basis: 35px; font-size: 19px; }
  .mode-copy strong { font-size: 13px; }
  .mode-copy small { font-size: 10px; line-height: 1.35; }
  .workbench-topline { min-height: 52px; padding: 0 16px; }
  .privacy-chip { font-size: 10px; }
  .workbench-grid { grid-template-columns: 1fr; }
  .input-column, .settings-column { padding: 20px 16px; }
  .input-column { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .settings-column { background: #1d1d21; }
  .dropzone { min-height: 190px; }
  .file-list { max-height: 260px; }
  .workspace-bottom { padding: 12px 16px; flex-wrap: wrap; min-height: 50px; font-size: 9px; }
  .results-panel { padding: 20px 16px; }
  .results-head { align-items: flex-start; }
  .results-actions { flex-direction: column-reverse; align-items: flex-end; gap: 7px; }
  .result-row { grid-template-columns: 40px minmax(0,1fr) auto; gap: 8px; }
  .result-preview { width: 40px; height: 40px; }
  .result-ready { display: none; }
  .download-button { padding: 8px 9px; }
  .content-section { padding: 61px 1px 0; }
  .content-grid { grid-template-columns: 1fr; gap: 16px; }
  .content-copy { font-size: 13px; }
  .feature-strip, .use-grid { grid-template-columns: 1fr; }
  .feature-item { min-height: 0; }
  .use-card { min-height: 0; }
  .faq-item summary { font-size: 13px; min-height: 58px; }
  .faq-answer { font-size: 12px; padding: 0 8px 20px 0; }
  .closing-line { margin-top: 57px; padding: 20px 8px; }
  .closing-line p { font-size: 12px; }
  .rh-footer { padding: 38px 0 21px; }
  .rh-footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .rh-footer-groups { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .rh-footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 620px) {
  .hero { display: block; min-height: 0; padding: 28px 1px 42px; }
  .hero-stamp { width: 230px; max-width: 100%; height: 194px; margin: 28px auto 0; transform: scale(.82); transform-origin: top center; }
}
@media (max-width: 520px) {
  .hero { display: block; padding-top: 25px; }
  .hero-stamp { width: 230px; height: 194px; margin: 28px auto 0; transform: scale(.82); transform-origin: top center; }
  .hero-points { display: flex; }
  .workspace-heading { display: block; }
  .workspace-meta { max-width: none; text-align: left; margin-top: 8px; }
  .mode-switch { grid-template-columns: 1fr; }
  .mode-card { min-height: 72px; }
  .mode-copy strong { font-size: 15px; }
  .mode-copy small { font-size: 11px; }
  .file-row { grid-template-columns: 34px minmax(0,1fr) 25px; gap: 8px; }
  .file-thumb { width: 34px; height: 34px; }
  .file-state { grid-column: 2; grid-row: 2; margin-top: -5px; }
  .file-remove { grid-column: 3; grid-row: 1 / span 2; }
  .results-head { gap: 10px; }
  .results-head h3 { font-size: 18px; }
  .results-actions { align-items: flex-end; }
  .result-row { grid-template-columns: 37px minmax(0,1fr); }
  .result-preview { width: 37px; height: 37px; grid-row: span 2; }
  .result-info { grid-column: 2; }
  .download-button { grid-column: 2; justify-self: start; }
  .result-ready { display: none; }
  .format-table { min-width: 560px; }
  .rh-footer-groups { column-gap: 14px; }
}
@media (max-width: 360px) {
  .page-shell { width: calc(100% - 26px); }
  .hero h1 { font-size: 43px; }
  .hero-points { display: grid; grid-template-columns: 1fr; }
  .workbench-topline { align-items: flex-start; flex-direction: column; justify-content: center; gap: 1px; padding-top: 7px; padding-bottom: 7px; }
  .privacy-chip { font-size: 9px; }
  .rh-footer-groups { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.rh-topbar {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), background .28s ease;
}
.rh-topbar.rh-topbar-hidden {
  transform: translate3d(0, -110%, 0);
  pointer-events: none;
}

/* Mobile workspace: compact controls, with room reserved for real file previews. */
@media (max-width: 760px) {
  .workbench-topline { min-height: 46px; padding: 0 14px; }
  .workbench-title { font-size: 13px; }
  .input-column, .settings-column { padding: 16px 14px; }
  .column-heading { min-height: 36px; margin-bottom: 12px; }
  .column-heading h3, .results-head h3 { font-size: 19px; }
  .dropzone { min-height: 150px; padding: 19px 13px 16px; }
  .dropzone-icon { width: 36px; height: 36px; margin-bottom: 7px; }
  .dropzone-icon svg { width: 34px; height: 34px; }
  .dropzone strong { font-size: 16px; }
  .format-pills { margin-top: 10px; }
  .queue-heading { margin: 15px 0 8px; }
  .file-list { max-height: 300px; gap: 7px; }
  .queue-footnote { margin-top: 9px; font-size: 9px; }
  .settings-card { padding: 13px; }
  .setting-row { min-height: 42px; }
  .setting-divider { margin: 8px 0; }
  .setting-note { margin-top: 10px; line-height: 1.5; }
  .setting-block { gap: 7px; }
  .select-control { padding: 10px 34px 10px 11px; }
  .convert-button { min-height: 48px; margin-top: 12px; }
  .convert-hint { margin-top: 7px; }

  /* Keep the upload affordance available without letting it dominate the queue. */
  .input-column.has-files .dropzone {
    min-height: 52px;
    padding: 9px 12px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 9px;
    text-align: left;
    border-style: solid;
    border-color: #444047;
    background: #202024;
  }
  .input-column.has-files .dropzone-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: 0;
  }
  .input-column.has-files .dropzone-icon svg { width: 25px; height: 25px; }
  .input-column.has-files .dropzone strong { font-size: 12px; white-space: nowrap; }
  .input-column.has-files .dropzone > span { margin: 0; font-size: 10px; }
  .input-column.has-files .format-pills { display: none; }
  .input-column.has-files .queue-heading { margin-top: 13px; }
}

@media (max-width: 620px) {
  /* A compact thumbnail gallery makes the queued images immediately scannable. */
  .input-column.has-files .file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    align-content: start;
    gap: 8px;
    max-height: 322px;
    overflow-y: auto;
    padding: 1px 2px 2px 0;
  }
  .input-column.has-files .file-row {
    min-height: 0;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 82px auto auto;
    align-content: start;
    gap: 5px;
    padding: 7px;
    border-radius: 9px;
  }
  .input-column.has-files .file-thumb {
    width: 100%;
    height: 82px;
    grid-column: 1;
    grid-row: 1;
    border-radius: 6px;
    background-color: #29292e;
  }
  .input-column.has-files .file-thumb img { object-fit: cover; }
  .input-column.has-files .file-info {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding-right: 1px;
  }
  .input-column.has-files .file-name { font-size: 10px; }
  .input-column.has-files .file-meta { font-size: 9px; }
  .input-column.has-files .file-state {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    font-size: 9px;
  }
  .input-column.has-files .file-remove {
    position: absolute;
    z-index: 2;
    top: 11px;
    right: 11px;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    background: rgba(17,17,19,.86);
    color: #f0e9ed;
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .mode-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .mode-card { min-height: 66px; padding: 8px; gap: 7px; border-radius: 9px; }
  .mode-icon { width: 29px; height: 29px; flex-basis: 29px; border-radius: 8px; font-size: 16px; }
  .mode-copy { min-width: 0; }
  .mode-copy strong { font-size: 12px; white-space: nowrap; }
  .mode-copy small { font-size: 9px; line-height: 1.25; }
  .workbench-topline { min-height: 43px; }
  .input-column, .settings-column { padding: 14px 12px; }
  .column-heading { min-height: 32px; margin-bottom: 10px; }
  .column-heading h3, .results-head h3 { font-size: 18px; }
  .dropzone { min-height: 138px; padding: 15px 11px 13px; }
  .input-column.has-files .dropzone { min-height: 48px; padding: 8px 10px; }
  .input-column.has-files .dropzone-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .input-column.has-files .dropzone-icon svg { width: 23px; height: 23px; }
  .input-column.has-files .dropzone strong { font-size: 11px; }
  .input-column.has-files .dropzone > span { font-size: 9px; }
  .input-column.has-files .file-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; }
  .input-column.has-files .file-row { grid-template-rows: 76px auto auto; }
  .input-column.has-files .file-thumb { height: 76px; }
  .settings-card { padding: 12px; }
  .setting-row label, .setting-block label { font-size: 12px; }
  .setting-row p { font-size: 10px; }
  .setting-note { font-size: 10px; }
  .convert-button { min-height: 46px; font-size: 13px; }
}

@media (max-width: 360px) {
  .mode-card { gap: 6px; padding: 7px; }
  .mode-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .mode-copy strong { font-size: 11px; }
  .mode-copy small { font-size: 8px; }
  .input-column.has-files .file-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .input-column.has-files .file-row { grid-template-rows: 68px auto auto; }
  .input-column.has-files .file-thumb { height: 68px; }
}
