/* 行业周期分析：沿用玲珑塔深色 Bootstrap 风格 */
.cycle-shell {
    color: #eee;
    padding-bottom: 40px;
}
.cycle-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 16px;
}
.cycle-header h2 {
    margin: 0 0 6px;
    font-size: 1.55rem;
}
.cycle-header p {
    color: #8f9bb3;
    margin: 0;
    font-size: 13px;
}
.cycle-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cycle-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.cycle-module-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cycle-module-btn {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.04);
    color: #b9c3d6;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    transition: all .15s;
}
.cycle-module-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.cycle-module-btn.active {
    background: rgba(13,110,253,0.28);
    border-color: rgba(13,110,253,0.8);
    color: #fff;
}
.cycle-module-btn.reserved {
    color: #68738b;
    cursor: not-allowed;
}
.cycle-airline-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca8bd;
    font-size: 13px;
}
.cycle-airline-picker select {
    width: 180px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px;
    padding: 5px 8px;
    color-scheme: dark;
}
/* 原生下拉弹出层不受 select 背景控制，需单独指定，否则选项是白底白字 */
.cycle-airline-picker select option,
.cycle-field select option {
    background-color: #1f2533;
    color: #eef3fb;
}
.cycle-airline-picker select option:checked,
.cycle-field select option:checked {
    background-color: #2f77d8;
    color: #ffffff;
}
.cycle-data-time {
    color: #7f8ba3;
    font-size: 12px;
}
.cycle-main-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2px;
    margin-bottom: 12px;
}
.cycle-main-tabs::-webkit-scrollbar {
    height: 5px;
}
.cycle-main-tabs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 3px;
}
.cycle-main-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #8f9bb3;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
}
.cycle-main-tabs .nav-link:hover {
    color: #fff;
}
.cycle-main-tabs .nav-link.active {
    background: transparent;
    border-bottom-color: #0d6efd;
    color: #fff;
}
.cycle-card {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
}
.cycle-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.cycle-card-header h5,
.cycle-card-header h6 {
    margin: 0;
    color: #f4f6fb;
    font-size: 15px;
}
.cycle-card-header .sub {
    color: #7f8ba3;
    font-size: 12px;
}
.cycle-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.cycle-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.cycle-metric-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    padding: 11px 12px;
    min-height: 86px;
}
.cycle-metric-label {
    color: #8f9bb3;
    font-size: 12px;
    margin-bottom: 7px;
}
.cycle-metric-value {
    font-size: 19px;
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}
.cycle-metric-sub {
    color: #7f8ba3;
    font-size: 11px;
    margin-top: 6px;
    min-height: 14px;
}
.cycle-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
}
.cycle-badge.actual {
    background: rgba(25,135,84,0.24);
    color: #70d7a7;
    border: 1px solid rgba(25,135,84,0.55);
}
.cycle-badge.assumption {
    background: rgba(253,126,20,0.18);
    color: #ffb177;
    border: 1px solid rgba(253,126,20,0.5);
}
.cycle-badge.derived {
    background: rgba(13,110,253,0.2);
    color: #8fb9ff;
    border: 1px solid rgba(13,110,253,0.5);
}
.cycle-badge.estimate {
    background: rgba(111,66,193,0.24);
    color: #c5a4ff;
    border: 1px solid rgba(111,66,193,0.55);
}
.cycle-badge.reserved {
    background: rgba(108,117,125,0.2);
    color: #aeb6c2;
    border: 1px solid rgba(108,117,125,0.5);
}
.cycle-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.cycle-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
    font-size: 12px;
}
.cycle-table th,
.cycle-table td {
    border-bottom: 1px solid rgba(255,255,255,0.09);
    padding: 8px 9px;
    text-align: right;
    white-space: nowrap;
}
.cycle-table th {
    color: #97a3b9;
    font-weight: 500;
    background: rgba(255,255,255,0.035);
    position: sticky;
    top: 0;
    z-index: 2;
}
.cycle-table th:first-child,
.cycle-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: #20263a;
    z-index: 3;
}
.cycle-table tbody tr:hover td {
    background: rgba(255,255,255,0.035);
}
.cycle-table tbody tr:hover td:first-child {
    background: #252d45;
}
.cycle-table .positive {
    color: #ff7979;
}
.cycle-table .negative {
    color: #66d9a5;
}
.cycle-table .muted {
    color: #7f8ba3;
}
.cycle-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 12px;
}
.cycle-field {
    min-width: 0;
}
.cycle-field label {
    display: block;
    color: #9ba7ba;
    font-size: 12px;
    margin-bottom: 4px;
}
.cycle-field input,
.cycle-field select,
.cycle-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.17);
    color: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    color-scheme: dark;
}
.cycle-field input:focus,
.cycle-field select:focus,
.cycle-field textarea:focus {
    outline: none;
    border-color: rgba(13,110,253,0.85);
    background: rgba(255,255,255,0.11);
}
.cycle-field .hint {
    color: #68738b;
    font-size: 11px;
    margin-top: 3px;
}
.cycle-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}
.cycle-actions .spacer {
    flex: 1;
}
.cycle-steps {
    display: grid;
    gap: 8px;
}
.cycle-step {
    border-left: 3px solid #0d6efd;
    background: rgba(255,255,255,0.035);
    padding: 8px 10px;
    border-radius: 0 6px 6px 0;
}
.cycle-step-title {
    color: #fff;
    font-size: 12px;
    margin-bottom: 3px;
}
.cycle-step-formula {
    color: #8f9bb3;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}
.cycle-steps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.cycle-steps-table th,
.cycle-steps-table td {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 7px 8px;
    text-align: left;
    vertical-align: top;
}
.cycle-steps-table th {
    color: #97a3b9;
    font-weight: 500;
}
.cycle-alert {
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 12px;
    margin-bottom: 12px;
}
.cycle-alert.warning {
    background: rgba(253,126,20,0.12);
    border: 1px solid rgba(253,126,20,0.4);
    color: #ffc28f;
}
.cycle-alert.error {
    background: rgba(220,53,69,0.14);
    border: 1px solid rgba(220,53,69,0.45);
    color: #ff9da8;
}
.cycle-alert.info {
    background: rgba(13,110,253,0.12);
    border: 1px solid rgba(13,110,253,0.4);
    color: #a9caff;
}
.cycle-scenario-actions button,
.cycle-sensitivity-cell {
    cursor: pointer;
}
.cycle-sensitivity-wrap {
    overflow: auto;
    max-height: 560px;
}
.cycle-sensitivity-table {
    border-collapse: separate;
    border-spacing: 2px;
    min-width: 760px;
    width: 100%;
}
.cycle-sensitivity-table th,
.cycle-sensitivity-table td {
    padding: 7px 8px;
    border-radius: 5px;
    text-align: center;
    font-size: 11px;
    min-width: 78px;
}
.cycle-sensitivity-table th {
    background: rgba(255,255,255,0.07);
    color: #9ba7ba;
    position: sticky;
    top: 0;
    z-index: 2;
}
.cycle-sensitivity-table td.row-head {
    background: rgba(255,255,255,0.06);
    color: #c7d0e0;
    position: sticky;
    left: 0;
    z-index: 1;
}
.cycle-sensitivity-cell {
    background: rgba(13,110,253,0.16);
    color: #eef4ff;
    border: 1px solid rgba(13,110,253,0.27);
}
.cycle-sensitivity-cell:hover {
    border-color: #6ea8fe;
    transform: translateY(-1px);
}
.cycle-sensitivity-cell.loss {
    background: rgba(220,53,69,0.16);
    border-color: rgba(220,53,69,0.35);
}
.cycle-chart {
    width: 100%;
    height: 320px;
}
.cycle-chart.small {
    height: 260px;
}
.cycle-note {
    color: #7f8ba3;
    font-size: 12px;
    line-height: 1.65;
}
.cycle-note code {
    color: #fac858;
    background: rgba(0,0,0,0.25);
    border-radius: 3px;
    padding: 1px 4px;
}
.cycle-json-editor {
    width: 100%;
    min-height: 170px;
    font-family: Consolas, Monaco, monospace;
    line-height: 1.5;
}
.cycle-loading {
    padding: 30px 10px;
    text-align: center;
    color: #98a4b9;
}
.cycle-empty {
    padding: 22px 10px;
    text-align: center;
    color: #7f8ba3;
}
@media (max-width: 1200px) {
    .cycle-form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .cycle-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cycle-grid-2 {
        /* 必须用 minmax(0,1fr)：纯 1fr 的 auto 下限会被卡片内表格的 min-width 顶开，导致整页横向溢出 */
        grid-template-columns: minmax(0, 1fr);
    }
    .cycle-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .cycle-header {
        flex-direction: column;
    }
    .cycle-header-actions {
        justify-content: flex-start;
    }
    .cycle-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .cycle-airline-picker {
        width: 100%;
    }
    .cycle-airline-picker select {
        flex: 1;
        width: auto;
    }
    .cycle-grid-3,
    .cycle-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .cycle-chart {
        height: 250px;
    }
}

/* 可读性与口径展示增强：放在最后，统一覆盖旧的小字号。 */
.cycle-shell {
    font-size: 15px;
    line-height: 1.65;
}
.cycle-header h2 {
    font-size: 1.8rem;
}
.cycle-header p,
.cycle-module-btn,
.cycle-airline-picker,
.cycle-main-tabs .nav-link {
    font-size: 14px;
}
.cycle-data-time {
    font-size: 13px;
}
.cycle-main-tabs .nav-link {
    padding: 10px 14px;
}
.cycle-card-header h5,
.cycle-card-header h6 {
    font-size: 17px;
}
.cycle-card-header .sub {
    font-size: 13px;
}
.cycle-metric-label {
    font-size: 14px;
}
.cycle-metric-value {
    font-size: 22px;
}
.cycle-metric-sub {
    font-size: 13px;
    line-height: 1.55;
}
.cycle-metric-formula {
    color: #9eacc2;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px dashed rgba(255,255,255,0.12);
    word-break: break-word;
}
.cycle-badge {
    font-size: 12px;
    line-height: 18px;
    padding: 3px 7px;
}
.cycle-table {
    font-size: 14px;
}
.cycle-table th,
.cycle-table td {
    padding: 10px 11px;
}
.cycle-field label,
.cycle-field input,
.cycle-field select,
.cycle-field textarea {
    font-size: 14px;
}
.cycle-field .hint {
    font-size: 12px;
}
.cycle-step-title,
.cycle-step-formula,
.cycle-steps-table,
.cycle-note,
.cycle-alert {
    font-size: 14px;
}
.cycle-sensitivity-table th,
.cycle-sensitivity-table td {
    font-size: 13px;
    min-width: 88px;
}
.cycle-chart {
    height: 380px;
}
.cycle-chart.small {
    height: 300px;
}
.cycle-loading,
.cycle-empty {
    font-size: 15px;
}
.cycle-basis-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.cycle-basis-title {
    color: #e8edf7;
    font-weight: 600;
    margin-right: 2px;
}
.cycle-basis-desc {
    color: #93a0b7;
    font-size: 13px;
    margin-right: 8px;
}
.cycle-chart-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.cycle-chart-range {
    display: inline-flex;
    padding: 2px;
    border: 1px solid rgba(255,255,255,0.17);
    border-radius: 6px;
    background: rgba(255,255,255,0.045);
}
.cycle-chart-range button {
    border: none;
    background: transparent;
    color: #a8b4c8;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.cycle-chart-range button:hover {
    color: #fff;
}
.cycle-chart-range button.active {
    background: rgba(13,110,253,0.55);
    color: #fff;
}
.cycle-chart-panel {
    min-width: 0;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 7px;
    padding: 10px 10px 6px;
}
.cycle-chart-title {
    color: #dbe4f2;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 4px;
}
.cycle-chart-footnote {
    color: #8491a8;
    font-size: 12px;
    margin: 0 4px 4px;
}
.cycle-formula-list {
    display: grid;
    gap: 8px;
}
.cycle-formula-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.035);
}
.cycle-formula-row code {
    color: #f5d47a;
    background: transparent;
    font-size: 13px;
    line-height: 1.65;
    white-space: normal;
    word-break: break-word;
}
@media (max-width: 900px) {
    .cycle-chart-header-tools {
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }
}
@media (max-width: 640px) {
    .cycle-basis-legend {
        align-items: flex-start;
    }
    .cycle-basis-desc {
        width: 100%;
        margin: 0 0 4px;
    }
    .cycle-chart-range {
        width: 100%;
    }
    .cycle-chart-range button {
        flex: 1;
    }
    .cycle-chart {
        height: 300px;
    }
    .cycle-chart.small {
        height: 280px;
    }
}
.cycle-source-note {
    white-space: normal !important;
    min-width: 260px;
    max-width: 420px;
    text-align: left;
    line-height: 1.65;
    color: #aeb9ca;
}

