.ef-root {
  min-height: 320px;
}
.ef-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ed-mute);
}
.ef-hint.is-risk {
  color: var(--ed-rose);
}
.ef-page .edu-tabs {
  margin-bottom: 2px;
}
.ef-upload {
  display: grid;
  gap: 10px;
}
.ef-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 2px dashed color-mix(in srgb, var(--ed-blue) 45%, var(--ed-line));
  background: color-mix(in srgb, var(--ed-blue) 5%, var(--ed-card2));
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s;
}
.ef-drop:hover,
.ef-drop:focus-within {
  border-color: var(--ed-blue);
  background: color-mix(in srgb, var(--ed-blue) 10%, var(--ed-card2));
}
.ef-drop.is-drag {
  border-color: var(--ed-green);
  background: color-mix(in srgb, var(--ed-green) 12%, var(--ed-card2));
  transform: scale(1.005);
}
.ef-upload.is-compact .ef-drop {
  padding: 10px 12px;
}
.ef-drop-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--ed-blue),
      var(--accent-purple, #8b7cf6));
  flex: none;
}
.ef-upload.is-compact .ef-drop-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.ef-drop-text {
  display: grid;
  gap: 2px;
}
.ef-drop-text b {
  font-size: 15px;
  color: var(--ed-ink);
}
.ef-drop-text small {
  font-size: 12px;
  color: var(--ed-mute);
}
.ef-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.ef-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ef-item {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto minmax(80px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ed-card2);
  border: 1px solid var(--ed-line);
  font-size: 13px;
}
.ef-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ed-ink);
}
.ef-item small {
  color: var(--ed-mute);
}
.ef-bar {
  width: 100%;
  height: 8px;
}
.ef-bar.is-done b {
  background: var(--ed-green);
}
.ef-bar.is-bad b {
  background: var(--ed-rose);
}
.ef-item-actions {
  display: inline-flex;
  gap: 6px;
}
@media (max-width: 720px) {
  .ef-item {
    grid-template-columns: 1fr auto;
  }
  .ef-item .ef-bar {
    grid-column: 1 / -1;
  }
  .ef-drop {
    padding: 14px;
  }
}
.ef-meter {
  height: 12px;
  border-radius: 99px;
  background: var(--ed-line);
  overflow: hidden;
}
.ef-meter b {
  display: block;
  height: 100%;
  border-radius: 99px;
  background:
    linear-gradient(
      90deg,
      var(--ed-blue),
      var(--ed-violet));
  transition: width .4s;
}
.ef-meter.is-warn b {
  background: var(--ed-amber);
}
.ef-meter.is-risk b {
  background: var(--ed-rose);
}
.ef-quota-text {
  margin: 0;
  font-size: 13px;
  color: var(--ed-mute);
}
.ef-quota-text b {
  color: var(--ed-ink);
  font-size: 18px;
}
.ef-state-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ed-line);
  font-size: 13px;
}
.ef-state-row:last-child {
  border-bottom: 0;
}
.ef-toolbar .is-on,
.ef-page .ghost-button.is-on {
  background: color-mix(in srgb, var(--ed-blue) 16%, var(--ed-card));
  border-color: var(--ed-blue);
}
.ef-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}
.ef-table td,
.ef-table th {
  white-space: nowrap;
}
.ef-table td:nth-child(2) {
  white-space: normal;
  min-width: 220px;
}
.ef-actions {
  text-align: end;
}
.ef-count {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ed-mute);
}
.ef-kind {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--ed-blue);
}
.ef-kind-pdf {
  background: #d6455d;
}
.ef-kind-jpg,
.ef-kind-png,
.ef-kind-webp,
.ef-kind-heic,
.ef-kind-heif {
  background: #7b61d6;
}
.ef-kind-docx {
  background: #2f6fe0;
}
.ef-kind-xlsx {
  background: #1f9d63;
}
.ef-bulk {
  display: none;
}
.ef-bulk.is-on {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ed-blue) 12%, var(--ed-card));
  border: 1px solid color-mix(in srgb, var(--ed-blue) 40%, var(--ed-line));
  font-size: 13px;
}
.ef-empty {
  padding: 28px 18px;
}
.ef-versions,
.ef-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.ef-versions li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--ed-line);
}
.ef-events li {
  color: var(--ed-mute);
}
.ef-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.ef-edit input,
.ef-edit select {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--ed-line);
  background: var(--ed-card2);
  color: var(--ed-ink);
  font: inherit;
  font-size: 13px;
}
.ef-doc {
  display: grid;
  gap: 6px;
  padding: 4px 0 10px;
  width: 100%;
}
.ef-doc-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.ef-doc-file {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--ed-card2, rgb(128 140 170 / .1));
  font-size: 13px;
}
.ef-doc-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ed-ink, inherit);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ef-doc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ef-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(8 12 24 / .62);
  border-radius: 0;
}
.ef-dialog {
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ed-card);
  border: 1px solid var(--ed-line);
  box-shadow: var(--ed-shadow);
  color: var(--ed-ink);
}
.ef-dialog-head,
.ef-dialog-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.ef-dialog-head b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ef-dialog-foot {
  justify-content: flex-start;
  flex-wrap: wrap;
  border-top: 1px solid var(--ed-line);
}
.ef-stage {
  display: grid;
  place-items: center;
  min-height: 260px;
  background: var(--ed-card2);
  overflow: auto;
  padding: 8px;
}
.ef-preview-img {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
}
.ef-preview-pdf {
  width: 100%;
  height: calc(100vh - 220px);
  border: 0;
  background: #fff;
}
.ef-toolbar {
  align-items: center;
}
.ef-toolbar select {
  width: auto;
  flex: 0 1 190px;
  min-width: 130px;
}
.ef-toolbar input[type=search] {
  width: auto;
  flex: 1 1 260px;
}
.ef-toolbar .ghost-button {
  width: auto;
}
.ef-page .adm-card-head .ghost-button,
.ef-bulk button,
.ef-actions button,
.ef-edit button,
.ef-versions button {
  width: auto;
}
.ef-edit input[type=text] {
  width: auto;
  flex: 1 1 220px;
}
.ef-edit select,
.ef-edit input[type=date],
.ef-edit input[type=number] {
  width: auto;
  flex: 0 1 auto;
}
.ef-item small,
.ef-item-status {
  white-space: nowrap;
}
.ef-page .ghost-button,
.ef-overlay .ghost-button {
  color: var(--ed-ink);
  border: 1px solid var(--ed-line);
  background: var(--ed-card2);
}
.ef-page .ghost-button:hover,
.ef-overlay .ghost-button:hover {
  border-color: var(--ed-blue);
}
.ef-drop-text b {
  color: var(--ed-ink);
}
.ef-check {
  display: grid;
  gap: 6px;
  flex-basis: 100%;
  margin-top: 4px;
}
.ef-check-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ef-check-bar button {
  width: auto;
}
.ef-check-result {
  display: grid;
  gap: 4px;
}
.ef-check .ef-hint.is-risk {
  color: var(--ed-rose, #c2410c);
}
