.edl-archive { padding: 28px 0; color: var(--ink); }
.edl-archive [hidden] { display: none !important; }
.edl-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.edl-heading h1 { font-size: clamp(28px,4vw,40px); letter-spacing: -.04em; margin: 0 0 10px; }
.edl-heading h1 span, .edl-muted { color: var(--muted); }
.edl-heading p, .edl-home-notice p, .edl-status p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.edl-home-notice { border: 1px solid color-mix(in srgb,var(--accent) 40%,var(--line)); border-radius: 16px; padding: 23px; margin-bottom: 26px; background: color-mix(in srgb,var(--accent) 8%,var(--panel)); }
.edl-home-notice strong { display: block; font-size: 21px; line-height: 1.4; }
.edl-home-notice p { margin: 10px 0 0; font-size: 15px; line-height: 1.8; }
.edl-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; font-size: 13px; overflow-wrap: anywhere; }
.edl-breadcrumbs a { color: var(--accent); }
.edl-toolbar, .edl-actions, .edl-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.edl-toolbar { margin: 16px 0; font-size: 12px; }
.edl-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: color-mix(in srgb,var(--accent) 16%,var(--card)); color: var(--ink); font: inherit; font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer; }
.edl-button.is-secondary { background: var(--card); }
.edl-button:hover:not(:disabled) { border-color: var(--accent); background: color-mix(in srgb,var(--accent) 22%,var(--card)); }
.edl-button:focus-visible, .edl-folder summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.edl-button:disabled { opacity: .55; cursor: default; }
.edl-folder-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 18px; }
.edl-folder-summary h2 { font-size: 21px; overflow-wrap: anywhere; }
/* Cards/grid/icons/stats deliberately reuse the normal archive CSS unchanged. */
.edl-archive button.btn-zip-browse { font-family: inherit; cursor: pointer; }
.edl-archive button.btn-zip-browse:disabled { opacity: .55; cursor: default; }
.edl-status, .edl-text { border: 1px solid var(--line-strong); border-radius: 14px; padding: 24px; background: var(--panel); margin: 20px 0; }
.edl-status h2 { font-size: 22px; margin: 0 0 10px; }
.edl-status .edl-actions { margin-top: 16px; }
.edl-pagination { justify-content: center; margin-top: 24px; font-size: 13px; }
.edl-text pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; margin-top: 18px; }
.edl-zip { border: 1px solid var(--line-strong); border-radius: 15px; padding: 20px; margin: 24px 0; background: var(--panel); scroll-margin-top: 20px; }
.edl-zip > header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.edl-zip h2 { font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.edl-zip header p:last-child { font-size: 12px; color: var(--muted); margin-top: 7px; }
.edl-tree { list-style: none; padding: 0; margin: 0; }
.edl-tree > li { margin: 6px 0; }
.edl-folder > .edl-tree { margin-left: 10px; padding-left: 18px; border-left: 2px solid color-mix(in srgb,var(--accent) 45%,var(--line)); }
.edl-folder summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; cursor: pointer; padding: 13px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; list-style: none; }
.edl-folder summary::-webkit-details-marker { display: none; }
.edl-folder summary::before { content: '▸'; color: var(--accent); }
.edl-folder[open] > summary::before { content: '▾'; }
.edl-folder summary strong { overflow-wrap: anywhere; min-width: 0; font-size: 13px; }
.edl-folder summary small { color: var(--muted); font-size: 11px; }
.edl-folder-label { margin-left: auto; font-size: 11px; color: var(--accent); }
.edl-folder[open] > summary .edl-folder-label { font-size: 0; }
.edl-folder[open] > summary .edl-folder-label::after { content: 'Collapse'; font-size: 11px; }
.edl-inner-file { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px; }
.edl-inner-file > div:first-child { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.edl-inner-file strong { display: block; font-size: 13px; line-height: 1.6; }
.edl-inner-file small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.edl-hash-dialog { width: min(600px,calc(100% - 28px)); max-height: 85dvh; overflow: auto; margin: auto; padding: 26px; border: 1px solid var(--line-strong); border-radius: 15px; color: var(--ink); background: var(--panel); box-shadow: var(--shadow); }
.edl-hash-dialog::backdrop { background: rgb(0 0 0 / .65); }
.edl-hash-dialog h2 { font-size: 17px; overflow-wrap: anywhere; padding-right: 18px; }
.edl-hash-dialog code { display: block; padding: 16px 0; overflow-wrap: anywhere; font-size: 14px; user-select: all; }
.edl-dialog-close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0; color: var(--ink); font-size: 26px; cursor: pointer; }
@media (max-width: 700px) {
  .edl-heading { align-items: start; flex-direction: column; gap: 12px; }
  .edl-zip { padding: 14px; }
  .edl-zip > header { flex-direction: column; }
  .edl-folder > .edl-tree { margin-left: 4px; padding-left: 9px; }
  .edl-inner-file { padding: 10px 6px; }
  .edl-inner-file > .edl-actions { flex-basis: 100%; }
  .edl-home-notice { padding: 18px; }
}
