@import url('/style/pages/web/web-console.css');

/* ==========================================================================
   GUINRANK V7 10TH-RELEASE FIX CENTER & REMEDIATION WORKBENCH
   (100% :root Theme CSS Variables — Zero Hardcoded Colors — Full RTL/LTR Parity)
   ========================================================================== */

#fix-center-app {
    --fc-on-accent: var(--card-bg);
}

[data-theme="dark"] #fix-center-app,
[data-theme="sunmoon"] #fix-center-app {
    --fc-on-accent: var(--text-main);
}

.fc-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 20px 84px;
    color: var(--text-main);
    position: relative;
    z-index: 1;
    transition: max-width 0.25s ease;
}

#fix-center-app.is-wide .fc-container {
    max-width: 100%;
    padding-inline: 28px;
}

.fc-ambient-glow {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 760px;
    max-width: 100%;
    height: 210px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 13%, transparent) 0%, transparent 72%);
    pointer-events: none;
    z-index: -1;
    filter: blur(55px);
}

.fc-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.fc-container svg.lucide,
.fc-container i[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    stroke-width: 2px;
}

[dir="rtl"] .fc-flip-rtl {
    transform: scaleX(-1);
}

/* ==========================================================================
   1. TOP COMMAND UTILITY BAR
   ========================================================================== */
.fc-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.fc-top-start,
.fc-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fc-back-link,
.fc-util-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 11px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.18s ease;
    white-space: nowrap;
}

.fc-back-link svg.lucide,
.fc-back-link i,
.fc-util-btn svg.lucide,
.fc-util-btn i {
    width: 14px !important;
    height: 14px !important;
}

.fc-back-link:hover,
.fc-util-btn:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--primary-color) 45%, var(--border-color));
    color: var(--primary-color);
}

.fc-util-btn.is-active {
    background: color-mix(in srgb, var(--primary-color) 12%, var(--card-bg));
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.fc-util-btn.is-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--fc-on-accent);
}

.fc-util-btn.is-primary:hover {
    color: var(--fc-on-accent);
    filter: brightness(1.06);
}

.fc-util-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fc-domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 9%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
}

.fc-domain-chip svg.lucide,
.fc-domain-chip i {
    width: 14px !important;
    height: 14px !important;
}

/* ==========================================================================
   2. EXECUTIVE HEADER & KPI STRIP
   ========================================================================== */
.fc-workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fc-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.fc-hero-ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-body));
    border: 1px solid color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-hero-ico svg.lucide,
.fc-hero-ico i {
    width: 22px !important;
    height: 22px !important;
}

.fc-hero-copy {
    min-width: 0;
    flex: 1;
}

.fc-hero-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.25;
}

.fc-hero-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 4 Executive KPI Cards */
.fc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fc-kpi-card {
    --k: var(--primary-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.fc-kpi-card[role="button"] {
    cursor: pointer;
}

.fc-kpi-card[role="button"]:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--k) 45%, var(--border-color));
}

.fc-kpi-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-start-end-radius: 3px;
    border-end-end-radius: 3px;
    background: var(--k);
}

.fc-kpi-card.is-danger { --k: var(--danger); }
.fc-kpi-card.is-warning { --k: var(--warning); }
.fc-kpi-card.is-blue { --k: var(--blue); }
.fc-kpi-card.is-success { --k: var(--success); }

.fc-kpi-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fc-kpi-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--k) 14%, transparent);
    color: var(--k);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-kpi-ico svg.lucide,
.fc-kpi-ico i {
    width: 16px !important;
    height: 16px !important;
}

.fc-kpi-lbl {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-muted);
    flex: 1;
}

.fc-kpi-pct {
    font-size: 15px;
    font-weight: 950;
    color: var(--k);
}

.fc-kpi-val {
    font-size: 28px;
    font-weight: 950;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -0.02em;
}

.fc-kpi-meter {
    height: 7px;
    border-radius: 999px;
    background: var(--bg-body);
    overflow: hidden;
    margin: 5px 0 2px;
}

.fc-kpi-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--k);
    transition: width 0.5s ease;
}

.fc-kpi-sub {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================================================
   3. UNIFIED FILTER, SEVERITY & CATEGORY BAR
   ========================================================================== */
.fc-filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fc-search-wrap {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: 11px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.fc-search-wrap:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.fc-search-wrap svg.lucide,
.fc-search-wrap i {
    width: 15px !important;
    height: 15px !important;
}

.fc-search-input {
    border: none;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    flex: 1;
    min-width: 0;
}

.fc-search-clear {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
}

.fc-sev-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fc-pill-btn {
    --p: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}

.fc-pill-btn.is-crit { --p: var(--danger); }
.fc-pill-btn.is-warn { --p: var(--warning); }
.fc-pill-btn.is-note { --p: var(--blue); }

.fc-sev-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--p);
}

