﻿:root {
    --tc-bg: #0B0E11;
    --tc-top: #0D1013;
    --tc-panel: #11161A;
    --tc-panel-2: #151B20;
    --tc-border: #394047;
    --tc-border-soft: #252C32;
    --tc-muted: #A6ABB1;
    --tc-text: #ECEFF1;
    --tc-orange: #F5A000;
    --tc-green: #55D66B;
    --tc-blue: #53BDF2;
    --tc-red: #FF5B5B;
    --tc-yellow: #FFD057;
    --tc-sidebar: 270px;
    --tc-radius: 14px;
    font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--tc-bg); color: var(--tc-text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.tc-body { min-height: 100vh; }
.tc-shell { min-height: 100vh; display: grid; grid-template-columns: var(--tc-sidebar) 1fr; }
.tc-sidebar { position: sticky; top: 0; height: 100vh; background: #0A0D10; border-right: 1px solid var(--tc-border-soft); display: flex; flex-direction: column; padding: 18px 14px; z-index: 20; }
.tc-brand { display: flex; align-items: center; gap: 14px; padding: 10px 8px 18px; border-bottom: 1px solid var(--tc-border-soft); }
.tc-brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--tc-orange); color: #101010; font-weight: 900; letter-spacing: -1px; box-shadow: 0 0 0 1px #ffb21f33, 0 8px 32px #f5a00018; }
.tc-brand-mark.is-large { width: 54px; height: 54px; border-radius: 14px; font-size: 20px; }
.tc-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.tc-brand-copy strong { letter-spacing: .11em; font-size: 14px; }
.tc-brand-copy small { color: var(--tc-muted); margin-top: 5px; }

.tc-product-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tc-product-logo {
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
    image-rendering: auto;
}

.tc-product-logo.is-sidebar {
    width: 54px;
    height: 54px;
}

.tc-product-logo.is-auth {
    width: 68px;
    height: 68px;
}

.tc-product-logo.is-topbar {
    width: 36px;
    height: 36px;
}

.tc-product-wordmark {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-family: "Segoe UI", sans-serif;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0;
}

.tc-product-wordmark.is-sidebar {
    font-size: 22px;
    transform: translateY(1px);
}

.tc-product-wordmark.is-auth {
    font-size: 31px;
}

.tc-product-wordmark.is-topbar {
    font-size: 20px;
    transform: translateY(1px);
}

.tc-product-tc {
    color: var(--tc-orange);
    font-weight: 900;
}

.tc-product-rest {
    color: #F3F3F3;
    font-weight: 700;
}

.tc-empty-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 10px;
}
.tc-company-context { margin: 16px 4px 6px; padding: 14px; border-radius: var(--tc-radius); background: linear-gradient(145deg, #151A1E, #0F1316); border: 1px solid var(--tc-border-soft); }
.tc-company-context strong { display: block; margin-top: 4px; }
.tc-context-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--tc-muted); font-size: 12px; margin-top: 10px; }
.tc-status { display: inline-flex; align-items: center; gap: 6px; }
.tc-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc-yellow); }
.tc-status.is-online i { background: var(--tc-green); box-shadow: 0 0 0 4px #55d66b12; }
.tc-eyebrow { color: var(--tc-orange); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tc-nav { overflow-y: auto; padding: 8px 2px; }
.tc-nav-group { margin: 12px 0 18px; }
.tc-nav-label { padding: 0 10px 8px; font-size: 10px; color: #717981; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.tc-nav-item { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: #C8CDD1; font-size: 13px; border: 1px solid transparent; margin: 2px 0; }
.tc-nav-item:hover { background: #12171B; color: #fff; }
.tc-nav-item.is-active { background: linear-gradient(90deg, #f5a00018, #f5a00008); color: #fff; border-color: #f5a00036; }
.tc-nav-dot { width: 7px; height: 7px; border: 1px solid #737C83; transform: rotate(45deg); }
.tc-nav-item.is-active .tc-nav-dot { background: var(--tc-orange); border-color: var(--tc-orange); }
.tc-nav-stage { margin-left: auto; color: #646D75; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.tc-sidebar-footer { margin-top: auto; border-top: 1px solid var(--tc-border-soft); padding: 14px 8px 2px; display: flex; flex-direction: column; gap: 4px; }
.tc-sidebar-footer small { color: var(--tc-muted); overflow: hidden; text-overflow: ellipsis; }
.tc-link-button { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--tc-orange); text-align: left; cursor: pointer; }
.tc-main { min-width: 0; }
.tc-topbar { min-height: 72px; position: sticky; top: 0; z-index: 10; background: #0D1013EE; backdrop-filter: blur(14px); border-bottom: 1px solid var(--tc-border-soft); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 28px; }
.tc-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tc-topbar-brand { display: none; align-items: center; gap: 10px; padding-right: 14px; margin-right: 2px; border-right: 1px solid var(--tc-border-soft); }
.tc-topbar-title { min-width: 0; }
.tc-topbar strong { display: block; margin-top: 3px; }
.tc-topbar-right { display: flex; gap: 10px; align-items: center; }
.tc-mobile-menu { display: none; background: transparent; color: var(--tc-text); border: 1px solid var(--tc-border); border-radius: 8px; width: 38px; height: 38px; }
.tc-avatar { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: #1D242A; border: 1px solid var(--tc-border); font-size: 12px; font-weight: 800; }
.tc-avatar.is-small { width: 32px; height: 32px; }
.tc-content { padding: 26px 28px 60px; max-width: 1680px; margin: 0 auto; }
.tc-page-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.tc-page-head h1 { margin: 5px 0 6px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.03em; }
.tc-page-head p { color: var(--tc-muted); margin: 0; max-width: 780px; line-height: 1.6; }
.tc-chip, .tc-stage-badge, .tc-pill { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--tc-border); border-radius: 999px; padding: 5px 9px; font-size: 11px; color: #CDD2D6; background: #151A1E; }
.tc-stage-badge { color: var(--tc-orange); border-color: #f5a00044; background: #f5a0000d; }
.tc-pill.is-danger { color: var(--tc-red); border-color: #ff5b5b44; background: #ff5b5b0d; }
.tc-pill.is-ok { color: var(--tc-green); border-color: #55d66b44; background: #55d66b0d; }
.tc-grid { display: grid; gap: 16px; }
.tc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-span-2 { grid-column: span 2; }
.tc-dashboard-row { margin-top: 16px; }
.tc-card { min-width: 0; border: 1px solid var(--tc-border-soft); background: linear-gradient(145deg, var(--tc-panel), #0F1417); border-radius: var(--tc-radius); padding: 18px; box-shadow: 0 18px 48px #00000014; }
.tc-card-label { display: block; color: var(--tc-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 9px; }
.tc-card > strong { display: block; font-size: 18px; }
.tc-card > small { display: block; color: var(--tc-muted); margin-top: 6px; overflow-wrap: anywhere; }
.tc-card-link { transition: transform .15s ease, border-color .15s ease; }
.tc-card-link:hover { transform: translateY(-2px); border-color: #f5a00055; }
.tc-card-link span { display: block; color: var(--tc-muted); line-height: 1.6; margin-top: 8px; }
.tc-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 12px; }
.tc-kpi-grid.compact { grid-template-columns: minmax(260px, 360px); }
.tc-kpi { position: relative; overflow: hidden; border: 1px solid var(--tc-border-soft); background: var(--tc-panel); border-radius: var(--tc-radius); padding: 16px; }
.tc-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #4F5860; }
.tc-kpi.is-orange::before { background: var(--tc-orange); }
.tc-kpi.is-blue::before { background: var(--tc-blue); }
.tc-kpi.is-green::before { background: var(--tc-green); }
.tc-kpi.is-red::before { background: var(--tc-red); }
.tc-kpi span, .tc-kpi small { color: var(--tc-muted); font-size: 11px; }
.tc-kpi strong { display: block; margin: 7px 0 4px; font-size: 25px; letter-spacing: -.03em; }
.tc-section-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }
.tc-section-head.compact { margin: 0 0 14px; }
.tc-section-head h2 { margin: 3px 0 0; font-size: 18px; }
.tc-section-head a { color: var(--tc-orange); font-size: 12px; }
.tc-table-wrap { width: 100%; overflow-x: auto; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tc-table th { text-align: left; color: #727B82; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; padding: 9px 10px; border-bottom: 1px solid var(--tc-border-soft); }
.tc-table td { padding: 11px 10px; border-bottom: 1px solid #20262B; vertical-align: middle; }
.tc-table td strong, .tc-table td small { display: block; }
.tc-table td small { color: var(--tc-muted); margin-top: 3px; }
.tc-health-stack { display: grid; gap: 9px; }
.tc-health-stack > div { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; background: #0D1114; border: 1px solid #20272C; border-radius: 9px; }
.tc-health-stack span { color: var(--tc-muted); }
.tc-green { color: var(--tc-green); }
.tc-yellow { color: var(--tc-yellow); }
.tc-driver-list { display: grid; gap: 7px; }
.tc-driver-row { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid #22282D; }
.tc-driver-row:last-child { border-bottom: 0; }
.tc-driver-row small { display: block; color: var(--tc-muted); margin-top: 3px; }
.tc-rank { color: var(--tc-orange); width: 30px; font-weight: 800; }
.tc-driver-metric { text-align: right; }
.tc-mini-list { display: grid; gap: 7px; margin: 14px 0; }
.tc-mini-list > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid #242A2F; padding: 8px 0; }
.tc-empty-state { display: grid; place-items: start; min-height: 220px; align-content: center; }
.tc-empty-state h2 { margin-bottom: 6px; }
.tc-empty-state p { color: var(--tc-muted); max-width: 650px; line-height: 1.6; }
.tc-muted { color: var(--tc-muted); }

.tc-auth-body { min-height: 100vh; background: radial-gradient(circle at 10% 10%, #f5a0000d, transparent 34%), var(--tc-bg); }
.tc-auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.15fr minmax(360px, 560px); gap: 40px; align-items: center; padding: clamp(30px, 8vw, 110px); }
.tc-auth-shell.is-centered { grid-template-columns: minmax(320px, 520px); justify-content: center; }
.tc-auth-story { max-width: 700px; }
.tc-auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.tc-auth-brand h1 { margin: 3px 0 0; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.05em; }
.tc-auth-story > p { color: #C0C6CA; font-size: 18px; line-height: 1.7; max-width: 680px; }
.tc-auth-story > small { color: #737C83; }
.tc-auth-stripes { display: flex; gap: 7px; margin: 32px 0; }
.tc-auth-stripes span { height: 4px; border-radius: 4px; }
.tc-auth-stripes span:nth-child(1) { width: 80px; background: var(--tc-orange); }
.tc-auth-stripes span:nth-child(2) { width: 42px; background: var(--tc-green); }
.tc-auth-stripes span:nth-child(3) { width: 26px; background: var(--tc-blue); }
.tc-auth-card { background: linear-gradient(145deg, #141A1E, #0E1215); border: 1px solid var(--tc-border); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 100px #0008; }
.tc-auth-card h2 { margin: 6px 0; font-size: 30px; }
.tc-auth-card p { line-height: 1.6; }
.tc-form { display: grid; gap: 8px; margin-top: 24px; }
.tc-form label { margin-top: 8px; color: #CFD4D7; font-size: 12px; font-weight: 700; }
.tc-form input { width: 100%; background: #090C0E; color: var(--tc-text); border: 1px solid var(--tc-border); border-radius: 10px; padding: 12px 13px; outline: none; }
.tc-form input:focus { border-color: var(--tc-orange); box-shadow: 0 0 0 3px #f5a00012; }
.tc-validation { color: var(--tc-red); font-size: 11px; }
.tc-button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border-radius: 10px; border: 1px solid transparent; padding: 10px 16px; cursor: pointer; font-weight: 800; margin-top: 12px; }
.tc-button.is-primary { background: var(--tc-orange); color: #111; }
.tc-alert { padding: 11px 12px; border-radius: 9px; margin-top: 16px; }
.tc-alert.is-danger { border: 1px solid #ff5b5b55; background: #ff5b5b10; color: #FFC0C0; }

@media (max-width: 1180px) {
    .tc-kpi-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
}

@media (max-width: 860px) {
    .tc-shell { grid-template-columns: 1fr; }
    .tc-sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 30px 0 90px #0009; }
    .tc-sidebar.is-open { transform: translateX(0); }
    .tc-mobile-menu { display: inline-grid; place-items: center; }
    .tc-topbar { gap: 12px; padding: 12px 16px; }
    .tc-topbar-left { flex: 1; gap: 12px; }
    .tc-topbar-brand { display: inline-flex; }
    .tc-topbar-title .tc-eyebrow { display: none; }
    .tc-product-logo.is-sidebar { width: 52px; height: 52px; }
    .tc-product-wordmark.is-sidebar { font-size: 21px; }
    .tc-product-wordmark.is-topbar { font-size: 18px; }
    .tc-topbar-title { min-width: 0; }
    .tc-topbar-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tc-content { padding: 20px 16px 50px; }
    .tc-grid-2, .tc-grid-3 { grid-template-columns: 1fr; }
    .tc-span-2 { grid-column: span 1; }
    .tc-auth-shell { grid-template-columns: 1fr; padding: 24px; }
    .tc-auth-story { display: none; }
}

@media (max-width: 620px) {
    .tc-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-page-head { flex-direction: column; }
    .tc-topbar-right .tc-chip { display: none; }
}
/* ========================================================================
   16.2 - Company Dashboard UI V1
   TC Team masaüstü renk paleti ve web panel kabuğu korunur.
   ======================================================================== */

.tc-dashboard-command {
    display: grid;
    gap: 16px;
}

.tc-dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--tc-border-soft);
    border-radius: 18px;
    padding: 24px;
    background:
        radial-gradient(circle at 9% 22%, #f5a00014, transparent 34%),
        linear-gradient(125deg, #151B20 0%, #101519 52%, #0D1114 100%);
    box-shadow: 0 22px 70px #00000020;
}

.tc-dashboard-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -100px;
    top: -130px;
    border: 1px solid #f5a0001f;
    border-radius: 50%;
    box-shadow:
        0 0 0 30px #f5a00008,
        0 0 0 60px #f5a00004;
    pointer-events: none;
}

.tc-dashboard-company,
.tc-dashboard-hero-status,
.tc-dashboard-live,
.tc-dashboard-identity {
    display: flex;
    align-items: center;
}

.tc-dashboard-company {
    gap: 16px;
    min-width: 0;
}

.tc-dashboard-company-mark {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid #f5a00055;
    background: linear-gradient(145deg, #f5a000, #c87f00);
    color: #111;
    font-weight: 950;
    font-size: 18px;
    letter-spacing: -.04em;
    box-shadow: 0 10px 30px #f5a00020;
}

.tc-dashboard-company h1 {
    margin: 5px 0 7px;
    font-size: clamp(26px, 3.1vw, 40px);
    line-height: 1;
    letter-spacing: -.045em;
}

.tc-dashboard-identity {
    flex-wrap: wrap;
    gap: 7px;
    color: var(--tc-muted);
    font-size: 12px;
}

.tc-mono {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    color: #D7DBDE;
}

.tc-dot-separator {
    color: #596169;
}

.tc-dashboard-hero-status {
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.tc-dashboard-live,
.tc-dashboard-generated {
    min-height: 58px;
    border: 1px solid #2A3238;
    border-radius: 12px;
    background: #0C1013B8;
    padding: 11px 13px;
}

.tc-dashboard-live {
    gap: 10px;
}

.tc-live-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--tc-green);
    box-shadow: 0 0 0 5px #55d66b11, 0 0 18px #55d66b55;
}

.tc-dashboard-live strong,
.tc-dashboard-live small,
.tc-dashboard-generated span,
.tc-dashboard-generated strong {
    display: block;
}

.tc-dashboard-live strong,
.tc-dashboard-generated strong {
    font-size: 12px;
}

.tc-dashboard-live small,
.tc-dashboard-generated span {
    color: var(--tc-muted);
    font-size: 10px;
    margin-top: 4px;
}

.tc-dashboard-generated {
    min-width: 100px;
    text-align: right;
}

.tc-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: 11px;
}

.tc-metric-card {
    --metric-accent: #64707A;
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--tc-border-soft);
    border-radius: 14px;
    padding: 15px 15px 14px;
    background:
        linear-gradient(145deg, #12181C, #0E1316);
}

.tc-metric-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--metric-accent), transparent 72%);
    opacity: .85;
}

.tc-metric-card.is-orange { --metric-accent: var(--tc-orange); }
.tc-metric-card.is-blue { --metric-accent: var(--tc-blue); }
.tc-metric-card.is-green { --metric-accent: var(--tc-green); }
.tc-metric-card.is-red { --metric-accent: var(--tc-red); }

.tc-metric-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #9EA6AC;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tc-metric-symbol {
    min-width: 26px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: color-mix(in srgb, var(--metric-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--metric-accent) 28%, transparent);
    color: var(--metric-accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0;
}

.tc-metric-card > strong {
    display: block;
    margin: 10px 0 5px;
    font-size: clamp(23px, 2vw, 30px);
    line-height: 1;
    letter-spacing: -.04em;
}

.tc-metric-card > small {
    display: block;
    min-height: 28px;
    color: #7F8991;
    font-size: 10px;
    line-height: 1.4;
}

.tc-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(300px, .95fr);
    gap: 16px;
}

.tc-dashboard-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr) minmax(260px, .85fr);
    gap: 16px;
}

.tc-dashboard-panel {
    min-width: 0;
    border: 1px solid var(--tc-border-soft);
    border-radius: 16px;
    background:
        linear-gradient(145deg, var(--tc-panel), #0E1316);
    padding: 18px;
    box-shadow: 0 18px 54px #00000014;
}

.tc-dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.tc-dashboard-panel-head.is-compact {
    align-items: center;
}

.tc-dashboard-panel-head h2,
.tc-dashboard-workspace h2 {
    margin: 4px 0 0;
    font-size: 18px;
    letter-spacing: -.02em;
}

.tc-dashboard-panel-head p {
    max-width: 650px;
    margin: 5px 0 0;
    color: var(--tc-muted);
    font-size: 11px;
    line-height: 1.5;
}

.tc-inline-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tc-orange);
    font-size: 11px;
    font-weight: 800;
}

.tc-inline-action:hover {
    color: #FFB32B;
}

.tc-job-feed {
    display: grid;
}

.tc-job-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 70px;
    padding: 10px 2px;
    border-top: 1px solid #20272C;
}

.tc-job-row:first-child {
    border-top: 0;
}

.tc-job-route-mark {
    height: 37px;
    display: grid;
    grid-template-rows: 7px 1fr 7px;
    justify-items: center;
}

.tc-job-route-mark span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid var(--tc-orange);
    background: #161B1F;
}

.tc-job-route-mark span:last-child {
    border-color: var(--tc-green);
}

.tc-job-route-mark i {
    width: 1px;
    background: linear-gradient(var(--tc-orange), #596169, var(--tc-green));
}

.tc-job-main {
    min-width: 0;
}

.tc-job-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tc-job-title strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.tc-job-title strong span {
    color: var(--tc-orange);
    padding: 0 3px;
}

.tc-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    color: #858F96;
    font-size: 10px;
}

.tc-job-distance {
    text-align: right;
}

.tc-job-distance strong,
.tc-job-distance small {
    display: block;
}

.tc-job-distance strong {
    font-size: 17px;
}

.tc-job-distance small {
    margin-top: 2px;
    color: var(--tc-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.tc-pill.is-muted {
    color: #AEB5BA;
    border-color: #616B7244;
    background: #616B720D;
}

.tc-signal-ring-wrap {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
    gap: 16px;
    margin: 18px 0 20px;
}

.tc-signal-ring {
    --tc-ring-value: 0%;
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #10161A 56%, transparent 58%),
        conic-gradient(var(--tc-green) var(--tc-ring-value), #283038 0);
    box-shadow: inset 0 0 0 1px #313940, 0 14px 36px #0004;
}

.tc-signal-ring > div {
    text-align: center;
}

.tc-signal-ring strong,
.tc-signal-ring span {
    display: block;
}

.tc-signal-ring strong {
    font-size: 24px;
    letter-spacing: -.04em;
}

.tc-signal-ring span {
    margin-top: 2px;
    color: var(--tc-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.tc-signal-copy strong,
.tc-signal-copy span {
    display: block;
}

.tc-signal-copy strong {
    font-size: 13px;
}

.tc-signal-copy span {
    margin-top: 6px;
    color: var(--tc-muted);
    font-size: 10px;
    line-height: 1.5;
}

.tc-signal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.tc-signal-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #252D33;
    border-radius: 9px;
    background: #0C1114;
}

.tc-signal-list span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--tc-muted);
    font-size: 10px;
}

.tc-signal-list i {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: #67717A;
}

.tc-signal-list i.is-green { background: var(--tc-green); }
.tc-signal-list i.is-blue { background: var(--tc-blue); }
.tc-signal-list i.is-orange { background: var(--tc-orange); }
.tc-signal-list i.is-yellow { background: var(--tc-yellow); }

.tc-coverage-stack {
    display: grid;
    gap: 11px;
    margin-top: 16px;
}

.tc-coverage-stack > div > div,
.tc-role-row > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--tc-muted);
    font-size: 10px;
}

.tc-coverage-stack strong,
.tc-role-row strong {
    color: #D9DDE0;
}

.tc-progress,
.tc-role-track {
    height: 5px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #242B30;
}

.tc-progress i,
.tc-role-track i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tc-green), #84E694);
}

.tc-progress.is-blue i {
    background: linear-gradient(90deg, var(--tc-blue), #8ED9FF);
}

.tc-contributor-list,
.tc-member-feed,
.tc-role-summary {
    display: grid;
}

.tc-contributor-row {
    display: grid;
    grid-template-columns: 34px 32px minmax(0, 1fr) 76px 58px;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    border-top: 1px solid #22292E;
}

.tc-contributor-row:first-child,
.tc-member-row:first-child {
    border-top: 0;
}

.tc-contributor-rank {
    color: var(--tc-orange);
    font-size: 11px;
    font-weight: 900;
}

.tc-contributor-name {
    min-width: 0;
}

.tc-contributor-name strong,
.tc-contributor-name small,
.tc-contributor-stat strong,
.tc-contributor-stat small {
    display: block;
}

.tc-contributor-name strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.tc-contributor-name small,
.tc-contributor-stat small {
    margin-top: 3px;
    color: var(--tc-muted);
    font-size: 9px;
}

.tc-contributor-stat {
    text-align: right;
}

.tc-contributor-stat strong {
    font-size: 12px;
}

.tc-contributor-stat.is-secondary strong {
    color: var(--tc-blue);
}

.tc-role-row {
    padding: 7px 0;
}

.tc-role-track {
    height: 4px;
}

.tc-role-track i {
    background: linear-gradient(90deg, var(--tc-orange), #FFBE48);
}

.tc-dashboard-note {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 9px;
    align-items: start;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid #263038;
    border-radius: 9px;
    background: #0C1114;
}

.tc-dashboard-note-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid #53bdf244;
    border-radius: 50%;
    color: var(--tc-blue);
    font-size: 10px;
    font-weight: 900;
}

.tc-dashboard-note p {
    margin: 1px 0 0;
    color: #8D979E;
    font-size: 9px;
    line-height: 1.5;
}

.tc-member-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    border-top: 1px solid #22292E;
}

.tc-member-row strong,
.tc-member-row small {
    display: block;
}

.tc-member-row strong {
    font-size: 11px;
}

.tc-member-row small {
    margin-top: 3px;
    color: var(--tc-muted);
    font-size: 9px;
}

.tc-member-row time {
    color: #7D878E;
    font-size: 9px;
}

.tc-dashboard-empty {
    min-height: 160px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 24px;
}

.tc-dashboard-empty.is-small {
    min-height: 120px;
}

.tc-dashboard-empty-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #394047;
    border-radius: 10px;
    color: var(--tc-orange);
    background: #0D1215;
    margin-bottom: 10px;
}

.tc-dashboard-empty strong,
.tc-dashboard-empty small {
    display: block;
}

.tc-dashboard-empty small {
    max-width: 360px;
    margin-top: 6px;
    color: var(--tc-muted);
    font-size: 10px;
    line-height: 1.5;
}

.tc-dashboard-workspace {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(0, 2.25fr);
    gap: 18px;
    align-items: start;
    border: 1px solid var(--tc-border-soft);
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #11171A, #0D1215);
}

.tc-dashboard-workspace p {
    max-width: 460px;
    margin: 6px 0 0;
    color: var(--tc-muted);
    font-size: 10px;
    line-height: 1.6;
}

.tc-dashboard-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tc-dashboard-link {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid #283037;
    border-radius: 10px;
    background: #0C1114;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.tc-dashboard-link:hover {
    transform: translateY(-1px);
    border-color: #f5a00055;
    background: #11171A;
}

.tc-dashboard-link strong,
.tc-dashboard-link small {
    display: block;
}

.tc-dashboard-link strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.tc-dashboard-link small {
    margin-top: 4px;
    color: #727C83;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.tc-dashboard-link b {
    color: var(--tc-orange);
    font-size: 12px;
}

@media (max-width: 1360px) {
    .tc-dashboard-kpis {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

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

    .tc-dashboard-lower-grid > :last-child {
        grid-column: span 2;
    }

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

@media (max-width: 1040px) {
    .tc-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .tc-dashboard-signal {
        display: grid;
        grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
        column-gap: 20px;
    }

    .tc-dashboard-signal .tc-dashboard-panel-head {
        grid-column: span 2;
    }

    .tc-dashboard-signal .tc-coverage-stack {
        align-content: center;
    }
}

@media (max-width: 760px) {
    .tc-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .tc-dashboard-hero-status {
        width: 100%;
        justify-content: flex-start;
    }

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

    .tc-dashboard-lower-grid,
    .tc-dashboard-workspace {
        grid-template-columns: 1fr;
    }

    .tc-dashboard-lower-grid > :last-child {
        grid-column: span 1;
    }

    .tc-dashboard-signal {
        display: block;
    }

    .tc-signal-ring-wrap {
        grid-template-columns: 96px 1fr;
    }

    .tc-signal-ring {
        width: 92px;
        height: 92px;
    }

    .tc-contributor-row {
        grid-template-columns: 30px 32px minmax(0, 1fr) 64px;
    }

    .tc-contributor-stat.is-secondary {
        display: none;
    }
}

@media (max-width: 520px) {
    .tc-dashboard-kpis,
    .tc-dashboard-links,
    .tc-signal-list {
        grid-template-columns: 1fr;
    }

    .tc-dashboard-company-mark {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .tc-dashboard-panel-head {
        flex-direction: column;
    }

    .tc-job-row {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .tc-job-distance {
        grid-column: 2;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 4px;
        margin-top: -8px;
    }
}
/* ========================================================================
   16.3 - Company Members & Performance UI V1
   ======================================================================== */

.tc-alert.is-success {
    border: 1px solid #55d66b55;
    background: #55d66b10;
    color: #B8F6C2;
}

.tc-button.is-secondary {
    border-color: #4A545C;
    background: #171D21;
    color: var(--tc-text);
}

.tc-button.is-secondary:hover {
    border-color: #f5a00066;
    color: #fff;
}

.tc-button.is-danger {
    border-color: #ff5b5b66;
    background: #ff5b5b12;
    color: #FFB8B8;
}

.tc-button.is-danger:hover {
    background: #ff5b5b22;
}

.tc-members-page {
    display: grid;
    gap: 16px;
}

.tc-members-page-head {
    margin-bottom: 0;
}

.tc-members-page-head p {
    max-width: 820px;
    color: var(--tc-muted);
    line-height: 1.55;
}

.tc-members-head-note {
    max-width: 390px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #283139;
    border-radius: 11px;
    background: #0D1215;
    color: #929CA3;
    font-size: 10px;
    line-height: 1.55;
}

.tc-members-note-mark {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid #53bdf244;
    border-radius: 50%;
    color: var(--tc-blue);
    font-size: 11px;
    font-weight: 900;
}

.tc-member-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tc-member-summary-card {
    --summary-accent: #657079;
    position: relative;
    overflow: hidden;
    min-height: 105px;
    padding: 14px;
    border: 1px solid var(--tc-border-soft);
    border-radius: 13px;
    background: linear-gradient(145deg, #12181C, #0E1316);
}

.tc-member-summary-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--summary-accent), transparent 70%);
}

.tc-member-summary-card.is-orange { --summary-accent: var(--tc-orange); }
.tc-member-summary-card.is-blue { --summary-accent: var(--tc-blue); }
.tc-member-summary-card.is-green { --summary-accent: var(--tc-green); }

.tc-member-summary-card span,
.tc-member-summary-card strong,
.tc-member-summary-card small {
    display: block;
}

.tc-member-summary-card span {
    color: #89939A;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tc-member-summary-card strong {
    margin: 8px 0 5px;
    font-size: 27px;
    letter-spacing: -.04em;
}

.tc-member-summary-card small {
    color: #727D84;
    font-size: 9px;
}

.tc-members-filter-card {
    border: 1px solid var(--tc-border-soft);
    border-radius: 13px;
    padding: 12px;
    background: #0E1316;
}

.tc-members-filter-form {
    display: grid;
    grid-template-columns: minmax(230px, 1.6fr) minmax(190px, .9fr) 130px auto auto;
    align-items: end;
    gap: 10px;
}

.tc-members-filter-form label {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: #9AA3A9;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.tc-members-filter-form input[type="search"],
.tc-members-filter-form select,
.tc-member-manage-form input,
.tc-member-manage-form select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #394047;
    border-radius: 9px;
    background: #090D10;
    color: var(--tc-text);
    padding: 8px 10px;
    outline: none;
}

.tc-members-filter-form input:focus,
.tc-members-filter-form select:focus,
.tc-member-manage-form input:focus,
.tc-member-manage-form select:focus {
    border-color: var(--tc-orange);
    box-shadow: 0 0 0 3px #f5a00010;
}

.tc-members-check {
    min-height: 38px;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px !important;
    padding: 0 5px;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
}

.tc-members-check input {
    accent-color: var(--tc-orange);
}

.tc-members-filter-submit {
    margin: 0;
    min-height: 38px;
}

.tc-members-list {
    display: grid;
    gap: 10px;
}

.tc-member-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tc-border-soft);
    border-radius: 15px;
    background: linear-gradient(145deg, #11171B, #0D1215);
    box-shadow: 0 14px 44px #00000014;
}

.tc-member-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #20272C;
}

.tc-member-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.tc-member-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--tc-orange);
    background: #181E22;
}

.tc-member-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.tc-member-title-line > strong {
    font-size: 13px;
}

.tc-member-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    color: #818B92;
    font-size: 9px;
}

.tc-pill.is-blue {
    color: #A9E2FF;
    border-color: #53bdf244;
    background: #53bdf20D;
}

.tc-member-device-badge {
    flex: 0 0 auto;
    min-width: 135px;
    display: grid;
    grid-template-columns: 8px 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #2A3238;
    border-radius: 9px;
    background: #0B1013;
}

.tc-member-device-badge > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tc-yellow);
}

.tc-member-device-badge.is-online > i {
    background: var(--tc-green);
    box-shadow: 0 0 0 4px #55d66b12;
}

.tc-member-device-badge strong,
.tc-member-device-badge small {
    display: block;
}

.tc-member-device-badge strong {
    font-size: 10px;
}

.tc-member-device-badge small {
    margin-top: 3px;
    color: #778188;
    font-size: 8px;
}

.tc-member-performance-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(92px, 1fr));
    border-bottom: 1px solid #20272C;
}

.tc-member-performance-grid > div {
    min-width: 0;
    min-height: 75px;
    padding: 11px 12px;
    border-right: 1px solid #20272C;
}

.tc-member-performance-grid > div:last-child {
    border-right: 0;
}

.tc-member-performance-grid span,
.tc-member-performance-grid strong,
.tc-member-performance-grid small {
    display: block;
}

.tc-member-performance-grid span {
    color: #7D878E;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tc-member-performance-grid strong {
    margin-top: 7px;
    font-size: 15px;
    line-height: 1;
}

.tc-member-performance-grid small {
    margin-top: 4px;
    color: #687279;
    font-size: 8px;
}

.tc-member-telemetry-strip {
    display: grid;
    grid-template-columns: .7fr .7fr 1fr 1.8fr;
    gap: 0;
    background: #0B1013;
}

.tc-member-telemetry-strip > div {
    min-width: 0;
    padding: 9px 12px;
    border-right: 1px solid #20272C;
}

.tc-member-telemetry-strip > div:last-child {
    border-right: 0;
}

.tc-member-telemetry-strip span,
.tc-member-telemetry-strip strong {
    display: block;
}

.tc-member-telemetry-strip span {
    color: #68737A;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tc-member-telemetry-strip strong {
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #AAB1B6;
    font-size: 9px;
    white-space: nowrap;
}

.tc-member-installation {
    font-family: "Cascadia Code", Consolas, monospace;
}

.tc-member-manage {
    border-top: 1px solid #252D33;
}

.tc-member-manage > summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 16px;
    color: var(--tc-orange);
    font-size: 10px;
    font-weight: 800;
    user-select: none;
}

.tc-member-manage > summary::-webkit-details-marker {
    display: none;
}

.tc-member-manage > summary::after {
    content: " +";
}

.tc-member-manage[open] > summary::after {
    content: " −";
}

.tc-member-manage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
}

.tc-member-manage-form,
.tc-member-manage-note {
    min-width: 0;
    padding: 12px;
    border: 1px solid #2A3238;
    border-radius: 10px;
    background: #0C1114;
}

.tc-member-manage-form.is-danger-zone {
    border-color: #ff5b5b2D;
    background: #ff5b5b07;
}

.tc-member-manage-form h3,
.tc-member-manage-note strong {
    margin: 0;
    font-size: 12px;
}

.tc-member-manage-form p,
.tc-member-manage-note p {
    margin: 5px 0 10px;
    color: #7C878E;
    font-size: 9px;
    line-height: 1.5;
}

.tc-member-manage-form label {
    display: grid;
    gap: 5px;
    margin-top: 8px;
    color: #A6ADB2;
    font-size: 9px;
}

.tc-member-manage-form label small {
    color: #667078;
}

.tc-member-owner-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-top: 1px solid #252D33;
    color: #7E888F;
    font-size: 9px;
}

.tc-member-owner-note strong {
    color: var(--tc-orange);
}

.tc-members-empty {
    min-height: 220px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.tc-pagination {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px;
    color: #7E888F;
    font-size: 10px;
}

.tc-pagination-button {
    min-width: 88px;
    padding: 8px 10px;
    border: 1px solid #323A40;
    border-radius: 8px;
    color: #C9CED2;
    text-align: center;
}

.tc-pagination-button:hover {
    border-color: #f5a00055;
    color: #fff;
}

.tc-pagination-button.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.tc-members-history-card {
    border: 1px solid var(--tc-border-soft);
    border-radius: 15px;
    background: linear-gradient(145deg, #11171B, #0D1215);
    padding: 16px;
}

.tc-members-history-card .tc-section-head p {
    max-width: 760px;
    margin: 4px 0 0;
    color: var(--tc-muted);
    font-size: 10px;
    line-height: 1.5;
}

.tc-members-history-list {
    display: grid;
}

.tc-members-history-list article {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid #22292E;
}

.tc-members-history-list article:first-child {
    border-top: 0;
}

.tc-members-history-mark {
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border: 1px solid var(--tc-orange);
    transform: rotate(45deg);
}

.tc-members-history-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.tc-members-history-title strong {
    font-size: 10px;
}

.tc-members-history-list p,
.tc-members-history-list small {
    display: block;
    margin: 4px 0 0;
    color: #7B858C;
    font-size: 9px;
}

.tc-members-history-list time {
    color: #667078;
    font-size: 8px;
    white-space: nowrap;
}

.tc-members-history-empty {
    padding: 18px 0 4px;
    color: #7C868D;
    font-size: 10px;
}

.tc-members-device-policy {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid #53bdf228;
    border-radius: 11px;
    background: #53bdf207;
}

.tc-members-device-policy strong {
    font-size: 10px;
}

.tc-members-device-policy p {
    margin: 4px 0 0;
    color: #7E8990;
    font-size: 9px;
    line-height: 1.55;
}

@media (max-width: 1380px) {
    .tc-member-performance-grid {
        grid-template-columns: repeat(4, minmax(100px, 1fr));
    }

    .tc-member-performance-grid > div:nth-child(4n) {
        border-right: 0;
    }

    .tc-members-filter-form {
        grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) 120px auto;
    }

    .tc-members-filter-submit {
        grid-column: span 4;
        justify-self: end;
        min-width: 110px;
    }
}

@media (max-width: 980px) {
    .tc-member-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-member-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tc-member-device-badge {
        width: 100%;
    }

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

    .tc-member-telemetry-strip > div:nth-child(2) {
        border-right: 0;
    }

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

@media (max-width: 760px) {
    .tc-members-page-head {
        flex-direction: column;
    }

    .tc-members-head-note {
        max-width: none;
    }

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

    .tc-members-filter-submit {
        grid-column: span 1;
        width: 100%;
    }

    .tc-member-performance-grid,
    .tc-member-telemetry-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-member-performance-grid > div:nth-child(2n),
    .tc-member-telemetry-strip > div:nth-child(2n) {
        border-right: 0;
    }

    .tc-members-history-list article {
        grid-template-columns: 10px minmax(0, 1fr);
    }

    .tc-members-history-list time {
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .tc-member-summary-grid,
    .tc-member-performance-grid,
    .tc-member-telemetry-strip {
        grid-template-columns: 1fr;
    }

    .tc-member-performance-grid > div,
    .tc-member-telemetry-strip > div {
        border-right: 0;
    }

    .tc-member-subline {
        display: grid;
        gap: 2px;
    }

    .tc-member-subline > span:nth-child(even) {
        display: none;
    }
}


/* ========================================================================
   16.4 - Company Join Requests & Recruitment UI V1
   ======================================================================== */

.tc-join-page {
    display: grid;
    gap: 16px;
}

.tc-join-page-head {
    align-items: flex-end;
}

.tc-join-head-state {
    min-width: 190px;
    padding: 12px 14px;
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    background: #11161A;
}

.tc-join-head-state span,
.tc-join-head-state small {
    display: block;
    color: #7C878E;
    font-size: 9px;
}

.tc-join-head-state strong {
    display: block;
    margin: 4px 0;
    font-size: 18px;
}

.tc-join-head-state.is-open strong {
    color: var(--tc-green);
}

.tc-join-head-state.is-closed strong {
    color: var(--tc-red);
}

.tc-join-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tc-join-summary {
    padding: 14px;
    border: 1px solid #242B30;
    border-radius: 12px;
    background: #101519;
}

.tc-join-summary span,
.tc-join-summary small {
    display: block;
    color: #78838A;
    font-size: 9px;
}

.tc-join-summary strong {
    display: block;
    margin: 6px 0 4px;
    font-size: 16px;
}

.tc-join-recruitment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tc-join-recruitment-card h2 {
    margin: 5px 0;
}

.tc-join-recruitment-card p {
    max-width: 820px;
    margin: 0;
    color: #859097;
    font-size: 10px;
    line-height: 1.55;
}

.tc-join-recruitment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.tc-join-filter-card {
    padding: 12px 14px;
}

.tc-join-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) 150px 170px 120px auto;
    gap: 10px;
    align-items: end;
}

.tc-join-filter-form label,
.tc-join-review-form label {
    display: grid;
    gap: 5px;
}

.tc-join-filter-form label > span,
.tc-join-review-form label > span {
    color: #7D888F;
    font-size: 9px;
    font-weight: 700;
}

.tc-join-filter-form input,
.tc-join-filter-form select,
.tc-join-review-form textarea {
    width: 100%;
    border: 1px solid #2B343A;
    border-radius: 8px;
    background: #141A1F;
    color: var(--tc-text);
    padding: 9px 10px;
    font: inherit;
}

.tc-join-safety-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tc-join-safety-strip span {
    padding: 10px 12px;
    border: 1px solid #53bdf21e;
    border-radius: 9px;
    background: #53bdf207;
    color: #859198;
    font-size: 9px;
    line-height: 1.45;
}

.tc-join-safety-strip strong {
    color: var(--tc-blue);
}

.tc-join-list {
    display: grid;
    gap: 10px;
}

.tc-join-request-card {
    padding: 15px;
    border: 1px solid #252D32;
    border-radius: 13px;
    background: #101519;
}

.tc-join-request-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.tc-join-request-card > header > div > span,
.tc-join-request-card time {
    color: #778289;
    font-size: 9px;
}

.tc-join-request-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.tc-join-request-title strong {
    font-size: 13px;
}

.tc-join-request-message {
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #20282D;
    border-radius: 9px;
    background: #0D1215;
}

.tc-join-request-message span,
.tc-join-request-meta span,
.tc-join-review-result > span {
    color: #6F7A81;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tc-join-request-message p {
    margin: 5px 0 0;
    color: #B4BCC1;
    font-size: 10px;
    line-height: 1.55;
}

.tc-join-request-meta {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.tc-join-request-meta > div {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #20282D;
    border-radius: 8px;
}

.tc-join-request-meta strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #CBD1D5;
    font-size: 9px;
}

.tc-join-review-result {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 2px solid var(--tc-blue);
    background: #53bdf207;
}

.tc-join-review-result strong,
.tc-join-review-result small {
    display: inline-block;
    margin: 0 8px 0 5px;
}

.tc-join-review-result p {
    margin: 6px 0 0;
    color: #8A959C;
    font-size: 9px;
}

.tc-join-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.tc-join-review-form {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #252D32;
    border-radius: 9px;
    background: #0D1215;
}

.tc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}

.tc-pagination span {
    color: #89939A;
    font-size: 9px;
}

.tc-button.is-disabled {
    pointer-events: none;
    opacity: .4;
}

@media (max-width: 1180px) {
    .tc-join-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .tc-join-filter-form .tc-button {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .tc-join-page-head,
    .tc-join-recruitment-card,
    .tc-join-request-card > header {
        align-items: stretch;
        flex-direction: column;
    }

    .tc-join-head-state {
        min-width: 0;
    }

    .tc-join-summary-grid,
    .tc-join-safety-strip,
    .tc-join-review-grid,
    .tc-join-request-meta,
    .tc-join-filter-form {
        grid-template-columns: 1fr;
    }

    .tc-join-filter-form .tc-button {
        grid-column: span 1;
    }

    .tc-join-recruitment-actions {
        justify-content: space-between;
    }
}


/* ========================================================================
   Table-first data presentation
   Use tables for lists that expose many comparable fields.
   KPI/summary cards remain appropriate for small headline metric groups.
   ======================================================================== */

.tc-data-section {
    display: grid;
    gap: 10px;
}

.tc-data-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.tc-data-section-head h2 {
    margin: 4px 0 2px;
}

.tc-data-section-head p {
    margin: 0;
    color: #7F8A91;
    font-size: 9px;
}

.tc-data-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #242C31;
    border-radius: 11px;
    background: #0F1418;
    scrollbar-width: thin;
}

.tc-data-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 9px;
}

.tc-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 9px;
    border-bottom: 1px solid #2A3338;
    background: #151B1F;
    color: #89949B;
    text-align: left;
    white-space: nowrap;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.tc-data-table tbody td {
    padding: 9px;
    border-bottom: 1px solid #20272C;
    color: #B8C0C5;
    vertical-align: top;
}

.tc-data-table tbody tr:last-child td {
    border-bottom: 0;
}

.tc-data-table tbody tr:hover td {
    background: #131A1E;
}

.tc-data-table th.is-number,
.tc-data-table td.is-number {
    text-align: right;
}

.tc-data-table td > strong,
.tc-table-primary > strong {
    display: block;
    color: #E5E8EA;
    font-size: 9px;
}

.tc-data-table td > small,
.tc-table-primary > small,
.tc-table-note {
    display: block;
    margin-top: 3px;
    color: #758087;
    font-size: 8px;
    line-height: 1.35;
}

.tc-table-primary {
    min-width: 180px;
}

.tc-table-message {
    min-width: 220px;
    max-width: 320px;
    white-space: normal;
    line-height: 1.45;
}

.tc-table-telemetry {
    min-width: 180px;
}

.tc-status-line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.tc-status-line i {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #59636A;
}

.tc-status-line.is-online i {
    background: var(--tc-green);
    box-shadow: 0 0 10px #22c55e40;
}

.tc-table-mono {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Consolas, "Cascadia Mono", monospace;
}

.tc-table-muted {
    color: #667178;
    font-size: 8px;
}

.tc-table-actions-column {
    width: 86px;
    text-align: right !important;
}

.tc-table-actions-cell {
    position: relative;
    text-align: right;
    white-space: nowrap;
}

.tc-table-actions {
    position: relative;
    display: inline-block;
}

.tc-table-actions > summary {
    list-style: none;
    cursor: pointer;
    padding: 6px 9px;
    border: 1px solid #303A40;
    border-radius: 7px;
    background: #171E22;
    color: #CDD2D5;
    font-weight: 700;
    user-select: none;
}

.tc-table-actions > summary::-webkit-details-marker {
    display: none;
}

.tc-table-actions[open] > summary {
    border-color: #F59E0B66;
    color: var(--tc-orange);
}

.tc-table-actions-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    width: 320px;
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid #30393F;
    border-radius: 10px;
    background: #11171B;
    box-shadow: 0 18px 45px #00000070;
    text-align: left;
    white-space: normal;
}

.tc-table-actions-panel.is-wide {
    width: 360px;
}

.tc-table-action-form {
    display: grid;
    gap: 8px;
    padding: 9px;
    border: 1px solid #252D32;
    border-radius: 8px;
    background: #0D1215;
}

.tc-table-action-form.is-danger-zone {
    border-color: #ef44442e;
}

.tc-table-action-form h3,
.tc-table-action-form p {
    margin: 0;
}

.tc-table-action-form p,
.tc-table-action-note {
    color: #7E8990;
    font-size: 8px;
    line-height: 1.4;
}

.tc-table-action-form label {
    display: grid;
    gap: 4px;
}

.tc-table-action-form label > span {
    color: #89949B;
    font-size: 8px;
    font-weight: 700;
}

.tc-table-action-form input,
.tc-table-action-form select,
.tc-table-action-form textarea {
    width: 100%;
    border: 1px solid #30393F;
    border-radius: 7px;
    background: #151B20;
    color: var(--tc-text);
    padding: 8px 9px;
    font: inherit;
}

.tc-members-table {
    min-width: 1540px;
}

.tc-history-table {
    min-width: 900px;
}

.tc-join-table {
    min-width: 1280px;
}

@media (max-width: 760px) {
    .tc-data-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .tc-data-table {
        font-size: 8px;
    }

    .tc-data-table thead th,
    .tc-data-table tbody td {
        padding: 8px;
    }

    .tc-table-actions-panel,
    .tc-table-actions-panel.is-wide {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        width: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
}


/* ========================================================================
   Compact table + detail drawer refinement
   ======================================================================== */

.tc-data-table.is-compact {
    font-size: 11px;
}

.tc-data-table.is-compact thead th {
    padding: 12px 11px;
    font-size: 9px;
}

.tc-data-table.is-compact tbody td {
    padding: 11px;
    vertical-align: middle;
}

.tc-data-table.is-compact td > strong,
.tc-data-table.is-compact .tc-table-primary > strong {
    font-size: 11px;
}

.tc-data-table.is-compact .tc-pill {
    font-size: 9px;
}

.tc-members-table.is-compact {
    min-width: 1050px;
}

.tc-history-table.is-compact {
    min-width: 720px;
}

.tc-join-table.is-compact {
    min-width: 680px;
}

.tc-record-drawer {
    display: inline;
}

.tc-record-drawer > summary {
    list-style: none;
}

.tc-record-drawer > summary::-webkit-details-marker {
    display: none;
}

.tc-record-link {
    display: inline-flex;
    cursor: pointer;
    color: #F0F3F5;
    text-decoration: none;
}

.tc-record-link strong {
    color: #F0F3F5;
    font-size: 11px;
}

.tc-record-link:hover strong {
    color: var(--tc-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tc-record-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    cursor: default;
    background: #0000008f;
    backdrop-filter: blur(3px);
}

.tc-record-drawer-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    z-index: 81;
    width: min(760px, 92vw);
    max-height: 86vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #30393F;
    border-radius: 14px;
    background: #0F1418;
    box-shadow: 0 26px 80px #00000085;
    transform: translate(-50%, -50%);
}

.tc-record-drawer[open] > .tc-record-drawer-backdrop,
.tc-record-drawer[open] > .tc-record-drawer-panel {
    display: block;
}

.tc-record-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #252D32;
}

.tc-record-drawer-head h2 {
    margin: 5px 0 3px;
    font-size: 21px;
}

.tc-record-drawer-head p {
    margin: 0;
    color: #88939A;
    font-size: 11px;
}

.tc-record-drawer-close {
    display: grid !important;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;
    border: 1px solid #30393F;
    border-radius: 9px;
    background: #171E22;
    color: #BFC6CA;
    font: inherit;
    font-size: 22px;
    line-height: 1;
}

.tc-record-drawer-close:hover {
    border-color: #F59E0B66;
    color: var(--tc-orange);
    background: #1B2227;
}

.tc-record-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px;
}

.tc-record-detail-grid > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #252D32;
    border-radius: 9px;
    background: #12181C;
}

