/* Sim - Maximo. Visual language follows the open-source Carbon Design System (Apache-2.0).
   This is a simulation; it deliberately carries its own name and a SIMULATION tag everywhere. */
:root {
  --bg: #f4f4f4; --layer: #ffffff; --layer-2: #f4f4f4; --layer-hover: #e8e8e8; --sel: #e0e0e0;
  --border: #e0e0e0; --border-strong: #8d8d8d; --text: #161616; --text-2: #525252; --text-3: #6f6f6f;
  --primary: #0f62fe; --primary-h: #0050e6; --primary-a: #002d9c; --link: #0f62fe;
  --danger: #da1e28; --ok: #24a148; --warn: #f1c21b; --info: #0043ce;
  --hdr: #161616; --hdr-2: #262626; --hdr-text: #f4f4f4; --hdr-text-2: #c6c6c6;
  --sim: #f1c21b; --sim-text: #161616;
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, "Courier New", monospace;
  --nav-w: 256px; --hdr-h: 48px; --banner-h: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.43 var(--font); color: var(--text); background: var(--bg); letter-spacing: .16px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
.muted { color: var(--text-2); }
.err { color: var(--danger); }
.mono, code, pre { font-family: var(--mono); font-size: 13px; }
.spacer { flex: 1; }
.boot { padding: 48px; color: var(--text-2); }
.ic { width: 16px; height: 16px; fill: currentColor; flex: none; }
.ic.lg { width: 20px; height: 20px; }

/* ---- header ---------------------------------------------------------------------------- */
.hdr { position: fixed; inset: 0 0 auto 0; height: var(--hdr-h); background: var(--hdr); color: var(--hdr-text); display: flex; align-items: center; z-index: 50; border-bottom: 1px solid #393939; }
.hdr-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--hdr-text); cursor: pointer; position: relative; }
.hdr-btn:hover { background: #353535; }
.hdr-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.hdr-btn.on { background: #393939; border-bottom: 2px solid var(--primary); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 16px 0 8px; color: var(--hdr-text); height: 48px; white-space: nowrap; }
.brand:hover { text-decoration: none; background: #353535; }
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: .1px; }
.brand-name small { font-weight: 400; color: var(--hdr-text-2); }
.sim-tag { background: var(--sim); color: var(--sim-text); font-size: 11px; font-weight: 600; letter-spacing: .6px; padding: 1px 8px; border-radius: 12px; line-height: 18px; }
.sim-tag.big { font-size: 13px; padding: 3px 12px; }
.env-tag { font-size: 11px; font-weight: 600; letter-spacing: .6px; padding: 1px 8px; border-radius: 12px; line-height: 18px; border: 1px solid currentColor; }
.env-tag.big { font-size: 13px; padding: 3px 12px; }
.env-dev { color: #42be65; }
.env-test { color: #78a9ff; }
.env-prod { color: #fff; background: #da1e28; border-color: #da1e28; }
.sim-banner.banner-prod { background: #da1e28; color: #fff; }
.sim-banner.banner-test { background: #d0e2ff; color: #002d9c; }
.hdr-goto, .hdr-search { position: relative; height: 48px; display: flex; align-items: center; }
.hdr-goto input, .hdr-search input { height: 32px; width: 240px; background: var(--hdr-2); border: 0; border-bottom: 1px solid #6f6f6f; color: var(--hdr-text); padding: 0 12px 0 32px; outline: none; }
.hdr-goto input:focus, .hdr-search input:focus { outline: 2px solid #fff; outline-offset: -2px; }
.hdr-goto .ic, .hdr-search .ic { position: absolute; left: 9px; color: var(--hdr-text-2); }
.hdr-search input { width: 260px; }
.hdr-site { font-size: 12px; color: var(--hdr-text-2); padding: 0 12px; white-space: nowrap; }
.badge { position: absolute; top: 8px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 600; }
.badge:empty { display: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #4589ff; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.pop { position: absolute; top: 46px; left: 0; min-width: 100%; max-height: 420px; overflow: auto; background: var(--layer); color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.3); display: none; z-index: 60; }
.pop.open { display: block; }
.pop .pi { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
.pop .pi:hover, .pop .pi.act { background: var(--layer-hover); }
.pop .pi small { color: var(--text-3); margin-left: auto; white-space: nowrap; }
.pop .ph { padding: 6px 12px; font-size: 12px; color: var(--text-2); background: var(--layer-2); }
.user-pop { left: auto; right: 0; min-width: 240px; }
.user-pop .uhd { padding: 12px; border-bottom: 1px solid var(--border); }
.sim-banner .short { display: none; }
.sim-banner { position: fixed; top: var(--hdr-h); left: 0; right: 0; height: var(--banner-h); background: var(--sim); color: var(--sim-text); font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; z-index: 49; font-weight: 500; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- layout ---------------------------------------------------------------------------- */
.layout { padding-top: calc(var(--hdr-h) + var(--banner-h)); min-height: 100vh; display: flex; }
.nav { position: fixed; top: calc(var(--hdr-h) + var(--banner-h)); bottom: 0; left: 0; width: var(--nav-w); background: var(--layer); border-right: 1px solid var(--border); overflow-y: auto; z-index: 40; transform: translateX(-100%); transition: transform .11s; }
body.nav-open .nav { transform: none; }
body.nav-open main.main { margin-left: var(--nav-w); }
.nav-filter { padding: 8px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--layer); }
.nav-filter input { width: 100%; height: 32px; border: 0; border-bottom: 1px solid var(--border-strong); background: var(--layer-2); padding: 0 8px; }
.nav a.ni, .nav button.nm { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 16px; height: 32px; color: var(--text-2); background: none; border: 0; text-align: left; cursor: pointer; font-size: 14px; }
.nav a.ni:hover, .nav button.nm:hover { background: var(--layer-hover); color: var(--text); text-decoration: none; }
.nav a.ni.on { background: var(--sel); color: var(--text); border-left: 3px solid var(--primary); padding-left: 13px; font-weight: 600; }
.nav button.nm { font-weight: 600; color: var(--text); }
.nav button.nm .ic { margin-left: auto; transition: transform .11s; }
.nav .mod.closed .apps { display: none; }
.nav .mod.closed button.nm .ic { transform: rotate(-90deg); }
.nav .apps a.ni { padding-left: 32px; font-size: 13px; }
.nav .apps a.ni.on { padding-left: 29px; }
.nav hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
main.main { flex: 1; min-width: 0; padding: 16px 24px 64px; transition: margin .11s; }
.footer-note { position: fixed; bottom: 0; right: 0; left: 0; font-size: 11px; color: var(--text-3); background: var(--layer-2); border-top: 1px solid var(--border); padding: 3px 12px; text-align: right; z-index: 30; }

/* ---- buttons --------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border: 1px solid transparent; cursor: pointer; font-size: 14px; white-space: nowrap; background: var(--layer); }
.btn .ic { margin-right: -2px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-h); }
.btn.secondary { background: #393939; color: #fff; }
.btn.secondary:hover { background: #4c4c4c; }
.btn.tertiary { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn.tertiary:hover { background: var(--primary); color: #fff; }
.btn.ghost { background: transparent; color: var(--link); }
.btn.ghost:hover { background: var(--layer-hover); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #b81921; }
.btn.block { width: 100%; justify-content: space-between; height: 48px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; color: var(--text-2); }
.icon-btn:hover { background: var(--layer-hover); color: var(--text); }

/* ---- app chrome ------------------------------------------------------------------------ */
.app-hd { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.app-hd h1 { font-size: 28px; line-height: 36px; }
.app-hd .crumbs { font-size: 12px; color: var(--text-2); margin-bottom: 2px; }
.app-hd .crumbs a { color: var(--text-2); }
.toolbar { display: flex; align-items: center; gap: 1px; background: var(--layer); border-bottom: 1px solid var(--border); padding: 0; flex-wrap: wrap; }
.toolbar .btn { background: transparent; color: var(--text); height: 40px; padding: 0 14px; border: 0; }
.toolbar .btn:hover { background: var(--layer-hover); }
.toolbar .btn.primary { background: var(--primary); color: #fff; }
.toolbar .btn.primary:hover { background: var(--primary-h); }
.toolbar .sep { width: 1px; align-self: stretch; background: var(--border); margin: 8px 4px; }
.toolbar .pos { font-size: 12px; color: var(--text-2); padding: 0 8px; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 40px; min-width: 240px; background: var(--layer); box-shadow: 0 2px 6px rgba(0,0,0,.3); display: none; z-index: 45; max-height: 70vh; overflow: auto; }
.menu.left { left: 0; right: auto; }
.menu.open { display: block; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 0 16px; height: 40px; cursor: pointer; border-bottom: 1px solid var(--border); }
.menu button:hover { background: var(--layer-hover); }
.menu button.danger { color: var(--danger); }
.menu .mh { padding: 6px 16px; font-size: 12px; color: var(--text-2); background: var(--layer-2); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); background: var(--layer); overflow-x: auto; margin-top: 12px; }
.tabs button { height: 40px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: var(--text-2); white-space: nowrap; }
.tabs button:hover { color: var(--text); background: var(--layer-hover); }
.tabs button.on { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
.tabs button .cnt { font-size: 11px; background: var(--layer-2); border-radius: 8px; padding: 0 6px; margin-left: 6px; color: var(--text-2); font-weight: 400; }
.panel { background: var(--layer); padding: 16px; }
.rec-hd { display: flex; gap: 24px; align-items: center; padding: 12px 16px; background: var(--layer); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rec-hd .k { font-size: 20px; font-weight: 400; }
.rec-hd .d { color: var(--text-2); flex: 1; min-width: 200px; }
.dirty-dot { color: var(--danger); font-size: 12px; }

/* ---- status pills ---------------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 12px; font-size: 12px; background: #e0e0e0; color: #161616; white-space: nowrap; }
.pill.green { background: #a7f0ba; color: #0e6027; }
.pill.blue { background: #d0e2ff; color: #0043ce; }
.pill.red { background: #ffd7d9; color: #a2191f; }
.pill.yellow { background: #fcf4d6; color: #684e00; }
.pill.gray { background: #e0e0e0; color: #393939; }
.pill.purple { background: #e8daff; color: #6929c4; }

/* ---- forms ----------------------------------------------------------------------------- */
.sec { background: var(--layer); padding: 16px; border-bottom: 1px solid var(--border); }
.sec h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 24px; }
.grid.full { grid-template-columns: 1fr; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld > span, .fld > label { font-size: 12px; color: var(--text-2); }
.fld.wide { grid-column: 1 / -1; }
.req { color: var(--danger); font-weight: 400; }
.fld input:not([type=checkbox]), .fld select, .fld textarea, .cell input:not([type=checkbox]), .cell select, .form input:not([type=checkbox]), .form select, .form textarea {
  height: 40px; border: 0; border-bottom: 1px solid var(--border-strong); background: var(--layer-2); padding: 0 12px; outline: none; width: 100%; min-width: 0; }
.fld textarea, .form textarea { height: auto; padding: 10px 12px; resize: vertical; }
textarea.code { font-family: var(--mono); font-size: 13px; line-height: 1.5; white-space: pre; tab-size: 4; background: #f8f8f8; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .cell input:focus, .cell select:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.fld input:disabled, .fld select:disabled, .fld textarea:disabled { color: var(--text); background: transparent; border-bottom-color: var(--border); -webkit-text-fill-color: var(--text); opacity: 1; cursor: default; }
.fld input[type=checkbox], .cell input[type=checkbox] { width: 18px; height: 18px; margin: 10px 0; accent-color: var(--text); }
.fld .hint { font-size: 12px; color: var(--text-3); }
.invalid { outline: 2px solid var(--danger) !important; outline-offset: -2px; }
.lk { display: flex; align-items: stretch; }
.lk input { flex: 1; }
.lk .icon-btn { height: 40px; width: 40px; background: var(--layer-2); border-bottom: 1px solid var(--border-strong); }
.lk .icon-btn:disabled { visibility: hidden; }
.form { display: grid; gap: 16px; }

/* ---- tables ---------------------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; background: var(--layer); }
table.dt { border-collapse: collapse; width: 100%; font-size: 14px; }
table.dt th { text-align: left; font-weight: 600; background: #e0e0e0; height: 40px; padding: 0 12px; white-space: nowrap; position: relative; }
table.dt th.sortable { cursor: pointer; }
table.dt th.sortable:hover { background: #c6c6c6; }
table.dt th .arrow { font-size: 11px; color: var(--text-2); margin-left: 4px; }
table.dt tr.filter-row th { background: var(--layer-2); padding: 0 4px; height: 36px; }
table.dt tr.filter-row input { width: 100%; height: 28px; border: 0; border-bottom: 1px solid var(--border-strong); background: var(--layer); padding: 0 6px; font-size: 13px; outline: none; min-width: 60px; }
table.dt tr.filter-row input:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
table.dt td { height: 40px; padding: 0 12px; border-bottom: 1px solid var(--border); white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
table.dt tbody tr:hover td { background: var(--layer-hover); }
table.dt tbody tr.click { cursor: pointer; }
table.dt tbody tr.selected td { background: var(--sel); }
table.dt td.ck, table.dt th.ck { width: 40px; padding: 0 0 0 12px; }
table.dt td.num, table.dt th.num { text-align: right; }
table.dt td.cell { padding: 0 2px; }
table.dt td.cell input, table.dt td.cell select { height: 36px; font-size: 13px; padding: 0 8px; }
table.dt td.act { width: 40px; padding: 0; }
.list-bar { display: flex; gap: 8px; align-items: center; padding: 8px 0 12px; flex-wrap: wrap; }
.list-bar .search { position: relative; }
.list-bar .search input { height: 40px; width: 320px; border: 0; border-bottom: 1px solid var(--border-strong); background: var(--layer-2); padding: 0 12px 0 36px; outline: none; }
.list-bar .search input:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.list-bar .search .ic { position: absolute; left: 12px; top: 12px; color: var(--text-2); }
.list-bar select { height: 40px; border: 0; border-bottom: 1px solid var(--border-strong); background: var(--layer-2); padding: 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #d0e2ff; color: #0043ce; border-radius: 12px; padding: 0 4px 0 10px; height: 24px; font-size: 12px; max-width: 560px; overflow: hidden; }
.chip button { border: 0; background: none; cursor: pointer; color: inherit; display: inline-flex; padding: 2px; }
.pager { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); background: var(--layer); height: 48px; padding: 0 0 0 16px; font-size: 14px; }
.pager select { height: 48px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: transparent; padding: 0 12px; }
.pager .icon-btn { width: 48px; height: 48px; border-left: 1px solid var(--border); }
.empty { padding: 32px; text-align: center; color: var(--text-2); }
.loading { padding: 24px; color: var(--text-2); }
.add-row { padding: 8px 0; }

/* ---- start center ---------------------------------------------------------------------- */
.sc-hd { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.sc-hd h1 { font-size: 28px; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.sc-col { display: grid; gap: 16px; min-width: 0; }
.sc-col > * { min-width: 0; }
.portlet { background: var(--layer); min-width: 0; overflow: hidden; }
.portlet-hd { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--border); }
.portlet-hd h2 { font-size: 16px; font-weight: 600; }
.portlet-hd .cnt { font-size: 12px; color: var(--text-2); }
.portlet-bd { padding: 0; overflow-x: auto; }
.portlet-bd.pad { padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--border); }
.kpi { background: var(--layer); padding: 12px 16px; border-left: 4px solid var(--ok); cursor: default; }
.kpi.CAUTION { border-left-color: var(--warn); }
.kpi.ALERT { border-left-color: var(--danger); }
.kpi .v { font-size: 32px; line-height: 40px; font-weight: 300; }
.kpi .l { font-size: 12px; color: var(--text-2); min-height: 32px; }
.kpi .t { font-size: 11px; color: var(--text-3); }
.favs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--border); }
.fav { background: var(--layer); padding: 14px 16px; color: var(--text); display: flex; flex-direction: column; gap: 4px; min-height: 76px; }
.fav:hover { background: var(--layer-hover); text-decoration: none; }
.fav b { font-weight: 600; font-size: 14px; }
.fav small { color: var(--text-2); font-size: 12px; }
.bb { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.bb b { display: block; margin-bottom: 4px; }
.bb p { margin: 0; color: var(--text-2); font-size: 13px; }
.bb small { color: var(--text-3); font-size: 11px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---- modal, toasts --------------------------------------------------------------------- */
.modal-back { position: fixed; inset: 0; background: rgba(22,22,22,.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal { background: var(--layer); width: 560px; max-width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.modal.wide { width: 960px; }
.modal-hd { display: flex; align-items: flex-start; padding: 16px 8px 8px 16px; gap: 8px; }
.modal-hd h2 { font-size: 20px; flex: 1; }
.modal-bd { padding: 8px 16px 24px; overflow: auto; }
.modal-ft { display: flex; justify-content: flex-end; }
.modal-ft .btn { height: 64px; flex: 1; max-width: 50%; align-items: flex-start; padding-top: 14px; border: 0; }
.modal-ft .btn:not(.primary):not(.danger) { background: #393939; color: #fff; }
.msg-code { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.lookup .search-row input { width: 100%; height: 40px; border: 0; border-bottom: 1px solid var(--border-strong); background: var(--layer-2); padding: 0 12px; margin-bottom: 8px; }
.lk-table { max-height: 60vh; overflow: auto; }
#toasts { position: fixed; right: 16px; top: calc(var(--hdr-h) + var(--banner-h) + 8px); z-index: 120; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 288px; max-width: 480px; padding: 0 0 0 16px; min-height: 48px; background: #393939; color: #f4f4f4; border-left: 3px solid var(--ok); box-shadow: 0 2px 6px rgba(0,0,0,.3); font-size: 14px; }
.toast.err { border-left-color: #fa4d56; }
.toast.warn { border-left-color: var(--warn); }
.toast span { flex: 1; padding: 12px 0; }
.toast button { background: none; border: 0; color: #f4f4f4; width: 48px; height: 48px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* ---- api explorer, console, canvas ----------------------------------------------------- */
.api-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.api-req { display: flex; gap: 0; }
.api-req select { width: 110px; height: 40px; border: 0; border-bottom: 1px solid var(--border-strong); background: var(--layer-2); padding: 0 8px; }
.api-req input { flex: 1; height: 40px; border: 0; border-bottom: 1px solid var(--border-strong); background: var(--layer-2); padding: 0 12px; font-family: var(--mono); font-size: 13px; }
pre.out { background: #262626; color: #f4f4f4; padding: 16px; margin: 0; overflow: auto; max-height: 70vh; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.samples button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 8px 12px; cursor: pointer; font-size: 13px; }
.samples button:hover { background: var(--layer-hover); }
.samples code { color: var(--text-2); font-size: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--border); margin-bottom: 16px; }
.card { background: var(--layer); padding: 16px; }
.card .v { font-size: 24px; font-weight: 300; }
.card .l { font-size: 12px; color: var(--text-2); }
.canvas { background: #fff; background-image: radial-gradient(#e0e0e0 1px, transparent 1px); background-size: 16px 16px; overflow: auto; border: 1px solid var(--border); }
.canvas svg text { font: 12px var(--font); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.status-1, .status-2 { font-weight: 600; }

/* ---- login ----------------------------------------------------------------------------- */
.login-body { background: var(--bg); }
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.login-brand { background: var(--hdr); color: var(--hdr-text); display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-brand-inner { max-width: 440px; display: grid; gap: 20px; justify-items: start; }
.brand-mark { font-size: 44px; line-height: 52px; font-weight: 300; }
.login-lede { font-size: 18px; line-height: 28px; color: #e0e0e0; margin: 0; font-weight: 300; }
.login-notice { font-size: 13px; color: var(--hdr-text-2); margin: 0; border-left: 3px solid var(--sim); padding-left: 12px; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--layer); }
.login-form { width: 100%; max-width: 400px; display: grid; gap: 20px; }
.login-form h1 { font-size: 28px; line-height: 36px; }
.login-form p { margin: 0; }
.login-error { background: #fff1f1; border-left: 3px solid var(--danger); padding: 12px 16px; font-size: 14px; }
.login-foot { font-size: 12px; color: var(--text-3); }

@media (max-width: 1100px) {
  .sc-grid, .api-grid, .cols2 { grid-template-columns: 1fr; }
  .hdr-search input { width: 160px; }
  .hdr-goto input { width: 160px; }
  body.nav-open main.main { margin-left: 0; }
}
@media (max-width: 720px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 32px 16px; }
  .hdr-goto, .hdr-site, .hdr-search { display: none; }
  .sim-banner .long { display: none; }
  .sim-banner .short { display: inline; }
  main.main { padding: 12px 16px 64px; }
  .list-bar .search input { width: 100%; }
}

/* ---- Manage configuration wizard ------------------------------------------------------- */
.notice-strip { display: flex; align-items: center; gap: 12px; background: #edf5ff; border-left: 3px solid var(--primary); padding: 8px 8px 8px 16px; margin-bottom: 16px; }
.notice-strip span { flex: 1; }
.wiz-steps { display: flex; list-style: none; margin: 0 0 1px; padding: 0; background: var(--layer); overflow-x: auto; }
.wiz-steps li { flex: 1; min-width: 150px; border-top: 3px solid var(--border); }
.wiz-steps li.on { border-top-color: var(--primary); }
.wiz-steps li.done { border-top-color: var(--ok); }
.wiz-steps button { width: 100%; text-align: left; background: none; border: 0; padding: 12px 16px; cursor: pointer; display: flex; gap: 8px; align-items: center; color: var(--text-2); }
.wiz-steps li.on button { color: var(--text); font-weight: 600; }
.wiz-steps .n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.wiz-steps .cnt { margin-left: auto; font-size: 11px; background: var(--layer-2); border-radius: 8px; padding: 0 6px; }
.wiz-body { min-height: 320px; }
.wiz-ft { display: flex; gap: 1px; margin-top: 1px; }
.wiz-ft .btn { height: 48px; min-width: 200px; }
.sol-grid, .ver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sol-card { display: flex; gap: 12px; border: 1px solid var(--border); padding: 16px; cursor: pointer; background: var(--layer); }
.sol-card:hover { border-color: var(--border-strong); }
.sol-card.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: #f6f9ff; }
.sol-card.blocked { opacity: .6; cursor: not-allowed; }
.sol-card input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.sol-body { display: grid; gap: 6px; min-width: 0; }
.sol-top { display: flex; justify-content: space-between; gap: 8px; }
.sol-body p { margin: 0; font-size: 13px; color: var(--text-2); }
.sol-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.sol-meta span { font-size: 11px; background: var(--layer-2); padding: 1px 8px; border-radius: 10px; color: var(--text-2); }
.sol-img { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sol-warn { font-size: 13px; background: #fcf4d6; border-left: 3px solid var(--warn); padding: 8px 12px; margin: 0 0 12px; }
.sol-hint { font-size: 12px; color: var(--info); }
.wiz-progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wiz-progress li { padding-left: 28px; position: relative; color: var(--text-3); }
.wiz-progress li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); }
.wiz-progress li.run { color: var(--text); }
.wiz-progress li.run::before { border-color: var(--primary); border-right-color: transparent; animation: spin .8s linear infinite; }
.wiz-progress li.ok { color: var(--text); }
.wiz-progress li.ok::before { background: var(--ok); border-color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Manage look (owner direction, 2026-11-01): calm grey and white like Maximo Manage itself.
   Colour is kept for links, the primary button, and the TEST and PROD environment strips. ---- */
.sim-tag { background: transparent; color: #c6c6c6; border: 1px solid #6f6f6f; }
.login-brand .sim-tag { color: #e0e0e0; border-color: #8d8d8d; }
.env-dev, .env-test { color: #c6c6c6; border-color: #6f6f6f; }
.sim-banner.banner-dev { display: none; }
body:has(.sim-banner.banner-dev) { --banner-h: 0px; }
.sim-banner.banner-test { background: #e0e0e0; color: #161616; }
.pill, .pill.green, .pill.blue, .pill.red, .pill.yellow, .pill.gray, .pill.purple { background: transparent; color: var(--text); padding: 0; height: auto; border-radius: 0; font-size: inherit; }
.kpi, .kpi.CAUTION, .kpi.ALERT { border-left: 1px solid var(--border); }
.kpi.CAUTION .v::before, .kpi.ALERT .v::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 6px 0; vertical-align: middle; background: #b28600; }
.kpi.ALERT .v::before { background: #da1e28; }
.notice-strip { background: var(--layer); border-left-color: #8d8d8d; }

/* ---- Operational dashboards and Graphite apps ---- */
.dash-grid { display: grid; grid-template-columns: repeat(16, 1fr); grid-auto-rows: 132px; gap: 8px; }
.dcard { grid-column: span var(--w, 4); grid-row: span var(--h, 1); background: var(--layer); border: 1px solid var(--border); padding: 12px 16px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.dcard h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.dcard .dbody { flex: 1; overflow: auto; min-height: 0; }
.dcard .dkv { display: grid; gap: 2px; }
.dcard .kval { font-size: 36px; line-height: 44px; font-weight: 300; }
.dcard .kn { font-size: 12px; color: var(--text-2); }
.dcard .kst { font-size: 12px; text-transform: capitalize; }
.dcard .kst.CAUTION { color: #8e6a00; }
.dcard .kst.ALERT { color: var(--danger); }
.dcard .kbars { display: grid; gap: 6px; }
.dcard .kbar { display: grid; grid-template-columns: minmax(80px, 40%) 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.dcard .kbar i { display: block; height: 10px; background: #8d8d8d; }
.dcard .dframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } .dcard { grid-column: auto !important; grid-row: auto !important; min-height: 132px; } }
.gr-body { background: var(--bg); }
.gr-hd { height: 48px; background: #161616; color: #f4f4f4; display: flex; align-items: center; gap: 12px; padding: 0 16px; font-size: 14px; }
.gr-hd a { color: #f4f4f4; text-decoration: none; }
.gr-hd .t { font-weight: 600; }
.gr-main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.gr-box { display: flex; flex-direction: column; gap: 12px; }
.gr-box.row { flex-direction: row; flex-wrap: wrap; }
.gr-field { display: grid; gap: 4px; max-width: 520px; }
.gr-field span { font-size: 12px; color: var(--text-2); }
.gr-field input { height: 40px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--border-strong, #8d8d8d); background: var(--field, #f4f4f4); font: inherit; }
.gr-table tr.sel td { background: #e0e0e0; }
.gr-unsupported { font-size: 12px; color: var(--text-3); border: 1px dashed var(--border); padding: 4px 8px; }
.gr-btns { display: flex; gap: 8px; flex-wrap: wrap; }
