.news-editor-footer[hidden],
.news-editor-page[hidden], .news-editor-progress[hidden] { display: none; }

.news-editor-footer {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  padding-block: 0 max(4px, env(safe-area-inset-bottom));
}
.news-admin-layout > #news-list {
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.news-admin-layout > #news-list::-webkit-scrollbar {
  display: block;
  width: 8px;
}
@supports not (scrollbar-gutter: stable) {
  .news-admin-layout > #news-list { overflow-y: scroll; }
}
.news-editor-footer .news-editor-create {
  width: min(560px, 100%, var(--news-feed-width, 100%));
  min-width: 0;
  margin: 0;
  text-decoration: none;
}
.news-editor-attach svg { width: 18px; height: 18px; flex: 0 0 auto; }

.news-admin-layout > .news-bottom {
  bottom: calc(68px + max(4px, env(safe-area-inset-bottom)));
}
.news-editor-edit {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: inherit;
  font: 14px system-ui, sans-serif;
  text-decoration: none;
}
.news-editor-edit:hover, .news-editor-edit:focus-visible { background: var(--tint); }
.news-list .news-post:has(> .news-admin[open]) { z-index: 4; }

.news-editor-page { gap: 10px; }
.news-editor-page .news-editor-heading { padding: 0 0 12px; }
.news-editor-page > .form-region { padding: 0; scrollbar-gutter: stable both-edges; }
.news-editor-page > .form-region > .scroll-content { transform: none; }
.news-editor-page .news-editor-form {
  display: grid;
  align-content: start;
  gap: 24px;
  width: min(100%, 600px);
  margin-inline: auto;
  padding: 0 0 14px;
}
.news-editor-field { display: grid; gap: 9px; }
.news-editor-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.news-editor-count { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .65; }
.news-editor-count.is-over, .news-editor-message { color: var(--color-error, #a33131); opacity: 1; }

.news-editor-form textarea {
  width: 100%;
  min-height: 216px;
  font: inherit;
  margin: 0;
  padding: 13px 14px;
  resize: vertical;
  outline: none;
  background: var(--card);
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.news-editor-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.news-editor-picker { display: grid; gap: 8px; }
.news-editor-attach { width: 100%; margin: 0; }
.news-editor-picker.is-dragging .news-editor-attach { border-color: var(--color-accent); }
.news-editor-hint { font-size: 12px; opacity: .65; }
.news-editor-files { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.news-editor-files:empty, .news-editor-message:empty { display: none; }
.news-editor-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 8px;
  min-height: 56px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.news-editor-thumb, .news-editor-file-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--tint);
}
.news-editor-file-mark { display: grid; place-items: center; font-size: 10px; }
.news-editor-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.news-editor-asset-actions { display: flex; gap: 2px; }
.news-editor-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
  font: 18px system-ui, sans-serif;
}
.news-editor-icon:hover:not(:disabled) { background: var(--tint); }
.news-editor-icon:last-child { color: var(--color-error, #a33131); }
.news-editor-icon:disabled { opacity: .3; }

.news-editor-actions {
  width: min(100%, 600px);
  margin-inline: auto;
  border: 0;
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
}
.news-editor-message, .news-editor-progress { margin: 0; font-size: 13px; line-height: 1.4; }
.news-editor-progress:not([hidden]) { margin-bottom: 8px; }
.news-editor-skeleton-label { display: block; width: 94px; height: 14px; border-radius: 6px; }
.news-editor-skeleton-text { display: block; height: 216px; border-radius: 12px; }
.news-editor-skeleton .skeleton-field { display: block; }
.news-editor-skeleton-button { display: block; width: 100%; height: 44px; }
.news-editor-failed { display: grid; justify-items: start; gap: 12px; width: min(100%, 600px); margin-inline: auto; }
.news-editor-failed p { margin: 0; }