.tc-record-detail-grid span {
    display: block;
    color: #7D888F;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tc-record-detail-grid strong {
    display: block;
    margin-top: 5px;
    color: #E1E5E8;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.tc-record-drawer-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #252D32;
}

.tc-record-drawer-section h3 {
    margin: 4px 0 0;
    font-size: 14px;
}

.tc-record-mono {
    font-family: Consolas, "Cascadia Mono", monospace;
}

.tc-record-message {
    margin-top: 9px;
    padding: 12px;
    border: 1px solid #252D32;
    border-radius: 9px;
    background: #12181C;
    color: #BAC2C7;
    font-size: 11px;
    line-height: 1.55;
}

.tc-record-actions-grid {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.tc-record-action-form {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid #293238;
    border-radius: 9px;
    background: #12181C;
}

.tc-record-action-form.is-danger-zone {
    border-color: #ef444435;
}

.tc-record-action-form h4,
.tc-record-action-form p {
    margin: 0;
}

.tc-record-action-form h4 {
    font-size: 12px;
}

.tc-record-action-form p,
.tc-record-policy-note {
    color: #849097;
    font-size: 10px;
    line-height: 1.45;
}

.tc-record-action-form label {
    display: grid;
    gap: 5px;
}

.tc-record-action-form label > span {
    color: #8B969C;
    font-size: 9px;
    font-weight: 700;
}

.tc-record-action-form input,
.tc-record-action-form select,
.tc-record-action-form textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #30393F;
    border-radius: 7px;
    background: #171E22;
    color: var(--tc-text);
    font: inherit;
}