.fc-pill-btn:hover {
    color: var(--text-main);
    border-color: color-mix(in srgb, var(--p) 40%, var(--border-color));
}

.fc-pill-btn.is-active {
    background: color-mix(in srgb, var(--p) 12%, var(--card-bg));
    border-color: var(--p);
    color: var(--p);
}

.fc-pill-cnt {
    font-size: 10.5px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--text-main);
}

.fc-sort-group {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}

.fc-sort-btn {
    padding: 6px 11px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fc-sort-btn.is-active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Category Chips */
.fc-cat-strip {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--border-color) 65%, transparent);
}

.fc-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fc-cat-chip strong {
    font-size: 10.5px;
    opacity: 0.8;
}

.fc-cat-chip:hover {
    color: var(--primary-color);
    border-color: color-mix(in srgb, var(--primary-color) 35%, var(--border-color));
}

.fc-cat-chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--fc-on-accent);
}

/* ==========================================================================
   4. 2-PANE MASTER-DETAIL REMEDIATION WORKBENCH
   ========================================================================== */
.fc-workbench {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

/* Pane 1: Issue Queue */
.fc-queue-pane {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 36px);
}

.fc-queue-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
}

.fc-queue-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--text-main);
}

.fc-queue-count {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-muted);
}

.fc-queue-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    overflow-y: auto;
}

.fc-queue-item {
    --s: var(--blue);
    width: 100%;
    text-align: start;
    padding: 12px 14px;
    border-radius: 13px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: all 0.16s ease;
    position: relative;
}

.fc-queue-item.is-critical { --s: var(--danger); }
.fc-queue-item.is-warning { --s: var(--warning); }
.fc-queue-item.is-notice { --s: var(--blue); }

.fc-queue-item:hover {
    background: var(--bg-body);
    border-color: var(--border-color);
}

.fc-queue-item.is-active {
    background: color-mix(in srgb, var(--s) 9%, var(--bg-body));
    border-color: color-mix(in srgb, var(--s) 45%, var(--border-color));
}

.fc-qi-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-qi-sev {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--s) 14%, transparent);
    color: var(--s);
}

.fc-qi-cat {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-qi-cnt {
    margin-inline-start: auto;
    font-size: 13px;
    font-weight: 950;
    color: var(--text-main);
}

.fc-qi-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
}

.fc-qi-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--border-color);
    overflow: hidden;
}

.fc-qi-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--s);
}

.fc-qi-foot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--success);
}

.fc-qi-foot svg.lucide,
.fc-qi-foot i {
    width: 12px !important;
    height: 12px !important;
}

/* Pane 2: Studio Detail Pane */
.fc-studio-pane {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.fc-studio-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}

.fc-studio-titles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.fc-studio-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.fc-sev-badge {
    font-size: 11px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 8px;
}

.fc-sev-badge.is-critical { background: var(--icon-danger-bg); color: var(--danger); }
.fc-sev-badge.is-warning { background: var(--icon-orange-bg); color: var(--warning); }
.fc-sev-badge.is-notice { background: var(--icon-blue-bg); color: var(--blue); }

.fc-cat-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.fc-code-tag {
    font-family: monospace;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-body));
    color: var(--primary-color);
}

.fc-studio-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.3;
}

.fc-studio-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fc-studio-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.fc-studio-btn svg.lucide,
.fc-studio-btn i {
    width: 14px !important;
    height: 14px !important;
}

.fc-studio-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.fc-studio-btn.is-ok {
    border-color: var(--success);
    color: var(--success);
    background: color-mix(in srgb, var(--success) 10%, var(--card-bg));
}

/* Playbook + Code Grid */
.fc-playbook-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 16px;
}

.fc-playbook-grid.is-single {
    grid-template-columns: 1fr;
}

.fc-guidance-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-box-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    color: var(--primary-color);
}

.fc-box-head svg.lucide,
.fc-box-head i {
    width: 15px !important;
    height: 15px !important;
}

.fc-guidance-text {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.6;
}

.fc-diag-note {
    margin: 4px 0 0;
    padding-top: 8px;
    border-top: 1px dashed color-mix(in srgb, var(--border-color) 80%, transparent);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Ready-to-Paste Code Card (100% theme variables!) */
.fc-code-box {
    background: var(--bg-body);
    border: 1px solid color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fc-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
    border-bottom: 1px solid var(--border-color);
}

.fc-code-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    color: var(--primary-color);
}

.fc-code-label svg.lucide,
.fc-code-label i {
    width: 14px !important;
    height: 14px !important;
}

.fc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}

.fc-copy-btn svg.lucide,
.fc-copy-btn i {
    width: 12px !important;
    height: 12px !important;
}

