:root {
  /* Charte Yooka */
  --brand: #3b7e4d;
  --brand-cream: #fffbea;

  --bg: #faf7ea;
  --surface: #ffffff;
  --text: #1d2a21;
  --muted: #5f6b62;
  --border: #e4e0cf;
  --accent: var(--brand);
  --accent-text: var(--brand-cream);
  --ok: #2f7a45;
  --warn: #a65b00;
  --bad: #b3261e;
  --radius: 10px;
  --pill: #f2efe6;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a15;
    --surface: #1b251e;
    --text: #f2efe0;
    --muted: #a3ad9f;
    --border: #2e3b32;
    --accent: #7cc491;
    --accent-text: #0f1a13;
    --ok: #7cc491;
    --warn: #f0a44a;
    --bad: #ff7a70;
    --pill: #243028;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* Le logo a un fond vert plein : l'en-tête reprend ce vert pour l'intégrer sans cadre. */
.topbar { background: var(--brand); color: var(--brand-cream); margin-bottom: 24px; }
.topbar .wrap { display: flex; gap: 20px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.logo { height: 48px; width: auto; display: block; flex: none; }
.home-link { display: block; flex: none; border-radius: 6px; transition: opacity .15s; }
.home-link:hover { opacity: .85; }
.home-link:focus-visible { outline: 2px solid var(--brand-cream); outline-offset: 4px; }
.brand-text { display: flex; flex-direction: column; border-left: 1px solid rgb(255 251 234 / .35); padding-left: 20px; }
.product { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.tagline { opacity: .85; font-size: .88rem; }
.brand-text { min-width: 0; }
/* Menu du compte : onglets en pilule, pastille utilisateur, bouton de déconnexion */
.account { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; white-space: nowrap; font-size: .9rem; }
.nav-links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgb(0 0 0 / .14); }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; color: var(--brand-cream); text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.nav-link svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav-link:hover { background: rgb(255 251 234 / .12); }
.nav-link[aria-current="page"] { background: var(--brand-cream); color: var(--brand); font-weight: 650; }
.nav-link[aria-current="page"] svg { opacity: 1; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid rgb(255 251 234 / .3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 251 234 / .18); color: var(--brand-cream); font-size: .75rem; font-weight: 700; letter-spacing: .03em; }
.who { color: var(--brand-cream); opacity: .9; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 1px solid rgb(255 251 234 / .35); color: var(--brand-cream); cursor: pointer; transition: background .15s, border-color .15s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: rgb(255 251 234 / .15); border-color: rgb(255 251 234 / .6); }
.nav-link:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--brand-cream); outline-offset: 2px; }