.tc-record-policy-note {
    margin-top: 10px;
    padding: 11px;
    border: 1px solid #F59E0B30;
    border-radius: 8px;
    background: #F59E0B08;
}

@media (max-width: 760px) {
    .tc-data-table.is-compact {
        font-size: 10px;
    }

    .tc-data-table.is-compact thead th,
    .tc-data-table.is-compact tbody td {
        padding: 9px;
    }

    .tc-record-drawer-panel {
        width: calc(100vw - 24px);
        max-height: 90vh;
        padding: 16px;
        border-radius: 12px;
    }

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


.tc-body.tc-record-modal-open {
    overflow: hidden;
}


/* ========================================================================
   16.5 - Job History UI V1
   Compact table + CSP-safe centered lazy detail modal
   ======================================================================== */

.tc-jobs-page {
    display: grid;
    gap: 14px;
}

.tc-scope-tabs {
    display: inline-flex;
    width: fit-content;
    gap: 4px;
    padding: 4px;
    border: 1px solid #283137;
    border-radius: 10px;
    background: #10161A;
}

.tc-scope-tabs a {
    padding: 8px 13px;
    border-radius: 7px;
    color: #8D989E;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.tc-scope-tabs a:hover,
.tc-scope-tabs a.is-active {
    background: #F59E0B12;
    color: var(--tc-orange);
}

.tc-job-filter-card {
    padding: 12px 14px;
}

.tc-job-filter-form {
    display: grid;
    grid-template-columns: minmax(210px, 1.4fr) repeat(7, minmax(115px, .7fr)) auto;
    gap: 9px;
    align-items: end;
}

.tc-job-filter-form label {
    display: grid;
    gap: 5px;
}

.tc-job-filter-form label > span {
    color: #7F8B92;
    font-size: 9px;
    font-weight: 800;
}

.tc-job-filter-form input,
.tc-job-filter-form select {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #2B343A;
    border-radius: 8px;
    background: #141A1F;
    color: var(--tc-text);
    font: inherit;
}

.tc-job-list-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    color: #7D888F;
    font-size: 9px;
}

.tc-job-list-summary strong {
    color: #E4E8EA;
    font-size: 12px;
}

.tc-job-list-summary i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #465158;
}

