:root {
    --ink: #18353f; --muted: #607681; --accent: #087b76; --line: #dce6e8;
    --bs-primary: #087b76; --bs-primary-rgb: 8, 123, 118;
    --bs-body-color: #18353f; --bs-body-bg: #f3f7f8;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { background: radial-gradient(ellipse at 90% 5%, #e5f1ee, transparent 45%), #f3f7f8; min-height: 100vh; }
.app-width { max-width: 1120px; }
.app-header { background: #fff; border-bottom: 1px solid var(--line); }
.navbar { min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.5rem; line-height: 1.1; font-weight: 550; }
.brand strong { color: var(--accent); }
.brand small { display: block; font-size: .62rem; letter-spacing: .15em; margin-top: 6px; color: var(--muted); }
.brand-icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: #fff; border-radius: 13px; font-size: 1.35rem; }
.navbar .nav-link { color: #506670; font-size: .88rem; font-weight: 550; padding: .6rem; }
.navbar .nav-link:hover { color: var(--accent); }
.intro { padding: 48px 0 28px; max-width: 790px; }
.eyebrow { color: var(--muted); text-transform: uppercase; font-size: .67rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 14px; }
.intro .eyebrow { display: flex; align-items: center; gap: 8px; }
.intro .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.045em; font-weight: 650; line-height: 1.18; margin-bottom: 16px; }
h1 span { color: var(--accent); }
.intro p { color: var(--muted); max-width: 610px; font-size: 1rem; line-height: 1.7; margin-bottom: 0; }
.surface { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 5px 25px #18353f04; }
.panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.section-icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: #eaf5f1; color: var(--accent); font-size: 1.35rem; }
h2 { font-size: 1.12rem; font-weight: 650; margin-bottom: 0; letter-spacing: -.02em; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; }
.form-label { font-size: .82rem; font-weight: 600; }
.key-controls { display: flex; gap: 10px; }
.key-input { flex: 1; min-width: 0; }
.form-control { height: 47px; border-color: #d0dfe2; background-color: #fafcfc; font-size: .88rem; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem #087b761f; }
.form-text { color: var(--muted); margin-top: 14px; font-size: .78rem; }
.btn { font-size: .86rem; font-weight: 600; padding: .72rem 1rem; border-radius: 8px; }
.btn-primary { --bs-btn-bg: #087b76; --bs-btn-border-color: #087b76; --bs-btn-hover-bg: #06645f; --bs-btn-hover-border-color: #06645f; --bs-btn-active-bg: #05544f; --bs-btn-active-border-color: #05544f; --bs-btn-disabled-bg: #087b76; --bs-btn-disabled-border-color: #087b76; }
.btn-outline-primary { --bs-btn-color: #08716d; --bs-btn-border-color: #b6cecc; --bs-btn-hover-bg: #eaf5f1; --bs-btn-hover-color: #075e59; --bs-btn-hover-border-color: #087b76; --bs-btn-active-bg: #dceee8; --bs-btn-active-color: #075e59; --bs-btn-active-border-color: #087b76; --bs-btn-disabled-color: #08716d; --bs-btn-disabled-border-color: #b6cecc; }
.btn:focus-visible, a:focus-visible, .file-table:focus-visible { outline: 3px solid #39aaa2; outline-offset: 3px; }
.sync-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.sync-steps li { border: 1px solid var(--line); color: var(--muted); background: #f8fafb; border-radius: 8px; padding: 10px 8px; font-size: .78rem; display: flex; justify-content: center; align-items: center; gap: 7px; }
.sync-steps li.active { border-color: var(--accent); background: #eaf5f1; color: #075e59; font-weight: 650; }
.sync-steps li.complete { background: #f0f7f4; color: #397167; }
.progress { height: 8px; background: #e9eff1; border-radius: 10px; }
.progress-bar { background: var(--accent); transition: width .15s ease; }
.progress-caption { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.progress-caption strong { white-space: nowrap; color: var(--accent); }
.report-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.status-pill { border-radius: 30px; padding: 7px 12px; font-size: .73rem; font-weight: 650; background: #edf2f5; color: #48626d; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status-pill.success { color: #166650; background: #e7f4ed; }
.status-pill.warning { color: #80561d; background: #fff2da; }
.report-summary { margin: 20px 0; font-size: .88rem; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.metric { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.metric .value { display: block; font-size: 1.55rem; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric .label { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.metric .bi { color: var(--accent); margin-right: 6px; }
.timing-panel { border-radius: 12px; padding: 18px; background: #f4f8f8; margin-bottom: 16px; }
.timing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timing-item .label { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 6px; }
.timing-item .value { display: block; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.timing-item:first-child .value { color: var(--accent); }
.timing-detail { font-size: .72rem; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.compilation-note { font-size: .8rem; color: var(--muted); margin-bottom: 22px; }
.compilation-note .bi { color: var(--accent); margin-right: 7px; }
.file-heading { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 12px; gap: 10px; }
h3 { font-size: .92rem; font-weight: 650; margin: 0; }
.file-table { max-height: 350px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.table { --bs-table-bg: #fff; --bs-table-color: var(--ink); --bs-table-border-color: #e8eff1; font-size: .76rem; min-width: 560px; }
.table th { position: sticky; top: 0; z-index: 1; background: #f4f8f8; color: var(--muted); font-weight: 650; box-shadow: 0 1px 0 var(--line); }
.table > :not(caption) > * > * { padding: 11px 14px; }
.table td:first-child { overflow-wrap: anywhere; max-width: 470px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .73rem; }
.table td:last-child { white-space: nowrap; }
.file-result { color: #397167; }
.file-result.transferred { color: #246888; }
.file-result .bi { margin-right: 7px; }
.report-pending { font-size: .78rem; margin-top: 18px; color: #48626d; overflow-wrap: anywhere; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 30px; padding-bottom: 30px; color: var(--muted); font-size: .72rem; }
.version-tag { padding: 3px 6px; margin-left: 4px; background: #e5edef; border-radius: 4px; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; background: #fff; padding: 12px; color: var(--accent); }
.skip-link:focus { top: 12px; }
.loading-state { padding: 64px 0; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 991px) { .key-controls { flex-wrap: wrap; } .key-input { flex-basis: 100%; } .key-controls .btn { flex: 1; } }
@media (max-width: 575px) {
    .navbar { min-height: 76px; } .intro { padding: 30px 4px 24px; } .intro p { font-size: .9rem; }
    .surface { padding: 20px 16px; border-radius: 14px; } .key-controls .btn { flex-basis: 100%; }
    .report-heading { align-items: start; flex-direction: column; } .sync-steps { grid-template-columns: repeat(2, 1fr); }
    .sync-steps li:last-child { grid-column: 1 / -1; } .metric-grid, .timing-grid { grid-template-columns: repeat(2, 1fr); }
    .metric { padding: 12px; } .metric .value { font-size: 1.3rem; } .app-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
