.mon-overview { display: grid; gap: 20px; margin-bottom: 28px; }
.mon-section-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.mon-section-head h2 { margin: 4px 0 8px; font-size: 25px; letter-spacing: -.5px; }
.mon-subtitle, .mon-footnote { color: #737c8a; font-size: 13px; line-height: 1.6; margin: 0; }
.mon-readonly { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: #687485; font-size: 12px; border: 1px solid #e1e6ed; border-radius: 8px; padding: 7px 10px; }
.mon-readonly svg, .mon-toolbar svg { width: 16px; height: 16px; }
.mon-synthetic { display: flex; gap: 12px; padding: 15px 18px; background: #eff5ff; border: 1px solid #d7e4fa; border-radius: 12px; color: #315580; }
.mon-synthetic > svg { width: 20px; min-width: 20px; margin-top: 2px; }
.mon-synthetic strong { font-size: 13px; }
.mon-synthetic p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; }
.mon-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) 210px auto; gap: 12px; align-items: end; }
.mon-toolbar label { display: grid; gap: 6px; font-size: 12px; color: #667183; min-width: 0; }
.mon-toolbar input, .mon-toolbar select { width: 100%; min-width: 0; box-sizing: border-box; height: 42px; border: 1px solid #dce2ea; border-radius: 9px; padding: 0 12px; background: white; color: #293548; font: inherit; font-size: 13px; }
.mon-toolbar button { height: 42px; display: flex; align-items: center; gap: 8px; }
.mon-feedback:empty { display: none; }
.mon-feedback { font-size: 13px; color: #677487; }
.mon-error { background: #fff4f1; border: 1px solid #f1d3cb; padding: 14px; border-radius: 10px; color: #933f30; }
.mon-entry { border: 1px solid #e2e7ee; border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.mon-integration { display: grid; grid-template-columns: minmax(225px, 1.5fr) minmax(130px, .75fr) minmax(170px, 1fr) auto; width: 100%; gap: 20px; align-items: center; padding: 18px; border: 0; background: white; color: #263347; text-align: left; cursor: pointer; font: inherit; }
.mon-integration:hover { background: #f9fbfd; }
.mon-integration:focus-visible { outline: 2px solid #6694d0; outline-offset: -3px; }
.mon-provider { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mon-provider-icon { width: 38px; height: 38px; min-width: 38px; display: grid; place-items: center; background: #f1f4f8; border-radius: 10px; color: #607490; }
.mon-provider-icon svg { width: 18px; height: 18px; }
.mon-provider strong { display: block; font-size: 14px; }
.mon-provider small, .mon-quota small, .mon-source small { display: block; color: #8290a1; font-size: 11px; line-height: 1.6; }
.mon-quota strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.mon-source > span { font-size: 12px; }
.mon-row-end { display: flex; align-items: center; gap: 12px; }
.mon-row-end > svg { width: 16px; height: 16px; color: #8491a3; }
.mon-status { display: inline-flex; align-items: center; white-space: nowrap; font-size: 11px; font-weight: 600; line-height: 1.5; border-radius: 6px; padding: 4px 8px; color: #677383; background: #f0f3f7; }
.mon-status-healthy { background: var(--brand-emerald-soft); color: var(--brand-emerald-strong); }
.mon-status-stale, .mon-status-degraded { background: #fff4df; color: #946513; }
.mon-status-error, .mon-status-exhausted { background: #fceeea; color: #b15542; }
.mon-detail { border-top: 1px solid #e6ebf1; background: #fbfcfe; padding: 20px; font-size: 13px; line-height: 1.6; }
.mon-detail > p { margin: 0 0 16px; color: #586a80; }
.mon-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 18px; }
.mon-detail-grid dt { color: #8290a1; font-size: 11px; }
.mon-detail-grid dd { margin: 4px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.mon-runtime-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 12px; }
.mon-runtime-head h3 { font-size: 16px; margin: 0; }
.mon-runtime-head span { font-size: 11px; color: #8591a1; }
.mon-runtime { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mon-runtime article { border: 1px solid #e2e7ee; border-radius: 11px; padding: 15px; background: #fff; }
.mon-runtime article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mon-runtime strong { font-size: 12px; }
.mon-runtime p { color: #748195; font-size: 11px; line-height: 1.6; min-height: 54px; }
.mon-runtime small { color: #8591a1; font-size: 10px; }
.mon-notes { padding: 15px 18px; border: 1px dashed #dbe2ec; border-radius: 11px; }
.mon-notes p { margin: 5px 0; color: #7c8798; font-size: 11px; line-height: 1.7; }
.mon-empty { padding: 36px 20px; text-align: center; color: #7d8999; border: 1px dashed #dce3eb; border-radius: 12px; }
.mon-empty svg { width: 24px; height: 24px; }
.mon-empty h3 { color: #4e6179; font-size: 15px; margin: 12px 0 5px; }
.mon-empty p { font-size: 12px; }
.mon-slots { display: grid; gap: 10px; }
.mon-slots h3 { margin: 0; font-size: 16px; }
.mon-slots article { padding: 14px 16px; border: 1px solid #e2e7ee; border-radius: 10px; }
.mon-slots article > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; flex-wrap: wrap; }
.mon-slots article span, .mon-slots article small { color: #748195; font-size: 11px; line-height: 1.7; }
.mon-slots article small { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.mon-workspace { --mw-line: #e4e8ee; --mw-muted: #718096; color: #253449; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; line-height: 1.55; min-width: 0; }
.mon-workspace *, .mon-workspace *::before, .mon-workspace *::after { box-sizing: border-box; }
.mon-workspace button, .mon-workspace input, .mon-workspace select { font: inherit; }
.mon-workspace button { border: 1px solid #d9e0e9; border-radius: 6px; background: white; color: #31445e; padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; }
.mon-workspace button:hover { background: #f3f7fc; border-color: #a9bdd6; }
.mon-workspace button:disabled { opacity: .55; cursor: wait; }
.mon-workspace :focus-visible { outline: 2px solid #3977c8; outline-offset: 3px; }
.mon-workspace svg { width: 16px; height: 16px; flex-shrink: 0; }
.mw-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0 20px; }
.mw-heading h1 { margin: 2px 0 4px; font-size: 27px; font-weight: 650; letter-spacing: -.7px; color: #25354a; }
.mw-heading p { margin: 0; color: var(--mw-muted); }
.mw-heading .mw-kicker { font-size: 11px; letter-spacing: .4px; }
.mw-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mw-heading-actions > button { flex-shrink: 0; color: #245c9f; }
.mw-mock { display: flex; align-items: flex-start; gap: 9px; background: #eef4fb; color: #526f91; border-left: 3px solid #7da4d1; padding: 10px 13px; font-size: 12px; margin-bottom: 17px; }
.mw-mock strong { color: #365c88; font-weight: 600; margin-right: 9px; }
.mw-mock svg { margin-top: 2px; }
.mw-tabs { display: flex; gap: 24px; border-bottom: 1px solid #dbe2eb; overflow-x: auto; scrollbar-width: thin; }
.mw-tabs > button { border: 0; border-radius: 0; padding: 12px 0; background: transparent; white-space: nowrap; color: #778498; border-bottom: 2px solid transparent; font-weight: 550; }
.mw-tabs > button[aria-selected="true"] { color: #2864af; border-bottom-color: #3979c6; }
.mw-tabs > button:hover { background: transparent; color: #2864af; }
.mw-feedback { padding: 10px 0 0; color: #697c95; font-size: 12px; }
.mw-feedback:empty { display: none; }
.mw-feedback [role="alert"] { color: #a74737; }
.mw-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 19px 0 12px; }
.mw-controls label { display: grid; gap: 5px; flex: 1 1 145px; max-width: 210px; font-size: 11px; color: #748196; }
.mw-controls .mw-search { flex: 2 1 230px; max-width: 350px; }
.mon-workspace input:not([type="checkbox"]), .mon-workspace select { display: block; width: 100%; min-width: 0; height: 36px; border: 1px solid #dbe2eb; border-radius: 6px; background: white; padding: 7px 10px; color: #35465e; font-size: 12px; }
.mw-summary { font-size: 11px; color: var(--mw-muted); padding: 0 0 12px; }
.mw-table-scroll { border: 1px solid var(--mw-line); border-radius: 7px; overflow-x: auto; background: white; scrollbar-width: thin; }
.mon-workspace table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; min-width: 970px; }
.mon-workspace th, .mon-workspace td { padding: 13px 15px; border-bottom: 1px solid var(--mw-line); font-size: 12px; vertical-align: middle; overflow-wrap: anywhere; }
.mon-workspace thead th { background: #f9fafc; color: #7a8799; font-size: 10px; letter-spacing: .2px; font-weight: 550; padding-top: 11px; padding-bottom: 11px; }
.mon-workspace tbody th { font-weight: 550; }
.mon-workspace tbody tr:hover { background: #fbfcfe; }
.mon-workspace tbody tr:last-child > * { border-bottom: 0; }
.mon-workspace table th:first-child { width: 25%; }
.mon-workspace table th:last-child { width: 95px; }
.mon-workspace table strong { display: block; font-weight: 550; }
.mon-workspace table small { display: block; font-size: 10px; line-height: 1.6; color: #8a96a7; margin-top: 4px; }
.mon-workspace table .mw-mobile { display: none; }
.mon-workspace table .mw-link { padding: 5px 0; border: 0; background: transparent; color: #3972b4; font-size: 11px; min-height: 32px; }
.mw-state { display: inline-block; color: #677689; background: #f0f3f7; font-size: 10px; line-height: 1.5; padding: 4px 7px; border-radius: 5px; }
.mw-state-ready, .mw-state-in_use { background: var(--brand-emerald-soft); color: var(--brand-emerald-strong); }
.mw-state-exhausted, .mw-state-auth_error, .mw-state-check_error { background: #fcefec; color: #ab5a47; }
.mw-state-stale, .mw-state-recovery_due { background: #fff5e3; color: #93712b; }
.mw-incident-new, .mw-severity-critical, .mw-severity-error { background: #fce8e8; color: #9f3030; }
.mw-incident-investigating, .mw-severity-warning { background: #fff2d6; color: #8a5b05; }
.mw-incident-resolved { background: var(--brand-emerald-soft-hover); color: var(--brand-emerald-strong); }
.mw-incident-ignored { background: #eef0f3; color: #596575; }
.mw-severity { display: inline-block; border-radius: 5px; padding: 4px 7px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.mw-primary { color: #4a77ab; font-size: 10px; white-space: nowrap; }
.mw-external-key { margin-top: 18px; color: #344960; }
.mw-external-key-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mw-external-key-heading strong { font-size: 12px; overflow-wrap: anywhere; }
.mw-external-key-heading span { border-radius: 5px; padding: 4px 7px; background: #e8f0fb; color: #245c9f; font-size: 10px; font-weight: 600; }
.mw-external-key p { margin: 8px 0 0; color: #64748b; font-size: 11px; line-height: 1.5; }
.mw-external-key .mw-table-scroll { margin-top: 12px; border-color: #d7e3ef; }
.mw-footer { padding: 17px 0 30px; color: #8792a2; font-size: 10px; overflow-wrap: anywhere; }
.mw-footer p { margin: 5px 0; }
.mw-service-details { margin-top: 8px; }
.mw-service-details summary, .mw-source-details summary { cursor: pointer; color: #647f9e; }
.mw-source-details { margin-top: 18px; font-size: 12px; }
.mw-dialog-summary .mw-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mw-empty { padding: 50px 20px; text-align: center; color: var(--mw-muted); border: 1px dashed #d9e1eb; border-radius: 7px; }
.mw-empty h2 { font-size: 16px; color: #52677f; font-weight: 550; }
.mw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mon-workspace dialog { width: min(640px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); border: 1px solid #dbe2eb; border-radius: 10px; box-shadow: 0 16px 80px #20355330; padding: 23px; color: #344960; overflow-y: auto; }
.mon-workspace dialog::backdrop { background: #253c5b55; }
.mon-workspace dialog header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.mon-workspace dialog h2 { font-size: 19px; margin: 0; overflow-wrap: anywhere; }
.mon-workspace dialog p { font-size: 12px; color: #7b899c; }
.mw-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid var(--mw-line); border-bottom: 1px solid var(--mw-line); padding: 16px 0; }
.mw-details dt { font-size: 10px; color: #8290a3; }
.mw-details dd { margin: 4px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.mon-workspace dialog form { display: grid; gap: 14px; }
.mon-workspace dialog form > label { display: grid; gap: 5px; font-size: 12px; }
.mon-workspace dialog .mw-check { display: flex; align-items: center; gap: 8px; }
.mon-workspace dialog input[type="checkbox"] { width: 16px; height: 16px; accent-color: #3979c6; }
.mon-workspace dialog fieldset { border: 1px solid var(--mw-line); display: grid; gap: 10px; border-radius: 6px; padding: 12px; }
.mon-workspace dialog legend { font-size: 11px; color: #7b899c; padding: 0 5px; }
.mon-workspace dialog [type="submit"] { justify-self: start; background: #3978bf; color: white; border-color: #3978bf; }
@media (max-width: 768px) {
  .mw-tabs { gap: 20px; }
  .mw-heading { padding-top: 20px; }
  .mw-heading h1 { font-size: 24px; }
  .mw-heading-actions > button { padding: 8px 10px; }
  .mw-controls label, .mw-controls .mw-search { max-width: none; }
}
@media (max-width: 480px) {
  .mw-heading { flex-wrap: wrap; gap: 14px; }
  .mw-heading-actions { width: 100%; }
  .mw-heading-actions > button { width: 100%; }
  .mw-mock { font-size: 11px; }
  .mw-mock strong { display: block; }
  .mw-controls .mw-search { flex-basis: 100%; }
  .mw-controls label { flex-basis: 110px; }
  .mw-controls > button { width: 100%; }
  .mon-workspace dialog { padding: 17px; }
  .mw-details { grid-template-columns: 1fr; }
  .mon-workspace table { min-width: 0; }
  .mon-workspace table th:first-child { width: 45%; }
  .mon-workspace table th:last-child { width: 78px; }
  .mon-workspace th, .mon-workspace td { padding: 11px 8px; font-size: 11px; }
  .mon-workspace thead th { font-size: 9px; }
  .mon-workspace table .mw-link { font-size: 10px; }
  .mon-workspace table .mw-mobile { display: block; font-weight: 400; }
  .mon-workspace table[data-section="api"] tr > :is(:nth-child(2), :nth-child(3), :nth-child(4)),
  .mon-workspace table[data-section="reserve"] tr > :is(:nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5)),
  .mon-workspace table[data-section="components"] tr > :is(:nth-child(3), :nth-child(4)),
  .mon-workspace table[data-section="incidents"] tr > :is(:nth-child(2), :nth-child(3), :nth-child(5)) { display: none; }
  .mon-workspace table[data-section="api"] tbody th > small:first-of-type { display: none; }
}
@media (max-width: 1100px) {
  .mon-integration { grid-template-columns: minmax(180px, 1fr) 130px 135px; gap: 12px; }
  .mon-source { display: none; }
  .mon-runtime { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mon-section-head { display: block; }
  .mon-readonly { display: inline-flex; margin-top: 12px; }
  .mon-toolbar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mon-search { grid-column: 1 / -1; }
  .mon-toolbar button { justify-content: center; padding: 0 10px; font-size: 12px; }
  .mon-integration { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; gap: 14px; }
  .mon-provider { grid-column: 1 / -1; }
  .mon-quota { grid-column: 1; }
  .mon-source { display: block; grid-column: 1 / -1; grid-row: 3; }
  .mon-row-end { grid-column: 2; gap: 6px; }
  .mon-detail { padding: 16px; }
  .mon-detail-grid { grid-template-columns: 1fr; gap: 14px; }
  .mon-runtime { grid-template-columns: 1fr; }
  .mon-runtime p { min-height: auto; }
  .mon-runtime-head { display: block; }
  .mon-synthetic { padding: 14px; }
}
@media (max-width: 340px) {
  body[data-numbered-pool="true"] .profile-menu { grid-template-columns: minmax(0, 1fr); }
  body[data-numbered-pool="true"] .profile-menu-item:last-child { grid-column: auto; }
}

/* MON-012: use the published New Generation visual language on the existing
   Monitoring workspace. Renderers, controls and all actions stay unchanged. */
body:has(#profileShell:not(.hidden) .mon-workspace) {
  --accent: var(--brand-emerald-strong);
  --accent-dark: var(--brand-emerald-pressed);
  --blue-soft: var(--brand-emerald-soft);
  --text: #111827;
  --text-secondary: #596579;
  --muted: #596579;
  --line: #d1d5db;
  --success: var(--brand-emerald-strong);
  --service-nav-accent: var(--brand-emerald-strong);
}
#profileShell:has(.mon-workspace) .profile-main {
  padding: 24px;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(17 24 39 / 4%);
}
#profileShell:has(.mon-workspace) .profile-hero { display: none; }
.mon-workspace {
  --mw-line: #e5e7eb;
  --mw-muted: #596579;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.mon-workspace :focus-visible {
  outline: 2px solid var(--brand-emerald-strong);
  outline-offset: 3px;
}
.mon-workspace button {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  color: #111827;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}
.mon-workspace button:hover:not(:disabled) { border-color: var(--brand-emerald-strong); background: var(--brand-emerald-soft); }
.mon-workspace button:disabled { color: #6b7280; background: #f3f4f6; border-color: #d1d5db; opacity: 1; cursor: wait; }
.mon-workspace .mw-heading { padding: 0; margin-bottom: 20px; align-items: start; }
.mon-workspace .mw-heading > div { min-width: 0; }
.mon-workspace .mw-heading h1 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.2px;
}
.mon-workspace .mw-heading p { font-size: 13px; font-weight: 400; line-height: 1.6; }
.mon-workspace .mw-heading .mw-kicker { margin: 0 0 4px; color: var(--brand-emerald-strong); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.mon-workspace .mw-heading-actions { gap: 8px; }
.mon-workspace .mw-heading-actions > button { color: var(--brand-emerald-strong); }
.mon-workspace .mw-heading-actions [data-mw-refresh],
.mon-workspace dialog [type="submit"] { background: var(--brand-emerald-strong); border-color: var(--brand-emerald-strong); color: #fff; }
.mon-workspace [data-mw-refresh]:hover:not(:disabled),
.mon-workspace dialog [type="submit"]:hover:not(:disabled) { background: var(--brand-emerald-pressed); border-color: var(--brand-emerald-pressed); }
.mon-workspace [data-mw-refresh]:disabled { background: #f3f4f6; border-color: #d1d5db; color: #6b7280; }
.mon-workspace .mw-mock {
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  background: #f9fafb;
  color: #596579;
  font-size: 13px;
  line-height: 1.6;
}
.mon-workspace .mw-mock:empty { display: none; }
.mon-workspace .mw-mock strong { color: #111827; }
.mon-workspace .mw-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; overflow: visible; }
.mon-workspace .mw-tabs > button { min-width: 0; padding: 12px 10px; color: #596579; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; }
.mon-workspace .mw-tabs > button[aria-selected="true"] { color: var(--brand-emerald-pressed); border-color: var(--brand-emerald-strong); background: var(--brand-emerald-soft); }
.mon-workspace .mw-tabs > button:hover { color: var(--brand-emerald-strong); background: var(--brand-emerald-soft); }
.mon-workspace .mw-feedback { padding-top: 12px; color: #596579; font-size: 13px; }
.mon-workspace .mw-feedback [role="alert"] { color: #b91c1c; }
.mon-workspace .mw-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin: 16px 0 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}
.mon-workspace .mw-controls:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mon-workspace .mw-controls label,
.mon-workspace .mw-controls .mw-search { min-width: 0; max-width: none; gap: 6px; color: #111827; font-size: 13px; font-weight: 500; line-height: 20px; }
.mon-workspace input:not([type="checkbox"]), .mon-workspace select {
  height: 44px;
  padding: 10px 12px;
  border-color: #d1d5db;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.mon-workspace input::placeholder { color: #737e8e; font-weight: 400; opacity: 1; }
.mon-workspace :is(input, select):focus { outline: 2px solid var(--brand-emerald-strong); outline-offset: 2px; border-color: var(--brand-emerald-strong); }
.mon-workspace .mw-summary { padding-bottom: 12px; font-size: 13px; color: #596579; }
.mon-workspace .mw-table-scroll { border-radius: 12px; }
.mon-workspace :is(th, td) { padding: 14px 12px; color: #111827; font-size: 13px; font-weight: 400; line-height: 1.55; text-transform: none; letter-spacing: normal; }
.mon-workspace thead th { padding: 12px; background: #f9fafb; color: #596579; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: normal; }
.mon-workspace tbody th { font-weight: 500; }
.mon-workspace tbody th strong, .mon-workspace table strong { font-weight: 600; }
.mon-workspace tbody tr:hover { background: #f9fafb; }
.mon-workspace table th:last-child { width: 100px; }
.mon-workspace table small { margin-top: 4px; color: #596579; font-size: 12px; font-weight: 400; line-height: 1.6; text-transform: none; letter-spacing: normal; }
.mon-workspace table .mw-link { min-height: 44px; padding: 8px 0; border: 0; border-radius: 4px; color: var(--brand-emerald-strong); font-size: 13px; font-weight: 600; }
.mon-workspace :is(.mw-state, .mon-status, .mw-severity) { max-width: 100%; border-radius: 6px; padding: 4px 8px; color: #596579; background: #f3f4f6; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: normal; }
.mon-workspace :is(.mw-state-ready, .mw-state-in_use, .mw-incident-resolved, .mon-status-healthy) { color: var(--brand-emerald-pressed); background: var(--brand-emerald-soft); }
.mon-workspace :is(.mw-state-exhausted, .mw-state-auth_error, .mw-state-check_error, .mw-incident-new, .mw-severity-critical, .mw-severity-error, .mon-status-error, .mon-status-exhausted) { color: #b91c1c; background: #fef2f2; }
.mon-workspace :is(.mw-state-stale, .mw-state-recovery_due, .mw-incident-investigating, .mw-severity-warning, .mon-status-stale, .mon-status-degraded) { color: #854d0e; background: #fef9c3; }
.mon-workspace .mw-primary { color: var(--brand-emerald-strong); font-size: 12px; }
.mon-workspace .mw-external-key { margin-top: 20px; color: #111827; }
.mon-workspace .mw-external-key-heading { gap: 8px; }
.mon-workspace .mw-external-key-heading strong { font-size: 16px; font-weight: 600; }
.mon-workspace .mw-external-key-heading span { color: var(--brand-emerald-pressed); background: var(--brand-emerald-soft); font-size: 12px; font-weight: 500; border-radius: 6px; }
.mon-workspace .mw-external-key p { color: #596579; font-size: 13px; line-height: 1.6; }
.mon-workspace .mw-external-key .mw-table-scroll { border-color: #e5e7eb; }
.mon-workspace .mw-footer { padding: 16px 0 0; color: #596579; font-size: 12px; }
.mon-workspace :is(.mw-service-details, .mw-source-details) summary { color: var(--brand-emerald-strong); font-size: 13px; font-weight: 500; }
.mon-workspace .mw-service-details summary { display: flex; align-items: center; width: fit-content; min-height: 44px; }
.mon-workspace .mw-empty { padding: 32px 16px; color: #596579; border-color: #d1d5db; border-radius: 12px; }
.mon-workspace .mw-empty h2 { color: #111827; font-size: 16px; font-weight: 600; }
.mon-workspace .mw-empty p { font-size: 13px; }
.mon-workspace dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; color: #111827; border-color: #e5e7eb; border-radius: 12px; box-shadow: 0 16px 64px rgb(17 24 39 / 18%); }
.mon-workspace dialog::backdrop { background: rgb(17 24 39 / 40%); }
.mon-workspace dialog header { gap: 12px; }
.mon-workspace dialog h2 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.mon-workspace dialog p { color: #596579; font-size: 13px; line-height: 1.6; }
.mon-workspace dialog [data-mw-close] { flex-shrink: 0; width: 44px; padding: 10px; }
.mon-workspace .mw-details { gap: 16px; margin: 16px 0; padding: 16px 0; }
.mon-workspace .mw-details > div { min-width: 0; }
.mon-workspace .mw-details dt { color: #596579; font-size: 12px; font-weight: 400; }
.mon-workspace .mw-details dd { margin-top: 4px; font-size: 14px; font-weight: 500; }
.mon-workspace dialog form > label { color: #111827; font-size: 13px; font-weight: 500; }
.mon-workspace dialog fieldset { border-radius: 8px; }
.mon-workspace dialog legend { color: #596579; font-size: 13px; }
.mon-workspace dialog input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand-emerald-strong); }
.mon-workspace dialog [role="alert"] { color: #b91c1c; }
@media (max-width: 1100px) {
  .mon-workspace .mw-heading { flex-direction: column; gap: 16px; }
  .mon-workspace .mw-heading-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  #profileShell:has(.mon-workspace) .profile-main { padding: 16px; }
  .mon-workspace .mw-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mon-workspace .mw-controls, .mon-workspace .mw-controls:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .mon-workspace .mw-controls .mw-search { grid-column: 1 / -1; }
  .mon-workspace .mw-controls:has(> :nth-child(2):last-child) > label { grid-column: 1 / -1; }
  .mon-workspace dialog { padding: 16px; }
}
@media (max-width: 480px) {
  .mon-workspace .mw-heading-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .mon-workspace .mw-heading-actions > button { width: 100%; }
  .mon-workspace .mw-tabs > button { font-size: 13px; padding: 10px 8px; }
  .mon-workspace .mw-controls, .mon-workspace .mw-controls:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); }
  .mon-workspace .mw-controls .mw-search { grid-column: auto; }
  .mon-workspace :is(th, td) { padding: 12px 8px; font-size: 13px; }
  .mon-workspace thead th { padding: 10px 8px; font-size: 12px; }
  .mon-workspace table th:first-child { width: 40%; }
  .mon-workspace table th:last-child { width: 82px; }
  .mon-workspace table .mw-link { font-size: 12px; }
  .mon-workspace table small { font-size: 12px; }
  .mon-workspace .mw-dialog-summary .mw-details { grid-template-columns: minmax(0, 1fr); }
}
/* Keep the existing mobile fields and Details action readable at 320px.
   Each existing table row becomes a compact two-column item; no data is copied. */
@media (max-width: 480px) {
  .mon-workspace table, .mon-workspace tbody { display: block; width: 100%; }
  .mon-workspace thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .mon-workspace tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; padding: 12px; border-bottom: 1px solid var(--mw-line); }
  .mon-workspace tbody tr:last-child { border-bottom: 0; }
  .mon-workspace tbody tr > :is(th, td) { width: auto; padding: 0; border: 0; }
  .mon-workspace table tbody tr > th:first-child { width: auto; grid-column: 1; grid-row: 1; }
  .mon-workspace tbody tr > td { grid-column: 1; grid-row: 2; }
  .mon-workspace tbody tr > td:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .mon-workspace table .mw-link { width: 76px; min-height: 44px; white-space: nowrap; }
  .mon-workspace table .mw-state, .mon-workspace table .mon-status { width: fit-content; }
  .mon-workspace table small { margin-top: 4px; }
}
.mon-workspace .mw-details dt { text-transform: none; letter-spacing: normal; }
