/* The ele page in the browser, on top of style.css (the ele style system).
   Colors come from its variables, so light and dark mode both work. */

[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; display: flex; flex-direction: column; background: var(--paper); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.topbar { background: var(--surface); border-bottom: var(--bw) solid var(--ink); flex: none; }
.topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px;
}
.brand { margin: 0; font-size: 1.25rem; display: flex; gap: 8px; align-items: center; min-width: 0; }
#title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.wrap-alert { margin: 16px auto 0; max-width: 1100px; width: calc(100% - 32px); box-sizing: border-box; }
.wrap-alert .icon-btn { margin-left: auto; align-self: flex-start; }

/* Children of the flex body would shrink to their content. */
#library, #blocked { width: 100%; box-sizing: border-box; padding-top: 24px; padding-bottom: 48px; }
.intro h2 { margin: 4px 0 8px; }
.intro p { max-width: 62ch; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 28px; }

.progress-box { display: grid; gap: 6px; margin-bottom: 24px; max-width: 480px; }
.progress-box progress { width: 100%; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.file {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px 16px; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
}
.file-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
.file-name {
  font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-align: left; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
}
.file-size { font-variant-numeric: tabular-nums; opacity: .8; }
.file-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { opacity: .8; }
.storage { margin-top: 20px; font-size: .875rem; opacity: .75; }

#viewer { flex: 1; display: flex; min-height: 0; }
#frame { flex: 1; border: 0; width: 100%; background: var(--paper); }

dialog .input-group { display: flex; }
dialog .input-group .field { flex: 1; min-width: 0; }

@media (max-width: 640px) {
  .actions { margin-left: 0; }
}