.tc-job-history-table.is-compact {
    min-width: 1050px;
}

.tc-job-history-table .tc-record-link {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.tc-job-route-cell {
    min-width: 170px;
}

.tc-job-detail-modal[hidden] {
    display: none !important;
}

.tc-job-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
}

.tc-job-detail-backdrop {
    position: absolute;
    inset: 0;
    background: #00000092;
    backdrop-filter: blur(3px);
}

.tc-job-detail-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(960px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 0 22px 22px;
    border: 1px solid #30393F;
    border-radius: 14px;
    background: #0F1418;
    box-shadow: 0 28px 90px #00000090;
    transform: translate(-50%, -50%);
}

.tc-job-detail-shell-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0 14px;
    border-bottom: 1px solid #252D32;
    background: #0F1418;
}

.tc-job-detail-shell-head h2 {
    margin: 4px 0 0;
    font-size: 19px;
}

.tc-job-detail-content {
    padding-top: 16px;
}

.tc-job-detail-loading,
.tc-job-detail-empty {
    padding: 14px;
    border: 1px solid #283137;
    border-radius: 9px;
    background: #12181C;
    color: #849097;
    font-size: 10px;
}

.tc-job-detail-body {
    display: grid;
    gap: 18px;
}

.tc-job-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.tc-job-detail-hero h3 {
    margin: 5px 0 3px;
    font-size: 17px;
}

