@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #243632;
  --muted: #52645b;
  --green: #216450;
  --dark: #164737;
  --paper: #fff;
  --page: #f7f8f4;
  --line: #dbe3d8;
  --soft: #edf3ed;
  --focus: #97530d;
  font: 100%/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--dark); }
h1, h2, p, ol, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 2; padding: 10px 16px; border-radius: 8px; background: var(--dark); color: white; transform: translateY(-160%); }
.skip:focus { transform: none; color: white; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--green); color: white; padding-bottom: 4px; font: 700 26px/1 Georgia, serif; }
.brand-text { display: grid; line-height: 1.2; gap: 4px; }
.brand-text strong { font-size: 21px; letter-spacing: -.045em; }
.brand-text small { font-size: 10px; letter-spacing: .07em; color: var(--muted); }
.header-inner nav { display: flex; align-items: center; gap: 24px; }
.header-inner nav a { padding: 11px 0; text-decoration: none; color: var(--muted); font-size: .875rem; }
.header-inner nav a:hover { color: var(--green); text-decoration: underline; }
.intro { padding: 37px 0 38px; }
.breadcrumb { display: flex; align-items: baseline; gap: 9px; color: var(--muted); font-size: .875rem; margin-bottom: 20px; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.7rem); line-height: 1.07; letter-spacing: -.055em; }
.intro-text { margin-top: 15px; max-width: 650px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.125rem); }
h2 { font-size: clamp(1.18rem, 2.1vw, 1.45rem); letter-spacing: -.032em; line-height: 1.22; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .47fr); gap: 18px; align-items: start; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.tool-card { padding: 24px; box-shadow: 0 4px 14px #193b2610; }
.drop-area { display: grid; justify-items: center; text-align: center; padding: 25px 16px 24px; margin-top: 18px; border: 2px dashed #a5baad; border-radius: 13px; background: #f5f8f4; transition: background .15s, border-color .15s; }
.drop-area.is-over { background: #e5f2e7; border-color: var(--green); }
.file-icon { position: relative; display: grid; align-items: end; justify-items: center; width: 40px; height: 48px; padding-bottom: 7px; margin-bottom: 12px; border: 1px solid #aac1b2; border-radius: 8px; background: #e6efe7; color: var(--dark); font-weight: 750; font-size: 10px; letter-spacing: .07em; }
.file-icon::before { content: ""; position: absolute; right: -1px; top: -1px; width: 13px; height: 13px; border: 1px solid #aac1b2; border-radius: 0 7px 0 4px; background: #f9fcf9; }
.drop-title { font-weight: 650; }
.drop-limit { margin: 3px 0 15px; color: var(--muted); font-size: .875rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; padding: 9px 17px; line-height: 1.25; font-weight: 650; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover:not(:disabled) { background: var(--dark); }
.button.secondary { border-color: var(--line); background: var(--paper); color: var(--green); }
.button.secondary:hover { background: var(--soft); }
.button:disabled { background: #e7ece7; color: #4d5f54; border-color: #e7ece7; }
.tool-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-top: 11px; }
.privacy { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .83rem; }
.lock-icon { display: inline-block; width: 11px; height: 8px; border: 1px solid currentColor; border-radius: 2px; position: relative; flex: 0 0 auto; margin-top: 3px; }
.lock-icon::before { content: ""; position: absolute; width: 7px; height: 6px; border: 1px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; left: 1px; top: -6px; }
.text-button { min-height: 44px; background: none; color: var(--green); padding: 5px 0; border: 0; font-size: .875rem; font-weight: 650; text-decoration: underline; text-underline-offset: .22em; }
.text-button:disabled { color: var(--muted); }
.guide { grid-column: 2; grid-row: 1; padding: 24px; background: var(--soft); }
.guide ol { display: grid; gap: 16px; margin-top: 18px; padding-left: 23px; }
.guide li { padding-left: 5px; }
.guide li::marker { font-weight: 700; color: var(--green); }
.guide li strong, .guide li span { display: block; }
.guide li span { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.message { padding: 10px 13px; border: 1px solid; border-radius: 9px; margin-top: 12px; font-size: .9rem; overflow-wrap: anywhere; }
.message.error { background: #fff3f1; border-color: #ebc3bd; color: #8d2820; }
.message.warning { background: #fff7e8; border-color: #ebd1a2; color: #694715; }
.status { color: var(--green); font-size: .875rem; }
.status:not(:empty) { margin-top: 8px; }
.status.is-error { color: #8d2820; }
.result { grid-column: 1 / -1; padding: 23px; }
.result-header, .result-controls, .result-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.result-name { min-width: 0; }
.file-name { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 5px; }
.result-controls { align-items: flex-start; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.encoding { max-width: 100%; }
.encoding label { display: block; font-weight: 650; font-size: .875rem; }
.encoding select { display: block; min-height: 42px; width: min(100%, 260px); padding: 7px 9px; margin-top: 5px; border: 1px solid #aab9af; border-radius: 8px; background: white; }
.muted { color: var(--muted); font-size: .875rem; }
#encoding-note { margin-top: 5px; }
.file-stats { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.file-stats dt { font-size: .81rem; color: var(--muted); }
.file-stats dd { font-weight: 650; font-size: 1.13rem; font-variant-numeric: tabular-nums; }
.check-label { display: flex; align-items: center; gap: 8px; margin-top: 7px; width: fit-content; min-height: 35px; cursor: pointer; }
.check-label input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green); }
.table-scroll { overflow: auto; overscroll-behavior-inline: contain; max-height: 426px; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; }
table { border-spacing: 0; min-width: 100%; width: max-content; font-size: .875rem; }
th, td { text-align: start; padding: 8px 12px; max-width: 36ch; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
thead th { position: sticky; top: 0; background: var(--soft); font-weight: 650; }
tbody tr:nth-child(even) { background: #f8faf7; }
tbody tr:last-child td { border-bottom: 0; }
td.unsupported { color: var(--muted); }
.result-footer { margin-top: 14px; }
.questions { max-width: 790px; padding: 46px 0 54px; }
.questions h2 { margin-bottom: 16px; }
.questions details { border-top: 1px solid var(--line); }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary { padding: 13px 0; color: var(--ink); font-weight: 625; }
.questions summary::marker { color: var(--green); }
.questions p { color: var(--muted); margin: 0 0 16px; max-width: 67ch; }
.site-footer { border-top: 1px solid var(--line); background: #eff2eb; }
.footer-inner { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; padding-block: 15px; color: var(--muted); font-size: .875rem; }
.footer-inner a { font-size: 1rem; font-weight: 700; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  .header-inner nav { gap: 13px; }
  .intro { padding: 24px 0 26px; }
  .breadcrumb { margin-bottom: 17px; }
  .tool-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .guide { grid-column: auto; grid-row: auto; }
  .tool-card, .guide, .result { padding: 17px; }
  .drop-area { padding-block: 19px; }
  .questions { padding: 34px 0 40px; }
}

@media (max-width: 480px) {
  .header-inner nav a:first-child { display: none; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-text strong { font-size: 19px; }
  .brand { gap: 9px; }
  .tool-bottom { padding-top: 3px; }
  .result-footer .button { width: 100%; }
  .result-header .button { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

#mono-checkout { margin-top: 12px; }
#mono-checkout .result-footer { margin-top: 10px; gap: 8px; flex-wrap: wrap; }
#mono-bank { text-decoration: none; }
