.wcfs-wrap .wcfs-panel {
    margin-top: 16px;
}
.wcfs-stats,
.wcfs-mini-grid,
.wcfs-tier-grid,
.wcfs-two-col,
.wcfs-hero-grid {
    display: grid;
    gap: 16px;
}
.wcfs-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 20px 0;
}
.wcfs-hero-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    margin-bottom: 16px;
}
.wcfs-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}
.wcfs-mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 16px;
}
.wcfs-tier-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 16px 0;
}
.wcfs-card,
.wcfs-stat-card,
.wcfs-mini-card,
.wcfs-tier-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 18px;
    box-sizing: border-box;
}
.wcfs-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.wcfs-card-head h2 {
    margin: 0;
}

.wcfs-heading-with-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wcfs-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}
.wcfs-stat-label,
.wcfs-mini-card p,
.wcfs-tier-card li,
.wcfs-clean-list,
.wcfs-license-card .description {
    color: #50575e;
}
.wcfs-button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.wcfs-pill,
.wcfs-badge,
.wcfs-tier-eyebrow {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.wcfs-pill-neutral,
.wcfs-badge,
.wcfs-tier-eyebrow,
.wcfs-badge-neutral {
    background: #f0f0f1;
    color: #1d2327;
}
.wcfs-pill-ok,
.wcfs-badge-ok,
.wcfs-pill-live {
    background: #e8f6ec;
    color: #116329;
}
.wcfs-pill-warn,
.wcfs-badge-warn {
    background: #fff5d6;
    color: #805300;
}
.wcfs-pill-danger,
.wcfs-badge-danger {
    background: #fbeaea;
    color: #8a2424;
}
.wcfs-clean-list {
    margin: 0;
    padding-left: 18px;
}
.wcfs-inline-form,
.wcfs-manual-form {
    margin: 8px 0 18px;
}
.wcfs-inline-form input[type="search"] {
    min-width: 240px;
}
.wcfs-tier-card-active {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.15);
}
.wcfs-tier-card h3,
.wcfs-mini-card strong {
    margin-top: 6px;
    display: block;
}
.wcfs-log-details td {
    background: #f9f9f9;
}
.wcfs-hidden-field,
.wcfs-hidden-field-input {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
}
@media (max-width: 1080px) {
    .wcfs-hero-grid,
    .wcfs-two-col {
        grid-template-columns: 1fr;
    }
}

