/* V312 — layout-only admin provider switch */
.ai-provider-panel{max-width:1200px; margin-inline:auto!important;background:#142017!important;border:1px solid #344a37!important;border-radius:18px!important}
.ai-provider-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.ai-provider-heading h2{font-size:24px!important;margin:6px 0 8px}.ai-provider-heading p{color:#F5F9F3;max-width:700px;line-height:1.55}
.ai-flow-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ai-flow-choice{cursor:pointer;display:flex;align-items:flex-start;gap:12px;border:1px solid #3b563c;background:#09130d;border-radius:14px;padding:17px;min-width:0;overflow-wrap:anywhere}
.ai-flow-choice:has(input:checked){border-color:#B6FF40;background:#1a2b16}
.ai-flow-choice input{accent-color:#B6FF40;min-width:18px;min-height:18px; margin-top:3px}
.ai-flow-choice b{font-size:15px;color:#F5F9F3;display:block;margin-bottom:8px}.ai-flow-choice small{display:block;color:#F5F9F3;font-size:12px;line-height:1.5}
.ai-flow-sequence{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#0c160f;border:1px solid #364c38;border-radius:14px;padding:14px;margin:10px 0 16px;color:#F5F9F3;font-size:13px}
.ai-flow-stage{background:#1b3021;border-radius:9px;padding:8px 12px;font-size:12px}.ai-flow-stage:first-child{background:#B6FF40;color:#090D0B;font-weight:800}.ai-flow-arrow{color:#B6FF40}
.ai-flow-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}
.ai-flow-bottom #aiFlowStatus{color:#F5F9F3;font-size:13px}.ai-flow-note{margin-top:20px!important;color:#F5F9F3 !important;font-size:12px!important;line-height:1.55}
body.ai-flow-active #adminView > *:not(.oc-main-nav):not(#aiProviderSettings){display:none!important}
body.ai-flow-active #aiProviderSettings{display:block!important}
body.ai-flow-active #aiProviderSettings{display:block!important}
body.ai-flow-active .oc-main-nav #aiFlowNav{background:#B6FF40!important;color:#090D0B !important}
@media(max-width:760px){.ai-flow-choices{grid-template-columns:1fr}.ai-provider-heading h2{font-size:21px!important}.ai-provider-panel{margin:12px 0!important;padding:16px!important}.ai-flow-sequence{gap:6px}.ai-flow-stage{padding:7px 9px}}

/* V348 custom flow cards + explicit per-model provider controls */
.ai-flow-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
.ai-custom-config{padding:19px;border-radius:15px;background:#09130d;border:1px solid #36543c;margin:12px 0 16px;color:#F5F9F3}
.ai-custom-config[hidden]{display:none!important}
.ai-custom-head{display:flex;align-items:start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ai-custom-head strong{display:block;font-size:17px}
.ai-custom-head p{font-size:12px;color:#F5F9F3;margin:7px 0 0;line-height:1.55}
.ai-custom-head>span{font-size:10px;letter-spacing:.09em;font-weight:850;border:1px solid #497d3d;color:#B6FF40;border-radius:999px;padding:7px 9px;white-space:nowrap}
.ai-custom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.ai-custom-field{min-width:0;padding:14px;background:#142017;border:1px solid #3a553b;border-radius:12px;display:flex;flex-direction:column;gap:7px}
.ai-custom-model{font-weight:900;font-size:14px;color:#B6FF40}
.ai-custom-field small{color:#F5F9F3;font-size:11px}
.ai-custom-field select{display:block;width:100%;min-width:0;min-height:44px;margin-top:5px;border:1px solid #4a6548;border-radius:9px;background:#090D0B;color:#F5F9F3;padding:10px 12px;font:inherit;font-size:13px;cursor:pointer}
.ai-custom-field select:focus-visible{outline:2px solid #B6FF40;outline-offset:2px}
.ai-custom-hint{color:#F5F9F3 !important;font-size:11px!important;line-height:1.65;margin:14px 0 0}
.ai-flow-choice:has(input:focus-visible){outline:2px solid #B6FF40;outline-offset:2px}
@media(max-width:1030px){.ai-flow-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ai-flow-choices,.ai-custom-grid{grid-template-columns:1fr}.ai-custom-config{padding:14px}.ai-custom-head>span{white-space:normal}}