/* ==========================================================================
   移动端与平板优化
   目标：消除横向溢出、放大触控目标、小屏不触发 iOS 输入缩放。
   ========================================================================== */

/* 网格子项默认 min-width:auto，会被内部宽表格撞开；统一允许收缩。 */
.cycle-grid-2 > *,
.cycle-grid-3 > *,
.cycle-form-grid > * {
    min-width: 0;
}
.cycle-card,
.cycle-chart-panel {
    min-width: 0;
}

/* 细长表格容器：惯性滚动 + 阻止滚动传染到整页 */
.cycle-table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.cycle-main-tabs {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

/* 触控目标：鼠标环境不受影响，触摸设备上按钮/输入框至少 40px 高。 */
@media (hover: none) and (pointer: coarse) {
    .cycle-module-btn,
    .cycle-chart-range button,
    .cycle-actions .btn,
    .cycle-scenario-actions button {
        min-height: 40px;
        touch-action: manipulation;
    }
    .cycle-main-tabs .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        touch-action: manipulation;
    }
    .cycle-airline-picker select,
    .cycle-field input,
    .cycle-field select {
        min-height: 40px;
    }
    .cycle-sensitivity-cell {
        min-height: 40px;
        min-width: 72px;
    }
}

/* 横向可滚动的表格/页签加一个渐隐提示，让用户知道右边还有内容。 */
.cycle-table-wrap,
.cycle-main-tabs {
    background-image: linear-gradient(to right, rgba(255,255,255,0.001), rgba(255,255,255,0.08));
    background-repeat: no-repeat;
    background-size: 18px 100%;
    background-position: right center;
}

