:root {
  --ink: #171713;
  --paper: #f4f1e9;
  --card: #fffdf7;
  --line: #d8d3c5;
  --lime: #d8ff52;
  --muted: #6f6c62;
  --error: #ff725e;
  --font-ui: "Segoe UI Variable Text", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wordpress-embed header, .wordpress-embed footer { display: none; }
.wordpress-embed .intro { padding-top: 58px; }
button, select { font: inherit; color: inherit; }

header {
  width: min(1180px, calc(100% - 48px));
  height: 86px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 14px; font-weight: 750; letter-spacing: .025em; }
.brand > b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--lime); margin-right: 2px; font-size: 12px; letter-spacing: 0; }
.brand i { color: #8db200; font-style: normal; }
.private { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.private span { width: 8px; height: 8px; border-radius: 50%; background: #7da000; box-shadow: 0 0 0 4px #7da0001f; }

main { min-height: calc(100vh - 160px); }
.intro {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 70px 0 82px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 74px;
}

.copy { position: relative; isolation: isolate; }
.copy::before { content: ""; position: absolute; z-index: -1; top: 18px; right: 4px; width: 92px; height: 92px; opacity: .68; background-image: radial-gradient(circle, #bdb8aa 1.4px, transparent 1.6px); background-size: 11px 11px; }
.label { margin: 0 0 22px; font: 750 11px/1.3 var(--font-ui); letter-spacing: .08em; color: var(--muted); }
.hero-kicker { width: fit-content; margin-bottom: 30px; padding: 8px 13px 8px 11px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: #fffdf8cc; box-shadow: 3px 3px 0 #d9d4c7; }
.hero-kicker::before { content: ""; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 3px; background: var(--lime); border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
h1 { margin: 0; font-family: var(--font-display); font-size: clamp(46px, 5.8vw, 74px); font-weight: 760; line-height: 1.08; letter-spacing: -.035em; }
.hero-title > span { display: inline-block; white-space: nowrap; }
.title-badge { position: relative; display: inline-block; margin: 0 .2em 0 .03em; vertical-align: baseline; isolation: isolate; }
.hero-title mark { display: inline-block; margin: 0; padding: .01em .15em .08em; border: 2px solid var(--ink); border-radius: .14em; background: var(--lime); color: var(--ink); line-height: .9; box-shadow: .065em .065em 0 var(--ink); transform: rotate(-1deg); transform-origin: center; transition: transform .2s ease, box-shadow .2s ease; }
.title-badge::before { content: ""; position: absolute; z-index: 2; right: -.035em; top: -.18em; width: .14em; height: .16em; background: linear-gradient(var(--ink), var(--ink)) 100% 0 / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 100% 0 / 2px 100% no-repeat; }
.title-badge::after { content: ""; position: absolute; z-index: 2; right: -.18em; bottom: .035em; width: .105em; height: .105em; border-radius: 50%; background: var(--ink); }
.copy:hover .hero-title mark { transform: rotate(-.3deg) translateY(-1px); box-shadow: .075em .075em 0 var(--ink); }
.hero-title em { display: inline-block; margin-top: .18em; font-family: var(--font-display); font-style: normal; font-weight: 520; }
.hero-title em strong { position: relative; z-index: 0; font-weight: 760; }
.hero-title em strong::after { content: ""; position: absolute; z-index: -1; left: -.02em; right: -.03em; bottom: .03em; height: .19em; border-radius: 20px; background: var(--lime); transform: rotate(-1deg); }
.hero-proof { width: fit-content; margin-top: 30px; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: 4px 4px 0 #d4d0c3; }
.hero-proof > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--lime); font-size: 18px; font-weight: 900; }
.hero-proof div { display: grid; gap: 2px; }
.hero-proof b { font-size: 12px; }
.hero-proof small { color: var(--muted); font-size: 10px; }
.lead { max-width: 570px; margin: 24px 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.copy ul { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 12px; }
.copy li::before { content: "✓"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 7px; border-radius: 50%; background: var(--lime); font-weight: 800; }

.dropzone {
  position: relative;
  min-height: 450px;
  padding: 42px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 12px;
  box-shadow: 9px 9px 0 var(--ink);
  cursor: pointer;
  transition: .18s;
}

.dropzone::before { content: ""; position: absolute; inset: 12px; border: 1px dashed #aaa497; border-radius: 8px; pointer-events: none; }
.dropzone:hover, .dropzone:focus, .dropzone.dragging { outline: 0; background: #fbffe8; transform: translate(4px, 4px); box-shadow: 7px 7px 0 var(--ink); }
.file-icon { position: relative; width: 88px; height: 104px; margin-bottom: 28px; display: grid; place-items: center; background: var(--lime); border: 1px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink); }
.file-icon b { font: 800 13px var(--font-ui); letter-spacing: .06em; }
.file-icon span { position: absolute; right: -12px; bottom: -11px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 19px; }
.dropzone h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.015em; }
.dropzone > p { margin: 0 0 23px; color: var(--muted); font-size: 14px; }
.dropzone button { width: min(270px, 85%); height: 54px; padding: 0 18px 0 22px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.dropzone button b { color: var(--lime); font-size: 20px; }
.dropzone small { margin-top: 18px; color: #88847a; }

.message { width: min(1180px, calc(100% - 48px)); margin: -48px auto 54px; padding: 13px 15px; border: 1px solid #c89932; background: #fff0c9; font-size: 13px; }
.message.error { border-color: #c75040; background: #ffe2dd; }

.results { padding: 78px max(24px, calc((100vw - 1180px) / 2)) 90px; background: var(--ink); color: #fff; }
.result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.results .label { color: #aaa79e; margin-bottom: 12px; }
.result-head h2 { margin: 0; font-family: var(--font-display); font-size: 44px; letter-spacing: -.025em; }
.result-head sup { color: var(--lime); font: 750 12px var(--font-ui); }
.actions { display: flex; gap: 10px; }
.actions button { height: 48px; padding: 0 18px; border: 1px solid #56564f; border-radius: 8px; cursor: pointer; font-size: 13px; }
.batch-format-control { min-width: 174px; height: 48px; padding: 5px 5px 5px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #91b72c; border-radius: 8px; background: #252521; color: #d1d0c8; cursor: pointer; }
.batch-format-control > span { flex: 1; font-size: 11px; font-weight: 650; white-space: nowrap; }
.batch-format-control .batch-format-trigger { width: 84px; height: 36px; padding: 0 10px 0 12px; display: flex; flex: 0 0 84px; align-items: center; justify-content: space-between; border: 1px solid #66665e; border-radius: 6px; outline: 0; background: #171713; color: var(--lime); font-size: 11px; font-weight: 750; cursor: pointer; }
.batch-format-trigger i { width: 7px; height: 7px; border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(45deg) translateY(-2px); }
.batch-format-control:focus-within { border-color: var(--lime); }
.batch-format-control:has(button:disabled) { opacity: .4; cursor: not-allowed; }
.batch-format-control .batch-format-trigger:disabled { cursor: not-allowed; }
.secondary { background: transparent; color: #ccc; }
.convert-all { background: #fff; color: var(--ink); font-weight: 800; }
.convert-all:hover { background: var(--lime); }
.zip { min-width: 160px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--lime); border-color: var(--lime) !important; font-weight: 800; }
.zip:disabled, .convert-all:disabled, .actions button:disabled { opacity: .35; cursor: not-allowed; }
.summary { min-height: 50px; margin-bottom: 24px; padding: 0 18px; display: flex; align-items: center; gap: 28px; border: 1px solid #3d3d37; border-radius: 8px; color: #aaa89f; font: 12px var(--font-ui); }
.summary b { color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #42423c; border-radius: 10px; background: #23231f; }
.preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: repeating-linear-gradient(135deg, #282824, #282824 10px, #2d2d28 10px, #2d2d28 20px); display: grid; place-items: center; }
.preview > span { padding: 12px 10px; border: 1px solid #5b5b53; color: #85857c; font: 750 13px var(--font-ui); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.type-icon { width: 72px; height: 72px; padding: 0 !important; display: grid !important; place-items: center; border: 1px solid #65655c !important; border-radius: 14px !important; background: #1d1d1a; color: #d1d0c8 !important; font: 800 12px var(--font-ui) !important; letter-spacing: .04em; }
.type-icon.video { color: var(--lime) !important; }
.type-icon.audio { color: #8ec8ff !important; }
.status { position: absolute; top: 11px; left: 11px; padding: 7px 10px; border-radius: 20px; background: #171713e8; font: 750 10px var(--font-ui); }
.status.done { background: var(--lime); color: var(--ink); }
.status.error { background: var(--error); color: var(--ink); }
.kind-video .status.done { background: #8ec8ff; }
.kind-audio .status.done { background: #ffcb6b; }
.kind-text .status.done { background: #e9a7ff; }
.kind-document .status.done, .kind-ebook .status.done, .kind-presentation .status.done { background: #e9a7ff; }
.kind-other .status.done { background: #f7a67d; }
.scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--lime); box-shadow: 0 0 18px var(--lime); animation: scan 1.7s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 10%; opacity: .3; } 50% { top: 88%; opacity: 1; } }

.format-row { min-height: 50px; padding: 8px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #3e3e38; border-bottom: 1px solid #3e3e38; color: #aaa89f; font: 700 10px var(--font-ui); letter-spacing: .025em; }
.format-row label { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.output-trigger { min-width: 88px; height: 34px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #66665e; border-radius: 6px; background: #181815; color: var(--lime); cursor: pointer; }
.output-trigger b { font: 750 11px var(--font-ui); }
.output-trigger i { width: 7px; height: 7px; border-right: 2px solid #aaa; border-bottom: 2px solid #aaa; transform: rotate(45deg) translateY(-2px); }
.output-trigger:hover { border-color: var(--lime); }
.output-trigger:disabled { opacity: .5; cursor: wait; }
.info { min-height: 88px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; }
.index { color: #84847b; font: 11px var(--font-ui); }
.names { min-width: 0; flex: 1; }
.names b, .names small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.names b { font-size: 13px; font-weight: 650; }
.names small { margin-top: 5px; color: #a09f96; font-size: 11px; }
.names small.err { display: -webkit-box; max-height: 28px; color: #ff9b89; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-actions { flex-shrink: 0; }
.convert-one { height: 36px; padding: 0 12px; border: 1px solid var(--lime); border-radius: 6px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 750; cursor: pointer; }
.convert-one:hover { background: #fff; border-color: #fff; }
.download, .retry { border: 0; cursor: pointer; }
.download { width: auto; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 auto; border-radius: 6px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; }
.download > span { color: #668500; font-size: 16px; line-height: 1; }
.spinner { width: 25px; height: 25px; flex: 0 0 25px; border: 2px solid #575750; border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 4px; overflow: hidden; background: #3c3c36; }
.progress i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--lime); box-shadow: 0 0 10px #d8ff5299; transition: width .22s ease-out; }
.progress.converting::after { content: ""; position: absolute; top: 0; bottom: 0; left: -34%; width: 34%; background: linear-gradient(90deg, transparent, #f4ffc7, transparent); animation: progress-sweep .9s linear infinite; }
.progress.done i { width: 100% !important; }
@keyframes progress-sweep { to { left: 100%; } }
.remove { position: absolute; right: 9px; top: 9px; z-index: 3; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #ffffff4a; border-radius: 8px; background: #171713dc; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.remove:hover { background: var(--error); color: var(--ink); }

.format-menu[hidden] { display: none; }
.format-menu {
  position: fixed;
  z-index: 1200;
  width: min(610px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  background: #1d1d1d;
  color: #f4f4f4;
  box-shadow: 0 18px 55px #0009;
  font-family: var(--font-ui);
}
.format-search { height: 62px; margin: 0 20px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #444; }
.search-symbol { position: relative; width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid #858585; border-radius: 50%; }
.search-symbol::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; border-radius: 2px; background: #858585; transform: rotate(45deg); transform-origin: left center; }
.format-search input { min-width: 0; flex: 1; height: 42px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; }
.format-search input::placeholder { color: #777; }
.format-menu-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #999; font-size: 21px; cursor: pointer; }
.format-menu-close:hover { background: #353535; color: #fff; }
.format-menu-body { height: 326px; padding: 14px 14px 12px 20px; display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 18px; }
.format-menu nav { min-width: 0; overflow: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #555 transparent; }
.format-category { width: 100%; height: 40px; padding: 0 6px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid #3b3b3b; background: transparent; color: #b1b1b1; font-size: 13px; text-align: left; cursor: pointer; }
.format-category b { opacity: 0; font-size: 23px; font-weight: 400; }
.format-category:hover, .format-category.active { color: #fff; }
.format-category.active b, .format-category:hover b { opacity: 1; }
.format-list { min-width: 0; overflow: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #686868 transparent; }
.format-list-head { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 13px; }
.format-list-head > span { display: flex; align-items: center; gap: 6px; color: #8f8f8f; font-size: 10px; white-space: nowrap; }
.format-list-head i, .format-choice.supported i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #4dd777; box-shadow: 0 0 0 2px #4dd77724; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(68px, 1fr)); gap: 10px; padding-bottom: 8px; }
.format-choice { position: relative; height: 40px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: #3b3b3b; color: #eee; font-size: 12px; font-weight: 700; cursor: pointer; }
.format-choice i { position: absolute; top: 5px; right: 5px; }
.format-choice.supported:hover { border-color: #6ee892; background: #454d47; }
.format-choice.selected { border-color: var(--lime); color: var(--lime); }
.format-choice.unavailable { opacity: .38; cursor: help; }
.format-choice.unavailable:hover { opacity: .65; border-color: #d18864; }
.format-empty { grid-column: 1 / -1; margin: 18px 0; color: #999; font-size: 13px; }
.format-menu-help { min-height: 50px; margin: 0; padding: 10px 20px; display: flex; align-items: center; border-top: 1px solid #3e3e3e; background: #181818; color: #949494; font-size: 11px; line-height: 1.45; }
.format-menu-help.warning { color: #ffc4a8; }

footer { min-height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; font: 750 12px var(--font-ui); letter-spacing: .025em; }
footer span { color: var(--muted); font-weight: 400; }

@media (max-width: 1050px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
  .intro { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  header, .intro, .message { width: calc(100% - 32px); }
  .private { font-size: 0; }
  .intro { padding-top: 48px; }
  .copy::before { top: 8px; right: -2px; width: 70px; height: 70px; }
  .hero-kicker { margin-bottom: 24px; padding: 7px 11px 7px 9px; font-size: 9px; }
  h1 { font-size: clamp(39px, 11.5vw, 56px); line-height: 1.1; }
  .hero-title mark { border-width: 1.5px; box-shadow: .07em .07em 0 var(--ink); }
  .hero-proof { margin-top: 24px; }
  .copy ul { display: grid; }
  .dropzone { min-height: 410px; }
  .result-head { align-items: stretch; flex-direction: column; }
  .actions { width: 100%; flex-wrap: wrap; }
  .actions button { flex: 1; }
  .batch-format-control { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .summary { overflow: auto; white-space: nowrap; }
  .results { padding-top: 60px; }
  .info { padding-left: 11px; padding-right: 11px; }
  .edit { display: none; }
  footer { flex-direction: column; justify-content: center; gap: 9px; text-align: center; }
}

@media (max-width: 680px) {
  .format-menu { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: calc(100vh - 16px); }
  .format-menu-body { height: min(420px, 58vh); grid-template-columns: 108px minmax(0, 1fr); gap: 10px; padding-left: 12px; }
  .format-search { margin: 0 12px; }
  .format-grid { grid-template-columns: repeat(2, minmax(68px, 1fr)); gap: 8px; }
  .format-category { font-size: 11px; }
  .format-list-head > span { display: none; }
  .format-menu-help { padding-left: 12px; padding-right: 12px; }
}
