*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #14202b;
    background: #eef2f6;
}
.top {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    padding: 14px 16px; background: #0f2233; color: #fff;
}
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.sub { color: #c9d6e2; font-size: .95rem; }
main { max-width: 640px; margin: 0 auto; padding: 16px 12px 40px; }
.card {
    background: #fff; border: 1px solid #d5dde5; border-radius: 10px;
    padding: 18px 16px; margin: 0 0 14px;
}
.card--quiet { background: #f7f9fb; }
h1 { font-size: 1.35rem; margin: 0 0 8px; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: #4a5a6a; }
.small { font-size: .9rem; }
label { display: block; font-weight: 600; margin: 4px 0 6px; }
input[type=text] {
    width: 100%; min-height: 48px; padding: 10px 12px;
    font: 600 1.05rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .03em; color: #14202b;
    border: 2px solid #8a9aab; border-radius: 8px; background: #fff;
}
input[type=text]:focus { outline: 3px solid #1d6fd8; outline-offset: 1px; border-color: #1d6fd8; }
.btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 52px; margin: 14px 0 0; padding: 12px 16px;
    font: 600 1.05rem/1.2 inherit; text-align: center;
    border: 0; border-radius: 8px; cursor: pointer;
    touch-action: manipulation;
}
.btn--primary { background: #1d6fd8; color: #fff; }
.btn--primary:active { background: #1659ad; }
.btn:disabled { background: #b9c4cf; color: #3d4a57; cursor: not-allowed; }
.btn:focus-visible, .link:focus-visible { outline: 3px solid #0f2233; outline-offset: 2px; }
.btn--file { margin-top: 16px; }
input[type=file]:focus-visible + .btn--file, .btn--file:focus-within { outline: 3px solid #0f2233; outline-offset: 2px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}
.link {
    background: none; border: 0; padding: 12px 0 0; min-height: 44px;
    color: #1659ad; text-decoration: underline; font: inherit; cursor: pointer;
}
.msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #eef2f6; }
.msg--bad { background: #fdecec; color: #8a1414; border: 1px solid #f1b5b5; }
.msg--ok { background: #e8f6ee; color: #145c32; border: 1px solid #a9dbbd; }
.files { list-style: none; margin: 0 0 14px; padding: 0; }
.file {
    background: #fff; border: 1px solid #d5dde5; border-left: 5px solid #8a9aab;
    border-radius: 8px; padding: 12px; margin: 0 0 10px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px;
}
.file__name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.file__meta { color: #4a5a6a; font-size: .9rem; white-space: nowrap; }
.bar { grid-column: 1 / -1; height: 8px; background: #e3e9ef; border-radius: 4px; overflow: hidden; }
.bar__fill { height: 100%; width: 0; background: #1d6fd8; transition: width .3s; }
.file__status { grid-column: 1 / -1; font-size: .95rem; }
.file--ok { border-left-color: #1f8a4c; }
.file--ok .bar__fill { background: #1f8a4c; }
.file--warn { border-left-color: #b26a00; }
.file--warn .file__status { color: #7a4900; }
.file--bad { border-left-color: #c62828; }
.file--bad .file__status { color: #8a1414; }
.plain { margin: 0 0 4px; padding-left: 20px; }
.plain li { margin: 0 0 8px; }
[hidden] { display: none !important; }