/* Accueil de l'outil : bandeau vert, grande barre de recherche posée à cheval */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.topbar .hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 36px; padding-bottom: 116px; }
.hero-kicker { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #cfe6d5; }
.hero h1 { margin: 0; max-width: 900px; text-wrap: balance; font-size: clamp(1.45rem, 3.2vw, 2.15rem); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: #fff; }
body.compact .hero { display: none; }
.topbar.has-hero { margin-bottom: 0; }
body.compact .topbar.has-hero { margin-bottom: 24px; }
.search-card { position: relative; max-width: 960px; margin: -84px auto 24px; padding: 24px; border: 0; border-radius: 22px; box-shadow: 0 18px 48px rgb(29 43 34 / .14); display: flex; flex-direction: column; gap: 18px; }
.search-card ~ .card { max-width: 960px; margin-left: auto; margin-right: auto; }
.search-bar { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 7px 7px 7px 20px; border: 2px solid var(--accent); border-radius: 18px; background: var(--surface); }
.search-bar .yt-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: #b8352b; stroke-width: 2; stroke-linejoin: round; }
.search-bar .yt-icon path { fill: #b8352b; }
.search-bar input { flex: 1 1 200px; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 1.1rem; }
.search-bar input:focus { outline: none; }
.search-bar:focus-within { box-shadow: 0 0 0 4px rgb(59 126 77 / .18); }
.search-bar button { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 13px; font-size: 1rem; font-weight: 700; }
.search-bar button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.search-options { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.opt-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 5px 0 16px; border-radius: 999px; background: var(--pill); font-size: .9rem; font-weight: 600; cursor: pointer; }
.opt-pill svg { width: 18px; height: 18px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.opt-pill select { width: auto; max-width: 260px; min-height: 34px; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--surface); color: var(--accent); font-weight: 800; cursor: pointer; }
.search-options .hint { flex: 1 1 260px; margin: 0; text-align: right; }
.search-options .hint a { color: var(--accent); }

/* Dernières publications de la chaîne du client */
.latest { max-width: 960px; margin: 0 auto 24px; }
.latest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.latest-head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.latest-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--pill); }
.latest-tabs button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; }
.latest-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgb(29 43 34 / .12); }
.latest-setup { margin: 0; padding: 16px 20px; border: 1.5px dashed var(--border); border-radius: 14px; color: var(--muted); }
.latest-setup a { color: var(--accent); font-weight: 600; }
.latest-channels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.latest-channels button { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: .88rem; }
.latest-channels button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.latest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.latest-list.videos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.latest-list.shorts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.latest-item { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; white-space: normal; color: var(--text); }
.latest-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--border); transition: transform .15s, box-shadow .15s; }
.latest-list.shorts .latest-item img { aspect-ratio: 9 / 16; }
.latest-item:hover img { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(29 43 34 / .18); }
.latest-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.latest-video-title { font-size: .9rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-date { font-size: .8rem; color: var(--muted); }

#channel-dialog { width: min(560px, calc(100vw - 32px)); }
.channel-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.channel-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; }
.channel-item-body { display: flex; flex-direction: column; min-width: 0; }
.channel-item-body a { color: var(--accent); font-weight: 700; }
.channel-item-body .hint { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.channel-cell a { color: var(--accent); font-weight: 600; }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font-size: .82rem; text-decoration: underline; }
.link-btn:hover { color: var(--text); }

/* Mes articles */
.all-articles { display: block; margin-top: 12px; text-align: center; color: var(--accent); font-weight: 600; font-size: .9rem; }
.articles-search { margin: 0 0 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.articles-search input { flex: 1 1 260px; }
.articles-search input { min-height: 48px; border-radius: 12px; }
.articles-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.articles-list li + li { border-top: 1px solid var(--border); }
.article-row { display: flex; gap: 16px; align-items: center; padding: 14px 8px; border-radius: 12px; color: var(--text); text-decoration: none; }
.article-row:hover { background: var(--bg); }
.article-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.article-row img, .article-noimg { width: 160px; aspect-ratio: 16 / 9; flex: none; object-fit: cover; border-radius: 10px; background: var(--border); }
.article-row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.article-row-body strong { font-size: 1rem; line-height: 1.35; }
.article-row-video { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-row-meta { font-size: .8rem; color: var(--muted); }
.btn-link.primary { padding: 9px 16px; font-size: .9rem; background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }

/* Thématique (outil) */
.theme-field { margin-top: 14px; display: grid; grid-template-columns: 10rem minmax(0, 320px); justify-content: start; gap: 6px 12px; align-items: center; }
.theme-field label { margin: 0; }
.count-field select { width: auto; min-width: 140px; }
.theme-field .hint { grid-column: 1 / -1; margin: 0; }
.theme-field .hint a { color: var(--accent); }
select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; width: 100%; }
select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.theme-chip { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--accent); border: 1px solid currentColor; }