@media (max-width: 1200px) {
    .cycle-chart {
        height: 340px;
    }
    .cycle-chart.small {
        height: 280px;
    }
}

@media (max-width: 900px) {
    /* 保留可读性的前提下收紧卡片内边距，给数据留出更多宽度。 */
    .cycle-card {
        padding: 12px;
        border-radius: 7px;
    }
    .cycle-shell {
        font-size: 14px;
    }
    .cycle-chart {
        height: 300px;
    }
    .cycle-chart.small {
        height: 260px;
    }
    /* 饼图/柱状图之外的普通表格在平板上不再强制 780px，减少横向滚动距离。 */
    .cycle-table {
        min-width: 660px;
    }
    .cycle-source-note {
        min-width: 200px;
        max-width: 320px;
    }
    .cycle-card-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .cycle-shell {
        font-size: 14px;
        padding-bottom: 24px;
    }
    .cycle-header h2 {
        font-size: 1.45rem;
    }
    .cycle-header-actions {
        width: 100%;
    }
    .cycle-header-actions .btn {
        flex: 1 1 auto;
    }
    /* 口径图例在手机上占屏太多，改为两列紧凑排列。 */
    .cycle-basis-legend {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 6px 8px;
        padding: 10px;
    }
    .cycle-basis-title {
        grid-column: 1 / -1;
        margin: 0 0 2px;
    }
    .cycle-basis-desc {
        font-size: 12px;
        margin: 0;
    }
    .cycle-toolbar {
        padding: 10px;
        gap: 10px;
    }
    .cycle-chart {
        height: 260px;
    }
    .cycle-chart.small {
        height: 230px;
    }
    .cycle-chart-title {
        font-size: 13px;
    }
    .cycle-chart-footnote {
        font-size: 11px;
    }
    /* 移动端表单：16px 可避免 iOS 聚焦时自动放大页面。 */
    .cycle-field input,
    .cycle-field select,
    .cycle-field textarea,
    .cycle-airline-picker select {
        font-size: 16px;
    }
    .cycle-table {
        min-width: 560px;
        font-size: 13px;
    }
    .cycle-table th,
    .cycle-table td {
        padding: 9px 8px;
    }
    .cycle-source-note {
        min-width: 180px;
        max-width: 240px;
        font-size: 12px;
    }
    .cycle-formula-row {
        flex-direction: column;
        gap: 6px;
    }
    .cycle-formula-row code {
        font-size: 12px;
    }
    .cycle-step-formula {
        font-size: 12px;
        word-break: break-word;
    }
}

