/* Статьи (articles module) */
.main.art-main { max-width: 1500px; padding-bottom: 24px; }
.art-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.art-head .page-title { display: flex; align-items: center; gap: 10px; }
.art-head h1 { margin: 0; }
.art-siteoff { font-size: 13px; color: #7a5a00; background: #fdf6e3; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; max-width: 980px; }
.art-views { max-width: 100%; overflow-x: auto; }
.art-views button { white-space: nowrap; padding: 6px 14px; flex: none; }
.art-views button .seg-count { background: var(--surface-2); color: var(--text); margin-left: 6px; }
.art-views button.active .seg-count { background: rgba(255, 255, 255, .25); color: #fff; }
.art-empty { padding: 28px 20px; color: var(--muted); max-width: 760px; line-height: 1.55; }
.art-muted { color: var(--muted); }

.art-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; align-items: start; }
.art-side { padding: 6px; position: sticky; top: calc(var(--top-offset) + 8px); max-height: calc(100vh - var(--top-offset) - 24px); overflow-y: auto; }
.art-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; border: 0; background: none; font: inherit; text-align: left; padding: 8px;
  border-radius: 8px; cursor: pointer; color: var(--text); }
.art-row + .art-row { margin-top: 2px; }
.art-row:hover { background: var(--surface-2); }
.art-row.active { background: #edf2ff; box-shadow: inset 3px 0 0 var(--primary); }
.art-thumb { flex: none; width: 56px; height: 56px; border-radius: 7px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); }
.art-thumb.none { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.art-row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.art-row-title { font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.art-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.art-lang-chip { font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 0 5px; border-radius: 4px; background: var(--surface-2); color: var(--text); }
.art-state { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.art-state.new { background: #edf2ff; color: var(--primary-dark); }
.art-state.ok { background: #e6f6ec; color: #1f8a4c; }
.art-state.draft { background: #f1f2f5; color: #545a6b; }
.art-state.wait { background: #fdf1d8; color: #a86a00; }
.art-state.bad { background: #fdeeee; color: var(--danger); }
.art-state.gone { background: #f1f2f5; color: var(--muted); }

.art-detail { min-width: 0; }
.art-bar { padding: 12px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.art-stateline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.art-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.art-links a { font-weight: 700; }
.art-links a.art-muted { font-weight: 400; }
.art-error { font-size: 13px; color: var(--danger); background: #fdeeee; border-radius: 8px; padding: 8px 10px; }
.art-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.art-publish { font-size: 15px; padding: 9px 18px; height: auto; display: inline-flex; align-items: center; gap: 6px; }
.art-note { font-size: 13px; background: rgba(240, 190, 40, .14); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; white-space: pre-wrap; }
.art-langs { margin-bottom: 0; display: flex; align-items: flex-end; gap: 2px; flex-wrap: wrap; }
.art-langs .tab { border: 1px solid transparent; border-bottom: 0; background: none; font: inherit; padding: 7px 14px; border-radius: 8px 8px 0 0; cursor: pointer; color: var(--muted); }
.art-langs .tab.active { background: var(--surface); border-color: var(--border); color: var(--text); }
.art-addlang { width: auto; margin: 0 0 4px 8px; font-size: 13px; padding: 4px 8px; }

.art-site { padding: 20px 26px 26px; border-top-left-radius: 0; }
.art-cap { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.art-hero { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.art-hero.none { height: 160px; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px dashed var(--border); }
.art-h1 { font-size: 28px; line-height: 1.25; margin: 18px 0 6px; }
.art-date { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.art-text { font-size: 16px; line-height: 1.65; max-width: 820px; overflow-wrap: anywhere; }
.art-text > :first-child { margin-top: 0; }
.art-text h2 { font-size: 22px; margin: 24px 0 10px; }
.art-text h3 { font-size: 18px; margin: 18px 0 8px; }
.art-text p { margin: 0 0 12px; }
.art-text ul, .art-text ol { margin: 0 0 12px; padding-left: 24px; }
.art-text img { border: 0; border-radius: 8px; }
.art-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.art-listcard { padding: 14px 16px; }
.art-listrow { display: flex; gap: 12px; align-items: flex-start; }
.art-listimg { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.art-listtitle { font-weight: 700; margin-bottom: 4px; }
.art-listexcerpt { font-size: 13px; color: var(--muted); }
.art-seo-title { color: #1a0dab; font-size: 17px; line-height: 1.3; }
.art-seo-url { color: #006621; font-size: 13px; margin: 2px 0; overflow-wrap: anywhere; }
.art-seo-desc { font-size: 13px; color: #4d5156; }

.art-editbar { position: sticky; top: calc(var(--top-offset) + 4px); z-index: 5; flex-direction: row; }
.art-form { padding: 16px 18px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 12px; }
.art-form textarea { resize: vertical; }
.art-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.art-slug { display: flex; align-items: center; gap: 2px; }
.art-slug input { flex: 1; min-width: 0; }
.art-slotfield { display: flex; flex-direction: column; gap: 6px; }
.art-slot { height: 150px; border: 1px dashed var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  cursor: pointer; background: var(--surface-2); text-align: center; padding: 0; font-size: 13px; }
.art-slot.empty { padding: 12px; }
.art-slot img { width: 100%; height: 100%; object-fit: cover; }
.art-slot.same img { opacity: .55; }
.art-slot.over, .art-slot:focus { border-color: var(--primary); outline: 2px solid rgba(79, 124, 255, .25); }
.art-slot-tools { display: flex; align-items: center; gap: 10px; }
.art-editor .art-editable { min-height: 320px; padding: 14px 16px; outline: none; }
.art-toolbar { border-bottom: 1px solid var(--border); }
.art-removelang { align-self: flex-start; color: var(--danger); font-size: 13px; }
.art-editable[contenteditable] img { cursor: pointer; }
.art-langs + .art-form { border-top-left-radius: 0; }

.art-settings { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.art-keystate { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.art-keystate.ok { color: #1f8a4c; }
.art-keystate.none { color: #a86a00; }
.art-newkey { background: #fdf6e3; border-radius: 8px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.art-keyline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.art-keycode { font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; overflow-wrap: anywhere; user-select: all; }
.art-checkres { font-size: 13px; }
.art-checkres.ok { color: #1f8a4c; }
.art-checkres.bad { color: var(--danger); }

@media (max-width: 900px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-side { position: static; max-height: 300px; }
  .art-site { padding: 14px; }
  .art-h1 { font-size: 22px; }
}
