/* Start custom CSS for html, class: .elementor-element-f9db42e *//* ==========================================================================
   UNIVERSAL TOPIC GENERATOR APPLICATION DESIGN SYSTEM CSS TOKENS
   ========================================================================== */

:root {
    --tg-clr-bg: #f8fafc;
    --tg-clr-surface: #ffffff;
    --tg-clr-border: #e2e8f0;
    --tg-clr-text-main: #0f172a;
    --tg-clr-text-sub: #475569;
    --tg-clr-brand: #2563eb;
    --tg-clr-brand-hover: #1d4ed8;
    --tg-clr-brand-light: #eff6ff;
    --tg-clr-success: #10b981;
    --tg-clr-success-hover: #059669;
    --tg-clr-danger: #ef4444;
    --tg-clr-danger-light: #fef2f2;
    --tg-clr-warn: #f59e0b;
    --tg-clr-warn-light: #fef3c7;
    --tg-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --tg-radius-base: 10px;
    --tg-radius-inner: 6px;
    --tg-font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --tg-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.tg-body {
    background-color: var(--tg-clr-bg);
    color: var(--tg-clr-text-main);
    font-family: var(--tg-font-stack);
    font-size: 15px;
    line-height: 1.5;
    padding-bottom: 60px;
}

/* BRAND HEADER COMPONENT */
.tg-header {
    background-color: var(--tg-clr-surface);
    border-bottom: 1px solid var(--tg-clr-border);
    padding: 20px 0;
    box-shadow: var(--tg-shadow-sm);
}

.tg-header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tg-brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.tg-version-badge {
    font-size: 12px;
    background: var(--tg-clr-brand-light);
    color: var(--tg-clr-brand);
    padding: 2px 8px;
    border-radius: 12px;
    vertical-align: middle;
}

.tg-brand-subtitle {
    color: var(--tg-clr-text-sub);
    font-size: 14px;
}

/* MACRO WORKSPACE LAYOUT */
.tg-main-container {
    max-width: 1440px;
    margin: 30px auto 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* NAV ROADMAP STEP CONTROLLER */
.tg-progress-bar {
    background: var(--tg-clr-surface);
    border: 1px solid var(--tg-clr-border);
    border-radius: var(--tg-radius-base);
    padding: 14px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    box-shadow: var(--tg-shadow-sm);
}

.tg-progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    opacity: 0.35;
    transition: var(--tg-transition);
}

.tg-progress-step.tg-step-active { opacity: 1; font-weight: 700; }
.tg-progress-step.tg-step-done { opacity: 0.8; }

.tg-progress-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--tg-clr-text-sub);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-progress-step.tg-step-active .tg-progress-badge { background-color: var(--tg-clr-brand); }
.tg-progress-step.tg-step-done .tg-progress-badge { background-color: var(--tg-clr-success); }
.tg-progress-badge-text { font-size: 12px; color: var(--tg-clr-text-main); }

/* STRUCTURAL VIEWPORT ACCORDIONS */
.tg-panel { display: none; }
.tg-panel.tg-panel-active { display: block; }

.tg-card {
    background-color: var(--tg-clr-surface);
    border: 1px solid var(--tg-clr-border);
    border-radius: var(--tg-radius-base);
    margin-bottom: 24px;
    box-shadow: var(--tg-shadow-sm);
    overflow: hidden;
}

.tg-card-header {
    border-bottom: 1px solid var(--tg-clr-border);
    padding: 16px 20px;
    background-color: #fafafa;
}

.tg-card-header h2 { font-size: 15px; font-weight: 700; }
.tg-card-body { padding: 20px; }
.tg-panel-desc { font-size: 14px; color: var(--tg-clr-text-sub); margin-bottom: 16px; }

/* FORM TYPOGRAPHY SYSTEM */
.tg-form-group { margin-bottom: 20px; }
.tg-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--tg-clr-text-main); margin-bottom: 8px; }
.tg-required { color: var(--tg-clr-danger); font-weight: 700; }
.tg-optional { font-weight: 400; opacity: 0.7; }

.tg-input, .tg-select, .tg-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--tg-clr-border);
    border-radius: var(--tg-radius-inner);
    font-family: inherit;
    font-size: 14px;
    background-color: #ffffff;
    outline: none;
    transition: var(--tg-transition);
}

