/* GENERATED by scripts/build-tour-css.mjs from youtube-mod-tracker/index.html.
   Do not edit by hand: re-run the script after app style changes.
   Tour-specific overrides live in assets/tour.css. */

/* Reset site globals inside the clone (app relies on browser defaults) */
.ytmp { font-size: 16px; line-height: normal; font-variant-numeric: normal; }
.ytmp img, .ytmp svg, .ytmp video { display: inline; max-width: none; }
.ytmp h1, .ytmp h2, .ytmp h3, .ytmp h4 { letter-spacing: normal; }
.ytmp a { color: inherit; }

.ytmp { --accent:#2ba640; --accent-text:#9cffad; --accent-soft:#1f3a26; --toggle-bg:#24364f; --toggle-bg-hover:#2d4566; --toggle-text:#cfe2ff;
 --n-11:#111111; --n-16:#161616; --n-17:#171717; --n-1a:#1a1a1a; --n-1c:#1c1c1c; --n-1f:#1f1f1f; --n-22:#222222; --n-23:#232323; --n-24:#242424; --n-26:#262626; --n-29:#292929; --n-2a:#2a2a2a; --n-2b:#2b2b2b; --n-2e:#2e2e2e; --n-33:#333333; --n-3a:#3a3a3a; --n-44:#444444; --n-4a:#4a4a4a; --n-55:#555555; --n-5a:#5a5a5a; --n-5f:#5f5f5f; --n-66:#666666; --n-6a:#6a6a6a; --n-6f:#6f6f6f; --n-77:#777777; --n-88:#888888; --n-99:#999999; --n-9a:#9a9a9a; --n-aa:#aaaaaa; --n-bb:#bbbbbb; --n-c4:#c4c4c4; --n-cc:#cccccc; --n-cf:#cfcfcf; --n-dd:#dddddd; --n-e6:#e6e6e6; --n-e8:#e8e8e8; --n-ee:#eeeeee; --n-f2:#f2f2f2; }
.ytmp { font-family: Inter, system-ui, sans-serif; color: var(--n-ee); background: var(--n-11); }
.ytmp { margin: 0; min-height: var(--ytmp-vh); padding-bottom: 40px; }
.ytmp, .ytmp * { box-sizing: border-box; }
.ytmp button, .ytmp input { font: inherit; }
.ytmp button { cursor: pointer; }
.ytmp .app { margin: 0 auto; padding: 24px; height: calc(var(--ytmp-vh) - 40px); display:flex; flex-direction:column; }
.ytmp .app > * { flex:none; }
.ytmp .app > .grid { flex:1 1 auto; min-height:360px; grid-template-rows:minmax(0, 1fr); }
.ytmp .top { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.ytmp .top { margin:6px 0 22px; }
.ytmp .brand { display:flex; align-items:center; gap:14px; }
.ytmp .brand-icon { width:44px; height:44px; flex:0 0 auto; padding:9px; border:1px solid var(--n-2e); border-radius:6px; background:var(--n-1a); color:var(--n-ee); fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .brand-icon path { fill:currentColor; stroke:none; }
.ytmp .brand-text { display:flex; flex-direction:column; gap:4px; line-height:1.1; }
.ytmp .brand-text h1 { margin:0; font-size:21px; font-weight:700; letter-spacing:.06em; color:var(--n-f2); }
.ytmp .brand-sub { font-size:12px; color:var(--n-77); letter-spacing:.01em; }
.ytmp .grid { --new:320px; --known:320px; display:grid; grid-template-columns: var(--new) minmax(400px, 1fr) var(--known); gap:16px; margin-top:20px; transition:grid-template-columns .2s ease; }
.ytmp .grid > .card { display:flex; flex-direction:column; min-width:0; }
.ytmp.no-chat .grid { --new:1fr; --known:1fr; grid-template-columns: var(--new) var(--known); }
.ytmp.show-video .grid { --new:260px; --known:260px; grid-template-columns: var(--new) minmax(280px, 1.4fr) minmax(320px, 1fr) var(--known); }
.ytmp.show-video.no-chat .grid { --new:1fr; --known:1fr; grid-template-columns: var(--new) minmax(280px, 1.6fr) var(--known); }
.ytmp.new-collapsed .grid { --new:60px; }
.ytmp.known-collapsed .grid { --known:60px; }
.ytmp:not(.show-video) #videoCard { display:none; }
.ytmp .side-toggle { flex:0 0 auto; width:30px; height:30px; padding:0; display:inline-flex; align-items:center; justify-content:center; background:transparent; color:var(--n-77); border-radius:4px; }
.ytmp .side-toggle:hover { background:var(--n-26); color:#fff; }
.ytmp .side-toggle svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .side-count { display:none; min-width:20px; padding:1px 6px; border-radius:3px; background:var(--accent-soft); color:var(--accent-text); font-size:11px; font-weight:700; text-align:center; }
.ytmp .side-count.zero { background:var(--n-24); color:var(--n-66); }
.ytmp .side-card.collapsed { padding:12px 0; align-items:center; overflow:hidden; }
.ytmp .side-card.collapsed .card-head { flex-direction:column-reverse; gap:8px; }
.ytmp .side-card.collapsed .card-head h2, .ytmp .side-card.collapsed .search-row { display:none; }
.ytmp .side-card.collapsed .side-count { display:block; }
.ytmp .side-card.collapsed .side-toggle svg { transform:scaleX(-1); }
.ytmp .side-card.collapsed .user-list { width:100%; padding:0; margin-top:8px; scrollbar-width:none; }
.ytmp .side-card.collapsed .user-list::-webkit-scrollbar { display:none; }
.ytmp .side-card.collapsed .user { position:relative; justify-content:center; padding:5px 0; border-bottom:0; }
.ytmp .side-card.collapsed .name, .ytmp .side-card.collapsed .greet-btn, .ytmp .side-card.collapsed .empty { display:none; }
.ytmp .side-card.collapsed .menu-btn { position:absolute; inset:0; width:auto; height:auto; opacity:0; }
.ytmp .side-card.collapsed .user:hover .avatar-wrap { outline:2px solid var(--n-3a); outline-offset:2px; border-radius:50%; }
.ytmp .side-card.collapsed .avatar-wrap, .ytmp .side-card.collapsed .avatar, .ytmp .side-card.collapsed .avatar-fallback { width:32px; height:32px; }
.ytmp.no-chat #chatCard { display:none; }
.ytmp .card { background:var(--n-1a); border:1px solid var(--n-2b); border-radius:6px; padding:18px; }
.ytmp .row { display:flex; gap:10px; margin:10px 0; }
.ytmp input { flex:1; background:var(--n-11); color:#fff; border:1px solid var(--n-44); border-radius:4px; padding:10px 12px; }
.ytmp input:focus, .ytmp input:active { background:var(--n-11); color:#fff; outline:none; border-color:var(--n-77); }
.ytmp input:-webkit-autofill, .ytmp input:-webkit-autofill:hover, .ytmp input:-webkit-autofill:focus { -webkit-box-shadow:0 0 0 1000px var(--n-11) inset; -webkit-text-fill-color:#fff; caret-color:#fff; }
.ytmp input:disabled { color:var(--n-88); border-color:var(--n-2e); cursor:not-allowed; }
.ytmp button:disabled { opacity:.5; cursor:not-allowed; }
.ytmp button { border:0; border-radius:4px; padding:10px 14px; background:var(--n-ee); color:var(--n-11); }
.ytmp button.secondary { background:var(--n-33); color:var(--n-ee); }
.ytmp button.danger { background:#5a1c1c; color:#fff; }
.ytmp ::-webkit-scrollbar { width: 6px; height: 6px; }
.ytmp ::-webkit-scrollbar-track { background: transparent; }
.ytmp ::-webkit-scrollbar-thumb { background: var(--n-33); border-radius: 3px; }
.ytmp ::-webkit-scrollbar-thumb:hover { background: var(--n-4a); }
.ytmp .user-list { flex:1 1 0; height:0; min-height:200px; overflow-y:auto; padding-right:6px; margin-top:10px; }
.ytmp.no-chat .user-list { flex:1 1 0; height:0; }
.ytmp .user { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--n-29); }
.ytmp .user:last-child { border-bottom:0; }
.ytmp .avatar { width:28px; height:28px; border-radius:50%; background:var(--n-33); object-fit:cover; flex:0 0 auto; }
.ytmp .avatar-fallback { width:28px; height:28px; border-radius:50%; background:var(--n-33); color:var(--n-bb); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex:0 0 auto; }
.ytmp .avatar-wrap { position:relative; width:28px; height:28px; flex:0 0 auto; }
.ytmp .avatar-wrap .presence-dot { display:none; position:absolute; right:-2px; bottom:-2px; width:11px; height:11px; border-radius:50%; background:#3fcf6b; border:2px solid var(--n-1a); }
.ytmp .avatar-wrap.online .presence-dot { display:block; }
.ytmp .user.online .name.known { color:var(--n-e6); }
.ytmp .user:not(.online) .avatar, .ytmp .user:not(.online) .avatar-fallback { filter:grayscale(1) brightness(.7); opacity:.5; transition:filter .15s, opacity .15s; }
.ytmp .user:not(.online) .name.known { color:var(--n-6a); }
.ytmp .user:not(.online) .ubadge { opacity:.5; }
.ytmp .user:not(.online):hover .avatar, .ytmp .user:not(.online):hover .avatar-fallback { filter:none; opacity:1; }
.ytmp .user:not(.online):hover .name.known { color:var(--n-aa); }
.ytmp .chat-input-wrap { position:relative; flex:1; display:flex; }
.ytmp .mention-box { position:absolute; left:0; right:0; bottom:calc(100% + 6px); z-index:20; background:var(--n-1f); border:1px solid var(--n-3a); border-radius:4px; padding:4px; max-height:260px; overflow-y:auto; box-shadow:0 8px 24px rgba(0,0,0,.5); }
.ytmp .mention-box[hidden] { display:none; }
.ytmp .mention-item { display:flex; align-items:center; gap:8px; padding:5px 8px; border-radius:4px; cursor:pointer; font-size:13px; }
.ytmp .mention-item.active, .ytmp .mention-item:hover { background:var(--n-33); }
.ytmp .mention-item .avatar-wrap, .ytmp .mention-item .avatar, .ytmp .mention-item .avatar-fallback { width:22px; height:22px; font-size:10px; }
.ytmp .mention-item .presence-dot { width:9px; height:9px; }
.ytmp .mention-item mark { background:none; color:var(--accent-text); font-weight:700; }
.ytmp .name { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ytmp .user .name { flex:1; min-width:0; }
.ytmp .greet-btn { padding:6px 10px; font-size:12px; flex:0 0 auto; }
.ytmp .menu-btn { flex:0 0 auto; width:30px; height:28px; padding:0; background:transparent; color:var(--n-99); font-size:18px; line-height:1; border-radius:4px; }
.ytmp .menu-btn:hover, .ytmp .menu-btn.open { background:var(--n-2e); color:#fff; }
.ytmp .user.hidden-user { opacity:.45; }
.ytmp .icon-toggle { flex:0 0 auto; padding:5px 8px; font-size:12px; background:var(--n-2a); color:var(--n-bb); border-radius:4px; }
.ytmp .icon-toggle.active { background:var(--n-3a); color:#fff; }
.ytmp .icon-toggle[hidden] { display:none; }
.ytmp .user-menu { position:fixed; z-index:50; width:250px; background:var(--n-1f); border:1px solid var(--n-3a); border-radius:6px; padding:6px; box-shadow:0 12px 32px rgba(0,0,0,.6); }
.ytmp .user-menu[hidden] { display:none; }
.ytmp .menu-info { padding:6px 10px 9px; margin-bottom:4px; border-bottom:1px solid var(--n-2e); font-size:12px; color:var(--n-99); line-height:1.55; }
.ytmp .menu-info strong { display:block; color:var(--n-ee); font-size:14px; margin-bottom:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ytmp .menu-online { color:#3fcf6b; }
.ytmp .menu-item { display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:none; color:var(--n-dd); padding:7px 10px; border-radius:4px; font-size:13px; }
.ytmp .menu-item:hover:not(:disabled) { background:var(--n-2e); }
.ytmp .menu-item:disabled { opacity:.4; }
.ytmp .menu-item.danger { color:#ff8a8a; }
.ytmp .menu-item.danger.confirm { background:#7a1f1f; color:#fff; }
.ytmp .menu-icon { width:18px; text-align:center; flex:0 0 auto; }
.ytmp .menu-sep { height:1px; background:var(--n-2e); margin:5px 0; }
.ytmp .menu-label { padding:4px 10px 2px; font-size:11px; color:var(--n-77); text-transform:uppercase; letter-spacing:.05em; }
.ytmp .meta { color:var(--n-99); font-size:12px; margin-top:3px; }
.ytmp .new { color:var(--accent-text); }
.ytmp .known { color:var(--n-aa); }
.ytmp .empty { color:var(--n-77); padding:20px 0; }
.ytmp .stats { display:flex; align-items:baseline; gap:16px; color:var(--n-77); font-size:13px; white-space:nowrap; }
.ytmp .stat strong { color:var(--n-bb); font-weight:600; font-variant-numeric:tabular-nums; }
.ytmp .icon-btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 12px; }
.ytmp .toolbar-sep { flex:0 0 1px; align-self:stretch; margin:6px 2px; background:var(--n-33); }
.ytmp #videoToggle[aria-pressed="true"] { background:var(--toggle-bg); color:var(--toggle-text); }
.ytmp #videoToggle[aria-pressed="true"]:hover { background:var(--toggle-bg-hover); }
.ytmp .card-actions { display:flex; gap:2px; }
.ytmp .video-frame { margin-top:10px; flex:1 1 0; min-height:0; display:flex; align-items:flex-start; justify-content:center; }
.ytmp .video-frame iframe { width:100%; aspect-ratio:16 / 9; max-height:100%; border:0; border-radius:4px; background:#000; }
.ytmp #stop.connected { background:#6b2323; color:#ffd6d6; }
.ytmp #stop.connected:hover { background:#8a2b2b; color:#fff; }
.ytmp #stop { transition:background .15s, color .15s; }
.ytmp .icon-btn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .url-wrap { position:relative; flex:1; display:flex; min-width:0; }
.ytmp .url-wrap input { padding-right:40px; }
.ytmp .url-title { position:absolute; left:1px; top:1px; bottom:1px; right:40px; display:flex; align-items:center; gap:10px; padding:0 12px; pointer-events:none; overflow:hidden; white-space:nowrap; }
.ytmp .url-title[hidden] { display:none; }
.ytmp .url-title-main { color:var(--n-ee); font-weight:600; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.ytmp .url-title-sub { color:var(--n-77); font-size:12px; flex:0 0 auto; }
.ytmp .url-wrap.show-title input { color:transparent; }
.ytmp .url-wrap.show-title input:disabled ~ .url-title .url-title-main { color:var(--n-bb); }
.ytmp .fav-toggle { position:absolute; right:4px; top:50%; transform:translateY(-50%); display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; background:transparent; color:var(--n-66); border-radius:3px; }
.ytmp .fav-toggle:hover:not(:disabled) { color:var(--n-dd); background:var(--n-22); }
.ytmp .fav-toggle svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.ytmp .fav-toggle.active { color:#f5c451; }
.ytmp .fav-toggle.active svg { fill:currentColor; }
.ytmp .fav-toggle[hidden] { display:none; }
.ytmp .url-suggest { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:30; background:var(--n-1c); border:1px solid var(--n-33); border-radius:4px; padding:4px; max-height:340px; overflow-y:auto; box-shadow:0 12px 32px rgba(0,0,0,.55); }
.ytmp .url-suggest[hidden] { display:none; }
.ytmp .suggest-group { padding:6px 10px 4px; font-size:11px; color:var(--n-66); text-transform:uppercase; letter-spacing:.06em; }
.ytmp .suggest-item { display:flex; align-items:center; gap:10px; padding:6px 6px 6px 10px; border-radius:3px; cursor:pointer; }
.ytmp .suggest-item.active, .ytmp .suggest-item:hover { background:var(--n-2a); }
.ytmp .suggest-main { flex:1; min-width:0; }
.ytmp .suggest-title { font-size:13px; color:var(--n-e6); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ytmp .suggest-sub { font-size:11px; color:var(--n-77); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ytmp .suggest-item mark { background:none; color:var(--accent-text); }
.ytmp .suggest-act { flex:0 0 auto; width:26px; height:26px; padding:0; display:inline-flex; align-items:center; justify-content:center; background:transparent; color:var(--n-66); border-radius:3px; font-size:14px; line-height:1; }
.ytmp .suggest-act:hover { background:var(--n-33); color:#fff; }
.ytmp .suggest-act svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.ytmp .suggest-act.fav-on { color:#f5c451; }
.ytmp .suggest-act.fav-on svg { fill:currentColor; }
.ytmp .suggest-empty { padding:10px; font-size:12px; color:var(--n-66); }
.ytmp .quick-actions-list { display:contents; }
.ytmp .quick-edit { color:var(--n-66); padding:6px 8px; }
.ytmp .quick-edit svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; display:block; }
.ytmp .quick-empty { color:var(--n-55); font-size:12px; }
.ytmp .quick-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:12px; padding-top:12px; border-top:1px solid var(--n-26); }
.ytmp .quick-label { display:inline-flex; align-items:center; gap:6px; color:var(--n-66); font-size:12px; margin-right:6px; padding:0 4px; white-space:nowrap; }
.ytmp .quick-label svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .quick-btn { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; font-size:13px; background:transparent; color:var(--n-bb); border-radius:3px; }
.ytmp .quick-btn:hover:not(:disabled) { background:var(--n-26); color:#fff; }
.ytmp .quick-btn:active:not(:disabled) { background:var(--n-2e); }
.ytmp .greet-mode { margin-left:auto; display:inline-flex; align-items:center; gap:8px; padding:3px 3px 3px 10px; background:transparent; color:var(--n-77); font-size:12px; border:1px solid var(--n-2e); border-radius:4px; white-space:nowrap; }
.ytmp .greet-mode:hover { border-color:var(--n-44); color:var(--n-aa); }
.ytmp .greet-mode:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ytmp .greet-mode > svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .greet-mode-segs { display:inline-flex; background:var(--n-1a); border-radius:3px; padding:2px; gap:2px; }
.ytmp .greet-mode-seg { padding:3px 9px; border-radius:2px; color:var(--n-66); transition:background .12s, color .12s; }
.ytmp .greet-mode[aria-checked="false"] .greet-mode-seg[data-mode="manual"] { background:var(--n-33); color:var(--n-e6); }
.ytmp .greet-mode[aria-checked="true"] .greet-mode-seg[data-mode="auto"] { background:var(--accent-soft); color:var(--accent-text); }
.ytmp .greet-mode[aria-checked="true"] > svg { color:var(--accent-text); }
.ytmp .greet-mode:disabled { opacity:.6; cursor:progress; }
.ytmp .account-row { display:flex; align-items:center; gap:10px; margin-top:6px; }
.ytmp .account-row .meta { margin:0; flex:1; }
.ytmp .log-card { margin-top:16px; padding:0; }
.ytmp .log-card summary { display:flex; align-items:center; gap:14px; padding:14px 18px; cursor:pointer; list-style:none; user-select:none; }
.ytmp .log-card summary::-webkit-details-marker { display:none; }
.ytmp .log-card summary::before { content:"▸"; color:var(--n-88); transition:transform .15s; }
.ytmp .log-card[open] summary::before { transform:rotate(90deg); }
.ytmp .log-card summary h2 { margin:0; }
.ytmp .log-last { color:var(--n-5f); font:12px ui-monospace, monospace; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; flex:1; text-align:right; }
.ytmp .log-last.flash { animation:ytmp-log-flash 1.2s ease-out; }
@keyframes ytmp-log-flash { from { color:var(--n-cf); } to { color:var(--n-5f); } }
.ytmp .log-card[open] .log-last { visibility:hidden; }
.ytmp .log-card .log { padding:0 18px 16px; }
.ytmp .log { max-height:150px; overflow:auto; font:12px ui-monospace, monospace; color:var(--n-aa); white-space:pre-wrap; text-align:right; }
.ytmp .chat-card { display:flex; flex-direction:column; }
.ytmp .chat-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ytmp .chat-head h2 { margin:0; }
.ytmp .chat-tools { display:flex; align-items:center; gap:8px; min-width:0; }
.ytmp .chat-search { display:flex; align-items:center; gap:6px; margin:0; padding:0 8px; height:28px; border:1px solid transparent; border-radius:4px; color:var(--n-66); cursor:text; transition:border-color .15s, background .15s; }
.ytmp .chat-search:hover { border-color:var(--n-2e); }
.ytmp .chat-search:focus-within, .ytmp .chat-search.has-query { border-color:var(--n-44); background:var(--n-11); color:var(--n-aa); }
.ytmp .chat-search svg { width:14px; height:14px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.ytmp .chat-search input { width:90px; padding:0; border:0; background:transparent; font-size:12px; color:var(--n-ee); transition:width .15s; }
.ytmp .chat-search input:focus, .ytmp .chat-search.has-query input { width:180px; }
.ytmp .chat-search input::-webkit-search-cancel-button { filter:invert(.6); cursor:pointer; }
.ytmp .msg.filtered { display:none; }
.ytmp .msg-text mark, .ytmp .msg-name mark { background:#5a4a12; color:#fff; border-radius:2px; padding:0 1px; }
.ytmp .chat-scroll { position:relative; flex:1 1 0; height:0; min-height:160px; margin-top:10px; }
.ytmp .chat-list { height:100%; overflow-y:auto; padding-right:6px; }
.ytmp .chat-empty { min-height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:32px 16px; text-align:center; animation:ytmp-chat-empty-in .25s ease-out; }
@keyframes ytmp-chat-empty-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.ytmp .chat-empty-icon { position:relative; width:64px; height:64px; display:flex; align-items:center; justify-content:center; margin-bottom:6px; border-radius:16px; background:var(--n-1f); border:1px solid var(--n-2b); color:var(--n-77); }
.ytmp .chat-empty-icon::before { content:""; position:absolute; inset:-9px; border-radius:22px; border:1px dashed var(--n-2b); }
.ytmp .chat-empty-icon svg { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .chat-empty[data-state="connecting"] .chat-empty-icon { color:var(--accent-text); }
.ytmp .chat-empty[data-state="connecting"] .chat-empty-icon::before { border-style:solid; border-color:var(--accent-soft); border-top-color:var(--accent); animation:ytmp-chat-empty-spin 1s linear infinite; }
@keyframes ytmp-chat-empty-spin { to { transform:rotate(360deg); } }
.ytmp .chat-empty[data-state="live"] .chat-empty-icon { color:var(--accent-text); background:var(--accent-soft); border-color:transparent; }
.ytmp .chat-empty[data-state="live"] .chat-empty-icon::before { border-color:var(--accent-soft); animation:ytmp-chat-empty-pulse 2.4s ease-out infinite; }
@keyframes ytmp-chat-empty-pulse { 0% { transform:scale(.92); opacity:1; } 100% { transform:scale(1.25); opacity:0; } }
.ytmp .chat-empty-title { margin:0; font-size:15px; font-weight:600; color:var(--n-dd); }
.ytmp .chat-empty-text { margin:0; max-width:340px; font-size:13px; line-height:1.5; color:var(--n-77); }
.ytmp .chat-empty-actions { display:flex; gap:8px; margin-top:8px; }
.ytmp .chat-empty-action { display:inline-flex; align-items:center; gap:7px; padding:7px 14px; font-size:13px; border-radius:4px; }
.ytmp .chat-empty-action svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .chat-empty-hint { margin-top:4px; font-size:11px; color:var(--n-55); }
.ytmp .chat-empty-hint kbd { font:11px ui-monospace, monospace; padding:1px 5px; border:1px solid var(--n-33); border-bottom-width:2px; border-radius:3px; color:var(--n-88); }
@media (prefers-reduced-motion: reduce) {
.ytmp .chat-empty, .ytmp .chat-empty-icon::before { animation:none !important; }
}
.ytmp .chat-card.offline .chat-input, .ytmp .chat-card.offline .emoji-row { opacity:.45; transition:opacity .2s; }
.ytmp .chat-card.offline .chat-input:focus-within { opacity:1; }
.ytmp .chat-jump { position:absolute; left:50%; bottom:12px; z-index:2; display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 12px 0 9px; overflow:hidden;
 background:color-mix(in srgb, var(--n-1c) 88%, transparent); backdrop-filter:blur(6px); color:var(--n-bb); border:1px solid var(--n-3a); border-radius:4px; font-size:12px; font-weight:500;
 box-shadow:0 6px 18px rgba(0,0,0,.5); opacity:0; pointer-events:none; transform:translate(-50%, 8px); transition:opacity .18s, transform .18s, color .15s, border-color .15s, background .15s; }
.ytmp .chat-jump svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .chat-jump.show { opacity:.6; pointer-events:auto; transform:translate(-50%, 0); }
.ytmp .chat-scroll:hover .chat-jump.show, .ytmp .chat-jump.show.unread { opacity:1; }
.ytmp .chat-jump.unread { color:#fff; border-color:var(--accent); }
.ytmp .chat-jump:hover { background:var(--n-2a); color:#fff; }
.ytmp .chat-jump-timer { position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--accent); opacity:.7; transform-origin:left; transform:scaleX(0); }
.ytmp .chat-jump.counting .chat-jump-timer { animation:ytmp-chat-jump-countdown var(--resume, 15s) linear forwards; }
@keyframes ytmp-chat-jump-countdown { from { transform:scaleX(1); } to { transform:scaleX(0); } }
.ytmp .msg { display:flex; gap:8px; padding:5px 0; border-bottom:1px solid var(--n-23); }
.ytmp .msg:last-child { border-bottom:0; }
.ytmp .msg-avatar { width:22px; height:22px; border-radius:50%; background:var(--n-33); object-fit:cover; flex:0 0 auto; margin-top:2px; }
.ytmp .msg-avatar-fallback { display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:var(--n-bb); }
.ytmp .msg-body { min-width:0; flex:1; }
.ytmp .msg-head { display:flex; align-items:center; gap:5px; flex-wrap:wrap; font-size:12px; }
.ytmp .msg-name { font-weight:700; color:var(--n-cf); }
.ytmp .msg-badge { font-size:11px; }
.ytmp .msg-text { font-size:13px; line-height:1.35; color:var(--n-ee); overflow-wrap:anywhere; }
.ytmp .msg-text a { color:#7ab8ff; text-decoration:none; }
.ytmp .msg.super .msg-text { background:#3a2a10; border-radius:4px; padding:4px 6px; color:#ffd479; }
.ytmp .msg.system .msg-text { color:var(--n-88); font-style:italic; }
.ytmp .msg-actions { display:none; gap:4px; flex:0 0 auto; align-items:flex-start; }
.ytmp .msg:hover .msg-actions { display:flex; }
.ytmp .msg-actions button { display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; padding:0 7px; font-size:12px; line-height:1; background:var(--n-2a); color:var(--n-aa); border-radius:4px; }
.ytmp .msg-actions button:hover { background:var(--n-3a); color:#fff; }
.ytmp .msg-actions button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .msg-actions button[data-action="ban"]:hover { color:#ff8a8a; }
.ytmp .msg-actions button.confirm { font-size:12px; }
.ytmp .chat-input { display:flex; gap:8px; margin-top:10px; }
.ytmp .chat-input input { flex:1; padding:8px 10px; }
.ytmp .chat-input button { padding:8px 12px; }
.ytmp .emoji-row { position:relative; display:flex; gap:4px; margin-top:6px; flex-wrap:wrap; }
.ytmp .emoji-row button { background:var(--n-22); padding:2px 6px; font-size:15px; border-radius:4px; }
.ytmp .emoji-row button:hover { background:var(--n-2e); }
.ytmp .emoji-row .emoji-more { display:inline-flex; align-items:center; justify-content:center; min-width:32px; color:var(--n-99); }
.ytmp .emoji-row .emoji-more:hover, .ytmp .emoji-row .emoji-more[aria-expanded="true"] { background:var(--n-33); color:#fff; }
.ytmp .emoji-more svg { width:16px; height:16px; fill:currentColor; }
.ytmp .emoji-picker { position:absolute; left:0; bottom:calc(100% + 6px); z-index:20; width:min(372px, 100%); height:300px; display:flex; flex-direction:column;
 background:var(--n-1f); border:1px solid var(--n-3a); border-radius:4px; box-shadow:0 8px 24px rgba(0,0,0,.5); overflow:hidden; }
.ytmp .emoji-picker[hidden] { display:none; }
.ytmp .emoji-picker-search { display:flex; align-items:center; gap:8px; margin:8px 8px 4px; padding:0 10px; height:32px; background:var(--n-11); border:1px solid var(--n-33); border-radius:4px; color:var(--n-77); }
.ytmp .emoji-picker-search:focus-within { border-color:var(--n-66); color:var(--n-bb); }
.ytmp .emoji-picker-search svg { width:14px; height:14px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.ytmp .emoji-picker-search input { flex:1; min-width:0; padding:0; border:0; background:transparent; font-size:13px; }
.ytmp .emoji-picker-search input::-webkit-search-cancel-button { filter:invert(.6); cursor:pointer; }
.ytmp .emoji-picker-grid { flex:1; min-height:0; overflow-y:auto; padding:4px 8px 8px; }
.ytmp .emoji-picker-grid h4 { position:sticky; top:-4px; z-index:1; margin:0; padding:8px 2px 4px; background:var(--n-1f); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--n-77); }
.ytmp .emoji-picker-cells { display:grid; grid-template-columns:repeat(auto-fill, minmax(36px, 1fr)); }
.ytmp .emoji-picker-cells button { height:36px; padding:0; background:transparent; font-size:21px; line-height:1; border-radius:4px; }
.ytmp .emoji-picker-cells button:hover, .ytmp .emoji-picker-cells button:focus-visible { background:var(--n-33); outline:none; }
.ytmp .emoji-picker-empty { padding:24px 8px; text-align:center; color:var(--n-77); font-size:13px; }
.ytmp input[type="checkbox"] { flex:0 0 auto; width:16px; height:16px; padding:0; }
.ytmp dialog { background:var(--n-1a); color:var(--n-ee); border:1px solid var(--n-44); border-radius:6px; padding:20px; width:min(520px, calc(var(--ytmp-vw) * 0.9)); }
.ytmp dialog::backdrop { background:rgba(0,0,0,.7); }
.ytmp textarea { font:inherit; width:100%; background:var(--n-11); color:#fff; border:1px solid var(--n-44); border-radius:4px; padding:9px 12px; resize:vertical; min-height:64px; line-height:1.4; }
.ytmp textarea:focus { outline:none; border-color:var(--n-77); }
.ytmp .settings-dialog { width:min(860px, calc(var(--ytmp-vw) * 0.94)); height:min(620px, calc(var(--ytmp-vh) * 0.9)); padding:0; overflow:hidden; }
.ytmp .settings-dialog[open] { display:flex; flex-direction:column; }
.ytmp .settings-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid var(--n-2b); }
.ytmp .settings-head h2 { margin:0; font-size:16px; font-weight:600; }
.ytmp .settings-close { width:30px; height:30px; padding:0; background:transparent; color:var(--n-88); font-size:16px; line-height:1; border-radius:4px; }
.ytmp .settings-close:hover { background:var(--n-26); color:#fff; }
.ytmp .settings-body { flex:1; min-height:0; display:grid; grid-template-columns:210px 1fr; }
.ytmp .settings-nav { border-right:1px solid var(--n-2b); padding:10px 8px; display:flex; flex-direction:column; gap:2px; background:var(--n-17); }
.ytmp .settings-tab { display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:8px 10px; background:transparent; color:var(--n-aa); border-radius:4px; font-size:14px; }
.ytmp .settings-tab svg { width:16px; height:16px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .settings-tab:hover { background:var(--n-22); color:var(--n-ee); }
.ytmp .settings-tab[aria-selected="true"] { background:var(--n-2a); color:#fff; }
.ytmp .settings-tab .tab-dot { margin-left:auto; width:6px; height:6px; border-radius:50%; background:#ff7a7a; display:none; }
.ytmp .settings-tab.has-error .tab-dot { display:block; }
.ytmp .settings-panels { overflow-y:auto; padding:20px 24px; }
.ytmp .settings-panel[hidden] { display:none; }
.ytmp .settings-panel h3 { margin:0 0 4px; font-size:17px; font-weight:600; }
.ytmp .settings-panel > .meta { margin:0 0 10px; }
.ytmp .settings-section { padding:14px 0; border-top:1px solid var(--n-26); }
.ytmp .settings-section > label:first-child { margin-top:0; }
.ytmp .subtabs { display:flex; gap:2px; margin:14px 0 0; border-bottom:1px solid var(--n-2b); }
.ytmp .subtab { background:transparent; color:var(--n-88); padding:8px 14px; border-radius:0; font-size:13px; font-weight:600; border-bottom:2px solid transparent; margin-bottom:-1px; }
.ytmp .subtab:hover { color:var(--n-dd); }
.ytmp .subtab[aria-selected="true"] { color:#fff; border-bottom-color:var(--n-ee); }
.ytmp .subpanel { border-top:0; }
.ytmp .subpanel[hidden] { display:none; }
.ytmp .section-title { margin:0 0 4px; font-size:13px; font-weight:600; color:var(--n-dd); }
.ytmp .settings-panel code { color:var(--n-bb); background:var(--n-22); padding:1px 4px; border-radius:3px; font-size:12px; }
.ytmp .variant-legend { display:flex; flex-direction:column; gap:5px; font-size:12px; color:var(--n-88); background:var(--n-16); border:1px solid var(--n-26); border-radius:4px; padding:10px 12px; margin-bottom:6px; }
.ytmp .variant-legend strong { color:var(--n-cc); font-weight:600; }
.ytmp .vl-tag { display:inline-block; min-width:112px; margin-right:6px; color:var(--n-bb); font-weight:600; }
.ytmp .vl-tag.sub { color:#d6b35a; }
.ytmp .vl-tag.nosub { color:var(--n-88); }
.ytmp .menu-hints { color:var(--n-77); }
.ytmp .field-hint { color:var(--n-77); font-size:12px; margin:6px 0 0; }
.ytmp .field-hint code { color:var(--n-bb); background:var(--n-22); padding:1px 4px; border-radius:3px; }
.ytmp .settings-foot { display:flex; align-items:center; gap:10px; padding:12px 18px; border-top:1px solid var(--n-2b); }
.ytmp .settings-foot .form-error { flex:1; margin:0; }
.ytmp .switch-row { display:flex; flex-direction:row-reverse; align-items:center; justify-content:space-between; gap:16px; margin:0; cursor:pointer; color:var(--n-dd); }
.ytmp .switch-row > span { flex:1; min-width:0; }
.ytmp .switch-row small { display:block; color:var(--n-77); font-size:12px; margin-top:2px; }
.ytmp .switch-row input[type="checkbox"], .ytmp .switch-row input[type="checkbox"]:focus { -webkit-appearance:none; appearance:none; position:relative; flex:0 0 auto; width:38px; height:22px; margin:0; padding:0; border:1px solid var(--n-44); border-radius:11px; background:var(--n-2e); cursor:pointer; transition:background .15s, border-color .15s; }
.ytmp .switch-row input[type="checkbox"]::before { content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:var(--n-99); box-shadow:0 1px 3px rgba(0,0,0,.4); transition:transform .15s, background .15s; }
.ytmp .switch-row:hover input[type="checkbox"]:not(:checked) { border-color:var(--n-5f); }
.ytmp .switch-row input[type="checkbox"]:checked { background:var(--accent); border-color:var(--accent); }
.ytmp .switch-row input[type="checkbox"]:checked::before { transform:translateX(16px); background:#fff; }
.ytmp .switch-row input[type="checkbox"]:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ytmp .switch-row input[type="checkbox"]:disabled { opacity:.5; cursor:not-allowed; }
@media (prefers-reduced-motion: reduce) {
.ytmp .switch-row input[type="checkbox"], .ytmp .switch-row input[type="checkbox"]::before { transition:none; }
}
.ytmp .settings-group { margin:22px 0 0; padding-bottom:8px; font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--n-77); }
.ytmp .settings-panel > .meta + .settings-group { margin-top:14px; }
.ytmp .settings-group + .settings-section { border-top-color:var(--n-2e); }
.ytmp .setting-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ytmp .setting-label { color:var(--n-dd); }
.ytmp .setting-label small { display:block; color:var(--n-77); font-size:12px; margin-top:2px; min-height:1.3em; }
.ytmp .segmented { display:inline-flex; flex:0 0 auto; padding:2px; gap:2px; background:var(--n-11); border:1px solid var(--n-2e); border-radius:4px; }
.ytmp .segmented label { position:relative; display:block; margin:0; color:inherit; }
.ytmp .segmented input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.ytmp .segmented span { display:block; padding:6px 12px; border-radius:3px; font-size:13px; color:var(--n-99); white-space:nowrap; transition:background .15s, color .15s; }
.ytmp .segmented label:hover span { color:var(--n-dd); }
.ytmp .segmented input:checked + span { background:var(--n-2e); color:#fff; }
.ytmp .segmented input:focus-visible + span { outline:1px solid var(--n-77); outline-offset:-1px; }
.ytmp .theme-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.ytmp .theme-card { display:flex; flex-direction:column; padding:0; overflow:hidden; text-align:left; background:var(--n-16); color:var(--n-dd); border:1px solid var(--n-2e); border-radius:6px; transition:border-color .15s, box-shadow .15s, transform .15s; }
.ytmp .theme-card:hover { border-color:var(--n-4a); }
.ytmp .theme-card:focus-visible { outline:none; border-color:var(--n-77); }
.ytmp .theme-card[aria-checked="true"] { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.ytmp .theme-preview { display:flex; flex-direction:column; gap:6px; height:118px; padding:10px; background:var(--p-bg); border-bottom:1px solid var(--n-26); }
.ytmp .tp-bar { display:flex; align-items:center; gap:5px; height:14px; padding:0 6px; background:var(--p-card); border:1px solid var(--p-border); border-radius:4px; }
.ytmp .tp-cols { flex:1; display:grid; grid-template-columns:1fr 1.7fr 1fr; gap:5px; min-height:0; }
.ytmp .tp-card { display:flex; flex-direction:column; gap:4px; padding:6px 5px; background:var(--p-card); border:1px solid var(--p-border); border-radius:4px; }
.ytmp .tp-line { height:3px; border-radius:2px; background:var(--p-line); }
.ytmp .tp-line.text { background:var(--p-text); }
.ytmp .tp-line.accent { background:var(--p-accent-text); }
.ytmp .tp-dot { width:5px; height:5px; border-radius:50%; background:var(--p-accent); flex:0 0 auto; }
.ytmp .tp-pill { margin-top:auto; height:7px; width:60%; align-self:flex-end; border-radius:4px; background:var(--p-accent-soft); border:1px solid var(--p-accent); }
.ytmp .theme-info { display:flex; align-items:center; gap:8px; padding:9px 12px 10px; }
.ytmp .theme-name { flex:1; min-width:0; font-size:13px; font-weight:600; }
.ytmp .theme-name small { display:block; margin-top:1px; font-size:11px; font-weight:400; color:var(--n-77); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ytmp .theme-swatches { display:flex; flex:0 0 auto; }
.ytmp .theme-swatches i { width:12px; height:12px; border-radius:50%; border:1.5px solid var(--n-16); margin-left:-4px; }
.ytmp .theme-check { display:none; flex:0 0 auto; width:18px; height:18px; border-radius:50%; background:var(--accent); color:#fff; align-items:center; justify-content:center; }
.ytmp .theme-check svg { width:11px; height:11px; fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .theme-card[aria-checked="true"] .theme-check { display:inline-flex; }
.ytmp .theme-card[aria-checked="true"] .theme-swatches { display:none; }
.ytmp .qa-list { display:flex; flex-direction:column; gap:10px; }
.ytmp .qa-item { border:1px solid var(--n-2e); border-radius:4px; padding:10px; background:var(--n-16); }
.ytmp .qa-item.invalid { border-color:#7a2f2f; }
.ytmp .qa-row { display:flex; gap:8px; align-items:center; }
.ytmp .qa-row .qa-icon { flex:0 0 52px; width:52px; text-align:center; padding:9px 4px; }
.ytmp .qa-row .qa-label { flex:1; min-width:0; }
.ytmp .qa-tool { flex:0 0 auto; width:30px; height:30px; padding:0; background:transparent; color:var(--n-88); border-radius:4px; display:inline-flex; align-items:center; justify-content:center; }
.ytmp .qa-tool:hover:not(:disabled) { background:var(--n-26); color:#fff; }
.ytmp .qa-tool.danger:hover:not(:disabled) { color:#ff8a8a; }
.ytmp .qa-tool:disabled { opacity:.25; }
.ytmp .qa-tool svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .qa-item textarea { margin-top:8px; min-height:56px; }
.ytmp .qa-count { text-align:right; font-size:11px; color:var(--n-66); margin-top:3px; }
.ytmp .qa-count.over { color:#ff7a7a; }
.ytmp .qa-add { margin-top:12px; }
.ytmp .qa-empty { color:var(--n-77); font-size:13px; padding:14px; border:1px dashed var(--n-33); border-radius:4px; text-align:center; }
.ytmp label { display:block; margin:12px 0 6px; color:var(--n-bb); }
.ytmp .statusbar { position:fixed; left:0; right:0; bottom:0; z-index:10; display:flex; align-items:center; gap:14px; padding:5px 14px; background:var(--n-1a); border-top:1px solid var(--n-2b); color:var(--n-9a); font-size:12px; }
.ytmp .statusbar .footer-item { white-space:nowrap; display:inline-flex; align-items:center; gap:5px; }
.ytmp .statusbar .footer-item svg { width:13px; height:13px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; opacity:.75; }
.ytmp:not(.dev-mode) .dev-only { display:none !important; }
.ytmp.dev-mode .prod-only { display:none !important; }
.ytmp:not(.dev-mode) #logCard { display:none; }
.ytmp .footer-log { display:inline-flex; align-items:center; gap:7px; max-width:min(calc(var(--ytmp-vw) * 0.56), 760px); height:22px; padding:0 10px; margin:-2px 0; background:transparent; color:var(--n-6f); border:1px solid transparent; border-radius:4px; font:12px ui-monospace, monospace; transition:color .15s, background .15s, border-color .15s; }
.ytmp .footer-log:hover, .ytmp .footer-log[aria-expanded="true"] { color:var(--n-dd); background:var(--n-23); border-color:var(--n-33); }
.ytmp .footer-log svg { width:12px; height:12px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s; }
.ytmp .footer-log[aria-expanded="true"] .footer-log-chevron { transform:rotate(180deg); }
.ytmp .footer-log-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.ytmp .footer-log.flash .footer-log-text { animation:ytmp-footer-log-flash 1.4s ease-out; }
@keyframes ytmp-footer-log-flash { from { color:var(--n-e8); } to { color:inherit; } }
.ytmp .log-drawer { position:fixed; left:50%; bottom:31px; z-index:9; width:min(760px, calc(var(--ytmp-vw) - 32px)); display:flex; flex-direction:column; max-height:calc(var(--ytmp-vh) * 0.45);
 background:color-mix(in srgb, var(--n-16) 50%, transparent); backdrop-filter:blur(8px) saturate(130%); -webkit-backdrop-filter:blur(8px) saturate(130%);
 border:1px solid rgba(255,255,255,.08); border-bottom:0; border-radius:6px 6px 0 0; box-shadow:0 -12px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
 transform:translate(-50%, 0); clip-path:inset(100% 0 0 0); visibility:hidden; transition:clip-path .22s ease, visibility 0s linear .22s; }
.ytmp .log-drawer.open { clip-path:inset(-40px -40px 0 -40px); visibility:visible; transition:clip-path .22s ease, visibility 0s; }
.ytmp .log-drawer-head { display:flex; align-items:center; gap:10px; padding:10px 12px 8px 16px; border-bottom:1px solid rgba(255,255,255,.06); }
.ytmp .log-drawer-head h2 { margin:0; font-size:13px; font-weight:600; color:var(--n-e6); }
.ytmp .log-drawer-head .meta { flex:1; }
.ytmp .log-drawer-body { flex:1 1 auto; min-height:0; overflow:auto; margin:0; padding:10px 16px 14px; font:12px/1.55 ui-monospace, monospace; color:var(--n-c4); text-shadow:0 1px 2px rgba(0,0,0,.6); white-space:pre-wrap; overflow-wrap:anywhere; }
.ytmp .log-drawer-body:empty::before { content:attr(data-empty); color:var(--n-66); }
.ytmp .statusbar { display:grid; grid-template-columns:1fr auto 1fr; }
.ytmp .footer-left, .ytmp .footer-center, .ytmp .footer-right { display:flex; align-items:center; gap:14px; min-width:0; }
.ytmp .footer-center { justify-content:center; }
.ytmp .footer-right { justify-content:flex-end; }
.ytmp .footer-info { display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 8px; margin:-2px 0; background:transparent; color:var(--n-66); border:1px solid transparent; border-radius:4px; font-size:12px; transition:color .15s, background .15s, border-color .15s; }
.ytmp .footer-info:hover, .ytmp .footer-info:focus-visible { outline:none; color:var(--n-dd); background:var(--n-23); border-color:var(--n-33); }
.ytmp .footer-info svg { width:13px; height:13px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .app-version { font-variant-numeric:tabular-nums; }
.ytmp .statusbar #footerStatus { color:var(--n-dd); font-weight:600; }
.ytmp .statusbar #footerStatus.live { color:#8ff0a4; }
.ytmp .statusbar #footerStatus.warn { color:#ffd479; }
.ytmp .statusbar .quota-warn { color:#ffd479; font-weight:600; }
.ytmp .statusbar .quota-critical { color:#ff7a7a; font-weight:700; }
.ytmp .card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ytmp .card-head h2 { margin:0; white-space:nowrap; }
.ytmp .card-head h2, .ytmp .chat-head h2, .ytmp .log-card summary h2 { font-size:14px; font-weight:600; letter-spacing:.01em; color:var(--n-e6); line-height:30px; display:flex; align-items:center; gap:8px; }
.ytmp .search-row { display:flex; gap:8px; margin-top:12px; }
.ytmp .search { flex:1; min-width:0; padding:7px 10px; font-size:13px; }
.ytmp .ubadge { display:inline-flex; vertical-align:-2px; margin-left:5px; }
.ytmp .ubadge svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .ubadge.member { color:#2ba640; }
.ytmp .ubadge.member svg { fill:currentColor; }
.ytmp .ubadge.sub { color:#d6b35a; }
.ytmp .ubadge.nosub { color:var(--n-5a); }
.ytmp .user.member .avatar, .ytmp .user.member .avatar-fallback { box-shadow:0 0 0 2px var(--n-1a), 0 0 0 3.5px #2ba640; }
.ytmp .menu-status { display:flex; flex-wrap:wrap; gap:4px 10px; margin-top:2px; }
.ytmp .menu-status svg { width:12px; height:12px; vertical-align:-1px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .menu-member { color:#2ba640; }
.ytmp .menu-member svg { fill:currentColor; }
.ytmp .menu-sub.sub-1 { color:#d6b35a; }
.ytmp .menu-sub.sub-0, .ytmp .menu-sub.sub--1, .ytmp .menu-sub.sub-pending { color:var(--n-77); }
.ytmp .visits { color:var(--n-77); font-size:11px; margin-left:4px; font-weight:400; }
.ytmp .msg-actions button.confirm { background:#7a1f1f; color:#fff; }
.ytmp .char-count { color:var(--n-77); font-size:11px; align-self:center; min-width:52px; text-align:right; }
.ytmp .char-count.over { color:#ff7a7a; }
.ytmp input.blur-secret:not(:placeholder-shown) { color:transparent; text-shadow:0 0 7px var(--n-cc); transition:color .15s, text-shadow .15s; }
.ytmp input.blur-secret:hover, .ytmp input.blur-secret:focus { color:var(--n-ee); text-shadow:none; }
.ytmp .form-error { color:#ff7a7a; min-height:1em; margin:10px 0 0; font-size:13px; }
.ytmp select { font:inherit; background:var(--n-11); color:var(--n-ee); border:1px solid var(--n-44); border-radius:4px; padding:9px 12px; }
.ytmp select:focus { outline:none; border-color:var(--n-77); }
.ytmp .danger-action { flex:0 0 auto; min-width:180px; padding:7px 14px; font-size:13px; }
.ytmp .danger-action:hover:not(:disabled) { background:#7a1f1f; }
.ytmp .danger-action.confirm { background:#a32626; }
.ytmp .danger-action.done { background:var(--n-33); color:#8ff0a4; }
.ytmp .danger-hint { margin:0 0 4px; }
.ytmp .setting-row select { flex:0 0 auto; min-width:180px; padding:7px 12px; font-size:13px; }
.ytmp .backup-action { flex:0 0 auto; min-width:180px; padding:7px 14px; font-size:13px; }
.ytmp .backup-dropzone { display:flex; flex-direction:column; align-items:center; gap:10px; padding:28px 16px; border:1px dashed var(--n-3a); border-radius:6px; background:var(--n-16); text-align:center; }
.ytmp .backup-dropzone svg { width:30px; height:30px; fill:none; stroke:var(--n-77); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .backup-dropzone p { margin:0; color:var(--n-88); font-size:13px; }
.ytmp .backup-state { margin:12px 0 0; padding:9px 12px; border-radius:4px; background:var(--n-1f); color:var(--n-bb); font-size:13px; overflow-wrap:anywhere; }
.ytmp .backup-state.ok { color:#8ff0a4; }
.ytmp .backup-state.err { color:#ff8a8a; }
.ytmp .backup-state[hidden] { display:none; }
.ytmp .backup-state .ob-spinner { display:inline-block; vertical-align:-2px; margin-right:8px; }
.ytmp .info-version { font-variant-numeric:tabular-nums; }
.ytmp .update-state { display:flex; flex-direction:column; gap:8px; }
.ytmp .update-state.available { color:var(--n-dd); border:1px solid color-mix(in srgb, var(--accent) 35%, var(--n-2e)); }
.ytmp .update-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ytmp .update-head strong { color:var(--accent-text); font-weight:600; }
.ytmp .update-notes { margin:0; max-height:160px; overflow:auto; color:var(--n-99); font-size:12px; white-space:pre-line; }
.ytmp .update-progress { height:4px; border-radius:2px; background:var(--n-2e); overflow:hidden; }
.ytmp .update-progress > span { display:block; height:100%; width:0; background:var(--accent); transition:width .15s; }
.ytmp .update-install { flex:0 0 auto; padding:6px 14px; font-size:13px; }
.ytmp .update-interval { display:flex; align-items:center; gap:12px; flex:0 0 auto; }
.ytmp .update-interval output { min-width:92px; color:var(--n-bb); font-size:13px; text-align:right; font-variant-numeric:tabular-nums; }
.ytmp .range { -webkit-appearance:none; appearance:none; width:200px; height:22px; margin:0; padding:0; background:transparent; border:0; cursor:pointer; }
.ytmp .range:focus { outline:none; }
.ytmp .range::-webkit-slider-runnable-track { height:4px; border-radius:2px; background:linear-gradient(to right, var(--accent) var(--fill, 0%), var(--n-33) var(--fill, 0%)); }
.ytmp .range::-webkit-slider-thumb { -webkit-appearance:none; width:16px; height:16px; margin-top:-6px; border-radius:50%; background:#fff; border:0; box-shadow:0 1px 3px rgba(0,0,0,.5); }
.ytmp .range:focus-visible::-webkit-slider-thumb { outline:2px solid var(--accent); outline-offset:2px; }
.ytmp .range:disabled { opacity:.45; cursor:not-allowed; }
.ytmp .setting-row.disabled .setting-label { opacity:.55; }
.ytmp .footer-info.has-update { color:var(--accent-text); }
.ytmp .footer-info.has-update svg { overflow:visible; }
.ytmp .footer-info .update-dot { display:none; width:6px; height:6px; margin-left:-2px; border-radius:50%; background:var(--accent); }
.ytmp .footer-info.has-update .update-dot { display:inline-block; }
.ytmp .restore-dialog { width:min(560px, calc(var(--ytmp-vw) * 0.92)); }
.ytmp .restore-dialog h2 { margin:0 0 4px; font-size:17px; font-weight:600; }
.ytmp .restore-meta { margin:0 0 16px; overflow-wrap:anywhere; }
.ytmp .restore-question { margin:0 0 8px; color:var(--n-bb); font-size:13px; }
.ytmp .restore-options { border:1px solid var(--n-2b); border-radius:6px; overflow:hidden; }
.ytmp .restore-option { display:flex; align-items:flex-start; gap:12px; margin:0; padding:11px 14px; color:var(--n-dd); cursor:pointer; }
.ytmp .restore-option + .restore-option { border-top:1px solid var(--n-26); }
.ytmp .restore-option:hover { background:var(--n-1f); }
.ytmp .restore-option[hidden] { display:none; }
.ytmp .restore-option input { margin:2px 0 0; accent-color:var(--accent); cursor:pointer; }
.ytmp .restore-option small { display:block; color:var(--n-77); font-size:12px; margin-top:2px; }
.ytmp .restore-option.unavailable { color:var(--n-77); cursor:not-allowed; }
.ytmp .restore-option.unavailable:hover { background:transparent; }
.ytmp .restore-option.unavailable input { cursor:not-allowed; }
.ytmp .restore-foot { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }
.ytmp .tooltip { position:fixed; inset:auto; margin:0; padding:6px 10px; max-width:min(340px, calc(var(--ytmp-vw) - 16px)); width:max-content; height:auto; overflow:visible;
 background:var(--n-1f); color:var(--n-e6); border:1px solid color-mix(in srgb, var(--accent) 22%, var(--n-3a)); border-radius:4px;
 font:500 12px/1.45 Inter, system-ui, sans-serif; letter-spacing:.01em; white-space:pre-line; overflow-wrap:anywhere; text-align:left;
 box-shadow:0 10px 28px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04); pointer-events:none;
 opacity:0; transform:translateY(var(--tip-shift, 3px)); transition:opacity .12s ease, transform .12s ease; }
.ytmp .tooltip[data-placement="bottom"] { --tip-shift:-3px; }
.ytmp .tooltip.show { opacity:1; transform:none; }
.ytmp .tooltip::before { content:""; position:absolute; left:var(--arrow-x, 50%); bottom:-5px; width:8px; height:8px; background:inherit; border:inherit; border-width:0 1px 1px 0; border-radius:0 0 2px 0; transform:translateX(-50%) rotate(45deg); }
.ytmp .tooltip[data-placement="bottom"]::before { top:-5px; bottom:auto; border-width:1px 0 0 1px; border-radius:2px 0 0 0; }
@media (prefers-reduced-motion: reduce) {
.ytmp .tooltip { transition:none; transform:none; }
}
.ytmp .lang-select { position:relative; flex:0 0 auto; min-width:180px; }
.ytmp .lang-select > select { display:none; }
.ytmp .lang-select-btn { width:100%; display:flex; align-items:center; gap:10px; padding:7px 10px 7px 12px; background:var(--n-11); color:var(--n-ee); border:1px solid var(--n-44); border-radius:4px; font-size:13px; text-align:left; }
.ytmp .lang-select-btn:hover { border-color:var(--n-5f); }
.ytmp .lang-select-btn:focus-visible, .ytmp .lang-select.open .lang-select-btn { outline:none; border-color:var(--n-77); }
.ytmp .lang-flag { display:block; flex:0 0 auto; width:20px; height:14px; border-radius:2px; overflow:hidden; box-shadow:0 0 0 1px rgba(255,255,255,.14); }
.ytmp .lang-label { flex:1; min-width:0; }
.ytmp .lang-chevron { flex:0 0 auto; width:14px; height:14px; fill:none; stroke:var(--n-88); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .15s; }
.ytmp .lang-select.open .lang-chevron { transform:rotate(180deg); }
.ytmp .lang-select-list { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:40; margin:0; padding:4px; list-style:none; background:var(--n-1f); border:1px solid var(--n-3a); border-radius:4px; box-shadow:0 8px 24px rgba(0,0,0,.5); }
.ytmp .lang-select-list[hidden] { display:none; }
.ytmp .lang-option { display:flex; align-items:center; gap:10px; padding:7px 8px; border-radius:3px; font-size:13px; color:var(--n-cc); cursor:pointer; }
.ytmp .lang-option.active, .ytmp .lang-option:hover { background:var(--n-2e); color:#fff; }
.ytmp .lang-option[aria-selected="true"] { color:#fff; font-weight:600; }
.ytmp .lang-check { flex:0 0 auto; width:14px; height:14px; fill:none; stroke:var(--accent); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; visibility:hidden; }
.ytmp .lang-option[aria-selected="true"] .lang-check { visibility:visible; }
@media (prefers-reduced-motion: reduce) {
.ytmp .lang-chevron { transition:none; }
}
.ytmp .onboarding-dialog { width:min(720px, calc(var(--ytmp-vw) * 0.94)); height:min(580px, calc(var(--ytmp-vh) * 0.92)); padding:0; overflow:hidden; }
.ytmp .onboarding-dialog[open] { display:flex; flex-direction:column; }
.ytmp .onboarding-dialog::backdrop { background:var(--n-11); }
.ytmp .ob-stepper { display:flex; margin:0; padding:20px 28px 18px; list-style:none; border-bottom:1px solid var(--n-2b); background:var(--n-17); }
.ytmp .ob-stepper li { position:relative; flex:1; display:flex; flex-direction:column; align-items:center; gap:7px; font-size:12px; color:var(--n-66); text-align:center; }
.ytmp .ob-stepper li::before { content:""; position:absolute; top:13px; right:50%; width:100%; height:2px; background:var(--n-2e); z-index:0; transition:background .2s; }
.ytmp .ob-stepper li:first-child::before { display:none; }
.ytmp .ob-stepper li.done::before, .ytmp .ob-stepper li.current::before { background:var(--accent); }
.ytmp .ob-dot { position:relative; z-index:1; width:28px; height:28px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--n-1f); border:2px solid var(--n-33); color:var(--n-88); font-weight:700; font-size:12px; transition:background .2s, border-color .2s, color .2s; }
.ytmp .ob-dot svg { display:none; width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.ytmp .ob-stepper li.current { color:var(--n-ee); font-weight:600; }
.ytmp .ob-stepper li.current .ob-dot { border-color:var(--accent); color:var(--accent-text); background:var(--accent-soft); }
.ytmp .ob-stepper li.done { color:var(--n-aa); }
.ytmp .ob-stepper li.done .ob-dot { background:var(--accent); border-color:var(--accent); color:#fff; }
.ytmp .ob-stepper li.done .ob-dot span { display:none; }
.ytmp .ob-stepper li.done .ob-dot svg { display:block; }
.ytmp .ob-body { flex:1; min-height:0; overflow-y:auto; padding:24px 32px; }
.ytmp .ob-panel[hidden] { display:none; }
.ytmp .ob-panel { animation:ytmp-chat-empty-in .2s ease-out; }
.ytmp .ob-panel h2 { margin:0 0 6px; font-size:20px; font-weight:600; color:var(--n-f2); }
.ytmp .ob-panel > .meta { margin:0 0 18px; font-size:13px; line-height:1.55; }
.ytmp .ob-hero { display:flex; align-items:center; gap:16px; margin-bottom:18px; }
.ytmp .ob-hero .brand-icon { width:56px; height:56px; padding:11px; }
.ytmp .ob-hero h2 { margin:0 0 4px; }
.ytmp .ob-hero p { margin:0; color:var(--n-88); font-size:13px; line-height:1.5; }
.ytmp .ob-features { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin:0 0 6px; padding:0; list-style:none; }
.ytmp .ob-features li { padding:10px 12px; border:1px solid var(--n-2b); border-radius:4px; background:var(--n-16); font-size:12px; color:var(--n-99); line-height:1.45; }
.ytmp .ob-features strong { display:block; margin-bottom:2px; color:var(--n-dd); font-size:13px; }
.ytmp .ob-badge { display:inline-block; margin-left:6px; padding:1px 6px; border-radius:3px; background:var(--n-26); color:var(--n-99); font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; vertical-align:1px; }
.ytmp .ob-link { color:var(--accent-text); text-decoration:none; }
.ytmp .ob-link:hover { text-decoration:underline; }
.ytmp .ob-status { color:var(--n-99); font-size:13px; display:inline-flex; align-items:center; gap:8px; }
.ytmp .ob-status.ok { color:#8ff0a4; }
.ytmp .ob-spinner { width:13px; height:13px; flex:0 0 auto; border-radius:50%; border:2px solid var(--n-33); border-top-color:var(--accent); animation:ytmp-chat-empty-spin .8s linear infinite; }
.ytmp .ob-summary { margin:0; border:1px solid var(--n-2b); border-radius:6px; overflow:hidden; }
.ytmp .ob-summary > div { display:flex; align-items:center; gap:16px; padding:11px 14px; }
.ytmp .ob-summary > div + div { border-top:1px solid var(--n-26); }
.ytmp .ob-summary dt { flex:0 0 150px; color:var(--n-88); font-size:13px; }
.ytmp .ob-summary dd { flex:1; margin:0; min-width:0; display:flex; align-items:center; gap:10px; }
.ytmp .ob-sum-value { flex:1; min-width:0; color:var(--n-dd); font-size:13px; display:inline-flex; align-items:center; gap:8px; overflow-wrap:anywhere; }
.ytmp .ob-sum-value.ok { color:#8ff0a4; }
.ytmp .ob-sum-value.warn { color:#ffd479; }
.ytmp .ob-sum-value.err { color:#ff8a8a; }
.ytmp .ob-sum-value.pending { color:var(--n-99); }
.ytmp .ob-mini { padding:4px 10px; font-size:12px; }
.ytmp .ob-mini[hidden] { display:none; }
.ytmp .ob-warn { display:flex; align-items:center; gap:12px; margin-top:14px; padding:12px 14px; border:1px solid #5a4a12; border-radius:6px; background:color-mix(in srgb, #5a4a12 22%, transparent); color:#ffd479; font-size:13px; line-height:1.45; }
.ytmp .ob-warn[hidden] { display:none; }
.ytmp .ob-warn span { flex:1; }
.ytmp .ob-foot { display:flex; align-items:center; gap:10px; padding:12px 18px; border-top:1px solid var(--n-2b); }
.ytmp .ob-foot .form-error { flex:1; margin:0; }
.ytmp .ob-foot button[hidden] { display:none; }
.ytmp .ob-foot .ob-finish { background:var(--accent); color:#fff; }
@media (prefers-reduced-motion: reduce) {
.ytmp .ob-panel, .ytmp .ob-spinner { animation:none !important; }
}