.fc-copy-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.fc-copy-btn.is-ok {
    border-color: var(--success);
    color: var(--success);
}

.fc-code-sample-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px dashed color-mix(in srgb, var(--border-color) 70%, transparent);
    overflow: hidden;
}

.fc-code-sample-bar code {
    font-family: monospace;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-code-pre {
    margin: 0;
    padding: 13px 15px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    text-align: left;
}

/* ==========================================================================
   5. AFFECTED PAGES ACTION TABLE
   ========================================================================== */
.fc-pages-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-pages-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fc-pages-title-grp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fc-pages-title-grp svg.lucide,
.fc-pages-title-grp i {
    width: 15px !important;
    height: 15px !important;
    color: var(--primary-color);
}

.fc-pages-title {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    color: var(--text-main);
}

.fc-pages-cnt {
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.fc-page-search {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 11px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    min-width: 220px;
}

.fc-page-search svg.lucide,
.fc-page-search i {
    width: 13px !important;
    height: 13px !important;
}

.fc-page-search-input {
    border: none;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    width: 100%;
}

.fc-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
}

.fc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: start;
}

.fc-table th {
    background: var(--bg-body);
    padding: 11px 14px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.fc-table td {
    padding: 11px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 65%, transparent);
    vertical-align: middle;
}

.fc-table tr:last-child td {
    border-bottom: none;
}

.fc-table tbody tr {
    cursor: pointer;
    transition: background 0.14s ease;
}

.fc-table tbody tr:hover td {
    background: color-mix(in srgb, var(--bg-body) 70%, transparent);
}

.fc-table tbody tr.is-selected td {
    background: color-mix(in srgb, var(--primary-color) 6%, var(--card-bg));
}

.fc-table tbody tr.is-checked td {
    opacity: 0.58;
}

.fc-th-chk, .fc-td-chk { width: 46px; text-align: center; }
.fc-th-ttl { width: 24%; }
.fc-th-act, .fc-td-act { width: 230px; text-align: end; }

.fc-check-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-body);
    color: var(--fc-on-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fc-check-btn.is-on {
    background: var(--success);
    border-color: var(--success);
}

.fc-check-btn svg.lucide,
.fc-check-btn i {
    width: 13px !important;
    height: 13px !important;
}

.fc-url-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 180px;
}

.fc-page-url {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-all;
}

.fc-page-detail {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.fc-page-title {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
}

.fc-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

.fc-act-btn,
.fc-act-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fc-act-icon-btn {
    padding: 6px 8px;
    color: var(--text-muted);
}

.fc-act-btn svg.lucide,
.fc-act-btn i,
.fc-act-icon-btn svg.lucide,
.fc-act-icon-btn i {
    width: 13px !important;
    height: 13px !important;
}

.fc-act-btn.is-verify:hover:not(:disabled) {
    border-color: var(--success);
    color: var(--success);
    background: color-mix(in srgb, var(--success) 10%, var(--card-bg));
}

.fc-act-btn.is-inspect {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 9%, var(--card-bg));
    border-color: color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
}

.fc-act-btn.is-inspect:hover {
    background: var(--primary-color);
    color: var(--fc-on-accent);
    border-color: var(--primary-color);
}

.fc-act-icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.fc-act-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.fc-empty-inline {
    text-align: center;
    padding: 28px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-body);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.fc-load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.fc-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}

.fc-load-more-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.fc-load-more-btn svg.lucide,
.fc-load-more-btn i {
    width: 14px !important;
    height: 14px !important;
}

/* ==========================================================================
   6. LOADING, ALL CLEAR & EMPTY STATES
   ========================================================================== */
.fc-state-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 52px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.fc-clear-ico,
.fc-empty-ico {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-clear-ico {
    background: var(--success-light);
    color: var(--success);
}

.fc-empty-ico {
    background: var(--bg-body);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.fc-empty-ico.is-err {
    background: var(--icon-danger-bg);
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 30%, var(--border-color));
}

.fc-clear-ico svg.lucide,
.fc-clear-ico i,
.fc-empty-ico svg.lucide,
.fc-empty-ico i {
    width: 28px !important;
    height: 28px !important;
}

.fc-state-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
}

.fc-state-desc,
.fc-state-msg {
    margin: 0;
    max-width: 520px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.55;
}

.fc-state-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}

.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.fc-btn-primary {
    background: var(--primary-color);
    color: var(--fc-on-accent);
}

.fc-btn-secondary {
    background: var(--bg-body);
    border-color: var(--border-color);
    color: var(--text-main);
}

.fc-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.fc-spinner {
    width: 42px;
    height: 42px;
    border: 3.5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: fc-spin 0.75s linear infinite;
}

