.edit-view [contenteditable="true"] {
  border-radius: 10px;
  outline: 1px dashed rgba(141, 247, 193, 0.32);
  outline-offset: 6px;
  cursor: text;
}

.edit-view [contenteditable="true"]:focus {
  outline: 2px solid var(--signal);
  background: rgba(141, 247, 193, 0.06);
}

.edit-auth-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.edit-auth-card {
  width: min(460px, 100%);
  display: grid;
  gap: 1rem;
}

.edit-auth-card .edit-login-box {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(9, 9, 12, 0.92);
  box-shadow: var(--shadow-deep);
}

.edit-auth-card .edit-login-box h1 {
  max-width: none;
  margin: 0;
  font-size: 2.1rem;
  line-height: 1;
}

.edit-auth-card .edit-login-box p {
  margin: -0.25rem 0 0.2rem;
  color: var(--text-muted);
}

.edit-auth-flash {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: rgba(9, 9, 12, 0.88);
  color: var(--text-main);
  text-align: center;
}

.edit-auth-links {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.edit-auth-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.edit-pill,
.edit-small-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: rgba(231, 183, 95, 0.14);
  color: var(--text-main);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.edit-pill:hover,
.edit-small-btn:hover {
  border-color: rgba(231, 183, 95, 0.48);
  background: rgba(231, 183, 95, 0.22);
}

.edit-pill.muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.edit-small-btn {
  width: auto;
  min-height: 42px;
  padding-inline: 1rem;
}

.edit-toast {
  position: fixed;
  left: 50%;
  top: 92px;
  z-index: 80;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: rgba(9, 9, 12, 0.94);
  color: var(--text-main);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.flash-error {
  border-color: rgba(255, 77, 109, 0.5);
}

.edit-dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 0;
  background: rgba(9, 9, 12, 0.96);
  color: var(--text-main);
  box-shadow: var(--shadow-deep);
}

.edit-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.edit-login-box,
.release-editor form {
  display: grid;
  gap: 0.9rem;
}

.edit-login-box {
  position: relative;
  padding: 1.25rem;
}

.edit-login-box h2,
.release-editor h2 {
  font-size: 1.7rem;
}

.dialog-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
}

.edit-login-box .dialog-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.edit-login-box label,
.release-editor label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.edit-login-box input,
.release-editor input,
.release-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.78rem;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
  font: inherit;
}

.edit-login-box button[type="submit"],
.release-editor button[type="submit"],
.editor-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: var(--accent);
  color: #120f08;
  cursor: pointer;
  font-weight: 900;
}

.release-editor {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(430px, 100%);
  height: 100svh;
  padding: 1rem;
  border-left: 1px solid var(--line-strong);
  background: rgba(7, 7, 10, 0.97);
  box-shadow: -18px 0 70px rgba(0, 0, 0, 0.48);
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 240ms ease;
}

.release-editor.is-open {
  transform: translateX(0);
}

.release-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.field-row,
.editor-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.inline-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.55rem !important;
}

.inline-check input {
  width: auto;
}

.release-editor .muted,
.release-editor .danger {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.release-editor .danger {
  width: 100%;
  margin-top: 0.8rem;
  border-color: rgba(255, 77, 109, 0.42);
  color: #ffd3dc;
}

.hidden-form {
  display: none;
}

@media (max-width: 760px) {
  .edit-pill {
    min-height: 38px;
    padding-inline: 0.72rem;
  }

  .release-editor {
    width: 100%;
  }

  .field-row,
  .editor-actions {
    grid-template-columns: 1fr;
  }
}
