.models-page,
.admin-page {
  --model-surface: #fff;
  --model-ink: #17243b;
  --model-muted: #78869b;
  --model-line: #e4eaf2;
  --model-soft: #f5f8fc;
  --model-blue: #416af4;
  --model-blue-soft: #ecf2ff;
  width: 100%;
  min-width: 0;
  color: var(--model-ink);
}

.theme-dark .models-page,
.theme-dark .admin-page {
  --model-surface: #192335;
  --model-ink: #eef4ff;
  --model-muted: #9daec7;
  --model-line: #304059;
  --model-soft: #202d42;
  --model-blue: #84a1ff;
  --model-blue-soft: #243658;
}

.models-page button,
.admin-page button { cursor: pointer; }

.models-page button:focus-visible,
.admin-page button:focus-visible,
.model-dialog-form input:focus-visible,
.model-dialog-form textarea:focus-visible,
.model-dialog-form select:focus-visible {
  outline: 3px solid rgba(65, 106, 244, .38);
  outline-offset: 2px;
}

.models-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}
.models-hero h1 { margin: 0 0 5px; color: var(--model-ink); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.models-hero p { margin: 0; color: var(--model-muted); font-size:calc(13px + var(--desktop-text-increase, 0px)); line-height: 1.6; }
.models-heading-count { flex: none; padding-bottom: 3px; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); white-space: nowrap; }
.models-billing-strip { display: flex; align-items: center; gap: 9px; min-width: 0; margin-top: 20px; padding: 11px 16px; border: 1px solid #cfe0ff; border-radius: 10px; background: #edf5ff; color: #274778; }
.theme-dark .models-billing-strip { border-color: #36537b; background: #1b3150; color: #d4e3ff; }
.models-billing-symbol { display: grid; flex: none; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: #dceaff; color: #2067dc; font-size:calc(16px + var(--desktop-text-increase, 0px)); }
.theme-dark .models-billing-symbol { background: #2b4b7a; color: #a7c3ff; }
.models-billing-strip > strong { flex: none; margin-right: 4px; font-size:calc(12px + var(--desktop-text-increase, 0px)); white-space: nowrap; }
.models-billing-pill { flex: none; padding: 5px 10px; border: 1px solid #bcd5fb; border-radius: 99px; background: rgba(255,255,255,.55); color: #2860bd; font-size:calc(10px + var(--desktop-text-increase, 0px)); font-weight: 700; white-space: nowrap; }
.theme-dark .models-billing-pill { border-color: #4e6d9d; background: #233d63; color: #b4cdff; }
.models-billing-strip p { flex: 1; min-width: 0; margin: 0 0 0 10px; padding-left: 15px; border-left: 1px solid #bad2f5; color: #5873a0; font-size:calc(11px + var(--desktop-text-increase, 0px)); line-height: 1.4; }
.theme-dark .models-billing-strip p { border-color: #4b6588; color: #b6c9e7; }
.models-billing-strip button { flex: none; padding: 0; border: 0; background: transparent; color: #2765d3; font-size:calc(11px + var(--desktop-text-increase, 0px)); font-weight: 700; white-space: nowrap; }
.theme-dark .models-billing-strip button { color: #a6c1ff; }

.models-section { margin-top: 19px; }
.models-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 9px; }
.models-section-heading h2 { margin: 0; color: var(--model-ink); font-size:calc(15px + var(--desktop-text-increase, 0px)); line-height: 1.35; letter-spacing: -.02em; }
.models-section-heading p { margin: 0 0 1px; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); }
.model-group-grid { display: flex; gap: 9px; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.model-group-grid::-webkit-scrollbar { display: none; }
.model-group-tile {
  display: flex;
  flex: 1 0 185px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--model-line);
  border-radius: 15px;
  background: var(--model-surface);
  color: var(--model-ink);
  text-align: left;
  box-shadow: 0 4px 18px rgba(31,64,112,.025);
  scroll-snap-align: start;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.model-group-tile:hover { transform: translateY(-2px); border-color: #aabcf4; box-shadow: 0 10px 27px rgba(30,65,125,.075); }
.model-group-tile.is-selected { border-color: #7392fb; box-shadow: 0 0 0 3px rgba(75,111,242,.11); }
.model-group-tile-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 6px; }
.model-group-mark { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #e9f0ff; color: #5074e9; font-size:calc(17px + var(--desktop-text-increase, 0px)); font-weight: 800; line-height: 1; }
.model-group-mark--all { background: #e7f0ff; color: #2869e8; font-size:calc(15px + var(--desktop-text-increase, 0px)); }
.model-group-mark--claude { background: #fff1e6; color: #e4935c; }
.model-group-mark--gemini { background: #f0eaff; color: #8b6ae4; }
.model-group-mark--code { background: #e7f8f4; color: #239f85; font-size:calc(11px + var(--desktop-text-increase, 0px)); }
.model-group-count { color: var(--model-muted); font-size:calc(9px + var(--desktop-text-increase, 0px)); white-space: nowrap; }
.model-group-tile > strong { display: block; overflow: hidden; max-width: 100%; color: var(--model-ink); font-size:calc(13px + var(--desktop-text-increase, 0px)); text-overflow: ellipsis; white-space: nowrap; }
.model-group-subtitle { display: block; overflow: hidden; width: 100%; margin-top: 2px; color: var(--model-blue); font-size:calc(10px + var(--desktop-text-increase, 0px)); text-overflow: ellipsis; white-space: nowrap; }
.model-group-desc { display: block; overflow: hidden; max-width: 100%; margin-top: 3px; color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.model-group-tags { display: flex; flex-wrap: nowrap; gap: 4px; max-width: 100%; overflow: hidden; margin-top: auto; padding-top: 5px; }
.model-group-tag { display: inline-block; max-width: 100%; overflow: hidden; padding: 4px 7px; border-radius: 5px; background: var(--model-soft); color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }

.models-catalog { margin-top: 14px; }
.model-filter-panel { padding: 12px 14px 2px; border: 1px solid var(--model-line); border-radius: 11px; background: var(--model-surface); }
.model-search-wrap { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 13px; border: 1px solid var(--model-line); border-radius: 9px; background: var(--model-soft); }
.model-search-wrap > span { color: var(--model-muted); font-size:calc(26px + var(--desktop-heading-increase, 0px)); line-height: 1; transform: translateY(-2px); }
.model-search-wrap input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--model-ink); font-size:calc(12px + var(--desktop-text-increase, 0px)); }
.model-search-wrap input::placeholder { color: var(--model-muted); }
.model-filter-line { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 13px 1px; border-bottom: 1px solid var(--model-line); }
.model-filter-line:last-child { border-bottom: 0; }
.model-filter-line > span { flex: none; width: 46px; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); font-weight: 700; }
.model-filter-scroll { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.model-filter-chip { padding: 7px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); font-weight: 650; white-space: nowrap; }
.model-filter-chip:hover { background: var(--model-soft); color: var(--model-ink); }
.model-filter-chip.is-active { background: var(--model-blue-soft); color: var(--model-blue); }
.model-results-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 27px 0 14px; }
.model-results-head h2 { margin: 0; color: var(--model-ink); font-size:calc(18px + var(--desktop-text-increase, 0px)); }
.model-results-head p { margin: 4px 0 0; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); }
.model-results-head p strong { color: var(--model-blue); }
.model-results-head > span { color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.model-card { min-width: 0; padding: 20px; border: 1px solid var(--model-line); border-radius: 15px; background: var(--model-surface); box-shadow: 0 4px 18px rgba(31,64,112,.025); }
.model-card.is-disabled { opacity: .72; }
.model-card-header { display: flex; align-items: center; gap: 11px; min-width: 0; }
.model-provider-icon { display: grid; flex: none; place-items: center; width: 39px; height: 39px; overflow: hidden; border: 1px solid var(--model-line); border-radius: 11px; background: var(--model-soft); }
.model-provider-icon svg { width: 24px; height: 24px; }
.model-title-wrap { flex: 1; min-width: 0; }
.model-title-wrap h3 { overflow: hidden; margin: 0; color: var(--model-ink); font-size:calc(15px + var(--desktop-text-increase, 0px)); font-weight: 750; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.model-title-wrap p { overflow: hidden; margin: 2px 0 0; color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); text-overflow: ellipsis; white-space: nowrap; }
.model-status { display: inline-flex; flex: none; align-items: center; gap: 5px; color: #31936d; font-size:calc(10px + var(--desktop-text-increase, 0px)); font-weight: 700; white-space: nowrap; }
.model-status i { width: 6px; height: 6px; border-radius: 50%; background: #39bc87; }
.model-status.is-offline { color: var(--model-muted); }
.model-status.is-offline i { background: #a8b2c1; }
.model-id-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin-top: 16px; padding: 8px 8px 8px 11px; border: 1px solid var(--model-line); border-radius: 8px; background: var(--model-soft); }
.model-id-row code { display: block; overflow: hidden; color: var(--model-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size:calc(10px + var(--desktop-text-increase, 0px)); text-overflow: ellipsis; white-space: nowrap; }
.model-copy { flex: none; padding: 5px 7px; border: 0; border-radius: 5px; background: var(--model-surface); color: var(--model-blue); font-size:calc(10px + var(--desktop-text-increase, 0px)); font-weight: 700; white-space: nowrap; }
.model-copy:hover { background: var(--model-blue-soft); }
.model-card-groups { display: flex; flex-wrap: wrap; gap: 5px; min-height: 30px; margin-top: 12px; }
.model-card-groups span { height: 23px; padding: 4px 7px; border-radius: 5px; background: var(--model-blue-soft); color: var(--model-blue); font-size:calc(10px + var(--desktop-text-increase, 0px)); font-weight: 650; line-height: 15px; }
.model-card-groups .model-channel { background: var(--model-soft); color: var(--model-muted); }
.model-billing { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid #e4ecff; border-radius: 9px; background: linear-gradient(100deg, #f7faff, #f1f6ff); }
.theme-dark .model-billing { border-color: #334769; background: linear-gradient(100deg, #223451, #26395a); }
.model-billing-icon { display: grid; flex: none; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: #e4edff; color: #4c70eb; font-size:calc(16px + var(--desktop-text-increase, 0px)); }
.theme-dark .model-billing-icon { background: #304b79; color: #abc1ff; }
.model-billing small { display: block; color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); }
.model-billing strong { display: block; margin-top: 2px; color: var(--model-ink); font-size:calc(12px + var(--desktop-text-increase, 0px)); font-weight: 750; }
.model-price-reference { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 0; color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); }
.model-price-reference strong { color: var(--model-ink); font-weight: 650; text-align: right; }
.model-restrictions { border-top: 1px solid var(--model-line); }
.model-restrictions summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 13px; color: var(--model-blue); font-size:calc(10px + var(--desktop-text-increase, 0px)); font-weight: 700; list-style: none; cursor: pointer; }
.model-restrictions summary::-webkit-details-marker { display: none; }
.model-restrictions summary span { font-size:calc(17px + var(--desktop-text-increase, 0px)); line-height: .8; transition: transform .15s; }
.model-restrictions[open] summary span { transform: rotate(180deg); }
.model-restrictions-body { padding: 10px 0 0; }
.model-restrictions-body > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); }
.model-restrictions-body strong { color: var(--model-ink); font-weight: 650; text-align: right; }
.model-restrictions-body p { margin: 10px 0 0; color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); line-height: 1.6; }
.model-restrictions-body a { color: var(--model-blue); text-decoration: none; font-weight: 650; overflow-wrap: anywhere; }
.model-restrictions-body a:hover { text-decoration: underline; }
.model-price-reference strong { overflow-wrap: anywhere; }
@media (max-width: 520px) { .model-price-reference { align-items: flex-start; flex-direction: column; gap: 5px; } .model-price-reference strong { text-align: left; } }
.model-empty { display: flex; flex-direction: column; align-items: center; padding: 50px 20px; border: 1px dashed var(--model-line); border-radius: 15px; background: var(--model-surface); text-align: center; }
.model-empty > span { color: #9bb4e8; font-size:calc(46px + var(--desktop-heading-increase, 0px)); line-height: 1; }
.model-empty strong { margin-top: 8px; color: var(--model-ink); font-size:calc(14px + var(--desktop-text-increase, 0px)); }
.model-empty p { margin: 5px 0 16px; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); }

.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-eyebrow { color: var(--model-blue); font-size:calc(10px + var(--desktop-text-increase, 0px)); font-weight: 800; letter-spacing: .14em; }
.admin-heading h1 { margin: 5px 0 6px; color: var(--model-ink); font-size:calc(28px + var(--desktop-heading-increase, 0px)); line-height: 1.2; }
.admin-heading p { margin: 0; color: var(--model-muted); font-size:calc(12px + var(--desktop-text-increase, 0px)); line-height: 1.6; }
.admin-create { flex: none; }
.admin-local-note { display: flex; gap: 11px; margin-top: 23px; padding: 15px 17px; border: 1px solid #bed0fa; border-radius: 11px; background: #eff5ff; }
.theme-dark .admin-local-note { border-color: #3c5783; background: #203453; }
.admin-local-note > span { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dce9ff; color: #4771dd; font-size:calc(14px + var(--desktop-text-increase, 0px)); font-weight: 750; }
.admin-local-note strong { display: block; color: var(--model-ink); font-size:calc(12px + var(--desktop-text-increase, 0px)); }
.admin-local-note p { margin: 3px 0 0; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); line-height: 1.5; }
.admin-overview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.admin-overview > div { display: flex; justify-content: space-between; align-items: center; min-width: 0; padding: 20px; border: 1px solid var(--model-line); border-radius: 12px; background: var(--model-surface); }
.admin-overview span { color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); }
.admin-overview strong { color: var(--model-ink); font-size:calc(24px + var(--desktop-heading-increase, 0px)); line-height: 1; }
.admin-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 31px 0 15px; }
.admin-list-heading h2 { margin: 0; color: var(--model-ink); font-size:calc(18px + var(--desktop-text-increase, 0px)); }
.admin-list-heading p { margin: 5px 0 0; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); line-height: 1.5; }
.admin-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.admin-group-card { min-width: 0; padding: 20px; border: 1px solid var(--model-line); border-radius: 14px; background: var(--model-surface); }
.admin-group-primary { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admin-group-name { flex: 1; min-width: 0; }
.admin-group-name > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-group-name h3 { overflow: hidden; margin: 0; color: var(--model-ink); font-size:calc(15px + var(--desktop-text-increase, 0px)); text-overflow: ellipsis; white-space: nowrap; }
.admin-group-name p { overflow: hidden; margin: 3px 0 0; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); text-overflow: ellipsis; white-space: nowrap; }
.admin-state { flex: none; padding: 4px 7px; border-radius: 5px; background: var(--model-soft); color: var(--model-muted); font-size:calc(9px + var(--desktop-text-increase, 0px)); font-weight: 750; white-space: nowrap; }
.admin-state.is-published { background: #e8f8f1; color: #248f68; }
.theme-dark .admin-state.is-published { background: #1e473e; color: #69d3ab; }
.admin-group-description { display: -webkit-box; overflow: hidden; min-height: 34px; margin: 16px 0 10px; color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.admin-group-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; }
.admin-no-tag { color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); }
.admin-group-facts { display: flex; gap: 14px; margin-top: 15px; padding: 12px 0; border-top: 1px solid var(--model-line); color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); }
.admin-group-facts strong { color: var(--model-ink); }
.admin-group-switches { display: flex; flex-wrap: wrap; gap: 11px 20px; padding: 12px 0; border-top: 1px solid var(--model-line); }
.admin-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--model-muted); font-size:calc(10px + var(--desktop-text-increase, 0px)); font-weight: 700; }
.admin-toggle.is-on { color: var(--model-ink); }
.admin-toggle-track { position: relative; display: inline-block; width: 29px; height: 17px; border-radius: 99px; background: #cbd4e0; transition: background .15s; }
.admin-toggle-track i { position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .15s; }
.admin-toggle.is-on .admin-toggle-track { background: #4c70ee; }
.admin-toggle.is-on .admin-toggle-track i { transform: translateX(12px); }
.admin-group-actions { display: flex; align-items: center; gap: 7px; padding-top: 13px; border-top: 1px solid var(--model-line); }
.admin-group-actions > .btn { margin-right: auto; }
.admin-icon-button { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border: 1px solid var(--model-line); border-radius: 7px; background: var(--model-surface); color: var(--model-muted); font-size:calc(15px + var(--desktop-text-increase, 0px)); }
.admin-icon-button:hover:not(:disabled) { border-color: #9cb2ef; color: var(--model-blue); }
.admin-icon-button:disabled { opacity: .35; cursor: default; }
.admin-icon-button.is-danger:hover { border-color: #f2b6b6; color: #db5454; }
.admin-empty { grid-column: 1/-1; padding: 35px; border: 1px dashed var(--model-line); border-radius: 13px; background: var(--model-surface); text-align: center; }
.admin-empty strong { color: var(--model-ink); font-size:calc(14px + var(--desktop-text-increase, 0px)); }
.admin-empty p { color: var(--model-muted); font-size:calc(11px + var(--desktop-text-increase, 0px)); }

.model-dialog-form { --model-dialog-line: #e5eaf2; color: #26344c; }
html[data-theme="dark"] .model-dialog-form { --model-dialog-line: #35465f; color: #eef4ff; }
.model-dialog-intro { margin-bottom: 15px; color: #77859a; font-size:calc(12px + var(--desktop-text-increase, 0px)); line-height: 1.6; }
html[data-theme="dark"] .model-dialog-intro { color: #a0b0c7; }
.model-dialog-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.model-dialog-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.model-dialog-form .field > span { color: inherit; font-size:calc(11px + var(--desktop-text-increase, 0px)); font-weight: 700; }
.model-dialog-form .field em { color: #e35b5b; font-style: normal; }
.model-dialog-form .field .input { box-sizing: border-box; width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid var(--model-dialog-line); border-radius: 7px; background: #fff; color: #26344c; font: inherit; font-size:calc(12px + var(--desktop-text-increase, 0px)); }
html[data-theme="dark"] .model-dialog-form .field .input { background: #1b293c; color: #eef4ff; }
.model-dialog-form .field textarea { resize: vertical; }
.model-dialog-form .field small { color: #96a0af; font-size:calc(10px + var(--desktop-text-increase, 0px)); }
.model-membership { min-width: 0; margin: 3px 0 15px; padding: 0; border: 0; }
.model-membership legend { margin-bottom: 8px; color: inherit; font-size:calc(11px + var(--desktop-text-increase, 0px)); font-weight: 700; }
.model-membership legend span { color: #8d99a9; font-weight: 400; }
.model-membership-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--model-dialog-line); border-radius: 8px; }
.model-membership-list > label { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 11px; border-bottom: 1px solid var(--model-dialog-line); cursor: pointer; }
.model-membership-list > label:last-child { border-bottom: 0; }
.model-membership-list input { flex: none; accent-color: #4d70ee; }
.model-membership-detail { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.model-membership-detail strong,
.model-membership-detail small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-membership-detail strong { color: inherit; font-size:calc(11px + var(--desktop-text-increase, 0px)); }
.model-membership-detail small { margin-top: 2px; color: #8d99a9; font-size:calc(10px + var(--desktop-text-increase, 0px)); }
.model-membership-provider { flex: none; max-width: 85px; overflow: hidden; color: #8d99a9; font-size:calc(10px + var(--desktop-text-increase, 0px)); text-overflow: ellipsis; white-space: nowrap; }
.model-dialog-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 11px; border-radius: 8px; background: #f4f7fb; }
html[data-theme="dark"] .model-dialog-checks { background: #22324a; }
.model-dialog-checks label { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-size:calc(11px + var(--desktop-text-increase, 0px)); font-weight: 650; cursor: pointer; }
.model-dialog-checks input { accent-color: #4d70ee; }
.model-dialog-confirm { color: #526077; font-size:calc(12px + var(--desktop-text-increase, 0px)); line-height: 1.7; }
html[data-theme="dark"] .model-dialog-confirm { color: #bdcce0; }
.model-delete-confirm { margin-top: 6px; background: #db5454 !important; border-color: #db5454 !important; }

@media (max-width: 900px) {
  .model-grid,
  .admin-group-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .models-heading-count { display: none; }
  .models-billing-strip { flex-wrap: wrap; gap: 7px; margin-top: 14px; padding: 10px 11px; }
  .models-billing-strip p { order: 2; flex: 1 0 100%; margin: 0; padding: 0; border: 0; font-size:calc(10px + var(--desktop-text-increase, 0px)); }
  .models-billing-strip button { order: 3; margin-left: auto; font-size:calc(10px + var(--desktop-text-increase, 0px)); }
  .models-section { margin-top: 15px; }
  .model-group-tile { flex: 0 0 165px; }
  .admin-heading h1 { font-size:calc(25px + var(--desktop-heading-increase, 0px)); }
}

@media (max-width: 560px) {
  .models-hero h1 { font-size:calc(28px + var(--desktop-heading-increase, 0px)); }
  .models-hero p { font-size:calc(12px + var(--desktop-text-increase, 0px)); }
  .models-billing-pill { padding: 4px 7px; font-size:calc(9px + var(--desktop-text-increase, 0px)); }
  .model-group-tile { min-height: 104px; padding: 10px; }
  .model-group-tags { margin-top: auto; }
  .models-catalog { margin-top: 12px; }
  .model-filter-panel { padding: 8px 10px 0; }
  .model-search-wrap { height: 36px; }
  .model-filter-line { align-items: center; gap: 7px; padding: 8px 1px; }
  .model-filter-line > span { width: auto; }
  .model-filter-scroll { flex: 1; width: auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .model-filter-scroll::-webkit-scrollbar { display: none; }
  .model-filter-chip { flex: none; padding: 6px 9px; }
  .model-card { padding: 17px; }
  .model-results-head { margin: 14px 0 9px; }
  .admin-heading { align-items: stretch; flex-direction: column; gap: 15px; }
  .admin-create { align-self: flex-start; }
  .admin-overview { gap: 7px; }
  .admin-overview > div { align-items: flex-start; flex-direction: column; gap: 9px; padding: 13px; }
  .admin-overview span { font-size:calc(10px + var(--desktop-text-increase, 0px)); }
  .admin-overview strong { font-size:calc(22px + var(--desktop-heading-increase, 0px)); }
  .admin-list-heading { align-items: flex-start; flex-direction: column; }
  .admin-group-card { padding: 17px; }
  .model-dialog-fields { grid-template-columns: 1fr; gap: 0; }
}
.model-display-description { color: var(--muted); font-size:calc(13px + var(--desktop-text-increase, 0px)); line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