.wcfs-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.wcfs-title-wrap h1{margin-bottom:4px}.wcfs-subtitle{margin:0;color:#50575e;font-size:13px}.wcfs-language-box{background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:12px 14px;min-width:260px}.wcfs-language-box label{display:block;margin-bottom:8px}.wcfs-language-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.wcfs-language-controls select{min-width:120px}.wcfs-three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}.wcfs-mini-stat{display:flex;flex-direction:column;justify-content:center}.wcfs-button-row-end{justify-content:flex-end}.wcfs-hero-grid>*,.wcfs-two-col>*,.wcfs-three-col>*,.wcfs-mini-grid>*,.wcfs-stats>*,.wcfs-tier-grid>*{min-width:0}.wcfs-two-col+.wcfs-card{margin-top:16px}@media (max-width:1200px){.wcfs-three-col{grid-template-columns:1fr}.wcfs-page-head{align-items:stretch}}

.wcfs-shared-indicator-card{margin:12px 0 0;background:#f8fafc}.wcfs-shared-indicator-card .wcfs-stat-label{display:block;margin-top:4px}.wcfs-shared-indicator-card p{margin-bottom:0}
.wcfs-table-scroll{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;}
.wcfs-logs{table-layout:auto;width:100%;min-width:1120px;}
.wcfs-logs th,.wcfs-logs td{vertical-align:top;white-space:normal;word-break:normal;overflow-wrap:normal;line-height:1.45;}
.wcfs-logs th:nth-child(1),.wcfs-logs td:nth-child(1){min-width:135px;}
.wcfs-logs th:nth-child(2),.wcfs-logs td:nth-child(2){min-width:180px;}
.wcfs-logs th:nth-child(3),.wcfs-logs td:nth-child(3){min-width:150px;}
.wcfs-logs th:nth-child(4),.wcfs-logs td:nth-child(4){min-width:120px;}
.wcfs-logs th:nth-child(5),.wcfs-logs td:nth-child(5){min-width:180px;}
.wcfs-logs th:nth-child(6),.wcfs-logs td:nth-child(6){min-width:80px;}
.wcfs-logs th:nth-child(7),.wcfs-logs td:nth-child(7){min-width:220px;}
.wcfs-logs .wcfs-log-date{white-space:nowrap;}
.wcfs-logs code{display:inline-block;max-width:100%;white-space:nowrap;word-break:normal;overflow-wrap:normal;line-height:1.45;}
.wcfs-badge,.wcfs-pill{white-space:nowrap;word-break:normal;overflow-wrap:normal;line-height:1.35;text-align:center;}

.wcfs-known-ips,.wcfs-entities{width:100%;table-layout:fixed;min-width:0;}
.wcfs-known-ips th,.wcfs-known-ips td,.wcfs-entities th,.wcfs-entities td{vertical-align:top;white-space:normal;word-break:break-word;overflow-wrap:anywhere;line-height:1.45;}
.wcfs-known-ips th:nth-child(1),.wcfs-known-ips td:nth-child(1){width:22%;}
.wcfs-known-ips th:nth-child(2),.wcfs-known-ips td:nth-child(2),.wcfs-known-ips th:nth-child(3),.wcfs-known-ips td:nth-child(3),.wcfs-known-ips th:nth-child(4),.wcfs-known-ips td:nth-child(4){width:16%;}
.wcfs-known-ips th:nth-child(5),.wcfs-known-ips td:nth-child(5){width:18%;}
.wcfs-known-ips th:nth-child(6),.wcfs-known-ips td:nth-child(6){width:12%;}
.wcfs-known-ips code,.wcfs-entities code{display:inline-block;max-width:100%;white-space:normal;word-break:break-word;overflow-wrap:anywhere;line-height:1.45;}
.wcfs-entities th:nth-child(1),.wcfs-entities td:nth-child(1){width:10%;}
.wcfs-entities th:nth-child(2),.wcfs-entities td:nth-child(2){width:20%;}
.wcfs-entities th:nth-child(3),.wcfs-entities td:nth-child(3){width:24%;}
.wcfs-entities th:nth-child(4),.wcfs-entities td:nth-child(4){width:16%;}
.wcfs-entities th:nth-child(5),.wcfs-entities td:nth-child(5){width:16%;}
.wcfs-entities th:nth-child(6),.wcfs-entities td:nth-child(6){width:14%;}

.wcfs-known-ips td.wcfs-date-cell,.wcfs-entities td.wcfs-date-cell,.wcfs-logs .wcfs-log-date{white-space:nowrap;}


.wcfs-intelligence-stack{display:block;}
.wcfs-intelligence-row{margin-top:0;margin-bottom:16px;align-items:stretch;}
.wcfs-intelligence-row:last-child{margin-bottom:0;}
.wcfs-intelligence-row>.wcfs-card{height:100%;}
.wcfs-manual-entry-card .wcfs-card-head{align-items:flex-start;}
.wcfs-manual-entry-card .wcfs-manual-form{max-width:340px;margin-bottom:0;}
.wcfs-manual-entry-card .regular-text,.wcfs-manual-entry-card input[type="number"],.wcfs-manual-entry-card select{width:100%;max-width:100%;}
@media (max-width:1200px){.wcfs-known-ips,.wcfs-entities{table-layout:auto;min-width:720px;}}
@media (max-width:1080px){.wcfs-intelligence-row{grid-template-columns:1fr;}.wcfs-known-ips,.wcfs-entities{min-width:720px;}}

/* v3.1 dashboard table containment fix */
.wcfs-table-scroll-compact {
    overflow-x: auto;
    overflow-y: hidden;
}

.wcfs-known-ips-compact,
.wcfs-entities-compact {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.wcfs-known-ips-compact th,
.wcfs-known-ips-compact td,
.wcfs-entities-compact th,
.wcfs-entities-compact td {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    vertical-align: top;
}

.wcfs-known-ips-compact th:nth-child(1),
.wcfs-known-ips-compact td:nth-child(1) {
    min-width: 150px;
}

.wcfs-known-ips-compact th:nth-child(2),
.wcfs-known-ips-compact td:nth-child(2) {
    min-width: 70px;
}

.wcfs-known-ips-compact th:nth-child(3),
.wcfs-known-ips-compact td:nth-child(3) {
    min-width: 90px;
}

.wcfs-known-ips-compact th:nth-child(4),
.wcfs-known-ips-compact td:nth-child(4) {
    min-width: 90px;
}

.wcfs-known-ips-compact th:nth-child(5),
.wcfs-known-ips-compact td:nth-child(5) {
    min-width: 140px;
}

.wcfs-entities-compact th:nth-child(1),
.wcfs-entities-compact td:nth-child(1) {
    min-width: 65px;
}

.wcfs-entities-compact th:nth-child(2),
.wcfs-entities-compact td:nth-child(2) {
    min-width: 130px;
}

.wcfs-entities-compact th:nth-child(3),
.wcfs-entities-compact td:nth-child(3) {
    min-width: 150px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wcfs-entities-compact th:nth-child(4),
.wcfs-entities-compact td:nth-child(4),
.wcfs-entities-compact th:nth-child(5),
.wcfs-entities-compact td:nth-child(5) {
    min-width: 130px;
}

.wcfs-known-ips-compact code,
.wcfs-entities-compact code {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.wcfs-known-ips-compact .wcfs-date-cell,
.wcfs-entities-compact .wcfs-date-cell {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}


.wcfs-hero-main .wcfs-pill{font-size:11px;padding:2px 8px;}
.wcfs-dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px;max-width:none;}
.wcfs-dashboard-stats .wcfs-mini-card{min-height:120px;}
@media (max-width:960px){.wcfs-dashboard-stats{grid-template-columns:1fr;max-width:none;}}


/* stronger base dashboard stat width */
.wcfs-dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr)) !important;max-width:none !important;align-items:stretch;}
.wcfs-dashboard-stats .wcfs-mini-card{min-height:132px;width:100%;}
@media (max-width:960px){.wcfs-dashboard-stats{grid-template-columns:1fr !important;}}

/* free dashboard overview cards */
.wcfs-dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px;}
.wcfs-free-dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch;}
.wcfs-free-dashboard-grid>.wcfs-card{display:flex;flex-direction:column;height:100%;min-width:0;}
.wcfs-free-dashboard-grid>.wcfs-card .wcfs-table-scroll{flex:1 1 auto;}
@media (max-width:1200px){.wcfs-dashboard-stats,.wcfs-free-dashboard-grid{grid-template-columns:1fr;}}
