/* Portal design template v1.0 (2026-10-13) — components and layouts
   The look of the Content Management Platform (developed by Tech Vision Enterprise,
   distributed by Springlab Distribution). Values are copied from the live portal; change
   colours and sizes only in tokens.css. All sizes are rem (16px = 1rem). */
/* Needs tokens.css first. Fonts: Lato 400/700; icons: Remix Icon 4.6.0 (see README). */

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  color: var(--fg);
  background: var(--bg);
  font-family: "Lato", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { letter-spacing: -.01em; }
h3 { margin: 0.25rem 0 0.625rem; font-size: 0.9375rem; }
code { font-family: "Fira Code", Consolas, monospace; font-size: 0.75rem; }
:is(button, input, select, textarea, a, [tabindex]):focus-visible { outline: 0.1875rem solid var(--ring); outline-offset: 0.125rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.error { min-height: 1.25rem; margin: 0; color: var(--danger); font-size: 0.875rem; }
.danger-text { color: var(--danger) !important; }
.warning-text { color: var(--warning) !important; }
.full { width: 100%; }

/* ---------- Form controls ---------- */
label { display: grid; gap: 0.3125rem; color: var(--fg); font-size: 0.75rem; font-weight: 700; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%;
  min-height: 2.125rem;
  padding: 0.375rem 0.625rem;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 400;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #a7aec7; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 0.1875rem rgba(72, 52, 245, .15); }
input[readonly] { background: var(--muted-bg); }
input[type="checkbox"], input[type="radio"] { width: 1.125rem; height: 1.125rem; min-height: 1.125rem; padding: 0; accent-color: var(--primary); }
input[type="file"] { padding: 0.4375rem; }
textarea { resize: vertical; }
fieldset { margin: 0; padding: 0.875rem 1rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
legend { padding: 0 0.375rem; color: var(--fg); font-size: 0.75rem; font-weight: 700; }
fieldset > p { margin: 0 0 0.75rem; font-size: 0.8125rem; }
.check-label { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5625rem; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 400; cursor: pointer; }
.check-label:hover { background: var(--primary-soft); border-color: #cfc8ff; }
.check-label:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); }
.check-label input { flex: 0 0 1.125rem; }
.check-label span { min-width: 0; display: grid; gap: 1px; }
.check-label strong { font-weight: 700; }
.check-label small { color: var(--muted); font-size: 0.75rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.two, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ---------- Buttons ---------- */
.button {
  min-height: 2.125rem;
  padding: 0.375rem 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.7813rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.button i { font-size: 0.9375rem; }
.button:disabled { cursor: wait; opacity: .65; }
.button.primary { color: #fff; background: var(--primary); }
.button.primary:hover:not(:disabled) { background: var(--primary-dark); }
.button.outline { color: var(--fg); background: #fff; border-color: var(--input); }
.button.outline:hover:not(:disabled) { color: var(--primary-ink); background: var(--primary-soft); border-color: #cfc8ff; }
.button.danger { color: #fff; background: var(--danger); }
.button.danger:hover:not(:disabled) { background: #93190f; }
.button.outline.danger-text:hover:not(:disabled) { background: var(--danger-soft); border-color: #f4c3be; }
.button.is-loading { cursor: wait; }
.button-spinner { width: 0.875rem; height: 0.875rem; flex: 0 0 0.875rem; border: 0.125rem solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.action { min-height: 1.75rem; padding: 0.1875rem 0.4375rem; color: var(--primary); background: transparent; border: 0; border-radius: 0.375rem; font-size: 0.7813rem; font-weight: 700; }
.action:hover { background: var(--primary-soft); }
.action.danger-text:hover { background: var(--danger-soft); }
.table-action { min-height: 1.75rem; padding: 0.1875rem 0.5625rem; color: var(--fg); background: #fff; border-color: var(--input); font-size: 0.75rem; }
.table-action:hover:not(:disabled) { color: var(--primary-ink); background: var(--primary-soft); border-color: #cfc8ff; }
.table-action i { font-size: 0.8125rem; }
.icon-button { width: 2rem; height: 2rem; flex: 0 0 2rem; display: inline-grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: var(--radius); font-size: 1rem; }
.icon-button:hover:not(:disabled) { color: var(--fg); background: var(--muted-bg); }
.icon-button.is-spinning i { display: inline-block; animation: spin .8s linear infinite; }
.link-button { min-height: 2.5rem; padding: 0; color: var(--primary); background: transparent; border: 0; font-size: 0.875rem; }
.link-button:hover { text-decoration: underline; }
.toolbar, .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.row-menu { position: relative; }
.row-menu summary { width: 2rem; padding: 0; list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu[open] summary { color: var(--primary-ink); background: var(--primary-soft); border-color: #cfc8ff; }
.row-menu-list { position: fixed; z-index: 50; width: 15rem; padding: 0.375rem; display: grid; gap: 1px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.row-menu-list button { min-height: 2rem; padding: 0.3125rem 0.625rem; display: flex; align-items: center; gap: 0.625rem; background: transparent; border: 0; border-radius: 0.375rem; font-size: 0.8125rem; text-align: left; }
.row-menu-list button:hover { background: var(--muted-bg); }
.row-menu-list button i { color: var(--muted); font-size: 1rem; }
.row-menu-list .menu-danger, .row-menu-list .menu-danger i { color: var(--danger); }
.row-menu-field { margin: 0.25rem 0; padding: 0.375rem 0.625rem; border-block: 1px solid var(--border); color: var(--muted); font-size: 0.75rem; }
.row-menu-field select { min-height: 2.125rem; font-size: 0.8125rem; }

/* ---------- Sign-in page (split layout) ---------- */
.login-view { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 43% 57%; background: #fff; }
.login-brand-panel { padding: 2.5rem clamp(2rem, 4vw, 4rem); display: flex; flex-direction: column; color: #f8f8fc; background: var(--sidebar-bg); }
.login-wordmark { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.5px; }
.login-wordmark .brand-mark { width: 2.25rem; height: 2.25rem; }
/* Product mark: a white glyph on the indigo tile (see README, "Product mark"). */
.brand-mark { flex: none; width: 1.75rem; height: 1.75rem; }
.login-brand-copy { margin-block: auto; padding-block: 2.5rem 6rem; }
.login-brand-copy .login-headline { margin: 0; font-size: clamp(2.5rem, 4.6vw, 4.5rem); font-weight: 400; line-height: 1.13; letter-spacing: -0.0938rem; }
.login-brand-copy p { max-width: 28.75rem; margin: 1.125rem 0 0; color: #cecedf; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.5; }
.login-workspace { min-width: 0; padding: 2.5rem clamp(2rem, 4vw, 4rem) 2rem; display: flex; flex-direction: column; }
.login-card { width: 100%; max-width: 26.25rem; margin: auto; padding: 2rem 0; display: grid; gap: 1.125rem; }
.login-card h1 { margin: 0; font-size: clamp(1.625rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -.8px; line-height: 1.2; }
.login-subtitle { margin: -0.5rem 0 0.5rem; color: var(--muted); font-size: 1rem; }
.login-card label { font-size: 0.875rem; font-weight: 400; gap: 0.5rem; }
.login-card .optional { color: var(--muted); }
.login-card input { min-height: 3rem; padding: 0 0.875rem; font-size: 1rem; border-color: #d8dceb; }
.login-submit { min-height: 3rem; font-size: 1rem; }
.login-card .link-button { justify-self: center; }
.login-access { margin: 0; color: var(--muted); text-align: center; }
.login-footer { color: var(--muted); font-size: 0.75rem; text-align: center; }

/* ---------- App shell ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.app.sidebar-collapsed { --sidebar-width: 4rem; }
.mobile-bar, .sidebar-scrim { display: none; }
.sidebar { position: sticky; top: 0; z-index: 40; height: 100vh; display: flex; flex-direction: column; color: var(--sidebar-fg); background: var(--sidebar-bg); transition: width .2s; }
.sidebar-brand { padding: 1.125rem 0.625rem 0.75rem 1.125rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.sidebar-wordmark { min-width: 0; display: inline-flex; align-items: center; gap: 0.625rem; color: #fff; font-size: 0.9375rem; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.sidebar-toggle { width: 1.75rem; height: 1.75rem; flex: 0 0 1.75rem; display: grid; place-items: center; color: var(--sidebar-label); background: transparent; border: 0; border-radius: 0.375rem; font-size: 1.125rem; }
.sidebar-toggle:hover { color: #fff; background: var(--sidebar-hover); }
/* Nav, storage and display size scroll together when the screen is short; the account row stays put. */
.sidebar-scroll { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--sidebar-border) transparent; }
.sidebar-nav { flex: 1 0 auto; padding: 0.375rem 0.625rem 0.625rem; display: grid; align-content: start; gap: 0.875rem; }
.nav-group { display: grid; gap: 0.125rem; }
.nav-label { margin: 0; padding: 0 0.6875rem 0.3125rem; color: var(--sidebar-label); font-size: 0.6563rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-nav button { position: relative; min-height: 2.0625rem; padding: 0.375rem 0.6875rem; display: flex; align-items: center; gap: 0.625rem; color: var(--sidebar-fg); background: transparent; border: 0; border-radius: var(--radius); font-size: 0.7813rem; text-align: left; transition: background .15s, color .15s; }
.sidebar-nav button i { flex: 0 0 1.0625rem; font-size: 1.0625rem; line-height: 1; }
.sidebar-nav button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-nav button:hover { color: #fff; background: var(--sidebar-hover); }
.sidebar-nav button.active { color: #fff; background: var(--primary); font-weight: 700; }
.nav-badge { margin-left: auto; padding: 0 0.4375rem; min-width: 1.25rem; color: #0e0d25; background: #fbbf24; border-radius: 62.4375rem; font-size: 0.6875rem; line-height: 1.125rem; text-align: center; }
.sidebar-account { position: relative; padding: 0.75rem; border-top: 1px solid var(--sidebar-border); }
.account-button { width: 100%; padding: 0.375rem; display: flex; align-items: center; gap: 0.625rem; color: #fff; background: transparent; border: 0; border-radius: var(--radius); text-align: left; }
.account-button:hover { background: var(--sidebar-hover); }
.avatar { width: 1.75rem; height: 1.75rem; flex: 0 0 1.75rem; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 50%; font-size: 0.6875rem; font-weight: 700; }
.account-text { min-width: 0; flex: 1; display: grid; }
.account-text strong, .account-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-text strong { font-size: 0.7813rem; }
.account-text small { color: var(--sidebar-label); font-size: 0.6875rem; }
.account-chevron { color: var(--sidebar-label); }
.account-menu { position: absolute; left: 0.75rem; bottom: calc(100% - 0.25rem); width: 14rem; padding: 0.375rem; color: var(--fg); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.account-menu-label { padding: 0.5rem 0.625rem 0.625rem; display: grid; border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; }
.account-menu-label small { color: var(--muted); font-size: 0.75rem; }
.account-menu button { width: 100%; min-height: 2rem; padding: 0.3125rem 0.625rem; display: flex; align-items: center; gap: 0.625rem; background: transparent; border: 0; border-radius: 0.375rem; font-size: 0.8125rem; text-align: left; }
.account-menu button:hover { background: var(--muted-bg); }
.account-menu i { color: var(--muted); font-size: 1rem; }
.account-menu .menu-danger { color: var(--danger); }
.account-menu .menu-danger i { color: var(--danger); }

.app.sidebar-collapsed .sidebar-brand { padding: 1.25rem 0 0.625rem; flex-direction: column; }
.app.sidebar-collapsed .wordmark-full,
.app.sidebar-collapsed .sidebar-nav button span,
.app.sidebar-collapsed .account-text,
.app.sidebar-collapsed .account-chevron { display: none; }
.app.sidebar-collapsed .sidebar-nav { padding-inline: 0.625rem; }
.app.sidebar-collapsed .nav-label { height: 1px; margin: 0 0.375rem 0.5rem; padding: 0; overflow: hidden; background: var(--sidebar-border); color: transparent; }
.app.sidebar-collapsed .sidebar-nav button { justify-content: center; padding-inline: 0; }
.app.sidebar-collapsed .nav-badge { position: absolute; top: 0.3125rem; right: 0.375rem; min-width: 0.625rem; width: 0.625rem; height: 0.625rem; padding: 0; font-size: 0; }
.app.sidebar-collapsed .account-button { justify-content: center; padding-inline: 0; }
.app.sidebar-collapsed .sidebar-account { padding-inline: 0.5rem; }

.app-main { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.workspace { width: 100%; flex: 1; padding: 0 1.75rem 2rem; outline: 0; }
.workspace > :not(.page-header) { max-width: 90rem; margin-inline: auto; }
.platform-footer { padding: 0.75rem 1.75rem; color: var(--muted); border-top: 1px solid var(--border); font-size: 0.6875rem; }

/* ---------- Page header ---------- */
.page-header { position: sticky; top: 0; z-index: 20; margin: 0 -1.75rem 1.25rem; padding: 0.75rem 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--border); backdrop-filter: blur(0.5rem); }
.page-title { min-width: 0; flex: 1 1 22.5rem; }
.page-title h1 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.page-title p { max-width: 51.25rem; margin: 0.125rem 0 0; color: var(--muted); font-size: 0.7813rem; }
.heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.heading-actions .heading-actions { display: contents; }

/* ---------- Cards, metrics, tables ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card { overflow: hidden; }
.card + .card { margin-top: 1.25rem; }
.card-header { min-height: 3.125rem; padding: 0.6875rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.625rem 1rem; border-bottom: 1px solid var(--border); }
.card-header h2 { margin: 0; font-size: 0.9063rem; font-weight: 700; }
.card-header small { display: block; margin-top: 0.125rem; color: var(--muted); font-size: 0.75rem; }
.card-header .eyebrow { margin-bottom: 0.125rem; }
.eyebrow { margin: 0; color: var(--muted); font-size: 0.6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.empty { padding: 2.25rem 1.25rem; color: var(--muted); text-align: center; }
.empty.compact { padding: 1.75rem 1.125rem; }
.card.empty { margin-top: 0; }

.metrics { margin-bottom: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(11.875rem, 1fr)); gap: 0.875rem; }
.metric { min-width: 0; padding: 0.875rem 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.metric-body { min-width: 0; display: grid; gap: 0.125rem; }
.metric-title { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.metric strong { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.metric small { color: var(--muted); font-size: 0.6875rem; }
.metric-icon { width: 2.125rem; height: 2.125rem; flex: 0 0 2.125rem; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 0.5rem; font-size: 1.0625rem; }
.metric.success .metric-icon { color: var(--success); background: var(--success-soft); }
.metric.warning .metric-icon, .metric.attention .metric-icon { color: var(--warning); background: var(--warning-soft); }
.metric.danger .metric-icon { color: var(--danger); background: var(--danger-soft); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.7813rem; }
th { padding: 0.5rem 0.875rem; color: var(--muted); background: #fafafd; border-bottom: 1px solid var(--border); font-size: 0.7188rem; font-weight: 700; text-align: left; white-space: nowrap; }
td { padding: 0.5625rem 0.875rem; border-top: 1px solid var(--border); vertical-align: middle; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover td { background: #fafafd; }
td > small, td > strong { display: block; }
td small { color: var(--muted); font-size: 0.6875rem; }
td > small + small { margin-top: 1px; }
td strong + small { margin-top: 0.125rem; }
td br:has(+ small) { display: none; }
td code { padding: 0.125rem 0.375rem; background: var(--muted-bg); border-radius: 0.25rem; }

.badge { display: inline-block; padding: 1px 0.5625rem; color: var(--primary-ink); background: var(--primary-soft); border-radius: 62.4375rem; font-size: 0.6875rem; font-weight: 700; line-height: 1.125rem; white-space: nowrap; }
.badge::first-letter { text-transform: uppercase; }
.badge:is(.active, .published, .approved, .completed) { color: var(--success); background: var(--success-soft); }
.badge:is(.pending, .review, .draft, .paused) { color: var(--warning); background: var(--warning-soft); }
.badge:is(.suspended, .offline, .rejected, .expired, .failed) { color: var(--danger); background: var(--danger-soft); }
.badge:is(.archived, .retired) { color: var(--muted); background: var(--muted-bg); }

.status-label { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--fg); font-size: 0.75rem; font-weight: 700; }
.status-label::first-letter { text-transform: uppercase; }
.status-label i { color: #a0a6bd; font-size: 0.5625rem; }
.status-label.active i { color: var(--success); }
.status-label:is(.pending, .warning) i { color: var(--warning); }
.status-label.offline i { color: var(--danger); }
.count-dot { margin-left: 0.375rem; padding: 0 0.5rem; color: #fff; background: var(--warning); border-radius: 62.4375rem; font-size: 0.6875rem; line-height: 1.125rem; vertical-align: 0.125rem; }
.status-dot { width: 0.5rem; height: 0.5rem; display: inline-block; background: var(--success); border-radius: 50%; }

/* ---------- Dialog & toast ---------- */
dialog { width: min(40rem, calc(100vw - 2rem)); max-height: min(90vh, 55rem); padding: 0; color: var(--fg); border: 1px solid var(--border); border-radius: 0.75rem; box-shadow: var(--shadow-lg); overflow: hidden; }
dialog::backdrop { background: rgba(14, 13, 37, .5); backdrop-filter: blur(0.125rem); }
dialog form { max-height: min(90vh, 55rem); display: flex; flex-direction: column; }
dialog header, dialog footer { padding: 0.875rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: #fff; }
dialog header { border-bottom: 1px solid var(--border); }
dialog header h2 { margin: 0.125rem 0 0; font-size: 1rem; font-weight: 700; }
dialog footer { justify-content: flex-end; gap: 0.5rem; border-top: 1px solid var(--border); }
.close { width: 2rem; height: 2rem; flex: 0 0 2rem; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: var(--radius); font-size: 1.25rem; }
.close:hover { color: var(--fg); background: var(--muted-bg); }
.modal-body { min-height: 0; padding: 1rem 1.25rem; display: grid; gap: 0.8125rem; overflow: auto; font-size: 0.8125rem; }
.modal-body > p { margin: 0; }
.modal-body section { min-width: 0; }
.toast { position: fixed; z-index: 100; right: 1.5rem; bottom: 1.5rem; max-width: 25rem; padding: 0.625rem 0.875rem; font-size: 0.8125rem; color: #fff; background: var(--fg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(0.625rem); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: none; }

/* ---------- Tabs (section tabs under a page title) ---------- */
.tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0 0.75rem; color: var(--muted); background: none; border: 0; font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--primary-ink); box-shadow: inset 0 -0.1875rem 0 var(--primary); }
.tabs em { font-style: normal; padding: 0 0.4375rem; border-radius: 62.5rem; background: var(--warning-soft); color: var(--warning); font-size: 0.6875rem; line-height: 1.125rem; }
.tabs.section-tabs { margin: 0 0 1.25rem; }

.simple-list { margin: 0; padding: 0; list-style: none; }
.simple-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
.simple-list li:first-child { border-top: 0; }
.simple-list strong, .simple-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simple-list small { color: var(--muted); font-size: 0.75rem; }
.simple-list-state { color: var(--muted); font-size: 0.8125rem; text-align: right; }
.simple-list-state.offline, .simple-list-state.pending { color: var(--danger); }
.simple-list-state.warning { color: var(--warning); }
.simple-list-state.active { color: var(--success); }
.simple-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.simple-callout h2 { margin: 0; font-size: 1rem; }
.simple-callout p { margin: 0.25rem 0 0; }
.setup-picker { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 0.5rem !important; font-size: 0.8125rem; }
.setup-picker select { min-width: 12rem; }
.setup-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; max-width: 52rem; }
.setup-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.setup-step.next { border-color: var(--primary); box-shadow: 0 0 0 0.1875rem rgba(72, 52, 245, .08); }
.setup-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--muted-bg, #f1f2f6); color: var(--muted); font-weight: 700; }
.setup-step.done .setup-mark { background: var(--success-soft, #e7f7ee); color: var(--success); }
.setup-step.next .setup-mark { background: var(--primary); color: #fff; }
.setup-body h2 { margin: 0 0 0.125rem; font-size: 1rem; }
.setup-body strong, .setup-body small { display: block; }
.setup-body small { color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
  .w-lt-760 .setup-step { grid-template-columns: auto minmax(0, 1fr); }
  .w-lt-760 .setup-step > .button { grid-column: 2; justify-self: start; }

/* ---------- Partner credits (developer and distributor) ----------
   Both logos render at the same height so neither party is visually ranked. */
.login-credits { width: 100%; max-width: 35rem; margin: 0 auto; padding-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; border-top: 1px solid var(--border); text-align: left; }
.credit { min-width: 0; display: grid; justify-items: start; align-content: start; gap: 0.5rem; }
.credit-label { color: var(--muted); font-size: 0.6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.credit small { color: var(--muted); font-size: 0.6875rem; line-height: 1.4; }
.login-credits img { height: 2.25rem; width: auto; max-width: 100%; object-fit: contain; }
.platform-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.footer-credit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.platform-footer img { height: 1.125rem; width: auto; }

/* ---------- Responsive ---------- */
/* was @media (max-width: 1400px); applied via .w-lt-1400 on <html> */
/* was @media (max-width: 1100px); applied via .w-lt-1100 on <html> */
  .w-lt-1100 .login-view { grid-template-columns: 38% 62%; }
/* was @media (max-width: 900px); applied via .w-lt-900 on <html> */
  .w-lt-900 .app, .w-lt-900 .app.sidebar-collapsed { display: block; --sidebar-width: 17rem; }
  .w-lt-900 .mobile-bar { position: sticky; top: 0; z-index: 30; height: 3.5rem; padding: 0 0.75rem; display: flex; align-items: center; gap: 0.625rem; color: #fff; background: var(--sidebar-bg); }
  .w-lt-900 .mobile-bar .icon-button { color: #fff; font-size: 1.375rem; }
  .w-lt-900 .mobile-bar .icon-button:hover { background: var(--sidebar-hover); }
  .w-lt-900 .sidebar { position: fixed; left: 0; top: 0; width: var(--sidebar-width); transform: translateX(-100%); transition: transform .2s; }
  .w-lt-900 .app.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .w-lt-900 .sidebar-scrim { position: fixed; inset: 0; z-index: 35; display: block; background: rgba(14, 13, 37, .5); }
  .w-lt-900 .sidebar-toggle { display: none; }
  /* The drawer always shows full labels, whatever the desktop collapse preference. */
  .w-lt-900 .app.sidebar-collapsed .sidebar-brand { padding: 1.375rem 0.75rem 0.875rem 1.25rem; flex-direction: row; }
  .w-lt-900 .app.sidebar-collapsed .wordmark-full { display: inline; }
  .w-lt-900 .app.sidebar-collapsed .sidebar-nav button span { display: inline; }
  .w-lt-900 .app.sidebar-collapsed .account-text { display: grid; }
  .w-lt-900 .app.sidebar-collapsed .account-chevron { display: inline; }
  .w-lt-900 .app.sidebar-collapsed .nav-label { height: auto; margin: 0; padding: 0 0.75rem 0.375rem; color: var(--sidebar-label); background: transparent; }
  .w-lt-900 .app.sidebar-collapsed .sidebar-nav button, .w-lt-900 .app.sidebar-collapsed .account-button { justify-content: flex-start; padding-inline: 0.75rem; }
  .w-lt-900 .app.sidebar-collapsed .nav-badge { position: static; width: auto; height: auto; min-width: 1.25rem; padding: 0 0.4375rem; font-size: 0.6875rem; }
  .w-lt-900 .workspace { padding: 0 1rem 2rem; }
  .w-lt-900 .page-header { position: static; margin: 0 -1rem 1.25rem; padding: 0.875rem 1rem; backdrop-filter: none; }
  .w-lt-900 .platform-footer { padding: 1rem; }
/* was @media (max-width: 760px); applied via .w-lt-760 on <html> */
  .w-lt-760 .login-view { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .w-lt-760 .login-brand-panel { padding: 1.5rem; }
  .w-lt-760 .login-brand-copy { display: none; }
  .w-lt-760 .login-workspace { padding: 1rem 1.5rem 1.75rem; }
  .w-lt-760 .page-title { flex-basis: 100%; }
  .w-lt-760 .heading-actions { width: 100%; justify-content: flex-start; }
  .w-lt-760 .metrics { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .w-lt-760 .metric { padding: 0.875rem; }
  .w-lt-760 .metric-icon { display: none; }
  .w-lt-760 .modal-body, .w-lt-760 dialog header, .w-lt-760 dialog footer { padding-inline: 1rem; }
/* was @media (max-width: 340px); applied via .w-lt-340 on <html> */
  .w-lt-340 .metrics { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}
  .w-lt-760 .login-credits { grid-template-columns: 1fr; }
