/* SKGA EDIT ATTACHMENTS UI 539599 */
/* SKGA assignment upload · 539598 */

#aeForm .as598-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 138px;
  padding: 22px 16px;
  border: 1px dashed #536070;
  border-radius: 13px;
  background: #252a32;
  color: #f0f3f8;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .15s, background .15s;
}

#aeForm .as598-zone:hover,
#aeForm .as598-zone:focus-visible,
#aeForm .as598-zone.as598-dragging {
  border-color: #b73a40;
  background: #303039;
  outline: none;
}

#aeForm .as598-icon {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
}

#aeForm .as598-title {
  font-weight: 700;
  font-size: 14px;
}

#aeForm .as598-subtitle {
  font-size: 12px;
  color: #aeb9ca;
  line-height: 1.5;
}

#aeForm .as598-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

#aeForm .as598-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #434b58;
  border-radius: 9px;
  background: #252a32;
  color: #eef2f8;
}

#aeForm .as598-filename {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

#aeForm .as598-size {
  color: #b1bccb;
  font-size: 11px;
}

#aeForm .as598-remove {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
}

#aeForm .as598-error {
  color: #ef8b91;
  font-size: 12px;
  margin-top: 7px;
}

/* Скрываем стандартный input только после инициализации */
#aeForm .as598-ready input[type="file"][multiple] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Светлая тема */
html:not([data-theme="dark"]) #aeForm .as598-zone {
  background: #f4f6f9;
  border-color: #b8c4d3;
  color: #1d2939;
}
html:not([data-theme="dark"]) #aeForm .as598-subtitle {
  color: #68778b;
}
html:not([data-theme="dark"]) #aeForm .as598-file {
  background: #f6f8fa;
  border-color: #d5dde7;
  color: #1d2939;
}
html:not([data-theme="dark"]) #aeForm .as598-size {
  color: #68778b;
}
html:not([data-theme="dark"]) #aeForm .as598-zone:hover,
html:not([data-theme="dark"]) #aeForm .as598-zone.as598-dragging {
  background: #f4eeee;
  border-color: #a12429;
}
