#abun-drop-overlay {
  position: fixed;
  z-index: 99998;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(2, 7, 11, 0.88);
  backdrop-filter: blur(10px);
}

#abun-drop-overlay.is-visible {
  display: grid;
}

.abun-drop-zone {
  display: grid;
  width: min(680px, 92vw);
  min-height: 310px;
  place-items: center;
  padding: 36px;
  border: 2px dashed #35d49a;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(53, 212, 154, 0.14), transparent 52%),
    #08110f;
  color: #eefaf5;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.abun-drop-zone strong {
  display: block;
  margin-bottom: 10px;
  color: #55e7b0;
  font-size: clamp(22px, 4vw, 36px);
}

.abun-drop-zone span {
  color: #93aa9f;
  font-size: 13px;
  line-height: 1.6;
}

#abun-files-button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #244538;
  border-radius: 9px;
  background: #0d1915;
  color: #74e7ba;
  font: 650 11px/1 system-ui, sans-serif;
  cursor: pointer;
}

#abun-files-button:hover {
  border-color: #35d49a;
  background: #10251d;
}

#abun-files-button b {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #35d49a;
  color: #04110c;
  font-size: 9px;
}

#abun-files-drawer {
  position: fixed;
  z-index: 99990;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 94vw);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  border-left: 1px solid #243443;
  background: #080d12;
  color: #edf5fb;
  box-shadow: -25px 0 70px rgba(0, 0, 0, 0.48);
  transition: transform 180ms ease;
}

#abun-files-drawer.is-open {
  transform: translateX(0);
}

.abun-files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 14px;
  border-bottom: 1px solid #202c39;
}

.abun-files-head strong {
  font-size: 14px;
}

.abun-files-head span {
  display: block;
  margin-top: 4px;
  color: #6f8293;
  font-size: 9px;
}

.abun-files-actions {
  display: flex;
  gap: 6px;
}

.abun-files-actions button,
.abun-file-editor-actions button {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #263746;
  border-radius: 8px;
  background: #101820;
  color: #b7c5d1;
  font: 650 10px/1 system-ui, sans-serif;
  cursor: pointer;
}

.abun-files-actions button:hover,
.abun-file-editor-actions button:hover {
  border-color: #35d49a;
  color: #71e4b6;
}

#abun-files-list {
  flex: 1;
  overflow: auto;
  padding: 10px;
}

.abun-files-empty {
  margin: 40px 18px;
  padding: 24px;
  border: 1px dashed #293a48;
  border-radius: 14px;
  color: #758795;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.abun-file-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-bottom: 6px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #0d141b;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.abun-file-row:hover {
  border-color: #294638;
  background: #101b18;
}

.abun-file-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #15221d;
  color: #55dca9;
  font-size: 15px;
}

.abun-file-copy {
  min-width: 0;
}

.abun-file-copy strong,
.abun-file-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abun-file-copy strong {
  color: #dae5ec;
  font-size: 11px;
}

.abun-file-copy small {
  margin-top: 3px;
  color: #627482;
  font-size: 8px;
}

.abun-file-delete {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d66d79;
  cursor: pointer;
}

.abun-file-delete:hover {
  background: rgba(255, 111, 125, 0.12);
}

#abun-file-editor {
  position: absolute;
  z-index: 2;
  inset: 64px 0 0;
  display: none;
  flex-direction: column;
  background: #080d12;
}

#abun-file-editor.is-open {
  display: flex;
}

.abun-file-editor-bar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #202c39;
  background: #0d141b;
}

#abun-file-editor-name {
  min-width: 0;
  overflow: hidden;
  color: #dbe6ed;
  font: 650 11px/1.3 ui-monospace, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abun-file-editor-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

#abun-file-textarea {
  flex: 1;
  width: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: 0;
  padding: 16px;
  background:
    linear-gradient(90deg, #0b1117 52px, #18232d 53px, #080d12 54px);
  color: #dce8f0;
  font: 13px/1.65 "Cascadia Code", Consolas, monospace;
  tab-size: 2;
  white-space: pre;
}

.abun-drop-toast {
  position: fixed;
  z-index: 99999;
  right: 18px;
  bottom: 18px;
  max-width: min(390px, calc(100vw - 36px));
  padding: 11px 14px;
  border: 1px solid #285340;
  border-radius: 11px;
  background: #0d1d17;
  color: #b8efd9;
  font: 600 11px/1.45 system-ui, sans-serif;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
