/* Folded rows are rendered by AZVoiceUI.serviceSection and use voice-services.css unchanged. */
.mp-help { font-size: .76rem; line-height: 1.6; margin: 10px 0; }
.mp-help summary { cursor: pointer; opacity: .7; }
.mp-help p { margin: 8px 0; opacity: .7; }
.mp-help-link { margin: 0; }
.mp-model-error { margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font-family: inherit; font-size: .74rem; font-weight: 400; line-height: 1.6; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
.mp-model-error-detail { font-size: .74rem; line-height: 1.5; overflow-wrap: anywhere; }
.mp-toggle, .mp-model-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-toggle { font-size: .82rem; }
.mp-toggle input { flex-shrink: 0; margin: 0; }
.mp-model-row { font-size: .84rem; min-height: 44px; border-bottom: 1px solid rgba(127,127,127,.14); }
.mp-provider-search { width: 100%; margin: 0 0 10px; padding: 7px 10px; font-family: inherit; font-size: .82rem; }
.mp-provider-search[hidden] { display: none; }
.mp-editor-tabs { display: flex; flex-shrink: 0; width: 100%; max-width: 760px; align-self: center; gap: 24px; padding: 0 16px env(safe-area-inset-bottom, 0px); border-top: 1px solid rgba(127,127,127,.22); box-sizing: border-box; }
.mp-editor-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; margin: 0; padding: 11px 8px; border: 0; border-top: 2px solid transparent; border-radius: 0; color: inherit; background: transparent; font-family: inherit; font-size: .8rem; font-weight: 400; }
.mp-editor-tabs button[aria-pressed="true"] { border-top-color: var(--accent); font-weight: 700; }
.mp-editor-tabs .az-asr-icon { width: 17px; height: 17px; }
.mp-model-row > span { overflow-wrap: anywhere; min-width: 0; }
.mp-editor [hidden] { display: none !important; }
/* These shared pages can also open above the summary drawer (15000). */
.mp-editor, .mp-advanced-page, .mp-model-picker { z-index: 15001; }
.mp-connection-title { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.mp-connection-title .mp-help-link { grid-column: 2; }
.mp-management .mp-toggle { min-height: 44px; }
.mp-setting-list { display: flex; flex-direction: column; gap: 6px; }
.mp-setting-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; margin: 0; padding: 7px 0; border: 0; border-bottom: 1px solid rgba(127,127,127,.16); border-radius: 0; background: transparent; color: inherit; text-align: left; font-family: inherit; font-size: .82rem; font-weight: 400; }
.mp-setting-value { margin-left: auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; opacity: .82; }
.mp-setting-row .az-asr-icon { width: 14px; height: 14px; flex-shrink: 0; transform: rotate(-90deg); }
.mp-model-heading { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 8px; font-size: .8rem; font-weight: 600; }
.mp-model-heading > :last-child { font-weight: 400; font-size: .74rem; }
.mp-model-heading [data-mp-normal-actions], .mp-model-heading [data-mp-test-actions] { gap: 14px; }
.mp-model-action:disabled { opacity: .4; cursor: default; }
.mp-model-row { gap: 10px; padding: 8px 0; }
.mp-model-choice { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; flex: 1; color: inherit; }
.mp-model-text { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.mp-model-test-result { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: .74rem; }
.mp-model-test-result .mp-help { margin: 0; }
.mp-manual-panel { margin: 14px 0; }

.mp-add-model { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.mp-add-model > .az-asr-field { flex: 1; min-width: 0; margin: 0; }
.mp-add-model > .az-vs-text-btn { align-self: center; margin: 0; }
.mp-add-model input { min-width: 0; flex: 1; margin: 0; }
.mp-account-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mp-account-heading [role="status"] { font-size: .78rem; overflow-wrap: anywhere; }
.mp-device-code { margin: 14px 0 8px; font-family: monospace; font-size: 1.1rem; letter-spacing: .15em; user-select: all; }
.mp-account-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mp-account-action { margin: 0; padding: 4px 0; border: 0; background: transparent; color: inherit; font-family: inherit; font-size: .78rem; cursor: pointer; }
.mp-account-toolbar { gap: 0; padding: 4px 0 12px; }
.mp-account-toolbar .mp-account-action { padding: 5px 10px; border: 1px solid rgba(127,127,127,.25); border-radius: 4px; line-height: 1.4; }
.mp-account-toolbar .mp-account-action + .mp-account-action { margin-left: 10px; }
.mp-account-usage { margin-top: 2px; padding: 14px 0 0; border-top: 1px solid rgba(127,127,127,.2); font-size: .78rem; }
.mp-account-usage .mp-account-heading { align-items: center; margin-bottom: 12px; }
.mp-usage-window + .mp-usage-window { margin-top: 14px; }
.mp-usage-line, .mp-usage-credits { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.mp-usage-track { height: 3px; margin-top: 7px; background: rgba(127,127,127,.18); }
.mp-usage-track > span { display: block; height: 100%; background: var(--accent); }
.mp-usage-reset { margin-top: 5px; font-size: .7rem; opacity: .8; }
.mp-usage-credits { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(127,127,127,.14); }
.mp-add-model button { flex-shrink: 0; }
.mp-model-action { margin: 0; padding: 4px 0; border: 0; background: transparent; color: inherit; font-family: inherit; font-size: .78rem; font-weight: 400; cursor: pointer; }
.mp-model-picker [hidden] { display: none !important; }
.mp-picker-search { width: 100%; margin: 0; font-family: inherit; font-size: .82rem; }
.mp-picker-tools { display: flex; align-items: center; gap: 18px; padding: 10px 0; border-bottom: 1px solid rgba(127,127,127,.2); }
.mp-picker-tools > :last-child { margin-left: auto; }
.mp-model-group > summary { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; padding: 8px 0; border-bottom: 1px solid rgba(127,127,127,.16); color: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; list-style: none; }
.mp-model-group > summary::-webkit-details-marker { display: none; }
.mp-model-group > summary .az-asr-icon { width: 14px; height: 14px; transform: rotate(-90deg); }
.mp-model-group[open] > summary .az-asr-icon { transform: none; }
.mp-group-select { margin: 0 0 0 auto; padding: 0; width: 28px; height: 28px; border: 0; background: transparent; color: inherit; font: 400 22px/1 sans-serif; cursor: pointer; }
.mp-group-select:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.mp-model-picker .mp-model-row { justify-content: flex-start; padding-left: 24px; font-size: .82rem; cursor: pointer; }
.mp-model-picker .mp-model-text { overflow-wrap: anywhere; }
.mp-picker-footer .az-asr-chip { width: auto; margin: 0; padding: 6px 14px; font-size: .78rem; }
.mp-picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; width: 100%; max-width: 992px; align-self: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(127,127,127,.22); font-size: .78rem; }
.mp-status { font-size: .78rem; padding: 12px 2px 0; overflow-wrap: anywhere; }
.mp-status[data-error="true"] { color: var(--text); font-weight: 600; }
.mp-key-card + .mp-key-card { margin-top: 10px; }
.mp-key-card { margin-bottom: 10px; }
.mp-key-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-key-actions .mp-toggle { flex: 1; }
.mp-json { min-height: 120px !important; font-family: monospace; font-size: .8rem; }
#character-chat-provider-fields { margin-bottom: 15px; }
#character-chat-provider-actions { margin-top: 0; margin-bottom: 15px; }
#modal-summary-config [hidden] { display: none !important; }
.mp-config-actions { display: flex; gap: 6px; margin: 12px 0; }
.mp-config-actions > button {
    flex: 1 1 0; min-width: 0; width: auto; margin: 0; padding: 5px 8px; border-radius: 7px; font-size: .74rem; line-height: 1.4;
    transform: translateY(0) scale(1);
    transition: transform 180ms cubic-bezier(.2,1.6,.4,1), filter 120ms ease, box-shadow 120ms ease;
}
.mp-config-actions > button:active:not(:disabled) {
    transform: translateY(1px) scale(.97);
    filter: brightness(.95);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
    transition-duration: 60ms;
}
.mp-config-actions > button:disabled { cursor: progress; opacity: .72; }
@media (prefers-reduced-motion: reduce) {
    .mp-config-actions > button { transition: none; }
}
#summary-config-connection-status:empty { display: none; }
[hidden]#character-chat-provider-actions, [hidden]#character-chat-provider-fields { display: none; }

.mp-model-name { display: block; width: 100%; padding: 4px 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.mp-field-heading, .mp-field-actions, .mp-inline-field { display: flex; align-items: center; gap: 12px; }
.mp-field-heading { justify-content: space-between; }
.mp-inline-field > select { flex: 1; min-width: 0; }
.mp-inline-field > button { flex-shrink: 0; }
