[hidden] { display: none !important; }

:root {
    --tc-bg: #0F172A;
    --tc-bg-soft: #111C33;
    --tc-glass: rgba(30, 41, 59, 0.55);
    --tc-glass-border: rgba(148, 163, 184, 0.16);
    --tc-text: #E2E8F0;
    --tc-body: #CBD5E1;
    --tc-muted: #94A3B8;
    --tc-faint: #64748B;
    --tc-accent: #4F46E5;
    --tc-accent-soft: #818CF8;
    --tc-line: rgba(51, 65, 85, 0.7);
}

html {
    background: var(--tc-bg);
}

.tc-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(79, 70, 229, 0.16), transparent 60%),
        radial-gradient(700px 420px at -10% 25%, rgba(34, 211, 238, 0.08), transparent 55%),
        var(--tc-bg);
    color: var(--tc-body);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.tc-mesh {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(600px 300px at 70% 10%, rgba(129, 140, 248, 0.10), transparent 65%),
        radial-gradient(500px 260px at 15% 80%, rgba(167, 139, 250, 0.07), transparent 60%);
}

.tc-topbar {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--tc-line);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
}

.tc-topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tc-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.tc-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--tc-accent);
    color: #fff;
}

.tc-brand-mark svg {
    width: 1.125rem;
    height: 1.125rem;
}

.tc-brand-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}

.tc-topbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tc-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tc-muted);
    text-decoration: none;
    border: 1px solid var(--tc-glass-border);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tc-admin-link svg {
    width: 0.875rem;
    height: 0.875rem;
}

.tc-admin-link:hover,
.tc-admin-link:focus-visible {
    color: var(--tc-text);
    border-color: rgba(148, 163, 184, 0.35);
}

.tc-main {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.tc-hero {
    padding: 1.5rem 0 2rem;
    max-width: 46rem;
}

.tc-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tc-accent-soft);
}

.tc-hero-title {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.02em;
}

.tc-hero-sub {
    margin: 0 0 1.5rem;
    max-width: 40rem;
    font-size: 0.9375rem;
    color: var(--tc-muted);
}

.tc-search {
    margin: 0 0 1.75rem;
    max-width: 34rem;
}

.tc-search-box {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border: 1px solid var(--tc-glass-border);
    background: var(--tc-glass);
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tc-search-box:focus-within {
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.tc-search-box svg {
    width: 1rem;
    height: 1rem;
    color: var(--tc-faint);
    flex-shrink: 0;
}

.tc-search-box input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: #F1F5F9;
    font-size: 0.875rem;
}

.tc-search-box input::placeholder {
    color: var(--tc-faint);
}

.tc-search-note {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--tc-faint);
}

.tc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.tc-stat {
    border: 1px solid var(--tc-glass-border);
    background: var(--tc-glass);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

.tc-stat dt {
    font-size: 0.75rem;
    color: var(--tc-muted);
    margin: 0 0 0.25rem;
}

.tc-stat dd {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F8FAFC;
    font-variant-numeric: tabular-nums;
}

.tc-filterbar {
    border: 1px solid var(--tc-glass-border);
    background: var(--tc-glass);
    backdrop-filter: blur(10px);
    border-radius: 0.875rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.tc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tc-chip {
    cursor: pointer;
    border: 1px solid var(--tc-glass-border);
    background: rgba(15, 23, 42, 0.5);
    color: var(--tc-muted);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 999px;
    padding: 0.3125rem 0.8125rem;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tc-chip:hover,
.tc-chip:focus-visible {
    color: var(--tc-text);
    border-color: rgba(148, 163, 184, 0.4);
}

.tc-chip--on {
    color: #fff;
    background: var(--tc-accent);
    border-color: var(--tc-accent);
}

.tc-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.875rem;
}

.tc-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 9rem;
}

/* Collapsible filter group */
/* Grouped skills picker */
.tc-skill-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem 1.5rem;
    max-height: 15rem;
    overflow-y: auto;
    padding: 0.25rem 0.5rem 0.25rem 0;
}
.tc-skill-group-title {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818CF8;
}
.tc-skill-groups .tc-check { margin-bottom: 0.375rem; }

.tc-filter-details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    user-select: none;
}
.tc-filter-details summary::-webkit-details-marker { display: none; }
.tc-filter-caret { font-size: 0.625rem; color: var(--tc-faint); transition: transform 0.15s ease; }
.tc-filter-details[open] .tc-filter-caret { transform: rotate(180deg); }
.tc-filter-details[open] summary { margin-bottom: 0.5rem; }

.tc-filter-field label,
.tc-filter-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tc-muted);
}

.tc-filter-field select {
    font-family: inherit;
    font-size: 0.75rem;
    color: var(--tc-text);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--tc-glass-border);
    border-radius: 0.5rem;
    padding: 0.375rem 0.5rem;
    cursor: pointer;
}

