.umm-page { display: grid; gap: 18px; color: #182235; }
.umm-page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .72fr); gap: 32px; align-items: end; padding: 26px 28px; border: 1px solid #dfe5ed; border-radius: 16px; background: #fff; box-shadow: 0 10px 32px rgba(30, 46, 70, .06); }
.umm-page-head h2 { margin: 5px 0 9px; font-size: 28px; letter-spacing: -.02em; }
.umm-page-head p { max-width: 740px; margin: 0; color: #67758a; font-size: 14px; line-height: 1.7; }
.umm-add-model { min-height: 40px; margin-top: 18px; padding: 0 17px; border: 1px solid #2868e8; border-radius: 9px; color: #fff; background: #2868e8; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 7px 18px rgba(40, 104, 232, .18); }
.umm-add-model:hover { background: #1f59c9; }
.umm-kicker { color: #2868e8; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.umm-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #e2e7ee; border-radius: 13px; background: #f8fafc; overflow: hidden; }
.umm-summary > div { display: grid; gap: 7px; min-width: 0; padding: 15px 17px; border-left: 1px solid #e2e7ee; }
.umm-summary > div:first-child { border-left: 0; }
.umm-summary span { color: #758297; font-size: 12px; }
.umm-summary strong { overflow: hidden; color: #1d2a40; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.umm-notice { display: flex; gap: 12px; padding: 13px 16px; border: 1px solid #cfe3d8; border-radius: 11px; color: #315f4b; background: #f3faf6; font-size: 13px; line-height: 1.6; }
.umm-notice strong { flex: 0 0 auto; }
.umm-model-list { border: 1px solid #dfe5ed; border-radius: 15px; background: #fff; overflow: hidden; }
.umm-model-row { display: grid; grid-template-columns: 42px minmax(180px, 1.1fr) minmax(170px, .9fr) minmax(160px, .85fr) minmax(180px, 1fr) minmax(210px, auto); align-items: center; gap: 14px; min-height: 96px; padding: 14px 18px; border-bottom: 1px solid #e8ecf1; }
.umm-model-row:last-child { border-bottom: 0; }
.umm-model-row:hover { background: #fbfcfe; }
.umm-provider-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #fff; background: #315fba; font-size: 16px; font-weight: 850; }
.umm-model-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.umm-model-title strong { font-size: 15px; }
.umm-model-main p { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 0; color: #748196; font-size: 12px; }
.umm-model-main p span { color: #9aa3b1; }
.umm-default { padding: 3px 6px; border-radius: 5px; color: #245ebf; background: #edf4ff; font-size: 10px; font-weight: 800; }
.umm-model-code, .umm-model-credential { display: grid; gap: 4px; min-width: 0; }
.umm-model-code span, .umm-model-credential span { color: #8a95a6; font-size: 11px; }
.umm-model-code strong, .umm-model-credential strong { overflow: hidden; color: #334158; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.umm-model-state { display: grid; justify-items: start; gap: 5px; min-width: 0; }
.umm-model-state small { overflow: hidden; max-width: 240px; color: #788599; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.umm-status { padding: 4px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.umm-status.ready { color: #206747; background: #e8f7ef; }
.umm-status.failed { color: #a2333e; background: #fff0f1; }
.umm-status.testing { color: #8b5c1e; background: #fff5df; }
.umm-status.setup { color: #667085; background: #eef1f5; }
.umm-model-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.umm-model-actions button, .umm-model-actions a { min-height: 30px; padding: 0 9px; border: 1px solid #d9e0e9; border-radius: 7px; color: #365f9e; background: #fff; font-size: 11px; line-height: 28px; text-decoration: none; cursor: pointer; }
.umm-model-actions button:hover, .umm-model-actions a:hover { border-color: #aac2e8; background: #f5f8fd; }
.umm-model-actions .danger { color: #a33c45; }
.umm-admin-note, .umm-page-error { margin: 0; padding: 11px 14px; border-radius: 9px; font-size: 12px; }
.umm-admin-note { color: #6f5a34; background: #fff8e9; }
.umm-page-error, .umm-form-error { color: #9d303b; background: #fff0f1; }
.umm-empty { padding: 42px; color: #7b8798; text-align: center; }
.umm-modal-mask { position: fixed; z-index: 220; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18, 29, 48, .48); backdrop-filter: blur(3px); }
.umm-modal { width: min(620px, 100%); border: 1px solid #dce3ed; border-radius: 17px; background: #fff; box-shadow: 0 30px 90px rgba(19, 32, 53, .3); overflow: hidden; }
.umm-modal > header { display: flex; justify-content: space-between; gap: 18px; padding: 21px 23px 17px; border-bottom: 1px solid #e8ecf1; }
.umm-modal > header span { color: #2868e8; font-size: 11px; font-weight: 800; }
.umm-modal > header h3 { margin: 4px 0 5px; font-size: 21px; }
.umm-modal > header p { margin: 0; color: #748196; font-size: 12px; line-height: 1.6; }
.umm-modal > header button { width: 32px; height: 32px; border: 1px solid #e0e5ec; border-radius: 9px; color: #5d697c; background: #f8fafc; cursor: pointer; }
.umm-modal form { display: grid; gap: 16px; padding: 21px 23px 23px; }
.umm-modal label:not(.umm-checkbox) { display: grid; gap: 7px; }
.umm-modal label > span { color: #38465b; font-size: 13px; font-weight: 750; }
.umm-modal input[type="text"], .umm-modal input[type="password"], .umm-modal input:not([type]) { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #d5dde8; border-radius: 9px; outline: 0; color: #233047; background: #fff; font-size: 14px; }
.umm-modal input:focus { border-color: #7fa5e7; box-shadow: 0 0 0 3px rgba(40, 104, 232, .1); }
.umm-modal label small { color: #818c9d; font-size: 11px; line-height: 1.5; }
.umm-checkbox { display: flex; align-items: center; gap: 8px; }
.umm-checkbox input { width: 16px; height: 16px; accent-color: #2868e8; }
.umm-form-error { padding: 10px 12px; border-radius: 8px; font-size: 12px; }
.umm-modal form footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 3px; }
.umm-modal form footer button { min-height: 38px; padding: 0 15px; border: 1px solid #d8dfe8; border-radius: 9px; color: #445168; background: #fff; cursor: pointer; font-weight: 750; }
.umm-modal form footer .primary { border-color: #2868e8; color: #fff; background: #2868e8; }
.umm-modal form footer button:disabled { opacity: .6; cursor: wait; }
.umm-picker { width: min(720px, 100%); }
.umm-provider-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: min(520px, 60vh); padding: 20px 23px; overflow: auto; }
.umm-provider-options > button { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 72px; padding: 12px; border: 1px solid #dfe5ed; border-radius: 11px; color: #25334a; background: #fff; text-align: left; cursor: pointer; }
.umm-provider-options > button:hover { border-color: #9ab8e9; background: #f6f9ff; }
.umm-provider-options i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; background: #315fba; font-style: normal; font-weight: 850; }
.umm-provider-options span { display: grid; gap: 4px; min-width: 0; }
.umm-provider-options strong { font-size: 13px; }
.umm-provider-options small { overflow: hidden; color: #7b8798; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.umm-provider-options b { color: #2868e8; font-size: 11px; }
.umm-picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 23px; border-top: 1px solid #e8ecf1; color: #7b8798; font-size: 11px; }
.umm-picker-footer button { min-height: 34px; padding: 0 13px; border: 1px solid #d8dfe8; border-radius: 8px; color: #445168; background: #fff; cursor: pointer; }

@media (max-width: 1180px) {
    .umm-page-head { grid-template-columns: 1fr; }
    .umm-model-row { grid-template-columns: 42px minmax(190px, 1fr) minmax(160px, .8fr) minmax(170px, .9fr); }
    .umm-model-credential { display: none; }
    .umm-model-actions { grid-column: 2 / -1; justify-content: flex-start; }
}

@media (max-width: 720px) {
    .umm-page-head { padding: 21px 18px; }
    .umm-summary { grid-template-columns: 1fr; }
    .umm-summary > div { border-top: 1px solid #e2e7ee; border-left: 0; }
    .umm-summary > div:first-child { border-top: 0; }
    .umm-notice { align-items: flex-start; flex-direction: column; }
    .umm-model-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; padding: 15px; }
    .umm-model-code, .umm-model-state, .umm-model-actions { grid-column: 2; }
    .umm-model-state small { max-width: 100%; white-space: normal; }
    .umm-provider-options { grid-template-columns: 1fr; }
    .umm-picker-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .umm-model-row, .umm-model-actions button, .umm-model-actions a { transition: none !important; }
}
