:root {
  color-scheme: light;
  --bg: #f5f7fc;
  --paper: #fff;
  --ink: #182748;
  --muted: #51617f;
  --blue: #2749bf;
  --blue-deep: #1c3696;
  --line: #dce4f2;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
:focus-visible { outline: 3px solid #5279eb; outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
h1,h2,h3,p { margin: 0; }
h2 { font-size: 1.36rem; line-height: 1.3; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
button, input { font: inherit; }
button, .button, input { border: 1px solid #c8d3e8; border-radius: 9px; min-height: 43px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; background: white; color: var(--ink); font-weight: 680; text-decoration: none; cursor: pointer; }
button:hover:not(:disabled), .button:hover { background: #ecf1ff; }
button:disabled { opacity: .54; cursor: default; }
.primary { color: white; background: var(--blue); border-color: var(--blue); }
.primary:hover:not(:disabled) { color: white; background: var(--blue-deep); }
.skip:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.skip:focus { position: absolute; top: 9px; left: 9px; background: white; padding: 8px 12px; z-index: 2; }
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.head-row { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 820; letter-spacing: -.032em; font-size: 1.14rem; white-space: nowrap; }
.accent { color: var(--blue); }.brand-divider { color: #9aaac4; margin: 0 3px; font-weight: 500; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 620; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.intro { padding: 50px 0 25px; }.kicker { display: flex; align-items: center; gap: 8px; text-transform: uppercase; color: var(--blue-deep); font-weight: 790; font-size: .72rem; letter-spacing: .115em; }
.kicker span, .pill span { width: 8px; height: 8px; border-radius: 50%; background: #4c6ddb; }
h1 { color: var(--ink); margin: 9px 0 10px; line-height: 1.05; font-size: clamp(2.3rem, 6.5vw, 4rem); letter-spacing: -.06em; font-weight: 850; }
.intro > p:last-child { color: var(--muted); font-size: clamp(.98rem, 2vw, 1.18rem); }
.open-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.drop, .explain, .url-panel, .result-bar, .preview-card, .meta-card, .policy { border-radius: 17px; border: 1px solid var(--line); background: #fff; }
.drop { min-height: 299px; border: 2px dashed #a4b5e6; padding: 22px 18px; display: grid; align-content: center; justify-items: center; text-align: center; gap: 6px; }
.drop.over { background: #e9efff; border-color: var(--blue); }
.drop-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #eaf0ff; color: var(--blue); margin-bottom: 5px; }
.drop p, .url-panel p { color: var(--muted); }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }.center { justify-content: center; margin: 11px 0 5px; }
.small-link { font-size: .89rem; font-weight: 670; }
.explain { background: #1d305e; color: #fff; border-color: #1d305e; padding: 25px 27px; display: flex; flex-direction: column; align-items: flex-start; }
.pill { align-items: center; display: flex; gap: 7px; color: #edf2ff; background: #314675; border-radius: 99px; padding: 4px 9px; font-size: .76rem; font-weight: 700; }
.pill span { background: #a8dcff; width: 6px; height: 6px; }
.explain h2 { font-size: 1.7rem; letter-spacing: -.035em; margin: 11px 0 7px; }
.explain p { color: #e2e9fc; max-width: 43ch; }
.format-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 17px; }
.format-chips span { color: #dce7ff; padding: 3px 8px; background: #283d6a; font-size: .74rem; letter-spacing: .04em; font-weight: 730; border: 1px solid #52658f; border-radius: 6px; }
.local-note { display: flex; align-items: center; gap: 7px; font-size: .88rem; margin-top: auto; }
.url-panel { padding: 23px; display: grid; gap: 12px; }
.url-panel label { display: block; margin-bottom: 6px; font-weight: 650; }
.url-panel input { width: min(580px, 100%); padding: 8px 11px; color: var(--ink); }
.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.notice { padding: 9px 13px; background: #eaf0ff; border: 1px solid #c8d6ff; border-radius: 9px; color: #263e83; margin-block: 10px; }
.notice.error { border-color: #f0c5c0; background: #fff1ee; color: #8e322b; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 9px 13px; padding: 13px 16px; }
.file-id { display: flex; gap: 11px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.file-id h2 { font-size: 1.02rem; }
#file-summary { font-size: .84rem; color: var(--muted); }
#file-badge { min-width: 47px; padding: 7px; border-radius: 8px; text-align: center; color: var(--blue-deep); background: #edf2ff; font-size: .7rem; font-weight: 820; flex-shrink: 0; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.preview-card, .meta-card { overflow: hidden; min-width: 0; }
.panel-bar { padding: 11px 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 9px; }
.panel-bar h3 { font-size: 1rem; }.panel-bar span { color: var(--muted); font-size: .8rem; }
.preview-body { min-height: 200px; background: #f9fbff; overflow-wrap: anywhere; }
.preview-body > p { color: var(--muted); padding: 14px 16px; }
.preview-body .preview-text { margin: 0; padding: 14px 16px; max-height: min(540px, 70vh); overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: .85rem; color: var(--ink); tab-size: 4; }
.preview-body .hex { white-space: pre; }
.preview-body img, .preview-body video { display: block; max-width: 100%; max-height: 65vh; margin: auto; object-fit: contain; }
.preview-body audio { display: block; width: calc(100% - 30px); max-width: 380px; margin: 16px auto; }
.pdf-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 9px 13px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pdf-controls button { min-height: 36px; padding: 3px 9px; }
.pdf-stage { max-height: 72vh; overflow: auto; padding: 16px; text-align: center; }
.pdf-stage canvas { display: block; margin: auto; max-width: 100%; height: auto; box-shadow: 0 1px 7px #192e591a; }
.archive-list { width: 100%; border-collapse: collapse; font-size: .84rem; }
.archive-list :is(th,td) { border-bottom: 1px solid var(--line); padding: 7px 13px; text-align: left; vertical-align: top; }
.archive-list :is(th,td):last-child { text-align: right; white-space: nowrap; }
.files-scroll { max-height: 510px; overflow: auto; }
.meta-card dl { margin: 0; padding: 6px 15px; }
.meta-row { padding: 9px 0; border-bottom: 1px solid #edf1f8; overflow-wrap: anywhere; }
dt { color: var(--muted); font-size: .78rem; font-weight: 700; }
dd { margin: 2px 0 0; font-size: .94rem; }
.result-actions { display: grid; justify-items: start; gap: 9px; padding: 6px 15px 15px; min-width: 0; }
.specialist p, #hash { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; margin-top: 6px; min-width: 0; }
.library { margin-top: 31px; scroll-margin-top: 15px; }
.section-top { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 12px; }
.section-top h2 { font-size: 1.78rem; letter-spacing: -.036em; margin-top: 4px; }
.section-top p:last-child { color: var(--muted); font-size: .92rem; }
.tool-grid { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.tool { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; min-width: 0; }
.tool.vcf { border-color: #bdcaf4; background: #fdfdff; }
.tool-tag { border-radius: 9px; min-width: 42px; min-height: 39px; padding: 0 5px; display: grid; place-items: center; background: #e8eeff; color: #293fa1; font-size: .7rem; letter-spacing: .035em; font-weight: 830; }.tool-tag.pdf { color: #912e46; background: #f9e8ee; }.tool-tag.img { color: #245d53; background: #e4f3ee; }.tool-tag.zip { color: #77511d; background: #fff1d9; }.tool-tag.doc { color: #2c5194; background: #e8f2ff; }.tool-tag.cad { color: #5d4997; background: #efe9fc; }
.tool h3 { line-height: 1.3; font-size: .98rem; }
.tool h3 a { color: var(--ink); text-decoration: none; }
.tool h3 a:is(:hover,:focus-visible) { text-decoration: underline; color: var(--blue-deep); }
.tool h3 span { color: #5270bd; font-size: .78em; }
.tool p { margin-top: 3px; color: var(--muted); font-size: .84rem; }
.tool-secondary { font-size: .79rem; display: inline-block; margin-top: 4px; }
.site-foot { margin-top: 30px; padding: 17px 0 24px; display: flex; justify-content: space-between; gap: 9px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.policy { max-width: 850px; margin: 32px auto 0; padding: clamp(21px, 5vw, 49px); overflow-wrap: anywhere; }
.policy h1 { font-size: clamp(2.1rem, 5.5vw, 3.3rem); }
.policy h2 { margin-top: 27px; }.policy h3 { margin-top: 16px; }
.policy p:not(.kicker), .policy ul, .policy ol { margin-top: 9px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }.intro { padding: 31px 0 20px; }
  .open-grid, .result-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.drop { min-height: 253px; }
}
@media (max-width: 505px) {
  .result-bar,.section-top { flex-direction: column; align-items: start; }
  .tool-grid { grid-template-columns: 1fr; }
  nav { gap: 11px; }.head-row { min-height: 55px; }.library-nav { display: none; }
}