.tc-filter-field select:focus-visible {
    outline: none;
    border-color: rgba(129, 140, 248, 0.55);
}

.tc-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.875rem;
    padding-top: 0.25rem;
}

.tc-lang-check {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    font-size: 0.75rem;
    color: var(--tc-body);
    cursor: pointer;
}

.tc-lang-check input {
    accent-color: var(--tc-accent);
    cursor: pointer;
}

.tc-reset {
    cursor: pointer;
    align-self: flex-end;
    margin-left: auto;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tc-muted);
    background: transparent;
    border: 1px solid var(--tc-glass-border);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tc-reset:hover {
    color: var(--tc-text);
    border-color: rgba(148, 163, 184, 0.4);
}

.tc-result-count {
    margin: 1.25rem 0 0.875rem;
    font-size: 0.75rem;
    color: var(--tc-muted);
    font-variant-numeric: tabular-nums;
}

.tc-result-count.is-filtering {
    animation: tc-shimmer 0.9s linear infinite;
}

@keyframes tc-shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.45; }
    100% { opacity: 1; }
}

.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.tc-card {
    --accent: #818CF8;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid var(--tc-glass-border);
    border-top: 2px solid var(--accent);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.62), rgba(17, 28, 51, 0.55));
    backdrop-filter: blur(12px);
    border-radius: 0.875rem;
    padding: 1.125rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.tc-card:hover {
    border-color: rgba(148, 163, 184, 0.32);
    transform: translateY(-1px);
}

.tc-card--featured {
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35), 0 8px 24px rgba(79, 70, 229, 0.12);
}

.tc-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.tc-card-id {
    min-width: 0;
}

.tc-featured-badge {
    display: inline-block;
    margin-bottom: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tc-accent-soft);
    background: rgba(79, 70, 229, 0.16);
    border: 1px solid rgba(129, 140, 248, 0.4);
    border-radius: 999px;
    padding: 0.0625rem 0.5rem;
}

.tc-card-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #F8FAFC;
    line-height: 1.3;
}

.tc-card-name a {
    color: inherit;
    text-decoration: none;
}

.tc-card-name a:hover,
.tc-card-name a:focus-visible {
    color: #818CF8;
    text-decoration: underline;
    text-decoration-color: rgba(129, 140, 248, 0.6);
    text-underline-offset: 2px;
}

.tc-card-headline {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--tc-muted);
    line-height: 1.45;
}

.tc-radar {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    opacity: 0.85;
}

.tc-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    margin: 0.25rem 0 0;
    padding: 0.625rem 0;
    border-top: 1px solid var(--tc-line);
    border-bottom: 1px solid var(--tc-line);
}

.tc-card-meta dt {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tc-faint);
}

.tc-card-meta dd {
    margin: 0;
    font-size: 0.75rem;
    color: var(--tc-text);
}

.tc-card-block {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tc-card-block h4 {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tc-faint);
}

.tc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-pills li {
    font-size: 0.75rem;
    color: var(--tc-body);
    background: rgba(51, 65, 85, 0.45);
    border: 1px solid var(--tc-glass-border);
    border-radius: 999px;
    padding: 0.25rem 0.625rem;
}

.tc-pill--empty {
    color: var(--tc-faint);
    background: transparent;
    border-style: dashed;
}

.tc-highlights {
    margin: 0;
    padding-left: 1.125rem;
    font-size: 0.75rem;
    color: var(--tc-body);
}

.tc-highlights li + li {
    margin-top: 0.25rem;
}

.tc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.tc-category-badge--secondary {
    opacity: 0.75;
    font-weight: 400;
}

.tc-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--tc-line);
}

.tc-category-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 0.1875rem 0.625rem;
    white-space: nowrap;
}

.tc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: flex-end;
}

.tc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    font-size: 0.75rem;
    color: var(--tc-body);
    text-decoration: none;
    border: 1px solid var(--tc-glass-border);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tc-link svg {
    width: 0.75rem;
    height: 0.75rem;
}

.tc-link:hover,
.tc-link:focus-visible {
    color: #fff;
    border-color: rgba(148, 163, 184, 0.4);
}

mark {
    color: #FDE68A;
    background: rgba(250, 204, 21, 0.14);
    border-radius: 0.1875rem;
    padding: 0 0.0625em;
}

.tc-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--tc-muted);
    border: 1px dashed var(--tc-glass-border);
    border-radius: 0.875rem;
}

.tc-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--tc-line);
    padding: 1.5rem 1.25rem 2.5rem;
}

.tc-footer p {
    max-width: 1120px;
    margin: 0 auto;
    font-size: 0.75rem;
    color: var(--tc-faint);
}