/* ==========================================================================
   页面留白与触屏兜底
   ========================================================================== */

/* 本页签挂在 .container-fluid 之外，内容原本贴死窗口边缘；补齐与站点其它页面
   一致的左右留白：桌面/平板 20px，≤768px 随 .container-fluid 一起收窄到 10px。 */
.cycle-shell {
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .cycle-shell {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* iOS Safari 在字号小于 16px 的输入框聚焦时会自动放大整页，平板同样会触发。 */
@media (max-width: 1024px) {
    .cycle-field input,
    .cycle-field select,
    .cycle-field textarea,
    .cycle-airline-picker select {
        font-size: 16px;
    }
}

/* 带鼠标的 iPad、触屏笔记本不会命中 (pointer: coarse)，这里按宽度兜底放大点按目标。 */
@media (max-width: 1024px) and (hover: hover) {
    .cycle-module-btn,
    .cycle-chart-range button,
    .cycle-actions .btn,
    .cycle-scenario-actions button,
    .cycle-main-tabs .nav-link {
        min-height: 38px;
    }
    .cycle-airline-picker select,
    .cycle-field input,
    .cycle-field select {
        min-height: 38px;
    }
}

/* 顶部“刷新数据”按钮在各尺寸下都偏小，补足点按高度。 */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .cycle-header-actions .btn {
        min-height: 40px;
    }
}

/* 情景标签与口径徽标同处首列，而 .cycle-table 默认 nowrap，窄屏下内容会溢出
   单元格压到下一列；这里允许换行并给首列留出徽标所需宽度。 */
#cycleScenarioBody td:first-child,
#cycleValuationBody td:first-child {
    white-space: normal;
    min-width: 178px;
}
#cycleScenarioBody td:first-child .cycle-badge,
#cycleValuationBody td:first-child .cycle-badge {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
}

