[hidden] { display: none !important; }
:root { --blue: #1f6feb; --ink: #1d232b; --muted: #5b6573; --bg: #f5f7fa; --card: #fff; --line: #dde3ea; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "PingFang SC", "PingFang TC", Meiryo, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.top { background: var(--blue); color: #fff; padding: 14px 16px 12px; }
.top h1 { margin: 0; font-size: 1.3rem; }
.lead { margin: 4px 0 2px; font-size: .9rem; }
main { max-width: 760px; margin: 0 auto; padding: 12px 14px 24px; }
h2 { font-size: 1.1rem; margin: 6px 0 10px; }
h3 { font-size: 1rem; margin: 0 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border-radius: 12px;
  border: 2px solid var(--blue); background: #fff; color: var(--blue); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.big { min-height: 60px; font-size: 1.1rem; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.sq { min-width: 44px; padding: 0; font-size: 1.2rem; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .drop:focus-within { outline: 3px solid #ffb800; outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.err { color: #c0262d; font-weight: 700; margin: 6px 0; }
.err:empty { display: none; }
.info { color: var(--blue); font-weight: 700; margin: 6px 0; }
.info:empty { display: none; }
.hint { font-size: .85rem; color: var(--muted); margin: 2px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.drop { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; border: 2px dashed #9fb6d8; border-radius: 14px;
  background: #fff; padding: 16px 14px; }
.drop.over { background: #e8f0fe; border-color: var(--blue); }
.drop p { margin: 0; color: var(--muted); font-size: .9rem; }
.slider { display: flex; flex-direction: column; gap: 2px; }
.slider label { font-weight: 700; display: flex; justify-content: space-between; }
.slider input { width: 100%; height: 40px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.row-btns .grow { flex: 1 1 220px; }
.progress { margin: 8px 0; }
.progress progress { width: 100%; height: 14px; }
.progress p { margin: 2px 0; font-size: .92rem; font-weight: 700; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.files .name { flex: 1 1 60%; min-width: 0; overflow-wrap: anywhere; font-weight: 700; font-size: .92rem; }
.files .st { font-size: .85rem; color: var(--muted); }
.files li.done .st { color: #157f3b; font-weight: 700; }
.files li.error { border-color: #f1b5b8; background: #fff5f5; }
.files li.error .st { color: #c0262d; font-weight: 700; flex-basis: 100%; }
.files li.run .st { color: var(--blue); font-weight: 700; }
.files .dl { min-height: 44px; padding: 6px 12px; }
.files .note { flex-basis: 100%; font-size: .8rem; color: #9a5b00; }
.notes { font-size: .9rem; }
.notes ul { margin: 0; padding-left: 1.2em; }
.notes li { margin: 2px 0; }
.patent { font-size: .8rem; color: var(--muted); background: #eef1f5; padding: 10px 12px; border-radius: 10px; }
.foot { text-align: center; font-size: .8rem; color: var(--muted); padding: 10px 16px 24px; }
.foot a { color: var(--muted); }
.langs { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; font-size: .85rem; margin: -4px 0 4px; }
.langs a { color: #fff; text-decoration: none; padding: 4px 6px; border-radius: 6px; min-height: 32px; display: inline-flex; align-items: center; }
.langs a[aria-current="page"] { background: rgba(255,255,255,.25); font-weight: 700; }
.lang-hint { max-width: 760px; margin: 8px auto 0; padding: 6px 10px; background: #e8f0fe; border-radius: 8px; font-size: .9rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lang-hint .btn.sq { min-height: 44px; min-width: 44px; margin-left: auto; }
.support-link { margin: 8px 0 0; font-size: 0.85rem; }
/* ライセンスページ */
.lic pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: 60vh; overflow: auto; }
.lic table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.lic th, .lic td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.lic code { font-size: .8rem; overflow-wrap: anywhere; }
.back { color: #fff; }
