:root { color-scheme: light; font-family: ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: #171918; background: #f3f2ef; --file-muted: #5c625f; --file-line: #d2d5d1; }
*,*::before,*::after { box-sizing: border-box; }
body,h1,h2,p,dl,dd { margin: 0; }
body { min-width: 320px; background: linear-gradient(180deg,#fbfbf9 0%,#f3f2ef 100%); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button,a,input,summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #286a53; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: 16px; padding: 12px 20px; min-height: 44px; background: #171918; color: #fff; z-index: 5; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.file-header { max-width: 1440px; margin: auto; padding: 28px 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.file-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 650; min-height: 44px; letter-spacing: -.04em; }
.file-brand img { width: 36px; height: 36px; }
.file-header nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 550; }
.file-header nav a,.file-footer a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.file-header nav a:hover,.file-footer a:hover,.file-result a:hover { text-decoration: underline; text-underline-offset: 4px; }
.file-button { border: 1px solid transparent; border-radius: 8px; min-height: 48px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; font-weight: 600; line-height: 1.5; transition: background-color 150ms ease,border-color 150ms ease; }
.file-button-primary { background: #171918; color: #fff; width: 100%; }
.file-button-primary:hover { background: #343a36; }
.file-button-primary:active { background: #080a09; }
.file-button:disabled { cursor: default; background: #e4e6e2; color: #69716b; border-color: #d2d5d1; }
.file-button-secondary { background: transparent; border-color: #adb4ae; color: #171918; }
.file-button-secondary:hover { background: #e9ece6; border-color: #69716b; }
.file-main { max-width: 880px; margin: auto; padding: 52px 40px 40px; }
.file-intro { text-align: center; margin-bottom: 32px; }
.file-kicker { font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: .1em; color: var(--file-muted); margin-bottom: 16px; }
.file-intro h1 { font-size: clamp(40px,4vw,58px); letter-spacing: -.05em; line-height: 1.1; font-weight: 550; }
.file-intro > p:last-child { font-size: 18px; line-height: 1.6; color: var(--file-muted); margin-top: 16px; }
.file-panel { max-width: 680px; margin: auto; padding: 28px; border: 1px solid var(--file-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 40px #1a251608; }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px dashed #949e95; border-radius: 9px; background: #f7f8f5; padding: 36px 20px; cursor: pointer; text-align: center; min-height: 208px; transition: background-color 150ms ease,border-color 150ms ease; }
.file-drop:hover,.file-drop.is-dragging { background: #eef2eb; border-color: #404c42; }
.file-drop:focus-within { outline: 3px solid #286a53; outline-offset: 4px; }
.file-drop input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; }
.file-drop input:disabled { cursor: wait; }
.file-drop strong { font-size: 20px; line-height: 1.4; font-weight: 600; }
.file-drop span { font-size: 14px; line-height: 1.6; color: var(--file-muted); }
.file-upload-icon { color: #505c52; margin-bottom: 4px; flex-shrink: 0; }
.file-selection { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 0; font-size: 16px; line-height: 1.5; }
.file-selection > div { min-width: 0; }
.file-selection strong { display: block; overflow-wrap: anywhere; font-weight: 600; }
.file-selection span { display: block; color: var(--file-muted); font-size: 14px; margin-top: 4px; }
.file-text-button { border: 0; padding: 10px 0; background: transparent; color: #343f36; font-size: 14px; font-weight: 550; min-height: 44px; min-width: 44px; flex-shrink: 0; text-decoration: underline; text-underline-offset: 4px; line-height: 1.5; }
.file-text-button:disabled { color: #6b726c; cursor: default; text-decoration: none; }
.file-privacy { font-size: 14px; line-height: 1.6; color: var(--file-muted); margin: 20px 0; text-align: center; }
.file-status { font-size: 14px; line-height: 1.6; color: var(--file-muted); margin-top: 14px; overflow-wrap: anywhere; }
.file-status[data-state="error"] { color: #9c301e; }
.file-result { margin-top: 20px; padding: 20px; background: #f2f5ef; border: 1px solid #a6b3a1; border-radius: 8px; }
.file-result strong { font-size: 18px; line-height: 1.5; }
.file-result p { font-size: 14px; line-height: 1.6; color: #414d3f; margin-top: 6px; }
.file-result-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; align-items: center; }
.file-result a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.file-note { text-align: center; margin: 24px auto 0; max-width: 65ch; color: var(--file-muted); font-size: 14px; line-height: 1.65; }
.file-footer { max-width: 1440px; margin: auto; padding: 20px 56px 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--file-muted); font-size: 14px; line-height: 1.6; }
.file-footer > div { display: flex; flex-wrap: wrap; gap: 28px; }
.file-dialog { border: 1px solid #bbc4ba; border-radius: 14px; padding: 28px; color: #171918; background: #fff; max-width: min(560px,calc(100% - 40px)); width: 100%; max-height: calc(100vh - 60px); overflow-y: auto; }
.file-dialog::backdrop { background: #17201a88; backdrop-filter: blur(3px); }
.file-dialog-heading { display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.file-dialog h2 { font-size: 30px; font-weight: 550; letter-spacing: -.035em; line-height: 1.25; }
.file-dialog p { font-size: 16px; line-height: 1.6; color: var(--file-muted); margin-top: 12px; }
.file-review-list { margin-top: 24px; font-size: 16px; line-height: 1.5; }
.file-review-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 10px 0; border-bottom: 1px solid #e0e3dd; }
.file-review-list dt { color: var(--file-muted); }
.file-review-list dd { max-width: 100%; overflow-wrap: anywhere; font-weight: 550; }
.file-exact,.file-recovery { margin-top: 18px; font-size: 14px; line-height: 1.6; }
summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.file-exact dt { margin-top: 12px; color: var(--file-muted); }
.file-exact dd { overflow-wrap: anywhere; font-family: ui-monospace,monospace; font-size: 14px; line-height: 1.65; }
.file-dialog .file-review-note { font-size: 14px; margin: 18px 0; }
.file-recovery p { margin-bottom: 12px; }
.file-recovery input { display: block; width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; border: 1px solid #8e998c; border-radius: 6px; margin: 8px 0 12px; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; } }
