@font-face {
  font-family: Evolventa;
  src: url('../assets/fonts/evolventa/Evolventa-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Evolventa;
  src: url('../assets/fonts/evolventa/Evolventa-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue: #124583;
  --blue-dark: #0b2d57;
  --ink: #122e4b;
  --muted: #52677c;
  --border: #dfe7ef;
  --orange: #f58220;
  --orange-text: #ae4900;
  font-family: Evolventa, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
.file-box:focus-within { outline: 3px solid var(--orange-text); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  background: #fff;
}
.skip-link:focus { transform: translateY(0); }
.topbar { background: #fff; }
.brand-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-group { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-company { display: flex; align-items: center; flex: none; }
.brand-company img { display: block; width: 176px; height: auto; }
.brand-divider { width: 1px; height: 34px; background: var(--border); flex: none; }
.tools-brand { display: flex; align-items: center; gap: 10px; color: var(--blue-dark); font-size: 19px; font-weight: 700; letter-spacing: -.7px; white-space: nowrap; text-decoration: none; }
.tools-brand img { width: 32px; height: 32px; flex: none; }
.tools-brand b { color: var(--orange-text); }
.back-link { color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap; }
.tools-brand:hover, .back-link:hover { text-decoration: underline; }
.hero-band { background: linear-gradient(108deg, #f7fafd 5%, #edf5fc 70%, #e5f0fb); border-block: 1px solid #e7eef5; }
.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 40px; align-items: center; min-height: 290px; padding-block: 28px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; margin-bottom: 17px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
h1 { color: var(--blue-dark); font-size: 40px; line-height: 1.22; letter-spacing: -1.5px; }
h1 span { color: var(--orange-text); }
.lead { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 620px; margin-top: 18px; }
.hero-formats { display: block; color: var(--muted); font-size: 10px; letter-spacing: .4px; margin-top: 16px; }
.archive-illustration { width: 100%; max-width: 400px; justify-self: end; }
.archive-illustration svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }

.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.workspace-heading .eyebrow { font-size: 9px; margin-bottom: 9px; }
.workspace-heading h2 { color: var(--blue-dark); font-size: 27px; letter-spacing: -.7px; line-height: 1.3; }
.format-badge { color: var(--muted); font-size: 11px; border: 1px solid var(--border); border-radius: 7px; padding: 7px 12px; }
.workspace { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 18px; align-items: stretch; }
.card { min-width: 0; padding: 20px 22px; background: linear-gradient(115deg, #fff, #f8fbff); border: 1px solid #cfdeed; border-radius: 16px; box-shadow: 0 4px 15px #143d6310; }
.card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
h2 { color: var(--blue-dark); font-size: 17px; line-height: 1.35; }
.step { display: grid; place-items: center; width: 28px; height: 28px; flex: none; color: #974000; background: #fff0df; border-radius: 8px; font-size: 11px; font-weight: 700; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
button { min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; font-size: 13px; }
.tabs button { min-width: 0; padding: 10px 6px; border-color: #cbd8e8; background: #fff; color: var(--muted); font-size: 12px; }
.tabs button[aria-selected=true] { border-color: #7195ba; background: #e9f2fc; color: var(--blue); }
.file-box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; padding: 20px 14px; background: #f7fafd; border: 1px dashed #afc4db; border-radius: 9px; text-align: center; cursor: pointer; }
.file-box:hover { border-color: var(--blue); background: #edf5fc; }
.file-box strong { font-size: 13px; }
.file-box > span { color: var(--muted); font-size: 11px; }
.file-icon { width: 30px; height: 30px; margin-bottom: 4px; fill: none; stroke: var(--orange-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.file-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-box:has(input:disabled) { cursor: not-allowed; opacity: .65; }
.selection { margin: 9px 0 18px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.field-label { display: block; color: var(--ink); font-size: 12px; margin-bottom: 7px; }
select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 27px 9px 10px; background: #fff; border: 1px solid #c9d4dc; border-radius: 8px; color: var(--ink); font-size: 12px; }
.primary { color: #fff; background: var(--blue); }
.primary:hover:enabled { background: #174773; }
.secondary { border-color: #cbd8e3; color: var(--blue); background: #fff; }
.secondary:hover:enabled { background: #edf5fc; }
button:disabled { color: #5b7085; background: #e9eef4; border-color: #e9eef4; cursor: not-allowed; }
#inspect, #pack { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin-top: 14px; text-align: left; }
.privacy { display: flex; gap: 11px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.privacy > span { color: var(--orange-text); font-size: 23px; }
.privacy strong { color: var(--blue-dark); font-size: 12px; }
.cancel { width: 100%; margin-top: 12px; }
.result-card { display: flex; flex-direction: column; }
.status { padding: 10px 12px; border-radius: 8px; background: #f1f6fb; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.status[data-state=busy] { background: #edf5fc; color: var(--blue); }
.status[data-state=error] { background: #fff0ed; color: #9c351e; }
.status[data-state=success] { background: #eaf4ef; color: #28624e; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 36px 10px; text-align: center; }
.archive-art { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 64px; height: 74px; margin-bottom: 18px; padding-bottom: 9px; border: 1px solid #bdcde0; border-radius: 8px; background: #edf5fc; color: #557699; font-size: 12px; font-weight: 700; }
.archive-art::before { content: ''; position: absolute; top: 0; left: 28px; width: 7px; height: 34px; background: repeating-linear-gradient(0deg, #91a9bf 0 4px, transparent 4px 7px); }
.empty h3 { margin-bottom: 8px; color: var(--blue-dark); font-size: 16px; }
.empty p { max-width: 350px; color: var(--muted); font-size: 12px; }
.summary { margin: 19px 0 12px; font-size: 13px; font-weight: 700; }
.warnings { padding-left: 20px; border-radius: 8px; background: #fff8ee; color: #77501e; font-size: 12px; }
.warnings:empty { display: none; }
.warnings li { padding: 8px 10px 8px 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.result-actions button { max-width: 100%; font-size: 12px; overflow-wrap: anywhere; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
th { padding: 9px 6px; background: #f1f6fb; color: var(--muted); font-weight: 400; text-align: left; }
th:first-child { width: 56%; }
th:nth-child(2) { width: 22%; }
th:last-child { width: 22%; }
td { padding: 12px 6px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; vertical-align: middle; }
td button { width: 100%; min-height: 40px; padding: 5px; color: var(--blue); background: #e9f2fc; font-size: 11px; }
.small-note { margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.boundaries { margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--border); }
.boundaries h2 { font-size: 14px; }
.limits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 16px; }
.limits-grid strong { color: var(--blue-dark); font-size: 12px; }
.limits-grid p { margin-top: 6px; color: var(--muted); font-size: 11px; }
footer { margin-top: 26px !important; padding: 24px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-top > a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
footer p { margin-top: 8px; font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.footer-links a { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  h1 { font-size: 35px; }
  .tools-brand { font-size: 17px; }
  .card { padding: 18px; }
  .intro { gap: 24px; }
  .archive-illustration { max-width: 350px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .brand-row { min-height: 68px; gap: 8px; }
  .brand-group { width: 100%; justify-content: space-between; gap: 12px; }
  .brand-company img { width: 136px; }
  .brand-divider, .back-link { display: none; }
  .tools-brand { gap: 6px; font-size: 14px; letter-spacing: -.5px; }
  .tools-brand img { width: 26px; height: 26px; }
  .intro { display: block; min-height: 0; padding-block: 28px; }
  h1 { font-size: 31px; letter-spacing: -1.1px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; margin-bottom: 14px; }
  .lead { margin-top: 16px; font-size: 13px; }
  .hero-formats { font-size: 9px; }
  .archive-illustration { display: none; }
  .workbench { padding-top: 24px; }
  .workspace-heading { display: block; margin-bottom: 18px; }
  .workspace-heading h2 { font-size: 23px; }
  .format-badge { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .result-card { min-height: 355px; }
  button { min-height: 48px; }
  .file-box { min-height: 154px; }
  .limits-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
  .footer-top { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .brand-company img { width: 116px; }
  .tools-brand { font-size: 12.5px; }
  .tools-brand img { width: 24px; height: 24px; }
  h1 { font-size: 28px; }
  .card { padding: 15px; }
  table { font-size: 11px; }
  th:first-child { width: 49%; }
  th:nth-child(2) { width: 24%; }
  th:last-child { width: 27%; }
  td button { font-size: 10px; }
}