/* Liste des thématiques (Mes prompts) */
.theme-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.theme-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.theme-item .info { min-width: 0; flex: 1; overflow: hidden; }
.theme-item strong { display: block; }
.theme-item .excerpt { display: block; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-item .row-actions { display: flex; gap: 6px; flex: none; }
.theme-item .row-actions button { padding: 6px 10px; font-size: .82rem; }
.theme-editor { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.section-head h2 { margin: 0; }

/* Bandeau « prompts d'un client » (admin) */
.admin-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-color: var(--accent); }
.admin-banner p { margin: 0; }
.admin-banner a { color: var(--accent); font-weight: 600; }

.admin-note { padding: 12px 14px; border-radius: 8px; background: var(--bg); border: 1px dashed var(--border); margin-bottom: 14px; }
.admin-note p { margin: 0; }
.admin-note a { color: var(--accent); font-weight: 600; }
#orphans h3 { margin: 8px 0 4px; }
#orphans .hint { margin: 0 0 10px; }
.theme-item .row-actions select { width: auto; padding: 6px 8px; font-size: .82rem; }

/* Pages de compte */
.narrow { max-width: 440px; }
.page-title { margin: 0 0 4px; font-size: 1.35rem; }
.lead { color: var(--muted); margin: 0 0 20px; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.stack label:first-child { margin-top: 0; }
.stack .actions { margin-top: 16px; }
.success { color: var(--ok); margin: 10px 0 0; }
textarea.prompt { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.5; min-height: 420px; }
.fixed-rules { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 0; color: var(--muted); }
.meta-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.pill.on { color: var(--ok); border-color: currentColor; }
.pill.off { color: var(--bad); border-color: currentColor; }
.table-wrap { overflow-x: auto; }
table.clients { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.clients th, table.clients td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.clients th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
table.clients td.tabnum { font-variant-numeric: tabular-nums; text-align: right; padding-right: 24px; }
table.clients .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
table.clients .row-actions button { padding: 6px 10px; font-size: .82rem; }
button.danger { color: var(--bad); }
a.btn-link { display: inline-flex; align-items: center; padding: 6px 10px; font-size: .82rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; background: var(--surface); }
a.btn-link:hover { border-color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.empty { color: var(--muted); padding: 12px 0; }
dialog { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 20px; width: min(420px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(0 0 0 / .35); }
dialog h3 { margin: 0 0 12px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card h2 { margin: 0 0 14px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.card h3 { margin: 0 0 10px; font-size: 1rem; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: .85rem; }

.row { display: flex; gap: 8px; }
input, textarea { flex: 1; width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { resize: vertical; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }

button { font: inherit; cursor: pointer; border-radius: 8px; padding: 10px 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); white-space: nowrap; }
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
button.primary:hover { filter: brightness(1.08); }
button:disabled { opacity: .6; cursor: wait; }
button.block { width: 100%; }

.error { color: var(--bad); margin: 10px 0 0; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .85rem; margin: 6px 0 0; }
.hint.ok { color: var(--ok); } .hint.bad { color: var(--bad); }

.preview { display: flex; gap: 16px; align-items: flex-start; }
.preview img { width: 280px; max-width: 45%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--border); }
.preview h3 { margin: 0 0 4px; font-size: 1.1rem; }
.preview p { margin: 0 0 8px; }
.preview a { color: var(--accent); }

.options { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.options summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

.loading { display: flex; gap: 18px; align-items: center; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { margin: 4px 0 0; padding-left: 20px; color: var(--muted); }
.progress li.active { color: var(--text); font-weight: 600; }
.progress li.done { color: var(--ok); }
.progress li.done::after { content: " ✔"; }
.loading-body { min-width: 0; }

@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.photo-replace { margin: -6px 0 20px; font-family: Manrope, system-ui, sans-serif; }
.photo-replace input { min-width: 0; padding: 7px 10px; font-size: .88rem; }
.photo-replace button { padding: 7px 12px; font-size: .88rem; }
.article-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.article-tabs button { flex: 1 1 200px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 260px; min-width: 0; text-align: left; padding: 8px 12px; }
.article-tabs button .tab-num { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.article-tabs button .tab-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.article-tabs button[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.article-tabs button[aria-current="true"] .tab-num { color: var(--accent); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.side .card { margin-bottom: 16px; }
.article { padding: 28px 32px; font-family: Georgia, "Times New Roman", serif; }
.article .kicker { font-family: system-ui, sans-serif; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.article h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 16px; }
.article figure { margin: 0 0 18px; }
.article figure img { width: 100%; height: auto; border-radius: 6px; display: block; }
.article figcaption { font-family: system-ui, sans-serif; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.article .chapo { font-weight: 700; font-size: 1.1rem; }
.article h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.article h3 { font-size: 1.1rem; margin: 20px 0 6px; }
.article p { font-size: 1.05rem; margin: 0 0 14px; }
.article a { color: var(--accent); }

.checks, .quotes, #vigilance { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.consignes { margin: 0; padding-left: 18px; font-size: .88rem; display: grid; gap: 6px; }
.checks li, .quotes li, #vigilance li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.checks li:last-child, .quotes li:last-child, #vigilance li:last-child { border-bottom: 0; }
.ok::before { content: "✔ "; color: var(--ok); }
.warn::before { content: "⚠ "; color: var(--warn); }
.bad::before { content: "✖ "; color: var(--bad); }
.quotes q { font-style: italic; }
.quotes .who { color: var(--muted); display: block; font-size: .82rem; }
#vigilance li::before { content: "• "; color: var(--warn); }

.seo { margin: 0; font-size: .88rem; }
.seo dt { font-weight: 600; margin-top: 10px; display: flex; justify-content: space-between; }
.seo dt:first-child { margin-top: 0; }
.seo dd { margin: 2px 0 0; word-break: break-word; }
.count { font-weight: 400; font-size: .78rem; }
.count.ok::before, .count.warn::before { content: ""; }
.count.ok { color: var(--ok); } .count.warn { color: var(--warn); }

.export { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.export button { padding: 8px 10px; font-size: .88rem; white-space: normal; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-size: .9rem; }

@media (max-width: 1360px) {
  .topbar:has(.account:not([hidden])) .tagline { display: none; }
}
@media (max-width: 1340px) {
  .topbar:has(.account:not([hidden])) .brand-text { display: none; }
}
@media (max-width: 1100px) {
  .who { display: none; }
  .user-chip { padding-left: 12px; }
}
@media (max-width: 900px) {
  .tagline { display: none; }
  .latest-list.videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .latest-list.shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .result-grid { grid-template-columns: 1fr; }
  .article { padding: 20px; }
  .article h1 { font-size: 1.5rem; }
}
@media (max-width: 560px) {
  .topbar .wrap { gap: 14px; }
  .logo { height: 36px; }
  .brand-text { padding-left: 14px; }
  .tagline { display: none; }
  .topbar .wrap { flex-wrap: wrap; }
  .account { margin-left: 0; width: 100%; gap: 10px; }
  .nav-links { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-link { padding: 7px 11px; }
  .nav-link:not([aria-current]) span { display: none; }
  .user-chip { border-left: 0; padding-left: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .theme-field { grid-template-columns: 1fr; }
  .topbar .hero { padding-top: 20px; padding-bottom: 100px; }
  .search-card { padding: 16px; border-radius: 18px; }
  .search-bar { flex-wrap: wrap; padding: 10px 10px 10px 16px; }
  .search-bar button { flex: 1 1 100%; justify-content: center; }
  .search-options .hint { text-align: left; }
  .article-row { align-items: flex-start; gap: 12px; }
  .article-row img, .article-noimg { width: 104px; }
  .latest-list.videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-list.shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-item { flex-direction: column; align-items: stretch; }
  .row { flex-direction: column; }
  .preview { flex-direction: column; }
  .preview img { width: 100%; max-width: 100%; }
  .actions button { flex: 1; }
}
