/* 트렌드 — 작품 현황(2026-10-26, 목업 mockup-trend.html). 접두사 tw- */
.tw{--tw-cr:#55555C;--tw-buzz:#3D7BFF;display:flex;flex-direction:column;gap:16px;max-width:1180px}
:root[data-theme="dark"] .tw{--tw-cr:#B4B4BC;--tw-buzz:#7FA2FF}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .tw{--tw-cr:#B4B4BC;--tw-buzz:#7FA2FF}}
.tw-loading{color:var(--muted);font-size:13px}
.tw-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tw-nav a{display:inline-flex;align-items:center;height:32px;background:var(--surface);border-radius:999px;padding:0 14px;font-size:13px;font-weight:600;color:var(--secondary);text-decoration:none}
.tw-nav a.on{background:var(--ink);color:var(--surface)}
.tw-nav .tw-sp{flex:1}
.tw-nav a.tw-old{background:none;padding:0 4px;font-size:12px;color:var(--muted)}
.tw-nav a.tw-old:hover{color:var(--ink)}
.tw-top{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.tw-top h2{margin:0;font-size:18px}
.tw-code{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface);border-radius:6px;padding:3px 7px;color:var(--secondary)}
.tw-meta{margin-left:auto;font-size:12px;color:var(--muted)}
.tw-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tw-tile{background:var(--surface);border-radius:16px;padding:16px 18px;min-width:0}
.tw-tile>span{font-size:12px;color:var(--secondary)}
.tw-tile>b{display:block;font-size:24px;margin:6px 0 2px;font-variant-numeric:tabular-nums}
.tw-tile>small{font-size:11.5px;color:var(--muted)}
.tw-ves{color:var(--accent)}
.tw-up{color:var(--status-ok)}.tw-down{color:var(--status-error)}.tw-muted{color:var(--muted)}.tw-small{font-size:11px}
.tw-panel{background:var(--surface);border-radius:16px;padding:18px 20px;min-width:0}
.tw-panel>h2{margin:0 0 4px;font-size:14px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.tw-panel>h2 small{font-size:12px;color:var(--muted);font-weight:500}
.tw-sub{font-size:12px;color:var(--secondary);margin:0 0 12px;line-height:1.6}
.tw-note{font-size:11.5px;color:var(--muted);margin:10px 0 0;line-height:1.6}
.tw-none{font-size:12.5px;color:var(--muted);margin:6px 0 2px}
.tw-empty{text-align:center;padding:40px 20px}.tw-empty h3{margin:0 0 8px;font-size:15px}.tw-empty p{margin:0 0 6px;font-size:12.5px;color:var(--secondary);line-height:1.7}
.tw-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px}
.tw-grid.tw-wide-left{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
@media(max-width:900px){.tw-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tw-grid,.tw-grid.tw-wide-left{grid-template-columns:1fr}}
/* 표 — 글 · 막대 · 그래프는 왼쪽, 숫자(.n)는 오른쪽. 컬럼 이름도 내용과 같은 쪽 */
.tw-table{width:100%;border-collapse:collapse;font-size:13px}
.tw-table th{font-size:11.5px;color:var(--muted);font-weight:500;text-align:left;padding:6px 6px;white-space:nowrap}
.tw-table td{padding:10px 6px;text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap}
.tw-table th+th,.tw-table td+td{padding-left:18px}
.tw-table .n{text-align:right}
.tw-table tbody tr+tr td{box-shadow:inset 0 1px 0 var(--inset)}
.tw-works tbody tr{cursor:pointer}
.tw-works tbody tr:hover td{background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
.tw-works tr.rest{display:none}.tw-works.all tr.rest{display:table-row}.tw-works tr.rest td{color:var(--secondary)}
.tw-wk{display:flex;flex-direction:column;gap:1px;white-space:normal}.tw-wk b{font-weight:650}.tw-wk small{font-size:11px;color:var(--muted)}
.tw-fire{display:inline-flex;vertical-align:-3px;margin-left:5px;cursor:default}.tw-fire .emo{width:17px;height:17px}
.tw-share{display:inline-block;width:46px;height:6px;border-radius:3px;background:var(--inset);vertical-align:middle;margin-right:6px;position:relative;overflow:hidden}
.tw-share i{position:absolute;left:0;top:0;bottom:0;background:var(--accent);border-radius:3px}
.tw-more{display:flex;justify-content:center;margin-top:10px}
.tw-more button{border:0;background:var(--inset);border-radius:999px;padding:6px 14px;font:inherit;font-size:12px;font-weight:600;color:var(--secondary);cursor:pointer}
.tw-chips{display:flex;gap:4px;flex-wrap:wrap;white-space:normal}.tw-chips span{font-size:11px;background:var(--inset);border-radius:999px;padding:2px 7px;color:var(--secondary)}
.tw-vs{display:inline-block;width:70px;height:6px;border-radius:3px;background:var(--inset);vertical-align:middle;margin-right:6px;position:relative}
.tw-vs i{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:var(--accent)}.tw-vs b{position:absolute;left:50%;top:-3px;bottom:-3px;width:1px;background:var(--muted)}
/* 뜨는 키워드 — 클수록 조회 많음 */
.tw-kws{display:flex;flex-wrap:wrap;gap:8px}
.tw-kws.big{justify-content:center;align-items:center;gap:10px 12px;padding:6px 4px}
.tw-kw{display:inline-flex;align-items:center;gap:5px;background:var(--inset);border-radius:999px;padding:.25em .7em;font-weight:650;line-height:1.3;cursor:default}
.tw-kw small{font-size:11px;color:var(--muted);font-weight:500}
.tw-kw em,.tw-new{font-style:normal;font-size:10.5px;font-weight:700;color:var(--accent)}
/* 전환점 — 날짜 요일 | 작품 · 내용 | ▲ n배 */
.tw-turns{display:grid}
.tw-turn{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 4px}
.tw-turn+.tw-turn{box-shadow:inset 0 1px 0 var(--inset)}
.tw-tdate{display:flex;align-items:baseline;gap:4px}.tw-tdate b{font-size:14px;font-variant-numeric:tabular-nums}.tw-tdate small{font-size:11px;color:var(--muted)}
.tw-tbody{min-width:0;display:flex;flex-direction:column;gap:2px}.tw-tbody b{font-size:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-tbody small{font-size:12px;color:var(--secondary)}
.tw-tx{display:flex;flex-direction:column;align-items:flex-end;line-height:1.25}.tw-tx b{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}.tw-tx small{font-size:11px;color:var(--muted)}
.tw-tx.up b{color:var(--status-ok)}.tw-tx.down b{color:var(--status-error)}
/* 흐름 — 같은 날짜 축 위아래 세 줄 */
.tw-flow{position:relative}
.tw-frow{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;gap:10px}.tw-frow+.tw-frow{margin-top:6px}
.tw-fl{font-size:12px;font-weight:650;line-height:1.35}.tw-fl small{display:block;font-weight:500;color:var(--muted);font-size:11px}
.tw-fl i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}
.tw-fch{display:block;width:100%;height:64px;overflow:visible}
.tw-fch .area{fill:currentColor;fill-opacity:.10;stroke:none}.tw-fch .line{fill:none;stroke:currentColor;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.tw-fch .tw-air{stroke:var(--ink);stroke-opacity:.18;stroke-dasharray:2 3;vector-effect:non-scaling-stroke}
.tw-axis{display:grid;grid-template-columns:118px minmax(0,1fr);gap:10px;margin-top:4px}
.tw-axis div{position:relative;height:16px;font-size:10.5px;color:var(--muted)}.tw-axis b{position:absolute;font-weight:500;transform:translateX(-50%);white-space:nowrap}
.tw-cross{position:absolute;top:0;bottom:20px;width:1px;background:color-mix(in srgb,var(--ink) 25%,transparent);pointer-events:none}
.tw-tip{position:fixed;z-index:80;background:var(--surface);color:var(--ink);border-radius:10px;padding:8px 11px;font-size:12px;line-height:1.55;box-shadow:0 6px 22px #0000002a;pointer-events:none;white-space:nowrap;display:grid}
.tw-tip[hidden]{display:none}   /* display:grid 가 hidden 을 이겨 말풍선이 남던 것 */
.tw-tip b{font-size:12.5px}.tw-tip span{color:var(--secondary)}
/* 채널별 · 잘 된 영상 */
.tw-chs tr.ves td:first-child{color:var(--accent);font-weight:650}
.tw-bar{display:inline-block;height:6px;border-radius:3px;background:var(--accent);opacity:.25;vertical-align:middle;margin-right:6px}
.tw-chs tr.ves .tw-bar{opacity:1}
.tw-vids{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
.tw-vid{min-width:0;text-decoration:none;color:inherit}
.tw-vid i{display:block;aspect-ratio:9/16;border-radius:10px;background:#111 center/cover no-repeat;position:relative}
.tw-vid i em{position:absolute;left:6px;bottom:6px;font-style:normal;font-size:11px;font-weight:650;color:#fff;background:rgba(0,0,0,.55);border-radius:6px;padding:1px 6px}
.tw-vid b{font-size:12px;font-weight:600;line-height:1.4;margin-top:6px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tw-vid span{font-size:11px;color:var(--muted)}.tw-vid.ves span{color:var(--accent);font-weight:650}

/* 작품끼리 네이버 검색량(0217) — 한 그래프에 작품마다 다른 색 선, 나이대 · 기간 · 로그 눈금 */
#tw-cmp .cseg{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
#tw-cmp .cbar{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:12px;color:var(--secondary)}#tw-cmp .cbar .sp{flex:1}
#tw-cmp .cd{border:0;background:var(--inset);border-radius:999px;padding:4px 10px;font:inherit;font-size:12px;font-weight:600;color:var(--secondary);cursor:pointer}#tw-cmp .cd.on{background:var(--ink);color:var(--surface)}
#tw-cmp .csvg{display:block}#tw-cmp .csvg text{stroke:none!important;font-family:inherit}#tw-cmp .cg{stroke:var(--inset)}
#tw-cmp .cy{font-size:11px;fill:var(--muted);text-anchor:end}#tw-cmp .cx{font-size:11px;fill:var(--muted);text-anchor:middle}
#tw-cmp .cl{font-size:12px;font-weight:600}#tw-cmp .cxh{stroke:color-mix(in srgb,var(--ink) 25%,transparent)}
#tw-cmp .cchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
#tw-cmp .cc{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--inset);border-radius:999px;padding:4px 10px;font:inherit;font-size:12px;color:var(--secondary);cursor:pointer}
#tw-cmp .cc i{width:8px;height:8px;border-radius:2px;background:var(--muted);opacity:.35}#tw-cmp .cc.on{color:var(--ink);font-weight:650}#tw-cmp .cc.on i{background:var(--c);opacity:1}
.tw-tip .tw-dot{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}
/* 로그 눈금 체크 — 대시보드 기준 체크박스(연회색 칸, 체크하면 진한 칸에 흰 체크) */
#tw-cmp .clog{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--secondary)}
#tw-cmp .clog input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:none;margin:0;padding:0;border:0;width:18px;min-width:18px;height:18px;border-radius:5px;background:var(--inset);display:grid;place-items:center;cursor:pointer}
#tw-cmp .clog input[type=checkbox]:checked{background:var(--solid)}
#tw-cmp .clog input[type=checkbox]:checked::after{content:"";width:9px;height:5px;border:2px solid var(--on-solid);border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
#tw-cmp .clog input[type=checkbox]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#tw-cmp .cbar .nb-q{margin-left:2px}