@media (max-width: 720px) {
    .tc-hero-title {
        font-size: 1.5rem;
    }

    .tc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-grid {
        grid-template-columns: 1fr;
    }

    .tc-filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .tc-filter-field {
        min-width: 0;
    }

    .tc-reset {
        align-self: flex-start;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-card,
    .tc-card:hover {
        transform: none;
        transition: none;
    }

    .tc-result-count.is-filtering,
    .tc-result-count.is-filtering:hover {
        animation: none;
    }
}

.tc-match-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
@media (min-width: 900px) {
    .tc-panel-form .tc-check-grid,
    .tc-skill-groups { max-height: 14rem; }
}

.tc-panel {
    border: 1px solid var(--tc-glass-border);
    background: var(--tc-glass);
    backdrop-filter: blur(10px);
    border-radius: 0.875rem;
    padding: 1.125rem;
}

.tc-field {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}

.tc-field textarea {
    width: 100%;
    max-width: 100%;
    min-height: 9.5rem;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #F1F5F9;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--tc-glass-border);
    border-radius: 0.625rem;
    padding: 0.625rem 0.75rem;
}

.tc-field textarea::placeholder {
    color: var(--tc-faint);
}

.tc-field textarea:focus-visible {
    outline: none;
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.tc-field-hint {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    color: var(--tc-faint);
}

.tc-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.875rem;
    margin-top: 0.5rem;
    max-height: 13rem;
    overflow-y: auto;
    padding: 0.125rem;
}

.tc-check {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    font-size: 0.75rem;
    color: var(--tc-body);
    cursor: pointer;
    white-space: nowrap;
}

.tc-check input {
    accent-color: var(--tc-accent);
    cursor: pointer;
}

.tc-match-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tc-btn {
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tc-text);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--tc-glass-border);
    border-radius: 0.5rem;
    padding: 0.4375rem 0.875rem;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tc-btn:hover,
.tc-btn:focus-visible {
    color: #fff;
    border-color: rgba(148, 163, 184, 0.4);
}

.tc-btn--primary {
    color: #fff;
    background: var(--tc-accent);
    border-color: var(--tc-accent);
}

.tc-btn--primary:hover,
.tc-btn--primary:focus-visible {
    background: #6366F1;
    border-color: #6366F1;
}

.tc-results-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.tc-results-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #F8FAFC;
}

.tc-results-count {
    margin: 0;
    font-size: 0.75rem;
    color: var(--tc-muted);
    font-variant-numeric: tabular-nums;
}

.tc-match-empty p {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--tc-muted);
    border: 1px dashed var(--tc-glass-border);
    border-radius: 0.75rem;
}

.tc-score-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--tc-accent);
    border-radius: 999px;
    padding: 0.25rem 0.625rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tc-pills--matched li {
    color: #A7F3D0;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.45);
}

.tc-pills--missing li {
    color: var(--tc-faint);
    border-style: dashed;
}

.tc-match-metrics {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--tc-body);
    font-variant-numeric: tabular-nums;
}

.tc-match-why {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    color: var(--tc-faint);
}

.tc-note-label {
    font-weight: 600;
    color: var(--tc-muted);
}

@media (max-width: 900px) {
    .tc-match-layout {
        grid-template-columns: 1fr;
    }
}

/* Pipeline strip */

.tc-pipeline {
    max-width: 960px;
    margin: 0 auto 2rem;
    border: 1px solid var(--tc-glass-border);
    border-radius: 16px;
    background: var(--tc-glass);
    padding: 1.25rem 1.4rem;
}

.tc-pipeline-title {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tc-muted);
    text-align: center;
}

.tc-pipeline-svg {
    display: block;
    width: 100%;
    height: auto;
}
/* WOW layer: motion + glow (all respects prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .tc-card { opacity: 1; transform: none; }
  html.js-anim .tc-card { opacity: 0; transform: translateY(16px); transition: opacity 0.45s ease, transform 0.45s ease; }
  html.js-anim .tc-card.is-shown { opacity: 1; transform: none; }
  html.js-anim .tc-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(600px 300px at 30% 20%, rgba(99,102,241,0.18), transparent 60%),
                radial-gradient(500px 260px at 70% 30%, rgba(56,189,248,0.12), transparent 60%);
    animation: tc-hero-drift 14s ease-in-out infinite alternate;
    pointer-events: none;
  }
  @keyframes tc-hero-drift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(2%, 2%, 0) scale(1.06); }
  }
  .tc-stats-bar { height: 2px; background: rgba(148,163,184,0.15); border-radius: 2px; overflow: hidden; margin-top: 1.25rem; }
  .tc-stats-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6366F1, #38BDF8); transition: width 1.2s cubic-bezier(0.22,1,0.36,1); }
  .tc-stats-bar.is-shown span { width: 100%; }
  input.tc-search:focus-visible { box-shadow: 0 0 0 3px rgba(99,102,241,0.35), 0 0 24px rgba(99,102,241,0.18); }
}

/* Ensure hero can host the glow */
.tc-hero { position: relative; overflow: hidden; }
