:root {
  color-scheme: dark;
  --ink: #e8f1ee;
  --muted: #8da19d;
  --dim: #61726f;
  --bg: #071018;
  --panel: #0d1a21;
  --panel-2: #10222a;
  --line: rgba(170, 210, 201, 0.16);
  --line-strong: rgba(170, 210, 201, 0.28);
  --mint: #5de5c0;
  --mint-soft: rgba(93, 229, 192, 0.12);
  --amber: #f1bb72;
  --red: #ff8e89;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 82% 4%, rgba(55, 132, 119, 0.16), transparent 26rem), var(--bg); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, .dropzone:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: -0.02em; font-weight: 760; }
.brand b { color: var(--dim); font-weight: 500; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 25px; height: 25px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--mint-soft); }
.brand-mark i { display: block; width: 2px; border-radius: 2px; background: var(--mint); }
.brand-mark i:nth-child(1) { height: 7px; }.brand-mark i:nth-child(2) { height: 13px; }.brand-mark i:nth-child(3) { height: 10px; }.brand-mark i:nth-child(4) { height: 16px; }
.topbar-note { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px rgba(93, 229, 192, 0.8); }

.workbench { padding: 70px 0 36px; }
.intro { width: min(760px, 100%); margin-bottom: 42px; }
.eyebrow, .section-label, .setting-label { margin: 0; color: var(--mint); font-size: 11px; font-weight: 760; letter-spacing: 0.17em; text-transform: uppercase; }
h1 { margin: 14px 0 18px; font-size: clamp(42px, 6vw, 78px); line-height: 0.98; letter-spacing: -0.07em; font-weight: 760; }
h1 em { color: var(--mint); font-style: normal; }
.lede { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; }

.converter-card { width: min(860px, 100%); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(135deg, rgba(19, 38, 45, 0.96), rgba(10, 23, 30, 0.96)); box-shadow: 0 32px 90px rgba(0,0,0,0.22); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
h2 { font-size: 22px; letter-spacing: -0.035em; margin: 8px 0 0; }
.privacy-pill, .ready-tag { white-space: nowrap; border: 1px solid rgba(93, 229, 192, 0.28); background: var(--mint-soft); color: var(--mint); border-radius: 999px; padding: 8px 11px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lock-icon { display: inline-block; margin-right: 5px; font-size: 14px; transform: rotate(-20deg); }
.dropzone { min-height: 222px; border: 1px dashed rgba(93, 229, 192, 0.48); border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(120deg, rgba(93, 229, 192, 0.075), rgba(93, 229, 192, 0.015)); cursor: pointer; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--mint); background: rgba(93, 229, 192, 0.11); transform: translateY(-1px); }
#file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { width: 45px; height: 45px; display: flex; align-items: end; justify-content: center; gap: 4px; padding: 9px; margin-bottom: 15px; border: 1px solid rgba(93,229,192,0.34); border-radius: 12px; background: var(--mint-soft); }
.drop-icon span { display: block; width: 4px; border-radius: 3px 3px 2px 2px; background: var(--mint); }
.drop-icon span:nth-child(1) { height: 12px; }.drop-icon span:nth-child(2) { height: 21px; }.drop-icon span:nth-child(3) { height: 16px; }
.drop-copy { display: flex; flex-direction: column; gap: 4px; }
.drop-copy strong { font-size: 17px; }.drop-copy span { color: var(--muted); font-size: 14px; }.drop-copy u { color: var(--ink); text-underline-offset: 3px; }
.format-line { margin: 18px 0 0; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }

.file-panel { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,0.035); }
.file-icon, .result-file-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: rgba(241,187,114,0.13); color: var(--amber); font-weight: 800; }
.file-icon { font-size: 19px; }.file-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }.file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.file-info span { color: var(--muted); font-size: 12px; }
.icon-button { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 23px; line-height: 1; padding: 5px; }.icon-button:hover { color: var(--ink); }

.settings-row { display: grid; grid-template-columns: 1.05fr 1fr 0.8fr; gap: 1px; margin: 28px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.setting { min-height: 88px; padding: 17px 14px 17px 0; }.setting + .setting { padding-left: 18px; border-left: 1px solid var(--line); }.setting-label { display: block; color: var(--dim); font-size: 10px; margin-bottom: 9px; }.setting strong { display: block; font-size: 13px; line-height: 1.45; font-weight: 600; }
.primary-button, .download-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; border: 0; border-radius: 11px; padding: 0 18px 0 20px; cursor: pointer; font-weight: 760; text-decoration: none; }
.primary-button { background: var(--mint); color: #06130f; transition: transform 180ms ease, filter 180ms ease; }.primary-button:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.06); }.primary-button:disabled { cursor: not-allowed; background: #26383a; color: #7f9290; }
.button-arrow, .download-button span:last-child { font-size: 21px; }.button-label { font-size: 15px; }
.progress-panel { margin-top: 20px; }.progress-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 9px; }.progress-track { width: 100%; height: 5px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,0.08); }.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--mint); transition: width 160ms ease; }
.notice { margin-top: 16px; border-radius: 11px; padding: 13px 15px; font-size: 13px; line-height: 1.5; }.error-notice { border: 1px solid rgba(255,142,137,0.34); background: rgba(255,142,137,0.08); color: #ffc1bd; }
.result-panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }.result-heading { display: flex; align-items: center; gap: 12px; }.success-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: #071018; font-weight: 900; }.result-heading h2 { margin-top: 5px; }
.result-file { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; padding: 12px; border: 1px solid rgba(93, 229, 192, 0.22); border-radius: 12px; background: rgba(93, 229, 192, 0.055); }.result-file-icon { width: 44px; height: 37px; color: var(--mint); background: var(--mint-soft); font-size: 10px; letter-spacing: 0.04em; }.result-file .ready-tag { margin-left: auto; padding: 6px 8px; font-size: 9px; }.download-button { background: #e8f1ee; color: #071018; }.download-button:hover { background: white; }.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; display: block; margin: 14px auto 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }.text-button:hover { color: var(--ink); }

.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: min(1000px, 100%); margin-top: 72px; }.fact-card { display: flex; align-items: flex-start; gap: 13px; }.fact-number { color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }.fact-card h3 { margin: 0 0 8px; font-size: 14px; }.fact-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.limits-footer { display: flex; align-items: center; gap: 14px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; line-height: 1.5; }.limits-footer p { margin: 0; }.limits-footer strong { color: var(--muted); }.footer-rule { width: 24px; height: 1px; background: var(--mint); flex: 0 0 auto; }.footer-right { margin-left: auto !important; white-space: nowrap; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .shell { width: min(100% - 30px, 600px); }.topbar { height: 70px; }.topbar-note { font-size: 10px; }.workbench { padding-top: 48px; } h1 { font-size: clamp(42px, 13vw, 63px); }.lede { font-size: 16px; }.card-heading { flex-direction: column; }.privacy-pill { align-self: flex-start; }.settings-row { grid-template-columns: 1fr; }.setting, .setting + .setting { min-height: auto; padding: 16px 0; border-left: 0; }.setting + .setting { border-top: 1px solid var(--line); }.facts-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; }.limits-footer { align-items: flex-start; flex-wrap: wrap; margin-top: 48px; }.footer-right { margin-left: 38px !important; white-space: normal; }.converter-card { border-radius: 17px; }.dropzone { min-height: 200px; }
}
