/* Original FM palette and panels are defined in index.html. */
.screen{height:auto;min-height:calc(100vh - 82px)}.home{min-height:700px}.center{grid-template-rows:auto auto 1fr}.hero{height:auto;min-height:220px}.hero h2,.hero p{max-width:100%}.hero .big{display:none}.panel{min-width:0}.body{padding:12px}.measured-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.measured-summary b{display:block;font-size:32px;color:var(--pu2);font-family:var(--serif)}.measured-summary small{color:var(--tx2)}
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px}.toolbar input{flex:1;min-width:140px}.measured-input,input,select{background:#0d0f18;color:var(--tx);border:1px solid var(--line2);border-radius:4px;padding:8px;font:inherit}input:focus,select:focus{outline:2px solid var(--pu)}.help{color:var(--tx2);line-height:1.7;font-size:13px;padding:10px}.pending{color:var(--tx3)}.evidence{font-size:12px;color:var(--tx2);line-height:1.7;overflow-wrap:anywhere}.evidence a,a{color:var(--pu2)}.metric{padding:12px;border-bottom:1px solid var(--line)}.metric strong{font-size:24px}.metric .head{display:flex;justify-content:space-between;gap:8px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.metric details{margin-top:8px;color:var(--tx2);font-size:11px}.metric summary{cursor:pointer}.sim-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.sim-grid h3{font-size:15px}.sim-grid .panel{padding:12px}.sim-grid .state{font-size:20px;color:var(--pu2);margin:10px 0}.measured-columns{display:grid;grid-template-columns:35% 1fr;gap:10px}.measured-columns .sq td{white-space:normal}.sq tr[data-keyword],.sq tr[data-profile],.sq tr[data-keyword-label]{cursor:pointer}.sq tr:hover td{background:#152036}.measured-tag{display:inline-block;border-radius:4px;background:#141a2a;padding:3px 6px;margin:2px;font-size:10px}.alert{padding:12px;border-left:3px solid var(--amber);background:#2a2341;color:#e0cee8;line-height:1.7}.ok{color:var(--green)}.bad{color:var(--red)}.empty-state{padding:30px 18px;color:var(--tx2);line-height:1.9}.empty-state b{display:block;color:var(--tx);font-size:15px;margin-bottom:8px}.scroll-panel{max-height:650px;overflow:auto}.graph-svg{width:100%;height:440px}.graph-svg text{fill:var(--tx);font-size:12px}.graph-svg circle{fill:#152847;stroke:var(--pu2);stroke-width:2}.graph-svg line{stroke:#4a5f8f;stroke-width:1.5}.graph-svg g{cursor:pointer}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-grid label{display:grid;gap:5px;margin:10px 0}.settings-grid .panel{padding:12px}.topic-grid{display:flex;gap:6px;flex-wrap:wrap}.topic-grid label{display:flex;align-items:center;border:1px solid var(--line);padding:4px 7px;margin:2px;border-radius:4px}.topic-grid input{accent-color:var(--pu)}.news-item{padding:12px;border-bottom:1px solid var(--line)}.news-item a{font-size:12px;text-decoration:none}.news-item small{display:block;color:var(--tx3);margin-top:5px}#notice{position:fixed;bottom:20px;right:20px;z-index:1100;background:#101a2e;border:1px solid var(--pu);padding:14px;max-width:480px;border-radius:6px;line-height:1.7}button:disabled{opacity:.5;cursor:wait}#authDialog{background:var(--panel);color:var(--tx);border:1px solid var(--pu);border-radius:8px;width:400px}#authDialog::backdrop{background:#0d0c21ed}#authForm{padding:16px;display:grid;gap:12px}#authForm label{display:grid;gap:6px}#authForm [hidden],[hidden]{display:none!important}#authError{color:var(--red)}.sq th{white-space:normal}.sq td{overflow-wrap:anywhere}.measure-link{background:none;color:var(--pu2);text-decoration:underline}.settings-grid p{line-height:1.8}.mainmenu{gap:14px}.hdr{height:65px}.favbar{margin-top:0}.ph{font-size:12px}.profile-head{display:flex;align-items:center;gap:15px;padding:16px}.profile-head h2{margin:0 0 6px}.profile-head .photo{width:60px;height:60px}.profile-head .pending{margin-left:auto}.tabs-row{display:flex;gap:8px;margin:8px 0}.compare-table td{vertical-align:top}.metric-number{color:var(--pu2)}
@media(max-width:800px){.app{min-width:760px}.metrics,.sim-grid{grid-template-columns:repeat(2,1fr)}.home{grid-template-columns:28% 1fr}.home>.right{grid-column:1/3;display:grid;grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:1fr}.hright .date{display:none}.mainmenu{gap:8px}.mainmenu button{font-size:12px}}

.crest{background:none;box-shadow:none;width:auto;height:auto;margin:0}.crest .logo{height:22px;width:auto;display:block}
.hs{max-width:860px;margin:0 auto;padding:12vh 20px 60px;transition:padding .2s,max-width .2s}
/* Results need real width for the 39/61 두 컬럼 대시보드 (rankit_final_bidirectional_dashboard_spec.md
   §2) — .analysis-layout's own 1480px max-width was previously being clamped down to .hs's 860px
   (a width meant for the narrow marketing hero, not a dashboard) since #homeResult sits inside .hs. */
.hs.has-result{padding-top:36px;max-width:1480px}
.hs-top{display:flex;flex-direction:column;align-items:center;gap:14px;margin-bottom:26px}.hs-top .logo{height:64px;width:auto}.hs-top h1{margin:0;font-size:26px;letter-spacing:-.02em;font-family:var(--serif)}.hs.has-result .hs-top{flex-direction:row;justify-content:center;margin-bottom:16px}.hs.has-result .hs-top .logo{height:30px}.hs.has-result .hs-top h1{font-size:18px}
/* #homeForm{...} used to force a pill-shaped input here from the pre-LUMEN search bar; it's gone now —
   the LUMEN search bar (.lumen .signup / .signup-row) sets its own matching input+button radius, and this
   ID-selector rule (higher specificity than those class rules) was silently overriding just the input's
   corners back to a full pill while the button stayed square. */
.hs-kind{display:flex;gap:10px;align-items:center;justify-content:center;min-height:34px;margin:12px 0 4px;color:var(--tx2);font-size:12px}.hs-kind b,.hs-head b{border-radius:999px;padding:3px 10px;font-size:12px;color:#fff}.k-blog{background:#3b6fe0}.k-keyword{background:#2a9d8f}
.hs-result{margin-top:22px}.hs-head{font-size:18px;margin-bottom:14px;display:flex;gap:10px;align-items:center}
.hs-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:14px}.hs-metric{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:12px}.hs-metric small{display:block;color:var(--tx2)}.hs-metric strong{display:block;font-size:26px;margin:6px 0;color:var(--pu2);font-family:var(--serif)}.hs-metric em{display:block;font-style:normal;font-size:10px;color:var(--tx3);line-height:1.6}
.hs-block{background:var(--panel);border:1px solid var(--line);border-radius:8px;margin:24px 0;padding:24px}.hs-block h3{margin:0 0 12px;font-size:16px}.hs-block h3 small{display:block;color:var(--tx3);font-weight:400;font-size:13px;margin:4px 0 0}.hs-trend{width:100%;height:100px}.hs-rel{cursor:pointer;border:0;color:var(--tx)}.hs-rel:hover{background:var(--pu3)}
.hs-trend-range{display:flex;gap:6px;margin-bottom:12px}
.hs .metrics{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}

.hs-top .logo{height:72px}.hs.has-result .hs-top .logo{height:34px}
.hs-trendwrap{position:relative}.hs-trend{width:100%;height:auto;display:block}.hs-trend .grid{stroke:var(--line);stroke-width:1}.hs-trend .axis{fill:var(--tx3);font-size:11px}.hs-trend .cross{stroke:var(--pu2);stroke-dasharray:3 3}.hs-trend .dot{fill:var(--pu2)}
.hs-tip{position:absolute;pointer-events:none;background:#101a2e;border:1px solid var(--pu);border-radius:4px;padding:6px 9px;font-size:12px;line-height:1.5;white-space:nowrap;z-index:5}
.hs-stats{display:flex;gap:14px;flex-wrap:wrap;color:var(--tx2);font-size:11px;margin-top:8px}
.hs-serp{max-height:560px;overflow:auto}
/* 네이버 통합검색 상위 콘텐츠: "전체 보기" 클릭이나 내부 스크롤 없이 전부 그냥 펼쳐서 보여준다. */
.hs-serp.hs-serp-full{max-height:none;overflow:visible}
.hs-row{display:flex;gap:10px;align-items:center;padding:8px 4px;border-bottom:1px solid var(--line)}.hs-row .rk{flex:none;width:26px;text-align:right;color:var(--tx3);font-variant-numeric:tabular-nums}.hs-row .tt{flex:1;min-width:0}.hs-row .tt a{text-decoration:none;font-size:13px}.hs-row .tt small{display:block;color:var(--tx3);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hs-sep{height:6px;background:#0c0e17}
/* "내 능력치와 비교" 결과 상자: 누른 그 줄 바로 아래·다음 줄 바로 위에 끼워 넣는다(목록 끝 공용
   자리가 아님) — 목록 흐름 안에 있다는 걸 보여주려 좌우로 살짝 들여쓰고 위아래로 여백을 둔다. */
.hs-row-compare{margin:2px 0 10px;padding-left:18px;border-left:2px solid var(--pu)}
.hs-row-compare .hs-block{margin:0}
/* the "능력치 비교" trigger on a blog row. Was solid blue + a pill shape, which at 40+ repeats down the
   fully-expanded 통합검색 list read as louder than the titles themselves — softened to blue-soft/ghost
   (rankit_visual_qa_ui_fix_spec.md P0-07) while keeping a real ≥32px/92px click target. */
.hs-compare-btn{flex:none;min-height:32px;min-width:92px;padding:0 12px;border:1px solid rgba(77,124,255,.28);border-radius:7px;background:rgba(77,124,255,.12);color:#7ea0ff;font-size:12px;font-weight:600;white-space:nowrap;transition:filter .15s,background-color .15s,transform .1s}
.hs-compare-btn:hover{background:rgba(77,124,255,.2)}.hs-compare-btn:active{transform:scale(.96)}
@media(max-width:480px){.hs-compare-btn{min-width:0;padding:0 10px;font-size:11px}}
/* 비교가 끝나면 버튼 자체가 판정 결과(진행가능/도전/불가능)로 바뀐다 — Rankit 적합도와 같은
   초록/주황/빨강 색 언어를 그대로 재사용해 목록을 훑는 것만으로 판정이 보이게 한다. */
.hs-compare-btn.v-go{border-color:var(--dg-green-border);background:var(--dg-green-soft);color:var(--dg-green-bright)}
.hs-compare-btn.v-go:hover{background:rgba(3,199,90,.22)}
.hs-compare-btn.v-mid{border-color:var(--dg-orange-border);background:var(--dg-orange-soft);color:var(--dg-orange)}
.hs-compare-btn.v-mid:hover{background:rgba(245,166,35,.22)}
.hs-compare-btn.v-low{border-color:var(--dg-red-border);background:var(--dg-red-soft);color:var(--dg-red)}
.hs-compare-btn.v-low:hover{background:rgba(226,90,90,.22)}
/* which color is whose blog on a two-blog radar — without this the blue/orange split reads as decoration */
.hs-radar-legend{display:flex;gap:16px;justify-content:center;margin:2px 0 10px;font-size:12px;color:var(--tx2)}
.hs-radar-legend .lg{display:flex;align-items:center;gap:6px}.hs-radar-legend .lg::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--lc)}
/* 줄별 능력치 비교 상자 맨 위 판정 한 줄 — Rankit 적합도와 같은 초록/주황/빨강 언어 */
.cmp-verdict{font-size:15px;font-weight:700;margin:0 0 14px}
.cmp-verdict small{display:block;font-weight:400;font-size:12px;color:var(--tx3);margin-top:4px}
.cmp-verdict.v-go{color:var(--dg-green-bright)}.cmp-verdict.v-mid{color:var(--dg-orange)}.cmp-verdict.v-low{color:var(--dg-red)}
.hs-type{flex:none;font-size:10.5px;line-height:1.5;border-radius:999px;padding:3px 9px;color:#fff;background:#555;white-space:nowrap;text-align:center;min-width:52px}.t-blog{background:#03a94d}.t-inf{background:#6c63ff}.t-cafe{background:#e8a317;color:#222}.t-news{background:#3b82f6}.t-clip{background:#e25ab8}.t-web{background:#6b7280}.t-place{background:#14b8a6}.t-kin{background:#f97316}
.hs-graph{width:100%;height:auto}.hs-graph line{stroke:#4a5f8f}.hs-graph text{fill:var(--tx);font-size:12px;pointer-events:none}.hs-graph .gn{cursor:pointer}.hs-graph .gn circle{fill:#152847;stroke:var(--pu2);stroke-width:2}.hs-graph .gn:hover circle{fill:var(--pu3)}.hs-graph .gc circle{fill:#3b6fe0;stroke:#bcd4ff;stroke-width:2}.hs-graph .gc text{font-weight:700}
.hs-graph-more{display:flex;justify-content:flex-end;margin-top:8px}
.fm-head{display:flex;align-items:center;gap:16px;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:14px;margin-bottom:10px;flex-wrap:wrap}.fm-head>div{min-width:0}.fm-head h2{margin:0 0 4px;font-size:22px;font-family:var(--serif)}
/* long blog URLs were free to push the card wider instead of just truncating in place (P0-06/P1-20) */
.fm-head>div>a{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.fm-head .photo{width:64px;height:64px;border-radius:8px;background:linear-gradient(135deg,#3b6fe0,#bcd4ff);display:grid;place-items:center;font-weight:800;font-size:20px;color:#fff}.fm-kv{margin-left:auto;display:flex;gap:20px}.fm-kv small{display:block;color:var(--tx3);font-size:11px}.fm-kv b{font-size:16px}
.fm-sheet{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:14px}.fm-title{font-size:12px;color:var(--pu2);margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid var(--line)}
.fm-row{display:flex;justify-content:space-between;align-items:center;padding:13px 9px;min-height:44px;font-size:14px;border-bottom:1px solid #151a29;cursor:help}.fm-row b{font-size:15px;font-variant-numeric:tabular-nums;min-width:24px;text-align:right}
.fm-row.hi{background:#243a3a}.fm-row.hi b{color:#39d17a}.fm-row.mid b{color:#f5a623}.fm-row.lo b{color:var(--tx)}.fm-row.na b,.fm-row.na span{color:var(--tx3)}
.fm-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--tx3);margin:8px 2px}.fm-legend .hi{color:#39d17a}.fm-legend .mid{color:#f5a623}
.hs-details{margin:8px 0;color:var(--tx2);font-size:12px}.hs-details summary{cursor:pointer}.hs-why{padding:8px 0;border-bottom:1px solid var(--line);line-height:1.6}
.hs-weekly{display:flex;gap:8px;align-items:flex-end;height:90px}.hs-weekly div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.hs-weekly i{display:block;width:100%;background:var(--pu);border-radius:3px 3px 0 0;min-height:2px}.hs-weekly small{color:var(--tx2);font-size:11px}
.hs-diag{border-color:var(--pu)}.hs-diag form{display:flex;gap:8px;align-items:stretch}.hs-diag input{flex:1;min-width:0}.hs-diag-out{margin-top:14px}
/* 판단/비교요약/Radar/능력치상세가 전부 한 카드에 쌓여 무거웠던 걸, subsection 사이에 구분선을 둬서
   눈으로 구간을 나눠 읽을 수 있게 한다(rankit_visual_qa_ui_fix_spec.md P1-15). */
.hs-sub{font-size:15px;font-weight:700;margin:0;padding-top:18px;margin-top:18px;border-top:1px solid rgba(255,255,255,.06)}
.hs-sub:first-child{padding-top:0;margin-top:0;border-top:none}
/* base .tab (20px/10px) is meant for dense admin filter chips elsewhere in the app — the analysis
   dashboard's own secondary actions ("다른 블로그로 다시 확인", "지식그래프에서 전체 확인하기") need a
   real ≥36px target, scoped so it doesn't change .tab everywhere else (rankit_visual_qa_ui_fix_spec.md P0-04). */
.hs-diag .tab,.hs-diag-out .tab,.hs-graph-more .tab{min-height:36px;height:auto;padding:0 14px;font-size:12.5px}
/* .go is built for a short label + "»" (fixed 134px/30px, space-between) — every real CTA text in the
   analysis dashboard ("로그인하고 확인하기", "내 블로그 분석하기" etc.) is longer than that, and a
   Primary button in this flow needs a real ≥44px target anyway (rankit_visual_qa_ui_fix_spec.md P0-04). */
.hs-diag form button.go,.panel-empty form button.go,#compareMyBlogForm button.go{width:auto;height:auto;min-height:44px;padding:0 22px;font-size:14px;white-space:nowrap;justify-content:center;flex:none}
.hs-diag form button.go::after,.panel-empty form button.go::after,#compareMyBlogForm button.go::after{content:none}
@media(max-width:800px){.fm-sheet{grid-template-columns:1fr}.fm-kv{margin-left:0}}

.fm-row span em{display:block;font-style:normal;font-size:10px;color:var(--tx3);margin-top:2px}
.hs-verdict{border:1px solid var(--line);border-radius:6px;background:var(--panel);padding:14px 16px;margin:10px 0}.hs-verdict small{color:var(--tx3)}.hs-verdict strong{display:block;font-size:22px;margin:4px 0;font-family:var(--serif)}.hs-verdict .sc{color:var(--tx2);font-size:12px}.hs-verdict p{margin:8px 0;line-height:1.7}.hs-verdict ul{margin:6px 0 6px 18px;padding:0;line-height:1.8;font-size:12px}.hs-verdict h4{margin:12px 0 4px;font-size:12px;color:var(--pu2)}.hs-verdict .crit{display:block;margin-top:10px;line-height:1.7}
.v-go strong{color:#39d17a}.v-in strong{color:#7fb0ff}.v-mid strong{color:#f5a623}.v-low strong{color:#e25a5a}
.hs-diag .sq tr.me td{background:#243a3a}.hs-diag .sq td,.hs-diag .sq th{white-space:normal}.hs-sub small{color:var(--tx3);font-weight:400;margin-left:6px}
.hs-progress{display:flex;align-items:center;gap:10px;margin-top:12px;color:var(--tx2);font-size:12px}.hs-progress i{width:16px;height:16px;border:2px solid var(--line2);border-top-color:var(--pu2);border-radius:50%;animation:hsspin .8s linear infinite}@keyframes hsspin{to{transform:rotate(360deg)}}
/* Loading indicator: the animated orb logo (.lumen-orb, defined in lumen.css), reused everywhere the
   app waits on a real fetch instead of a generic spinner. Two sizes: inline (next to a progress line)
   and block (a panel/result area waiting on its own). */
.hs-progress .lumen-orb{width:22px;height:22px;flex:none}
.hs-progress .lumen-orb .circle{height:5px;width:5px;margin:-2.5px 0 0 -2.5px}
.orb-wait{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:34px 16px;color:var(--tx2);font-size:12px;text-align:center}
.orb-wait .lumen-orb{width:40px;height:40px}
.orb-wait-global{position:fixed;right:18px;bottom:18px;z-index:1200;display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line2);border-radius:999px;padding:8px 16px 8px 10px;box-shadow:0 10px 28px rgba(0,0,0,.4);font-size:12px;color:var(--tx2)}
.orb-wait-global .lumen-orb{width:26px;height:26px}
.orb-wait-global .lumen-orb .circle{height:6px;width:6px;margin:-3px 0 0 -3px}

.hs-grade{display:flex;align-items:center;gap:10px;border:1px solid var(--gc,var(--line));border-radius:8px;padding:6px 14px;background:rgba(255,255,255,.03)}.hs-grade b{font-size:34px;line-height:1;color:var(--gc,var(--tx3));min-width:28px;text-align:center;font-family:var(--serif)}.hs-grade small{display:block;color:var(--tx3);font-size:10px}.hs-grade strong{font-size:14px}.hs-grade.na b{color:var(--tx3)}
.hs-vrow{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.hs-duo{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}.hs-duo.one{grid-template-columns:minmax(300px,1fr) 1.3fr;align-items:start}.hs-duo .hs-block{margin:0}.hs-duo>*{min-width:0}
.hs-radar{width:100%;max-width:380px;height:auto;display:block;margin:0 auto}.hs-radar .rg{fill:none;stroke:var(--line);stroke-width:1}.hs-radar .ra{stroke:var(--line);stroke-width:1}.hs-radar .rl{fill:var(--tx);font-size:11.5px}.hs-radar .rv{fill:var(--tx3);font-size:10.5px}
.hs-chip{border-radius:999px;padding:2px 10px;font-size:11px;color:#fff;background:#555;white-space:nowrap}.hs-chip.v-go{background:#1f9d5c}.hs-chip.v-mid{background:#c98a13}.hs-chip.v-low{background:#c04444}
.gaps{margin:4px 0 0 18px;padding:0;line-height:1.9;font-size:13px}.gaps em{color:var(--tx3);font-style:normal;font-size:11px}
@media(max-width:800px){.hs-duo,.hs-duo.one{grid-template-columns:1fr}}

.hs-warn{color:#f5a623;font-size:11px;cursor:help}

.hs-radarwrap{position:relative;max-width:380px;margin:0 auto}.hs-radar .rhl{stroke:var(--pu2);stroke-width:2}.hs-radarwrap .hs-tip{line-height:1.6;min-width:130px;background:#101a2e}
.fm-title small{display:block;color:var(--tx3);font-size:10px;font-weight:400;margin-top:2px}.fm-col.c-fixed .fm-title{color:#39d17a}.fm-col.c-kw .fm-title{color:#f5a623}.fm-col.c-na .fm-title{color:var(--tx3)}

.hs-graph line{stroke:#44577f}.hs-graph .gn rect{fill:#152847;stroke:var(--pu2);stroke-width:1.5}.hs-graph .gn:hover rect{fill:var(--pu3)}.hs-graph .gn text{font-size:12px}.hs-graph .gc rect{fill:#3b6fe0;stroke:#bcd4ff;stroke-width:2}.hs-graph .gc text{font-size:14px;font-weight:700}

.fm-row .kw,.hs-tip .kw{font-style:normal;color:var(--tx3);font-size:10px;margin-left:5px;font-weight:400}

.hs-radarbox{max-width:380px;margin:0 auto}
.hs-read{min-height:74px;margin-top:6px;padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:#0c0e17;font-size:13px;line-height:1.7}
.hs-read[data-empty="1"]{color:var(--tx3);font-size:11px;display:flex;align-items:center;justify-content:center;text-align:center}
.hs-read small{color:var(--tx2)}.hs-read .kw{color:var(--tx3);font-style:normal;font-size:10px}
.tm{display:flex;flex-direction:column;gap:12px}
.tm-intro p{margin:0;font-size:16px;color:var(--tx);line-height:1.6}
.tm-pickrow{display:flex;gap:16px;flex-wrap:wrap}
.tm-pick{display:flex;flex-direction:column;gap:6px;flex:1;min-width:220px}
.tm-pick>span{font-size:13px;color:var(--tx2)}
.tm-pick select{height:44px;font-size:15px;padding:0 12px;border-radius:6px}
.tm-pick select:disabled{opacity:.45;cursor:not-allowed}
.tm-current{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding:4px 2px}
.tm-current b{font-size:18px;color:var(--tx)}
.tm-current span{color:var(--pu2);font-size:14px}
.tm-toolbar input:disabled,.tm-toolbar button:disabled{opacity:.4;cursor:not-allowed}
.tm-steps{display:flex;align-items:center;gap:10px;padding:16px 4px;color:var(--tx2);font-size:14px;flex-wrap:wrap}
.tm-steps b{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--pu3);color:#fff;font-size:12px;margin-right:6px}
.tm-steps i{color:var(--tx3);font-style:normal}
.tm-status{color:var(--tx2);font-size:13px;margin-left:auto}
.tm-stage{position:relative;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#07080d}
.tm-stage canvas{display:block;width:100%;height:480px;cursor:grab}
.tm-stage-empty canvas{height:220px}
.tm-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--tx2);font-size:14px;line-height:1.8;padding:20px;pointer-events:none;background:rgba(18,17,42,.35)}
.tm-usage{color:var(--tx2);font-size:13px}
.tm-usage summary{cursor:pointer;color:var(--tx);padding:4px 0}
.tm-usage p{margin:8px 2px 0;line-height:1.8}
.tm-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--tx2)}
.tm-sw{display:inline-block;width:16px;height:2px;margin-right:5px;vertical-align:middle}.tm-sw.y{width:9px;height:9px;border-radius:50%;background:#f5c542}
.tm-sw.m{background:#3b6fe0}.tm-sw.t{background:#4a5f8f}
@media(max-width:800px){.tm-pickrow{flex-direction:column}}

/* ===== 키워드 스카우트 목록 / 상세 패널: 좌우 기준선을 맞추고, 밀도를 낮추고, 숫자는 오른쪽 정렬 ===== */
.measured-columns{gap:20px}
.measured-columns>.panel{padding:0}
.measured-columns>.panel>.ph{padding:18px 24px 0;font-size:18px}
.measured-columns>.panel>*:not(.ph){padding:0 24px 24px}
.kw-sortbar{padding-top:0}
.kw-sortbar select{height:32px;font-size:13px}
.kw-table th.num,.kw-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.kw-table .kw-star{width:30px;text-align:center}
.kw-table .kw-star button{font-size:14px}
.kw-scroll{max-height:520px;overflow-y:auto;border:1px solid var(--line);border-radius:6px}
.kw-scroll table{margin:0}
.kw-table thead th{position:sticky;top:0;background:var(--panel);z-index:1}
.kw-table tr[data-keyword]{cursor:pointer}
.kw-table tr.sel td{background:#1c2c4d}
.kw-table tr:hover td{background:#152036}
.kw-table tr.sel:hover td{background:#22315a}
.kw-dethead{padding:16px 20px 0}
.kw-detkv{display:flex;gap:24px;margin-top:6px}
.kw-detkv small{display:block;color:var(--tx2);font-size:13px}
.kw-detkv b{font-size:20px;color:var(--pu2);font-variant-numeric:tabular-nums}
/* .measured-columns (키워드 스카우트 + 수요·관계·경쟁 분석) never had a mobile rule before — its 35%/1fr grid
   just silently squeezed both panels down to unreadable slivers instead of overflowing. Below ~860px the
   keyword list (the thing you can actually search and scroll) takes priority and the detail panel follows
   under it, full width. */
@media(max-width:860px){
  .measured-columns{grid-template-columns:1fr}
  .kw-scroll{max-height:60vh}
}
#tmTip{position:absolute;z-index:5}
.hs-teaser{margin-top:26px;padding-top:22px;border-top:1px dashed var(--line2)}
.hs-teaser-loading{display:flex;justify-content:center;padding:30px 0}
.hs-teaser-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;color:var(--tx2);font-size:12px}
.hs-teaser-head span{flex:1;min-width:180px}
.hs-live{background:linear-gradient(90deg,#2557d6,#7fb0ff);color:#fff;border-radius:999px;padding:3px 10px;font-size:11px;flex:none;animation:hslivepulse 2.4s ease-in-out infinite}
@keyframes hslivepulse{0%,100%{opacity:1}50%{opacity:.7}}
.hs-teaser-more{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--tx2);display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ===== restructured header: logo top-left, nav top-right, floats over content then solidifies on scroll =====
   .hdr itself is legacy and permanently [hidden] now (the site-wide chrome is .lumen-chrome nav, always
   position:fixed, at every width) — but .app still needs top padding to clear whichever fixed nav is
   actually showing, so that padding is kept live and tuned to .lumen-chrome nav's real height instead. */
.app{padding-top:96px}
.hdr{position:fixed;top:0;left:0;right:calc(100% - min(100%,1180px));width:min(100%,1180px);z-index:500;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:16px 24px;height:auto;
  background:linear-gradient(to bottom,rgba(5,6,10,.88) 0%,rgba(5,6,10,.55) 75%,transparent 100%);transition:background .3s,padding .3s,backdrop-filter .3s}
.hdr.scrolled{background:rgba(6,7,11,.94);backdrop-filter:blur(14px);box-shadow:0 1px 0 var(--line);padding-bottom:10px}
.hdr-brand{display:flex;align-items:center;gap:10px;flex:none;padding-top:2px}
.hdr-brand #back{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.05);border:1px solid var(--line2);color:var(--tx2);font-size:14px;flex:none}
.hdr-brand .crest{margin:0}
.hdr-word{font-family:var(--serif);font-weight:700;font-size:17px;letter-spacing:.03em;color:var(--tx);white-space:nowrap}
.hdr-word em{font-style:normal;color:var(--pu2)}
.hdr-right{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.mainmenu{display:flex;gap:22px;margin:2px 0 0}
.mainmenu button{font-size:11px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:var(--tx2);display:block;padding:2px 0;position:relative}
.mainmenu button::after{display:none}
.mainmenu button:hover{color:var(--tx)}
.mainmenu button.on{color:var(--tx)}
.mainmenu button.on::after{content:"";display:block;position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--pu2)}
.hdr-sub{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.submenu{display:flex;gap:12px;margin:0;font-size:10px}
.submenu button{padding:0;color:var(--tx3)}
.submenu button.on{color:var(--pu2);text-decoration:underline;text-underline-offset:3px}
.favbar{display:flex;gap:12px;padding:0;margin:0;height:auto;align-items:center;font-size:10px;color:var(--tx3)}
.favbar button{color:var(--tx3);font-size:10px}
.hright{display:flex;gap:6px;align-items:center;margin:0}
.hright .date{display:none}
.hright .go{height:24px;width:auto;padding:0 14px;font-size:10px;box-shadow:none;border-radius:999px}
.hright .go::after{display:none}
.hright .tools{height:22px;background:rgba(255,255,255,.04)}
.hright .tools button{height:20px;font-size:10px}
@media(max-width:1100px){.hdr{position:static;background:none!important;backdrop-filter:none!important;padding:10px 14px;flex-wrap:wrap}.hdr-right{align-items:flex-start}}
@media(max-width:900px){.app{padding-top:88px}}

/* ===== LUMEN-reference hero: glow orb, rotating rings, rising particles, eyebrow, signup-style search box ===== */
.hs-hero{position:relative;text-align:center;padding:64px 20px 20px;overflow:hidden;transition:padding .3s,min-height .3s}
.hs.has-result .hs-hero{padding:18px 20px 4px}
.hs-glow{position:absolute;top:38%;left:50%;transform:translate(-50%,-50%);width:560px;height:560px;border-radius:50%;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at center,rgba(59,111,224,.22) 0%,rgba(59,111,224,.07) 35%,transparent 70%);animation:hsGlowPulse 4s ease-in-out infinite alternate}
@keyframes hsGlowPulse{from{opacity:.7;transform:translate(-50%,-50%) scale(1)}to{opacity:1;transform:translate(-50%,-50%) scale(1.08)}}
.hs-ring,.hs-ring2{position:absolute;top:52%;left:50%;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;z-index:0}
.hs-ring{width:280px;height:280px;border:1px solid rgba(127,176,255,.14);animation:hsRingSpin 30s linear infinite}
.hs-ring::after{content:"";position:absolute;top:-3px;left:50%;width:6px;height:6px;border-radius:50%;background:var(--pu2);transform:translateX(-50%)}
.hs-ring2{width:420px;height:420px;border:1px dashed rgba(127,176,255,.07);animation:hsRingSpin 60s linear infinite reverse}
@keyframes hsRingSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.hs.has-result .hs-glow,.hs.has-result .hs-ring,.hs.has-result .hs-ring2,.hs.has-result .hs-eyebrow{display:none}
.hs-particles{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
.hs-particle{position:absolute;bottom:0;width:2px;height:2px;border-radius:50%;background:var(--pu2);opacity:0;animation:hsParticleRise linear infinite}
@keyframes hsParticleRise{0%{opacity:0;transform:translateY(0) scale(0)}10%{opacity:.6;transform:translateY(-10px) scale(1)}90%{opacity:.3}100%{opacity:0;transform:translateY(-220px) scale(.5)}}
.hs-eyebrow{position:relative;z-index:2;display:inline-flex;align-items:center;gap:12px;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--pu2);margin-bottom:18px}
.hs-eyebrow::before,.hs-eyebrow::after{content:"";width:24px;height:1px;background:var(--pu3)}
.hs-signup{position:relative;z-index:2;max-width:460px;margin:0 auto}
.hs-signup-row{display:flex;width:100%}
.hs-signup-row input{flex:1;padding:15px 20px;background:rgba(255,255,255,.03);border:1px solid var(--line2);border-right:none;border-radius:6px 0 0 6px;color:var(--tx);font:inherit;font-size:14px;outline:none;transition:border-color .2s,background .2s}
.hs-signup-row input::placeholder{color:var(--tx3)}
.hs-signup-row input:focus{border-color:var(--pu2);background:rgba(59,111,224,.06)}
.hs-signup-row button{padding:0 28px;background:linear-gradient(90deg,#2557d6,#4f8dff);border:1px solid #4f8dff;color:#fff;font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;border-radius:0 6px 6px 0;white-space:nowrap;transition:filter .2s}
.hs-signup-row button:hover{filter:brightness(1.12)}
@media(max-width:560px){.hs-signup-row{flex-direction:column;gap:8px}.hs-signup-row input{border-right:1px solid var(--line2);border-radius:6px}.hs-signup-row button{border-radius:6px;padding:12px}}

/* ===== below-the-fold skeleton sections, ported structurally from the LUMEN reference ===== */
.hs-marquee{overflow:hidden;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;background:var(--panel);margin-top:30px}
.hs-marquee-inner{display:flex;white-space:nowrap;animation:hsMarquee 26s linear infinite;width:max-content}
.hs-marquee-inner span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--tx2);padding:0 26px}
.hs-marquee-inner .hs-mq-dot{color:var(--pu2);padding:0}
@keyframes hsMarquee{to{transform:translateX(-50%)}}
.hs-section{max-width:980px;margin:0 auto;padding:70px 20px}
.hs-section-alt{background:var(--panel2)}
.hs-section-label{font-size:10px;letter-spacing:.28em;text-transform:uppercase;color:var(--pu2);margin-bottom:14px;display:flex;align-items:center;gap:10px}
.hs-section-label::before{content:"";width:18px;height:1px;background:var(--pu3)}
.hs-section-title{font-family:var(--serif);font-size:clamp(24px,4vw,38px);font-weight:400;line-height:1.25;letter-spacing:-.01em;color:var(--tx);margin:0 0 34px}
.hs-section-title em{font-style:italic;color:var(--pu2)}
.hs-feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;border:1px solid var(--line);background:var(--line)}
.hs-feat{padding:24px 22px;background:var(--panel);transition:background .3s}
.hs-feat:hover{background:var(--panel2)}
.hs-feat-tag{display:inline-block;padding:3px 9px;border:1px solid var(--line2);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--tx3);margin-bottom:14px;border-radius:2px}
.hs-feat h3{font-family:var(--serif);font-size:16px;margin:0 0 8px;color:var(--tx)}
.hs-feat p{font-size:12px;line-height:1.7;color:var(--tx2);margin:0}
.hs-timeline{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line)}
.hs-step{padding:24px 20px;border-right:1px solid var(--line);position:relative}
.hs-step:last-child{border-right:none}
.hs-step-num{font-size:10px;letter-spacing:.16em;color:var(--pu2);font-family:var(--mono);margin-bottom:14px}
.hs-step h3{font-family:var(--serif);font-size:14px;margin:0 0 8px;color:var(--tx)}
.hs-step p{font-size:11.5px;line-height:1.7;color:var(--tx2);margin:0}
.hs-step-line{position:absolute;top:0;left:0;right:0;height:2px;overflow:hidden}
.hs-step-line::after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,var(--pu2),transparent);animation:hsStepSlide 3s linear infinite}
.hs-step:nth-child(2) .hs-step-line::after{animation-delay:-.75s}.hs-step:nth-child(3) .hs-step-line::after{animation-delay:-1.5s}.hs-step:nth-child(4) .hs-step-line::after{animation-delay:-2.25s}
@keyframes hsStepSlide{to{left:100%}}
.hs-specs{border:1px solid var(--line)}
.hs-spec-row{display:flex;justify-content:space-between;padding:13px 18px;border-bottom:1px solid var(--line);font-size:12px}
.hs-spec-row:last-child{border-bottom:none}
.hs-spec-key{color:var(--tx3)}.hs-spec-val{color:var(--tx)}
.hs-footer{border-top:1px solid var(--line);padding:34px 20px;text-align:center;background:var(--panel2)}
.hs-footer-logo{font-family:var(--serif);font-weight:700;font-size:16px;color:var(--tx)}
.hs-footer-logo em{font-style:normal;color:var(--pu2)}
.hs-footer p{font-size:10.5px;color:var(--tx3);margin-top:6px}
@media(max-width:800px){.hs-feat-grid{grid-template-columns:1fr}.hs-timeline{grid-template-columns:1fr 1fr}.hs-step:nth-child(2){border-right:none}.hs-step{border-bottom:1px solid var(--line)}}

/* ===== fix: the LUMEN block must go full-bleed, not sit inside the old centered-search-box width cap;
   and the app's real header must not show/bleed through behind the LUMEN nav on this page. ===== */
.hs:has(.lumen){max-width:none;padding:0;margin:0}
.hs:has(.lumen) .hs-top,.hs:has(.lumen) #homeKind{display:none}
.app:has(.lumen) .hdr{display:none}
/* the rest of the app is a fixed-width desktop data tool (.app{min-width:1180px} in index.html), but the
   LUMEN home page must be a normal responsive page — drop that floor only while it's showing, otherwise
   every hero/section below it is forced onto an 1180px canvas and clips/scrolls sideways on phones. */
.app:has(.lumen){min-width:0}

/* the search-result panel below the LUMEN hero keeps its own readable width, same as before the hero
   went full-bleed — matches the reference's own .container proportions used further down the page. */
/* This 1140px cap was silently squeezing the whole 39/61 dashboard (.analysis-layout, itself capped at
   1480px) down to ~1090px of actual content width no matter what .analysis-layout's own max-width said —
   a parent's constrained box always wins over a child's wider max-width. Matches .hs.has-result's 1480px
   below it now (rankit_visual_qa_ui_fix_spec.md P0-01/P0-02: dashboard was "화면 폭의 절반 이하만 사용"). */
#homeResult{max-width:1480px;margin:0 auto;padding:0 24px 60px}

/* ===== result-first: once a result is loading/shown, the marketing hero collapses to a slim search
   bar (title + form only) instead of a full landing screen the user has to scroll past. ===== */
/* .hs itself is intentionally unconstrained (.hs:has(.lumen){max-width:none}) so the marketing hero's
   full-bleed background can go edge to edge — but that means .hero here was the ONE piece with no
   max-width of its own, so the collapsed search bar (inside .hero) kept spanning the full viewport
   while #homeResult below it was correctly capped at 1480px. Capping+centering .hero the same way in
   this collapsed state is what actually fixes the misaligned left/right edges (P0-02). */
.hs.has-result .lumen .hero{min-height:0;padding:20px 24px 18px;max-width:1480px;margin-inline:auto;box-sizing:border-box}
.hs.has-result .lumen .hero .particles,
.hs.has-result .lumen .hero-glow,
.hs.has-result .lumen .hero-ring,
.hs.has-result .lumen .hero-ring-2,
.hs.has-result .lumen .eyebrow,
.hs.has-result .lumen .hero h1,
.hs.has-result .lumen .hero p,
.hs.has-result .lumen .email-note,
.hs.has-result .lumen .scroll-hint{display:none}
/* 820px kept the search bar much narrower than the dashboard below it once a result is showing —
   the two need the same outer edges (rankit_visual_qa_ui_fix_spec.md P0-02), so this now just fills
   the same available width .hero's own padding leaves, instead of centering as its own smaller island. */
.hs.has-result .lumen .signup{max-width:none;gap:0}

/* ===== 결과 요약(1단계): 제목 · 수집 시각 · 핵심 수치 · 판단 · 다음 행동을 한 화면에 ===== */
.hs-summary{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:24px 28px;margin:24px 0 32px}
.hs-sumhead{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.hs-sumhead h1{margin:0;font-size:22px;font-family:var(--serif);font-weight:700;letter-spacing:-.01em}
.hs-updated{color:var(--tx3);font-size:13px;white-space:nowrap}
.hs-sumbody{display:flex;gap:28px;align-items:stretch;flex-wrap:wrap}
.hs-sumnum{flex:none;min-width:160px}
.hs-sumnum small{display:block;color:var(--tx2);font-size:13px;margin-bottom:6px}
.hs-sumnum strong{display:block;font-size:40px;line-height:1;font-family:var(--serif);color:var(--pu2);font-variant-numeric:tabular-nums}
.hs-sumjudge{flex:1;min-width:240px;border-left:1px solid var(--line);padding-left:24px}
.hs-sumjudge b{display:block;font-size:17px;margin-bottom:4px}
.hs-sumjudge p{margin:0;color:var(--tx2);font-size:14px;line-height:1.65}
.hs-sumjudge.v-go b{color:#39d17a}.hs-sumjudge.v-in b{color:#7fb0ff}.hs-sumjudge.v-mid b{color:#f5a623}.hs-sumjudge.v-low b{color:#e25a5a}.hs-sumjudge.v-unk b{color:var(--tx)}
.hs-sumactions{margin-top:18px;display:flex;gap:10px}
@media(max-width:700px){.hs-sumjudge{border-left:none;padding-left:0;border-top:1px solid var(--line);padding-top:14px}}

/* ===== 왜 그런 판단인지(2단계): 숫자 6개를 같은 크기로 나열하지 않는다 ===== */
.hs-metrics2{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}
.hs-metric-hero{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:24px 28px}
.hs-metric-hero>small{display:block;color:var(--tx2);font-size:14px;margin-bottom:8px}
.hs-metric-hero>strong{display:block;font-size:44px;line-height:1;font-family:var(--serif);color:var(--pu2);font-variant-numeric:tabular-nums}
.hs-metric-hero>strong.pending{color:var(--tx3);font-size:28px}
.hs-metric-sub{display:flex;gap:24px;margin-top:14px;font-size:14px;color:var(--tx2)}
.hs-metric-sub b{color:var(--tx);font-variant-numeric:tabular-nums;font-weight:600}
.hs-metric-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hs-metric-card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:20px 22px}
.hs-metric-card small{display:block;color:var(--tx2);font-size:14px;margin-bottom:8px}
.hs-metric-card strong{display:block;font-size:26px;font-family:var(--serif);color:var(--tx);font-variant-numeric:tabular-nums}
.hs-metric-card strong.pending{color:var(--tx3);font-size:18px}
.hs-metric-card em{display:block;font-style:normal;font-size:12px;color:var(--tx3);line-height:1.6;margin-top:8px}
.hs-metric-ratio{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:18px 22px;display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.hs-metric-ratio small{color:var(--tx2);font-size:14px}
.hs-metric-ratio strong{font-size:22px;font-family:var(--serif);color:var(--tx);font-variant-numeric:tabular-nums}
.hs-metric-ratio strong.pending{color:var(--tx3);font-size:16px}
.hs-metric-ratio p{flex:1;min-width:220px;margin:0;color:var(--tx3);font-size:13px;line-height:1.6}
.hs-sources{color:var(--tx3);font-size:12px}
.hs-sources summary{cursor:pointer;color:var(--tx2);padding:4px 0}
.hs-src-row{display:flex;gap:8px;padding:4px 0;border-bottom:1px solid var(--line)}
.hs-src-row b{color:var(--tx2);font-weight:500;flex:none;min-width:120px}
@media(max-width:700px){.hs-metric-pair{grid-template-columns:1fr}}

/* ===== 표: 텍스트 왼쪽 · 숫자 오른쪽, 본문 최소 13~14px, 행 높이 44~52px 기준 ===== */
.sq{font-size:14px}
.sq th,.sq td{padding:12px 10px;vertical-align:middle}
.sq th.num,.sq td.num{text-align:right;font-variant-numeric:tabular-nums}
.hs-rtable td small{display:block;color:var(--tx3);font-size:12px;margin-top:2px}
.hs-chip-why{display:block;color:var(--tx3);font-size:11px;margin-top:3px;font-style:normal}
.hs-gap-table td,.hs-gap-table th{padding:10px}
.hs-gapneg{color:#e25a5a;font-weight:600}
.hs-expand{margin-top:10px}

/* ===== 진단 상단(3단계): 판정 문장이 먼저, 퍼센트는 보조 정보 ===== */
.hs-vhead{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.hs-vhead>span{color:var(--tx2);font-size:13px}
.hs-vhead .tab{margin-left:auto}
.hs-verdict .hs-vrow>div{flex:1;min-width:220px}
.hs-verdict .sc{display:inline-block;margin-top:6px;color:var(--tx3);font-size:12px}

/* ===== 상세 근거(5단계): 기본은 접혀 있고, 펼치면 원본 데이터를 그대로 보여준다 ===== */
.hs-detail{margin:28px 0}
.hs-detail>summary{cursor:pointer;padding:14px 18px;background:var(--panel);border:1px solid var(--line);border-radius:8px;font-size:15px;font-weight:600;color:var(--tx)}
.hs-detail>summary small{display:block;font-weight:400;color:var(--tx3);font-size:12px;margin-top:4px}
.hs-detail[open]>summary{border-radius:8px 8px 0 0;border-bottom:none}
.hs-detail>*:not(summary){margin-left:0}
/* SEO fallback content in #main before JS hydrates it (see fm-shell.html comment). Only shown briefly
   for real visitors, but always present for non-JS crawlers - keep it plainly readable, never hidden. */
.seo-intro{max-width:720px;margin:0 auto;padding:64px 24px;color:var(--tx);line-height:1.7}
.seo-intro h1{font-size:26px;line-height:1.4;margin:0 0 16px}
.seo-intro p{color:var(--tx2);font-size:15px;margin:0 0 20px}
.seo-intro ul{margin:0;padding-left:20px;color:var(--tx2);font-size:14px}
.seo-intro li{margin:8px 0}
.seo-intro b{color:var(--tx)}
/* real blog profile photo (from RSS <channel><image>) filling the same avatar box the initials used to */
.fm-head .photo img,.profile-head .photo img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}

/* ============================================================================
   Dashboard redesign (rankit_dashboard_redesign_final.md) — semantic color
   tokens + high-density grid layout for the keyword/blog result screens.
   Existing radar()/abilitySheet()/gradeBadge() markup and colors are untouched
   by design; this section only adds the surrounding dashboard chrome.
   ============================================================================ */
:root{
  --dg-cyan:#4dd2ff; --dg-cyan-soft:rgba(77,210,255,.12);
  --dg-purple:#a78bfa; --dg-purple-soft:rgba(167,139,250,.12);
  --dg-orange:#f5a623; --dg-orange-soft:rgba(245,166,35,.12); --dg-orange-border:rgba(245,166,35,.30);
  --dg-red:#e25a5a; --dg-red-soft:rgba(226,90,90,.12); --dg-red-border:rgba(226,90,90,.30);
  --dg-green:#03c75a; --dg-green-bright:#3be38b; --dg-green-soft:rgba(3,199,90,.12); --dg-green-border:rgba(3,199,90,.28);
  --dg-blue-soft:rgba(59,111,224,.14); --dg-blue-border:rgba(59,111,224,.35);
  --dg-card:#11161f; --dg-card2:#151b26; --dg-hover:#18202c;
}

/* ---------- Dashboard header: title row (name + icon-only star) on top, grade/freshness/refresh
   as its own row below — two clear rows instead of scattered pieces sharing one wrapping flex line. ---------- */
.kw-dash-head{display:flex;flex-direction:column;gap:14px;background:var(--dg-card);border:1px solid var(--line);border-radius:12px;padding:22px 26px;margin:20px 0 16px}
.kw-dash-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.kw-dash-top h1{margin:0;font-size:26px;font-family:var(--serif);font-weight:700;letter-spacing:-.01em;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.kw-dash-head .hs-grade{padding:5px 12px}
.kw-dash-head .hs-grade b{font-size:26px}
.kw-dash-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.kw-dash-fresh{color:var(--tx3);font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:6px}
.kw-dash-fresh b{color:var(--dg-green-bright);font-weight:600}
.kw-star{border:1px solid var(--line2);border-radius:8px;min-height:36px;padding:0 14px;font-size:12.5px;color:var(--tx2);background:transparent;cursor:pointer;white-space:nowrap}
.kw-star:hover{border-color:var(--dg-orange);color:var(--dg-orange)}
.kw-star.on{border-color:var(--dg-orange);color:var(--dg-orange);background:var(--dg-orange-soft)}
/* 관심 키워드: 한글 라벨 없이 아이콘만, 제목 행 오른쪽 끝에 원형 버튼으로 고정 */
.kw-icon-btn{flex:none;width:36px;height:36px;border-radius:50%;border:1px solid var(--line2);background:transparent;color:var(--tx2);font-size:16px;line-height:1;display:grid;place-items:center;cursor:pointer}
.kw-icon-btn:hover{border-color:var(--dg-orange);color:var(--dg-orange)}
.kw-icon-btn.on{border-color:var(--dg-orange);color:var(--dg-orange);background:var(--dg-orange-soft)}

/* ---------- 검색량 카드: 월 검색량(PC/모바일/전체) + 검색 관심도 추이를 한 카드, 한 줄로 합친다
   (rankit_visual_qa 후속 피드백 — 두 데이터 모두 "검색 수요"라 따로 둘 이유가 없음) ---------- */
.kw-vol-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:2px}
.kw-vol-cell small{display:block;color:var(--tx2);font-size:12px;margin-bottom:8px}
.kw-vol-cell strong{display:block;font-size:26px;font-family:var(--serif);font-variant-numeric:tabular-nums;color:var(--tx);line-height:1.1}
.kw-vol-cell strong.pending{color:var(--tx3);font-size:16px}
.kw-vol-cell.hi strong{font-weight:700}
.kw-vol-trend{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.06)}
.kw-vol-trend h3{font-size:14px}
@media(max-width:520px){.kw-vol-row{grid-template-columns:1fr;gap:10px}}

/* ---------- KPI grid: 3 distinct cards (문서 수/광고 경쟁도/Rankit 적합도), each with its own accent ---------- */
/* auto-fit/minmax instead of a fixed 3-column + viewport media queries: the 39% LEFT panel of the
   bidirectional dashboard is only ~350-450px wide even on a big desktop screen, so a rule keyed off
   viewport width alone (still kept below for phones) doesn't help this narrower-but-still-desktop case. */
.kw-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 16px}.kw-kpi-grid>*{min-width:0}
.kw-kpi{background:var(--dg-card);border:1px solid var(--line);border-radius:12px;padding:18px 20px;min-height:110px;box-sizing:border-box;display:flex;flex-direction:column}
.kw-kpi small{display:block;color:var(--tx2);font-size:12px;margin-bottom:8px}
.kw-kpi strong{display:block;font-size:28px;font-family:var(--serif);font-variant-numeric:tabular-nums;color:var(--tx);line-height:1.1}
.kw-kpi strong.pending{color:var(--tx3);font-size:18px}
.kw-kpi em{display:block;font-style:normal;font-size:11px;color:var(--tx3);margin-top:auto;padding-top:8px;line-height:1.5}
.kw-kpi .delta{font-size:12px;font-weight:600;margin-left:6px}
/* 숫자만 봐서는 많은지 적은지 감이 안 온다는 피드백 — 검색량/문서 수/광고 경쟁도/Rankit 적합도 숫자에
   4단계 색을 입힌다. 모두 home-search.js에 이미 있던(또는 그것과 같은 방식으로 새로 정의해 공개한)
   고정 기준표를 그대로 따른 것이지, 카드마다 즉흥적으로 정한 색이 아니다. 측정 전(pending)에는 이
   클래스들이 아예 붙지 않고 회색 pending 클래스만 붙는다. */
.kw-kpi strong.kv-vhigh,.kw-vol-cell strong.kv-vhigh{color:var(--dg-green-bright)}
.kw-kpi strong.kv-high,.kw-vol-cell strong.kv-high{color:var(--pu2)}
.kw-kpi strong.kv-mid,.kw-vol-cell strong.kv-mid{color:var(--dg-orange)}
.kw-kpi strong.kv-low,.kw-vol-cell strong.kv-low{color:var(--dg-red)}
.kw-kpi .delta.up{color:var(--dg-green-bright)}.kw-kpi .delta.down{color:var(--dg-red)}
@media(max-width:900px){.kw-kpi-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.kw-kpi-grid{grid-template-columns:1fr}}


/* ---------- Insight card: judgement first, then real evidence bullets ---------- */
.kw-insight{background:var(--dg-card);border:1px solid var(--dg-blue-border);border-radius:12px;padding:22px 24px;margin:0 0 16px}
.kw-insight-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.kw-insight-head b{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--pu2)}
.kw-insight-fit{font-size:30px;font-family:var(--serif);font-variant-numeric:tabular-nums}
.kw-insight-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px}
.kw-insight-rows>div{background:var(--dg-card2);border-radius:8px;padding:10px 12px}
.kw-insight-rows small{display:block;color:var(--tx3);font-size:11px;margin-bottom:4px}
.kw-insight-rows b{font-size:14px}
.kw-insight ul{margin:0;padding-left:18px;line-height:1.9;font-size:13px;color:var(--tx2)}
.kw-insight .rec{font-size:15px;font-weight:600;margin:10px 0 12px}
.kw-insight .rec.v-go{color:var(--dg-green-bright)}.kw-insight .rec.v-mid{color:var(--dg-orange)}.kw-insight .rec.v-low{color:var(--dg-red)}.kw-insight .rec.v-unk{color:var(--tx2)}

/* ---------- Sticky detail tabs ---------- */
.kw-tabs{position:sticky;top:0;z-index:20;display:flex;gap:4px;overflow-x:auto;background:var(--bg2);border-bottom:1px solid var(--line);padding:0 2px;margin:24px 0 0}
.kw-tabs button{padding:12px 16px;font-size:13px;color:var(--tx2);white-space:nowrap;border-bottom:2px solid transparent}
.kw-tabs button.on{color:var(--tx);border-bottom-color:var(--pu)}
.kw-tabs button:hover{color:var(--tx)}
.kw-tabpanel{padding-top:8px}
.kw-tabpanel[hidden]{display:none}

/* ---------- Naver exposure status: real data only — "측정되지 않음" when we have none, never faked ---------- */
.nv-status{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:12px;color:var(--tx2)}
.nv-status .dot{width:8px;height:8px;border-radius:50%;background:var(--tx3);flex:none}
.nv-status.ok{border-color:var(--dg-green-border);background:var(--dg-green-soft)}.nv-status.ok .dot{background:var(--dg-green);box-shadow:0 0 6px var(--dg-green)}
.nv-status.warn{border-color:var(--dg-orange-border);background:var(--dg-orange-soft)}.nv-status.warn .dot{background:var(--dg-orange)}
.nv-status.bad{border-color:var(--dg-red-border);background:var(--dg-red-soft)}.nv-status.bad .dot{background:var(--dg-red)}
.nv-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:2px 8px;border-radius:999px;white-space:nowrap}
.nv-badge.ok{color:var(--dg-green-bright);background:var(--dg-green-soft)}
.nv-badge.na{color:var(--tx3);background:rgba(255,255,255,.04)}
.nv-badge .dot{width:6px;height:6px;border-radius:50%;background:currentColor}

/* ---------- Blog dashboard: 3-column (profile / ability / recent content) ---------- */
/* This 3-column dashboard now also has to work squeezed into the 39% LEFT/RIGHT panel of the
   bidirectional layout (~550-600px, not just the ~1480px full-width case) — a plain viewport media
   query can't see that difference (the viewport is still wide), so the panels are declared real CSS
   containers and .bg-dash responds to ITS OWN width via @container instead. */
.panel-left,.panel-right{container-type:inline-size}
.bg-dash{display:grid;grid-template-columns:23% 42% 1fr;gap:12px;align-items:start}
/* crossPanel: no mainCol (ability/radar lives in diagnosisSummary above, weekly chart removed) — just
   profile + recent posts, side by side instead of leaving an empty middle column. */
.bg-dash.bg-dash-2col{grid-template-columns:32% 1fr}
@container (max-width:560px){.bg-dash.bg-dash-2col{grid-template-columns:1fr}}
.bg-col-profile{position:sticky;top:12px;display:flex;flex-direction:column;gap:12px}
.bg-col-profile .fm-head{flex-direction:column;align-items:flex-start;margin:0}
.bg-col-profile .fm-head .photo{width:84px;height:84px}
.bg-col-profile .fm-kv{margin-left:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.bg-col-main,.bg-col-recent{display:flex;flex-direction:column;gap:12px}
.bg-col-main>.hs-block,.bg-col-profile>.hs-block{margin:0}
.bg-recent-scroll{max-height:720px;overflow-y:auto;padding-right:4px}
/* 공개 게시물 제목 한 줄 + 최소 13px (rankit_visual_qa_ui_fix_spec.md P1-21) */
.bg-recent-scroll .news-item{padding:12px 0}
.bg-recent-scroll .news-item a{font-size:13px;line-height:1.45;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bg-recent-scroll .news-item small{font-size:11.5px;margin-top:4px}
@media(max-width:1200px){.bg-dash{grid-template-columns:30% 1fr}.bg-col-recent{grid-column:1/-1}}
@media(max-width:800px){.bg-dash{grid-template-columns:1fr}.bg-col-profile{position:static}.bg-recent-scroll{max-height:none}}
/* 다크 UI 내부 스크롤 컨테이너 전용 스크롤바 (rankit_visual_qa_ui_fix_spec.md §41) — 기본 밝은 브라우저 스크롤바가 튀어보이는 문제 */
.hs-serp,.kw-scroll,.bg-recent-scroll,.scroll-panel{scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
.hs-serp::-webkit-scrollbar,.kw-scroll::-webkit-scrollbar,.bg-recent-scroll::-webkit-scrollbar,.scroll-panel::-webkit-scrollbar{width:8px;height:8px}
.hs-serp::-webkit-scrollbar-track,.kw-scroll::-webkit-scrollbar-track,.bg-recent-scroll::-webkit-scrollbar-track,.scroll-panel::-webkit-scrollbar-track{background:transparent}
.hs-serp::-webkit-scrollbar-thumb,.kw-scroll::-webkit-scrollbar-thumb,.bg-recent-scroll::-webkit-scrollbar-thumb,.scroll-panel::-webkit-scrollbar-thumb{background:var(--line2);border-radius:4px}
.hs-serp::-webkit-scrollbar-thumb:hover,.kw-scroll::-webkit-scrollbar-thumb:hover,.bg-recent-scroll::-webkit-scrollbar-thumb:hover,.scroll-panel::-webkit-scrollbar-thumb:hover{background:var(--tx3)}
@container (max-width:900px){.bg-dash{grid-template-columns:34% 1fr}.bg-col-recent{grid-column:1/-1}}
@container (max-width:560px){.bg-dash{grid-template-columns:1fr}.bg-col-profile{position:static}.bg-recent-scroll{max-height:none}}

/* ---------- Entrance + micro-interactions (rankit_dashboard_redesign_final.md §39-42) ---------- */
@keyframes dgFadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
/* .hs-block covers nearly every card in this app (KPI/insight/top-content/diagnosis/profile/etc.) —
   a narrower hand-picked class list kept missing new blocks (topContent, diagnosisSummary's wrapper,
   the empty-state panel) every time one was added, so every top-level card animates in by default now. */
.kw-dash-head,.hs-block,.panel-empty,.kw-tabs,.kw-kpi,.kw-insight,.bg-col-profile>*,.bg-col-main>*,.bg-col-recent>*{
  animation:dgFadeUp .4s ease both;
}
.kw-kpi:nth-child(1){animation-delay:.03s}.kw-kpi:nth-child(2){animation-delay:.07s}.kw-kpi:nth-child(3){animation-delay:.11s}.kw-kpi:nth-child(4){animation-delay:.15s}
.kw-overview-grid>*:nth-child(2){animation-delay:.08s}
.kw-insight{animation-delay:.1s}
.bg-col-main>*:nth-child(2){animation-delay:.06s}.bg-col-main>*:nth-child(3){animation-delay:.12s}
@media(prefers-reduced-motion:reduce){.kw-dash-head,.hs-block,.panel-empty,.kw-tabs,.kw-kpi,.kw-insight,.bg-col-profile>*,.bg-col-main>*,.bg-col-recent>*{animation:none}}

/* weekly activity bars: grow from 0 on first paint */
@keyframes dgGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.hs-weekly i{transform-origin:bottom;animation:dgGrow .55s cubic-bezier(.2,.8,.3,1) both}
@media(prefers-reduced-motion:reduce){.hs-weekly i{animation:none}}

/* trend line draw-in (stroke-dashoffset animated from JS, see trendChartSvg mount hook) */
.hs-trend polyline{transition:stroke-dashoffset .8s ease}
@media(prefers-reduced-motion:reduce){.hs-trend polyline{transition:none}}

.kw-star{transition:background-color .15s,border-color .15s,color .15s}
.hs-row,.fm-row{transition:background-color .16s ease}

/* ============================================================================
   Bidirectional 2-column dashboard (rankit_final_bidirectional_dashboard_spec.md)
   LEFT = whichever side was searched first, RIGHT = the other axis (empty until
   connected, then the same real keywordResult()/blogResult() components).
   ============================================================================ */
.analysis-layout{display:grid;grid-template-columns:minmax(360px,.39fr) minmax(0,.61fr);gap:16px;align-items:start;max-width:1480px;margin:0 auto}
.panel-left,.panel-right{min-width:0}
/* 왼쪽 패널의 첫 카드(kw-dash-head/fm-head)만 top margin을 지우면 오른쪽 패널의 첫 카드(.hs-block류,
   기본 margin:24px 0)는 그대로 24px 아래에서 시작해 두 패널의 카드 상단이 어긋나 보였다 — 두 패널
   모두 "첫 자식"의 top margin을 지워 항상 같은 y에서 시작하게 한다. */
.panel-left>*:first-child,.panel-right>*:first-child{margin-top:0}
.panel-empty{display:flex;flex-direction:column;gap:14px}
.panel-empty h3{margin:0;font-size:17px}
.panel-empty form{display:flex;gap:8px;align-items:stretch}
.panel-empty form input{flex:1;min-width:0}
.panel-preview{border-top:1px solid var(--line);padding-top:14px;margin-top:4px}
.panel-preview small{display:block;color:var(--tx3);font-size:11px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.panel-preview ul{margin:0;padding-left:18px;color:var(--tx3);font-size:13px;line-height:2}
@media(max-width:1100px){.analysis-layout{grid-template-columns:1fr}}
