/* آوش ابزار — ظاهر پنل
   فونت: اگر فایل‌های لایسنس‌دار IRANSans در static/fonts قرار بگیرند همان استفاده می‌شود،
   وگرنه Vazirmatn (رایگان) و در نهایت فونت سیستم. */
@font-face { font-family: "IRANSans"; src: url("fonts/IRANSansWeb.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("fonts/IRANSansWeb_Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --red: #c4453f; --red-dark: #a8322d; --red-soft: #fbedec; --red-line: #e8b4b0;
  --ink: #1e2329; --ink-2: #3a424c; --muted: #5c6570;
  --line: #e6e8ec; --line-2: #eef0f3; --bg: #f5f6f8; --bg-2: #fafbfc; --card: #fff;
  --ok: #1d7a46; --ok-soft: #e6f4ec; --warn: #8a5000; --warn-soft: #fff1df;
  --info: #1f5fad; --info-soft: #e8f0fb; --bad: #b42318; --bad-soft: #fdebea;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "IRANSans", "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.8; direction: rtl;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .ltr { direction: ltr; unicode-bidi: embed; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
h1 { font-size: 24px; font-weight: 800; margin: 0; }
h2 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 800; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 4px 0 0; }
.small { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.mt { margin-top: 14px; } .mb { margin-bottom: 16px; }
.danger-text { color: var(--bad); }
.nowrap { white-space: nowrap; }

/* ---------- چیدمان ---------- */
.layout { display: flex; min-height: 100vh; align-items: stretch; }
.side { flex: 0 0 248px; background: var(--card); border-left: 1px solid var(--line); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
main { flex: 1 1 auto; min-width: 0; padding: 28px 32px 48px; max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.brand b { font-size: 18px; font-weight: 800; line-height: 1.4; display: block; }
.brand b span { color: var(--red); }
.brand small { display: block; font-size: 11px; color: var(--muted); }
.site-box { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--bg); }
.site-box .mark { flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--red-soft); color: var(--red-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; }
.site-box .name { flex: 1 1 auto; min-width: 0; }
.site-box .name small { display: block; font-size: 11px; color: var(--muted); }
.site-box .name b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-box a { font-size: 12px; font-weight: 700; padding: 8px 4px; }
.nav { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.nav .group-title { font-size: 11px; font-weight: 700; color: var(--muted); padding: 0 12px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.active { background: var(--red-soft); color: var(--red-dark); font-weight: 700; }
.nav svg, .ico { width: 20px; height: 20px; flex: 0 0 20px; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.user-box { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.user-box .avatar { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-box .who { flex: 1 1 auto; min-width: 0; }
.user-box .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-box .who small { display: block; font-size: 11px; color: var(--muted); }
.icon-btn { width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 8px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--bg); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumb a { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- اجزای پایه ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 16px 20px; margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.kpis { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .main-col { flex: 3 1 520px; min-width: 0; }
.split > .side-col { flex: 2 1 340px; min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #d4d7dc; text-decoration: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--red-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.soft { background: var(--red-soft); border-color: var(--red-soft); color: var(--red-dark); font-weight: 700; }
.btn.outline-red { border-color: var(--red); color: var(--red-dark); font-weight: 700; }
.btn.ghost-danger { color: var(--bad); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; }
form.inline { display: inline; }

label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=password], input[type=url], input[type=email], input[type=search], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid #d5d9df; border-radius: 12px; padding: 0 14px; background: #fff; color: var(--ink); }
textarea { padding: 10px 14px; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red-soft); border-color: var(--red); }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > div { flex: 1 1 200px; }
.row > .btn { flex: 0 0 auto; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  background: var(--bg-2); font-weight: 500; margin-bottom: 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; }
.flash.ok { background: var(--ok-soft); border-color: #bfe3cf; color: var(--ok); }
.flash.bad { background: var(--bad-soft); border-color: #f5c2c0; color: var(--bad); }
.note, .flash.info { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); padding: 12px 16px; border-radius: 12px; }
.note.warn { background: var(--warn-soft); border-color: #f3d9ae; color: #6b4200; }
.note.info { background: var(--info-soft); border-color: #cfdff5; color: #1f4e8a; }
.note.bad { background: var(--bad-soft); border-color: #f5c2c0; color: var(--bad); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 11.5px;
  font-weight: 700; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: #f1f2f4; color: var(--ink-2); }
.badge.dark { background: var(--ink); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

table { width: 100%; border-collapse: collapse; }
th { text-align: right; font-weight: 600; color: var(--muted); font-size: 12px; padding: 11px 12px; background: var(--bg-2);
  border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.empty b { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 4px; }
.empty .ico { width: 34px; height: 34px; color: #b4bac2; margin-bottom: 6px; }
.empty-inline { color: var(--muted); font-size: 12.5px; padding: 12px; background: var(--bg-2); border: 1px dashed #d5d9df; border-radius: 12px; }

.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi b { display: block; font-size: 22px; font-weight: 800; }
.kpi small { display: block; font-size: 11px; color: var(--muted); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
details.explain summary { cursor: pointer; color: var(--ink-2); }
details.explain { margin-top: 10px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; }
.tabs a:hover { text-decoration: none; border-color: #d4d7dc; }
.seg { display: inline-flex; background: #f1f2f4; border-radius: 10px; padding: 3px; }
.seg span { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.seg span.on { background: #fff; color: var(--ink); font-weight: 700; }
.sites-check { columns: 3; column-gap: 20px; margin: 10px 0; }
.sites-check label { font-weight: 500; display: flex; gap: 6px; align-items: center; }

/* ---------- انتخاب سایت ---------- */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.site-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: #fff; color: var(--ink); }
.site-card:hover { text-decoration: none; border-color: var(--red-line); }
.site-card .band { height: 96px; display: flex; align-items: center; justify-content: center; background: var(--red-soft); }
.site-card .band.c1 { background: #e8f0fb; } .site-card .band.c2 { background: #ecedef; }
.site-card .band.c3 { background: #fbeff5; } .site-card .band.c4 { background: #e6f4ec; }
.site-card .logo { width: 60px; height: 60px; border-radius: 18px; background: var(--red); color: #fff; border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.site-card .band.c1 .logo { background: #1f5fad; } .site-card .band.c2 .logo { background: #1e2329; }
.site-card .band.c3 .logo { background: #9d2a64; } .site-card .band.c4 .logo { background: #1d7a46; }
.site-card .body { padding: 14px 16px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.site-card .body b { font-size: 16px; font-weight: 800; }
.site-card .body .ltr { font-size: 12.5px; color: var(--muted); }
.site-card .go { margin-top: 10px; width: 100%; min-height: 40px; border-radius: 12px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 0; cursor: pointer; }
.site-card.selected { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.site-card.add { border: 2px dashed #d5d9df; background: var(--bg-2); align-items: center; justify-content: center; min-height: 250px;
  color: var(--muted); font-weight: 700; gap: 8px; }

/* ---------- اجزای صفحه‌های محتوا ---------- */
.steps { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.step { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; }
.step i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: #8a929c; color: #fff; font-size: 12px;
  font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step b { display: block; font-size: 13px; }
.step small { display: block; font-size: 11px; color: var(--muted); }
.progress { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 8px; background: var(--red); border-radius: 999px; width: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg-2);
  border-radius: 12px; margin-bottom: 8px; }
.dashed-box { border: 1px dashed var(--red-line); background: #fdf6f5; border-radius: 14px; padding: 14px; }
.img-slot { aspect-ratio: 780 / 470; border-radius: 14px; border: 1px dashed #c9ced6; background: var(--bg-2); display: flex;
  flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px; gap: 6px; text-align: center; padding: 10px; }
.tool-card { display: flex; flex-direction: column; gap: 14px; }
.tool-card .head { display: flex; gap: 12px; align-items: flex-start; }
.tool-card .ticon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--ink-2); }
.tool-card .ticon.t-gsc { background: var(--info-soft); color: var(--info); }
.tool-card .ticon.t-ai { background: #f3edfb; color: #6b3fa0; }
.tool-card .ticon.t-ps { background: var(--bad-soft); color: var(--bad); }
.tool-card .ticon.t-ss { background: var(--red-soft); color: var(--red-dark); }
.tool-card .ticon.t-sf { background: var(--ok-soft); color: var(--ok); }
.tool-card .ticon.t-gt { background: var(--warn-soft); color: var(--warn); }
.tool-card .status { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--bg-2); border-radius: 12px; font-size: 12px; }
.tool-card .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.legal-note { font-size: 12px; color: var(--muted); line-height: 1.9; padding: 10px 12px; background: var(--bg-2); border-radius: 12px; }
.weights { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.weights > div { padding: 12px; background: var(--bg-2); border-radius: 12px; }
.weights .bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.weights .bar span { display: block; height: 6px; background: var(--ink); }
.w25 { width: 25%; } .w20 { width: 20%; } .w15 { width: 15%; } .w10 { width: 10%; }

/* ---------- ورود ---------- */
.login-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; background: #fff; }
.login-hero { flex: 1 1 480px; background: var(--red-soft); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.login-hero .brand img { width: 84px; height: 84px; border-radius: 20px; }
.login-hero h1 { font-size: 32px; line-height: 1.6; max-width: 480px; }
.login-hero p { color: #4a3533; font-size: 15px; line-height: 2; max-width: 480px; }
.login-hero ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.login-hero li::before { content: "✓"; color: var(--red-dark); background: #fff; border-radius: 8px; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center; margin-left: 10px; font-weight: 800; }
.login-side { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 24px; margin-bottom: 6px; }
.login-card .btn { width: 100%; min-height: 48px; margin-top: 6px; }
.error-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.error-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; max-width: 420px; width: 100%; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.stats > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg-2); }
.stats span { display: block; font-size: 12px; color: var(--muted); }
.stats b { font-size: 19px; font-weight: 800; }
td.small { white-space: nowrap; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .side { position: static; height: auto; flex-basis: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  main { padding: 18px 16px 40px; }
  .sites-check { columns: 1; }
  .login-hero { padding: 32px 20px; }
  .grid.cols-2 { grid-template-columns: 1fr; }
}
.plain { border: 0; padding: 0; margin: 0 0 14px; }

/* ابزارها: شبکه کارت‌ها، سرصفحه ابزار و انتخاب دامنه */
.tool-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tool-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-tile:hover { border-color: var(--red-line); box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateY(-2px); }
.tool-tile b { font-size: 15.5px; }
.tool-tile .go { margin-top: auto; font-size: 12.5px; color: var(--red-dark); font-weight: 700; }
.ticon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; }
.ticon.lg { flex-basis: 54px; width: 54px; height: 54px; border-radius: 16px; }
.ticon .ico { width: 26px; height: 26px; }
.ticon.lg .ico { width: 30px; height: 30px; }
.ticon.t-gsc { background: #e8f0fe; color: #1a73e8; }
.ticon.t-ps { background: #fef3e2; color: #e8710a; }
.ticon.t-ai { background: #f3edfb; color: #7b4bc4; }
.ticon.t-gt { background: #e6f4ea; color: #188038; }
.ticon.t-sf { background: #eaf6e4; color: #4c9a2a; }
.ticon.t-ss { background: var(--red-soft); color: var(--red-dark); }
.tool-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.tool-title { display: flex; gap: 14px; align-items: center; }
.tool-title h1 { margin: 2px 0 6px; }
.site-picker { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.site-picker label { font-size: 12px; color: var(--muted); margin: 0; }
.site-picker select { min-width: 220px; margin: 0; }
.kpi.k-blue b { color: #1a73e8; } .kpi.k-purple b { color: #7b4bc4; } .kpi.k-green b { color: #188038; }
.kpi.k-orange b { color: #e8710a; } .kpi.k-red b { color: var(--red-dark); }
.bar-chart { width: 100%; height: 170px; display: block; }
.bar-chart rect { fill: #1a73e8; opacity: .85; }
.bar-chart rect:hover { opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btns.center { justify-content: center; }
.chart-axis { direction: ltr; }

/* ================= ظاهر نسخه ۲: طوسی، سفید، قرمز ================= */
:root {
  --red: #d0342c; --red-dark: #a8261f; --red-soft: #fdecea; --red-line: #f1b9b4; --red-glow: rgba(208, 52, 44, .28);
  --ink: #17191d; --ink-2: #353a42; --muted: #6b717b;
  --line: #e3e5e9; --line-2: #eceef1; --bg: #f0f1f3; --bg-2: #f7f8f9;
  --side: #1b1e23; --side-2: #23272d; --side-ink: #d5d9df; --side-muted: #858c96; --side-line: rgba(255, 255, 255, .07);
}
html, body { background: var(--bg); }

/* منوی کناری تیره */
.side { background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%); border-left: 0;
  box-shadow: -1px 0 0 rgba(0, 0, 0, .25); padding: 22px 14px; color: var(--side-ink); }
.brand { color: #fff; padding: 2px 6px 14px; border-bottom: 1px solid var(--side-line); }
.brand img { border: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.brand b { color: #fff; }
.brand b span { color: #ff5a50; }
.brand small { color: var(--side-muted); }
.site-box { background: rgba(255, 255, 255, .05); border: 1px solid var(--side-line); }
.site-box .mark { background: linear-gradient(135deg, #e5483f, var(--red-dark)); color: #fff; box-shadow: 0 4px 12px var(--red-glow); }
.site-box .name small { color: var(--side-muted); }
.site-box .name b { color: #fff; }
.site-box a { color: #ff7a71; }
.side .empty-inline { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); color: var(--side-muted); }
.nav { gap: 18px; }
.nav .group-title { color: var(--side-muted); font-size: 10.5px; letter-spacing: .02em; padding: 0 10px 6px; }
.nav a { color: var(--side-ink); gap: 12px; min-height: 44px; padding: 0 8px; margin-bottom: 2px; position: relative;
  transition: background .15s, color .15s; }
.nav a svg { width: 34px; height: 34px; flex: 0 0 34px; padding: 7px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); stroke-width: 1.7; transition: background .15s; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a:hover svg { background: rgba(255, 255, 255, .1); }
.nav a.active { background: linear-gradient(270deg, rgba(208, 52, 44, .28), rgba(208, 52, 44, .06)); color: #fff; font-weight: 700; }
.nav a.active svg { background: linear-gradient(135deg, #e5483f, var(--red-dark)); color: #fff; box-shadow: 0 4px 12px var(--red-glow); }
.nav a.active::before { content: ""; position: absolute; inset-inline-start: -14px; top: 10px; bottom: 10px; width: 4px;
  border-radius: 0 4px 4px 0; background: #ff5a50; }
.user-box { border-color: var(--side-line); background: rgba(255, 255, 255, .04); }
.user-box .avatar { background: linear-gradient(135deg, #e5483f, var(--red-dark)); }
.user-box .who b { color: #fff; }
.user-box .who small { color: var(--side-muted); }
.side .icon-btn { color: var(--side-muted); }
.side .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* محتوا */
main { padding: 30px 34px 52px; }
.crumb, .crumb a { color: var(--muted); }
h1 { letter-spacing: -.01em; }
.card { box-shadow: 0 1px 2px rgba(16, 24, 40, .04); border-color: var(--line); }
.card-head h2, section.card > h2 { display: flex; align-items: center; gap: 8px; }
.card-head h2::before, section.card > h2::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--red); }
.btn.primary { background: linear-gradient(135deg, #e5483f, var(--red-dark)); border-color: var(--red-dark);
  box-shadow: 0 4px 12px var(--red-glow); }
.btn.primary:hover { background: var(--red-dark); }
thead th { background: var(--bg-2); color: var(--ink-2); }
.kpi { position: relative; overflow: hidden; border-color: var(--line); }
.kpi::after { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: #c9cdd3; }
.kpi b, .kpi.k-purple b, .kpi.k-blue b { color: var(--ink); }
.kpi.k-blue::after { background: var(--red); }
.kpi.k-blue b { color: var(--red-dark); }
.kpi.k-purple::after { background: #6b717b; }
.kpi.k-green b { color: var(--ok); } .kpi.k-green::after { background: var(--ok); }
.kpi.k-orange b { color: var(--warn); } .kpi.k-orange::after { background: #d98a1c; }
.kpi.k-red b { color: var(--red-dark); } .kpi.k-red::after { background: var(--red); }
.bar-chart rect { fill: var(--red); opacity: .78; }
.bar-chart rect:hover { opacity: 1; fill: var(--red-dark); }

/* ابزارها: کارت‌های یکدست طوسی/قرمز */
.ticon, .ticon.t-gsc, .ticon.t-ps, .ticon.t-ai, .ticon.t-gt, .ticon.t-sf, .ticon.t-ss {
  background: var(--bg); color: var(--red); border: 1px solid var(--line); }
.ticon .ico { stroke-width: 1.7; }
.tool-tile { position: relative; overflow: hidden; padding: 22px; }
.tool-tile::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red), #ff7a71);
  transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.tool-tile:hover::before { transform: scaleX(1); }
.tool-tile:hover .ticon { background: linear-gradient(135deg, #e5483f, var(--red-dark)); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px var(--red-glow); }
.tool-tile .ticon { transition: background .2s, color .2s, box-shadow .2s; }
.tool-head .ticon.lg { background: linear-gradient(135deg, #e5483f, var(--red-dark)); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px var(--red-glow); }
.site-picker { background: var(--card); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.site-picker select:focus { border-color: var(--red); outline: 2px solid var(--red-soft); }
.note.info { background: #f4f5f7; border-color: var(--line); color: var(--ink-2); border-inline-start: 3px solid var(--red); }
.tool-tile:hover, .tool-tile:hover * { text-decoration: none; }
.nav a.active::before { inset-inline-start: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; }

/* ================= نسخه ۳: رنگ دقیق لوگو + استودیوی محتوا ================= */
:root { --red: #e10e0e; --red-dark: #b40b0b; --red-soft: #fdeceb; --red-line: #f6b8b6; --red-glow: rgba(225, 14, 14, .26);
  --side: #1a1b1e; --side-2: #232428; }
.brand b span { color: #ff3b37; }
/* گروه کشویی منو */
.nav-group { border-radius: 12px; }
.nav-group > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px; border-radius: 10px;
  color: #fff; font-weight: 700; cursor: pointer; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary > svg.ico { width: 34px; height: 34px; flex: 0 0 34px; padding: 7px; border-radius: 10px;
  background: linear-gradient(135deg, #ff2f2b, var(--red-dark)); color: #fff; box-shadow: 0 4px 12px var(--red-glow); }
.nav-group > summary .chev { width: 16px; height: 16px; margin-inline-start: auto; stroke: var(--side-muted); fill: none; stroke-width: 2; transition: transform .2s; }
.nav-group[open] > summary .chev { transform: rotate(180deg); }
.nav-group > summary:hover { background: rgba(255, 255, 255, .06); }
.nav-sub { margin: 4px 22px 6px 0; padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; }
.nav-sub a { min-height: 38px; font-size: 13px; }
.nav-sub a svg { width: 28px !important; height: 28px !important; flex-basis: 28px !important; padding: 6px !important; }
.nav-sub a.active::before { inset-inline-start: -11px; }
/* سرصفحه ابزار */
.st-head { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px;
  margin-bottom: 16px; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.st-head::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 14, 14, .07), transparent 70%); pointer-events: none; }
.st-ic { flex: 0 0 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff2f2b, var(--red-dark)); color: #fff; box-shadow: 0 8px 20px var(--red-glow); }
.st-ic .ico { width: 26px; height: 26px; }
.st-tt h1 { font-size: 21px; margin: 0; }
.st-tt p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.st-head > :last-child:not(.st-tt):not(.st-ic) { margin-inline-start: auto; }
.pill-note { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; border-radius: 20px; padding: 3px 12px; white-space: nowrap; }
.st-bar { display: flex; gap: 10px; align-items: center; padding: 12px; }
.st-bar input[type=search], .st-bar input[type=text] { flex: 1 1 auto; margin: 0; }
.st-bar select { width: auto; margin: 0; }
.st-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-row > input, .st-row > select { margin: 0; width: auto; }
.grow { flex: 1 1 auto; } .w-120 { min-width: 120px; } .d-block { display: block; }
.mini-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mini-l select { width: auto; margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; font-size: 12.5px; background: #fff; color: var(--ink-2); }
.chip:hover { text-decoration: none; border-color: var(--red-line); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip b { color: var(--red); margin-inline-start: 4px; } .chip.on b { color: #ff8a87; }
.term { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.term input { margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; display: inline-block; background: #8a8f98; }
.dot.c0 { background: #e10e0e; } .dot.c1 { background: #17181b; } .dot.c2 { background: #8a8f98; } .dot.c3 { background: #f08a87; } .dot.c4 { background: #4b4f57; }
.tr-chart { width: 100%; height: 230px; display: block; background: linear-gradient(#f2f3f5 1px, transparent 1px) 0 0 / 100% 25%; border-radius: 8px; }
.file-btn { cursor: pointer; }
.spin { width: 26px; height: 26px; border: 3px solid var(--red-soft); border-top-color: var(--red); border-radius: 50%; display: inline-block; animation: sp 1s linear infinite; margin-bottom: 8px; }
@keyframes sp { to { transform: rotate(360deg); } }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed #d5d8dd; border-radius: 16px;
  padding: 34px 16px; cursor: pointer; background: var(--bg-2); text-align: center; transition: border-color .2s, background .2s; }
.drop:hover, .drop.on { border-color: var(--red); background: var(--red-soft); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
.img-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #fff; }
.img-card img { width: 100%; border-radius: 10px; display: block; margin-bottom: 6px; }
.ig-canvas svg { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.block { width: 100%; justify-content: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; direction: ltr; background: #17181b; color: #e8e9ec; border-radius: 12px; }
#d-rows input, #d-rows select { margin: 0; min-width: 110px; padding: 6px 8px; font-size: 12.5px; }
#d-rows tr.st-ok { background: #f0faf3; } #d-rows tr.st-notfound, #d-rows tr.st-inactive { background: #fff4f4; } #d-rows tr.st-spec { background: #fff8ec; }
.brief h3 { margin-top: 16px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brief h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.brief ul { margin: 4px 0; padding-inline-start: 20px; }
.bf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bf-grid > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.bf-grid span { display: block; font-size: 11.5px; color: var(--muted); } .bf-grid b { font-size: 13px; }
.bank-filter { gap: 10px; padding: 12px 16px; margin: 0; }
.bank-filter input[type=search] { width: 220px; margin: 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 3px 11px; border-radius: 20px; font-size: 12.5px; color: var(--ink-2); border: 1px solid transparent; }
.tabs a.on { background: var(--red); color: #fff; } .tabs a b { font-weight: 800; }
.tabs a:hover { text-decoration: none; border-color: var(--line); }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; }
.seg a { padding: 2px 12px; border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.seg a.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg a:hover { text-decoration: none; }
.st-sel { margin: 0; width: auto; padding: 3px 8px; font-size: 12px; border-radius: 20px; font-weight: 700; }
.st-sel.s-published { background: var(--ok-soft); color: var(--ok); } .st-sel.s-stale { background: var(--red-soft); color: var(--red-dark); }
.st-sel.s-writing, .st-sel.s-draft { background: var(--warn-soft); color: var(--warn); } .st-sel.s-review { background: #eef0f3; color: var(--ink); }
.score { display: inline-block; width: 60px; height: 6px; background: #eceef1; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.score i { display: block; height: 100%; } .score.hi i { background: var(--ok); } .score.mid i { background: #e08a00; } .score.lo i { background: var(--red); }
.kanban { display: grid; grid-template-columns: repeat(7, minmax(160px, 1fr)); gap: 10px; padding: 12px; overflow-x: auto; }
.kcol { background: var(--bg); border-radius: 14px; padding: 8px; min-height: 120px; }
.kcol h4 { margin: 2px 4px 8px; font-size: 12.5px; display: flex; justify-content: space-between; }
.kcol h4 span { background: #fff; border-radius: 20px; padding: 0 8px; font-size: 11px; }
.kitem { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.kitem b { font-size: 12.5px; }
.hrow { padding: 8px 10px; border-bottom: 1px dashed #eceef1; }
.hrow.h3 { border: 0; padding: 4px 0 0 0; margin-inline-start: 26px; color: var(--ink-2); }
.htag { display: inline-block; font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 0 6px; margin-inline-end: 6px; background: var(--red); color: #fff; }
.h3 .htag { background: var(--ink-2); }
.qc-score { text-align: center; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.qc-score b { display: block; font-size: 40px; font-weight: 900; line-height: 1.2; } .qc-score span { font-size: 12px; }
.qc-score.hi { background: var(--ok-soft); color: var(--ok); } .qc-score.mid { background: var(--warn-soft); color: var(--warn); } .qc-score.lo { background: var(--red-soft); color: var(--red-dark); }
.chk { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed #eceef1; font-size: 13px; }
.chk .ok { color: var(--ok); font-weight: 900; } .chk .x { color: var(--red); font-weight: 900; } .chk .w { color: #d98200; font-weight: 900; }
.faq-item { padding: 12px; margin-bottom: 10px; }
.faq-item input, .faq-item textarea { margin: 0; }
.meter { height: 6px; background: #eceef1; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: #c8cad0; } .meter i.ok { background: var(--ok); } .meter i.warn { background: #e08a00; } .meter i.bad { background: var(--red); }
.serp { border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-family: Arial, Tahoma, sans-serif; }
.serp.mobile { max-width: 360px; margin: 0 auto; }
.s-site { display: flex; gap: 8px; align-items: center; } .s-site b { display: block; font-size: 13px; } .s-site small { color: #4d5156; font-size: 11.5px; }
.s-fav { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.s-title { color: #1a0dab; font-size: 19px; margin: 6px 0 2px; line-height: 1.5; }
.s-desc { color: #4d5156; font-size: 13px; line-height: 1.7; } .s-desc b { color: #202124; }
.sug { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.sug > span:first-child { flex: 1; font-weight: 600; }
details.card > summary { cursor: pointer; }
.up { color: var(--ok); font-weight: 700; } .dn { color: var(--red-dark); font-weight: 700; }

/* ردیف ابزارهای تولید محتوا (بالای صفحه) و صفحه نگارش مقاله */
.st-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.st-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 11px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.st-tabs a .ico { width: 17px; height: 17px; flex-basis: 17px; color: var(--muted); }
.st-tabs a:hover { background: var(--bg); text-decoration: none; }
.st-tabs a.on { background: linear-gradient(135deg, #ff2f2b, var(--red-dark)); color: #fff; box-shadow: 0 4px 12px var(--red-glow); }
.st-tabs a.on .ico { color: #fff; }
.st-bar select { min-width: 120px; }
.w-steps { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; flex-wrap: wrap; background: var(--bg); padding: 8px 0; margin-bottom: 6px; }
.w-steps a { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; font-size: 12.5px; color: var(--ink-2); }
.w-steps a:hover { border-color: var(--red); color: var(--red-dark); text-decoration: none; }
.w-sec { scroll-margin-top: 56px; }
.w-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; }
.card-head h2 .w-n + * { margin: 0; }
.w-sec .card-head h2::before { display: none; }
.w-list { margin: 0; padding-inline-start: 22px; } .w-list li { padding: 3px 0; }

/* ===== تولید و انتشار محتوا: نوار بالا (فقط کلمه کلیدی + نام سایت) ===== */
.st-top { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); position: sticky; top: 8px; z-index: 6; }
.st-top input[type=search] { flex: 1 1 auto; margin: 0; min-width: 0; border-color: transparent; background: var(--bg); }
.st-top input[type=search]:focus { background: #fff; border-color: var(--red-line); }
.st-top select, .st-top .im-en { width: auto; margin: 0; min-width: 120px; }
.st-top .im-en { max-width: 190px; }
.st-top .btn { flex: 0 0 auto; }
.st-site { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 12px; border-inline-end: 1px solid var(--line); color: var(--ink); flex: 0 0 auto; }
.st-site:hover { text-decoration: none; }
.st-site:hover b { color: var(--red-dark); }
.st-fav { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #ff2f2b, var(--red-dark)); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 800; }
.st-sn { display: flex; flex-direction: column; line-height: 1.25; }
.st-sn small { color: var(--muted); font-size: 11px; }
.st-sn b { font-size: 13.5px; }
/* کاشی‌های ابزار */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.hub-tile { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.hub-tile:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--red-line); box-shadow: 0 10px 24px rgba(16, 24, 40, .08); }
.hub-ic { width: 58px; height: 58px; border-radius: 17px; display: flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red-dark);
  transition: background .15s, color .15s; }
.hub-ic .ico { width: 28px; height: 28px; }
.hub-tile:hover .hub-ic { background: linear-gradient(135deg, #ff2f2b, var(--red-dark)); color: #fff; box-shadow: 0 8px 18px var(--red-glow); }
.hub-tile b { font-size: 15px; }
.hub-tile small { color: var(--muted); font-size: 12px; line-height: 1.7; }
/* مدیریت تصاویر */
.mt0 { margin: 8px 0 0; }
.im-opts .st-row select { min-width: 150px; }
.im-info code { font-family: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: 12.5px; }
.im-h { font-size: 16px; margin: 18px 0 10px; }
.im-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.im-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.im-thumb { aspect-ratio: 780 / 470; background: var(--bg) linear-gradient(90deg, var(--bg), #eceef1, var(--bg)); overflow: hidden; }
.im-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-meta { padding: 8px 12px 0; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.im-meta b { color: var(--ink); font-size: 12.5px; }
.im-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-act { display: flex; gap: 6px; padding: 10px 12px 12px; margin-top: auto; }
.im-act .btn.primary { flex: 1; }
@media (max-width: 760px) {
  .st-top { flex-wrap: wrap; position: static; }
  .st-site { border: 0; width: 100%; }
  .st-top input[type=search] { flex-basis: 100%; }
  .st-top .btn { flex: 1; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== صفحه ورود (طرح تیره/روشن با لوگوی آوش) ===== */
.login-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; background: #f2f2f3; }
.login-hero { flex: 1 1 52%; background: #111214; color: #fff; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between;
  gap: 36px; position: relative; overflow: hidden; }
.login-hero::before { content: ""; position: absolute; width: 440px; height: 430px; top: 150px; inset-inline-end: 90px; opacity: .13;
  background: url("logo-mark.png") center / contain no-repeat; filter: saturate(.7); pointer-events: none; }
.login-hero::after { content: ""; position: absolute; width: 420px; height: 420px; bottom: -200px; inset-inline-end: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 14, 14, .45), rgba(225, 14, 14, 0) 68%); pointer-events: none; }
.login-hero > * { position: relative; z-index: 1; }
.lh-brand { display: flex; align-items: center; gap: 12px; }
.lh-brand img { width: 50px; height: 50px; object-fit: contain; }
.lh-brand b { display: block; font-size: 15px; }
.lh-brand small { color: #9a9ca3; font-size: 11.5px; }
.lh-body { max-width: 380px; }
.lh-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(225, 14, 14, .55); background: rgba(225, 14, 14, .12); color: #f3c9c9;
  border-radius: 999px; padding: 3px 12px; font-size: 11.5px; }
.lh-pill i { width: 7px; height: 7px; border-radius: 50%; background: #e10e0e; }
.login-hero h1 { font-size: 30px; line-height: 1.65; margin: 22px 0 14px; color: #fff; }
.login-hero h1 em { font-style: normal; color: #e10e0e; }
.login-hero p { color: #c7c8cc; font-size: 13.5px; line-height: 2.1; margin: 0 0 24px; }
.login-hero ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.login-hero li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px;
  background: rgba(255, 255, 255, .025); font-size: 12.5px; color: #e9e9ec; }
.login-hero li::before { content: none; }
.lh-ck { flex: 0 0 22px; height: 22px; border-radius: 6px; background: #e10e0e; display: flex; align-items: center; justify-content: center; }
.lh-ck .ico { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; }
.lh-foot { color: #8a8c93; font-size: 11.5px; }
.login-side { flex: 1 1 40%; display: flex; align-items: center; justify-content: center; padding: 48px 24px; position: relative; overflow: hidden; }
.login-side::before { content: ""; position: absolute; width: 360px; height: 350px; bottom: -110px; inset-inline-start: -40px; opacity: .06;
  background: url("logo-mark.png") center / contain no-repeat; filter: grayscale(1); pointer-events: none; }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 330px; background: #fff; border-radius: 16px; border-top: 3px solid #e10e0e;
  padding: 26px 26px 28px; box-shadow: 0 20px 50px rgba(17, 18, 20, .10), 0 2px 6px rgba(17, 18, 20, .05); }
.login-card h2 { font-size: 20px; margin: 4px 0 8px; }
.login-card .sub { color: #6b6e75; font-size: 11.5px; margin: 0 0 20px; }
.login-card .field label { font-weight: 700; font-size: 12px; }
.in-ic { position: relative; display: block; }
.in-ic .ico { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #8b8e95; pointer-events: none; }
.in-ic input { padding-inline-start: 40px; background: #f2f2f3; border-color: #ececee; min-height: 46px; margin: 0; }
.in-ic input:focus { background: #fff; border-color: #e10e0e; box-shadow: 0 0 0 3px rgba(225, 14, 14, .12); outline: 0; }
.login-card .btn { width: 100%; min-height: 46px; margin-top: 10px; border-radius: 10px; background: #e10e0e; border-color: #e10e0e;
  box-shadow: 0 10px 22px rgba(225, 14, 14, .28); }
.login-card .btn:hover { background: #c40a0a; }
.lc-note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 12px 14px; background: #f2f2f3; border-radius: 8px;
  border-inline-start: 3px solid #2a2b2f; color: #55585f; font-size: 11px; line-height: 1.9; }
.lc-note .ico { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 3px; color: #2a2b2f; }
@media (max-width: 860px) {
  .login-hero { flex-basis: 100%; padding: 28px 20px; }
  .login-hero::before { width: 260px; height: 250px; top: 90px; }
  .login-hero h1 { font-size: 24px; }
  .login-side { flex-basis: 100%; padding: 28px 16px 40px; }
}

/* ===== تولید محتوا (۳ بخش) و آپدیت محتوا ===== */
.st-crumb { font-size: 12.5px; color: var(--muted); margin: -8px 0 14px; }
.st-crumb b { color: var(--ink); }
.st-more { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.st-more a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px;
  font-size: 12.5px; color: var(--ink-2); }
.st-more a .ico { width: 15px; height: 15px; flex-basis: 15px; color: var(--muted); }
.st-more a:hover { border-color: var(--red-line); text-decoration: none; color: var(--red-dark); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col > .card { margin-bottom: 20px; }
.idea { border: 1px dashed #e8b4b0; background: #fff8f7; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.idea b { display: block; }
.idea .st-row { margin-top: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.pcard h4 { margin: 0; font-size: 15px; }
.pcard .ln { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); }
.pcard .ln .ico { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; color: var(--muted); }
.vs { font-size: 11.5px; border-radius: 999px; padding: 2px 9px; white-space: nowrap; display: inline-block; }
.vs.ok { background: #e8f6ec; color: #1a7f37; } .vs.no { background: #fdecec; color: #c40a0a; } .vs.q { background: #f1f2f4; color: #55585f; }
.ucard { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px 16px; margin-bottom: 12px; display: grid;
  grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; }
.ucard .rk { width: 40px; height: 40px; border-radius: 12px; background: #111214; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ucard h3 { margin: 0 0 4px; font-size: 15px; }
.ucard .url { color: var(--muted); font-size: 12px; text-align: right; word-break: break-all; }
.met { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-2); margin: 8px 0; }
.met b { font-weight: 800; }
.dn { color: #c40a0a; } .upc { color: #1a7f37; }
.iss { display: flex; flex-wrap: wrap; gap: 6px; }
.iss span { font-size: 11.5px; border-radius: 999px; padding: 3px 10px; border: 1px solid; }
.iss .c { background: #fdecec; border-color: #f5c2c0; color: #a8322d; }
.iss .w { background: #fff6e6; border-color: #f3d9ae; color: #6b4200; }
.iss .i { background: #eef4fd; border-color: #cfdff5; color: #1f4e8a; }
.ahead { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ahead h1 { font-size: 19px; margin: 0 0 4px; }
.ring { width: 96px; height: 96px; border-radius: 50%; background: #eceef1; display: flex; align-items: center; justify-content: center; flex: 0 0 96px; }
.ring i { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-style: normal;
  font-size: 24px; font-weight: 800; }
.chk { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.chk:last-child { border-bottom: 0; }
.chk .m { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.m.c { background: #fdecec; color: #c40a0a; } .m.w { background: #fff3dc; color: #8a5a00; } .m.o { background: #e8f6ec; color: #1a7f37; }
.chk b { display: block; font-size: 13.5px; }
.chk p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); }
.chk p.fix { color: #1f4e8a; }
.nowrap { white-space: nowrap; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .ucard { grid-template-columns: 1fr; } }

/* کارت‌های لینک داخلی */
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lk-grid.one { grid-template-columns: 1fr; }
.lk-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s, box-shadow .15s; min-width: 0; }
.lk-card:hover { border-color: var(--red-line); box-shadow: 0 8px 20px rgba(16, 24, 40, .07); }
.lk-main { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 10px; color: var(--ink); min-width: 0; }
.lk-main:hover { text-decoration: none; }
.lk-main b { font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-main:hover b { color: var(--red-dark); }
.lk-path { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.lk-foot { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; padding: 8px 16px 12px; border-top: 1px solid var(--line-2); background: var(--bg-2); }
.lk-foot .badge { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pill-list { gap: 4px; }


/* ===== سایت‌های من: انتخابگر سایت در منو (الگوی سرچ کنسول) ===== */
.sp { position: relative; margin: 2px 0 4px; }
.sp-label { display: flex; align-items: center; justify-content: space-between; color: var(--side-muted); font-size: 10.5px;
  padding: 0 10px 6px; letter-spacing: .02em; }
.sp-label span { font-size: 10.5px; color: var(--side-muted); background: rgba(255, 255, 255, .06); border-radius: 20px; padding: 0 8px; line-height: 18px; }
.sp-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; min-height: 58px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font: inherit; text-align: right; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s; }
.sp-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.sp-btn:focus-visible { outline: 2px solid #ff7a71; outline-offset: 2px; }
.sp-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 122, 113, .55); box-shadow: 0 0 0 3px rgba(208, 52, 44, .18); }
.sp-cur { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.sp-cur b { font-size: 13.5px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-cur small { font-size: 11.5px; color: var(--side-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-cur small.ltr { direction: ltr; text-align: right; }
.sp-caret { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--side-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.sp-btn[aria-expanded="true"] .sp-caret { transform: rotate(180deg); stroke: #fff; }

/* قاب استاندارد لوگو: همه لوگوها کامل و هم‌اندازه دیده می‌شوند */
.sp-ico { flex: 0 0 auto; width: 104px; height: 40px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center;
  justify-content: center; overflow: hidden; padding: 5px 8px; box-shadow: 0 0 0 1px rgba(16, 24, 40, .08); }
.sp-ico img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.sp-ico i { font-style: normal; font-weight: 800; font-size: 17px; color: var(--ink); }
.sp-ico.empty { width: 40px; background: rgba(255, 255, 255, .08); box-shadow: none; padding: 0; }
.sp-ico.empty svg { width: 20px; height: 20px; fill: none; stroke: var(--side-ink); stroke-width: 1.7; }
/* دکمه منو: لوگوی کامل بالا، نام و دامنه پایین */
.sp-btn:has(.sp-ico.big) { flex-wrap: wrap; padding: 10px; gap: 8px 10px; }
.sp-ico.big { width: 100%; height: 56px; padding: 8px 18px; border-radius: 11px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.sp-btn:has(.sp-ico.big) .sp-cur { flex: 1 1 0; padding-inline-start: 2px; }
.sp-menu { position: fixed; top: 0; right: 0; left: auto; z-index: 60; display: flex; flex-direction: column; width: 400px; max-width: calc(100vw - 28px);
  background: #fff; color: var(--ink); border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .35), 0 4px 10px rgba(16, 24, 40, .08); overflow: hidden;
  transform-origin: top right; animation: sp-in .14s ease-out; }
@keyframes sp-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.sp-search { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 0 12px; height: 42px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); }
.sp-search:focus-within { border-color: var(--red-line); box-shadow: 0 0 0 3px var(--red-soft); background: #fff; }
.sp-search svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.sp-search input { flex: 1; border: 0; background: transparent; outline: 0; font: inherit; font-size: 13px; color: var(--ink); min-width: 0; padding: 0; height: 40px; box-shadow: none; }
.sp-list { list-style: none; margin: 0; padding: 2px 6px 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sp-list li { margin: 0; }
.sp-list form { margin: 0; }
.sp-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 11px; border: 0;
  background: transparent; font: inherit; color: var(--ink); text-align: right; cursor: pointer; transition: background .12s; }
.sp-item .sp-ico { width: 100px; height: 38px; box-shadow: 0 0 0 1px var(--line); }
.sp-item:hover, .sp-item.kb { background: var(--bg); }
.sp-item:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.sp-item.on { background: var(--red-soft); }
.sp-item.on .sp-ico { box-shadow: 0 0 0 1.5px var(--red-line); }
.sp-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.sp-url { direction: ltr; text-align: right; font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: "Segoe UI", Roboto, Arial, "IRANSans", "Vazirmatn", sans-serif; }
.sp-txt small { font-size: 11.5px; color: var(--muted); }
.sp-item.on .sp-url { color: var(--red-dark); }
.sp-check { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sp-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; margin: 0 5px; }
.sp-dot.ok { background: #22a35a; box-shadow: 0 0 0 3px #e3f5ea; }
.sp-dot.warn { background: #e0a030; box-shadow: 0 0 0 3px #fdf1dc; }
.sp-none { margin: 4px 16px 14px; color: var(--muted); font-size: 12.5px; }
.sp-add { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line-2); color: var(--red-dark);
  font-weight: 700; font-size: 13px; }
.sp-add:hover { background: var(--bg-2); text-decoration: none; }
.sp-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.sp-welcome { max-width: 620px; margin: 8vh auto 0; text-align: center; padding: 40px 32px; }
.sp-welcome h1 { margin: 14px 0 6px; font-size: 22px; }
.sp-welcome .sub { max-width: 470px; margin: 0 auto; }
.sp-welcome-ico { display: inline-flex; width: 64px; height: 64px; border-radius: 20px; align-items: center; justify-content: center;
  background: var(--red-soft); }
.sp-welcome-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 1.7; }
.sp-menu[hidden] { display: none; }
.sp-list { flex: 1 1 auto; min-height: 0; }
.st-fav.logo { width: 92px; height: 36px; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 4px 8px; }
.st-fav.logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* فهرست فقط‌لوگو (شبکه دو ستونه) */
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 10px 10px; align-content: start; }
.sp-grid li { position: relative; }
.sp-tile { position: relative; width: 100%; height: 68px; display: flex; align-items: center; justify-content: center; padding: 10px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sp-tile img { max-width: 100%; max-height: 40px; object-fit: contain; display: block; }
.sp-tile:hover, .sp-tile.kb { background: #fff; border-color: #c9ced6; box-shadow: 0 6px 16px -6px rgba(16, 24, 40, .22); transform: translateY(-1px); }
.sp-tile:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sp-tile.on { border: 1.5px solid var(--red); background: #fff; box-shadow: 0 0 0 3px var(--red-soft); }
.sp-tname { font-weight: 800; font-size: 13px; color: var(--ink); }
.sp-tile .sp-dot { position: absolute; bottom: 7px; left: 7px; margin: 0; width: 7px; height: 7px; }
.sp-badge { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); display: flex;
  align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.sp-badge svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sp-ext { position: absolute; top: 5px; left: 5px; width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: rgba(255, 255, 255, .92); opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.sp-ext svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-grid li:hover .sp-ext, .sp-ext:focus-visible { opacity: 1; }
.sp-ext:hover { background: var(--red-soft); color: var(--red-dark); }
@media (hover: none) { .sp-ext { opacity: 1; } }
/* دکمه منو: فقط لوگو */
.sp-btn:has(.sp-ico.big) .sp-cur { display: none; }
.sp-btn:has(.sp-ico.big) { flex-wrap: nowrap; }
.sp-btn:has(.sp-ico.big) .sp-ico.big { flex: 1 1 auto; width: auto; }
/* یک ستون، کوچک‌تر، با اسکرول */
.sp-grid { grid-template-columns: 1fr; gap: 6px; padding: 2px 8px 8px; }
.sp-tile { height: 46px; padding: 6px 30px; border-radius: 10px; }
.sp-tile img { max-height: 28px; max-width: 150px; }
.sp-tile:hover, .sp-tile.kb { transform: none; }
.sp-tile .sp-dot { bottom: 50%; transform: translateY(50%); left: auto; right: 10px; }
.sp-badge { top: 50%; right: auto; left: 8px; transform: translateY(-50%); width: 18px; height: 18px; box-shadow: none; }
.sp-badge svg { width: 11px; height: 11px; }
.sp-ext { top: 50%; left: 6px; transform: translateY(-50%); width: 22px; height: 22px; }
.sp-grid li:has(.sp-badge) .sp-ext { left: 30px; }
.sp-search { margin: 8px; height: 38px; }
.sp-search input { height: 36px; }
.sp-add { padding: 10px 14px; }
.sp-tile { height: 40px; }
.sp-tile img { max-height: 24px; max-width: 136px; }
.sp-ico.big { height: 48px; padding: 7px 16px; }
.sp-list { position: relative; }
.sp-tile { height: 34px; padding: 4px 28px; border-radius: 9px; }
.sp-tile img { max-height: 20px; max-width: 120px; }
.sp-grid { gap: 5px; }
.sp-ico.big { height: 42px; padding: 6px 14px; }

/* ===== داشبورد سایت ===== */
.db-top { margin-bottom: 18px; }
.db-top .grow { flex: 1; }
.db-host { font-size: 12.5px; color: var(--muted); padding: 0 6px; }
.db-host:hover { color: var(--red); text-decoration: none; }
.db-src { font-size: 11.5px; color: var(--muted); padding-inline-end: 10px; display: inline-flex; align-items: center; gap: 6px; }
.db-src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 3px #e3f5ea; }
.db-card { margin-bottom: 20px; padding: 20px 22px 18px; }
.db-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.db-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.db-title h2 { margin: 0; font-size: 17px; font-weight: 800; }
.db-title h2 span { color: #c9ced6; font-weight: 400; margin: 0 2px; }
.db-title small { display: block; color: var(--muted); font-size: 12px; }
.db-title small.ltr { direction: ltr; text-align: right; }
.db-badge { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; }
.db-badge.ss { background: linear-gradient(135deg, #7b4dc4, #4b2a8c); color: #fff; letter-spacing: .04em; }
.db-badge.g { background: #e8f0fe; }
.db-badge.g svg { width: 21px; height: 21px; fill: none; stroke: #4285f4; stroke-width: 2; stroke-linecap: round; }
section.card.db-card > h2::before, .db-card .card-head h2::before { display: none; }
.db-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.db-ctrl[hidden] { display: none; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink-2); padding: 0 12px; height: 30px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--red-dark); font-weight: 700; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.db-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.db-sel[hidden] { display: none; }
.db-sel select { width: auto; min-width: 150px; margin: 0; height: 36px; padding: 0 10px; font-size: 12.5px; }
.db-body { margin-top: 14px; transition: opacity .15s; min-height: 80px; }
.db-body.busy { opacity: .5; pointer-events: none; }
.db-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 26px 4px; }
.db-loading span { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--red); animation: db-spin .8s linear infinite; }
@keyframes db-spin { to { transform: rotate(360deg); } }
.db-state { padding: 14px 16px; border-radius: 12px; font-size: 13px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); }
.db-state.warn { background: var(--warn-soft); border-color: #f3d9b0; color: var(--warn); }
.db-state.info { background: var(--bg-2); }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.db-kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.db-kpi { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 11px; background: #fff; overflow: hidden; }
.db-kpi::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: #c9ced6; }
.db-kpi.k-c::before { background: #4285f4; } .db-kpi.k-i::before { background: #7b4dc4; } .db-kpi.k-r::before { background: #12a594; }
.db-kpi.k-p::before { background: #e8710a; } .db-kpi.k-up::before { background: #22a35a; } .db-kpi.k-dn::before { background: #d0342c; }
.db-kpi span { display: block; font-size: 12px; color: var(--muted); }
.db-kpi b { display: block; font-size: 24px; font-weight: 800; line-height: 1.5; color: var(--ink); }
.db-kpi small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.db-kpi small em { font-style: normal; }
.dl { font-weight: 700; font-size: 11.5px; padding: 0 6px; border-radius: 6px; line-height: 20px; direction: rtl; }
.dl.up { color: #157a43; background: #e3f5ea; } .dl.dn { color: #b3261e; background: #fdecea; } .dl.eq, .dl.na { color: var(--muted); background: var(--bg); }
.db-chart { position: relative; width: 100%; }
.ch-wrap { position: relative; }
.ch-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-wrap .gl { stroke: #eceef1; stroke-width: 1; }
.ch-wrap .yt { font-size: 10.5px; fill: #8a919b; text-anchor: end; }
.ch-wrap .xt, .db-chart .xt { font-size: 10.5px; fill: #8a919b; text-anchor: middle; }
.ch-wrap .cx { stroke: #9aa1ab; stroke-width: 1; stroke-dasharray: 3 3; }
.db-chart .gl { stroke: #eceef1; } .db-chart .yt { font-size: 10.5px; fill: #8a919b; text-anchor: end; }
.db-chart .bar { fill: #7b4dc4; opacity: .85; } .db-chart .bar:hover { opacity: 1; }
.db-chart .bv { font-size: 10.5px; fill: var(--ink-2); text-anchor: middle; font-weight: 700; }
.ch-tip { position: absolute; top: 4px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  box-shadow: 0 10px 24px -8px rgba(16, 24, 40, .3); font-size: 12px; pointer-events: none; min-width: 150px; display: flex; flex-direction: column; gap: 2px; }
.ch-tip[hidden] { display: none; }
.ch-tip b { font-weight: 800; }
.ch-tip small { color: var(--muted); font-size: 10.5px; }
.ch-tip span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #c9ced6; flex: 0 0 10px; }
.sw.blue { background: #4285f4; } .sw.purple { background: #7b4dc4; } .sw.up { background: #22a35a; } .sw.dn { background: #d0342c; } .sw.eq { background: #c9ced6; }
.db-foot { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }
.db-h3 { font-size: 13px; font-weight: 800; margin: 0 0 10px; color: var(--ink); }
.db-h3 small { font-weight: 400; color: var(--muted); font-size: 11px; }
.db-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.db-3 { display: grid; grid-template-columns: 1.05fr 1.2fr 1fr; gap: 14px; }
.db-panel { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 14px 10px; background: var(--bg-2); min-width: 0; }
.db-donut { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.db-donut svg { flex: 0 0 auto; }
.dn-up { fill: #22a35a; stroke: #22a35a; } .dn-dn { fill: #d0342c; stroke: #d0342c; } .dn-eq { fill: #c9ced6; stroke: #c9ced6; }
.db-donut circle.dn-up, .db-donut circle.dn-dn, .db-donut circle.dn-eq { fill: none; }
.dn-t { font-size: 22px; font-weight: 800; fill: var(--ink); text-anchor: middle; }
.dn-s { font-size: 11px; fill: var(--muted); text-anchor: middle; }
.db-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); list-style: none; padding: 0; margin: 6px 0 0; }
.db-legend.v { flex-direction: column; gap: 8px; margin: 0; }
.db-legend li, .db-legend span { display: flex; align-items: center; gap: 7px; }
.db-legend li b { margin-inline-start: auto; padding-inline-start: 12px; font-weight: 800; }
.db-legend li em { font-style: normal; color: var(--muted); font-size: 11px; min-width: 40px; }
.db-movers ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.db-movers li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 5px 8px; background: #fff; border-radius: 8px; border: 1px solid var(--line-2); }
.db-movers li.na { color: var(--muted); background: transparent; border: 0; padding: 2px 0; }
.db-movers .kw { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.db-movers .rk { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.db-key { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px dashed var(--red-line); background: var(--red-soft); }
.db-key label { display: block; font-size: 12.5px; margin-bottom: 8px; color: var(--ink-2); }
.db-key .row { display: flex; gap: 8px; } .db-key input { flex: 1; margin: 0; }
@media (max-width: 1100px) { .db-kpis.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .db-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .db-kpis, .db-kpis.k5 { grid-template-columns: 1fr 1fr; } .db-2, .db-3 { grid-template-columns: 1fr; } .db-key .row { flex-direction: column; } .db-src { display: none; } }
.db-top2 { margin-top: 0; }
.seg button[disabled] { opacity: .35; cursor: not-allowed; }
/* بازه زمانی سئو سیگنال: منوی کشویی + تقویم شمسی */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
.dd-btn:hover { border-color: #c9ced6; }
.dd-btn[aria-expanded="true"] { border-color: var(--red-line); box-shadow: 0 0 0 3px var(--red-soft); }
.dd-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dd-cal { width: 18px; height: 18px; color: var(--red); }
.dd-caret { width: 16px; height: 16px; color: var(--muted); }
.dd-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 200px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; box-shadow: 0 16px 36px -10px rgba(16, 24, 40, .28); display: flex; flex-direction: column; }
.dd-menu[hidden], .jcal[hidden] { display: none; }
.dd-menu button { text-align: right; border: 0; background: transparent; font: inherit; font-size: 13px; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.dd-menu button:hover { background: var(--bg); color: var(--ink); }
.dd-menu button.on { background: var(--red-soft); color: var(--red-dark); font-weight: 700; }
.dd-menu .dd-custom { border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 11px; }
.jcal { position: absolute; top: calc(100% + 6px); right: 0; z-index: 31; width: 296px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; box-shadow: 0 16px 36px -10px rgba(16, 24, 40, .3); }
.jc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.jc-head b { font-size: 14px; }
.jc-nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.jc-nav:hover { background: var(--bg); }
.jc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.jc-w { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.jc-d { height: 34px; border: 0; background: transparent; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.jc-d:hover:not([disabled]) { background: var(--bg); }
.jc-d[disabled] { color: #c3c7ce; cursor: not-allowed; }
.jc-d.t { box-shadow: inset 0 0 0 1px var(--red-line); }
.jc-d.in { background: var(--red-soft); border-radius: 0; }
.jc-d.s, .jc-d.e { background: var(--red); color: #fff; font-weight: 700; }
.jc-sum { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 10px 2px 8px; }
.jc-sum b { color: var(--ink); }
.jc-act { display: flex; gap: 8px; }
.jc-act .btn { flex: 1; }
.jc-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .dd-menu, .jcal { right: auto; left: 0; } .jcal { width: min(296px, calc(100vw - 40px)); } }

/* ===== وضعیت تغییر رتبه‌ها (جست‌وجوی سراسری سئو سیگنال) ===== */
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.rs-title { display: flex; align-items: center; gap: 12px; }
.rs-title h1 { margin: 0; font-size: 22px; }
.rs-title .crumb { font-size: 12px; }
.rs-mode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.rs-pill.live { background: #e3f5ea; color: #157a43; } .rs-pill.live i { width: 7px; height: 7px; border-radius: 50%; background: #22a35a; }
.rs-pill.demo { background: #fff1df; color: #8a5000; border: 1px dashed #e0a030; }
.rs-search { padding: 16px; margin-bottom: 16px; position: relative; z-index: 4; }
.rs-q { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--red-line); border-radius: 14px; padding: 4px 4px 4px 4px; background: #fff; }
.rs-q:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.rs-q svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; margin-inline-start: 10px; }
.rs-q input { flex: 1; border: 0; outline: 0; box-shadow: none; margin: 0; font-size: 14px; height: 44px; background: transparent; min-width: 0; }
.rs-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.rs-f { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.rs-f select { width: auto; min-width: 130px; max-width: 260px; margin: 0; height: 38px; font-size: 12.5px; padding: 0 10px; }
.rs-f select[disabled] { opacity: .5; }
.rs-reset { color: var(--red-dark); }
#rs-out { transition: opacity .15s; } #rs-out.busy { opacity: .5; pointer-events: none; }
.rs-empty { text-align: center; padding: 34px 20px; display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--ink-2); }
.rs-empty span { color: var(--muted); font-size: 13px; }
.rs-demo { background: #fff1df; border: 1px dashed #e0a030; color: #8a5000; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.rs-card { padding: 16px 16px 12px; }
.rs-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 12px; }
.rs-sum > span:first-child { margin-inline-end: 6px; }
.rs-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--ink-2); }
.rs-chip.up { background: #e3f5ea; border-color: #c8ead5; color: #157a43; } .rs-chip.dn { background: #fdecea; border-color: #f6cdc9; color: #b3261e; }
.rs-chart-w { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 14px; padding: 12px 14px 8px; margin-bottom: 14px; }
.rs-legend { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--ink-2); }
.rs-legend li { display: flex; align-items: center; gap: 6px; }
.sw.c0 { background: #d0342c; } .sw.c1 { background: #4285f4; } .sw.c2 { background: #22a35a; } .sw.c3 { background: #7b4dc4; }
.sw.c4 { background: #e8710a; } .sw.c5 { background: #12a594; } .sw.c6 { background: #b8338c; } .sw.c7 { background: #5f6b7a; }
.rs-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.rs-tools .grow { flex: 1; }
.rs-tools select { width: auto; margin: 0 4px; height: 32px; padding: 0 8px; font-size: 12.5px; }
.rs-cols { position: relative; }
.rs-cols-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: 0 16px 36px -10px rgba(16, 24, 40, .28); display: flex; flex-direction: column; gap: 2px; min-width: 190px; }
.rs-cols-menu[hidden] { display: none; }
.rs-cols-menu label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.rs-cols-menu label:hover { background: var(--bg); }
.rs-cols-menu input { width: auto; margin: 0; }
.rs-table-w { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 980px; }
.rs-table th { background: var(--bg-2); color: var(--ink-2); font-weight: 700; font-size: 12px; padding: 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.rs-table th.sort { cursor: pointer; user-select: none; } .rs-table th.sort:hover { color: var(--red-dark); } .rs-table th.on { color: var(--red-dark); }
.rs-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.rs-table tbody tr:hover td { background: #fcfcfd; }
.rs-table td small { display: block; color: var(--muted); font-size: 10.5px; }
.rs-table .na { color: #a0a6af; font-size: 11px; }
.rs-table .out { color: var(--muted); }
.rs-kw { white-space: normal; min-width: 240px; }
.rs-kw b { font-size: 13px; }
.rs-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rs-meta span { font-size: 10.5px; padding: 0 7px; border-radius: 6px; background: var(--bg); color: var(--ink-2); line-height: 19px; }
.rs-meta .p { background: #f1ebfb; color: #5b2fa3; font-weight: 700; }
.rs-meta .dv.mobile { background: #e8f0fe; color: #1f5fad; } .rs-meta .dv.desktop { background: #e6f4f1; color: #0f7a6c; }
.rs-tag { display: inline-block; font-size: 10.5px; padding: 0 7px; border-radius: 6px; background: #fff1df; color: #8a5000; margin: 1px; }
.rs-url { max-width: 220px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.rs-spark { display: block; } .rs-spark path { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.rs-spark.g path { stroke: #22a35a; } .rs-spark.b path { stroke: #d0342c; }
.rs-none { text-align: center; color: var(--muted); padding: 24px !important; }
.rs-pager { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.rs-pager .grow { flex: 1; }
@media print {
  .side, .rs-search, .rs-tools, .rs-pager, .rs-mode, .sp, .flash { display: none !important; }
  main { padding: 0 !important; } .card { box-shadow: none !important; border: 0 !important; }
  .rs-table { min-width: 0; font-size: 10px; } .rs-table-w { overflow: visible; border: 0; } .rs-table td, .rs-table th { padding: 5px; }
}
.rs-reset[hidden] { display: none; }
/* انتخاب پروژه سئو سیگنال (منوی چندستونه با لوگو) */
.pp { position: relative; }
.pp-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; max-width: 260px; }
.pp-btn:hover { border-color: #c9ced6; } .pp-btn[aria-expanded="true"] { border-color: var(--red-line); box-shadow: 0 0 0 3px var(--red-soft); }
.pp-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pp.picked .pp-btn { border-color: var(--red-line); background: var(--red-soft); color: var(--red-dark); }
.pp-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.pp-ico { width: 22px; height: 22px; flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; }
.pp-ico img { max-width: 22px; max-height: 22px; object-fit: contain; }
.pp-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pp-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 35; width: min(760px, calc(100vw - 60px)); background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 12px; box-shadow: 0 22px 48px -14px rgba(16, 24, 40, .35); }
.pp-menu[hidden] { display: none; }
.pp-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-2); }
.pp-search:focus-within { border-color: var(--red-line); box-shadow: 0 0 0 3px var(--red-soft); background: #fff; }
.pp-search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.pp-search input { flex: 1; border: 0; outline: 0; box-shadow: none; background: transparent; margin: 0; height: 38px; font-size: 13px; padding: 0; }
.pp-info { font-size: 11.5px; color: var(--muted); margin: 8px 4px; } .pp-info.bad { color: var(--bad); }
.pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: min(56vh, 460px); overflow-y: auto; padding: 2px; }
.pp-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff;
  font: inherit; text-align: right; cursor: pointer; min-width: 0; color: var(--ink); }
.pp-item:hover { border-color: #c9ced6; background: var(--bg-2); }
.pp-item.on { border-color: var(--red); background: var(--red-soft); }
.pp-item.all { grid-column: 1 / -1; }
.pp-ic { flex: 0 0 64px; width: 64px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; padding: 3px 5px; }
.pp-ic img { max-width: 100%; max-height: 22px; object-fit: contain; }
.pp-ic.favicon img { width: 20px; height: 20px; }
.pp-ic.all { font-size: 18px; font-weight: 800; color: var(--red); }
.pp-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.pp-t b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.pp-t small { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-st { font-style: normal; font-size: 10px; font-weight: 700; color: #8a5000; }
.pp-check { position: absolute; top: 6px; left: 6px; width: 15px; height: 15px; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pp-none { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 12.5px; margin: 14px 0; }
@media (max-width: 900px) { .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pp-grid { grid-template-columns: 1fr; } .pp-menu { right: auto; left: 0; } }

/* ===== تولید و انتشار — داشبورد تحلیلی نگارش مقاله ===== */
.ws-row { display: grid; gap: 18px; margin-bottom: 18px; align-items: start; }
.ws-row.r2 { grid-template-columns: 1fr 1.15fr; }
.ws-row.r21 { grid-template-columns: 1.75fr 1fr; }
.ws-row > .card { margin: 0; height: 100%; }
.w-sec { margin-bottom: 18px; padding: 18px 20px; position: relative; overflow: hidden; }
.w-sec::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--ws-c, var(--red)); }
.ws-blue { --ws-c: #4285f4; --ws-s: #e8f0fe; } .ws-purple { --ws-c: #7b4dc4; --ws-s: #f1ebfb; } .ws-red { --ws-c: #d0342c; --ws-s: #fdecea; }
.ws-green { --ws-c: #22a35a; --ws-s: #e3f5ea; } .ws-teal { --ws-c: #12a594; --ws-s: #e0f5f2; } .ws-pink { --ws-c: #b8338c; --ws-s: #fbe8f3; }
.ws-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ws-n { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  color: #fff; background: var(--ws-c, var(--red)); box-shadow: 0 4px 12px -2px var(--ws-c, var(--red)); }
.ws-tt h2 { margin: 2px 0 2px; font-size: 16.5px; font-weight: 800; }
.ws-tt h2::before { display: none !important; }
.ws-tt p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.ws-topic { background: var(--ws-s); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.ws-topic b { font-size: 15px; }
.ws-kw { font-size: 12px; color: var(--ink-2); } .ws-kw b { font-size: 12px; color: var(--ws-c); }
.ws-kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ws-kgrid.sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 14px; }
.ws-k { border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; border: 1px solid transparent; }
.ws-k b { font-size: 22px; font-weight: 900; line-height: 1.35; }
.ws-k span { font-size: 12px; font-weight: 700; }
.ws-k small { font-size: 10.5px; opacity: .8; }
.ws-k.k-blue { background: #e8f0fe; color: #1a56c4; border-color: #d2e1fc; } .ws-k.k-purple { background: #f1ebfb; color: #5b2fa3; border-color: #e3d7f6; }
.ws-k.k-green { background: #e3f5ea; color: #157a43; border-color: #cbead7; } .ws-k.k-orange { background: #fff1df; color: #9a5300; border-color: #f7dfbd; }
.ws-k.k-red { background: #fdecea; color: #b3261e; border-color: #f8d3cf; } .ws-k.k-teal { background: #e0f5f2; color: #0f7a6c; border-color: #c7ebe5; }
.ws-k.k-pink { background: #fbe8f3; color: #9c2775; border-color: #f4d0e5; }
.ws-ch { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: var(--bg-2); margin-bottom: 10px; }
.ws-ch:last-child { margin-bottom: 0; }
.ws-ch h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; } .ws-ch h3 small { color: var(--muted); font-weight: 400; font-size: 11px; }
.ws-hb { display: flex; flex-direction: column; gap: 7px; }
.ws-hb-r { display: grid; grid-template-columns: minmax(0, 1.25fr) 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
.ws-hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ws-hb-s { width: 100%; height: 10px; display: block; }
.ws-hb-r b { font-size: 11.5px; min-width: 44px; text-align: left; }
.ws-dn { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ws-dn ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; }
.ws-dn li { display: flex; align-items: center; gap: 7px; }
.ws-dn li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ws-dn li em { font-style: normal; color: var(--muted); min-width: 32px; text-align: left; }
.ws-vb { width: 100%; height: auto; display: block; overflow: visible; }
.ws-vb .vb-v { font-size: 13px; fill: var(--ink-2); text-anchor: middle; font-weight: 700; }
.ws-vb-l { display: flex; flex-direction: row-reverse; gap: 2px; margin-top: 4px; }
.ws-vb-l span { flex: 1; font-size: 9.5px; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-bf > div { background: var(--ws-s); border-color: transparent; }
.ws-chip { display: inline-block; font-size: 11.5px; padding: 2px 10px; border-radius: 999px; margin: 2px; font-weight: 600; }
.ws-chip.c0 { background: #e8f0fe; color: #1a56c4; } .ws-chip.c1 { background: #f1ebfb; color: #5b2fa3; } .ws-chip.c2 { background: #e3f5ea; color: #157a43; }
.ws-chip.c3 { background: #fff1df; color: #9a5300; } .ws-chip.c4 { background: #e0f5f2; color: #0f7a6c; } .ws-chip.c5 { background: #fbe8f3; color: #9c2775; }
.ws-det { border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; background: var(--bg-2); }
.ws-det summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ws-box { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.ws-box h3 { margin-top: 0; }
.sug-len { font-size: 10.5px; padding: 0 7px; border-radius: 6px; line-height: 19px; }
.sug-len.ok { background: #e3f5ea; color: #157a43; } .sug-len.bad { background: #fdecea; color: #b3261e; }
.ws-prog { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ws-prog svg { width: 100%; height: 8px; display: block; }
.ws-prog b { color: var(--ink); font-size: 12px; }
.ws-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ws-acts li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 11px; padding: 8px 10px; background: #fff; }
.ws-acts label { display: flex; align-items: flex-start; gap: 8px; flex: 1; font-size: 12.5px; cursor: pointer; margin: 0; line-height: 1.7; }
.ws-acts input { width: auto; margin: 4px 0 0; accent-color: #22a35a; }
.ws-acts li.done { background: #f3faf6; } .ws-acts li.done span { text-decoration: line-through; color: var(--muted); }
.ws-acts .pr { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 8px; border-radius: 6px; line-height: 20px; white-space: nowrap; }
.pr.hi { background: #fdecea; color: #b3261e; } .pr.md { background: #fff1df; color: #9a5300; } .pr.lo { background: #e8f0fe; color: #1a56c4; }
.ws-hero { padding: 22px; }
.ws-hero-t { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.ws-hero-t h2 { margin: 2px 0 4px; font-size: 17px; } .ws-hero-t h2::before { display: none !important; }
.ws-hero-t p { margin: 0; color: var(--muted); font-size: 13px; }
.ws-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ws-guide > div { border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; border: 1px solid var(--line-2); background: #fff; }
.ws-guide span { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.ws-guide b { font-size: 13px; } .ws-guide small { font-size: 11.5px; color: var(--muted); }
.g-blue span { background: #4285f4; } .g-purple span { background: #7b4dc4; } .g-red span { background: #d0342c; }
.g-green span { background: #22a35a; } .g-teal span { background: #12a594; } .g-pink span { background: #b8338c; }
@media (max-width: 1100px) { .ws-row.r2, .ws-row.r21 { grid-template-columns: 1fr; } .ws-guide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ws-guide { grid-template-columns: 1fr; } .ws-hb-r { grid-template-columns: 1fr 80px auto; } }
.ws-vb { max-height: 190px; }
.ws-k b small { font-size: 11px; font-weight: 700; opacity: .75; }
