/* assets/css/yt-tools.css — YouTube tool pages (/tools/youtube, /tools/yt-*). Builds on tools.css. */

/* Guest page shell */
body.yt-public { background: var(--bg-0, #0d0d0d); color: var(--text-1, #eee); margin: 0; }
.yt-pub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    max-width: 1100px; margin: 0 auto; padding: 16px 20px; }
.yt-pub-brand { color: #8ef6ff; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.yt-pub-head nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.yt-pub-head nav a { color: var(--text-2, #ccc); text-decoration: none; font-size: .9rem; }
.yt-pub-head nav a:hover { color: #fff; }
.yt-pub-btn { background: var(--brand, #00ffd5); color: #062a25 !important; padding: 8px 14px; border-radius: 10px; font-weight: 700; }

.yt-wrap { max-width: 980px; }
.yt-h2 { font-size: 1.15rem; margin: 26px 0 12px; color: #fff; }
.yt-h3 { font-size: 1rem; margin: 18px 0 10px; color: #fff; }
.yt-h3 small { color: var(--muted, #9aa3af); font-weight: 400; }
.yt-hint { font-size: .82rem; color: var(--muted, #9aa3af); margin-top: 8px; }
.yt-row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Hub cards */
.yt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.yt-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 14px; text-decoration: none; color: inherit;
    background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); transition: border-color .15s, transform .15s; }
a.yt-card:hover { border-color: rgba(0, 255, 213, .45); transform: translateY(-2px); }
.yt-card.is-soon { opacity: .75; }
.yt-card-icon { font-size: 1.6rem; }
.yt-card-title { font-weight: 700; color: #fff; }
.yt-card-desc { font-size: .88rem; color: var(--text-3, #aaa); line-height: 1.45; flex: 1; }
.yt-card-go { font-size: .85rem; color: var(--brand, #00ffd5); font-weight: 700; }
.yt-soon { font-size: .7rem; background: #2a2a12; color: #ffd84d; padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }
.yt-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding: 20px;
    border-radius: 14px; background: linear-gradient(135deg, #0b2830, #0a1a1f); border: 1px solid rgba(0, 255, 213, .15); }
.yt-cta p { margin: 4px 0 0; color: var(--muted, #9aa3af); font-size: .9rem; }
.yt-cta-btns { display: flex; gap: 10px; }
.yt-cta-btns .tools-btn { text-decoration: none; }

/* Forms */
.yt-adv { margin-top: 10px; font-size: .88rem; color: var(--text-2, #ccc); }
.yt-adv summary { cursor: pointer; color: var(--muted, #9aa3af); }
.yt-adv-row, .yt-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.yt-adv-row label, .yt-calc-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--text-2, #ccc); }
.yt-calc-grid input[type=range] { accent-color: var(--brand, #00ffd5); }
.yt-textarea { width: 100%; box-sizing: border-box; resize: vertical; font-size: .95rem; }

/* Channel header */
.yt-ch { display: flex; gap: 16px; align-items: center; margin: 6px 0 16px; }
.yt-ch img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.yt-ch-video img { width: 160px; height: 90px; border-radius: 10px; }
.yt-ch h2 { margin: 0 0 4px; font-size: 1.25rem; color: #fff; }
.yt-ch-meta { font-size: .85rem; color: var(--muted, #9aa3af); }
.yt-ch-meta a { color: var(--brand, #00ffd5); }
.yt-id { margin-top: 8px; font-size: .85rem; color: var(--text-2, #ccc); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.yt-id code { background: #0f0f0f; padding: 3px 8px; border-radius: 6px; color: #8ef6ff; }

/* Stats */
.yt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.yt-stats > div { background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); border-radius: 12px; padding: 12px 14px; }
.yt-stats b { display: block; font-size: 1.15rem; color: #fff; }
.yt-stats span { font-size: .78rem; color: var(--muted, #9aa3af); }

.yt-earn { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.yt-earn > div { background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); border-radius: 12px; padding: 14px; }
.yt-earn > div.big { border-color: rgba(0, 255, 213, .4); background: linear-gradient(135deg, #0b2830, #0a1a1f); }
.yt-earn span { display: block; font-size: .8rem; color: var(--muted, #9aa3af); margin-bottom: 4px; }
.yt-earn b { font-size: 1.2rem; color: #fff; }
.yt-earn b small { display: block; font-size: .8rem; color: #8ef6ff; font-weight: 500; margin-top: 2px; }
.yt-earn .yt-sub { display: block; font-size: .75rem; color: var(--muted, #9aa3af); margin-top: 4px; }
.yt-earn .yt-hint { grid-column: 1 / -1; margin: 0; }
.yt-goal { font-size: .95rem; color: var(--text-1, #eee); margin: 12px 0 0; }
.yt-goal b { color: #8ef6ff; }

/* Videos */
.yt-vids { display: flex; flex-direction: column; gap: 8px; }
.yt-vid { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; color: inherit;
    background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); }
.yt-vid:hover { border-color: rgba(0, 255, 213, .35); }
.yt-vid img { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.yt-vid div { flex: 1; min-width: 0; }
.yt-vid b { display: block; font-size: .9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-vid span { font-size: .78rem; color: var(--muted, #9aa3af); }
.yt-vid em { font-style: normal; font-weight: 800; font-size: 1rem; color: var(--text-2, #ccc); padding: 0 8px; }
.yt-vid em.hot { color: #ffb020; }

/* Tags and checks */
.yt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.yt-tags span { background: #0f0f0f; border: 1px solid var(--border-2, #222); padding: 5px 10px; border-radius: 20px; font-size: .82rem; color: var(--text-1, #eee); }
.yt-checks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.yt-checks li.ok { color: #6ee7a8; }
.yt-checks li.warn { color: #ffb4a2; }
.yt-checks li.tip { color: var(--muted, #9aa3af); }

/* Title checker */
.yt-tc-title { color: #fff; font-size: 1rem; }
.yt-score { font-weight: 800; font-size: 1.1rem; padding: 4px 12px; border-radius: 20px; }
.yt-score.good { background: #0f3324; color: #6ee7a8; }
.yt-score.ok { background: #33290f; color: #ffd84d; }
.yt-score.bad { background: #3a1414; color: #ff8a80; }
.yt-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.yt-previews small { color: var(--muted, #9aa3af); font-size: .75rem; }
.yt-prev { display: flex; gap: 10px; margin-top: 4px; }
.yt-prev-thumb { width: 96px; height: 54px; border-radius: 8px; background: linear-gradient(135deg, #222, #333); flex-shrink: 0; }
.yt-prev p { margin: 0; font-size: .88rem; color: #fff; line-height: 1.3; font-weight: 600; }

/* Explainer + more tools */
.yt-explain { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--bg-1, #111); border: 1px solid var(--border-2, #222); }
.yt-explain h3 { margin: 0 0 8px; font-size: 1rem; color: #fff; }
.yt-explain p { margin: 0; font-size: .88rem; color: var(--text-3, #aaa); line-height: 1.55; }
.yt-more { margin-top: 24px; }
.yt-more h3 { font-size: 1rem; color: #fff; margin: 0 0 10px; }
.yt-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.yt-more-card { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: #fff;
    background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); font-size: .9rem; }
.yt-more-card:hover { border-color: rgba(0, 255, 213, .45); }

@media (max-width: 600px) {
    .yt-ch { flex-direction: column; align-items: flex-start; }
    .yt-vid img { width: 96px; height: 54px; }
}

/* ── Phase 1: toolbar, niches, filters, channel rows, outliers, similar, swipe file ── */
.yt-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.yt-toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.yt-toolbar-right .glow-input { margin: 0; min-width: 200px; }
.yt-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.yt-tabs button { background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); color: var(--text-2, #ccc);
    padding: 7px 12px; border-radius: 20px; font-size: .82rem; cursor: pointer; }
.yt-tabs button.active, .tools-btn-sm.on { border-color: var(--brand, #00ffd5); color: #8ef6ff; background: #0b2830; }
a.tools-btn-sm { text-decoration: none; display: inline-block; }
.yt-back { color: var(--brand, #00ffd5); text-decoration: none; font-size: .9rem; }

.yt-niche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.yt-niche { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; text-decoration: none; color: inherit;
    background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); transition: border-color .15s, transform .15s; }
.yt-niche:hover { border-color: rgba(0, 255, 213, .45); transform: translateY(-2px); }
.yt-niche-top { display: flex; gap: 10px; align-items: center; }
.yt-niche-top div { flex: 1; min-width: 0; }
.yt-niche-top b { display: block; color: #fff; }
.yt-niche-top small { color: var(--muted, #9aa3af); font-size: .76rem; }
.yt-niche-icon { font-size: 1.6rem; }
.yt-opp { min-width: 44px; text-align: center; font-weight: 800; padding: 6px 8px; border-radius: 10px; font-size: 1rem; }
.yt-opp.good { background: #0f3324; color: #6ee7a8; } .yt-opp.ok { background: #33290f; color: #ffd84d; }
.yt-opp.low { background: #2a1a1a; color: #ff9f8f; } .yt-opp.none { background: #1b1b1b; color: #777; }
.yt-niche-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: .78rem; color: var(--muted, #9aa3af); }
.yt-niche-stats b { color: #fff; font-size: .9rem; }
.yt-niche-foot { color: #777; font-size: .74rem; }

.yt-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.yt-filters label { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; color: var(--muted, #9aa3af); }
.yt-filters .glow-input { margin: 0; }
.yt-filters-go { display: flex; align-items: end; }

.yt-ch-list { display: flex; flex-direction: column; gap: 8px; }
.yt-ch-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2, #141414);
    border: 1px solid var(--border-2, #222); flex-wrap: wrap; }
.yt-ch-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.yt-ch-row-main { flex: 1; min-width: 180px; }
.yt-ch-row-main b { color: #fff; display: block; }
.yt-ch-row-main small, .yt-ch-row-num small { color: var(--muted, #9aa3af); font-size: .74rem; }
.yt-ch-row-num { text-align: right; min-width: 74px; }
.yt-ch-row-num b { display: block; color: #fff; font-size: .9rem; }
.yt-ch-row-act { display: flex; gap: 6px; }
.yt-pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 14px 0; color: var(--muted, #9aa3af); font-size: .85rem; }

.yt-out-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.yt-out { display: flex; flex-direction: column; gap: 5px; }
.yt-out b { color: #fff; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-out small { color: var(--muted, #9aa3af); font-size: .76rem; }
.yt-out small a { color: var(--text-2, #ccc); }
.yt-out .tools-btn-sm { align-self: flex-start; }
.yt-out-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.yt-out-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-out-thumb em, .yt-swipe-thumb em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-weight: 800; font-size: .85rem;
    background: rgba(0, 0, 0, .8); padding: 2px 8px; border-radius: 6px; color: #fff; }
.yt-out-thumb em.hot, .yt-swipe-thumb em.hot { color: #ffb020; }
.yt-out-thumb em.fire { color: #ff5a36; }

.yt-vid .tools-btn-sm { flex-shrink: 0; }
.yt-sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.yt-sim { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border-radius: 12px;
    text-decoration: none; color: inherit; background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); }
.yt-sim:hover { border-color: rgba(0, 255, 213, .45); }
.yt-sim img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.yt-sim b { color: #fff; font-size: .86rem; }
.yt-sim small { color: var(--muted, #9aa3af); font-size: .74rem; }
.yt-sim small.why { color: #8ef6ff; }

.yt-swipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.yt-swipe { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); }
.yt-swipe-thumb { position: relative; flex-shrink: 0; width: 128px; height: 72px; border-radius: 8px; overflow: hidden; background: #111; }
.yt-swipe-thumb.round { width: 72px; border-radius: 50%; }
.yt-swipe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-swipe-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.yt-swipe-body b { color: #fff; font-size: .88rem; line-height: 1.3; }
.yt-swipe-body small { color: var(--muted, #9aa3af); font-size: .74rem; }
.yt-chip { align-self: flex-start; font-size: .68rem; padding: 2px 8px; border-radius: 20px; background: #0b2830; color: #8ef6ff; }
.yt-note { margin: 4px 0 0 !important; font-size: .82rem; resize: vertical; width: 100%; box-sizing: border-box; }
.yt-swipe-actions { display: flex; gap: 6px; }
@media (max-width: 600px) {
    .yt-ch-row-num { text-align: left; }
    .yt-swipe { flex-direction: column; }
}

/* MCP setup page */
.yt-code { background: #0b0b0b; border: 1px solid var(--border-2, #222); border-radius: 10px; padding: 12px 14px; overflow-x: auto;
    font-size: .8rem; color: #cfe; white-space: pre; margin: 8px 0; }
.yt-token { display: inline-block; margin: 6px 6px 0 0; padding: 6px 10px; border-radius: 8px; background: #0b0b0b; color: #8ef6ff; word-break: break-all; }
.yt-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .85rem; }
.yt-table th, .yt-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border-2, #222); }
.yt-table th { color: var(--muted, #9aa3af); font-weight: 600; font-size: .78rem; }
.yt-table form { margin: 0; }

/* Number and search boxes in tool input rows look like the text boxes (tools.css only styles text/url). */
.yt-wrap .tools-input-row input[type="number"],
.yt-wrap .tools-input-row input[type="search"] {
    flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-2, #222);
    background: var(--bg-1, #111); color: var(--text-1, #eee); font-size: 1rem; outline: none; transition: border-color .2s;
    min-width: 0; box-sizing: border-box;
}
.yt-wrap .tools-input-row input[type="number"]::placeholder { color: #777; }
.yt-wrap .tools-input-row .yt-input-sm { flex: 0 1 220px; }

/* Copy button on code snippets */
.yt-code-wrap { position: relative; }
.yt-code-wrap .yt-copy { position: absolute; top: 8px; right: 8px; z-index: 1; }
.yt-code-wrap .yt-code { padding-right: 84px; }

/* Phase 2: tracker */
.yt-live-dot { font-size: .7rem; color: #ff5a36; font-weight: 700; text-transform: uppercase; margin-left: 6px; vertical-align: middle; }
.yt-live-dot::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff5a36; margin-right: 5px;
    animation: yt-pulse 1.6s infinite; }
@keyframes yt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.yt-live { display: flex; flex-direction: column; gap: 8px; }
.yt-live-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2, #141414);
    border: 1px solid var(--border-2, #222); flex-wrap: wrap; }
.yt-live-row.hot { border-color: rgba(255, 176, 32, .55); background: linear-gradient(90deg, #2a1f0c, #141414 40%); }
.yt-live-thumb img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; display: block; }
.yt-live-main { flex: 1; min-width: 180px; }
.yt-live-main b { display: block; color: #fff; font-size: .9rem; line-height: 1.3; }
.yt-live-main small { color: var(--muted, #9aa3af); font-size: .76rem; }
.yt-curve { flex-shrink: 0; }
.yt-hot-text { color: #ffb020 !important; }
.yt-alerts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.yt-alert { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit;
    background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); }
.yt-alert.new { border-color: rgba(0, 255, 213, .4); }
.yt-alert > span { font-size: 1.2rem; }
.yt-alert b { display: block; color: #fff; font-size: .88rem; }
.yt-alert small { color: var(--muted, #9aa3af); font-size: .76rem; }
.yt-ch-row-act form { margin: 0; }
.yt-filters label span { display: flex; align-items: center; gap: 6px; color: var(--text-2, #ccc); font-size: .85rem; padding-top: 18px; }
@media (max-width: 600px) { .yt-curve { width: 100%; } }
.yt-steps { margin: 8px 0; padding-left: 20px; color: var(--text-2, #ccc); font-size: .88rem; line-height: 1.7; }

/* Phase 4: My Channel Analytics */
.yt-connect { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.yt-connect label { display: flex; gap: 8px; align-items: center; color: var(--text-2, #ccc); font-size: .88rem; }
.yt-up { color: #6ee7a8; font-size: .72rem; font-weight: 700; }
.yt-down { color: #ff8a80; font-size: .72rem; font-weight: 700; }
.yt-chart { width: 100%; height: 180px; display: block; margin-top: 8px; }
.yt-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.yt-grid-3 .tools-input-card { margin: 0; }
.yt-bars { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.yt-bar-row { display: grid; grid-template-columns: 120px 1fr 52px; gap: 8px; align-items: center; font-size: .8rem; color: var(--text-2, #ccc); }
.yt-bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-bar { height: 8px; background: #1b1b1b; border-radius: 6px; overflow: hidden; }
.yt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #00ffd5, #00b3ff); }
.yt-bar-row em { font-style: normal; text-align: right; color: #fff; }

/* Form fields on the MCP Hub and API pages (grid forms, key boxes) look like the tool text boxes. */
.yt-wrap .hub-form input, .yt-wrap .hub-form select, .yt-wrap .api-form input, .yt-wrap .hub-cat input,
.yt-wrap .tools-input-row input[type="password"] {
    width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border-2, #222);
    background: var(--bg-1, #111); color: var(--text-1, #eee); font-size: .95rem; outline: none; transition: border-color .2s;
    min-width: 0; box-sizing: border-box;
}
.yt-wrap .tools-input-row input[type="password"] { flex: 1; width: auto; }
.yt-wrap .hub-form input:focus, .yt-wrap .hub-form select:focus, .yt-wrap .api-form input:focus, .yt-wrap .hub-cat input:focus,
.yt-wrap .tools-input-row input[type="password"]:focus { border-color: var(--brand, #00ffd5); }
.yt-wrap .hub-form input::placeholder, .yt-wrap .api-form input::placeholder, .yt-wrap .hub-cat input::placeholder { color: #777; }
.yt-share { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .88rem; }
.yt-share label { display: flex; gap: 6px; align-items: center; cursor: pointer; }

/* Keyword Research (/tools/yt-keyword-research) */
.kr-form-card { background: linear-gradient(180deg, #16181c 0%, #111317 100%); border: 1px solid rgba(0, 255, 213, .18);
    border-radius: 16px; padding: 22px; margin-bottom: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.kr-form-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.kr-form-title { font-size: 1rem; font-weight: 700; color: #fff; }
.kr-form-sub { font-size: .83rem; color: var(--muted, #9aa3af); margin-top: 2px; }
.kr-count-pill { font-size: .78rem; font-weight: 700; color: #8ef6ff; background: rgba(0, 255, 213, .1);
    border: 1px solid rgba(0, 255, 213, .25); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.kr-kw-list { display: flex; flex-direction: column; gap: 10px; }
.kr-kw-row { display: flex; align-items: center; gap: 10px; }
.kr-kw-num { width: 30px; height: 30px; border-radius: 9px; background: rgba(0, 255, 213, .1); border: 1px solid rgba(0, 255, 213, .22);
    color: #8ef6ff; font-size: .82rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kr-kw-input { flex: 1; min-width: 0; height: 46px; padding: 0 15px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .12);
    background: #0b0d10; color: #fff; font-size: .96rem; font-family: inherit; outline: none; box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s, background .18s; }
.kr-kw-input::placeholder { color: #67707d; }
.kr-kw-input:focus { border-color: #00ffd5; background: #090c10; box-shadow: 0 0 0 3px rgba(0, 255, 213, .14); }
.kr-kw-rm { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 107, 107, .25); background: rgba(255, 107, 107, .08);
    color: #ff9a9a; font-size: 1.2rem; line-height: 1; cursor: pointer; flex-shrink: 0; transition: background .15s, border-color .15s; }
.kr-kw-rm:hover { background: rgba(255, 107, 107, .2); border-color: rgba(255, 107, 107, .5); color: #fff; }
.kr-kw-rm[hidden] { display: none; }
.kr-add-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.kr-add-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px;
    border: 1px dashed rgba(0, 255, 213, .4); background: rgba(0, 255, 213, .05); color: #8ef6ff; font-size: .86rem;
    font-weight: 600; font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.kr-add-btn span { font-size: 1.05rem; font-weight: 800; line-height: 1; }
.kr-add-btn:hover:not(:disabled) { background: rgba(0, 255, 213, .13); border-color: #00ffd5; transform: translateY(-1px); }
.kr-add-btn:disabled { opacity: .45; cursor: not-allowed; border-style: solid; }
.kr-add-hint { font-size: .79rem; color: var(--muted, #9aa3af); }
.kr-form-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.kr-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.kr-field span { font-size: .78rem; font-weight: 600; color: var(--muted, #9aa3af); text-transform: uppercase; letter-spacing: .04em; }
.kr-field select { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12);
    background: #0b0d10; color: #f1f5f9; font-size: .9rem; font-family: inherit; outline: none; cursor: pointer;
    transition: border-color .18s, box-shadow .18s; }
.kr-field select:focus { border-color: #00ffd5; box-shadow: 0 0 0 3px rgba(0, 255, 213, .14); }
.kr-submit-btn { height: 44px; padding: 0 24px; border-radius: 10px; border: none; font-family: inherit;
    background: linear-gradient(135deg, #00ffd5 0%, #00c4d4 100%); color: #051c1d; font-weight: 800; font-size: .94rem;
    cursor: pointer; white-space: nowrap; box-shadow: 0 4px 16px rgba(0, 255, 213, .22);
    transition: transform .14s, box-shadow .18s, filter .15s; }
.kr-submit-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0, 255, 213, .34); filter: brightness(1.04); }
.kr-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.kr-cost-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kr-meta-pill { font-size: .8rem; color: var(--text-2, #d1d5db); background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; padding: 5px 10px; }
.kr-meta-pill b { color: #fff; }
.kr-meta-muted { color: var(--muted, #9aa3af); }
@media (max-width: 680px) {
    .kr-form-controls { grid-template-columns: 1fr; }
    .kr-submit-btn { width: 100%; }
}
.kr-winner { margin: 16px 0 12px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #0b2830, #0d1f1a);
    border: 1px solid rgba(0, 255, 213, .35); }
.kr-winner p { margin: 6px 0 0; font-size: .88rem; color: var(--text-2, #ccc); }
.kr-card { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--bg-1, #111); border: 1px solid var(--border-2, #222); }
.kr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.kr-head h2 { margin: 2px 0 0; font-size: 1.3rem; color: #fff; }
.kr-kicker { font-size: .76rem; color: var(--muted, #9aa3af); text-transform: uppercase; letter-spacing: .04em; }
.kr-head-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kr-tag { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.kr-tag.good { background: #0f3324; color: #6ee7a8; }
.kr-tag.ok { background: #33290f; color: #ffd84d; }
.kr-tag.bad { background: #3a1414; color: #ff8a80; }
.kr-pill { font-size: .82rem !important; padding: 3px 9px !important; }
.kr-txt-good { color: #6ee7a8 !important; }
.kr-txt-ok { color: #ffd84d !important; }
.kr-txt-bad { color: #ff8a80 !important; }
.kr-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.kr-box { background: var(--bg-2, #141414); border: 1px solid var(--border-2, #222); border-radius: 12px; padding: 14px 16px; }
.kr-box h3 { margin: 0 0 8px; font-size: .98rem; color: #fff; }
.kr-box h3 small { color: var(--muted, #9aa3af); font-weight: 400; font-size: .8rem; }
.kr-box p { margin: 0; font-size: .88rem; color: var(--text-2, #ccc); line-height: 1.5; }
.kr-subhead { margin-top: 12px; font-size: .78rem; color: var(--muted, #9aa3af); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.kr-subhead small { text-transform: none; font-weight: 400; }
.kr-chip { background: #0f0f0f; border: 1px solid var(--border-2, #2a2a2a); padding: 6px 11px; border-radius: 20px; font-size: .82rem;
    color: var(--text-1, #eee); cursor: pointer; transition: border-color .15s, color .15s; font-family: inherit; }
.kr-chip:hover { border-color: rgba(0, 255, 213, .55); color: #8ef6ff; }
.kr-titles { display: flex; flex-direction: column; gap: 8px; }
.kr-title-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px;
    background: #0f0f0f; border: 1px solid var(--border-2, #222); }
.kr-title-main { flex: 1; min-width: 0; }
.kr-title-main b { display: block; font-size: .88rem; color: #fff; line-height: 1.35; }
.kr-title-main small { display: block; font-size: .75rem; color: var(--muted, #9aa3af); margin-top: 2px; }
.kr-title-act { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.kr-demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.kr-demo-grid > div { background: #0f0f0f; border: 1px solid var(--border-2, #222); border-radius: 8px; padding: 8px 10px; }
.kr-demo-grid small { display: block; font-size: .72rem; color: var(--muted, #9aa3af); }
.kr-demo-grid b { display: block; font-size: .84rem; color: #fff; margin-top: 2px; }
.kr-cmp-table th, .kr-cmp-table td { white-space: nowrap; }
