/* ==========================================================================
   Premium layer: Apple-style restraint. Top navigation, generous whitespace,
   SF typography, quiet surfaces, one accent. Loaded last; overrides the
   older sidebar and 3D layers.
   ========================================================================== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --heading-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --bg: #f5f5f7;
  --card: #ffffff;
  --card-top: #ffffff;
  --surface-2: #fafafc;
  --surface-3: #f0f0f3;
  --hover: rgba(0, 0, 0, .035);
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --border: rgba(0, 0, 0, .08);
  --border-2: rgba(0, 0, 0, .14);
  --card-border: rgba(0, 0, 0, .06);
  --ink: #1d1d1f;          /* primary buttons */
  --on-ink: #ffffff;
  --accent-blue: #0071e3;  /* links and focus, as on apple.com */
  --link: #0066cc;
  --elev-1: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 12px rgba(0, 0, 0, .04);
  --elev-2: 0 4px 24px rgba(0, 0, 0, .08);
  --elev-3: 0 12px 40px rgba(0, 0, 0, .12);
  --shadow: var(--elev-1);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .18);
  --nav-h: 52px;
  --page: 1320px;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --card: #161617;
  --card-top: #161617;
  --surface-2: #1c1c1e;
  --surface-3: #232325;
  --hover: rgba(255, 255, 255, .05);
  --text: #f5f5f7;
  --text-2: #d2d2d7;
  --muted: #86868b;
  --border: rgba(255, 255, 255, .1);
  --border-2: rgba(255, 255, 255, .16);
  --card-border: rgba(255, 255, 255, .08);
  --ink: #f5f5f7;
  --on-ink: #1d1d1f;
  --link: #2997ff;
  --elev-1: 0 0 0 1px rgba(255, 255, 255, .04);
  --elev-2: 0 8px 32px rgba(0, 0, 0, .6);
  --elev-3: 0 16px 48px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .7);
}

body { font-family: var(--font); font-size: 14px; letter-spacing: -.003em; background: var(--bg); }
body::before { display: none; }
h1, h2, h3, .kpi .val, .page-head h1 { font-family: var(--heading-font); }
a:hover { text-decoration: none; }

/* ---------- Global navigation (top) ---------- */
.shell.top { display: block; min-height: 100vh; }
.gnav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.gnav-in { max-width: var(--page); margin: 0 auto; height: 100%; padding: 0 22px; display: flex; align-items: center; gap: 8px; }
.gnav-logo { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin-right: 18px; }
.gnav-logo img { width: 26px; height: 26px; border-radius: 7px; }
.gnav-logo small { color: var(--muted); font-weight: 500; font-size: 12px; }
.gnav-menu { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.gnav-item { position: relative; }
.gnav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: color .2s, background .2s;
}
.gnav-link:hover { color: var(--text); background: var(--hover); }
.gnav-link.active, .gnav-item.has-active > .gnav-link { color: var(--text); background: var(--surface-3); font-weight: 600; }
.gnav-link svg.lucide { width: 14px; height: 14px; }
.gnav-link .chev { width: 12px; height: 12px; opacity: .55; transition: transform .25s; }
.gnav-item.open .chev { transform: rotate(180deg); }
.gnav .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }
.gnav .dot-flag { width: 6px; height: 6px; border-radius: 50%; background: #ff3b30; }
.gnav-drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 6px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--border); box-shadow: var(--elev-3);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .22s cubic-bezier(.22, 1, .36, 1), visibility .18s;
}
.gnav-item.open > .gnav-drop { opacity: 1; visibility: visible; transform: none; }
.gnav-drop a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text); font-size: 13px; }
.gnav-drop a:hover { background: var(--hover); }
.gnav-drop a.active { background: var(--surface-3); font-weight: 600; }
.gnav-drop a svg.lucide { color: var(--muted); }
.gnav-drop a .count { margin-left: auto; }
.gnav-drop .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.gnav-drop.right { left: auto; right: 0; }
.gnav-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gnav .icon-btn { width: 32px; height: 32px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.gnav .icon-btn:hover { background: var(--hover); color: var(--text); transform: none; }
.gnav .search { width: 210px; max-width: 30vw; transition: width .3s cubic-bezier(.22, 1, .36, 1); }
.gnav .search:focus-within { width: 320px; }
.gnav .search input { height: 32px; border-radius: 999px; background: var(--surface-3); border: 1px solid transparent; box-shadow: none; font-size: 13px; padding-left: 32px; }
.gnav .search input:focus { background: var(--card); border-color: var(--border-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-blue) 18%, transparent); }
.gnav .search > svg { top: 8px; left: 11px; }
.gnav .search-results { top: 40px; border-radius: 14px; box-shadow: var(--elev-3); }
.gnav .burger { display: none; }
.gnav .me { padding: 2px; border-radius: 999px; border: 0; background: none; cursor: pointer; }
.gnav .me .avatar { width: 28px; height: 28px; font-size: 11px; }
.gnav-drop .who { padding: 8px 10px 10px; }
.gnav-drop .who b { display: block; font-size: 13px; }
.gnav-drop .who span { color: var(--muted); font-size: 12px; }

