.predictor-slide { overflow: hidden; }
.predictor-header { margin-bottom: .45rem; }
.predictor-state-strip { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .38rem; }
.predictor-state-strip > span:not(.prototype-badge) { padding: .3rem .58rem; border-radius: 2rem; background: #eef4f6; color: var(--muted); font-size: clamp(.5rem, .6vw, .67rem); font-weight: 750; }
.model-scope-strip { display: flex; align-items: center; gap: .45rem; margin-bottom: .5rem; padding: .42rem .55rem; border: 1px solid var(--line); border-radius: .55rem; background: #f5f9fa; color: var(--muted); font-size: clamp(.47rem, .56vw, .63rem); }
.model-scope-strip span { flex: 0 0 auto; padding-right: .45rem; border-right: 1px solid var(--line); }
.model-scope-strip b { color: var(--adccp); }
.model-scope-strip em { flex: 1; text-align: right; font-style: normal; }
.file-launcher-panel { margin: .5rem 0; padding: .7rem .85rem; border: 1px solid #e7b47d; border-left: .3rem solid var(--adce); border-radius: .55rem; background: #fff5ea; color: #735530; font-size: clamp(.57rem, .7vw, .78rem); line-height: 1.55; }
.file-launcher-panel strong { display: block; margin-bottom: .2rem; color: #9b5f25; }
.predictor-shell { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(17rem, .72fr); gap: .7rem; height: calc(100% - 8.6rem); min-height: 0; padding-bottom: 1.65rem; }
.predictor-form, .predictor-results { min-height: 0; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
.predictor-form { display: flex; flex-direction: column; overflow: hidden; font-weight: 700; }
.predictor-form-scroll { min-height: 0; overflow-y: auto; padding: .55rem .65rem; scrollbar-color: #aabcc5 #eef4f6; }
.predictor-group { display: block; margin: 0 0 .52rem; padding: .48rem .55rem; border: 1px solid var(--line); border-radius: .55rem; background: #fbfdfe; }
.predictor-group > header { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .42rem; }
.predictor-group h3, .predictor-group summary span { color: var(--ink); font-size: clamp(.62rem, .74vw, .82rem); }
.predictor-group header span, .predictor-group summary small { color: var(--muted); font-size: clamp(.47rem, .56vw, .63rem); }
.predictor-group summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 750; }
.methods-group[open] summary { margin-bottom: .48rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.dynamic-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem .5rem; }
.dynamic-fields label { min-width: 0; }
.dynamic-fields label > span { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem; min-height: 1rem; }
.dynamic-fields label b { overflow: hidden; color: var(--muted); font-size: clamp(.49rem, .58vw, .65rem); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dynamic-fields label small { color: #8798a2; font-size: clamp(.42rem, .49vw, .55rem); white-space: nowrap; }
.dynamic-fields input, .dynamic-fields select { margin-top: .15rem; padding: .34rem .4rem; font-weight: 700; }
.dynamic-fields [aria-invalid="true"] { border-color: #bd5548; background: #fff5f3; }
.predictor-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; padding: .48rem .65rem; border-top: 1px solid var(--line); background: #f5f9fa; }
.form-summary { flex: 1; min-width: 0; color: var(--muted); font-size: clamp(.47rem, .56vw, .64rem); }
.predictor-actions .button { white-space: nowrap; }
.predictor-actions .button:disabled { cursor: wait; opacity: .6; }
.predictor-results { overflow-y: auto; padding: .55rem; background: var(--wash); }
.predictor-results > header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .4rem; }
.predictor-results > header h3 { font-size: clamp(.66rem, .78vw, .88rem); }
.endpoint-result { display: grid; grid-template-columns: 1fr auto; gap: .28rem .45rem; margin-bottom: .4rem; padding: .48rem .55rem; border: 1px solid var(--line); border-left: .24rem solid var(--adccp); border-radius: .5rem; background: #fff; }
.endpoint-result[data-endpoint-result="adcdm"] { border-left-color: var(--adcdm); }
.endpoint-result[data-endpoint-result="adce"] { border-left-color: var(--adce); }
.endpoint-result[data-state="error"] { border-color: #d98b80; }
.endpoint-result > div span { display: block; color: var(--ink); font-size: clamp(1rem, 1.1vw, 1.2rem); font-weight: 800; }
.endpoint-result > div small { color: var(--muted); font-size: .52rem; }
.endpoint-result > strong { grid-row: 1; grid-column: 2; align-self: center; color: var(--adccp); font-size: clamp(2.5rem, 2.7vw, 3rem); font-weight: 800; line-height: 1.15; white-space: nowrap; }
.endpoint-result dl { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.45fr 1fr; gap: .3rem; margin: 0; }
.endpoint-result dl div { min-width: 0; }
.endpoint-result dt { color: #8798a2; font-size: clamp(.42rem, .49vw, .55rem); }
.endpoint-result dd { overflow: hidden; margin: 0; color: var(--muted); font-size: clamp(.45rem, .53vw, .6rem); text-overflow: ellipsis; white-space: nowrap; }
.endpoint-result details { grid-column: 1 / -1; color: var(--muted); font-size: clamp(.43rem, .5vw, .57rem); }
.endpoint-result details p { margin: .2rem 0 0; overflow-wrap: anywhere; }
.endpoint-result ul { grid-column: 1 / -1; margin: 0; padding-left: 1rem; color: #9b5f25; font-size: clamp(.43rem, .51vw, .58rem); }
.predictor-message { margin: .25rem 0 0; padding: .45rem .5rem; border-radius: .4rem; background: #eef6f8; color: #385e6d; font-size: clamp(.47rem, .56vw, .64rem); line-height: 1.45; }

@media (max-width: 1366px), (max-height: 768px) {
  .predictor-shell { height: calc(100% - 7.7rem); gap: .55rem; padding-bottom: 1.45rem; }
  .model-scope-strip { margin-bottom: .35rem; padding: .3rem .45rem; }
  .predictor-form-scroll, .predictor-results { padding: .42rem; }
  .predictor-group { margin-bottom: .4rem; padding: .4rem; }
  .dynamic-fields { gap: .32rem .4rem; }
}