/* 主页面为市场宽度表写的全局 `th:first-child, td:first-child` 会作用到本模块的
   所有表格：首列被锁死 120px 并带上 3px 亮边框，窄屏下标签会被挤到溢出去。
   这里按模块收回宽度与边框，保留 sticky 冻结首列。（本文件在行内样式之前加载，
   所以需要提高选择器优先级才能覆盖。） */
#page-cycle table th:first-child,
#page-cycle table td:first-child {
    width: auto;
    max-width: none;
    border-right: none;
}

/* ===== V2.0：模型定位、基准快照、校准状态、参数作用 ===== */
.cycle-positioning {
    background: rgba(13,110,253,0.1);
    border: 1px solid rgba(13,110,253,0.32);
    border-left: 3px solid #0d6efd;
    border-radius: 8px;
    padding: 11px 13px;
    margin-bottom: 12px;
}

.cycle-positioning-title {
    color: #9fc2ff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.cycle-positioning-list {
    margin: 0;
    padding-left: 20px;
    color: #9aa7bd;
    font-size: 13px;
    line-height: 1.75;
}

.cycle-positioning-list li + li { margin-top: 3px; }

.cycle-dirty-hint,
.cycle-recalc-ok {
    margin: 10px 0 0;
    padding: 8px 11px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.cycle-dirty-hint {
    background: rgba(253,126,20,0.16);
    border: 1px solid rgba(253,126,20,0.45);
    color: #ffb177;
}

.cycle-recalc-ok {
    background: rgba(25,135,84,0.16);
    border: 1px solid rgba(25,135,84,0.45);
    color: #70d7a7;
}

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

.cycle-calibration-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    padding: 9px 11px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}