.tg-input:focus, .tg-select:focus, .tg-textarea:focus {
    border-color: var(--tg-clr-brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tg-textarea { height: 120px; resize: vertical; }
.tg-char-counter { font-size: 12px; color: var(--tg-clr-text-sub); text-align: right; margin-top: 4px; }
.tg-form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* DYNAMIC ENGINE SELECTION UTILITY DECK */
.tg-utility-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    margin-bottom: 20px;
    background: var(--tg-clr-surface);
    padding: 14px;
    border: 1px solid var(--tg-clr-border);
    border-radius: var(--tg-radius-base);
}

.tg-search-box-wrapper { position: relative; display: flex; align-items: center; }
.tg-search-icon { position: absolute; left: 12px; color: var(--tg-clr-text-sub); font-size: 13px; }
.tg-utility-bar .tg-input { padding-left: 34px; }
.tg-global-actions { display: flex; gap: 10px; }

/* DATA-DRIVEN LIBRARY ACCORDION STYLES */
.tg-category-card {
    background: var(--tg-clr-surface);
    border: 1px solid var(--tg-clr-border);
    border-radius: var(--tg-radius-base);
    margin-bottom: 16px;
    box-shadow: var(--tg-shadow-sm);
    overflow: hidden;
}

.tg-category-header {
    padding: 14px 20px;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--tg-clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tg-clickable-header-zone { display: flex; align-items: center; gap: 12px; cursor: pointer; flex-grow: 1; }
.tg-category-toggle-icon { font-size: 11px; color: var(--tg-clr-text-sub); transition: transform 0.2s; }
.tg-category-card.tg-collapsed .tg-category-toggle-icon { transform: rotate(-90deg); }
.tg-category-title { font-size: 15px; font-weight: 700; }
.tg-category-actions { display: flex; gap: 8px; }
.tg-category-body { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tg-category-card.tg-collapsed .tg-category-body { display: none !important; }

/* COMPONENT CARD MATRIX */
.tg-generator-card {
    border: 1px solid var(--tg-clr-border);
    border-radius: var(--tg-radius-inner);
    padding: 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    background-color: var(--tg-clr-surface);
    transition: var(--tg-transition);
    position: relative;
    user-select: none;
}

.tg-generator-card:hover { border-color: var(--tg-clr-brand); box-shadow: var(--tg-shadow-sm); }
.tg-generator-card.tg-selected { border-color: var(--tg-clr-brand); background-color: var(--tg-clr-brand-light); }
.tg-card-icon { font-size: 20px; background: #f1f5f9; border-radius: 4px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.tg-card-details { display: flex; flex-direction: column; gap: 2px; }
.tg-card-name { font-size: 13.5px; font-weight: 700; }
.tg-card-desc { font-size: 12px; color: var(--tg-clr-text-sub); line-height: 1.3; }
.tg-custom-checkbox { width: 16px; height: 18px; border: 2px solid var(--tg-clr-border); border-radius: 4px; position: relative; }
.tg-generator-card.tg-selected .tg-custom-checkbox { background-color: var(--tg-clr-brand); border-color: var(--tg-clr-brand); }
.tg-generator-card.tg-selected .tg-custom-checkbox::after {
    content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 7px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tg-card-qty-badge { position: absolute; bottom: 6px; right: 6px; background: var(--tg-clr-brand); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; display: none; }
.tg-generator-card.tg-selected .tg-card-qty-badge { display: block; }

/* CAPACITY FIELDS MATRIX */
.tg-quantity-container { display: flex; flex-direction: column; gap: 10px; max-height: 350px; overflow-y: auto; padding-right: 4px; }
.tg-empty-state, .tg-empty-notice { font-size: 13.5px; color: var(--tg-clr-text-sub); text-align: center; padding: 30px 10px; }
.tg-qty-row, .tg-qty-card-row {
    display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 12px;
    background: #fafafa; padding: 10px 14px; border-radius: var(--tg-radius-inner);
    border: 1px solid var(--tg-clr-border); animation: tgFadeIn 0.2s ease-out;
}
.tg-qty-label, .tg-qty-card-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-qty-card-input-wrapper { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tg-qty-row .tg-input, .tg-qty-card-input-wrapper .tg-input { padding: 6px 10px; font-weight: 700; text-align: center; }
.tg-qty-error-balloon { font-size: 11px; font-weight: 600; color: var(--tg-clr-danger); }

/* BLUEPRINT FLAG OPTIONS STYLE */
.tg-options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tg-option-checkbox-wrapper { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; user-select: none; }
.tg-option-checkbox-wrapper input { display: none; }
.tg-custom-box-skin { width: 16px; height: 16px; border: 2px solid var(--tg-clr-border); border-radius: 4px; flex-shrink: 0; margin-top: 2px; background: white; position: relative; }
.tg-option-checkbox-wrapper input:checked + .tg-custom-box-skin { background-color: var(--tg-clr-brand); border-color: var(--tg-clr-brand); }
.tg-option-checkbox-wrapper input:checked + .tg-custom-box-skin::after {
    content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 7px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tg-advanced-tuning-header { font-size: 14px; font-weight: 700; margin: 24px 0 12px 0; border-top: 1px solid var(--tg-clr-border); padding-top: 16px; }
.tg-advanced-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 7-STAGE QA GATE LAYOUT */
.tg-qa-gate-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.tg-gate-row { border: 1px solid var(--tg-clr-border); border-radius: var(--tg-radius-inner); background: #ffffff; padding: 12px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.tg-gate-row.status-pending { border-left: 4px solid var(--tg-clr-text-sub); opacity: 0.5; }
.tg-gate-row.status-running { border-left: 4px solid var(--tg-clr-brand); background: var(--tg-clr-brand-light); animation: tgPulseBg 1.5s infinite alternate; }
.tg-gate-row.status-passed { border-left: 4px solid var(--tg-clr-success); }
.tg-gate-row.status-failed { border-left: 4px solid var(--tg-clr-danger); background: var(--tg-clr-danger-light); }

.tg-gate-step-num { font-size: 11px; font-weight: 800; background: #e2e8f0; color: var(--tg-clr-text-sub); border-radius: 4px; padding: 2px 6px; }
.tg-gate-row.status-running .tg-gate-step-num { background: var(--tg-clr-brand); color: white; }
.tg-gate-row.status-passed .tg-gate-step-num { background: var(--tg-clr-success); color: white; }
.tg-gate-row.status-failed .tg-gate-step-num { background: var(--tg-clr-danger); color: white; }
.tg-gate-details { display: flex; flex-direction: column; gap: 1px; }
.tg-gate-title { font-size: 13.5px; font-weight: 700; }
.tg-gate-log { font-size: 12px; color: var(--tg-clr-text-sub); }
.tg-gate-row.status-failed .tg-gate-log { color: #b91c1c; font-weight: 500; }
.tg-gate-status-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.status-pending .tg-gate-status-pill { background: #f1f5f9; color: var(--tg-clr-text-sub); }
.status-running .tg-gate-status-pill { background: #dbeafe; color: var(--tg-clr-brand); }
.status-passed .tg-gate-status-pill { background: #d1fae5; color: #065f46; }
.status-failed .tg-gate-status-pill { background: rgba(239,68,68,0.15); color: #991b1b; }
.tg-qa-action-bar { display: flex; justify-content: flex-end; gap: 12px; }

/* MASTER PAYLOAD DISPLAYER WORKSPACE */
.tg-prompt-card { margin-top: 24px; }
.tg-prompt-actions { display: flex; gap: 8px; margin-left: auto; }
.tg-btn-icon { background: var(--tg-clr-brand-light); color: var(--tg-clr-brand); border: none; padding: 6px 12px; font-size: 12px; font-weight: 700; border-radius: 4px; cursor: pointer; transition: var(--tg-transition); }
.tg-btn-icon:hover { opacity: 0.85; }
.tg-btn-icon.var-success { background: #d1fae5; color: #065f46; }
.tg-btn-icon.var-primary { background: var(--tg-clr-brand); color: white; }
.tg-prompt-display { width: 100%; height: 350px; font-family: monospace; font-size: 12px; padding: 14px; background: #0f172a; color: #f8fafc; border: 1px solid var(--tg-clr-border); border-radius: 4px; resize: none; outline: none; }

/* ATOMIC BUTTON CONTROLS FOOTER */
.tg-action-footer { display: flex; justify-content: flex-end; gap: 16px; margin-top: 10px; background: var(--tg-clr-surface); border: 1px solid var(--tg-clr-border); border-radius: var(--tg-radius-base); padding: 14px 20px; box-shadow: var(--tg-shadow-sm); }
.tg-action-footer #tgBtnReset { margin-right: auto; }
.tg-btn { padding: 10px 20px; font-family: inherit; font-size: 13.5px; font-weight: 700; border-radius: var(--tg-radius-inner); border: 1px solid transparent; cursor: pointer; transition: var(--tg-transition); user-select: none; }
.tg-btn-secondary { background-color: var(--tg-clr-surface); border-color: var(--tg-clr-border); color: var(--tg-clr-text-sub); }
.tg-btn-secondary:hover:not(:disabled) { background-color: var(--tg-clr-bg); color: var(--tg-clr-text-main); }
.tg-btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
.tg-btn.var-primary { background-color: var(--tg-clr-brand); color: #ffffff; }
.tg-btn.var-primary:hover { background-color: var(--tg-clr-brand-hover); }
.tg-btn.var-success { background-color: var(--tg-clr-success); color: #ffffff; }
.tg-btn.var-success:hover { background-color: var(--tg-clr-success-hover); }
.tg-hidden { display: none !important; }

/* SIDEBAR LIVE TELEMETRY OVERLAY COMPONENT */
.tg-dashboard-panel { position: sticky; top: 30px; }
.tg-dashboard { background: #0f172a; color: #f8fafc; border-radius: var(--tg-radius-base); box-shadow: var(--tg-shadow-md); overflow: hidden; }
.tg-dashboard-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; padding: 16px 20px; background: #1e293b; }
.tg-dashboard-title { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; color: #94a3b8; }
.tg-pulse-indicator { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tg-pulse-indicator.var-idle { background: var(--tg-clr-warn); box-shadow: 0 0 0 4px rgba(245,158,11,0.25); }
.tg-pulse-indicator.var-running { background: var(--tg-clr-brand); box-shadow: 0 0 0 4px rgba(37,99,235,0.3); animation: tgPulse 1.5s infinite; }
.tg-pulse-indicator.var-passed { background: var(--tg-clr-success); box-shadow: 0 0 0 4px rgba(16,185,129,0.3); }
.tg-pulse-indicator.var-failed { background: var(--tg-clr-danger); box-shadow: 0 0 0 4px rgba(239,68,68,0.3); }

.tg-dashboard-body { padding: 20px; }
.tg-summary-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 10px; }
.tg-summary-label { color: #94a3b8; }
.tg-summary-value { font-weight: 600; text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-summary-value.var-highlight { color: #38bdf8; }
.tg-summary-divider { height: 1px; background: #334155; margin: 14px 0; }

/* VERIFICATION SCORE CARDS GRID */
.tg-qa-score-matrix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tg-matrix-tile { background: #1e293b; padding: 10px; border-radius: 6px; display: flex; flex-direction: column; gap: 4px; border: 1px solid #334155; }
.tg-tile-lbl { font-size: 11px; color: #94a3b8; font-weight: 600; text-transform: uppercase; }
.tg-tile-val { font-size: 14px; color: #ffffff; font-weight: 700; }

.tg-status-box { background: #1e293b; padding: 12px; border-radius: var(--tg-radius-inner); }
.tg-status-line { display: flex; justify-content: space-between; align-items: center; }
.tg-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.tg-badge.var-danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.tg-badge.var-success { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.tg-badge.var-running { background: rgba(37, 99, 235, 0.2); color: #93c5fd; border: 1px solid rgba(37, 99, 235, 0.3); }

.tg-input.invalid, .tg-textarea.invalid { border-color: var(--tg-clr-danger); background-color: #fffafb; }
.tg-input.var-error { border-color: var(--tg-clr-danger) !important; background-color: #fffbfb; }
.tg-category-card.tg-hidden-node, .tg-generator-card.tg-hidden-node { display: none !important; }
.tg-error-msg { font-size: 12px; color: var(--tg-clr-danger); font-weight: 600; margin-top: 4px; }

/* UTILITY KEYFRAME LIFECYCLES */
@keyframes tgFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tgPulseBg { from { background-color: rgba(37,99,235,0.02); } to { background-color: rgba(37,99,235,0.08); } }
@keyframes tgPulse { 0% { transform: scale(0.95); } 70% { transform: scale(1); } 100% { transform: scale(0.95); } }

/* RESPONSIVE LAYOUT ENGINE MEDIA OVERRIDES */
@media (max-width: 1024px) {
    .tg-main-container { grid-template-columns: 1fr; gap: 24px; }
    .tg-dashboard-panel { position: static; }
    .tg-category-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .tg-main-container { padding: 0 16px; margin-top: 15px; }
    .tg-progress-text, .tg-global-actions { display: none; }
    .tg-utility-bar { grid-template-columns: 1fr; }
    .tg-category-body { grid-template-columns: 1fr; }
    .tg-form-row-3, .tg-advanced-select-grid { grid-template-columns: 1fr; gap: 12px; }
}/* End custom CSS */