/* Portal > Temas (Adendo 18). Reaproveita as classes kl-* do K-Loading Studio; so o que e novo fica aqui. */
#temas-section .hidden { display: none; }
.th-sub { display: block; font-size: 10.5px; opacity: .65; font-style: normal; }
.th-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 8px 0 12px; }
.th-theme-list { display: flex; flex-wrap: wrap; gap: 8px; }
.th-theme { display: grid; gap: 2px; text-align: left; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(128, 128, 128, .35); background: transparent; color: inherit; cursor: pointer; position: relative; font: inherit; }
.th-theme span { font-size: 11px; opacity: .7; }
.th-theme.active { border-color: #7747d8; box-shadow: 0 0 0 1px #7747d8 inset; }
.th-badge { position: absolute; top: 6px; right: 8px; font-size: 10px; font-style: normal; color: #1b9a73; }
.th-new { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.th-new input, .th-new select { min-width: 0; }
.th-grid-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .th-grid-main { grid-template-columns: minmax(0, 1fr); } }
.th-controls { display: grid; gap: 10px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.th-group { border: 1px solid rgba(128, 128, 128, .25); border-radius: 12px; padding: 8px 12px 12px; margin: 0; min-width: 0; }
.th-group legend { padding: 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 14px; }
.th-grid label { display: grid; gap: 4px; font-size: 12px; min-width: 0; }
.th-grid output { float: right; opacity: .7; }
.th-color { display: flex; align-items: center; gap: 8px; }
.th-color code { font-size: 11px; opacity: .7; }
.th-check { display: flex !important; align-items: center; gap: 6px; }
.th-preview-card { position: sticky; top: 8px; }
.th-stage { --tl-ray-display: inline; position: relative; min-height: 300px; display: grid; place-items: center; padding: 28px 18px; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, var(--tl-accent, #3b82f6) -80%, transparent 60%), #0e1117; perspective: 900px; }
.th-card { position: relative; width: min(300px, 100%); padding: 22px 20px; border-radius: var(--tl-radius-panel, 24px); color: var(--tl-text, #fff); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(var(--tl-glass-blur, 22px)); backdrop-filter: blur(var(--tl-glass-blur, 22px)); box-shadow: var(--tl-card-glow, 0 0 0 transparent); transition: transform .12s linear; }
.th-card h4 { margin: 0 0 4px; font-size: 18px; }
.th-card p { margin: 0 0 14px; font-size: 12px; opacity: .75; }
.th-fake-input { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); font-size: 13px; }
.th-fake-btn { margin-top: 12px; padding: 10px; text-align: center; border-radius: 12px; font-weight: 600; background: var(--tl-accent, #3b82f6); color: var(--tl-on-accent, #fff); }
.th-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.th-ray { fill: none; stroke: var(--tl-accent, #3b82f6); stroke-width: var(--tl-outline-width, 1.5); vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 18 82; opacity: var(--tl-ray-intensity, 1); animation: th-run var(--tl-ray-ms, 6s) linear infinite var(--tl-ray-dir, normal); }
.th-ray-b { stroke-dasharray: 18 82; animation-delay: calc(var(--tl-ray-ms, 6s) / -2); display: var(--tl-ray-b-display, inline); }
.th-stage[data-ray-style="off"] .th-ray { display: none; }
.th-stage[data-ray-style="one"] .th-ray-b { display: none; }
@keyframes th-run { to { stroke-dashoffset: -100; } }
.th-corner { position: absolute; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }
.th-corner-tl { top: -1px; left: -1px; border-radius: var(--tl-radius-panel, 24px) 0 12px 0; }
.th-corner-br { bottom: -1px; right: -1px; border-radius: 12px 0 var(--tl-radius-panel, 24px) 0; }
.th-versions-box { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 6px; font-size: 12px; }
.th-ver small { display: block; opacity: .65; }
.th-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }
.th-ver-pick { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.th-json { width: 100%; font: 11px/1.4 ui-monospace, Consolas, monospace; resize: vertical; }
@media (prefers-reduced-motion: reduce) { .th-ray { animation: none; } .th-card { transition: none; } }
