.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-bar input:not([type="submit"]),
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 12px;
  font-size: 0.85rem;
  max-width: 100%;
}
.search-field {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: 1;
  min-width: 200px;
  padding-left: 13px;
  gap: 6px;
}
.search-field input {
  border: 0 !important;
  width: 100%;
  outline-offset: 0;
}

.editor-form {
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.editor-form > *,
.editor-form section > *,
.editor-form fieldset > * {
  margin-block: 0;
}
.editor-form section,
.editor-form fieldset,
.editor-form [data-nested-form-target="container"] {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.editor-form button:not(.full-width),
.editor-form input[type="submit"] {
  align-self: flex-start;
}
.editor-form input[readonly] {
  background: #f2f5f3 !important;
  color: var(--muted);
}

.editor-form h2 {
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  min-width: 0;
}
.field > label,
.field-label,
.comment-form label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}
.editor-form input:not([type="submit"]):not([type="checkbox"]):not([type="hidden"]),
.editor-form select,
.editor-form textarea,
.comment-form textarea {
  width: 100%;
  border: 1px solid #cedbd6;
  border-radius: 5px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
  font-size: 0.95rem;
  min-height: 45px;
}
.editor-form textarea {
  resize: vertical;
  line-height: 1.6;
}
.editor-form input[type="file"] {
  font-size: 0.8rem !important;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}
.hint a {
  text-decoration: underline;
}
.form-errors,
.flash.alert {
  background: #fff1eb;
  border: 1px solid #edc5b4;
  color: #964625;
}
.form-errors {
  padding: 18px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}
.form-errors ul {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}
.flash {
  background: #eaf2df;
  border: 1px solid #d2dfba;
  color: #4d6540;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 0.9rem;
}
.verification-banner {
  background: #fff6dd;
  border: 1px solid #ebd9a6;
  border-radius: 5px;
  font-size: 0.85rem;
  padding: 13px;
  margin-bottom: 24px;
}
.verification-banner a {
  text-decoration: underline;
}
.text-button {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--ink);
}
.danger {
  color: #ab492a;
}
.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 400 !important;
}
.check-option input {
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
}
.editor-form .form-errors,
.editor-form fieldset {
  margin: 0;
}

.filter-bar .search-select {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.filter-bar .search-select input {
  width: 100%;
}
.filter-bar .search-select > label,
.filter-bar .search-select > .hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.editor-form input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]),
.editor-form select,
.filter-bar input:not([type="hidden"]),
.filter-bar select {
  height: var(--control-height);
  min-height: var(--control-height);
  line-height: 1.25;
}
.editor-form select,
.filter-bar select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23576869' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.editor-form .button,
.filter-bar .button {
  min-height: var(--control-height);
}
@media (max-width: 740px) {
  .filter-bar .search-select {
    flex-basis: 100%;
  }
}