.tc-job-detail-hero p {
    margin: 0;
    color: #879299;
    font-size: 10px;
}

.tc-job-detail-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.tc-job-detail-section {
    display: grid;
    gap: 9px;
    padding-top: 16px;
    border-top: 1px solid #252D32;
}

.tc-job-detail-section h3 {
    margin: 4px 0 0;
    font-size: 13px;
}

.tc-detail-table-wrap {
    overflow-x: auto;
    border: 1px solid #252D32;
    border-radius: 9px;
    background: #11171B;
}

.tc-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.tc-detail-table th,
.tc-detail-table td {
    padding: 10px 11px;
    border-bottom: 1px solid #222A2F;
    vertical-align: top;
}

.tc-detail-table tr:last-child th,
.tc-detail-table tr:last-child td {
    border-bottom: 0;
}

.tc-detail-table th {
    width: 16%;
    color: #77838A;
    text-align: left;
    white-space: nowrap;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tc-detail-table td {
    width: 34%;
    color: #CCD2D5;
}

.tc-job-audit-table.is-compact {
    min-width: 650px;
}

.tc-body.tc-job-detail-open {
    overflow: hidden;
}

@media (max-width: 1300px) {
    .tc-job-filter-form {
        grid-template-columns: repeat(4, minmax(130px, 1fr));
    }

    .tc-job-search-field {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .tc-job-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .tc-job-search-field,
    .tc-job-filter-form .tc-button {
        grid-column: span 2;
    }

    .tc-job-detail-dialog {
        width: calc(100vw - 20px);
        max-height: 92vh;
        padding: 0 14px 16px;
        border-radius: 11px;
    }

    .tc-job-detail-hero {
        flex-direction: column;
    }

    .tc-job-detail-badges {
        justify-content: flex-start;
    }

    .tc-detail-table th,
    .tc-detail-table td {
        padding: 8px;
    }
}


/* ========================================================================
   Table typography refinement V1
   Larger, easier-to-scan table text across all compact data views.
   ======================================================================== */

.tc-data-table {
    font-size: 12px;
}

.tc-data-table thead th {
    font-size: 10px;
    line-height: 1.25;
}

.tc-data-table tbody td {
    font-size: 12px;
    line-height: 1.45;
}

.tc-data-table td > strong,
.tc-data-table .tc-table-primary > strong {
    font-size: 12px;
    line-height: 1.35;
}

.tc-data-table td > small,
.tc-data-table .tc-table-primary > small,
.tc-data-table .tc-table-note,
.tc-data-table .tc-table-muted {
    font-size: 10px;
    line-height: 1.4;
}

.tc-data-table .tc-pill {
    font-size: 10px;
}

.tc-data-table.is-compact {
    font-size: 13px;
}

.tc-data-table.is-compact thead th {
    font-size: 11px;
    padding-top: 13px;
    padding-bottom: 13px;
}

.tc-data-table.is-compact tbody td {
    font-size: 13px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.tc-data-table.is-compact td > strong,
.tc-data-table.is-compact .tc-table-primary > strong,
.tc-data-table.is-compact .tc-record-link strong {
    font-size: 13px;
}

.tc-data-table.is-compact td > small,
.tc-data-table.is-compact .tc-table-primary > small,
.tc-data-table.is-compact .tc-table-note,
.tc-data-table.is-compact .tc-table-muted {
    font-size: 10px;
}

.tc-data-table.is-compact .tc-pill {
    font-size: 10px;
}

@media (max-width: 760px) {
    .tc-data-table,
    .tc-data-table.is-compact {
        font-size: 12px;
    }

    .tc-data-table thead th,
    .tc-data-table.is-compact thead th {
        font-size: 10px;
    }

    .tc-data-table tbody td,
    .tc-data-table.is-compact tbody td,
    .tc-data-table.is-compact td > strong,
    .tc-data-table.is-compact .tc-table-primary > strong,
    .tc-data-table.is-compact .tc-record-link strong {
        font-size: 12px;
    }
}


/* ========================================================================
   16.6 - Integrity Review & Job Moderation UI V1
   ======================================================================== */

.tc-integrity-page {
    display: grid;
    gap: 16px;
}

.tc-integrity-scan-form {
    flex: 0 0 auto;
}

.tc-integrity-filter-card {
    padding: 12px 14px;
}

.tc-integrity-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(6, minmax(120px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.tc-integrity-filter-form label {
    display: grid;
    gap: 5px;
}

.tc-integrity-filter-form label > span {
    color: #7D888F;
    font-size: 10px;
    font-weight: 700;
}

.tc-integrity-filter-form input,
.tc-integrity-filter-form select {
    width: 100%;
    border: 1px solid #2B343A;
    border-radius: 8px;
    background: #141A1F;
    color: var(--tc-text);
    padding: 9px 10px;
    font: inherit;
}

.tc-integrity-table {
    min-width: 980px;
}

.tc-integrity-table .tc-record-link {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
}

.tc-integrity-detail-modal[hidden] {
    display: none !important;
}

.tc-integrity-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
}

.tc-integrity-detail-backdrop {
    position: absolute;
    inset: 0;
    background: #00000091;
    backdrop-filter: blur(3px);
}

.tc-integrity-detail-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    box-sizing: border-box;
    width: min(960px, calc(100vw - 48px));
    max-height: min(86vh, 780px);
    overflow-y: auto;
    padding: 0 22px 22px;
    border: 1px solid #30393F;
    border-radius: 14px;
    background: #0F1418;
    box-shadow: 0 28px 90px #00000090;
    transform: translate(-50%, -50%);
}

.tc-integrity-detail-content {
    max-height: none;
    overflow: visible;
    padding: 16px 0 0;
}

.tc-body.tc-integrity-detail-open {
    overflow: hidden;
}

.tc-integrity-detail .tc-job-detail-section {
    margin-top: 18px;
}

.tc-integrity-findings-table {
    min-width: 780px;
}

.tc-integrity-audit-table {
    min-width: 760px;
}

.tc-integrity-actions-table {
    min-width: 900px;
}

@media (max-width: 1180px) {
    .tc-integrity-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tc-integrity-search-field {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .tc-integrity-filter-form {
        grid-template-columns: 1fr;
    }

    .tc-integrity-search-field {
        grid-column: span 1;
    }

    .tc-integrity-detail-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 0 16px 16px;
    }

    .tc-integrity-detail-content {
        padding-top: 14px;
    }
}


/* ========================================================================
   16.7 - Company Economy & Ledger UI V1
   ======================================================================== */

.tc-economy-page {
    display: grid;
    gap: 16px;
}

.tc-economy-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: 11px;
}

.tc-economy-summary-grid .tc-metric-card {
    min-height: 102px;
}

.tc-economy-summary-grid .tc-metric-card > span {
    display: block;
    color: #7D888F;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tc-economy-summary-grid .tc-metric-card > strong {
    display: block;
    margin-top: 8px;
    color: #F0F3F4;
    font-size: 22px;
    line-height: 1.05;
}

.tc-economy-summary-grid .tc-metric-card > small {
    display: block;
    margin-top: 7px;
    color: #77838A;
    font-size: 10px;
}

.tc-economy-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #283137;
}

.tc-economy-tabs a {
    position: relative;
    padding: 11px 14px 12px;
    color: #7F8A91;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.tc-economy-tabs a.is-active {
    color: #F0F3F4;
}

.tc-economy-tabs a.is-active::after {
    content: "";
    position: absolute;
    inset: auto 12px -1px;
    height: 2px;
    background: var(--tc-orange);
}

.tc-economy-filter-card {
    padding: 12px 14px;
}

.tc-economy-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(6, minmax(120px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.tc-economy-filter-form label {
    display: grid;
    gap: 5px;
}

.tc-economy-filter-form label > span {
    color: #7D888F;
    font-size: 10px;
    font-weight: 700;
}

.tc-economy-filter-form input,
.tc-economy-filter-form select,
.tc-economy-detail-dialog input,
.tc-economy-detail-dialog select,
.tc-economy-detail-dialog textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #2B343A;
    border-radius: 8px;
    background: #141A1F;
    color: var(--tc-text);
    padding: 9px 10px;
    font: inherit;
}

.tc-economy-search-field {
    min-width: 0;
}

.tc-economy-ledger-table {
    min-width: 980px;
}

.tc-economy-adjustment-table {
    min-width: 1080px;
}

.tc-economy-ledger-table .tc-record-link,
.tc-economy-adjustment-table .tc-record-link {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.tc-economy-detail-modal[hidden] {
    display: none !important;
}

.tc-economy-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 145;
}

.tc-economy-detail-backdrop {
    position: absolute;
    inset: 0;
    background: #00000091;
    backdrop-filter: blur(3px);
}

.tc-economy-detail-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    box-sizing: border-box;
    width: min(960px, calc(100vw - 48px));
    max-height: min(86vh, 780px);
    overflow-y: auto;
    padding: 0 22px 22px;
    border: 1px solid #30393F;
    border-radius: 14px;
    background: #0F1418;
    box-shadow: 0 28px 90px #00000090;
    transform: translate(-50%, -50%);
}

.tc-economy-detail-content {
    padding: 16px 0 0;
}

.tc-body.tc-economy-detail-open {
    overflow: hidden;
}

.tc-economy-effective-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tc-economy-effective-grid article {
    padding: 13px;
    border: 1px solid #293238;
    border-radius: 10px;
    background: #12181C;
}

.tc-economy-effective-grid span {
    display: block;
    color: #7D888F;
    font-size: 10px;
    font-weight: 700;
}

.tc-economy-effective-grid strong {
    display: block;
    margin-top: 7px;
    color: #F0F3F4;
    font-size: 17px;
}

.tc-economy-job-adjustments-table {
    min-width: 980px;
}

.tc-economy-adjustment-note {
    min-width: 220px;
    white-space: normal;
    line-height: 1.45;
}

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

.tc-economy-delta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.tc-economy-adjustment-detail .tc-record-policy-note {
    white-space: pre-wrap;
}

@media (max-width: 1250px) {
    .tc-economy-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tc-economy-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tc-economy-search-field {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .tc-economy-summary-grid,
    .tc-economy-filter-form,
    .tc-economy-effective-grid,
    .tc-economy-management-grid,
    .tc-economy-delta-grid {
        grid-template-columns: 1fr;
    }

    .tc-economy-search-field {
        grid-column: span 1;
    }

    .tc-economy-tabs {
        overflow-x: auto;
    }

    .tc-economy-tabs a {
        white-space: nowrap;
    }

    .tc-economy-detail-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 0 16px 16px;
    }

    .tc-economy-detail-content {
        padding-top: 14px;
    }
}


/* ========================================================================
   16.7.2 - Moderation -> Economy Reversal Workflow
   ======================================================================== */

.tc-economy-tab-count {
    display: inline-grid;
    min-width: 20px;
    min-height: 20px;
    margin-left: 6px;
    place-items: center;
    border: 1px solid #414A50;
    border-radius: 999px;
    background: #181F24;
    color: #F0F3F4;
    font-size: 10px;
    line-height: 1;
}

.tc-economy-tabs a.is-active .tc-economy-tab-count {
    border-color: #8A621D;
    background: #2A2111;
    color: #FFB423;
}

.tc-economy-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #343D43;
    border-radius: 999px;
    background: #171D21;
    color: #B8C0C5;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.tc-economy-status.is-normal {
    border-color: #284B38;
    background: #132019;
    color: #79D79D;
}

