*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
.subscription-dialog { width: min(34rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 1.5rem; border: 1px solid #b39a85; border-radius: 1rem; color: #392c23; background: #fcf8f1 }
.subscription-dialog::backdrop { background: rgb(51 37 28 / 54%) }
.subscription-dialog h2 { margin-block: 0 .6rem }
.subscription-dialog .actions { margin-block-start: 1rem }
#subscription-choices { display: grid; gap: .75rem }
#subscription-choices label { display: flex; gap: .65rem; align-items: flex-start }
#subscription-choices input { margin-block-start: .22em; flex: none }
:root { color-scheme: light }
body { margin: 0; background: var(--vtx-paper); color: var(--vtx-ink); font: 1rem/1.55 system-ui, sans-serif }
a { color: var(--vtx-copper); text-underline-offset: .16em }
button, input, select { font: inherit }
button { cursor: pointer }
button:disabled { cursor: not-allowed; opacity: .51 }
button, a, label, summary { -webkit-tap-highlight-color: transparent }
:where(a,button,input,select,summary):focus-visible, .pick:focus-visible + * { outline: 3px solid var(--vtx-focus); outline-offset: 3px }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.12; margin: 0 }
h1 { font-size: clamp(2rem, 5.3vw, 3.48rem); letter-spacing: -.034em }
h2 { font-size: 1.42rem }
p { margin: .55rem 0 0 }
.frame { width: min(100% - 2.5rem, 1080px); margin-inline: auto }
.skip { position: fixed; z-index: 5; background: white; padding: .65rem; transform: translateY(-120%) }
.skip:focus { transform: translateY(0) }
.masthead { background: var(--brown); color: var(--vtx-paper); border-bottom: 1px solid #99775b }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; min-height: 80px }
.brand { display: inline-flex; gap: .72rem; align-items: center; color: inherit; text-decoration: none; flex: none }
.brand img { object-fit: cover; border-radius: 9px }
.brand strong, .footer-brand strong { display: block; font: 700 1.26rem/1.2 Georgia, serif }
.brand small { font-size: .78rem; letter-spacing: .09em; color: #eed9c5 }
.nav { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center }
.nav a { color: inherit; text-decoration: none; padding: .48rem .65rem; font-size: .88rem; border-radius: 7px }
.nav a:hover, .nav a:focus-visible { background: #5e4836 }
.nav .account { border: 1px solid #a48a75 }
.locale-menu { color: inherit; background: var(--brown); padding: .48rem .45rem; max-width: 9rem; min-height: 40px; border: 1px solid #a48a75; border-radius: 7px; font-size: .88rem }
:root[dir="rtl"] h1, :root[dir="rtl"] .brand small { letter-spacing: normal }
main { min-height: 64vh }
.intro { padding: clamp(2.2rem, 6vw, 4.2rem) 0 1.7rem; max-width: 790px }
.intro p { color: var(--vtx-muted); font-size: 1.08rem; margin-top: .8rem }
.tool { background: var(--vtx-surface); border: 1px solid #d4c0a9; border-radius: 18px; box-shadow: 0 14px 35px #62472e0a }
.tool-top, .settings, .processing { padding: clamp(.9rem, 3.2vw, 1.65rem) }
.settings { border-top: 1px solid #e6dac9 }
.drop { position: relative; display: grid; justify-items: center; text-align: center; padding: clamp(1.1rem, 4vw, 2rem) .8rem; border: 1.5px dashed #a48467; background: #f8f0e5; border-radius: 12px }
.drop.dragging, .drop:focus-within { border-color: var(--vtx-focus); background: #eef4ed }
.upload-glyph { height: 2.55rem; width: 2.55rem; margin-bottom: .7rem; display: grid; place-items: center; background: #ead8c5; color: #5a3725; border-radius: 50%; font-size: 1.65rem; font-weight: 500 }
.drop h2 { margin-bottom: .85rem }
.pick { position: absolute; width: 1px; height: 1px; clip-path: inset(50%) }
.drop:focus-within #file-label { outline: 3px solid var(--vtx-focus); outline-offset: 3px }
.button { min-height: 44px; display: inline-flex; gap: .4rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: .56rem 1.05rem; text-align: center; text-decoration: none; font-weight: 650; line-height: 1.22 }
label.button { cursor: pointer }
.primary { color: #fffaf0; background: #855333 }
.primary:hover:not(:disabled) { background: #6b3f27 }
.secondary { color: var(--vtx-ink); background: transparent; border-color: #a58b72 }
.secondary:hover { background: #f2e6d7 }
.drop-hint, .formats { color: #6a5545; font-size: .85rem }
.formats { margin-top: .16rem }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0 }
legend { font-weight: 700; margin-bottom: .6rem }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); gap: .65rem }
.choice { display: flex; align-items: flex-start; gap: .55rem; min-width: 0; cursor: pointer; min-height: 65px; border: 1px solid #d4c0a9; border-radius: 10px; background: #fffcf6; padding: .75rem }
.choice:has(input:checked) { border-color: #855333; box-shadow: inset 0 0 0 1px #855333; background: #f7eadb }
.choice:has(input:disabled) { opacity: .55; cursor: default }
.choice input { accent-color: #855333; flex: none; margin: .22rem 0 0 }
.choice strong, .choice small { display: block }
.choice strong { font-size: .91rem }
.choice small { font-size: .79rem; color: #654f3f; line-height: 1.35; margin-top: .2rem }
.advanced { margin-top: 1rem }
.advanced label { display: block; margin-bottom: .3rem; font-weight: 650 }
.extra-settings { border-top: 1px solid #e6dac9; padding-top: .85rem }
.extra-settings summary { cursor: pointer; font-weight: 650 }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(185px,100%),1fr)); gap: .8rem; margin-top: .75rem }
.extra-grid small { display: block; color: var(--vtx-muted); margin-top: .3rem }
.extra-grid .tick { display: flex; align-items: baseline; gap: .45rem }
.extra-grid .tick input { min-height: 0 }
.advanced input, .advanced select { min-height: 42px; color: var(--vtx-ink); background: #fffcf6; padding: .4rem .65rem; border: 1px solid #a58b72; border-radius: 7px; max-width: 100% }
.target-group { display: flex; gap: .4rem }
.target-group input { min-width: 0; flex: 1 1 8rem }
.target-group select { min-width: 0; max-width: min(210px, 58%) }
.settings-bottom, .work-head, .actions { display: flex; justify-content: space-between; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: 1rem }
.settings-bottom .run { flex-shrink: 0; min-width: 145px }
.privacy-copy { margin: 0; color: #70382e; font-size: .85rem; flex: 1 1 250px }
.files { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .32rem }
.files li { display: flex; justify-content: space-between; align-items: center; gap: .55rem; background: #f6eee2; padding: .55rem .7rem; border-radius: 8px; overflow-wrap: anywhere }
.files small { display: block; color: var(--vtx-muted) }
.remove { border: 0; min-height: 40px; border-radius: 7px; padding: .3rem .65rem; color: #713a32; background: #fff8ef }
.feedback:empty, .save-status:empty { display: none }
.feedback { font-size: .92rem }
.error { color: #852e25 }
.saved { color: #315641 }
.other-tools { margin: 1.4rem 0 .85rem; display: flex; gap: .9rem; align-items: center; justify-content: space-between; flex-wrap: wrap }
.other-tools h2 { font-size: 1.18rem }
.other-tools p, .offers p { color: var(--vtx-muted); font-size: .9rem }
.offers { border-top: 1px solid #dccbb8; padding-block: .8rem }
.offers summary { cursor: pointer; font-weight: 650 }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: .8rem; padding: .8rem 0 0 }
.offer-grid > div { padding: .8rem; border: 1px solid #dccbb8; border-radius: 9px }
.work-head { margin-top: 0 }
.work-head p { color: var(--vtx-muted) }
.activity { display: flex; gap: .6rem; align-items: center; margin-top: .6rem }
.activity progress { flex: 1; min-width: 0; width: 100%; height: 15px; accent-color: var(--vtx-focus) }
#results { margin-top: 1.1rem }
#result-items { display: grid; gap: .65rem; margin-top: .7rem }
.result-card { background: #eff4e9; border: 1px solid #a8b69d; border-radius: 10px; padding: .9rem; overflow-wrap: anywhere }
.result-card h3 { font: 650 1rem/1.4 system-ui, sans-serif }
.result-card img { max-width: 160px; max-height: 105px; display: block; border-radius: 7px; border: 1px solid #a8b69d; margin-top: .55rem }
.result-card .actions { margin-top: .6rem; justify-content: flex-start }
.save-status { margin-top: .55rem; font-size: .88rem }
.notice { padding: 2rem 0 2.5rem; max-width: 760px }
.notice p { margin-top: .85rem }
.legal-languages { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem }
#missing-files { margin-top: .75rem }
.footer { margin-top: 2.2rem; color: #eadccd; background: #35271f }
.footer-inner { padding-block: 1.7rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)) }
.footer h2 { color: white; font: 650 .95rem/1.4 system-ui, sans-serif; margin-bottom: .4rem }
.footer a, .footer .quiet-button { display: block; color: #eadccd; font-size: .87rem; text-align: start; margin-top: .26rem }
.quiet-button { border: 0; background: transparent; text-decoration: underline; padding: 0; line-height: inherit }
@media(max-width:600px) {
  .frame { width: calc(100% - 1.4rem) }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .42rem; padding-block: .6rem }
  .nav { gap: .16rem }
  .nav a { padding-inline: .45rem }
  .settings-bottom .run { width: 100% }
  .work-head { align-items: flex-start; flex-direction: column }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto !important; transition:none !important } }
