/* Nihrir panel */
:root { --ink: #1d1a15; --muted: #776f62; --line: #e6e0d5; --bg: #f6f3ee; --card: #fff; --gold: #a87422; --red: #b3261e; --green: #2e7d32; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; }
h1 small { color: var(--muted); font-weight: 400; font-size: 16px; }
h2 { font-size: 15px; margin: 0 0 12px; }
.top { display: flex; align-items: center; gap: 20px; background: #15120d; color: #d8cfbf; padding: 0 20px; min-height: 54px; flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.brand img { filter: brightness(0) invert(1); }
.top nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.top nav a { color: #d8cfbf; padding: 16px 11px; }
.top nav a.on { color: #fff; box-shadow: inset 0 -3px var(--gold); }
.top nav a:hover { color: #fff; text-decoration: none; }
.who { font-size: 13px; }
.who a { color: #e3c48a; }
.main { max-width: 1320px; margin: 0 auto; padding: 22px 20px 60px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.head-act { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 15px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.btn:hover { border-color: #cfc6b6; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #3a342b; }
.btn.danger { color: var(--red); border-color: #efc9c5; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; padding: 0; }
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; background: #e8f3e8; color: #1e5b22; border: 1px solid #c7e2c8; }
.flash.err { background: #fbeceb; color: #8c1d17; border-color: #f0c8c4; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.panel.sticky { position: sticky; top: 74px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt { margin-top: 12px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.cols.c2 { grid-template-columns: 1.6fr 1fr; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stats a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: var(--ink); text-decoration: none; }
.stats b { display: block; font-size: 30px; line-height: 1.1; }
.stats span { color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list a { color: var(--ink); }
.list small { color: var(--muted); white-space: nowrap; }
.st { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; margin-top: 7px; background: #c9b98f; }
.st.publish { background: var(--green); }
label { display: block; font-weight: 600; margin-bottom: 12px; }
label small { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=file]), select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid #e3c48a; border-color: #d2b06c; }
input[type=file] { margin-top: 6px; font-weight: 400; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 999px; color: var(--ink); }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs small { opacity: .7; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input:not([type=hidden]), .filters select { width: auto; margin: 0; min-width: 220px; }
.filters input[type=search] { flex: 1; max-width: 420px; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel .tbl { border: 0; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); background: #fbf9f5; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .t { color: var(--ink); font-weight: 600; }
.tbl .num { text-align: right; }
.nowrap { white-space: nowrap; }
.thumb { width: 64px; }
.thumb img { width: 56px; height: 40px; object-fit: cover; border-radius: 5px; display: block; }
.row-act { font-size: 12.5px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #f1ead9; color: #6d5310; white-space: nowrap; }
.badge.publish { background: #e5f1e5; color: var(--green); }
.badge.pending { background: #fde9d4; color: #9a4b00; }
.pg { display: flex; gap: 4px; justify-content: center; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.pg a, .pg span { padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.pg span { background: var(--ink); color: #fff; }
.edit-grid { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
.title-in { font-size: 26px !important; font-weight: 700 !important; padding: 12px 14px !important; }
.slug-row { display: flex; align-items: center; gap: 4px; margin: 8px 0 14px; color: var(--muted); font-size: 13px; }
.slug-row input { margin: 0 !important; padding: 4px 8px !important; font-size: 13px; }
.tox-tinymce { border-radius: 12px !important; border-color: var(--line) !important; margin-bottom: 16px; }
.cover img { width: 100%; height: auto; border-radius: 8px; display: block; margin-bottom: 8px; }
.catbox { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.serp { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-family: arial, sans-serif; }
.serp-url { font-size: 12.5px; color: #4d5156; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 3px 0; }
.serp-desc { color: #4d5156; font-size: 13.5px; }
.panel.danger { background: transparent; border-style: dashed; }
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.login img { display: block; margin: 0 auto 6px; }
.login h1 { text-align: center; font-size: 18px; margin-bottom: 18px; color: var(--muted); font-weight: 600; }
.login .btn { width: 100%; padding: 11px; }
@media (max-width: 1000px) {
  .cols, .cols.c2, .edit-grid { grid-template-columns: 1fr; }
  .panel.sticky { position: static; }
  .who { width: 100%; padding-bottom: 8px; }
}
@media (max-width: 700px) {
  .main { padding: 16px 12px 40px; }
  .tbl th:nth-child(3), .tbl td:nth-child(3), .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
  .stats { grid-template-columns: 1fr; }
  .filters input, .filters select { min-width: 0; flex: 1; }
  .top nav a { padding: 12px 8px; }
}
.check-block { border-top: 1px solid var(--line); padding: 10px 0; }
.check-block:first-of-type { border-top: 0; }
.check-block summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
.check-block .list { max-height: 320px; overflow-y: auto; }
.steps { padding-left: 18px; margin: 0; }
.steps li { padding: 3px 0; }
code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
