.system-settings{max-width:900px;padding:28px}.system-settings-row{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding-bottom:22px;border-bottom:1px solid var(--line,#e5e7eb)}.system-settings h2{margin:0 0 10px;font-size:17px}.system-settings-row p,.system-settings-note{font-size:13px;line-height:1.7;color:var(--muted,#737780);margin:6px 0}.system-settings-toggle{display:flex;align-items:center;gap:9px;white-space:nowrap;cursor:pointer;min-height:32px}.system-settings-toggle input{width:18px;height:18px;accent-color:var(--text,#17191c);cursor:pointer}.system-settings-note{margin-top:20px}.system-settings-status{min-height:20px;font-size:13px;margin:18px 0 0}.system-settings button:disabled,.system-settings input:disabled{opacity:.6;cursor:wait}@media(max-width:640px){.system-settings{padding:20px}.system-settings-row{gap:16px;flex-wrap:wrap}.system-settings-toggle{min-height:44px}}
.system-defaults{margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.system-output-settings{margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.system-output-settings .field{display:grid;gap:8px;margin-top:18px;max-width:300px}
.system-output-settings input{width:100%;font-variant-numeric:tabular-nums}
.system-output-settings .system-settings-note{max-width:66ch;margin-top:10px}
.system-defaults .field{display:grid;gap:8px;margin-top:18px;max-width:600px}
.system-defaults input[type=number]{max-width:260px}
.system-defaults .system-settings-note{margin-top:8px}
.default-avatar-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.default-avatar-preview{width:64px;height:64px;border-radius:20px;overflow:hidden;display:grid;place-items:center;background:var(--hover);color:var(--muted);font-size:13px;flex:none}
.default-avatar-preview img{width:100%;height:100%;object-fit:cover}

/* Count inference has a searchable model picker, with one clear row per model. */
.model-picker[data-model-picker-variant=image-count]{--paper:#1b1b1b;--surface:#242424;max-width:600px}
html[data-theme=light] .model-picker[data-model-picker-variant=image-count]{--paper:#fff;--surface:#f5f6f8}
body.admin-mode .model-picker[data-model-picker-variant=image-count] .model-picker-trigger{min-height:48px;padding:12px 14px}
.model-picker[data-model-picker-variant=image-count] .model-picker-popover{border-radius:14px;background:var(--paper)}
.model-picker[data-model-picker-variant=image-count] .model-picker-search{margin:10px 10px 4px;padding:4px 10px;border:0;border-radius:9px;background:var(--surface)}
.model-picker[data-model-picker-variant=image-count] .model-picker-search:focus-within{outline:2px solid var(--accent);outline-offset:1px;box-shadow:none}
.model-picker[data-model-picker-variant=image-count] .model-picker-options{display:flex;flex-direction:column;gap:4px;padding:8px 10px}
.model-picker[data-model-picker-variant=image-count] .model-picker-option{flex:none;min-height:44px;padding:10px 12px;border-radius:8px;background:transparent}
.model-picker[data-model-picker-variant=image-count] .model-picker-option:hover,.model-picker[data-model-picker-variant=image-count] .model-picker-option[data-active]{background:var(--hover)}
.model-picker[data-model-picker-variant=image-count] .model-picker-option[aria-selected=true]{background:var(--accent-soft);color:var(--accent)}
.model-picker[data-model-picker-variant=image-count] .model-picker-option-name{font-size:13px;font-weight:500}
.model-picker[data-model-picker-variant=image-count] .model-picker-option[aria-selected=true] .model-picker-option-name{font-weight:650}
.model-picker[data-model-picker-variant=image-count] .model-picker-count{border:0;background:transparent;font-size:11px;padding:8px 14px 12px}

/* Retry policy is a compact setting, in the same surface as other system controls. */
.system-retry-settings{margin:0 0 28px;padding:22px 0}
.system-retry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.system-retry-heading>div{min-width:0;max-width:620px}
.system-retry-heading p{margin:6px 0;color:var(--muted);font-size:13px;line-height:1.7}
.system-retry-count{display:grid;gap:8px;flex:0 0 112px;font-size:12px;color:var(--muted)}
.system-retry-count>div{display:flex;align-items:center;gap:8px}
.system-retry-count input{width:80px;min-height:40px;text-align:center;font-variant-numeric:tabular-nums}
.system-retry-settings .system-settings-note{margin:12px 0 0;font-size:12px}
@media(max-width:640px){.system-retry-heading{flex-wrap:wrap;gap:14px}.system-retry-count{grid-template-columns:auto 112px;align-items:center;flex-basis:100%;justify-content:space-between}}
.system-web-search-settings{margin:28px 0 0;padding-top:26px;border-top:1px solid var(--line)}
.system-settings-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.system-settings-heading h2{margin:0 0 5px}
.system-settings-heading p{margin:0;max-width:720px;color:var(--muted);font-size:13px;line-height:1.7}
.system-web-search-settings .field-grid{margin-top:16px}
.system-web-search-settings .field{margin-bottom:6px}
.credential-state{font-style:normal;font-size:11px;font-weight:500;color:var(--success);margin-left:6px}
@media(max-width:700px){.system-settings-heading{display:block}.system-settings-heading .system-settings-toggle{margin-top:13px}.system-web-search-settings .field-grid{grid-template-columns:1fr}}