.cycle-period-consistency {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.cycle-period-detail {
    color: #93a0b6;
    font-size: 13px;
    line-height: 1.7;
    padding: 8px 10px;
    border-left: 3px solid rgba(255,193,7,0.7);
    background: rgba(255,193,7,0.06);
}

.cycle-period-detail.bad strong {
    color: #ffd166;
}

.cycle-calibration-head.green { background: rgba(25,135,84,0.14); border-color: rgba(25,135,84,0.45); }
.cycle-calibration-head.yellow { background: rgba(255,193,7,0.13); border-color: rgba(255,193,7,0.42); }
.cycle-calibration-head.red { background: rgba(220,53,69,0.15); border-color: rgba(220,53,69,0.45); }

.cycle-calibration-label { font-weight: 600; font-size: 14px; }
.cycle-calibration-head.green .cycle-calibration-label { color: #70d7a7; }
.cycle-calibration-head.yellow .cycle-calibration-label { color: #ffd166; }
.cycle-calibration-head.red .cycle-calibration-label { color: #ff8f9c; }

.cycle-calibration-message { color: #93a0b6; font-size: 13px; line-height: 1.6; }

.cycle-calibration-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    margin-top: 9px;
}

.cycle-calibration-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #93a0b6;
    border-bottom: 1px dashed rgba(255,255,255,0.09);
    padding-bottom: 5px;
}

.cycle-calibration-row strong { color: #dfe6f2; font-weight: 600; }

.cycle-calibration-reasons {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #9aa7bd;
    font-size: 13px;
    line-height: 1.7;
}

.cycle-health {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.cycle-health-item {
    display: grid;
    grid-template-columns: 116px 168px minmax(0, 1fr);
    align-items: start;
    gap: 6px 10px;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.09);
    font-size: 13px;
}

.cycle-health-status { font-weight: 600; white-space: nowrap; }
.cycle-health-item.ok .cycle-health-status { color: #70d7a7; }
.cycle-health-item.degraded { border-color: rgba(255,193,7,0.4); }
.cycle-health-item.degraded .cycle-health-status { color: #ffd166; }
.cycle-health-item.missing { border-color: rgba(220,53,69,0.42); }
.cycle-health-item.missing .cycle-health-status { color: #ff8f9c; }
.cycle-health-label { color: #dfe6f2; }
.cycle-health-detail { color: #8b98b0; line-height: 1.6; }

.cycle-roles { display: grid; gap: 8px; }

.cycle-role-row {
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.09);
}

.cycle-role-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #dfe6f2;
}

.cycle-role-badge {
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.cycle-role-badge.affects { background: rgba(25,135,84,0.22); color: #70d7a7; border: 1px solid rgba(25,135,84,0.5); }
.cycle-role-badge.display { background: rgba(108,117,125,0.22); color: #aeb6c2; border: 1px solid rgba(108,117,125,0.5); }

.cycle-role-desc { color: #8b98b0; font-size: 13px; line-height: 1.65; margin-top: 4px; }

.cycle-badge.baseline {
    background: rgba(255,255,255,0.14);
    color: #e8eefb;
    border: 1px solid rgba(255,255,255,0.34);
}

#cycleScenarioBody tr.cycle-scenario-baseline td,
#cycleValuationBody tr.cycle-scenario-baseline td,
#cycleValuationScenarioBody tr.cycle-scenario-baseline td {
    background: rgba(13,110,253,0.12);
}

#cycleValuationScenarioBody td:first-child {
    white-space: normal;
    min-width: 158px;
}

#cycleValuationScenarioBody td:first-child .cycle-badge {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
}

@media (max-width: 900px) {
    .cycle-snapshot {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cycle-calibration-rows {
        grid-template-columns: minmax(0, 1fr);
    }
    .cycle-health-item {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .cycle-snapshot {
        grid-template-columns: minmax(0, 1fr);
    }
    .cycle-positioning-list {
        padding-left: 18px;
    }
}

/* ==========================================================================
   航煤数据源：真实数据优先 → 国内航煤出厂价 → 手工配置 → 模型估算兜底。
   ========================================================================== */
.cycle-jet-status {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}
.cycle-jet-status-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 7px 10px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
}
.cycle-jet-status-label {
    color: #93a0b7;
    font-size: 13px;
}
.cycle-jet-status-value {
    color: #e8edf7;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}
.cycle-jet-fallback {
    margin-top: 4px;
    padding: 9px 11px;
    border-radius: 6px;
    background: rgba(255,193,7,0.12);
    border: 1px solid rgba(255,193,7,0.42);
    color: #ffd979;
    font-size: 13px;
    line-height: 1.6;
}
.cycle-jet-disclosure {
    margin-top: 4px;
    color: #93a0b7;
    font-size: 13px;
    line-height: 1.6;
}
.cycle-jet-chain-label {
    color: #93a0b7;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 6px;
}
.cycle-jet-chain {
    display: grid;
    gap: 5px;
}
.cycle-jet-chain-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 88px minmax(0, 2fr);
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid rgba(255,255,255,0.16);
    font-size: 13px;
}
.cycle-jet-chain-name { color: #dbe4f2; }
.cycle-jet-chain-state { color: #aeb9ca; }
.cycle-jet-chain-detail {
    color: #8b98b0;
    word-break: break-word;
}
.cycle-jet-chain-row.real { border-left-color: rgba(25,135,84,0.85); }
.cycle-jet-chain-row.real .cycle-jet-chain-state { color: #70d7a7; }
.cycle-jet-chain-row.warn { border-left-color: rgba(255,193,7,0.85); }
.cycle-jet-chain-row.warn .cycle-jet-chain-state { color: #ffd979; }
.cycle-jet-chain-row.fallback { border-left-color: rgba(13,110,253,0.85); }
.cycle-jet-chain-row.fallback .cycle-jet-chain-state { color: #8ab4ff; }
.cycle-jet-chain-row.off .cycle-jet-chain-state { color: #8b98b0; }
.cycle-jet-toggle button.active {
    background: rgba(25,135,84,0.52);
    color: #fff;
}
.cycle-jet-toggle button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.cycle-jet-manual {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.12);
}
.cycle-jet-manual summary {
    cursor: pointer;
    color: #aeb9ca;
    font-size: 13px;
    line-height: 1.7;
}
.cycle-jet-manual summary:hover { color: #e8edf7; }
@media (max-width: 640px) {
    .cycle-jet-status-row,
    .cycle-jet-chain-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }
    .cycle-jet-status-label,
    .cycle-jet-chain-state {
        font-size: 12px;
    }
    .cycle-jet-status-value {
        font-size: 15px;
    }
}
