/* ============================================================
   微信国旗渐变头像 · 渐变工作台设计系统 v3
   浅色默认；深色由导航 #themeToggle 写入的 <html data-theme> 覆盖变量。
   所有浮层与卡片都在 .gq-page 作用域内，直接消费页面级变量。
   ============================================================ */
.gq-page, .gq-toast {
    --gq-bg: #f5f7f9;
    --gq-surface: #ffffff;
    --gq-surface-2: #f0f3f6;
    --gq-ink: #1b2026;
    --gq-ink-2: #4b5560;
    --gq-muted: #8a949f;
    --gq-line: #e1e6eb;
    --gq-line-2: rgba(27, 32, 38, .09);
    --gq-red: #d8331f;
    --gq-red-deep: #a91d0c;
    --gq-red-soft: #fdece8;
    --gq-gold: #c99a2e;
    --gq-shadow: 0 18px 48px rgba(24, 32, 40, .09);
    --gq-shadow-s: 0 6px 18px rgba(24, 32, 40, .06);
    --gq-stage-bg: radial-gradient(circle at 50% 34%, #ffffff 0%, #eef1f4 64%, #e2e7eb 100%);
}
:root[data-theme="dark"] .gq-page,
:root[data-theme="dark"] .gq-toast {
    --gq-bg: #0f1317;
    --gq-surface: #181e24;
    --gq-surface-2: #1f262d;
    --gq-ink: #eef2f6;
    --gq-ink-2: #c2ccd5;
    --gq-muted: #8b98a4;
    --gq-line: #2a333c;
    --gq-line-2: rgba(238, 242, 246, .10);
    --gq-red: #ff7a63;
    --gq-red-deep: #e04a30;
    --gq-red-soft: #35201c;
    --gq-gold: #e8c46a;
    --gq-shadow: 0 18px 48px rgba(0, 0, 0, .44);
    --gq-shadow-s: 0 6px 18px rgba(0, 0, 0, .3);
    --gq-stage-bg: radial-gradient(circle at 50% 34%, #252d34 0%, #171d22 64%, #11161a 100%);
}
.gq-page {
    background: var(--gq-bg);
    color: var(--gq-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    padding: 0 0 60px;
}
.gq-page * { box-sizing: border-box; }
.gq-page > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.gq-page > .gq-toast { max-width: none; }
.gq-page .gq-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gq-page code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: .92em;
    background: var(--gq-surface-2);
    border: 1px solid var(--gq-line);
    border-radius: 4px;
    padding: 1px 5px;
}
.gq-page .tsk-crumb-bar { background: transparent; padding: 18px 22px 0; }
.gq-page .tsk-crumb-bar-in { max-width: 1180px; margin: 0 auto; }
.gq-page .tsk-crumb { font-size: 13px; color: var(--gq-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gq-page .tsk-crumb a { color: var(--gq-red); text-decoration: none; }
.gq-page .tsk-crumb-cur { color: var(--gq-ink-2); }
.gq-page .tsk-crumb-sep { color: var(--gq-muted); }

/* ---------- 通用按钮 ---------- */
.gq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid transparent; border-radius: 9px;
    padding: 10px 18px; font: inherit; font-weight: 700; font-size: 14px;
    text-decoration: none; cursor: pointer; transition: .18s ease;
}
.gq-btn-red { background: linear-gradient(100deg, var(--gq-red), var(--gq-red-deep)); color: #fff; box-shadow: 0 8px 20px rgba(168, 29, 12, .24); }
.gq-btn-red:hover { transform: translateY(-1px); }
:root[data-theme="dark"] .gq-btn-red { color: #1a1210; }
.gq-btn-ghost { background: transparent; color: var(--gq-ink); border-color: var(--gq-line); }
.gq-btn-ghost:hover { background: var(--gq-surface-2); }
.gq-btn-ink { background: var(--gq-surface); color: var(--gq-ink); border-color: var(--gq-line); font-size: 13.2px; padding: 8px 14px; }
.gq-btn-ink:hover { border-color: var(--gq-red); color: var(--gq-red); }

/* ---------- 首屏 ---------- */
.gq-hero {
    margin-top: 18px;
    display: grid; grid-template-columns: 1.08fr .92fr; gap: 26px;
    background: var(--gq-surface); border: 1px solid var(--gq-line);
    border-radius: 20px; padding: 34px; box-shadow: var(--gq-shadow);
}
.gq-kicker { margin: 0 0 14px; font: 700 11.5px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .16em; color: var(--gq-red); }
.gq-h1 { margin: 0 0 14px; font-size: clamp(29px, 3.2vw, 43px); font-weight: 800; line-height: 1.26; letter-spacing: -.025em; }
.gq-h1-em { color: var(--gq-red); }
.gq-lede { margin: 0 0 20px; font-size: 15.2px; line-height: 1.95; color: var(--gq-ink-2); max-width: 54ch; }
.gq-lede b { color: var(--gq-ink); border-bottom: 2px solid var(--gq-red-soft); }
.gq-hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.gq-hero-facts > div { background: var(--gq-surface-2); border: 1px solid var(--gq-line); border-radius: 11px; padding: 10px 14px; display: flex; flex-direction: column; }
.gq-hero-facts b { font: 700 26px/1.2 Georgia, "Songti SC", serif; font-variant-numeric: tabular-nums; color: var(--gq-red); }
.gq-hero-facts span { font-size: 11.6px; color: var(--gq-muted); }
.gq-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.gq-notice {
    margin: 0; padding: 11px 14px; border: 1px solid var(--gq-line);
    border-left: 4px solid var(--gq-red); border-radius: 9px;
    background: var(--gq-red-soft); font-size: 12.8px; color: var(--gq-ink-2);
}
.gq-notice b { color: var(--gq-red); }
.gq-notice-tag { display: inline-block; margin-right: 8px; font-size: 11.5px; font-weight: 700; color: var(--gq-red); }

/* ---------- 微信聊天列表模拟 ---------- */
.gq-wx {
    --wx-bg: #ededed; --wx-row: #ffffff; --wx-line: #d9d9d9;
    --wx-ink: #191919; --wx-sub: #9a9a9a; --wx-green: #07c160; --wx-top: #ededed;
    background: var(--wx-bg); border: 1px solid var(--gq-line); border-radius: 16px;
    overflow: hidden; box-shadow: var(--gq-shadow-s); display: flex; flex-direction: column;
}
:root[data-theme="dark"] .gq-wx {
    --wx-bg: #171717; --wx-row: #222222; --wx-line: #303030;
    --wx-ink: #e8e8e8; --wx-sub: #8a8a8a; --wx-top: #1c1c1c;
}
.gq-wx-top {
    height: 50px; flex: none; display: flex; align-items: center; gap: 10px;
    padding: 0 16px; background: var(--wx-top); border-bottom: 1px solid var(--wx-line);
    color: var(--wx-ink);
}
.gq-wx-top b { font-size: 16px; font-weight: 600; margin: 0 auto 0 0; }
.gq-wx-back { font-size: 26px; line-height: 1; }
.gq-wx-more { font-size: 20px; letter-spacing: 2px; }
.gq-wx-list { flex: 1; background: var(--wx-row); }
.gq-wx-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--wx-line); min-height: 74px; }
.gq-wx-row:last-child { border-bottom: 0; }
.gq-wx-row.is-me { background: var(--wx-row); }
.gq-wx-row canvas, .gq-wx-ava {
    width: 48px; height: 48px; flex: none; border-radius: 5px; object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 700; color: #fff;
}
.gq-wx-ava.is-a { background: #6b8fb5; }
.gq-wx-ava.is-b { background: #8c9b62; }
.gq-wx-ava.is-c { background: #b58a68; }
.gq-wx-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.gq-wx-txt b { font-size: 14.5px; font-weight: 600; color: var(--wx-ink); }
.gq-wx-txt em { font-style: normal; font-size: 12px; color: var(--wx-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-wx-row time { font-size: 10.5px; color: var(--wx-sub); flex: none; align-self: flex-start; }
.gq-wx-tab { height: 46px; flex: none; display: flex; align-items: center; background: var(--wx-top); border-top: 1px solid var(--wx-line); }
.gq-wx-tab span { flex: 1; text-align: center; font-size: 11px; color: var(--wx-sub); }
.gq-wx-tab span:first-child { color: var(--wx-green); font-weight: 700; }
.gq-wx-cap { margin: 0; padding: 8px 12px; background: var(--gq-surface-2); color: var(--gq-muted); font-size: 11px; text-align: center; }

/* ---------- 工作台 ---------- */
.gq-studio { margin-top: 34px; padding: 0 22px; }
.gq-studio-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.gq-studio-kicker { margin: 0 0 6px; font: 700 11.5px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .16em; color: var(--gq-red); }
.gq-studio-title { margin: 0; font-size: 24px; font-weight: 800; }
.gq-studio-sub { margin: 6px 0 0; font-size: 13.2px; color: var(--gq-muted); max-width: 70ch; }
.gq-studio-badges { margin-left: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.gq-studio-badges span { border: 1px solid var(--gq-line); border-radius: 20px; padding: 4px 11px; font-size: 11.5px; color: var(--gq-muted); background: var(--gq-surface); }
.gq-studio-badges span:first-child { color: var(--gq-red); border-color: rgba(216, 51, 31, .35); }
.gq-tpl-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.gq-tpl {
    min-width: 0; padding: 9px 9px 11px; border: 1.5px solid var(--gq-line); border-radius: 14px;
    background: var(--gq-surface); color: var(--gq-ink); cursor: pointer; text-align: center;
    transition: .18s ease;
}
.gq-tpl:hover { border-color: var(--gq-red); transform: translateY(-1px); }
.gq-tpl canvas { width: 100%; height: auto; display: block; border-radius: 50%; background: var(--gq-surface-2); margin-bottom: 8px; }
.gq-tpl-name { display: block; font-size: 13.5px; font-weight: 700; }
.gq-tpl-sub { display: block; font-size: 11px; color: var(--gq-muted); }
.gq-tpl.is-on { border-color: var(--gq-red); box-shadow: 0 0 0 3px var(--gq-red-soft), var(--gq-shadow-s); }
.gq-tpl.is-on .gq-tpl-name { color: var(--gq-red); }
.gq-workbench { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 16px; align-items: start; }
.gq-console, .gq-preview { min-width: 0; border: 1px solid var(--gq-line); border-radius: 18px; background: var(--gq-surface); box-shadow: var(--gq-shadow-s); }
.gq-console { padding: 6px 20px 14px; }
.gq-step { padding: 16px 0; border-bottom: 1px dashed var(--gq-line-2); }
.gq-step:last-child { border-bottom: 0; }
.gq-step-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.gq-step-no { font: 700 11px ui-monospace, Consolas, monospace; color: #fff; background: var(--gq-red); border-radius: 6px; padding: 4px 6px; }
:root[data-theme="dark"] .gq-step-no { color: #1a1210; }
.gq-step-hd h3 { margin: 0; font-size: 15px; font-weight: 800; }
.gq-step-hint { margin-left: auto; font-size: 11.5px; color: var(--gq-muted); }

/* 上传区 */
.gq-drop { display: block; border: 1.5px dashed var(--gq-line); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; background: var(--gq-surface-2); transition: .18s ease; }
.gq-drop:hover, .gq-drop.is-drag { border-color: var(--gq-red); background: var(--gq-red-soft); }
.gq-drop-in { display: flex; flex-direction: column; gap: 2px; }
.gq-drop-plus { font-size: 25px; line-height: 1; color: var(--gq-red); }
.gq-drop-in b { font-size: 13.5px; }
.gq-drop-in small { font-size: 11.5px; color: var(--gq-muted); }
.gq-drop-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.gq-mini { border: 1px solid var(--gq-line); background: var(--gq-surface); color: var(--gq-ink-2); border-radius: 6px; padding: 5px 10px; font: inherit; font-size: 11.8px; cursor: pointer; }
.gq-mini:hover { border-color: var(--gq-red); color: var(--gq-red); }
.gq-photo-meta { margin-left: auto; font-size: 11.5px; color: var(--gq-muted); word-break: break-all; }

/* 控件 */
.gq-ctrl { display: grid; gap: 9px; }
.gq-row { display: grid; grid-template-columns: 74px 1fr 46px; gap: 9px; align-items: center; font-size: 12.5px; color: var(--gq-ink-2); }
.gq-row > span:first-child { white-space: nowrap; }
.gq-row input[type="range"] { width: 100%; accent-color: var(--gq-red); }
.gq-row output { font: 700 12px ui-monospace, Consolas, monospace; text-align: right; color: var(--gq-red); font-variant-numeric: tabular-nums; }
.gq-row-wrap { grid-template-columns: 74px 1fr; }
.gq-select { width: 100%; grid-column: 2 / -1; height: 36px; padding: 0 9px; border: 1px solid var(--gq-line); border-radius: 8px; background: var(--gq-surface); color: var(--gq-ink); font: inherit; font-size: 13px; }
.gq-toggles { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.gq-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.2px; color: var(--gq-ink-2); cursor: pointer; }
.gq-check input { accent-color: var(--gq-red); }
.gq-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gq-preset { text-align: left; border: 1px solid var(--gq-line); border-radius: 10px; padding: 9px 11px; background: var(--gq-surface-2); color: var(--gq-ink); cursor: pointer; transition: .18s ease; }
.gq-preset:hover, .gq-preset.is-on { border-color: var(--gq-red); background: var(--gq-red-soft); }
.gq-preset b { display: block; font-size: 13px; }
.gq-preset small { display: block; font-size: 10.8px; color: var(--gq-muted); }

/* ---------- 预览台 ---------- */
.gq-preview { padding: 18px 20px 20px; }
.gq-preview-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gq-seg { display: inline-flex; border: 1px solid var(--gq-line); border-radius: 8px; overflow: hidden; background: var(--gq-surface-2); }
.gq-seg button { border: 0; background: transparent; color: var(--gq-ink-2); padding: 7px 13px; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.gq-seg button:hover { color: var(--gq-red); }
.gq-seg button.is-on { background: var(--gq-red); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .gq-seg button.is-on { color: #1a1210; }
.gq-compare { margin-left: auto; border: 1px solid var(--gq-line); border-radius: 8px; background: var(--gq-surface); color: var(--gq-ink-2); padding: 7px 12px; font: inherit; font-size: 12.3px; cursor: pointer; }
.gq-compare:hover, .gq-compare.is-on { border-color: var(--gq-red); color: var(--gq-red); }
.gq-preview-note { margin: 9px 0 12px; font-size: 12.3px; color: var(--gq-muted); }
.gq-stage { background: var(--gq-stage-bg); border: 1px solid var(--gq-line); border-radius: 14px; padding: 20px; display: flex; align-items: center; justify-content: center; }
.gq-stage-in { position: relative; width: min(100%, 370px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 14px 34px rgba(20, 28, 36, .18); }
.gq-stage-in.is-square { border-radius: 12px; }
.gq-stage-in canvas { width: 100%; height: 100%; display: block; }
.gq-original-tag { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(20, 24, 28, .72); color: #fff; border-radius: 20px; padding: 3px 12px; font-size: 11.5px; }
.gq-original-tag[hidden] { display: none !important; }
.gq-stage-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 9px; font-size: 11.3px; color: var(--gq-muted); }
.gq-sim { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 13px; border: 1px solid var(--gq-line); border-radius: 11px; background: var(--gq-surface-2); }
.gq-sim-label { font-size: 11.8px; color: var(--gq-muted); }
.gq-sim-ava { width: 46px; height: 46px; flex: none; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--gq-line); }
.gq-sim-ava.is-small { width: 26px; height: 26px; }
.gq-sim-chat { display: flex; flex-direction: column; min-width: 0; }
.gq-sim-chat b { font-size: 12.8px; }
.gq-sim-chat em { font-style: normal; font-size: 11.3px; color: var(--gq-muted); }
.gq-export-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.gq-export-main { flex: 1; min-width: 130px; }
.gq-export-note { margin: 9px 0 0; font-size: 11.6px; color: var(--gq-muted); }

/* ---------- 制法 / 步骤 / FAQ ---------- */
.gq-spec, .gq-how, .gq-faq { margin-top: 34px; padding: 0 22px; }
.gq-sec-title { margin: 0 0 15px; font-size: 22px; font-weight: 800; }
.gq-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.gq-spec-canvas-wrap { border: 1px solid var(--gq-line); border-radius: 14px; background: var(--gq-surface); padding: 12px; }
.gq-spec-canvas-wrap canvas { width: 100%; height: auto; display: block; border-radius: 8px; }
.gq-spec-cap { margin: 8px 0 0; font-size: 11.3px; color: var(--gq-muted); text-align: center; }
.gq-spec-text { background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: 14px; padding: 18px 20px; }
.gq-spec-text > p { margin: 0 0 10px; font-size: 13.4px; color: var(--gq-ink-2); }
.gq-spec-list { margin: 0 0 12px; padding-left: 20px; font-size: 13px; color: var(--gq-ink-2); }
.gq-spec-list li { margin-bottom: 4px; }
.gq-spec-law { font-size: 12.3px !important; color: var(--gq-muted) !important; }
.gq-ai-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gq-ai-out { margin-top: 11px; border: 1px dashed var(--gq-line); border-radius: 10px; padding: 12px 14px; background: var(--gq-surface-2); font-size: 12.8px; color: var(--gq-ink-2); white-space: pre-wrap; }
.gq-ai-out[hidden] { display: none !important; }
.gq-ai-src { display: inline-block; margin-bottom: 6px; border-radius: 5px; padding: 2px 8px; font-size: 11px; font-weight: 700; background: var(--gq-red); color: #fff; }
.gq-ai-src.local { background: var(--gq-gold); color: #2a2000; }
.gq-ai-note { margin-top: 8px; font-size: 11.5px; color: var(--gq-muted); }
.gq-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gq-how-steps { display: grid; gap: 10px; }
.gq-how-steps article { display: flex; gap: 12px; align-items: flex-start; background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: 12px; padding: 13px 15px; }
.gq-how-steps span { font: 700 13px ui-monospace, Consolas, monospace; color: #fff; background: var(--gq-red); border-radius: 6px; padding: 4px 7px; flex: none; }
:root[data-theme="dark"] .gq-how-steps span { color: #1a1210; }
.gq-how-steps b { font-size: 14px; }
.gq-how-steps p { margin: 3px 0 0; font-size: 12.6px; color: var(--gq-ink-2); }
.gq-how-table { background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: 12px; overflow: hidden; }
.gq-how-table table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.gq-how-table th, .gq-how-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--gq-line-2); }
.gq-how-table th { background: var(--gq-surface-2); font-size: 11.8px; color: var(--gq-muted); }
.gq-how-table tr:last-child td { border-bottom: 0; }
.gq-how-table td:first-child { font-weight: 700; white-space: nowrap; }
.gq-how-table td:last-child { color: var(--gq-red); font-weight: 700; white-space: nowrap; }
.gq-faq-list { display: grid; gap: 9px; }
.gq-faq-item { background: var(--gq-surface); border: 1px solid var(--gq-line); border-radius: 11px; padding: 11px 16px; }
.gq-faq-item summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.gq-faq-item p { margin: 7px 0 2px; font-size: 12.9px; color: var(--gq-ink-2); line-height: 1.85; }

/* ---------- 浮层 ---------- */
.gq-toast {
    position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 9500;
    background: var(--gq-ink); color: var(--gq-surface);
    padding: 10px 20px; border-radius: 9px; font-size: 13.4px; box-shadow: var(--gq-shadow);
}
.gq-toast[hidden] { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
    .gq-hero, .gq-workbench, .gq-spec-grid, .gq-how-grid { grid-template-columns: 1fr; }
    .gq-tpl-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gq-studio-badges { margin-left: 0; }
}
@media (max-width: 760px) {
    .gq-page { font-size: 14.5px; }
    .gq-hero { padding: 22px 17px; gap: 18px; }
    .gq-h1 { font-size: 28px; }
    .gq-studio, .gq-spec, .gq-how, .gq-faq { padding: 0 14px; }
    .gq-page .tsk-crumb-bar { padding: 14px 14px 0; }
    .gq-page .tsk-crumb { font-size: 12px; }
    .gq-tpl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gq-console, .gq-preview { padding: 14px; }
    .gq-hero-facts { grid-template-columns: repeat(3, 1fr); }
    .gq-hero-facts b { font-size: 20px; }
    .gq-row, .gq-row-wrap { grid-template-columns: 66px 1fr 42px; }
    .gq-row-wrap { grid-template-columns: 66px 1fr; }
    .gq-presets { grid-template-columns: 1fr 1fr; }
    .gq-export-bar { flex-direction: column; align-items: stretch; }
    .gq-export-bar .gq-seg { justify-content: center; }
    .gq-wx-row { min-height: 66px; padding: 9px 12px; }
    .gq-how-table td:first-child, .gq-how-table td:last-child { white-space: normal; }
}
/* 全站共享的「相关推荐」卡片在 390px 下会被长标题撑宽，页面级兜底（不影响其它页面） */
@media (max-width: 640px) {
    .tool-rec-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .tool-rec-item { min-width: 0 !important; width: 100% !important; box-sizing: border-box; }
    .tool-rec-body, .tool-rec-body b, .tool-rec-body small { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .tskb-card { overflow-x: auto; }
    .tskb-legend { min-width: 0; width: 100%; table-layout: fixed; }
    .tskb-legend th, .tskb-legend td { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
    .tskb-tabs { flex-wrap: wrap; }
}
@media print {
    .gq-hero-cta, .gq-console, .gq-export-bar, .gq-toast, .gq-ai-row, .gq-compare { display: none !important; }
    .gq-page { background: #fff; }
    .gq-hero, .gq-preview, .gq-console { box-shadow: none; }
}
