/* SEO Hub panel — self-contained (no CDN: the server may not reach external CDNs). */
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn.woff2") format("woff2"); font-display: swap; }
:root {
  --bg: #f5f5f4; --card: #ffffff; --ink: #1c1917; --muted: #78716c; --line: #e7e5e4;
  --brand: #b45309; --brand-ink: #ffffff; --ok: #15803d; --warn: #b45309; --bad: #b91c1c; --info: #1d4ed8;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.9; direction: rtl; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.35rem; margin: 0 0 12px; } h2 { font-size: 1.1rem; margin: 18px 0 8px; } h3 { font-size: 1rem; }
/* No monospace here: a fixed-width font breaks the joining of Persian letters in slugs/URLs. */
.ltr { direction: ltr; unicode-bidi: isolate; }
code { direction: ltr; unicode-bidi: isolate; font-family: inherit; font-size: 12.5px; background: #f5f5f4; padding: 0 4px; border-radius: 4px; }

/* layout */
.top { background: #1c1917; color: #fafaf9; display: flex; align-items: center; gap: 18px; padding: 0 18px; min-height: 52px; flex-wrap: wrap; }
.top .brand { font-weight: bold; font-size: 1.05rem; color: #fff; }
.top nav { display: flex; gap: 2px; flex-wrap: wrap; }
.top nav a { color: #d6d3d1; padding: 6px 10px; border-radius: 6px; }
.top nav a:hover, .top nav a.on { background: #44403c; color: #fff; text-decoration: none; }
.top .right { margin-inline-start: auto; display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: #d6d3d1; }
.top .right a { color: #fcd34d; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 5px; }
.dot.ok { background: #22c55e; } .dot.bad { background: #ef4444; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 18px 16px 60px; }
.sites { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.sites a { background: var(--card); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; color: var(--ink); }
.sites a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px #0000000d; border: 1px solid var(--line); }
.card > h2:first-child { margin-top: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat .n { font-size: 1.8rem; font-weight: bold; } .stat .l { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.flash { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 8px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.help { background: #fffbeb; border: 1px solid #fde68a; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; margin: 8px 0; }

/* tables */
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--muted); font-weight: normal; font-size: 12.5px; background: #fafaf9; }
table.t tr:hover td { background: #fafaf9; }

/* forms */
.f { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 18px; }
.f .full { grid-column: 1 / -1; }
label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid #d6d3d1; border-radius: 7px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
textarea.code, input.code { direction: ltr; font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #fcd34d; border-color: var(--brand); }
.hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chk label { display: inline; color: var(--ink); font-size: 14px; }

.btn, input[type=submit].btn { display: inline-block; border: 1px solid #d6d3d1; background: #fff; color: var(--ink); padding: 6px 14px;
  border-radius: 7px; cursor: pointer; font: inherit; }
.btn:hover { background: #f5f5f4; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #92400e; }
.btn.danger { color: var(--bad); border-color: #fecaca; }
.btn.small { padding: 2px 9px; font-size: 12.5px; }

/* badges */
.badge { display: inline-block; font-size: 11.5px; padding: 1px 9px; border-radius: 999px; background: #e7e5e4; white-space: nowrap; }
.st0 { background: #e0e7ff; color: #3730a3; } .st1, .st4 { background: #fef3c7; color: #92400e; }
.st2 { background: #fde68a; color: #78350f; } .st3 { background: #d1fae5; color: #065f46; }
.st5 { background: #15803d; color: #fff; } .st6 { background: #fee2e2; color: #991b1b; }
.st7, .st8 { background: #e7e5e4; color: #57534e; }
.lvl1 { color: var(--info); } .lvl2 { color: var(--warn); } .lvl3 { color: var(--bad); font-weight: bold; }

/* calendar */
table.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
table.cal th { color: var(--muted); font-weight: normal; font-size: 12.5px; }
table.cal td { background: var(--card); border: 1px solid var(--line); border-radius: 8px; height: 104px; vertical-align: top; padding: 4px 6px; }
table.cal td.out { background: transparent; border: none; }
table.cal td.today { outline: 2px solid var(--brand); }
table.cal td.pub { background: #fffbeb; }
table.cal .dn { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
table.cal .it { display: block; font-size: 11.5px; line-height: 1.5; padding: 2px 5px; margin-top: 3px; border-radius: 5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; color: inherit; }

/* wizard */
.steps { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.steps a, .steps span { padding: 4px 12px; border-radius: 999px; background: #e7e5e4; color: var(--ink); font-size: 12.5px; }
.steps .on { background: var(--brand); color: #fff; } .steps .done { background: #d1fae5; }
.sample { overflow-x: auto; max-height: 260px; font-size: 12px; }
.sample td { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* article preview */
.serp { font-family: Arial, Tahoma, sans-serif; } .serp .t { color: #1a0dab; font-size: 1.1rem; } .serp .u { color: #006621; font-size: 12.5px; }
.article { line-height: 2.1; font-size: 15px; }
.article img { max-width: 100%; height: auto; border-radius: 8px; } .article figure { margin: 14px 0; }
.article a { background: #fef3c7; padding: 0 3px; border-radius: 3px; }
.article p[data-bridge] { background: #dbeafe; border-right: 4px solid #2563eb; padding: 4px 10px; }
.article table { border-collapse: collapse; width: 100%; } .article td, .article th { border: 1px solid var(--line); padding: 5px 8px; }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.thumbs .th { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12px; }
.thumbs img { width: 100%; height: 120px; object-fit: cover; display: block; background: #e7e5e4; }
.thumbs .th div { padding: 6px 8px; }

@media (max-width: 640px) {
  table.cal td { height: 70px; } .top nav a { padding: 4px 6px; }
}
