.yal-articles-mount {
  min-height: calc(100vh - 53px);
  display: flex;
  flex-direction: column;
}

.yal-articles-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  flex: 1;
  min-height: calc(100vh - 53px);
}

.yal-articles-list {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.yal-articles-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.yal-articles-list-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.yal-articles-new {
  border: none;
  background: transparent;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.yal-articles-new:hover {
  background: rgba(231, 233, 234, 0.08);
}

.yal-articles-new svg {
  width: 20px;
  height: 20px;
}

.yal-articles-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.yal-articles-tabs button {
  flex: 1;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 8px;
  cursor: pointer;
}

.yal-articles-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

.yal-articles-list-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.yal-articles-empty-list {
  padding: 24px 16px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.yal-articles-row {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid #16181c;
  background: transparent;
  color: var(--text);
  padding: 14px 16px;
  cursor: pointer;
  border-radius: 0;
}

.yal-articles-row:hover {
  background: rgba(231, 233, 234, 0.04);
}

.yal-articles-row.active {
  background: rgba(29, 155, 240, 0.08);
}

.yal-articles-row strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yal-articles-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.yal-articles-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.yal-articles-empty-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  gap: 8px;
}

.yal-articles-empty-main h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
}

.yal-articles-empty-main p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.yal-articles-write-btn {
  background: var(--blue);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
}

.yal-articles-write-btn:hover {
  filter: brightness(1.08);
}

.yal-articles-write-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.yal-articles-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 20px;
  gap: 12px;
  overflow-y: auto;
}

.yal-articles-editor input {
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 0;
  background: transparent;
}

.yal-articles-editor input:focus {
  outline: none;
  border-bottom-color: var(--blue);
}

.yal-articles-editor textarea {
  flex: 1;
  min-height: 280px;
  resize: vertical;
  border: none;
  background: transparent;
  line-height: 1.55;
  padding: 8px 0;
}

.yal-articles-editor textarea:focus {
  outline: none;
}

.yal-articles-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.yal-articles-editor-actions .yal-articles-publish {
  background: var(--blue);
  border: none;
  color: #fff;
  font-weight: 700;
}

.yal-articles-editor-actions .yal-articles-save {
  border-color: var(--border);
}

.yal-articles-editor-actions .yal-articles-delete {
  margin-left: auto;
  color: #f4212e;
  border-color: #67070f;
}

.yal-articles-status {
  color: var(--muted);
  font-size: 0.85rem;
  flex: 1;
  min-width: 120px;
}

.yal-articles-status.ok {
  color: #00ba7c;
}

.yal-articles-status.err {
  color: #f4212e;
}

.yal-articles-preview {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.yal-articles-preview h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

.yal-articles-preview .yal-articles-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.yal-articles-preview .yal-articles-body {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 1rem;
}

.yal-articles-gate {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 768px) {
  .yal-articles-split {
    grid-template-columns: 1fr;
  }

  .yal-articles-main {
    min-height: 50vh;
  }
}
