/* ============================================================
   Freeware — styles
   1 Tokens & base   2 Site chrome   3 Home   4 Software lists & catalog
   5 Software page   6 Forms & login   7 Publisher desk (admin)
   8 Responsive
   ============================================================ */

/* ---------- 1. Tokens & base ---------- */
:root {
  --ink: #20243d;
  --muted: #565d74;
  --muted-2: #687088;
  --navy: #171c3c;
  --navy-2: #2b3262;
  --primary: #5145cd;
  --primary-dark: #3f33ae;
  --accent: #a7f3df;
  --green: #087c6c;
  --download: #087c6c;
  --download-dark: #056354;
  --star: #f5a623;
  --star-off: #d5dbe3;
  --paper: #f7f8fc;
  --border: #e0e3ef;
  --surface: #ffffff;
  --tint: #f0eefb;
  --focus: #5145cd;
  --ok: #076b5d;
  --ok-bg: #e2f5ee;
  --warn: #8a5300;
  --warn-bg: #fff4dc;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --brand-soft: #eeebff;
  --brand-border: #d6cff7;
  --focus-ring: #5145cd30;
  --shadow-soft: 0 6px 22px #25204d08;
  --bs-primary: #5145cd;
  --bs-primary-rgb: 81, 69, 205;
  --bs-link-color: #5145cd;
  --bs-link-hover-color: #3f33ae;
  --bs-body-color: #20243d;
  --bs-body-bg: #f7f8fc;
  --bs-border-color: #e0e3ef;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
button, input, select, textarea { font: inherit; }
code { background: #eaf0f7; color: var(--navy-2); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.container { max-width: 1200px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.text-muted-2 { color: var(--muted-2); }
.text-underline { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.01em; }
h2 { font-size: 1.45rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- 2. Site chrome ---------- */
.site-top { background: var(--navy); color: #fff; padding: 12px 0; }
.site-top-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -1px; display: inline-flex; align-items: center; color: #fff; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-period, .brand-tld { color: var(--accent); }
.brand-tld { font-weight: 700; }
.brand-mark { background: var(--download); border-radius: 9px; color: #fff; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: 9px; box-shadow: 0 2px 0 var(--download-dark); }
.site-search { display: flex; flex: 1; max-width: 620px; min-width: 240px; }
.site-search input { flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px; padding: 10px 14px; font-size: 15px; color: var(--ink); background: #fff; }
.site-search input:focus-visible { outline-offset: -3px; }
.site-search button { border: 0; background: var(--primary); color: #fff; font-weight: 700; padding: 0 20px; border-radius: 0 6px 6px 0; }
.site-search button:hover { background: var(--primary-dark); }
.top-links { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.top-links a { color: #d6e4f3; padding: 6px 11px; border-radius: 6px; }
.top-links a:hover, .top-links a.active { color: #fff; background: #ffffff1f; text-decoration: none; }
.top-links .nav-cta { border: 1px solid #ffffff55; margin-left: 6px; }
.cat-bar { background: #fff; border-bottom: 1px solid var(--border); }
.cat-bar-inner { display: flex; gap: 2px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.cat-bar a { color: var(--ink); font-size: 14px; font-weight: 600; padding: 11px 14px; border-bottom: 3px solid transparent; }
.cat-bar a:hover { color: var(--primary); background: var(--tint); text-decoration: none; }
.cat-bar a.active { color: var(--primary); border-bottom-color: var(--primary); }
.demo-notice { font-size: 13px; color: var(--muted); padding-top: 12px; }
.demo-notice a { text-decoration: underline; margin-left: 7px; }
.flash-wrap { padding-top: 22px; }
.flash { margin: 0; font-size: 15px; }

.site-footer { background: var(--navy); color: #b9cbe0; margin-top: 56px; padding-top: 44px; font-size: 14px; }
.site-footer .brand { font-size: 24px; }
.site-footer p { color: #b9cbe0; max-width: 460px; }
.site-footer .footer-title { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer .col-6 > a, .site-footer .col-lg-3 > a { display: block; color: #b9cbe0; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #ffffff22; margin-top: 30px; padding: 18px 0; font-size: 13px; color: #92a8bf; }

.page-section { padding-top: 28px; padding-bottom: 40px; min-height: 50vh; }
.page-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; letter-spacing: -1px; line-height: 1.18; margin-bottom: 10px; }
.lead-copy { font-size: 16px; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 12px; color: #4a627c; }
.reading-page { max-width: 820px; padding-top: 40px; padding-bottom: 60px; }
.prose { font-size: 16px; line-height: 1.8; white-space: pre-line; color: #3a4755; }
.reading-page .prose { margin: 24px 0; }
.text-link { font-size: 14px; font-weight: 700; white-space: nowrap; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-top .eyebrow { margin-bottom: 9px; }
.section-top p:not(.eyebrow) { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.breadcrumb-trail { display: flex; flex-wrap: wrap; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb-trail a { font-weight: 600; }
.btn { padding: 10px 18px; font-size: 14px; border-radius: 6px; font-weight: 600; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-dark { background: var(--navy); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-2); border-color: var(--navy-2); }
.alert { font-size: 15px; }
.empty-state { padding: 50px 25px; text-align: center; border: 1px dashed #b9c6d4; border-radius: 8px; margin: 20px 0; color: var(--muted); background: #fff; }
.empty-state.compact { padding: 22px; font-size: 14px; margin: 12px 0; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.panel-body { padding: 26px 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--tint); border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 15px; font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: .5px; color: var(--navy-2); }
.panel-head a { font-size: 13px; font-weight: 600; }
.panel-foot { padding: 16px 18px; border-top: 1px solid var(--border); background: #fafcfe; }

/* ---------- 3. Home ---------- */
.hero-band { background: radial-gradient(900px 400px at 85% -10%, #2a7bff55, transparent 60%), radial-gradient(600px 300px at 0% 110%, #16a34a33, transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 46px 0 42px; }
.hero-band h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 750; letter-spacing: -1px; max-width: 760px; margin-bottom: 10px; }
.hero-sub { font-size: 17px; color: #cfe0f1; max-width: 640px; margin-bottom: 22px; }
.hero-search { display: flex; max-width: 720px; box-shadow: 0 8px 24px #00000040; border-radius: 8px; }
.hero-search input { flex: 1; min-width: 0; border: 0; border-radius: 8px 0 0 8px; padding: 15px 18px; font-size: 16px; color: var(--ink); }
.hero-search input:focus-visible { outline-offset: -3px; }
.hero-search button { border: 0; background: var(--download); color: #fff; font-size: 16px; font-weight: 700; padding: 0 30px; border-radius: 0 8px 8px 0; }
.hero-search button:hover { background: var(--download-dark); }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 0; margin: 20px 0 0; font-size: 14px; color: #d6e4f3; }
.trust-row li::before { content: "✓"; color: #6ee79a; font-weight: 700; margin-right: 8px; }
.home-section { padding-top: 30px; }
.section-heading { font-size: 1.25rem; margin-bottom: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--primary); box-shadow: 0 4px 14px #5145cd24; text-decoration: none; }
.cat-glyph { width: 40px; height: 40px; border-radius: 9px; background: var(--brand-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 8px; }
.cat-name { font-weight: 700; font-size: 16px; }
.cat-count { font-size: 13px; color: var(--muted-2); }
.mini-list { list-style: none; margin: 0; padding: 4px 0; }
.mini-list a { display: flex; align-items: center; gap: 12px; padding: 9px 18px; color: var(--ink); }
.mini-list a:hover { background: var(--tint); text-decoration: none; }
.mini-list .software-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 8px; }
.mini-list strong { display: block; font-size: 14px; line-height: 1.3; }
.mini-list small { display: block; font-size: 12.5px; color: var(--muted-2); line-height: 1.35; }
.check-list { list-style: none; margin: 0; padding: 14px 18px; font-size: 14px; }
.check-list li { position: relative; padding: 0 0 12px 24px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--download); font-weight: 700; }
.check-list li:last-child { padding-bottom: 0; }
.check-list strong { color: var(--ink); }

/* ---------- 4. Software lists & catalog ---------- */
.software-icon { width: 49px; height: 49px; border-radius: 11px; background: var(--brand-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; letter-spacing: -1px; flex-shrink: 0; }
.software-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; padding: 5px; }
.icon-filezilla { color: #be3838; background: #faeaea; }
.icon-vlc { color: #b9701d; background: #fff1df; }
.icon-7-zip { color: #343c39; background: #eef0ed; }
.icon-gimp { color: #634a7b; background: #f0eaf5; }
.icon-libreoffice { color: #3f7549; background: #eaf4e8; }
.icon-obs-studio { color: #434554; background: #eeeef4; }
.app-list { background: #fff; }
.app-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.app-row:last-child { border-bottom: 0; }
.app-row:hover { background: #fafcff; }
.app-icon-link .software-icon { width: 58px; height: 58px; font-size: 24px; border-radius: 12px; }
.app-body { flex: 1; min-width: 0; }
.app-body h3 { font-size: 18px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.app-name { color: var(--primary); }
.app-name:hover { text-decoration: underline; }
.app-ver { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--navy-2); background: var(--brand-soft); border-radius: 4px; padding: 1px 7px; vertical-align: 2px; margin-left: 4px; }
.app-ver-lg { font-size: 15px; padding: 2px 10px; }
.app-tagline { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted-2); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; background: #eef2f6; color: #34475b; border: 1px solid #dde4ec; border-radius: 4px; padding: 0 7px; line-height: 20px; }
.tag-license { background: var(--ok-bg); border-color: #bfe3cc; color: var(--ok); }
.tag-sample { background: var(--warn-bg); border-color: #ecd09b; color: var(--warn); }
.tag-latest { background: var(--ok-bg); border-color: #bfe3cc; color: var(--ok); margin-left: 4px; }
.app-category { color: var(--muted-2); }
.app-category::before, .app-updated::before { content: "·"; margin-right: 8px; }
.btn-download { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--download); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 6px; border: 0; white-space: nowrap; box-shadow: 0 2px 0 var(--download-dark); }
.btn-download:hover { background: var(--download-dark); color: #fff; text-decoration: none; }
.btn-download span[aria-hidden] { font-size: 17px; line-height: 1; }
.btn-download-lg { font-size: 17px; padding: 14px 26px; }
.btn-download-sm { font-size: 13px; padding: 6px 12px; box-shadow: none; }
.btn-block { display: flex; width: 100%; }

.list-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.list-toolbar > .form-control { flex: 1; min-width: 180px; }
.list-toolbar .form-select { width: auto; }
.toolbar-label { font-size: 13px; color: var(--muted); margin-left: 4px; }
.side-list { list-style: none; margin: 0; padding: 6px 0; }
.side-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 18px; color: var(--ink); font-weight: 500; }
.side-list a:hover { background: var(--tint); text-decoration: none; }
.side-list a.active { background: var(--brand-soft); color: var(--primary-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary); }
.side-list small { color: var(--muted-2); font-size: 12.5px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip-row.compact { margin: 10px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 6px 13px; background: #fff; border: 1px solid #c9d4e0; border-radius: 999px; color: var(--ink); cursor: pointer; }
.chip small { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active, .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.active small, .chip[aria-pressed="true"] small { color: var(--accent); }
.result-count { font-size: 14px; color: var(--muted); margin: 14px 2px; }
.result-count a { float: right; text-decoration: underline; }

/* ---------- 5. Software page ---------- */
.app-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 22px 24px; }
.app-head-icon .software-icon { width: 96px; height: 96px; font-size: 40px; border-radius: 18px; }
.app-head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 750; letter-spacing: -.8px; margin: 0 0 4px; line-height: 1.2; }
.app-head-tagline { font-size: 16px; color: var(--muted); margin: 0 0 8px; }
.app-head-cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; max-width: 290px; }
.app-head-cta small { font-size: 12.5px; color: var(--muted-2); }
.app-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--border); margin: 18px 0 20px; }
.app-tabs a { font-size: 14px; font-weight: 600; color: var(--muted); padding: 9px 16px; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.app-tabs a:hover { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }
.article-block { margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 26px; }
.article-block.last { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.article-block h2 { font-size: 1.35rem; margin-bottom: 14px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; font-size: 15px; }
.feature-list span { margin-right: 10px; color: var(--download); font-weight: 700; }
.spec-table { margin: 0; }
.spec-table > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 18px; border-bottom: 1px solid #edf1f5; font-size: 14px; }
.spec-table > div:nth-child(even) { background: #fafcfe; }
.spec-table dt { font-weight: 600; color: var(--muted); flex-shrink: 0; }
.spec-table dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.table { --bs-table-bg: transparent; font-size: 14px; }
.table th { font-size: 12px; color: #4a627c; text-transform: uppercase; letter-spacing: .6px; }
.table td { padding-top: 12px; padding-bottom: 12px; }

/* Shared bits used by admin pages and the guide */
.license-badge { font-size: 12px; font-weight: 600; display: inline-block; border: 1px solid var(--brand-border); background: var(--tint); color: var(--navy-2); padding: 2px 9px; border-radius: 5px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; font-weight: 600; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.download-panel { background: #fff; border: 1px solid var(--border); padding: 24px; border-radius: 8px; position: sticky; top: 20px; }
.download-panel h2 { font-size: 1.3rem; }
@media (max-width: 991px) { .download-panel { position: static; } }

/* ---------- 6. Forms & login ---------- */
.form-label { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.form-control, .form-select { border-color: #c5d0dc; border-radius: 6px; font-size: 16px; padding: 10px 12px; }
.form-control:focus, .form-select:focus { border-color: var(--focus); box-shadow: 0 0 0 .2rem var(--focus-ring); }
.form-check-label { font-size: 14px; color: var(--muted); }
.field-help { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.req, .optional { font-size: 12px; font-weight: 600; margin-left: 6px; }
.req { color: var(--danger); }
.optional { color: var(--muted-2); font-weight: 500; }
.login-panel { max-width: 440px; margin: 10px auto; background: #fff; border: 1px solid var(--border); padding: 35px; border-radius: 12px; }
.login-panel h1 { font-size: 2rem; letter-spacing: -1px; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 70px; }
.password-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: transparent; color: var(--green); font-size: 13px; font-weight: 700; padding: 0 12px; border-radius: 4px; }
.password-toggle:hover { background: #eaf1f9; }

/* ---------- 7. Publisher desk (admin) ---------- */
.admin-bar { background: var(--navy); color: #e9f1e0; }
.admin-bar-inner { display: flex; align-items: center; gap: 22px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.admin-bar-title { font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent); }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.admin-nav a { color: #e9f1e0; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 6px; }
.admin-nav a:hover { background: #ffffff1a; color: #fff; }
.admin-nav a.active { background: #fff; color: var(--navy); }
.admin-signout { background: transparent; border: 1px solid #ffffff55; color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 6px; }
.admin-signout:hover { background: #fff; color: var(--ink); }
.admin-page { padding-top: 40px; }
.admin-page .page-title { font-size: clamp(32px, 4vw, 46px); }

.how-it-works, .advanced, .ai-box { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 14px 18px; margin-bottom: 22px; }
.how-it-works summary, .advanced summary, .ai-box summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.summary-hint { font-weight: 500; font-size: 13px; color: var(--muted-2); margin-left: 10px; }
.summary-hint a { text-decoration: underline; }
.advanced, .ai-box { background: #f6f9fd; margin: 22px 0 0; }
.advanced[open] summary, .ai-box[open] summary { margin-bottom: 14px; }
.ai-box { margin: 0 0 22px; background: var(--tint); border-color: var(--brand-border); }
.ai-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 16px 0 4px; }
.steps li { counter-increment: step; position: relative; padding-top: 38px; font-size: 14px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; font-size: 15px; }
.steps span { color: var(--muted); }
.steps-vertical { grid-template-columns: 1fr; gap: 22px; }
.steps-vertical li { padding: 2px 0 0 44px; min-height: 32px; font-size: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; transition: border-color .15s, transform .15s; }
.stat-card:hover { border-color: var(--green); transform: translateY(-2px); }
.stat-number { font-size: 2.1rem; font-weight: 750; line-height: 1.1; letter-spacing: -1px; }
.stat-label { font-size: 14px; color: var(--muted); }
.stat-published .stat-number { color: var(--ok); }
.stat-draft .stat-number { color: var(--warn); }
.stat-attention { border-color: #e6b86a; background: var(--warn-bg); }
.stat-attention .stat-number { color: var(--warn); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tab-row { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 6px; color: var(--muted); }
.tab small { font-size: 12px; margin-left: 4px; color: var(--muted-2); }
.tab:hover { background: var(--tint); color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; }
.tab.active small { color: var(--accent); }
.toolbar-search { display: flex; gap: 8px; }
.toolbar-search .form-control { min-width: 240px; padding: 8px 12px; font-size: 15px; }

.lib-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lib-row { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(210px, 2fr) minmax(150px, 1.2fr) 250px; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.lib-row:hover { border-color: #c3ccbb; }
.lib-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lib-main .software-icon { width: 44px; height: 44px; font-size: 20px; }
.lib-name { font-weight: 700; font-size: 17px; }
.lib-name:hover { text-decoration: underline; }
.lib-sub { margin: 0; font-size: 13px; color: var(--muted-2); overflow-wrap: anywhere; }
.lib-note { margin: 5px 0 0; font-size: 13px; }
.lib-note.ok { color: var(--ok); }
.lib-note.warn { color: var(--warn); }
.lib-meta { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.lib-meta a { font-weight: 600; text-decoration: underline; }
.lib-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lib-actions form { margin: 0; }
.status-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px; padding: 3px 11px; border-radius: 999px; border: 1px solid transparent; }
.status-published { background: var(--ok-bg); color: var(--ok); border-color: #b9dcc4; }
.status-draft { background: var(--warn-bg); color: var(--warn); border-color: #ecd09b; }

.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.editor-head .status-badge { margin-top: 12px; }
.step-nav { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; background: var(--paper); padding: 10px 0; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.step-nav a { font-size: 14px; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); }
.step-nav a:hover { border-color: var(--green); color: var(--green); }
.step-nav b { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 12px; margin-right: 4px; }
.editor-box { border: 1px solid var(--border); padding: 28px; border-radius: 10px; background: #fff; margin-bottom: 24px; scroll-margin-top: 80px; }
.box-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.box-head h2 { font-size: 1.4rem; margin: 0; }
.box-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.step-dot { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid #c5d0dc; border-radius: 6px; background: #fff; overflow: hidden; }
.input-prefix:focus-within { border-color: var(--focus); box-shadow: 0 0 0 .2rem var(--focus-ring); }
.input-prefix span { display: flex; align-items: center; padding: 0 0 0 12px; font-size: 14px; color: var(--muted-2); background: #f3f6fa; white-space: nowrap; }
.input-prefix .form-control { border: 0; box-shadow: none; padding-left: 2px; background: #f3f6fa; }
.counter { font-weight: 700; color: var(--muted); }
.counter.over { color: var(--danger); }
.counter.good { color: var(--ok); }
.logo-row { display: flex; gap: 22px; align-items: flex-start; }
.logo-preview { min-width: 80px; min-height: 80px; display: flex; align-items: center; color: var(--muted); font-size: 13px; }
.logo-preview .software-icon { width: 80px; height: 80px; font-size: 32px; }
.logo-preview > img { object-fit: contain; border-radius: 10px; border: 1px solid var(--border); }
.logo-controls { flex: 1; min-width: 0; }
.release-list { list-style: none; padding: 0; margin: 0 0 22px; }
.release-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.release-row form { margin: 0; flex-shrink: 0; }
.add-release { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 8px; }
.add-release h3 { font-size: 1.1rem; margin: 0; }
#ai-status { color: var(--green); font-size: 14px; margin: 0; }
#logo-status { color: var(--green); }

.publish-box { position: sticky; top: 76px; margin-bottom: 0; }
.progress-wrap { margin-bottom: 12px; }
.progress-label { font-size: 14px; font-weight: 700; display: block; margin-bottom: 6px; }
progress { width: 100%; height: 10px; border-radius: 99px; overflow: hidden; border: 0; background: #e3e9f0; appearance: none; -webkit-appearance: none; }
progress::-webkit-progress-bar { background: #e3e9f0; }
progress::-webkit-progress-value { background: var(--green); transition: width .2s; }
progress::-moz-progress-bar { background: var(--green); }
.checklist { list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; }
.checklist li { display: flex; gap: 10px; padding: 5px 0; color: var(--muted); }
.checklist .check-mark { width: 18px; flex-shrink: 0; font-weight: 700; color: #8794a1; }
.checklist li.done { color: var(--ink); }
.checklist li.done .check-mark { color: var(--ok); }
.checklist li.optional-item:not(.done) { color: var(--muted-2); }
.checklist em { font-size: 12px; color: var(--muted-2); }
.visibility { border: 0; padding: 0; margin: 0 0 14px; }
.visibility legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; float: none; width: auto; }
.vis-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.vis-option:hover { border-color: #a9b8c8; }
.vis-option:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.vis-option input { margin-top: 5px; accent-color: var(--ink); }
.vis-option strong { display: block; font-size: 15px; line-height: 1.3; }
.vis-option small { display: block; font-size: 13px; color: var(--muted); }
#publish-warning { margin: 0 0 14px; padding: 10px 12px; }
.save-state { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.save-state.dirty { color: var(--warn); font-weight: 600; }

.help-page .article-block h2 { font-size: 1.5rem; }
.help-page .article-block p, .def-list dd, .plain-list { font-size: 16px; color: #3a4755; }
.def-list dt { font-weight: 700; margin-top: 14px; }
.def-list dd { margin: 2px 0 0; }
.plain-list { padding-left: 20px; }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1199px) {
  .lib-row { grid-template-columns: minmax(200px, 1.6fr) minmax(180px, 1.6fr) 250px; }
  .lib-meta { display: none; }
}
@media (max-width: 991px) {
  .site-top-inner { gap: 12px; }
  .site-search { order: 3; flex-basis: 100%; max-width: none; }
  .hero-band { padding: 34px 0 30px; }
  .app-head { grid-template-columns: auto 1fr; }
  .app-head-cta { grid-column: 1 / -1; max-width: none; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; flex-wrap: wrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-vertical { grid-template-columns: 1fr; }
  .publish-box { position: static; }
  .step-nav { position: static; }
}
@media (max-width: 767px) {
  .lib-row { grid-template-columns: 1fr; gap: 12px; }
  .lib-actions { justify-content: flex-start; }
  .toolbar-search { width: 100%; }
  .toolbar-search .form-control { min-width: 0; flex: 1; }
  .logo-row { flex-direction: column; }
  .app-row { flex-wrap: wrap; }
  .app-body { flex-basis: calc(100% - 80px); }
  .app-row .btn-download { width: 100%; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 23px; }
  .top-links { margin-left: 0; width: 100%; justify-content: space-between; }
  .top-links a { padding: 6px 6px; }
  .top-links .nav-cta { margin-left: 0; }
  .hero-search { flex-direction: column; box-shadow: none; gap: 8px; }
  .hero-search input, .hero-search button { border-radius: 8px; padding: 13px 16px; }
  .app-head { grid-template-columns: 1fr; padding: 18px; }
  .app-head-icon .software-icon { width: 72px; height: 72px; font-size: 30px; }
  .app-head-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .panel-body { padding: 20px 18px; }
  .section-top { align-items: flex-start; flex-direction: column; }
  h2 { font-size: 1.3rem; }
  .editor-box { padding: 20px; }
  .editor-head { flex-direction: column; gap: 0; }
  .editor-head .status-badge { margin-top: 0; margin-bottom: 8px; order: -1; }
  .login-panel { padding: 25px; }
  .stat-grid { gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .admin-bar-inner { gap: 10px; }
  .release-row { flex-direction: column; }
}

/* ---------- 10. Brand refresh, ratings ---------- */
.hero-card { background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 18px 40px #00000040; padding: 6px 0; }
.hero-card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 12px 20px 6px; margin: 0; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card a { display: flex; align-items: center; gap: 14px; padding: 10px 20px; color: var(--ink); }
.hero-card a:hover { background: var(--tint); text-decoration: none; }
.hero-card .software-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 10px; }
.hc-text { flex: 1; min-width: 0; }
.hc-text strong { display: block; line-height: 1.25; }
.hc-text small { color: var(--muted-2); font-size: 13px; }
.hc-go { width: 30px; height: 30px; border-radius: 50%; background: var(--download); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cat-productivity .cat-glyph { background: #e4eeff; color: #0a66ff; }
.cat-design-photo .cat-glyph { background: #f3e8ff; color: #8a3ffc; }
.cat-audio-video .cat-glyph { background: #ffe9e3; color: #e5471e; }
.cat-developer-tools .cat-glyph { background: #dff7f2; color: #0b8f7a; }
.cat-utilities .cat-glyph { background: #fff1d6; color: #c77b00; }
.site-top { border-bottom: 3px solid var(--download); }

.stars { display: inline-flex; gap: 1px; line-height: 1; vertical-align: middle; font-size: 16px; }
.star { color: var(--star-off); }
.star-full { color: var(--star); }
.star-half { background: linear-gradient(90deg, var(--star) 50%, var(--star-off) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.app-rating .stars { font-size: 14px; }
.app-rating strong { color: var(--ink); }
.rating-summary { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.rating-summary strong { color: var(--ink); font-size: 16px; }
.rating-summary:hover { text-decoration: none; color: var(--primary); }
.rating-summary .stars { font-size: 20px; }
.panel-body-sm { padding: 16px 18px; }
.rating-big { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rating-score { font-size: 2.6rem; font-weight: 750; line-height: 1; letter-spacing: -1px; }
.rating-big .stars { font-size: 22px; display: flex; }
.rating-big small { display: block; color: var(--muted-2); font-size: 13px; }
.rate-form fieldset { border: 0; padding: 0; margin: 0 0 10px; }
.rate-form legend { font-size: 14px; font-weight: 700; margin-bottom: 4px; float: none; width: auto; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 34px; line-height: 1; color: var(--star-off); cursor: pointer; padding: 0 2px; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.rating-admin { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.rating-admin .stars { font-size: 15px; }

/* Consistent brand colors across public pages and the publisher desk. */
::selection { background: #ddd7ff; color: var(--navy); }
.site-top { border-bottom-color: var(--download); box-shadow: 0 3px 14px #171c3c12; }
.site-top .nav-cta { background: #ffffff0d; border-color: #ffffff45; }
.site-top .nav-cta:hover { background: var(--primary); border-color: #b6afff; }
.cat-bar a.active { background: var(--brand-soft); }
.hero-band {
  background: radial-gradient(ellipse at 85% 5%, #7161da55, transparent 60%),
    radial-gradient(ellipse at 5% 100%, #087c6c45, transparent 55%),
    linear-gradient(120deg, var(--navy), #292557);
}
.hero-sub, .trust-row { color: #e0dff2; }
.trust-row li::before { color: var(--accent); }
.hero-card { border: 1px solid #ffffff70; box-shadow: 0 18px 40px #10132e30; }
.panel, .editor-box, .login-panel, .stat-card, .lib-row, .cat-tile { box-shadow: var(--shadow-soft); }
.panel-head { background: linear-gradient(100deg, var(--tint), #f7f6fe); }
.panel-head h2, .eyebrow, .table th { color: #514777; }
.cat-tile:hover, .lib-row:hover { border-color: #aaa1e5; }
.app-row:hover, .mini-list a:hover, .hero-card a:hover { background: #f6f4ff; }
.side-list a.active { border-left: 3px solid var(--primary); }
.btn-dark, .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  --bs-btn-disabled-bg: var(--primary);
  --bs-btn-disabled-border-color: var(--primary);
  background: var(--primary); border-color: var(--primary);
}
.btn-dark:hover, .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-dark, .btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--brand-border);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}
.btn-download, .hero-search button { box-shadow: 0 3px 0 var(--download-dark), 0 5px 14px #087c6c18; }
.btn-download-sm { box-shadow: none; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem var(--focus-ring); }
.vis-option:has(input:checked) { border-color: var(--primary); background: var(--brand-soft); }
.vis-option input { accent-color: var(--primary); }
.tab.active, .step-dot, .step-nav b, .steps li::before { background: var(--primary); color: #fff; }
.tab.active small { color: #e5e0ff; }
.publish-box { border-top: 3px solid var(--primary); }
.login-panel { border-top: 4px solid var(--primary); }
.ai-box { background: #f4f1ff; border-color: var(--brand-border); }
.admin-bar { background: #23284f; color: #e5e4f4; }
.admin-nav a { color: #e5e4f4; }
.admin-nav a.active { background: var(--brand-soft); color: var(--primary-dark); }
.tag-license, .tag-latest, .status-published { border-color: #b7dfd0; }
.site-footer { background: #141933; }

/* ---------- 11. Search appearance (SEO) ---------- */
.counter.short { color: var(--warn); }
.serp { background: #f6f8fb; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px 12px; }
.serp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; }
.serp-toolbar .chip-row { margin: 0; }
.serp-toolbar .chip { padding: 3px 12px; font-size: 13px; }
.serp-card { background: #fff; border-radius: 8px; padding: 16px 18px; font-family: Arial, Helvetica, sans-serif; max-width: 652px; border: 1px solid #e3e8ee; }
.serp-site { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.serp-site > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.serp-favicon { width: 28px; height: 28px; border-radius: 50%; background: var(--download); color: #fff; font: italic 700 15px Georgia, serif; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.serp-sitename { font-size: 14px; color: #202124; }
.serp-url { font-size: 12px; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin-bottom: 3px; overflow-wrap: anywhere; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.serp-card.serp-mobile { max-width: 380px; padding: 14px; }
.serp-card.serp-mobile .serp-title { font-size: 18px; }
.serp-card.serp-mobile .serp-desc { font-size: 13px; line-height: 1.5; }
.seo-checks { list-style: none; margin: 22px 0 0; padding: 14px 16px; background: #f6f9fd; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.seo-checks li { display: flex; gap: 10px; padding: 4px 0; color: var(--muted); }
.seo-checks li[hidden] { display: none; }
.seo-checks .check-mark { width: 18px; flex-shrink: 0; font-weight: 700; color: #8794a1; }
.seo-checks li.done { color: var(--ink); }
.seo-checks li.done .check-mark { color: var(--ok); }
.seo-checks .seo-hint { color: var(--muted-2); font-style: italic; }
.notes-box textarea { margin-top: 2px; }
.preview-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: #fff4dc; border: 1px solid #ecd09b; color: #6b4300; border-radius: 8px; padding: 10px 16px; margin-bottom: 16px; font-size: 14px; }
.preview-banner a { margin-left: auto; font-weight: 700; text-decoration: underline; }
kbd { background: #eef2f6; border: 1px solid #cfd8e2; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: .85em; color: var(--ink); }

/* ---------- 12. Listing health ---------- */
.health { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 18px; background: #fafbfe; }
.health-head { display: flex; align-items: center; gap: 14px; }
.health-head strong { display: block; line-height: 1.3; font-size: 15px; }
.health-head small { color: var(--muted); font-size: 13px; }
.health-score { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; background: #8791a8; }
.health[data-grade="ready"] { border-color: #b7e1cf; background: #f2fbf7; }
.health[data-grade="ready"] .health-score { background: var(--ok); }
.health[data-grade="almost"] { border-color: #ecd09b; background: #fffaf0; }
.health[data-grade="almost"] .health-score { background: #c27a00; }
.health[data-grade="needs-work"] { border-color: #f0b8b3; background: #fff7f6; }
.health[data-grade="needs-work"] .health-score { background: var(--danger); }
.health-blockers { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.health-blockers:empty { display: none; }
.health-blockers li { position: relative; padding: 3px 0 3px 18px; line-height: 1.4; }
.health-blockers li::before { content: "→"; position: absolute; left: 0; color: var(--muted-2); }
.health-blockers li.blocker { color: #8f1d17; font-weight: 600; }
.health-blockers li.blocker::before { content: "✕"; color: var(--danger); }
.health-details { margin-top: 10px; font-size: 13px; }
.health-details summary { cursor: pointer; font-weight: 700; color: var(--primary-dark); }
.health-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 14px 0 4px; }
.health-group ul { list-style: none; margin: 0; padding: 0; }
.health-group li { display: flex; gap: 8px; padding: 3px 0; line-height: 1.4; }
.hc-mark { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; color: #fff; }
.hc-pass .hc-mark { background: var(--ok); }
.hc-warn .hc-mark { background: #c27a00; }
.hc-fail .hc-mark { background: var(--danger); }
.hc-body { display: flex; flex-direction: column; min-width: 0; }
.hc-body small { color: var(--muted); font-size: 12.5px; }
.lib-health { margin: 6px 0 0; }
.health-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; }
.health-chip:hover { text-decoration: none; filter: brightness(.95); }
.health-chip.health-ready { background: var(--ok-bg); color: var(--ok); border-color: #b7e1cf; }
.health-chip.health-almost { background: var(--warn-bg); color: var(--warn); border-color: #ecd09b; }
.health-chip.health-needs-work { background: var(--danger-bg); color: #9b1f18; border-color: #f0b8b3; }
@media (min-width: 992px) { .publish-box { max-height: calc(100vh - 92px); overflow-y: auto; } }

/* AI second opinion */
.ai-review { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.ai-review .field-help { margin-bottom: 8px; }
#ai-review-result h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 14px 0 4px; }
#ai-review-result ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink); }
#ai-review-result li { margin-bottom: 6px; line-height: 1.4; }
.ai-verdict { border-radius: 8px; padding: 8px 12px; font-size: 14px; margin-top: 10px; }
.ai-ready { background: var(--ok-bg); color: var(--ok); }
.ai-almost { background: var(--warn-bg); color: var(--warn); }
.ai-needs-work { background: var(--danger-bg); color: #9b1f18; }
.ai-summary { font-size: 13px; margin: 8px 0 0; color: var(--ink); }
.ai-issue small { display: block; color: var(--muted); }
.ai-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 4px; background: var(--tint); color: var(--primary-dark); }
.ai-error { color: #9b1f18; font-size: 13px; margin: 6px 0 0; }

/* ---------- 13. Highlighted issues inside the text boxes ---------- */
.hl-wrap { position: relative; display: block; background: #fff; border-radius: 6px; }
.hl-backdrop { position: absolute; inset: 0; overflow: hidden; scrollbar-gutter: stable; pointer-events: none; color: transparent; white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; border-style: solid; border-color: transparent; }
.hl-content { min-height: 100%; }
.hl-wrap > textarea { position: relative; display: block; width: 100%; background: transparent; scrollbar-gutter: stable; }
.hl-wrap > textarea:focus { background-color: transparent; }
.hl { padding: 0; margin: 0; color: transparent; border-radius: 3px; text-decoration: underline wavy; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hl-cliche { background: #ffeeb3; box-shadow: 0 0 0 1px #f0cf5a; text-decoration-color: #c99a00; }
.hl-repeated { background: #ffd9bd; box-shadow: 0 0 0 1px #f0a874; text-decoration-color: #d36a1c; }
.hl-placeholder { background: #ffc9c4; box-shadow: 0 0 0 1px #ee8d85; text-decoration-color: #c4271c; }
.hl-ai { background: #e0d9ff; box-shadow: 0 0 0 1px #b7a9ff; text-decoration-color: #5145cd; }
.hl-off .hl { background: transparent; box-shadow: none; text-decoration: none; }
.form-control.has-issues { border-color: #e0a64a; }
.hl-off .form-control.has-issues { border-color: #c5d0dc; }
.field-flag:empty { display: none; }
.field-flag { margin-bottom: 10px; }
.field-flag p { font-size: 13px; line-height: 1.45; margin: 5px 0 0; padding-left: 20px; position: relative; }
.field-flag p::before { position: absolute; left: 0; font-weight: 700; }
.flag-warn { color: var(--warn); }
.flag-warn::before { content: "⚠"; }
.flag-fail { color: #9b1f18; }
.flag-fail::before { content: "✕"; }
.flag-ai { color: var(--primary-dark); }
.flag-ai::before { content: "✳"; }
.hl-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 12px 0 0; cursor: pointer; }
.hl-toggle input { accent-color: var(--primary); }
#hl-count { color: var(--muted-2); font-weight: 500; }
#health-marks h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 12px 0 4px; }
.mark-list { list-style: none; margin: 0 0 6px; padding: 0; }
.mark-list li { margin-bottom: 8px; }
.mark-list small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.mark-jump { display: inline; text-align: left; background: none; border: 0; padding: 0; font-size: 13px; color: var(--ink); cursor: pointer; }
.mark-jump:hover .mark-text { text-decoration: underline; }
.mark-text { overflow-wrap: anywhere; }
.ai-jump { margin-top: 4px; color: var(--primary-dark); font-weight: 700; text-decoration: underline; }
.ai-quote { margin: 5px 0 3px; padding: 3px 8px; border-left: 3px solid #b7a9ff; background: #f3f0ff; font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.hl-tag-cliche { background: #ffeeb3; color: #6b4b00; }
.hl-tag-repeated { background: #ffd9bd; color: #7a3a07; }
.hl-tag-placeholder { background: #ffc9c4; color: #8f1d17; }
.hl-tag-ai { background: #e0d9ff; color: #3f33ae; }

/* ---------- 14. Test details, fact check, freshness ---------- */
.tested-card { margin-top: 22px; padding: 18px; background: #f6f9fd; border: 1px solid var(--border); border-radius: 10px; }
.tested-card.has-issues { border-color: #e0a64a; }
.tested-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.tested-box { margin: 18px 0 14px; padding: 14px 18px; background: #f6f9fd; border: 1px solid var(--border); border-left: 4px solid var(--download); border-radius: 8px; }
.tested-box strong { display: block; margin-bottom: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.tested-box dl { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 8px; }
.tested-box dl div { min-width: 0; }
.tested-box dt { font-size: 12px; color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.tested-box dd { margin: 0; font-weight: 600; }
.tested-box p { margin: 0; font-size: 14px; color: #3a4755; white-space: pre-line; }
.fact-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; background: #fafbfe; }
.fact-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.fact-head strong { display: block; }
.fact-head small { display: block; max-width: 430px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.fact-status { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.fact-list { list-style: none; margin: 8px 0 0; padding: 0; }
.fact-list:empty { display: none; }
.fact-list li { display: flex; gap: 10px; padding: 4px 0; font-size: 14px; line-height: 1.4; }
.fact-list small { color: var(--muted); font-size: 13px; }
.fact-mark { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.fact-ok .fact-mark { background: var(--ok); }
.fact-warn .fact-mark { background: #c27a00; }
.fact-fail .fact-mark { background: var(--danger); }
.review-date { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 12px; }
.review-date form { margin: 0; }
.fresh-chip { background: #e8f1ff; color: #1b4fa8; border-color: #bcd2f7; }
.toolbar-updates { margin: 0 0 0 auto; }
.toolbar-updates .btn { font-size: 13px; padding: 7px 12px; }
.mark-skip { margin-left: 8px; color: var(--muted-2); text-decoration: underline; font-size: 12.5px; }
.mark-skip:hover { color: var(--ink); }
@media (max-width: 767px) { .toolbar-updates { margin-left: 0; } }

.fact-info .fact-mark { background: #6b7a90; font-style: italic; font-family: Georgia, serif; }
.fact-seen { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.fact-seen:empty { display: none; }

/* ---------- 15. Version pages ---------- */
.version-banner { margin-top: 16px; }
.version-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.version-nav a { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; min-width: 200px; color: var(--ink); }
.version-nav a:hover { border-color: var(--primary); text-decoration: none; }
.version-nav small { color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.version-nav .newer { text-align: right; margin-left: auto; }

/* ---------- 16. Quick start, platform picker ---------- */
.quick-start { background: linear-gradient(135deg, #f0eefb 0%, #f6f9fd 100%); border: 1px solid var(--brand-border, #d6cff7); border-radius: 12px; padding: 20px 22px; margin-bottom: 24px; }
.qs-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.qs-head h2 { font-size: 1.25rem; margin: 0; }
.qs-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); max-width: 640px; }
.qs-bolt { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.qs-row { display: flex; gap: 10px; }
.qs-row .form-control { flex: 1; min-width: 0; }
.qs-status { margin: 10px 0 0; font-size: 14px; color: var(--muted); min-height: 1.2em; }
.qs-found { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0 0; padding: 0; }
.qs-found li { font-size: 13px; padding: 3px 11px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); border: 1px solid #b7e1cf; }
.qs-found li::before { content: "✓ "; font-weight: 700; }
.qs-found li.qs-kept { background: #f1f4f8; color: var(--muted); border-color: var(--border); }
.qs-found li.qs-kept::before { content: "• "; }
.similar-warning { margin-bottom: 18px; }
.similar-warning a { font-weight: 700; text-decoration: underline; }
.platform-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin: 4px 0 8px; }
.platform-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1.5px solid #c9d4e0; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .12s, background .12s, box-shadow .12s; }
.platform-card:hover { border-color: var(--primary); }
.platform-card[aria-pressed="true"] { border-color: var(--primary); background: #f0eefb; box-shadow: 0 0 0 3px #5145cd22; }
.pc-glyph { width: 28px; height: 28px; border-radius: 8px; background: #eaf0f7; color: #26405c; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.platform-card[aria-pressed="true"] .pc-glyph { background: var(--primary); color: #fff; }
.platform-card[aria-pressed="true"]::after { content: "✓"; margin-left: auto; color: var(--primary); font-weight: 800; }
.picker-shortcuts { margin: 0 0 12px; font-size: 13px; color: var(--muted-2); }
.link-button { background: none; border: 0; padding: 0; color: var(--primary-dark); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; margin-right: 14px; }
.add-release .form-check-label { font-size: 14px; color: var(--muted); }

/* ---------- 17. AI search-tag suggestions ---------- */
.ai-seo { margin: 0 0 18px; padding: 14px 16px; background: #f3f0ff; border: 1px solid #d6cff7; border-radius: 10px; }
.ai-seo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.ai-seo-head strong { display: block; }
.ai-seo-head small { display: block; max-width: 520px; color: var(--muted); font-size: 13px; line-height: 1.45; }
#ai-seo-result:empty { display: none; }
#ai-seo-result h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 16px 0 6px; }
#ai-seo-result ul { margin: 0; padding-left: 18px; font-size: 13px; }
.seo-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; }
.seo-option-text { min-width: 0; }
.seo-option-text span { display: block; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.seo-option-text small { color: var(--muted-2); font-size: 12px; }
.seo-applied { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ok); min-height: 1.2em; }

/* ---------- 18. Systems (Windows / macOS / Linux), menus, posting-page polish ---------- */
.tag-os { background: #f1effc; border-color: #d6cff7; color: var(--navy-2); }
a.tag-os:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }
.os-windows { --os-bg: #e3f0fb; --os-fg: #0b61a8; }
.os-macos { --os-bg: #eceef3; --os-fg: #2c3340; }
.os-linux { --os-bg: #fff2d4; --os-fg: #8a5a00; }
.os-android { --os-bg: #e2f5e6; --os-fg: #1b7a36; }
.os-ios { --os-bg: #eaedf5; --os-fg: #34415f; }
.os-web { --os-bg: #e2f2f8; --os-fg: #0a6489; }
.os-other { --os-bg: #eef1f5; --os-fg: #4a5568; }
/* home: browse by system */
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.os-tile { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; color: var(--ink); box-shadow: var(--shadow-soft); transition: border-color .15s, box-shadow .15s; }
.os-tile:hover { border-color: var(--primary); box-shadow: 0 4px 14px #5145cd24; text-decoration: none; }
.os-tile .os-glyph { grid-row: span 2; }
.os-glyph { width: 44px; height: 44px; border-radius: 10px; background: var(--os-bg, var(--brand-soft)); color: var(--os-fg, var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.os-name { font-weight: 700; line-height: 1.2; }
.os-count { font-size: 13px; color: var(--muted-2); }
.os-mark { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 6px; background: var(--os-bg, #eef1f5); color: var(--os-fg, #4a5568); font-size: 13px; font-weight: 700; margin-right: 4px; }
.side-list .os-mark { background: var(--brand-soft); color: var(--primary-dark); }
/* software page: download by system */
.downloads-panel { margin-bottom: 24px; }
.os-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 18px 20px 8px; }
.os-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: #fff; }
.os-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.os-card-head h3 { font-size: 17px; margin: 0; }
.os-card-head small { color: var(--muted-2); font-size: 13px; }
.os-builds { display: flex; flex-wrap: wrap; gap: 8px; }
.downloads-note { margin: 0; padding: 4px 20px 16px; font-size: 13px; color: var(--muted-2); }
.os-heading { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 24px 0 8px; }
.os-heading small { font-weight: 500; font-size: 13px; color: var(--muted-2); }
/* editor: grouped platform cards */
.platform-groups { display: grid; gap: 10px; margin: 4px 0 8px; }
.platform-group { display: grid; grid-template-columns: 1fr; align-items: center; gap: 10px; }
.platform-group-name { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted-2); font-weight: 700; }
.platform-group .platform-picker { margin: 0; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.platform-card, .os-option, .chip { min-height: 40px; }
/* editor: menu + "Other…" box */
.choice [hidden] { display: none !important; }
.choice input { margin-top: 8px; }
/* editor: release form, grouped by system */
.os-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.os-option { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; background: #fff; border: 1.5px solid #c9d4e0; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.os-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.os-option:hover { border-color: var(--primary); }
.os-option:has(input:checked) { border-color: var(--primary); background: #f0eefb; box-shadow: 0 0 0 3px #5145cd22; }
.os-option:has(input:checked) .pc-glyph { background: var(--primary); color: #fff; }
.os-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.release-group { margin-bottom: 8px; }
.release-group-head { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 18px 0 2px; }
.release-group-head small { font-weight: 500; font-size: 13px; color: var(--muted-2); }
.release-group .release-list { margin-bottom: 10px; }
.coverage { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; }
.coverage li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px 8px 8px; background: #fff; }
.coverage li.missing { border-style: dashed; border-color: #e0b955; background: #fffaf0; }
.coverage strong { display: block; font-size: 14px; line-height: 1.2; }
.coverage small { display: block; font-size: 12px; color: var(--muted-2); }
.coverage .link-button { margin: 0 0 0 4px; }
/* editor: current step, mobile save bar */
.step-nav a.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-nav a.current b { background: var(--accent); color: var(--ink); }
.mobile-save { display: none; }
.mobile-save-note.dirty { color: var(--warn); font-weight: 700; }
@media (max-width: 991.98px) {
  .mobile-save { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 18px #20243d14; font-size: 14px; color: var(--muted); }
  .admin-page { padding-bottom: 88px; }
  .platform-group { grid-template-columns: 1fr; gap: 4px; }
  .platform-card, .os-option, .chip { min-height: 44px; }
}

/* ---------- 19. Answer-first text, FAQ ---------- */
.quick-answer { background: var(--tint); border-left: 4px solid var(--primary); border-radius: 6px; padding: 12px 16px; margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.faq-list { display: grid; gap: 14px; }
.faq-item { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq-item h3 { font-size: 17px; margin: 0 0 4px; }
.faq-answer { margin: 0; color: var(--muted); line-height: 1.6; }