.tc-economy-status.is-pending {
    border-color: #73571F;
    background: #241D10;
    color: #FFBE35;
}

.tc-economy-status.is-reversed {
    border-color: #25506A;
    background: #111F29;
    color: #76C8F6;
}

.tc-economy-pending-table {
    min-width: 1060px;
}

.tc-economy-handoff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    padding: 13px 14px;
    border: 1px solid #303A40;
    border-radius: 10px;
    background: #12181C;
}

.tc-economy-handoff > div {
    min-width: 0;
}

.tc-economy-handoff strong {
    display: block;
    color: #E8ECEE;
    font-size: 13px;
}

.tc-economy-handoff p {
    margin: 5px 0 0;
    color: #8D989F;
    font-size: 11px;
    line-height: 1.5;
}

.tc-economy-handoff > span {
    color: #7F8A91;
    font-size: 10px;
}

.tc-economy-handoff.is-pending {
    border-color: #654B1B;
    background: #1D180E;
}

.tc-economy-handoff.is-reversed {
    border-color: #234B62;
    background: #101B23;
}

.tc-economy-handoff.is-normal {
    border-color: #254536;
    background: #111C17;
}

.tc-economy-management-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.tc-economy-management-grid.is-single > .tc-record-action-form {
    max-width: 680px;
}

