/* Brief & article editors — clear fields, colour, readable inputs */

.ed-page .content {
  max-width: 72rem;
}

.ed-hero {
  background: linear-gradient(135deg, #4538a0 0%, #6b5cd6 55%, #a29bff 100%);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.ed-hero h1,
.ed-hero .page-title {
  color: #fff;
  margin: 0 0 0.35rem;
}
.ed-hero .page-sub {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 42rem;
}
.ed-hero .ed-method-pill {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
}

.ed-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.ed-form-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--ink);
}

.ed-section-hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.ed-slot-summary {
  margin: -0.35rem 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #3d3489;
}

.ed-slot-summary strong {
  font-weight: 600;
}

.ed-field {
  margin-bottom: 1rem;
}

.ed-field label,
.ed-field > span.ed-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #57534e;
  margin-bottom: 0.35rem;
}

.ed-field input,
.ed-field select,
.ed-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  font-family: var(--font);
  border: 2px solid #d6d3d1;
  border-radius: 8px;
  background: #fffbeb;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.ed-field input:hover,
.ed-field select:hover,
.ed-field textarea:hover {
  border-color: #a8a29e;
  background: #fff;
}

.ed-field input:focus,
.ed-field select:focus,
.ed-field textarea:focus {
  outline: none;
  border-color: #6b5cd6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(107, 92, 214, 0.2);
}

.ed-field textarea {
  min-height: 5rem;
  resize: vertical;
  line-height: 1.55;
}

.ed-field.ed-field-lg textarea {
  min-height: 9rem;
}

.ed-field .hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.ed-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .ed-grid-2 { grid-template-columns: 1fr; }
}

.ed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.ed-msg {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.ed-msg.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* Brief list */
.bl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
}
.bl-toolbar input,
.bl-toolbar select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}
.bl-toolbar input[type="search"] {
  min-width: 14rem;
  flex: 1;
}

.bl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bl-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: #f5f3ff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5b21b6;
  border-bottom: 1px solid var(--border);
}
.bl-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.bl-table tr:hover td {
  background: rgba(107, 92, 214, 0.04);
}
.bl-table .bl-title {
  font-weight: 600;
  color: var(--accent);
}
.bl-thumb-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.bl-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Article edit — flowing story */
.ae-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .ae-layout { grid-template-columns: 1fr; }
}

.ae-brief-panel {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.88rem;
}
.ae-brief-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.ae-brief-panel .ae-ref-imgs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.ae-brief-panel .ae-ref-imgs img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #fde68a;
}

.ae-story-body textarea {
  min-height: 18rem;
  font-size: 1rem;
  line-height: 1.65;
  background: #fff;
}

.ae-images-panel {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
}
.ae-images-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.ae-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.ae-image-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.ae-image-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.ae-image-card figcaption {
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.ae-add-image {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.ae-add-image input {
  flex: 1;
  min-width: 12rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Article review — grouped body */
.ar-form-v2 label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #57534e;
  margin: 1rem 0 0.35rem;
}
.ar-form-v2 label:first-child { margin-top: 0; }
.ar-form-v2 input,
.ar-form-v2 textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid #d6d3d1;
  border-radius: 8px;
  background: #fafaf9;
  font-family: var(--font);
  font-size: 0.95rem;
}
.ar-form-v2 input:focus,
.ar-form-v2 textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  background: #fff;
}
.ar-form-v2 .ar-body-unified {
  min-height: 16rem;
  line-height: 1.65;
  font-size: 1rem;
}
.ar-form-v2 .ar-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
