/* Maverrik admin workspace v1.4.2 — scoped to administration only.
   No Tailwind rebuild or backend changes are required. */
#admin-container {
  --ma-bg: #f4f7fd;
  --ma-panel: #fff;
  --ma-panel-2: #f8faff;
  --ma-stroke: #dae3ef;
  --ma-text: #15223a;
  --ma-muted: #64748b;
  --ma-subtle: #8b9aaf;
  --ma-blue: #147bff;
  --ma-blue-soft: #eaf3ff;
  --ma-shadow: 0 16px 38px -30px rgba(17, 37, 76, .33);
  background: var(--ma-bg);
  color: var(--ma-text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}
.dark #admin-container {
  --ma-bg: #070f1e;
  --ma-panel: #101b2e;
  --ma-panel-2: #0c1728;
  --ma-stroke: #253750;
  --ma-text: #ecf3ff;
  --ma-muted: #9caec6;
  --ma-subtle: #6c809d;
  --ma-blue: #4fa5ff;
  --ma-blue-soft: #112f53;
  --ma-shadow: 0 15px 50px -38px rgba(0, 0, 0, .9);
}
#admin-container * { box-sizing: border-box; }
#admin-container [hidden] { display: none !important; }
.mav-admin { width: min(100%, 1440px); padding: 42px clamp(18px, 3.6vw, 62px) 100px; margin: 0 auto; }
.mav-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.mav-admin-kicker { display: flex; align-items: center; gap: 9px; color: var(--ma-blue); font-family: 'JetBrains Mono', monospace; letter-spacing: .16em; font-size: 10px; font-weight: 700; margin-bottom: 12px; }
.mav-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #30d5ab; box-shadow: 0 0 0 4px rgba(48, 213, 171, .12); }
.mav-admin-head h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.045em; font-weight: 800; }
.mav-admin-head h1 span { color: var(--ma-muted); font-weight: 500; }
.mav-admin-head p { color: var(--ma-muted); font-size: 13px; line-height: 1.7; margin: 9px 0 0; }
.mav-admin-tabs { display: flex; align-items: stretch; gap: 5px; border-bottom: 1px solid var(--ma-stroke); margin-bottom: 30px; overflow-x: auto; scrollbar-width: thin; }
.mav-admin-tabs button { border: none; border-bottom: 2px solid transparent; background: none; color: var(--ma-muted); padding: 13px 19px 15px; font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 9px; transition: color .2s, border-color .2s, background .2s; }
.mav-admin-tabs button:hover { color: var(--ma-text); background: rgba(80, 140, 210, .05); }
.mav-admin-tabs button[aria-selected="true"] { color: var(--ma-blue); border-color: var(--ma-blue); background: linear-gradient(0deg, rgba(24, 130, 255, .09), transparent 75%); }
.mav-tab-symbol { width: 18px; font-size: 18px; line-height: 1; font-weight: 500; text-align: center; }
.mav-admin-panel { animation: mavAdminEnter .2s ease both; }
@keyframes mavAdminEnter { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.mav-admin-message { margin: 0; color: var(--ma-muted); font-size: 12px; line-height: 1.5; }
.mav-admin-message:empty { display: none; }
.mav-admin-message:not(:empty) { margin: -14px 0 22px; padding: 11px 14px; border-radius: 10px; background: var(--ma-panel); border: 1px solid var(--ma-stroke); }
.mav-admin-message.is-error { color: #fa9b9b; border-color: rgba(239, 68, 68, .35); }
.mav-admin-message.is-success { color: #37d9b3; }
.mav-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.mav-section-heading h2 { font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -.035em; }
.mav-section-heading h3 { font-size: 17px; font-weight: 750; margin: 0; }
.mav-eyebrow { color: var(--ma-blue); font-weight: 750; font-size: 10px; letter-spacing: .13em; margin-bottom: 8px; }
.mav-section-heading p { color: var(--ma-muted); margin: 6px 0 0; font-size: 12px; line-height: 1.65; }
.mav-heading-compact { margin-top: 34px; margin-bottom: 17px; }
.mav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; border: 1px solid transparent; min-height: 39px; padding: 9px 15px; font-size: 12px; font-weight: 750; line-height: 1.25; cursor: pointer; white-space: nowrap; transition: background .15s, border .15s, transform .15s; }
.mav-btn:hover { transform: translateY(-1px); }
.mav-btn:active { transform: translateY(0); }
.mav-btn:disabled { opacity: .5; cursor: wait; transform: none; }
.mav-btn-primary { color: white; background: #147dff; border-color: #338dff; box-shadow: 0 8px 20px -13px #1689ff; }
.mav-btn-primary:hover { background: #006be7; }
.mav-btn-secondary { color: var(--ma-text); background: var(--ma-panel); border-color: var(--ma-stroke); }
.mav-btn-secondary:hover, .mav-btn-quiet:hover { background: var(--ma-blue-soft); }
.mav-btn-quiet { color: var(--ma-muted); background: transparent; border-color: transparent; }
.mav-btn-danger { background: rgba(244, 63, 94, .09); border-color: rgba(244, 63, 94, .20); color: #f8718c; }
.mav-btn-danger:hover { background: rgba(244, 63, 94, .20); }
.mav-btn-small { padding: 8px 11px; min-height: 32px; font-size: 11px; }
.mav-card { min-width: 0; background: var(--ma-panel); border: 1px solid var(--ma-stroke); border-radius: 16px; box-shadow: var(--ma-shadow); }
.mav-card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.mav-card-header h3 { font-size: 14px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.mav-card-header p { color: var(--ma-muted); font-size: 12px; margin: 6px 0 0; line-height: 1.55; }
.mav-chip { flex: none; display: inline-flex; align-items: center; border-radius: 7px; color: var(--ma-muted); background: var(--ma-panel-2); border: 1px solid var(--ma-stroke); font-size: 10px; padding: 5px 8px; font-weight: 700; }
.mav-chip-blue { color: var(--ma-blue); background: var(--ma-blue-soft); border-color: rgba(79, 165, 255, .25); }
.mav-counter { color: var(--ma-muted); font-size: 11px; font-weight: 650; margin-left: 5px; }
.mav-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.mav-stat { position: relative; overflow: hidden; min-width: 0; border: 1px solid var(--ma-stroke); border-radius: 15px; background: var(--ma-panel); padding: 19px 20px 17px; box-shadow: var(--ma-shadow); }
.mav-stat::before { content: ''; position: absolute; inset: 0 auto auto 0; height: 2px; width: 50%; background: linear-gradient(90deg, rgba(24, 130, 255, .7), transparent); }
.mav-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ma-muted); font-size: 11px; font-weight: 650; }
.mav-stat-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ma-blue-soft); color: var(--ma-blue); font-size: 15px; }
.mav-stat strong { display: block; margin-top: 13px; font-size: clamp(20px, 2.4vw, 29px); font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mav-stat small { display: block; margin-top: 8px; font-size: 10px; color: var(--ma-subtle); }
.mav-data-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.mav-data-grid .mav-card { padding: 20px; }
.mav-data-primary { grid-row: span 2; }
.mav-table-scroll { overflow: auto; max-height: 320px; }
.mav-data-table { width: 100%; border-collapse: collapse; min-width: 330px; font-size: 11px; }
.mav-data-table th { color: var(--ma-subtle); font-size: 10px; letter-spacing: .04em; font-weight: 700; text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--ma-stroke); }
.mav-data-table td { padding: 12px 9px; border-bottom: 1px solid var(--ma-stroke); color: var(--ma-text); font-variant-numeric: tabular-nums; }
.mav-data-table tr:last-child td { border-bottom: none; }
.mav-data-table th:not(:first-child), .mav-data-table td:not(:first-child) { text-align: right; }
.mav-statuses { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--ma-stroke); color: var(--ma-muted); }
.mav-shortcuts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 19px; padding: 20px; border: 1px solid var(--ma-stroke); background: var(--ma-panel-2); border-radius: 14px; }
.mav-shortcuts > div { display: flex; flex: 1 1 220px; flex-direction: column; gap: 4px; }
.mav-shortcuts b { font-size: 13px; }
.mav-shortcuts span { font-size: 11px; color: var(--ma-muted); }
.mav-shortcuts button span { font-size: 13px; color: inherit; }
.mav-form-card { padding: clamp(18px, 2.1vw, 28px); margin-bottom: 20px; }
.mav-customer-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: start; }
.mav-form-grid { display: grid; gap: 14px; }
.mav-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mav-form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mav-form-field > label, .mav-form-field > .mav-inline-label label { font-size: 11px; font-weight: 800; color: var(--ma-text); }
.mav-form-field small, .mav-helper { color: var(--ma-subtle); font-size: 10px; line-height: 1.5; }
.mav-form-field input:not([type=checkbox]):not([type=file]), .mav-form-field textarea, .mav-form-field select, .mav-fallback select, .mav-search input { background: var(--ma-panel-2); border: 1px solid var(--ma-stroke); color: var(--ma-text); border-radius: 9px; width: 100%; min-height: 42px; padding: 10px 12px; font: inherit; font-size: 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.mav-form-field input:focus, .mav-form-field textarea:focus, .mav-form-field select:focus, .mav-fallback select:focus, .mav-search input:focus { border-color: #1882ff !important; box-shadow: 0 0 0 3px rgba(24, 130, 255, .15); }
.mav-form-field input::placeholder, .mav-form-field textarea::placeholder { color: var(--ma-subtle); opacity: .85; }
.mav-form-field textarea { resize: vertical; min-height: 90px; line-height: 1.6; font-family: 'JetBrains Mono', monospace; }
.mav-form-submit { padding-top: 22px; }
.mav-customer-form .mav-form-submit .mav-btn { min-height: 42px; }
.mav-directory-card { overflow: hidden; }
.mav-directory-card > .mav-card-header { padding: 21px 24px; border-bottom: 1px solid var(--ma-stroke); margin: 0; }
.mav-card-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mav-search { position: relative; width: min(100%, 220px); }
.mav-search span { position: absolute; top: 6px; left: 12px; font-size: 21px; color: var(--ma-subtle); line-height: 28px; pointer-events: none; }
.mav-search input { padding-left: 37px; min-height: 37px; }
.mav-directory { padding: 4px 24px; }
.mav-directory-item { display: grid; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ma-stroke); }
.mav-directory-item:last-child { border-bottom: none; }
.mav-directory-item:hover { background: linear-gradient(90deg, transparent, rgba(50, 145, 255, .025), transparent); }
.mav-account-row { grid-template-columns: minmax(130px, 1.2fr) minmax(155px, 1fr) minmax(145px, .8fr) auto; }
.mav-agent-row { grid-template-columns: minmax(160px, 1.45fr) minmax(130px, 1fr) minmax(130px, .8fr) auto; }
.mav-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.mav-avatar { flex: none; width: 39px; height: 39px; background: var(--ma-blue-soft); color: var(--ma-blue); font-weight: 800; border-radius: 11px; display: grid; place-items: center; font-size: 13px; }
.mav-avatar-agent { background: rgba(131, 92, 245, .13); color: #b39aff; }
.mav-identity strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mav-identity small { display: block; margin-top: 5px; font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--ma-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mav-row-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.mav-row-detail small { color: var(--ma-muted); font-size: 10px; line-height: 1.6; }
.mav-row-detail .mav-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: 245px; line-height: 1.45; }
.mav-pill { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--ma-stroke); border-radius: 7px; background: var(--ma-panel-2); color: var(--ma-muted); font-size: 10px; font-weight: 650; max-width: 100%; overflow-wrap: anywhere; }
.mav-pill-blue { background: var(--ma-blue-soft); color: var(--ma-blue); border-color: rgba(79, 165, 255, .22); }
.mav-pill-green { color: #26cba7; background: rgba(12, 165, 123, .09); border-color: rgba(12, 165, 123, .24); }
.mav-pill-yellow { color: #eeb765; background: rgba(244, 159, 36, .1); border-color: rgba(244, 159, 36, .25); }
.mav-pill-red { color: #fb8798; background: rgba(244, 63, 94, .09); border-color: rgba(244, 63, 94, .25); }
.mav-row-actions { display: flex; gap: 7px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.mav-empty { text-align: center; color: var(--ma-muted); font-size: 12px; padding: 35px 20px; }
.mav-filter-empty { margin: 0 20px 15px; }
.mav-agent-editor { scroll-margin-top: 30px; }
.mav-editor-form { display: flex; flex-direction: column; gap: 16px; }
.mav-editor-subtitle { margin-top: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--ma-stroke); font-size: 10px; color: var(--ma-blue); font-weight: 800; letter-spacing: .12em; }
.mav-capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mav-setting { background: var(--ma-panel-2); border: 1px solid var(--ma-stroke); border-radius: 11px; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.mav-setting strong { display: block; font-size: 12px; }
.mav-setting small { display: block; color: var(--ma-muted); font-size: 10px; margin-top: 5px; line-height: 1.5; }
.mav-setting input[type=checkbox] { flex: none; width: 17px; height: 17px; accent-color: #1882ff; cursor: pointer; }
.mav-setting.mav-fallback { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(180px,.6fr); }
.mav-fallback select { min-height: 38px; }
.mav-required { font-size: 10px; color: var(--ma-blue); font-weight: 700; margin-left: 8px; }
.mav-inline-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.mav-link-btn { border: 0; padding: 2px; color: var(--ma-blue); font-size: 11px; cursor: pointer; background: transparent; font-weight: 750; }
.mav-form-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; padding-top: 13px; border-top: 1px solid var(--ma-stroke); }
.mav-muted { color: var(--ma-muted); font-weight: 500; font-size: 10px; }
.mav-agent-selector { padding: 18px 22px; display: flex; gap: 15px; justify-content: space-between; align-items: end; margin-bottom: 15px; }
.mav-agent-selector .mav-form-field { flex: 1; }
.mav-knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 15px; }
.mav-tool-card, .mav-playground { padding: clamp(18px,2.4vw,25px); }
.mav-upload-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 11px; }
.mav-file-label { display: flex; flex-direction: column; flex: 1 1 220px; gap: 9px; color: var(--ma-muted); font-size: 11px; }
.mav-file-label input { font-size: 11px; width: 100%; min-width: 0; }
.mav-file-label input::file-selector-button { border: 1px solid var(--ma-stroke); border-radius: 8px; background: var(--ma-panel-2); padding: 8px 10px; color: var(--ma-text); font: inherit; cursor: pointer; margin-right: 9px; }
.mav-entry-list { padding: 0; margin: 18px 0 0; list-style: none; max-height: 330px; overflow: auto; border-top: 1px solid var(--ma-stroke); }
.mav-entry-list:empty::after { content: 'Nothing here yet'; display: block; text-align: center; color: var(--ma-muted); padding: 23px; font-size: 12px; }
.mav-entry-list li { padding: 12px 0 !important; border-bottom: 1px solid var(--ma-stroke); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.mav-entry-list li span { color: var(--ma-text); line-height: 1.5; overflow-wrap: anywhere; font-size: 11px; }
.mav-entry-list li button { border-radius: 8px; border: 1px solid var(--ma-stroke); color: var(--ma-blue); background: var(--ma-panel-2); font-size: 11px; font-weight: 700; padding: 7px 10px; cursor: pointer; }
.mav-playground .mav-test-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mav-test-form .mav-form-actions { grid-column: 1 / -1; }
.mav-test-output { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow-y: auto; font-size: 12px; line-height: 1.65; margin: 14px 0 0; color: var(--ma-text); }
.mav-test-output:not(:empty) { border: 1px solid var(--ma-stroke); background: var(--ma-panel-2); border-radius: 12px; padding: 17px; }
.mav-history { border-top: 1px solid var(--ma-stroke); margin-top: 20px; padding-top: 16px; }
.mav-history > summary { font-size: 12px; font-weight: 750; cursor: pointer; }
.mav-history #v4-evaluations { max-height: 370px; overflow-y: auto; }
.mav-history #v4-evaluations details { border-bottom: 1px solid var(--ma-stroke); padding: 12px 0; }
.mav-history #v4-evaluations p { color: var(--ma-muted); overflow-wrap: anywhere; }
/* Accessible account editing dialog */
.mav-dialog { max-width: min(94vw, 540px); width: 100%; color: var(--ma-text); background: var(--ma-panel); border: 1px solid var(--ma-stroke); border-radius: 17px; padding: 0; box-shadow: 0 25px 100px rgba(0,0,0,.5); }
.mav-dialog::backdrop { background: rgba(0, 4, 13, .82); backdrop-filter: blur(5px); }
.mav-dialog header { padding: 22px 25px 15px; border-bottom: 1px solid var(--ma-stroke); }
.mav-dialog header h2 { font-size: 18px; font-weight: 800; margin: 0; }
.mav-dialog header p { margin: 6px 0 0; font-size: 12px; color: var(--ma-muted); }
.mav-dialog .mav-dialog-body { padding: 23px 25px; display: grid; gap: 16px; }
.mav-dialog .mav-dialog-actions { padding: 15px 25px 23px; display: flex; justify-content: flex-end; gap: 10px; }
.mav-dialog .mav-dialog-error { color: #fb889a; font-size: 12px; min-height: 0; }
.mav-dialog .mav-dialog-error:empty { display: none; }
.mav-dialog .mav-form-field select { appearance: auto; }
@media (max-width: 1050px) {
  .mav-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mav-customer-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mav-form-submit { align-self: end; }
  .mav-account-row { grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto; }
  .mav-account-row .mav-row-date { display: none; }
  .mav-agent-row { grid-template-columns: minmax(170px,1.2fr) minmax(145px,1fr) auto; }
  .mav-agent-row .mav-row-access { display: none; }
}
@media (max-width: 800px) {
  .mav-admin { padding: 24px 17px 70px; }
  .mav-data-grid { grid-template-columns: 1fr; }
  .mav-data-primary { grid-row: auto; }
  .mav-knowledge-grid { grid-template-columns: 1fr; }
  .mav-account-row, .mav-agent-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mav-account-row .mav-row-detail, .mav-agent-row .mav-row-detail { grid-column: 1 / -1; }
  .mav-account-row .mav-row-actions, .mav-agent-row .mav-row-actions { grid-column: 2; grid-row: 1; }
  .mav-account-row .mav-row-date, .mav-agent-row .mav-row-access { display: none; }
  .mav-admin-head h1 { font-size: 28px; }
}
@media (max-width: 580px) {
  .mav-admin-head { align-items: flex-start; }
  .mav-back { padding: 8px; font-size: 11px; }
  .mav-admin-head h1 { font-size: 23px; }
  .mav-admin-head h1 span { display: block; }
  .mav-section-heading { align-items: start; flex-wrap: wrap; }
  .mav-stat-grid { gap: 9px; }
  .mav-stat { padding: 14px; }
  .mav-stat strong { font-size: 19px; }
  .mav-customer-form, .mav-grid-2, .mav-capability-grid, .mav-playground .mav-test-form { grid-template-columns: 1fr; }
  .mav-setting.mav-fallback { grid-template-columns: 1fr auto; }
  .mav-setting.mav-fallback select { grid-column: 1 / -1; }
  .mav-directory-card > .mav-card-header { padding: 17px; }
  .mav-directory { padding: 2px 17px; }
  .mav-row-actions { grid-column: 1 / -1 !important; grid-row: auto !important; justify-content: start; }
  .mav-form-submit, .mav-form-submit .mav-btn { width: 100%; }
  .mav-search { width: 100%; }
  .mav-admin-tabs button { padding: 12px 14px; }
  .mav-shortcuts .mav-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .mav-admin-panel { animation: none; } .mav-btn { transition: none; } }
/* Dialog is attached to <body>, outside the scoped administration container. */
.mav-dialog {
  --ma-panel: #ffffff; --ma-panel-2: #f8faff; --ma-stroke: #dae3ef;
  --ma-text: #15223a; --ma-muted: #64748b; --ma-subtle: #8b9aaf;
  --ma-blue: #147bff; --ma-blue-soft: #eaf3ff;
}
.dark .mav-dialog {
  --ma-panel: #101b2e; --ma-panel-2: #0c1728; --ma-stroke: #253750;
  --ma-text: #ecf3ff; --ma-muted: #9caec6; --ma-subtle: #6c809d;
  --ma-blue: #4fa5ff; --ma-blue-soft: #112f53;
}
/* Form controls in native <dialog> follow the same design system. */
.mav-dialog .mav-form-field input, .mav-dialog .mav-form-field select {
  background: var(--ma-panel-2); border: 1px solid var(--ma-stroke);
  color: var(--ma-text); border-radius: 9px; width: 100%; padding: 10px 12px;
  font: inherit; font-size: 12px; min-height: 42px;
}
.mav-dialog .mav-form-field input:focus-visible, .mav-dialog .mav-form-field select:focus-visible {
  outline: 2px solid #1882ff; outline-offset: 2px;
}
/* Compiled utility CSS may precede this file; preserve functional hidden controls. */
#admin-container .hidden { display: none !important; }
#admin-container button:focus-visible, #admin-container a:focus-visible,
#admin-container [role="tab"]:focus-visible, .mav-dialog button:focus-visible {
  outline: 2px solid #5faaff; outline-offset: 3px;
}

/* v1.4.3.3: preview Markdown tables in the agent test playground. */
.mav-test-output:has(.markdown-body) { white-space: normal; max-height: 520px; }
.mav-test-output .mav-test-meta { font-size: 11px; font-weight: 750; color: var(--ma-muted); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ma-stroke); }
.mav-test-output .markdown-body { font-size: 13px; line-height: 1.65; }
.mav-test-output .mav-table-scroll { max-width: 100%; }
/* v1.4.5 workflow template selector */
.mav-setting:has(#gem-workflow-template) { grid-column: 1 / -1; }
#gem-workflow-template { min-width: 175px; max-width: 44%; border: 1px solid var(--ma-stroke); border-radius: 9px; padding: 9px; background: var(--ma-panel); color: var(--ma-text); font: inherit; font-size: 12px; }
@media (max-width: 620px) {
 .mav-setting:has(#gem-workflow-template) { flex-direction: column; align-items: stretch; }
 #gem-workflow-template { max-width: 100%; }
}