.tc-economy-reversal-policy {
    margin-bottom: 12px;
}

@media (max-width: 760px) {
    .tc-economy-handoff {
        align-items: stretch;
        flex-direction: column;
    }

    .tc-economy-handoff .tc-button {
        width: 100%;
    }
}


/* ========================================================================
   16.8 - Company Settings & Moderation Policy UI V1
   ======================================================================== */

.tc-settings-page {
    display: grid;
    gap: 16px;
}

.tc-settings-form {
    display: grid;
    gap: 16px;
}

.tc-settings-section {
    padding: 18px;
    border: 1px solid #293238;
    border-radius: 12px;
    background: #10161A;
}

.tc-settings-policy-version {
    display: grid;
    min-width: 190px;
    gap: 3px;
    justify-items: end;
    text-align: right;
}

.tc-settings-policy-version > span {
    color: #78858C;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.tc-settings-policy-version > strong {
    color: #FFB423;
    font-size: 22px;
    line-height: 1;
}

.tc-settings-policy-version > small {
    color: #7F8B92;
    font-size: 10px;
}

.tc-settings-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 14px;
}

.tc-settings-fields-grid label,
.tc-record-action-form label {
    display: grid;
    gap: 6px;
}

.tc-settings-fields-grid label > span,
.tc-record-action-form label > span {
    color: #87939A;
    font-size: 10px;
    font-weight: 800;
}

.tc-settings-fields-grid label > small {
    color: #6E7B82;
    font-size: 9px;
}

.tc-settings-fields-grid .is-wide {
    grid-column: 1 / -1;
}

.tc-settings-fields-grid input,
.tc-settings-fields-grid textarea,
.tc-settings-policy-table input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #2D373D;
    border-radius: 8px;
    background: #141B1F;
    color: #E8ECEE;
    padding: 10px 11px;
    font: inherit;
}

.tc-settings-fields-grid textarea {
    resize: vertical;
}

.tc-settings-toggle-line,
.tc-settings-locked-policy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid #293238;
    border-radius: 10px;
    background: #12181C;
}

.tc-settings-toggle-line > div,
.tc-settings-locked-policy > div {
    min-width: 0;
}

.tc-settings-toggle-line strong,
.tc-settings-locked-policy strong {
    display: block;
    color: #E9EDEE;
    font-size: 12px;
}

.tc-settings-toggle-line span,
.tc-settings-locked-policy p {
    margin: 4px 0 0;
    color: #7E8A91;
    font-size: 10px;
    line-height: 1.45;
}

.tc-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    cursor: pointer;
}

.tc-switch input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tc-switch > span {
    position: relative;
    width: 38px;
    height: 21px;
    margin: 0;
    border: 1px solid #3A444A;
    border-radius: 999px;
    background: #1A2227;
    transition: .16s ease;
}

.tc-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #77858D;
    transition: .16s ease;
}

.tc-switch input[type="checkbox"]:checked + input[type="hidden"] + span,
.tc-switch input[type="checkbox"]:checked + span {
    border-color: #9A6812;
    background: #3A290D;
}

.tc-switch input[type="checkbox"]:checked + input[type="hidden"] + span::after,
.tc-switch input[type="checkbox"]:checked + span::after {
    left: 20px;
    background: #FFB423;
}

.tc-switch > b {
    min-width: 38px;
    color: #9AA4AA;
    font-size: 10px;
}

.tc-switch.is-compact > span {
    width: 34px;
    height: 19px;
}

.tc-switch.is-compact > span::after {
    width: 11px;
    height: 11px;
}

.tc-switch.is-compact input[type="checkbox"]:checked + input[type="hidden"] + span::after,
.tc-switch.is-compact input[type="checkbox"]:checked + span::after {
    left: 18px;
}

.tc-settings-policy-note {
    display: grid;
    gap: 4px;
    margin: 14px 0;
    padding: 11px 13px;
    border: 1px solid #4A3A18;
    border-radius: 9px;
    background: #1B170E;
}

.tc-settings-policy-note strong {
    color: #F5C45B;
    font-size: 11px;
}

.tc-settings-policy-note span {
    color: #9A8D70;
    font-size: 10px;
    line-height: 1.45;
}

.tc-settings-policy-table-wrap {
    overflow-x: auto;
    border: 1px solid #293238;
    border-radius: 10px;
}

.tc-settings-policy-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #10161A;
}

.tc-settings-policy-table th {
    padding: 10px 12px;
    border-bottom: 1px solid #303A40;
    background: #151C20;
    color: #829099;
    font-size: 10px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.tc-settings-policy-table td {
    padding: 12px;
    border-bottom: 1px solid #242D32;
    color: #C8D0D4;
    font-size: 11px;
    vertical-align: middle;
}

.tc-settings-policy-table tr:last-child td {
    border-bottom: 0;
}

.tc-settings-policy-table td:first-child {
    min-width: 250px;
}

.tc-settings-policy-table td:first-child strong {
    display: block;
    color: #EEF1F2;
    font-size: 12px;
}

.tc-settings-policy-table td:first-child small {
    display: block;
    margin-top: 4px;
    color: #718087;
    font-size: 9px;
    line-height: 1.4;
}

.tc-settings-policy-table tr.is-policy-disabled {
    opacity: .62;
}

.tc-policy-threshold {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 150px;
}

.tc-policy-threshold input {
    max-width: 90px;
}

.tc-policy-threshold input[readonly] {
    cursor: not-allowed;
    color: #6F7A80;
    background: #11171A;
}

.tc-policy-threshold span {
    color: #77848B;
    font-size: 9px;
    white-space: nowrap;
}

.tc-settings-accounting-policy {
    border-color: #294238;
}

.tc-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-bottom: 4px;
}

.tc-alert.is-warning {
    border-color: #72551C;
    background: #241C0D;
    color: #F0C267;
}

.tc-pill.is-green {
    border-color: #27503A;
    background: #122019;
    color: #78D79B;
}

@media (max-width: 760px) {
    .tc-settings-fields-grid {
        grid-template-columns: 1fr;
    }

    .tc-settings-fields-grid .is-wide {
        grid-column: auto;
    }

    .tc-settings-toggle-line,
    .tc-settings-locked-policy {
        align-items: stretch;
        flex-direction: column;
    }

    .tc-settings-policy-version {
        justify-items: start;
        text-align: left;
    }

    .tc-settings-actions {
        flex-direction: column;
    }

    .tc-settings-actions .tc-button {
        width: 100%;
    }
}


/* ========================================================================
   FIX16.8.3 - Structured moderation policy evidence
   ======================================================================== */

.tc-policy-evidence-compare {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) minmax(190px, .9fr);
    gap: 10px;
    align-items: center;
}

.tc-policy-evidence-compare article,
.tc-policy-evidence-result {
    padding: 13px;
    border: 1px solid #2A343A;
    border-radius: 10px;
    background: #12181C;
}

.tc-policy-evidence-compare article > span {
    display: block;
    color: #7F8B92;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.tc-policy-evidence-compare article > strong {
    display: block;
    margin-top: 6px;
    color: #F0F3F4;
    font-size: 18px;
}

.tc-policy-evidence-compare article > small,
.tc-policy-evidence-result > small {
    display: block;
    margin-top: 5px;
    color: #718087;
    font-size: 9px;
    line-height: 1.4;
}

.tc-policy-evidence-operator {
    color: #FFB423;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.tc-policy-evidence-result {
    border-color: #5E471B;
    background: #1C170D;
}

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

    .tc-policy-evidence-operator {
        transform: rotate(90deg);
    }
}


/* ========================================================================
   16.9 - Company Policy History & Audit UI V1
   ======================================================================== */

.tc-policy-history-table {
    min-width: 900px;
}

.tc-policy-history-modal[hidden] {
    display: none !important;
}

.tc-policy-history-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
}

.tc-policy-history-backdrop {
    position: absolute;
    inset: 0;
    background: #00000091;
    backdrop-filter: blur(3px);
}