.shell.top .content { max-width: var(--page); margin: 0 auto; padding: 34px 22px 64px; }

/* ---------- Page header ---------- */
.page-head { margin-bottom: 26px; gap: 14px; }
.page-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.page-head .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.page-head .eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .01em; margin-bottom: 4px; }

/* ---------- Surfaces ---------- */
.card, .kpi { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--elev-1); }
.card:hover { transform: none; }
.card-h { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-h h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card-b { padding: 20px; }
.kpi { padding: 18px 20px; }
.kpi:hover { box-shadow: var(--elev-2); }
.kpi::after { display: none; }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.kpi .lbl { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .ico, .kpi:hover .ico { transform: none; }

/* Quiet, tinted icon tiles instead of glossy ones */
.tone-brand, .tone-ok, .tone-info, .tone-violet, .tone-warn, .tone-bad, .tone-pink, .tone-teal { box-shadow: none !important; border-radius: 10px; }
.tone-brand { background: color-mix(in srgb, var(--brand) 22%, var(--card)) !important; color: color-mix(in srgb, var(--brand) 55%, #000) !important; }
.tone-ok { background: color-mix(in srgb, #34c759 16%, var(--card)) !important; color: #248a3d !important; }
.tone-info { background: color-mix(in srgb, #0071e3 13%, var(--card)) !important; color: #0071e3 !important; }
.tone-violet { background: color-mix(in srgb, #af52de 14%, var(--card)) !important; color: #8944ab !important; }
.tone-warn { background: color-mix(in srgb, #ff9f0a 18%, var(--card)) !important; color: #c56a00 !important; }
.tone-bad { background: color-mix(in srgb, #ff3b30 13%, var(--card)) !important; color: #d70015 !important; }
.tone-pink { background: color-mix(in srgb, #ff2d55 13%, var(--card)) !important; color: #d30f45 !important; }
.tone-teal { background: color-mix(in srgb, #30b0c7 15%, var(--card)) !important; color: #0e7d92 !important; }
:root[data-theme="dark"] .tone-brand { color: var(--brand) !important; }
:root[data-theme="dark"] .tone-ok { color: #30d158 !important; } :root[data-theme="dark"] .tone-info { color: #2997ff !important; }
:root[data-theme="dark"] .tone-violet { color: #bf5af2 !important; } :root[data-theme="dark"] .tone-warn { color: #ff9f0a !important; }
:root[data-theme="dark"] .tone-bad { color: #ff453a !important; } :root[data-theme="dark"] .tone-teal { color: #40c8e0 !important; }
.list-item:hover .type-ico { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: -.005em;
  background: var(--surface-3); border: 1px solid transparent; color: var(--text); box-shadow: none; filter: none;
}
.btn:hover { background: color-mix(in srgb, var(--text) 9%, var(--card)); transform: none; box-shadow: none; }
.btn:active { transform: scale(.98); box-shadow: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: none; }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); box-shadow: none; filter: none; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.xs { height: 28px; padding: 0 11px; font-size: 12px; }
.btn.sm { height: 30px; }
.btn.icon { width: 34px; padding: 0; }
.btn.ok { background: #34c759; border-color: #34c759; box-shadow: none; }
.btn.danger.solid { background: #ff3b30; border-color: #ff3b30; box-shadow: none; }
.ripple { display: none; }

/* ---------- Inputs ---------- */
input, select, textarea { border-radius: 10px; border: 1px solid var(--border-2); background: var(--card); box-shadow: none; font-size: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-blue) 18%, transparent); outline: 0; }
label.f > span { font-size: 12.5px; font-weight: 500; color: var(--text-2); }

/* ---------- Lists, tabs, badges ---------- */
.list-item { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.list-item:hover { background: var(--hover); }
.tabs { border-bottom: 0; gap: 4px; background: var(--surface-3); padding: 4px; border-radius: 999px; width: max-content; max-width: 100%; margin-bottom: 22px; }
.tabs button { border: 0; margin: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); }
.tabs button.active { background: var(--card); color: var(--text); border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
:root[data-theme="dark"] .tabs button.active { background: #3a3a3c; }
.badge { font-weight: 500; }
.tag { border-radius: 999px; }
.alert { border-radius: 14px; }

/* ---------- Modal and toasts ---------- */
.backdrop { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal { border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--card); }
.modal-h { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-h h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.modal-f { border-top: 1px solid var(--border); }
.toast { border-radius: 16px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: var(--text); border: 1px solid var(--border); box-shadow: var(--elev-3); }
.toast.ok svg { color: #34c759; } .toast.bad svg { color: #ff3b30; }

/* ---------- Mobile ---------- */
@media (max-width: 1080px) {
  .gnav .burger { display: inline-grid; }
  .gnav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 40px;
    background: var(--bg); overflow-y: auto; display: none;
  }
  .shell.nav-open .gnav-menu { display: flex; }
  .gnav-link { height: 44px; font-size: 17px; width: 100%; justify-content: flex-start; }
  .gnav-drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 8px 16px; display: none; backdrop-filter: none; }
  .gnav-item.open > .gnav-drop { display: block; }
  .gnav .search { width: 150px; }
  .gnav .search:focus-within { width: 200px; }
  .shell.top .content { padding: 22px 16px 48px; }
  .page-head h1 { font-size: 28px; }
}
@media (max-width: 640px) { .gnav .search, .gnav-logo small, #quick-account span { display: none; } }

/* ---------- Knowledge ---------- */
.kn-hero { text-align: center; max-width: 780px; margin: 5vh auto 34px; padding: 0 12px; }
.kn-hero .eyebrow, .kn-writing .eyebrow { color: #b8901f; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
:root[data-theme="dark"] .kn-hero .eyebrow, :root[data-theme="dark"] .kn-writing .eyebrow { color: #e2b93b; }
.kn-hero h1 { font-size: clamp(36px, 5.4vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 10px 0 18px; }
.kn-hero h1 span { color: var(--muted); }
.kn-hero p { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 620px; margin: 0 auto 28px; letter-spacing: -.01em; }
.kn-hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kn-off { display: inline-flex; margin-top: 18px; }
.kn-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.kn-bar .tabs { margin: 0; }
.kn-ind { width: auto; min-width: 200px; border-radius: 999px; padding: 8px 14px; }
.kn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.kn-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; min-height: 230px; background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; box-shadow: var(--elev-1); color: var(--text); transition: transform .25s ease, box-shadow .25s ease; }
.kn-card:hover { transform: translateY(-3px); box-shadow: var(--elev-2); text-decoration: none; }
.kn-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kn-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b8901f; }
:root[data-theme="dark"] .kn-eyebrow { color: #e2b93b; }
.kn-card h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
.kn-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kn-card-foot { margin-top: auto; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kn-card-foot svg { width: 14px; height: 14px; }
.kn-shimmer { display: block; height: 12px; margin: 8px 0; border-radius: 6px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--hover) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: kn-shine 1.4s linear infinite; }
.kn-shimmer.short { width: 60%; }
@keyframes kn-shine { to { background-position: -200% 0; } }
.kn-back { display: inline-flex; align-items: center; gap: 2px; color: var(--link); font-size: 14px; margin: 4px 0 18px; }
.kn-back svg { width: 16px; height: 16px; }
.kn-writing { text-align: center; max-width: 640px; margin: 8vh auto 0; }
.kn-writing h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 14px; }
.kn-writing p { font-size: 17px; line-height: 1.55; color: var(--text-2); margin: 0 0 26px; }
.kn-writing-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #f2cf5b, #c9a227); box-shadow: 0 16px 40px -12px rgba(201, 162, 39, .55); }
.kn-writing-icon.bad { background: linear-gradient(180deg, #ff6b61, #e0352b); box-shadow: 0 16px 40px -12px rgba(224, 53, 43, .5); }
.kn-writing-icon svg { width: 40px; height: 40px; }
.kn-writing-icon.pulse { animation: kn-pulse 1.8s ease-in-out infinite; }
@keyframes kn-pulse { 50% { transform: scale(1.06); } }
.kn-steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.kn-steps span { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.kn-steps span.on { background: var(--ink); color: var(--on-ink); }
.kn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.kn-article { background: var(--card); border: 1px solid var(--card-border); border-radius: 24px; box-shadow: var(--elev-1); padding: clamp(24px, 5vw, 64px); }
.kn-article > .kn-eyebrow { display: flex; align-items: center; gap: 10px; }
.kn-article h1 { margin: 12px 0 14px; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.kn-dek { margin: 0 0 32px; font-size: 21px; line-height: 1.45; color: var(--muted); letter-spacing: -.01em; }
.kn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 36px; }
.kn-stat { background: var(--surface-3); border-radius: 18px; padding: 18px; }
.kn-stat b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.kn-stat span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.kn-body { font-size: 17px; line-height: 1.7; color: var(--text); max-width: 680px; }
.kn-body h2 { margin: 40px 0 10px; font-size: 26px; line-height: 1.2; letter-spacing: -.025em; }
.kn-body h3 { margin: 28px 0 8px; font-size: 19px; }
.kn-body p { margin: 0 0 18px; }
.kn-body ul, .kn-body ol { margin: 0 0 20px; padding-left: 22px; }
.kn-body li { margin: 0 0 8px; }
.kn-body blockquote { margin: 0 0 20px; padding: 2px 0 2px 18px; border-left: 3px solid #c9a227; color: var(--text-2); }
.kn-body sup, .kn-dek sup { font-size: 11px; line-height: 0; margin-left: 1px; }
.kn-sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.kn-sources h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.kn-sources ol { margin: 0; padding-left: 18px; }
.kn-sources li { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 6px; }
.kn-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 14px; }
.kn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kn-actions .btn.primary { flex: 1 1 100%; justify-content: center; }
.kn-sends .card-b { max-height: 320px; overflow: auto; }
/* Download as HTML (2026-11-02): three choices as tappable rows. */
.kn-dls { display: grid; gap: 8px; }
.kn-dl { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.kn-dl:hover { background: var(--hover); }
.kn-dl svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--muted); }
.kn-dl b { display: block; font-size: 14px; }
.kn-dl span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.kn-send { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.kn-send:last-child { border-bottom: 0; }
.kn-send svg { width: 15px; height: 15px; flex: none; }
.ok-text { color: #1f9d55; }
.bad-text { color: #e0352b; }
.kn-reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kn-reach > div { background: var(--surface-3); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.kn-reach b { display: block; font-size: 22px; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-reach > div:last-child b { font-size: 14px; line-height: 1.9; }
.kn-reach span { font-size: 12.5px; color: var(--muted); }
.kn-who summary { cursor: pointer; font-size: 13px; color: var(--link); }
.kn-who-acc { display: grid; grid-template-columns: 160px 1fr; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.kn-who-acc span { color: var(--muted); }
.kn-ideas .chip { cursor: pointer; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--text-2); }
.kn-ideas .chip:hover { border-color: var(--border-2); color: var(--text); }
.kn-preview { width: 100%; height: 70vh; border: 0; border-radius: 14px; background: #f5f5f7; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; }
@media (max-width: 1080px) {
  .kn-layout { grid-template-columns: 1fr; }
  .kn-side { position: static; order: -1; }
  .kn-reach { grid-template-columns: 1fr 1fr; }
}

/* Blog brief (the three-step "Write an article" window) and the HTML header (2026-10-27). */
.kb-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.kb-steps span { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.kb-steps span.on { background: #e6f8f4; color: var(--text); outline: 1px solid #44fbdf; font-weight: 600; }
:root[data-theme="dark"] .kb-steps span.on { background: rgba(68, 251, 223, .12); }
.kb-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kb-chip { position: relative; cursor: pointer; }
.kb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.kb-chip span { display: inline-block; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); }
.kb-chip:hover span { border-color: var(--border-2); color: var(--text); }
.kb-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.kb-chip input:focus-visible + span { outline: 2px solid #44fbdf; outline-offset: 2px; }
.kb-step .f > span em, .kb-also summary em { font-style: normal; font-weight: 500; }
.kb-step .f { gap: 8px; }
.kb-also summary, .kb-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--link); }
.kb-also .kb-chips { margin: 10px 0 6px; }
.kb-more > .form { margin-top: 12px; }
.kb-len { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kb-len label { cursor: pointer; position: relative; }
.kb-len input { position: absolute; opacity: 0; pointer-events: none; }
.kb-len span { display: block; height: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.kb-len b { display: block; font-size: 14.5px; color: var(--text); }
.kb-len input:checked + span { background: #e6f8f4; border-color: #44fbdf; }
:root[data-theme="dark"] .kb-len input:checked + span { background: rgba(68, 251, 223, .12); }
.kb-titles { display: grid; gap: 8px; }
.kb-title { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 600; }
.kb-title:has(input[type=radio]:checked) { background: #e6f8f4; border-color: #44fbdf; }
:root[data-theme="dark"] .kb-title:has(input[type=radio]:checked) { background: rgba(68, 251, 223, .12); }
.kb-title.own input[name=own_title] { flex: 1; min-width: 0; font-weight: 500; }
.kb-sections { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 8px; }
.kb-sec { padding-left: 4px; }
.kb-sec > * { vertical-align: top; }
.kb-sec { display: list-item; }
.kb-sec-f { display: inline-grid; gap: 4px; width: calc(100% - 110px); }
.kb-sec-b { display: inline-flex; gap: 2px; margin-left: 6px; }
.kb-sec .kb-h { font-weight: 600; }
.kb-sec .kb-p { font-size: 13px; color: var(--text-2); }
.kn-head { margin: 12px 0 28px; }
.kn-head .wcp-header h1 { margin-top: 0; }
.kb-header-card .card-b { display: grid; gap: 10px; justify-items: start; }
.kb-styles { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-styles .btn.on { background: #e6f8f4; border-color: #44fbdf; }
:root[data-theme="dark"] .kb-styles .btn.on { background: rgba(68, 251, 223, .12); }
.kb-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.kb-swatch i { width: 10px; height: 10px; border-radius: 50%; }
.kb-swatch.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--card) inset; }
.kb-check { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kb-check:last-child { border-bottom: 0; }
.kb-check svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.kb-check.ok svg { color: #1f9d55; }
.kb-check.warn svg { color: #c98a00; }
.kb-check b { display: block; font-size: 13px; }
.kb-check span { color: var(--muted); }
@media (max-width: 640px) {
  .kb-len { grid-template-columns: 1fr; }
  .kb-sec-f { width: 100%; }
  .kb-sec-b { margin: 4px 0 0; }
  .wcp-header td.wcp-h-text, .wcp-header td.wcp-h-stat { display: block !important; width: auto !important; text-align: left !important; padding: 22px 22px 0 !important; }
  .wcp-header td.wcp-h-stat { padding-bottom: 24px !important; }
  .wcp-header h1 { font-size: 25px !important; }
}
