* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei UI", Arial, sans-serif; background: #eef3f9; color: #111827; }
button { height: 34px; border: 0; border-radius: 4px; padding: 0 14px; background: #1677ff; color: #fff; cursor: pointer; white-space: nowrap; }
button.danger { background: #f04438; }
button.dark { background: #344054; }
button.outline { background: #fff; color: #1677ff; border: 1px solid #1677ff; }
button.redline { background: #fff; color: #f04438; border: 1px solid #f04438; }
input, select, textarea { height: 38px; border: 1px solid #cfd8e3; border-radius: 5px; padding: 0 10px; font: inherit; background: #fff; }
textarea { height: 72px; padding: 10px; resize: vertical; line-height: 22px; white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { height: 40px; border-bottom: 1px solid #d9dee7; padding: 0 10px; text-align: left; vertical-align: middle; }
th { white-space: nowrap; }
tr:nth-child(even) td { background: #f7f7f7; }
th { font-weight: 700; background: #fff; }
.hidden { display: none !important; }
.loginPage { min-height: 100vh; display: grid; place-items: center; background: #f7f7f7; }
.loginCard { width: 400px; padding: 38px 40px; background: #fff; border-radius: 8px; box-shadow: 0 8px 28px rgba(16,24,40,.12); }
.loginCard h1 { margin: 0 0 28px; text-align: center; font-size: 30px; }
.loginCard label { display: block; margin: 16px 0 8px; font-weight: 600; }
.loginCard input { width: 100%; height: 46px; font-size: 16px; }
.loginCard button { width: 100%; height: 46px; margin-top: 22px; background: #49b354; font-size: 16px; }
.loginHint { margin-top: 12px; min-height: 20px; color: #f04438; text-align: center; }
header { height: 54px; background: #0b1020; color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 24px; }
header strong { font-size: 18px; }
header .spacer { flex: 1; }
main { width: calc(100% - 32px); max-width: none; margin: 20px auto 42px; padding: 0; }
.managerShell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
.adminSidebar { position: sticky; top: 18px; padding: 12px; border: 1px solid #d2dae7; border-radius: 7px; background: #fff; box-shadow: 0 4px 14px rgba(16,24,40,.05); }
.adminSidebarTitle { padding: 8px 10px 14px; color: #667085; font-size: 13px; }
.adminNavButton { width: 100%; height: 44px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 6px; padding: 0 14px; background: transparent; color: #344054; font-size: 15px; text-align: left; }
.adminNavButton:hover { background: #f2f6ff; color: #175cd3; }
.adminNavButton.active { background: #1677ff; color: #fff; }
.adminNavIcon { width: 22px; text-align: center; }
.adminContent { min-width: 0; }
.adminModule { display: none; }
.adminModule.active { display: block; }
.moduleHeading { margin-bottom: 14px; padding: 2px 2px 12px; border-bottom: 1px solid #d9e1ec; }
.moduleHeading h2 { margin: 0 0 6px; font-size: 22px; }
.moduleHeading p { margin: 0; color: #667085; font-size: 13px; }
.moduleTableScroll { max-height: min(62vh, 720px); overflow: auto; border: 1px solid #e4e9f1; border-radius: 5px; }
.moduleTableScroll table { border-collapse: separate; border-spacing: 0; }
.moduleTableScroll thead th { position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 #d9dee7; }
.moduleTableScroll tbody tr:last-child td { border-bottom: 0; }
.card { margin-bottom: 18px; background: #fff; border: 1px solid #d2dae7; border-radius: 5px; overflow: visible; }
.cardTitle { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #1677ff; color: #fff; font-size: 16px; }
.cardTitleHint { font-size: 12px; font-weight: 400; opacity: .9; }
.cardBody { padding: 16px; overflow-x: auto; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.statusText { font-weight: 700; min-width: 95px; }
.overviewSettings { display: grid; gap: 16px; }
.overviewRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.overviewField { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 10px; align-items: start; }
.overviewField .statusText { padding-top: 10px; }
.notice { width: 100%; min-width: 0; height: 160px; min-height: 140px; }
.download { flex: 1; min-width: 320px; }
.releaseGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.releasePanel { display: grid; gap: 12px; padding: 16px; border: 1px solid #dce4ef; border-radius: 8px; background: #f8fafc; }
.releasePanel h3 { margin: 0; color: #163e78; font-size: 17px; }
.releasePanel .notice { height: 180px; min-height: 160px; }
.releaseToggle { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.formGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.productChecks { min-height: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; }
.batchGrid { display: grid; grid-template-columns: 1.3fr 1.1fr 150px auto; gap: 10px; align-items: end; }
.field label { display: block; margin-bottom: 8px; }
.fieldLabelRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.fieldLabelRow > label { margin-bottom: 8px; }
.checkInline { display: inline-flex !important; align-items: center; gap: 7px; margin-left: auto; color: #475467; font-size: 13px; font-weight: 400; white-space: nowrap; }
.checkInline input { width: 16px; height: 16px; margin: 0; }
.field input, .field select { width: 100%; }
.field .productChecks label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; margin: 0; font-weight: 600; line-height: 20px; white-space: nowrap; cursor: pointer; }
.field .productChecks input[type="checkbox"] { flex: 0 0 16px; width: 16px; min-width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #1570ef; cursor: pointer; }
.ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ops button { height: 32px; padding: 0 10px; }
#accountRows .ops { min-width: 160px; }
.search { width: 220px; background: #fff; color: #111827; }
.aiSubNav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.aiSubNavButton { height: 68px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 0 16px; border: 1px solid #d3dce8; border-radius: 8px; background: #fff; color: #344054; text-align: left; }
.aiSubNavButton:hover { border-color: #84adff; background: #f5f8ff; color: #175cd3; }
.aiSubNavButton.active { border-color: #1677ff; background: #1677ff; color: #fff; box-shadow: 0 4px 12px rgba(22,119,255,.18); }
.aiSubNavButton strong { font-size: 15px; }
.aiSubNavButton span { font-size: 12px; opacity: .78; }
.aiCommercePanel { display: none; }
.aiCommercePanel.active { display: block; }
.aiSettingsGrid { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 16px 14px; align-items: end; }
.aiConfigSection { margin-bottom: 16px; padding: 16px; border: 1px solid #dce5f0; border-radius: 10px; background: #fbfcfe; }
.aiConfigSection:last-of-type { margin-bottom: 0; }
.aiConfigSectionTitle { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.aiConfigSectionTitle strong { color: #172033; font-size: 15px; }
.aiConfigSectionTitle span { color: #667085; font-size: 12px; }
.aiPromptField textarea { width: 100%; min-height: 170px; box-sizing: border-box; }
.aiProviderPanel[hidden] { display: none !important; }
.aiConfigNote { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f4f7fb; color: #667085; line-height: 1.7; }
.aiRouteSummary { margin-top: 14px; padding: 11px 13px; border: 1px solid #b2ccff; border-radius: 8px; background: #eff6ff; color: #1849a9; line-height: 1.6; }
.aiModelList { display: grid; gap: 12px; margin-top: 14px; }
.aiModelCard { padding: 14px; border: 1px solid #d9e2ef; border-radius: 10px; background: #fff; box-shadow: 0 2px 7px rgba(16,24,40,.04); }
.aiModelCardHead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.aiModelCardHead strong { color: #172033; }
.aiModelCardHead .modelEnabled { width: 18px; height: 18px; }
.aiModelCardHead .removeModel { width: 34px; min-width: 34px; margin-left: auto; padding: 0; background: #fff; color: #d92d20; border: 1px solid #fda29b; }
.aiModelGroupTitle { display:flex; align-items:baseline; gap:10px; margin:18px 0 8px; color:#172033; }
.aiModelGroupTitle span { color:#667085; font-size:12px; }
.aiModelFields { display: grid; grid-template-columns: minmax(190px,1.35fr) minmax(150px,1fr) repeat(3,minmax(105px,.7fr)); gap: 12px; align-items: end; }
.aiModelFields .field label { margin-bottom: 6px; color: #667085; font-size: 12px; }
.aiModelFields input, .aiModelFields select { width: 100%; height: 36px; box-sizing: border-box; }
.aiModelFields .aiModelSizes { grid-column: span 2; }
.aiModelToggle { min-height: 36px; display: flex; align-items: center; gap: 8px; color:#475467; }
.aiModelToggle input { width: 18px; height: 18px; }
.aiModelEmpty { padding: 18px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; color: #667085; text-align: center; }
.aiAddModelButton { margin-top: 10px; }
.aiSettingsActions { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e4e9f1; }
.aiSettingsActions button { min-width: 150px; }
.aiSecurityBar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px; border: 1px solid #f5c26b; border-radius: 6px; background: #fffaf0; }
.aiSecurityBar strong { margin-right: auto; color: #7a2e0e; }
.aiSecurityBar input { width: 240px; }
.aiWalletToolbar { display: grid; grid-template-columns: minmax(240px, 1.4fr) 110px 135px 140px minmax(180px, 1fr) 170px auto; gap: 10px; align-items: end; }
.aiWalletToolbar button { height: 38px; }
.aiAccountSearch { width: 300px; }
.aiWalletSummary { margin-top: 14px; padding: 11px 13px; border: 1px solid #dbe7f5; border-radius: 6px; background: #f8fbff; color: #344054; line-height: 22px; }
.aiWalletSummary strong { color: #175cd3; }
.aiLedgerTable { min-width: 1160px; }
.aiLedgerTable th:nth-child(1), .aiLedgerTable td:nth-child(1) { width: 170px; }
.aiLedgerTable th:nth-child(2), .aiLedgerTable td:nth-child(2) { width: 120px; }
.aiLedgerTable th:nth-child(3), .aiLedgerTable td:nth-child(3) { width: 130px; }
.aiLedgerTable th:nth-child(4), .aiLedgerTable td:nth-child(4) { width: 150px; }
.aiLedgerTable th:nth-child(5), .aiLedgerTable td:nth-child(5) { width: 170px; }
.aiLedgerTable th:nth-child(7), .aiLedgerTable td:nth-child(7) { width: 250px; overflow-wrap: anywhere; }
.muted { color: #667085; font-size: 13px; }
.permissionDrop { position: relative; }
.permissionBtn { width: 100%; height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 5px; background: #1677ff; color: #fff; }
.permissionMenu { position: absolute; z-index: 10; left: 0; top: 40px; width: 100%; max-height: 330px; overflow: auto; padding: 10px 0; background: #fff; border: 1px solid #cfd8e3; border-radius: 5px; box-shadow: 0 12px 24px rgba(16,24,40,.16); }
.permissionMenu label { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 12px; margin: 0; font-weight: 400; }
.permissionMenu input { width: 16px; height: 16px; }
.permissionSummary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.permissionBtn.empty { background: #98a2b3; }
.accountTable { min-width: 1260px; }
.sampleTable { min-width: 1960px; }
.sampleTable th { height: 46px; background: #f8fafc; color: #344054; font-size: 13px; }
.sampleTable td { height: 154px; padding-top: 12px; padding-bottom: 12px; vertical-align: top; }
.sampleTable tr:nth-child(even) td { background: #f7fbff; }
.sampleTable tr:hover td { background: #eef6ff; }
.sampleIndex { color: #667085; font-weight: 600; text-align: center; }
.sampleProduct { color: #175cd3; font-weight: 600; line-height: 21px; }
.sampleNote { max-height: 88px; overflow: hidden; color: #344054; font-size: 13px; line-height: 22px; }
.curvePreview { width: 330px; }
.curveSummary { display: flex; align-items: center; gap: 18px; margin-bottom: 5px; font-size: 12px; }
.curveToday { color: #1769e0; font-weight: 700; }
.curveYesterday { color: #7fa7ff; font-weight: 700; }
.curveCompare { color: #475467; }
.curveSvg { display: block; width: 320px; height: 96px; overflow: visible; }
.curveCutoff { margin-top: 1px; color: #667085; font-size: 11px; }
.sampleBadge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.sampleBadge.active { background: #ecfdf3; color: #067647; }
.sampleBadge.excluded { background: #fff4e5; color: #b54708; }
.sampleBadge.deleted { background: #fef3f2; color: #b42318; }
.qualityText { margin-top: 8px; color: #667085; font-size: 12px; }
.sampleRowAction { display: grid; gap: 7px; }
.sampleRowAction button { width: 100%; padding: 0 8px; }
.curveDetailCard { margin: 14px 0 18px; padding: 16px; border: 1px solid #dbe7f5; border-radius: 8px; background: #f8fbff; }
.curveDetailCard .curvePreview { width: 100%; }
.curveDetailCard .curveSvg { width: 100%; height: 150px; }
.detailTrendToolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.detailTrendRanges { display: inline-flex; padding: 3px; border-radius: 9px; background: #f2f4f7; }
.detailTrendRanges button { min-width: 62px; height: 30px; margin: 0 1px; background: transparent; color: #344054; }
.detailTrendRanges button.active { background: #fff; color: #175cd3; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.detailTrendCompare { display: inline-flex; align-items: center; gap: 7px; color: #344054; cursor: pointer; }
.detailTrendCompare input { position: absolute; opacity: 0; pointer-events: none; }
.detailTrendSwitch { position: relative; width: 38px; height: 22px; border-radius: 12px; background: #d0d5dd; transition: .18s; }
.detailTrendSwitch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.2); transition: .18s; }
.detailTrendCompare input:checked + .detailTrendSwitch { background: #2563eb; }
.detailTrendCompare input:checked + .detailTrendSwitch::after { transform: translateX(16px); }
.detailTrendToolbar select { width: 146px; height: 36px; }
.detailMetricCards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.detailMetricCard { min-width: 0; padding: 10px 12px; border: 1px solid #eaecf0; border-radius: 6px; background: #fff; }
.detailMetricCard span { display: block; color: #475467; font-size: 12px; }
.detailMetricCard strong { display: block; margin-top: 6px; font-size: 16px; }
.detailMetricCard small { display: block; min-height: 16px; margin-top: 3px; color: #667085; }
.detailTrendChart { padding: 10px 12px 4px; border: 1px solid #d8dee8; border-radius: 6px; background: #fff; }
.detailTrendChart svg { display: block; width: 100%; height: 250px; }
.detailTrendStatus { margin-top: 7px; color: #667085; font-size: 12px; }
.statGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.statBox { padding: 10px 12px; border: 1px solid #dbe3ee; border-radius: 6px; background: #f8fafc; }
.statBox strong { display: block; margin-top: 4px; font-size: 18px; }
.modal.detailModal { display: flex; flex-direction: column; width: min(1400px, 96vw); height: min(860px, 94vh); }
.detailModal .modalHead, .detailModal .modalFoot { flex: none; }
.detailModal .modalFoot { padding-top: 12px; border-top: 1px solid #e5e7eb; }
.detailScroll { min-height: 0; max-height: none; overflow: auto; }
.detailSection { margin-bottom: 18px; }
.detailSection h3 { margin: 0 0 10px; }
.detailIdentity { display: flex; flex-wrap: wrap; gap: 6px 18px; line-height: 22px; }
.detailFacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.detailFact { padding: 10px 12px; border: 1px solid #e4e7ec; border-radius: 6px; background: #fafafa; line-height: 22px; }
.detailFact.wide { grid-column: 1 / -1; }
.detailFact b { display: block; margin-bottom: 2px; color: #344054; }
.detailSection table th:nth-child(1), .detailSection table td:nth-child(1) { width: 170px; }
.detailSection table th:nth-child(2), .detailSection table td:nth-child(2) { width: 180px; }
.detailSection table td { height: auto; min-height: 40px; padding-top: 9px; padding-bottom: 9px; overflow-wrap: anywhere; }
.modal.sampleEditor { width: min(760px, 94vw); }
.sampleEditor textarea { width: 100%; min-height: 92px; }
.readOnlyNotice { padding: 11px 13px; border: 1px solid #b8d4ff; border-radius: 6px; background: #eff6ff; color: #175cd3; line-height: 22px; }
.correctionField { padding: 12px; border: 1px solid #f5c26b; border-radius: 6px; background: #fffaf0; }
.revisionChange { line-height: 21px; }
.sampleTable input[type=checkbox] { width: 16px; height: 16px; }
.statusActive { color: #067647; }
.statusExcluded { color: #b54708; }
.statusDeleted { color: #b42318; }
#accountRows .permissionDrop { min-width: 250px; }
#accountRows .permissionMenu { width: max-content; min-width: 360px; max-width: 460px; }
#accountRows .permissionMenu label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roleTag, .scopeTag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 4px; font-size: 13px; white-space: nowrap; }
.roleTag { background: #eef4ff; color: #175cd3; }
.scopeTag { background: #f2f4f7; color: #475467; }
.permissionBadge { display: inline-flex; align-items: center; min-height: 28px; max-width: 100%; padding: 0 9px; border-radius: 4px; background: #eef4ff; color: #175cd3; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.permissionBadge.empty { background: #fff4e5; color: #b54708; }
.dateCell { white-space: nowrap; }
.actionMenu { position: relative; display: inline-block; }
.actionMenu summary { list-style: none; height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 4px; background: #344054; color: #fff; cursor: pointer; white-space: nowrap; }
.actionMenu summary::-webkit-details-marker { display: none; }
.actionMenuList { position: absolute; right: 0; top: 36px; z-index: 12; min-width: 110px; padding: 6px; border: 1px solid #d0d5dd; border-radius: 5px; background: #fff; box-shadow: 0 12px 24px rgba(16,24,40,.16); }
.actionMenuList button { display: block; width: 100%; margin: 3px 0; text-align: left; background: #fff; color: #344054; }
.actionMenuList button.danger { background: #fff1f0; color: #d92d20; }
.permissionName { display: flex; align-items: center; gap: 8px; }
.permissionName.child { padding-left: 24px; color: #344054; }
.permissionKind { padding: 2px 7px; border-radius: 10px; background: #eef4ff; color: #175cd3; font-size: 12px; }
.modalMask { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); z-index: 20; }
.modal { width: 500px; background: #fff; border-radius: 7px; box-shadow: 0 18px 48px rgba(0,0,0,.24); overflow: hidden; }
.modal.accountEditor { width: 620px; overflow: visible; }
.modalGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.accountEditor .permissionMenu { top: auto; bottom: 40px; max-height: 250px; overscroll-behavior: contain; }
.selectionModal { width: 620px; }
.selectionTools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.selectionTools input { flex: 1; }
.selectionList { max-height: 360px; overflow-y: auto; border: 1px solid #d0d5dd; border-radius: 5px; }
.selectionItem { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 12px; border-bottom: 1px solid #eaecf0; cursor: pointer; }
.selectionItem:last-child { border-bottom: 0; }
.selectionItem:hover { background: #f5f8ff; }
.selectionItem input { width: 16px; height: 16px; margin: 0; }
.selectionItemText { min-width: 0; }
.selectionItemName { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selectionItemDetail { display: block; margin-top: 2px; color: #667085; font-size: 12px; }
.selectionItem.child .selectionItemName { padding-left: 20px; }
.tablePager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.tablePager button { height: 30px; padding: 0 10px; }
.tablePager button:disabled { cursor: not-allowed; opacity: .45; }
.modalHead { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #e5e7eb; font-size: 18px; }
.modalBody { padding: 18px 16px; }
.modalFoot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 16px 16px; }
@media (max-width: 980px) {
  main { padding: 0 12px; }
  .managerShell { grid-template-columns: 1fr; }
  .adminSidebar { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .adminSidebarTitle { display: none; }
  .adminNavButton { width: auto; min-width: max-content; margin: 0; }
  .overviewField { grid-template-columns: 1fr; }
  .overviewField .statusText { padding-top: 0; }
  .releaseGrid { grid-template-columns: 1fr; }
  .aiSubNav { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .aiSettingsGrid { grid-template-columns: 1fr; }
  .aiWalletToolbar { grid-template-columns: 1fr; }
  .aiModelFields { grid-template-columns: 1fr; }
  .aiModelFields .modelSizesField { grid-column: auto; }
  .aiAccountSearch { width: 100%; }
  .cardTitleHint { display: none; }
  .detailFacts { grid-template-columns: 1fr; }
  .detailFact.wide { grid-column: auto; }
  .detailMetricCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 981px) and (max-width: 1250px) {
  .aiSettingsGrid { grid-template-columns: repeat(2, minmax(210px, 1fr)); }
  .aiModelFields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .aiModelFields .modelSizesField { grid-column: span 2; }
  .detailMetricCards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