.tc-policy-history-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    box-sizing: border-box;
    width: min(960px, calc(100vw - 48px));
    max-height: min(86vh, 800px);
    overflow-y: auto;
    padding: 0 22px 22px;
    border: 1px solid #30393F;
    border-radius: 14px;
    background: #0F1418;
    box-shadow: 0 28px 90px #00000090;
    transform: translate(-50%, -50%);
}

.tc-policy-history-content {
    padding-top: 16px;
}

.tc-body.tc-policy-history-open,
body.tc-policy-history-open {
    overflow: hidden;
}

.tc-policy-change-table {
    min-width: 720px;
}

.tc-policy-change-table td:nth-child(2) {
    color: #9AA4AA;
}

.tc-policy-change-table td:nth-child(3) strong {
    color: #F2C35D;
}

.tc-policy-snapshot-table {
    min-width: 620px;
}

.tc-policy-history-detail .tc-record-policy-note {
    white-space: normal;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .tc-policy-history-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 0 16px 16px;
    }

    .tc-policy-history-content {
        padding-top: 14px;
    }
}


/* ========================================================================
   16.10 - Company Dashboard & Operational Overview V1
   ======================================================================== */

.tc-operational-dashboard {
    display: grid;
    gap: 16px;
}

.tc-operational-hero {
    margin-bottom: 0;
}

.tc-dashboard-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.tc-dashboard-comparison-table,
.tc-dashboard-attention-table,
.tc-dashboard-policy-table,
.tc-dashboard-moderation-table,
.tc-dashboard-jobs-table,
.tc-dashboard-contributors-table,
.tc-dashboard-telemetry-table,
.tc-dashboard-member-table,
.tc-dashboard-recent-members-table {
    min-width: 640px;
}

.tc-dashboard-attention-table {
    min-width: 560px;
}

.tc-dashboard-policy-table,
.tc-dashboard-telemetry-table,
.tc-dashboard-member-table,
.tc-dashboard-recent-members-table {
    min-width: 440px;
}

.tc-dashboard-comparison-table td:nth-child(n+2),
.tc-dashboard-attention-table td:nth-child(3),
.tc-dashboard-telemetry-table td:nth-child(n+2),
.tc-dashboard-member-table td:nth-child(2) {
    font-variant-numeric: tabular-nums;
}

.tc-dashboard-comparison-table tbody td:nth-child(2),
.tc-dashboard-comparison-table tbody td:nth-child(3) {
    color: #E8ECEE;
    font-weight: 700;
}

.tc-dashboard-attention-table td:nth-child(3) strong {
    color: #F5C45B;
    font-size: 15px;
}

.tc-dashboard-policy-table td:first-child {
    width: 58%;
    color: #9AA5AB;
}

.tc-dashboard-policy-table td:last-child {
    color: #E8ECEE;
}

.tc-dashboard-moderation-table td:first-child,
.tc-dashboard-jobs-table td:first-child,
.tc-dashboard-contributors-table td:nth-child(2),
.tc-dashboard-recent-members-table td:first-child {
    color: #F0F3F4;
}

.tc-dashboard-jobs-table td:nth-child(2),
.tc-dashboard-jobs-table td:nth-child(3) {
    white-space: nowrap;
}

.tc-dashboard-contributors-table td:nth-child(n+4) {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.tc-dashboard-contributors-table th:nth-child(n+4) {
    text-align: right;
}

.tc-dashboard-telemetry-table td:nth-child(2),
.tc-dashboard-telemetry-table td:nth-child(3) {
    text-align: right;
}

.tc-dashboard-telemetry-table th:nth-child(2),
.tc-dashboard-telemetry-table th:nth-child(3) {
    text-align: right;
}

.tc-dashboard-member-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tc-dashboard-panel .tc-dashboard-empty {
    min-height: 92px;
}

@media (max-width: 1080px) {
    .tc-dashboard-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .tc-operational-dashboard {
        gap: 12px;
    }

    .tc-dashboard-comparison-table,
    .tc-dashboard-attention-table,
    .tc-dashboard-policy-table,
    .tc-dashboard-moderation-table,
    .tc-dashboard-jobs-table,
    .tc-dashboard-contributors-table,
    .tc-dashboard-telemetry-table,
    .tc-dashboard-member-table,
    .tc-dashboard-recent-members-table {
        min-width: 620px;
    }
}


/* ========================================================================
   FIX16.10.4 - Standard two-row table search/filter panels
   Desktop: filters are distributed across exactly two visual rows and the
   submit button stays fixed-size at the lower-right corner.
   ======================================================================== */

.tc-members-filter-form,
.tc-join-filter-form,
.tc-job-filter-form,
.tc-integrity-filter-form,
.tc-economy-filter-form {
    display: grid;
    gap: 10px;
    align-items: end;
}

/* Compact list surfaces: 3 columns x 2 rows. */
.tc-members-filter-form,
.tc-join-filter-form {
    grid-template-columns:
        minmax(260px, 2fr)
        minmax(180px, 1fr)
        minmax(150px, .8fr);
}

/* Dense job / moderation filters: 5 columns x 2 rows. */
.tc-job-filter-form,
.tc-integrity-filter-form {
    grid-template-columns:
        minmax(260px, 1.8fr)
        repeat(4, minmax(135px, 1fr));
}

/* Economy changes its visible fields by tab; 4 columns keeps it balanced. */
.tc-economy-filter-form {
    grid-template-columns:
        minmax(260px, 1.8fr)
        repeat(3, minmax(145px, 1fr));
}

/*
 * The filter submit is explicitly pinned to the last column of row two.
 * Its dimensions never stretch with the grid.
 */
.tc-members-filter-form > .tc-button[type="submit"],
.tc-join-filter-form > .tc-button[type="submit"],
.tc-job-filter-form > .tc-button[type="submit"],
.tc-integrity-filter-form > .tc-button[type="submit"],
.tc-economy-filter-form > .tc-button[type="submit"] {
    grid-row: 2;
    justify-self: end;
    align-self: end;
    box-sizing: border-box;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding-inline: 18px;
    white-space: nowrap;
}

.tc-members-filter-form > .tc-button[type="submit"],
.tc-join-filter-form > .tc-button[type="submit"] {
    grid-column: 3;
}

.tc-job-filter-form > .tc-button[type="submit"],
.tc-integrity-filter-form > .tc-button[type="submit"] {
    grid-column: 5;
}

.tc-economy-filter-form > .tc-button[type="submit"] {
    grid-column: 4;
}

/* Search fields keep more room without consuming a second grid cell. */
.tc-members-search,
.tc-job-search-field,
.tc-integrity-search-field,
.tc-economy-search-field,
.tc-join-filter-form > label:first-of-type {
    min-width: 0;
}

/*
 * Mid-size screens may use additional rows rather than crushing controls.
 * The lower-right action rule and fixed button size are preserved.
 */
@media (max-width: 1280px) {
    .tc-members-filter-form,
    .tc-join-filter-form {
        grid-template-columns:
            minmax(240px, 1.6fr)
            minmax(160px, 1fr);
    }

    .tc-job-filter-form,
    .tc-integrity-filter-form,
    .tc-economy-filter-form {
        grid-template-columns:
            repeat(3, minmax(150px, 1fr));
    }

    .tc-members-filter-form > .tc-button[type="submit"],
    .tc-join-filter-form > .tc-button[type="submit"] {
        grid-column: 2;
        grid-row: auto;
    }

    .tc-job-filter-form > .tc-button[type="submit"],
    .tc-integrity-filter-form > .tc-button[type="submit"],
    .tc-economy-filter-form > .tc-button[type="submit"] {
        grid-column: 3;
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .tc-members-filter-form,
    .tc-join-filter-form,
    .tc-job-filter-form,
    .tc-integrity-filter-form,
    .tc-economy-filter-form {
        grid-template-columns: 1fr;
    }

    .tc-members-filter-form > .tc-button[type="submit"],
    .tc-join-filter-form > .tc-button[type="submit"],
    .tc-job-filter-form > .tc-button[type="submit"],
    .tc-integrity-filter-form > .tc-button[type="submit"],
    .tc-economy-filter-form > .tc-button[type="submit"] {
        grid-column: 1;
        grid-row: auto;
        justify-self: end;
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }
}


/* ========================================================================
   16.11 - Company Reports & Analytics UI V1
   ======================================================================== */

.tc-company-reports {
    display: grid;
    gap: 16px;
}

.tc-reports-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.tc-reports-period-badge {
    display: grid;
    min-width: 210px;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid #30393F;
    border-radius: 10px;
    background: #11171B;
    text-align: right;
}

.tc-reports-period-badge > span,
.tc-reports-period-badge > small {
    color: #7E8B92;
    font-size: 10px;
}

.tc-reports-period-badge > strong {
    color: #F0F3F4;
    font-size: 15px;
}

/* Exactly two desktop rows: 4 filter cells, then 3 cells + fixed action. */
.tc-reports-filter-form {
    display: grid;
    grid-template-columns:
        minmax(150px, .9fr)
        minmax(160px, 1fr)
        minmax(160px, 1fr)
        minmax(190px, 1.15fr);
    gap: 10px;
    align-items: end;
}

.tc-reports-filter-form > label {
    min-width: 0;
}

.tc-reports-member-search {
    min-width: 0;
}

.tc-reports-filter-form > .tc-button[type="submit"] {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
    align-self: end;
    box-sizing: border-box;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding-inline: 18px;
    white-space: nowrap;
}

.tc-reports-truth-note {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #30414B;
    border-radius: 10px;
    background: #10171C;
}

.tc-reports-truth-note > strong {
    color: #F2C35D;
    font-size: 12px;
}

.tc-reports-truth-note > span {
    color: #9AA5AB;
    font-size: 11px;
    line-height: 1.55;
}

.tc-reports-summary-table {
    min-width: 460px;
}

.tc-reports-summary-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tc-reports-quality-table {
    min-width: 760px;
}

.tc-reports-quality-table td:nth-child(2) {
    color: #F0F3F4;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tc-reports-trend-table {
    min-width: 980px;
}

.tc-reports-trend-table td:nth-child(n+2),
.tc-reports-trend-table th:nth-child(n+2) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tc-reports-members-table {
    min-width: 1540px;
}

.tc-reports-members-table td:nth-child(n+5):not(:last-child),
.tc-reports-members-table th:nth-child(n+5):not(:last-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tc-reports-members-table td:nth-child(2),
.tc-reports-members-table td:nth-child(3),
.tc-reports-members-table td:last-child {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .tc-reports-filter-form {
        grid-template-columns:
            repeat(3, minmax(160px, 1fr));
    }

    .tc-reports-filter-form > .tc-button[type="submit"] {
        grid-column: 3;
        grid-row: auto;
    }

    .tc-reports-hero {
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .tc-reports-hero {
        display: grid;
    }

    .tc-reports-period-badge {
        min-width: 0;
        text-align: left;
    }

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

    .tc-reports-filter-form > .tc-button[type="submit"] {
        grid-column: 1;
        grid-row: auto;
        justify-self: end;
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }
}
