.ctp,.ctp-round{box-sizing:border-box;min-width:0;max-width:100%;color:#e8edf5}
.ctp{margin:22px 0;padding:18px;border:1px solid #354153;border-radius:12px;background:#101722;scroll-margin-top:90px}
.ctp *,.ctp-round *{box-sizing:border-box;min-width:0}
.ctp h2{font-size:22px;margin:0 0 14px}.ctp h3,.ctp-round h4{font-size:18px}
.ctp h4,.ctp-round h4{margin:20px 0 11px}.ctp h5,.ctp-round h5{font-size:15px;margin:0 0 9px}
.ctp p,.ctp-round p{overflow-wrap:anywhere;line-height:1.6}
.ctp-note{font-size:13px;color:#b4bfd0;line-height:1.6;margin:12px 0}
.ctp a,.ctp-round a{color:#b4d7ff;text-underline-offset:3px}
.ctp-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.ctp-tabs button,.ctp-array button{font:inherit;cursor:pointer;color:#e8edf5;background:#232d3d;border:1px solid #4c5a70;border-radius:9px;min-height:44px}
.ctp-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 12px;font-size:14px;font-weight:650}
.ctp-tabs button[aria-pressed=true]{border-color:#f3ca70;background:#5b4829;color:#fff5dc;box-shadow:inset 0 0 0 1px #f3ca7055}
.ctp button:focus-visible,.ctp-round button:focus-visible,.ctp summary:focus-visible,.ctp-round summary:focus-visible,.ctp-scroll:focus-visible{outline:3px solid #80c6ff;outline-offset:3px}
.ctp button:disabled,.ctp-round button:disabled{cursor:default;opacity:.75}
.ctp-art{object-fit:contain;flex:0 0 40px;display:inline-block;vertical-align:middle;max-width:40px;max-height:40px}
.ctp-slot-icon{width:40px;height:40px;flex:0 0 40px;border:1px solid #bca467;background:linear-gradient(145deg,#6d5427,#202a3b);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:28px;color:#ffe5a5;vertical-align:middle}
.ctp-card{border:1px solid #3c495d;border-radius:12px;background:#1a2332;padding:18px;min-width:0;margin:16px 0}
.ctp-card>h3{display:flex;align-items:center;gap:10px;margin:0 0 17px}
.ctp-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}
.ctp-kpis>div{padding:12px;border:1px solid #39485d;border-radius:9px;background:#111a26}
.ctp-kpis dt{font-size:12px;color:#bdc7d8;margin-bottom:8px;line-height:1.4}
.ctp-kpis dd{font-size:23px;font-weight:700;color:#efcd7c;margin:0;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ctp-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:16px 0}
.ctp-choice{border:1px solid #43526a;border-top-width:4px;border-radius:10px;background:#121b28;padding:14px;min-width:0}
.ctp-choice[data-color=Red]{border-top-color:#f27681}.ctp-choice[data-color=Blue]{border-top-color:#74b7ff}.ctp-choice[data-color=Green]{border-top-color:#69d2ac}.ctp-choice[data-color=Yellow]{border-top-color:#f4d36e}
.ctp-choice h4,.ctp-choice h5{margin:0 0 12px}.ctp-choice>.ctp-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ctp-choice>.ctp-kpis>div{padding:9px}.ctp-choice>.ctp-kpis dd{font-size:19px}.ctp-choice-value{font-size:30px;font-weight:750;color:#f1d284;font-variant-numeric:tabular-nums}
.ctp-fold,.ctp-array,.ctp-round{border:1px solid #3c4b61;border-radius:10px;background:#141e2d;margin:14px 0;padding:0 12px}
.ctp-fold>summary,.ctp-array>summary,.ctp-round>summary{cursor:pointer;min-height:48px;padding:13px 0;font-weight:650;line-height:1.5;list-style:disclosure-closed}
.ctp-fold[open]>summary,.ctp-array[open]>summary{list-style:disclosure-open}
.ctp-round>summary{display:flex;gap:12px;align-items:center;list-style:none}
.ctp-round>summary:after{content:'＋';margin-left:auto;font-size:18px;color:#efd28d;padding:0 3px}
.ctp-round[open]>summary:after{content:'−'}
.ctp-round>summary>span{display:block}.ctp-round>summary strong,.ctp-round>summary small{display:block}
.ctp-round>summary small{font-size:12px;font-weight:400;color:#b8c3d4;margin-top:3px}
.ctp-top-detail{border-top:1px solid #38475c;padding-top:2px}.ctp-top-detail>h4{display:flex;align-items:center;gap:10px}
.ctp-top-detail .ctp-kpis dd{font-size:18px}
.ctp-scroll{display:block;max-width:100%;overflow:auto;overscroll-behavior-inline:contain;margin:15px 0;min-width:0}
.ctp-scroll table{display:table;width:100%;min-width:500px;border-collapse:collapse;font-size:13px;margin:0}
.ctp-scroll caption{text-align:left;font-size:12px;color:#b7c3d5;margin-bottom:9px;caption-side:top}
.ctp-scroll th,.ctp-scroll td{text-align:left;vertical-align:top;padding:10px 8px;border:0;border-bottom:1px solid #39485c;white-space:normal;overflow-wrap:anywhere}
.ctp-scroll thead th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#b4c0d2}
.ctp-scroll .ctp-board{min-width:640px;table-layout:fixed}
.ctp-scroll .ctp-board th:first-child{width:52px}.ctp-scroll .ctp-board td{padding:4px}
.ctp-array button{width:100%;padding:7px 3px;min-height:38px;font-size:12px;font-variant-numeric:tabular-nums}
.ctp-array button[aria-pressed=true]{border-color:#f1cd76;background:#66512b;color:#fff3d5;box-shadow:inset 0 0 0 1px #f3ca7055}
.ctp-cell-result{font-size:14px;background:#222e40;border-left:3px solid #e4c470;padding:12px;border-radius:0 7px 7px 0;color:#e3ebf7;line-height:1.6}
.ctp-tabs button .bonus-mention>.result-mark,.ctp-card>h3 .bonus-mention>.result-mark,.ctp-round>summary .bonus-mention>.result-mark{display:none}
/* Native history keeps its six-column base row and a separate full-width detail row. */
#history-explorer .history-result-table tr.ctp-history-row{display:table-row;outline:0;background:transparent}
#history-explorer .history-result-table td.ctp-history-cell{display:table-cell;padding:0 6px 10px;width:auto;border:0;max-width:100%;min-width:0;white-space:normal}
#history-explorer .ctp-history-cell>.ctp-round{width:100%;margin:0;max-width:100%}
/* Legacy mobile history rules target descendant tables; restore this scoped ledger. */
#history-explorer .ctp-history-cell .ctp-scroll table{display:table;width:100%;min-width:500px;border-collapse:collapse;table-layout:auto}
#history-explorer .ctp-history-cell .ctp-scroll table.ctp-board{min-width:640px;table-layout:fixed}
#history-explorer .ctp-history-cell .ctp-scroll thead{display:table-header-group;position:static;width:auto;height:auto;padding:0;overflow:visible;clip-path:none;white-space:normal}
#history-explorer .ctp-history-cell .ctp-scroll tbody{display:table-row-group;width:auto}
#history-explorer .ctp-history-cell .ctp-scroll tr{display:table-row;grid-template-columns:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;outline:0}
#history-explorer .ctp-history-cell .ctp-scroll th,#history-explorer .ctp-history-cell .ctp-scroll td{display:table-cell;width:auto;min-width:0;padding:10px 8px;border:0;border-bottom:1px solid #39485c;text-align:left;white-space:normal}
#history-explorer .ctp-history-cell .ctp-scroll .ctp-board td{padding:4px}
@media(max-width:700px){
 .ctp{padding:13px;margin:18px 0;scroll-margin-top:145px}.ctp-card{padding:12px}.ctp h2{font-size:20px}
 .ctp-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ctp-kpis>div{padding:10px}.ctp-kpis dd{font-size:20px}
 .ctp-tabs{gap:7px}.ctp-tabs button{padding:8px 10px;font-size:13px}.ctp-tabs .ctp-art,.ctp-tabs .ctp-slot-icon{width:30px;height:30px;max-width:30px;max-height:30px;flex-basis:30px;font-size:23px}
 .ctp-round{padding:0 10px}.ctp-round .ctp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ctp-note{font-size:12px}
 #history-explorer .history-result-table tr.ctp-history-row{display:block;grid-template-columns:none;margin:0 0 12px;padding:0;border:0;border-radius:0;max-width:100%}
 #history-explorer .history-result-table td.ctp-history-cell{display:block;padding:0;width:100%;max-width:100%;border:0}
}
@media(max-width:560px){.ctp-choices{grid-template-columns:minmax(0,1fr)}.ctp-top-detail .ctp-kpis dd{font-size:16px}.ctp-card>h3{font-size:17px}.ctp-round>summary{gap:9px}}
@media(prefers-reduced-motion:reduce){.ctp *,.ctp-round *{scroll-behavior:auto!important;transition:none!important}}