.fc-mini-spin {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: fc-spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes fc-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   7. FULL CROSS-DEVICE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1120px) {
    .fc-workbench {
        grid-template-columns: 1fr;
    }
    .fc-queue-pane {
        position: static;
        max-height: 360px;
    }
    .fc-playbook-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .fc-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .fc-container {
        padding: 14px 12px 72px;
    }
    .fc-kpi-grid {
        grid-template-columns: 1fr;
    }
    .fc-hero,
    .fc-studio-pane {
        padding: 16px;
        border-radius: 16px;
    }
    .fc-row-actions {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   V10 QUIET CHROME SIGNATURE: 80/20 REMEDIATION LEVERAGE PARETO
   ========================================================================== */
#fix-center-app {
    --fc-hairline: color-mix(in srgb, var(--border-color) 52%, transparent);
    --fc-hairline-soft: color-mix(in srgb, var(--border-color) 38%, transparent);
}

.fc-back-link,
.fc-util-btn,
.fc-filter-bar,
.fc-queue-pane,
.fc-studio-pane,
.fc-state-card {
    border-color: var(--fc-hairline);
}

.fc-hero-deck {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--card-bg);
    border: 1px solid var(--fc-hairline);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
}

.fc-hero-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fc-hairline-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 16px;
    border-top: 1px solid var(--fc-hairline-soft);
}

.fc-kpi-cell {
    --k: var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-inline: 16px;
    border: none;
    border-inline-end: 1px solid var(--fc-hairline-soft);
    background: transparent;
    text-align: start;
    font: inherit;
    color: var(--text-main);
}

button.fc-kpi-cell {
    cursor: pointer;
}

button.fc-kpi-cell:hover .fc-kpi-lbl {
    color: var(--primary-color);
}

.fc-kpi-cell:first-child { padding-inline-start: 0; }
.fc-kpi-cell:last-child { border-inline-end: none; padding-inline-end: 0; }
.fc-kpi-cell.is-danger { --k: var(--danger); }
.fc-kpi-cell.is-warning { --k: var(--warning); }
.fc-kpi-cell.is-blue { --k: var(--blue); }
.fc-kpi-cell.is-success { --k: var(--success); }
.fc-kpi-val.is-warn { color: var(--warning); }

.fc-pareto-card {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    background: var(--card-bg);
    border: 1px solid var(--fc-hairline);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.fc-pareto-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px;
    border-inline-end: 1px solid var(--fc-hairline-soft);
}

.fc-pareto-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fc-pareto-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 900;
    color: var(--text-main);
}

.fc-pareto-sub {
    margin: 3px 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.fc-calm-legend {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.fc-calm-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.fc-dot.is-crit { background: var(--danger); }
.fc-dot.is-warn { background: var(--warning); }
.fc-dot.is-pri { background: var(--primary-color); }

.fc-pareto-echarts {
    width: 100%;
    height: 220px;
}

.fc-pareto-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
}

.fc-lev-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fc-lev-impact {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary-color);
}

.fc-lev-list {
    display: flex;
    flex-direction: column;
}

.fc-lev-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 8px;
    border: none;
    border-top: 1px solid var(--fc-hairline-soft);
    background: transparent;
    color: var(--text-main);
    font: inherit;
    text-align: start;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.16s ease, color 0.16s ease;
}

.fc-lev-row:hover,
.fc-lev-row.is-active {
    background: color-mix(in srgb, var(--primary-color) 7%, var(--card-bg));
}

.fc-lev-rank {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--text-muted);
    flex-shrink: 0;
}

.fc-lev-row.is-active .fc-lev-rank {
    color: var(--primary-color);
}

.fc-lev-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fc-lev-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-lev-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.fc-lev-nums {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    flex-shrink: 0;
}

.fc-lev-nums strong {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--text-main);
}

.fc-lev-nums span {
    font-size: 0.69rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 1120px) {
    .fc-pareto-card { grid-template-columns: 1fr; }
    .fc-pareto-main { border-inline-end: none; border-bottom: 1px solid var(--fc-hairline-soft); }
    .fc-hairline-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
    .fc-kpi-cell { border-inline-end: none; padding-inline: 0; }
}

@media (max-width: 600px) {
    .fc-hairline-kpis { grid-template-columns: 1fr; }
}

.fc-bkl-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.fc-bkl-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.fc-bkl-tag svg,
.fc-bkl-tag i {
    width: 11px !important;
    height: 11px !important;
}

.fc-bkl-tag.is-spam {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 12%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent);
}

.fc-bkl-tag.is-spam:hover {
    background: var(--danger);
    color: var(--fc-on-accent);
}

.fc-bkl-tag.is-eq {
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 11%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
}

.fc-bkl-tag.is-eq:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
